/* Check-Games 1.1: the room, the table and the conversation share one lounge. */
[hidden]{display:none!important}
.main-shell{position:relative;isolation:isolate}
body[data-route="game"] .main-shell:before{content:"";position:fixed;inset:0 0 0 225px;z-index:-1;background-image:linear-gradient(rgb(3 17 13 / var(--room-shade,.35)),rgb(3 17 13 / .65)),var(--room-image);background-size:cover;background-position:center;pointer-events:none}
body[data-route="game"] .topbar{background:#071b17e8;border-bottom-color:#d5b77425}
body[data-route="game"] .game-topline{padding:12px 14px;background:#071b17f2;border:1px solid #d2bd8940;border-radius:14px;margin-bottom:4px;text-shadow:0 2px 8px #0008}
.immersive-game{padding-top:9px}
.immersive-felt{background-image:url("assets/felt-weave.svg"),radial-gradient(ellipse at 40% 20%,#ffffff0b,transparent 65%);background-color:var(--felt);border-color:#674f2d;box-shadow:inset 0 0 0 2px var(--table-accent),inset 0 8px 24px #001b1673,0 15px 0 #31261b,0 26px 33px #0006;margin-bottom:18px;isolation:isolate}
.immersive-felt:after{content:"";position:absolute;inset:5px;border-radius:inherit;border:1px solid #f5df9d36;pointer-events:none}
.immersive-felt .table-watermark{color:#ecdec41d;letter-spacing:.02em}
.immersive-felt .opponents{position:relative;z-index:2}
.bank-pile{background:transparent;border:0;padding:0;color:var(--text);display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:86px;border-radius:12px;transition:transform .18s ease}
.bank-pile:not(:disabled):active{transform:translateY(3px) rotate(-2deg)}
.bank-pile:disabled{opacity:.92;cursor:default}
.bank-pile small{margin-top:13px}
.bank-pile:not(:disabled) .deck-back{outline:1px solid #ead39855;outline-offset:6px}
.immersive-game .my-hand{background:#071b17e8;padding:22px 18px 15px;border:1px solid #d8c29124;border-radius:18px;box-shadow:0 12px 25px #0003}
.immersive-game .game-side{padding-inline:4px}
.immersive-game .speech{background:#17382bef}
.immersive-game .activity-list{background:#071b17dc;padding:18px 14px;border-radius:15px;border-top:0}
.robot-emblem{width:100%;height:100%;display:block}
.avatar.robot-avatar{background:none;border:0;box-shadow:none;border-radius:15px}
.opponent .avatar.robot-avatar{width:46px;height:46px}
.bot-label{display:inline-block;color:#d6cfb6;font-size:9px;letter-spacing:.04em;line-height:1.3;margin-top:4px}
.opponent.current .robot-emblem{animation:robot-focus 2.7s ease-in-out infinite}
.thinking-dots{display:inline-flex;gap:4px;margin-left:5px;align-items:center}
.thinking-dots i{width:4px;height:4px;background:var(--gold);border-radius:50%;animation:thinking-dot 1.4s ease-in-out infinite}
.thinking-dots i:nth-child(2){animation-delay:.17s}.thinking-dots i:nth-child(3){animation-delay:.34s}
.table-turn{min-height:23px;position:relative;z-index:2}
.listen-guide{display:inline-flex;align-items:center;gap:7px;background:none;color:#f2d89b;font-size:11px;min-height:38px;margin-top:7px;padding:2px 3px}
.listen-guide svg{width:16px;height:16px}
.robot-fairness{font-size:11px;line-height:1.8;margin-top:18px;padding:12px;background:#071b17da;border-radius:10px}
.tutorial-listen{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:12px}
.checky-speaking .companion-box img,.checky-speaking .tutorial-narrator img{animation:checky-talk .48s ease-in-out infinite alternate}
.robot-editor{margin-top:20px;border-top:1px solid var(--line);padding-top:16px}
.robot-editor summary{font-family:var(--font);font-size:14px;color:var(--gold);min-height:48px;cursor:pointer;line-height:2.4}
.robot-editor>p{margin:0 0 15px;line-height:1.8}
.robot-roster{display:grid;gap:13px}
.robot-row{display:grid;grid-template-columns:45px minmax(95px,1fr) minmax(85px,1fr);gap:12px;align-items:center}
.robot-row .field{font-size:11px}.robot-row input,.robot-row select{min-height:45px;padding:9px;font-size:13px}
.sound-settings .field{margin-top:18px}.sound-settings output{float:right;color:var(--gold)}
.field input[type="range"]{appearance:none;padding:0;height:32px;min-height:32px;background:transparent;border:0;accent-color:var(--gold);cursor:pointer}
input[type="range"]::-webkit-slider-runnable-track{height:5px;border-radius:5px;background:#48654d}
input[type="range"]::-webkit-slider-thumb{appearance:none;width:22px;height:22px;background:var(--gold);border:3px solid #f2dfaf;border-radius:50%;margin-top:-8px;box-shadow:0 3px 7px #0004}
.studio-controls{display:flex;flex-wrap:wrap;gap:20px;align-items:center;padding:19px 0 25px;border-bottom:1px solid var(--line);margin-bottom:22px}
.studio-controls>div{flex:1;min-width:190px}.studio-controls h3{font-size:16px}.studio-controls p{font-size:12px;color:var(--muted);margin-top:7px;line-height:1.7}
.studio-controls .field{min-width:145px;flex:0 1 190px}.studio-controls .field output{color:var(--gold)}
.studio-controls input[type="color"]{width:80px;min-height:42px;padding:5px;background:#193a2a;border:1px solid #6a815b;border-radius:10px}
.catalog-art .environment-art{width:100%;height:100%;object-fit:cover}
.preview-table{position:absolute;width:45%;height:37%;left:28%;bottom:18%;z-index:1;border-radius:50%;background:var(--felt);border:7px solid #674f2d;box-shadow:inset 0 0 0 2px var(--table-accent),0 12px 0 #32261b,0 19px 18px #0005;transform:rotate(-4deg)}
.salon-preview>img{opacity:.83;object-position:center;filter:brightness(calc(1.15 - var(--room-shade,.35)))}
.salon-preview .object-preview.mascot-preview{right:15%;bottom:22%;width:125px}
.salon-preview .preview-title{max-width:48%;z-index:4}
.salon-preview .object-preview.lamp-preview{left:10%;bottom:25%;width:95px}
.chat-trigger{position:relative}.chat-trigger [data-chat-unread]{position:absolute;right:0;top:0;min-width:18px;line-height:18px;border-radius:10px;background:var(--gold);color:var(--gold-ink);font-size:10px;padding:0 4px}
.chat-trigger [data-voice-active]{position:absolute;bottom:2px;right:4px;width:8px;height:8px;border-radius:50%;background:var(--green)}
#social-root{position:fixed;inset:92px 20px 20px auto;width:min(440px,calc(100vw - 32px));z-index:80}
#social-root[hidden]{display:none}
.social-panel{height:100%;display:grid;grid-template-rows:auto auto minmax(70px,1fr) auto auto;background:#0d251d;border:1px solid #678060;border-radius:22px;box-shadow:0 20px 65px #0008;overflow:hidden}
.social-heading{padding:18px 18px 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:10px}
.social-heading h2{font-size:20px}.social-heading p{font-size:11px;color:var(--muted);margin-top:5px}
.live-voice{padding:13px 18px;background:#15382a;max-height:200px;overflow-y:auto;border-bottom:1px solid var(--line)}
.live-voice strong{display:flex;align-items:center;gap:7px;font-size:13px}.live-voice strong svg{width:18px}
.live-status{font-size:11px;line-height:1.7;color:#cbd8bd;margin-top:8px;min-height:19px}
.voice-participants{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}
.voice-person{display:inline-flex;align-items:center;gap:5px;border:1px solid #50674b;border-radius:16px;padding:5px 9px;font-size:10px;color:#c8d1b9}
.voice-person.connected{border-color:#82b895;color:#caf1d8}.voice-person svg{width:12px;height:12px}
.live-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px}.live-controls[hidden],.resume-audio[hidden]{display:none}
.voice-privacy{font-size:10px;color:#9fb59d;margin-top:9px;line-height:1.6}
.resume-audio{margin-top:8px}
.social-messages{overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;overscroll-behavior:contain}
.chat-message{background:#19382a;border:1px solid #405d463d;border-radius:13px 13px 13px 3px;max-width:91%;padding:11px 13px;align-self:flex-start;overflow-wrap:anywhere}
.chat-message.mine{background:#30452a;align-self:flex-end;border-radius:13px 13px 3px 13px;border-color:#bc9d574d}
.chat-meta{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:7px}.chat-meta strong{font-size:11px;color:#e7d5a6}.chat-meta time{font-size:9px;color:#a3b49a}
.chat-message p{font-size:12px;line-height:1.75;color:#e4e9d8}
.voice-message{display:flex;align-items:center;gap:9px;background:transparent;min-height:41px;text-align:left;font-size:12px;color:#e9dfbf;padding:3px}.voice-message svg{width:22px}
.chat-message audio,.recording-preview audio{width:100%;max-width:280px;height:36px;margin-top:8px;display:block}
.chat-composer{padding:12px 16px;border-top:1px solid var(--line);background:#102b21}
.chat-composer textarea{width:100%;min-height:60px;max-height:120px;resize:vertical;border:1px solid #526f50;border-radius:11px;background:#071c16;color:#eff1e2;padding:12px;font:13px/1.6 Arial,sans-serif;caret-color:var(--gold);outline-offset:3px}
.chat-composer>.row{margin-top:7px;gap:9px}.chat-composer>.row>.btn{min-height:43px;font-size:12px}
.recording-status{font-size:10px;line-height:1.5;color:var(--gold);flex:1}
.recording-preview .row{margin-top:9px}.recording-preview audio{max-width:100%}
.chat-footnote{font-size:9px;color:#9db096;text-align:center;padding:7px 12px 10px;background:#102b21}
.empty-chat{font-size:12px;line-height:1.8;color:var(--muted);padding:20px 8px;text-align:center;margin:auto}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes robot-focus{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes thinking-dot{0%,70%,100%{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}
@keyframes checky-talk{from{transform:translateY(1px) rotate(-1deg)}to{transform:translateY(-2px) rotate(1deg)}}
@media(min-width:1500px){body[data-route="game"] .main-shell:before{left:265px}}
@media(max-width:1150px){body[data-route="game"] .main-shell:before{left:185px}}
@media(max-width:900px){body[data-route="game"] .main-shell:before{left:83px}.immersive-game .game-side{padding-top:16px}.immersive-game .activity-list{margin-top:0}.studio-controls{gap:15px}}
@media(max-width:600px){
 body[data-route="game"] .main-shell:before{left:0;background-position:49% center}
 body[data-route="game"] .game-topline{padding:2px 2px 12px;gap:8px}.game-topline>.row{gap:3px}.game-topline>.row .pill{font-size:0;gap:0;padding:9px}.game-topline>.row .pill svg{width:17px;height:17px}.game-topline>.row .icon-button{width:39px;height:44px}.game-title{min-width:0;flex:1}.game-title p{max-width:140px;line-height:1.5;font-size:10px}
 .immersive-felt{margin-bottom:19px}.opponent .avatar.robot-avatar{width:37px;height:37px}.opponent{min-width:43px}.opponent strong{max-width:53px;font-size:10px}.bot-label{font-size:8px}
 .immersive-game .my-hand{padding:17px 10px 13px;border-radius:15px}.immersive-game .game-side{border-top:0;padding-inline:0}.immersive-game .game-hint{font-size:10px;line-height:1.7;padding:0}
 .robot-fairness{font-size:10px;margin-top:12px}.listen-guide{font-size:10px;min-height:38px}.tutorial-listen{gap:4px;margin-top:9px}.tutorial-listen .btn{font-size:11px;padding:9px 12px;min-height:40px}
 .bank-pile{min-width:74px}.bank-pile small{font-size:10px}.thinking-dots i{width:3px;height:3px}
 .studio-controls{gap:15px;padding:8px 0 23px}.studio-controls>div{flex-basis:100%}.studio-controls .field{min-width:120px;flex:1}.studio-controls>.btn{width:100%}
 .salon-preview .preview-title{max-width:47%;left:17px;bottom:15px}.salon-preview .preview-title p{font-size:10px}.salon-preview .object-preview.mascot-preview{width:90px;right:10%;bottom:26%}.salon-preview .object-preview.lamp-preview{width:70px;left:5%;bottom:27%}.preview-table{height:30%;bottom:27%;width:54%;left:23%}
 .robot-row{gap:8px;grid-template-columns:36px minmax(88px,1fr) minmax(80px,1fr)}.robot-row input,.robot-row select{font-size:14px}.robot-row .avatar{width:36px;height:36px}
 #social-root{inset:8px;width:auto;max-width:100%;z-index:90}.social-panel{border-radius:18px}.social-heading{padding:14px 15px 11px}.social-heading h2{font-size:18px}.social-heading p{font-size:10px}.live-voice{padding:10px 15px;max-height:175px}.social-messages{padding:12px;gap:10px}.chat-composer{padding:10px 12px}.chat-composer textarea{font-size:16px;line-height:1.5;min-height:54px}.chat-message p{font-size:12px}.chat-footnote{padding-bottom:8px}
}
@media(max-width:380px){.game-topline [aria-label="Personnaliser mon salon"]{display:none}}
@media(max-height:520px){.voice-privacy,.chat-footnote{display:none}.live-voice{max-height:120px}.social-heading{padding-block:8px}.social-heading p{display:none}.chat-composer textarea{min-height:44px;height:44px}.social-panel{grid-template-rows:auto auto minmax(40px,1fr) auto auto}}
@media(prefers-reduced-motion:reduce){.thinking-dots i,.opponent.current .robot-emblem,.checky-speaking .companion-box img,.checky-speaking .tutorial-narrator img{animation:none}.bank-pile{transition:none}}
body[data-motion="off"] .thinking-dots i,body[data-motion="off"] .opponent.current .robot-emblem,body[data-motion="off"] .companion-box img{animation:none}

/* Conversation requested full-screen, with the actual running table behind it. */
#social-root{inset:0;width:auto;max-width:none;z-index:90}
.social-panel{border:0;border-radius:0;background:#061c16b8;backdrop-filter:blur(3px);padding:18px max(22px,calc((100vw - 1120px)/2));grid-template-columns:minmax(220px,310px) minmax(0,1fr);grid-template-rows:auto minmax(100px,1fr) auto auto;column-gap:24px}
.social-heading{grid-column:1/-1;background:transparent;padding:12px 0 20px;margin-bottom:14px;border-color:#d2bd8940}
.social-heading h2{font-size:25px}.social-heading p{font-size:12px;color:#d2ddc5}
.live-voice{grid-column:1;grid-row:2/4;max-height:none;align-self:start;background:#173a2bba;border:1px solid #8ba77a50;border-radius:16px;padding:20px;overflow:auto}
.social-messages{grid-column:2;grid-row:2;background:#071b1745;border:1px solid #91a67d30;border-bottom:0;border-radius:16px 16px 0 0}
.chat-composer{grid-column:2;grid-row:3;background:#102b21b8;border-inline:1px solid #91a67d30}
.chat-footnote{grid-column:2;grid-row:4;background:#102b21b8;border:1px solid #91a67d30;border-top:0;border-radius:0 0 16px 16px}
.chat-message{background:#19382add}.chat-message.mine{background:#344c2ce6}
.event-announcement{position:fixed;inset:0;display:grid;place-items:center;pointer-events:none;z-index:85;text-align:center}
.event-announcement>div{padding:25px 44px;background:radial-gradient(ellipse,#103b2de8,#08251bdc 60%,transparent 74%);min-width:260px;animation:announcement-enter .35s cubic-bezier(.16,1,.3,1) both}
.event-announcement strong{font:700 clamp(42px,9vw,100px)/1.1 var(--font);color:#f2d18a;display:block;letter-spacing:-.04em;text-shadow:0 5px 22px #0008}
.event-announcement p{font-size:15px;line-height:1.7;color:#f5efdb;margin-top:12px;text-shadow:0 2px 8px #000}
.event-announcement.games strong{color:#fbdf9c;animation:games-arrive .55s cubic-bezier(.16,1,.3,1) both}
.event-announcement.check strong{font-size:clamp(40px,7vw,80px)}
.event-announcement.compact{align-items:start;padding-top:18vh}.event-announcement.compact>div{background:#18372deb;border:1px solid #a7be7755;border-radius:19px;padding:20px 30px}.event-announcement.compact strong{font-size:29px;letter-spacing:-.02em}.event-announcement.penalty strong{color:#f1ada3}
.event-announcement.command>div{background:#102d23e8;border:1px solid #d5b36e;border-radius:25px}.event-announcement.command strong{font-size:35px}.command-family{font:80px/1 Georgia,serif;color:#f1d99e;display:block;margin-bottom:10px}
.event-announcement.outcome>div{background:radial-gradient(ellipse,#173d2de8,#071b17dd 65%,transparent 75%);padding:50px}.event-announcement.outcome strong{font-size:clamp(32px,6vw,70px)}.event-announcement.defeat strong{color:#d7dfd2}.outcome-symbol{display:block;width:82px;height:82px;margin:0 auto 15px;color:var(--gold)}.outcome-symbol svg{width:100%;height:100%}
.game-confetti{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:86}
@keyframes announcement-enter{from{opacity:0;transform:translateY(15px) scale(.93)}to{opacity:1;transform:none}}
@keyframes games-arrive{from{opacity:.3;transform:scale(.65) rotate(-5deg)}to{opacity:1;transform:scale(1) rotate(0)}}
@media(max-width:700px){.social-panel{display:grid;padding:8px 12px 10px;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(65px,1fr) auto auto;column-gap:0}.social-heading{grid-column:1;grid-row:1;margin-bottom:8px;padding:10px 0 13px}.social-heading h2{font-size:20px}.social-heading p{font-size:10px}.live-voice{grid-column:1;grid-row:2;max-height:165px;padding:11px 13px;margin-bottom:10px;border-radius:13px}.social-messages{grid-column:1;grid-row:3}.chat-composer{grid-column:1;grid-row:4}.chat-footnote{grid-column:1;grid-row:5}.event-announcement p{font-size:12px}.event-announcement>div{padding:25px 25px;min-width:240px}.event-announcement.command strong{font-size:29px}.command-family{font-size:65px}}
@media(max-height:520px){.social-panel{padding-block:5px}.social-heading{padding-block:6px;margin-bottom:5px}.social-heading h2{font-size:17px}.live-voice{max-height:110px;padding:8px}.chat-composer{padding:7px}.social-messages{min-height:40px}.social-panel{grid-template-rows:auto auto minmax(40px,1fr) auto auto}}
@media(prefers-reduced-motion:reduce){.event-announcement>div,.event-announcement.games strong{animation:none}}
body[data-motion="off"] .event-announcement>div,body[data-motion="off"] .event-announcement.games strong{animation:none}
/* Keep connection controls in sight; only a long participant list scrolls. */
.voice-participants{max-height:72px;overflow-y:auto}
@media(max-width:700px) and (min-height:600px){.social-panel .live-voice{max-height:235px;overflow:visible}}
@media(max-width:600px){body[data-route="game"] .game-topline{padding:10px 8px;margin-bottom:5px}}
