/* Shared responsive shell and game catalogue. */
[hidden]{display:none!important}html{scroll-behavior:smooth}body{overflow-wrap:break-word}main{width:100%;max-width:1440px;padding-inline:clamp(12px,3vw,40px)}.topbar{max-width:1440px;padding:22px clamp(16px,3vw,40px);gap:16px}.account-nav{display:flex;align-items:center;gap:12px;min-width:0}#account-name{max-width:150px;overflow:hidden;text-overflow:ellipsis}.brand{flex-shrink:0}.portal-hero{padding:clamp(40px,7vw,88px) 0 44px;max-width:820px}.portal-hero h1{font-size:clamp(36px,5.5vw,68px);letter-spacing:-2px}.portal-hero h1 span{color:#c2d6c8}.portal-hero>p:not(.eyebrow){font-size:17px;line-height:1.8;color:#aac6b5;max-width:580px}.portal-link{display:inline-flex;align-items:center;justify-content:center;gap:24px;text-decoration:none;border-radius:12px;min-height:48px;padding:14px 22px;font-weight:700}.portal-hero .portal-link{border:1px solid #ffffff25;margin-top:12px}.games-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(220px,1fr);gap:24px}.game-card{overflow:hidden;border:1px solid #9ebba238;background:#15392e;border-radius:24px;box-shadow:0 18px 60px #0002}.game-card>img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}.game-card-body{padding:clamp(22px,3vw,34px)}.game-card h2{font-size:30px;margin-top:12px}.game-card p,.coming-games p{color:#b6cbbd;line-height:1.8;font-size:14px}.game-tag,.catalog-count{font-size:10px;letter-spacing:1.5px;color:#e8c98e}.game-facts{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.game-facts span{border:1px solid #ffffff1c;border-radius:24px;padding:7px 10px;color:#c1d3c6;font-size:11px}.game-card .portal-link{width:100%;justify-content:space-between}.coming-games{border:1px dashed #a5c1aa40;border-radius:24px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:32px;background:#ffffff02}.coming-games>span:first-child{font-size:48px;color:#e6c382}.coming-games h3{font-size:24px;margin-bottom:0}.coming-games .game-tag{margin-top:18px}.lobby-heading{padding:32px 0}.back-link{display:inline-block;color:#acc6b8;text-decoration:none;font-size:13px;margin-bottom:26px}.lobby-heading h1{font-size:clamp(30px,4vw,44px)}.lobby-heading .eyebrow{margin-bottom:8px}.lobby-heading button{margin-top:12px}.lounge{margin-top:12px}.join-panel{margin:24px 0;box-shadow:none}.join-panel .join-note{display:none}.join-panel #code{max-width:380px}.join-panel #join{max-width:380px}.create-details{margin:24px 0;scroll-margin-top:20px}.create-details summary{min-height:48px;cursor:pointer;padding:16px;font-weight:700}.setup-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.section-heading{justify-content:space-between;flex-wrap:wrap}.auth-view{min-height:65vh;display:grid;place-items:center}.auth-panel{width:min(100%,460px);margin:32px auto}.room-header{margin-top:24px}.room-tools{flex-wrap:wrap}.room-tools button,.voice-actions button{min-height:44px}.host-actions{display:flex;flex-wrap:wrap;gap:10px}.host-actions:empty{display:none}.voice-panel{padding:12px 16px;margin-bottom:16px}.table-arena{grid-template-columns:112px minmax(0,1fr) 112px;gap:12px}.table-arena>.game-surface{zoom:1;width:100%;padding:16px!important}.table-arena .table-top{align-items:center;padding:0 0 8px}.table-arena .table-top-tools{gap:6px;flex-wrap:wrap}.table-arena .table-top .sound-toggle{font-size:11px;min-height:42px;padding:9px 12px;color:#e4eadd}.table-arena #notice{font-size:12px;line-height:1.5}.table-arena .player{border-radius:16px}.table-arena .player-name{font-size:12px}.table-arena .player-detail{font-size:10px}.table-arena .player-team-badge{font-size:9px}.table-arena .table-pass{min-height:44px;padding:10px 16px!important;font-size:12px}.table-controls .hand{gap:9px;margin:12px 0!important}.table-controls .turn-info{font-size:12px;line-height:1.5}.table-controls .action-row button{min-height:44px;font-size:12px}.table-controls .hand-clock .turn-clock{min-width:140px}.table-bottom{opacity:.7}.avatar-mic{width:30px;height:30px;min-height:30px}.player-avatar{margin:3px 6px 3px 0}dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overscroll-behavior:contain}input,select{font-size:16px}footer{line-height:1.6;flex-wrap:wrap}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #f5cf82;outline-offset:3px}
@media(max-width:1000px){.table-arena{grid-template-columns:88px minmax(0,1fr) 88px;gap:8px}.play-zone{grid-template-columns:40px minmax(0,1fr) 40px;gap:6px}.games-grid{grid-template-columns:minmax(0,1.8fr) minmax(200px,1fr)}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.table-arena .table-top>span{display:none}}
/* On phones cards move into their own rows, giving the board the full width. */
@media(max-width:700px){.topbar{padding:16px 12px}.brand{font-size:19px;gap:8px}.brand small{font-size:6px;letter-spacing:1px}.brand-icon{width:28px;height:36px;font-size:25px}.account-nav{gap:6px;font-size:11px}.account-nav button{padding:8px;font-size:11px;min-height:44px}#account-name{max-width:75px}.portal-hero{padding-top:40px}.portal-hero h1{letter-spacing:-1.3px}.games-grid{grid-template-columns:1fr}.coming-games{padding:24px}.coming-games>span:first-child{font-size:26px}.catalog-count{font-size:9px}.game-card h2{font-size:26px}.table-arena{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:'west north east' 'felt felt felt' 'south south south';gap:10px 6px}.table-arena>.game-surface{padding:10px 7px!important;border-radius:18px}.table-arena .player{min-height:96px;padding:8px 5px!important}.table-arena .arena-seat-top,.table-arena .arena-seat-left,.table-arena .arena-seat-right{align-self:stretch;display:flex!important;flex-direction:column;text-align:center;gap:6px}.table-arena .arena-seat-bottom{display:flex;flex-direction:row;text-align:left;width:min(100%,300px);min-height:60px;justify-content:center}.table-arena .arena-seat-top .avatar,.table-arena .arena-seat-bottom .avatar{display:grid}.table-arena .player-name,.table-arena .arena-seat-left .player-name,.table-arena .arena-seat-right .player-name{font-size:11px;white-space:normal;overflow-wrap:anywhere}.table-arena .player-detail{font-size:9px}.table-arena .player-team-badge{font-size:8px}.table-arena .player-clock-slot .turn-clock span{font-size:8px}.table-arena .table-top-tools{justify-content:space-between}.table-arena .table-top .sound-toggle{font-size:10px;padding:8px;min-height:44px}.table-arena #ends{display:none}.play-zone{grid-template-columns:30px minmax(0,1fr) 30px;gap:4px}.opponent-top{min-height:36px;margin:6px 0}.table-controls .hand .tile{width:43px;height:82px}.table-controls .hand{gap:5px}.table-controls .hand-panel{grid-template-columns:minmax(0,1fr) auto}.table-controls .hand-clock{grid-column:2;grid-row:1;margin:0}.table-controls .hand-clock .turn-clock{min-width:0;padding:6px 8px;gap:8px}.hand-clock .turn-clock span{font-size:9px}.table-controls .hand{grid-column:1/-1}.table-controls .turn-info{grid-column:1/-1;grid-row:auto;font-size:11px}.table-controls .action-row{grid-column:1/-1;grid-row:auto}.table-arena .table-controls{min-height:0}.table-arena .table-pass{min-height:44px;font-size:11px}.table-bottom{display:none}.room-header{gap:10px;margin:20px 0 12px}.room-header h1{font-size:25px}.room-header .eyebrow{display:none}.room-header .muted{margin:6px 0}.room-tools{width:100%;gap:8px}.connection{flex-basis:100%}.room-tools button{flex:1}.voice-panel{gap:8px}.voice-panel strong{font-size:12px}.voice-panel p{font-size:11px}.voice-actions{width:100%}.voice-actions button{flex:1}.table-arena #notice{font-size:11px}.table-arena .player-clock-slot .turn-clock{padding:5px}.panel{padding:20px}.section-heading{gap:10px}.section-heading h2{font-size:22px}.join-panel{padding:20px}.result-modal{padding:24px 16px}.result-modal h2{font-size:27px}}
@media(max-width:370px){.brand small,#account-name{display:none}.table-arena .table-top .sound-toggle{padding:7px 5px;font-size:9px}.form-grid{grid-template-columns:1fr}.table-controls .hand-heading h2{font-size:15px}.table-controls .hand-clock .turn-clock span{max-width:55px}.table-controls .hand{gap:4px}}
@media(max-height:550px) and (orientation:landscape){body.table-fullscreen .table-arena{grid-template-columns:80px minmax(0,1fr) 80px;grid-template-areas:'. north .' 'west felt east' '. south .';max-width:1100px}.table-arena .table-top .sound-toggle{min-height:40px}.portal-hero{padding-top:28px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media(min-width:1100px){.game-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:stretch}.game-card>img{height:100%;aspect-ratio:auto;object-fit:cover}.game-card-body{display:flex;flex-direction:column;justify-content:center}.game-card .portal-link{margin-top:auto}.portal-hero{padding-bottom:36px}}
@media(max-width:700px){.table-controls .hand{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;padding:8px 4px 12px!important;scroll-padding:8px}.table-controls .hand button{flex:0 0 auto}.table-controls .hand-panel:after{content:'Toque na peça e depois na ponta marcada';grid-column:1/-1;color:#b8cdbb;font-size:10px;line-height:1.5}.table-arena .chain-table{min-height:260px}}
/* Lobby: clear primary action, invitation entry and available seats. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
#home{max-width:1200px;margin:auto}.lobby-heading{padding:24px 0}.lobby-heading .back-link{margin-bottom:18px}.lobby-banner{display:flex;justify-content:space-between;align-items:center;gap:24px}.lobby-banner h1{font-size:clamp(30px,3.7vw,46px);line-height:1.15}.lobby-banner img{width:230px;height:140px;object-fit:cover;border-radius:20px;border:1px solid #dfc58d25}.lobby-banner .muted{margin-bottom:0;max-width:480px}.lobby-actions{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:10px 0 34px}.create-shortcut,#home .join-panel{border:1px solid #9ab99f38;border-radius:18px;padding:22px;background:linear-gradient(135deg,#254938,#15382d);margin:0;min-width:0;box-shadow:0 6px 24px #0001}.create-shortcut{display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;align-items:center}.shortcut-icon{width:44px;height:44px;border-radius:13px;background:#e9c17a15;border:1px solid #e9c17a35;display:grid;place-items:center;color:var(--gold);font-size:26px}.lobby-actions h2{font-size:19px;letter-spacing:-.5px}.lobby-actions p{color:#b3c7b8;font-size:12px;line-height:1.6;margin:6px 0 0}.create-shortcut button{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;min-height:48px;margin-top:4px;box-shadow:0 3px 0 #ac894e,0 6px 18px #0002}.create-shortcut button:active{transform:translateY(2px);box-shadow:0 1px 0 #ac894e}.invite-input{display:flex;gap:8px;margin-top:16px}.invite-input input{flex:1;min-width:0}#home .join-panel #code{min-height:48px;letter-spacing:3px;font-size:17px;padding:10px 12px}#home .join-panel #join{width:auto;max-width:none;margin:0;min-height:48px;white-space:nowrap;background:#e2eedb12;border:1px solid #b5cfa560;padding:10px 16px;font-size:13px}#home #join-code-error{color:#ffb7a8;font-size:11px;line-height:1.5;margin:8px 0 0}#join-code-error:empty{display:none}.lounge{margin-top:0}.lounge>.section-heading{margin-bottom:16px}.lounge>.section-heading h2{font-size:26px}.room-total{display:inline-grid;place-items:center;vertical-align:middle;font:12px sans-serif;color:#dbc18e;background:#e9c17a15;border-radius:8px;min-width:28px;height:28px;margin-left:8px}#refresh-rooms{min-height:44px;border:1px solid #9bb7a533;color:#c9dbcf}.room-filters{display:flex;align-items:center;gap:8px;margin:0 0 20px;flex-wrap:wrap}.room-filters button{background:transparent;border:1px solid #b0c6b52b;border-radius:24px;color:#a9c0b1;padding:10px 16px;font-size:12px;min-height:44px}.room-filters button[aria-pressed=true]{background:#e9c17a19;border-color:#e9c17a88;color:#f5d493}.room-filters>span{margin-left:auto;font-size:11px;color:#91aa9a}.lobby-empty{grid-column:1/-1;text-align:center;border:1px dashed #b3c7ad40;border-radius:20px;padding:36px 20px;background:radial-gradient(ellipse at top,#32543d38,transparent)}.empty-symbol{display:inline-grid;place-items:center;width:56px;height:56px;border-radius:50%;color:#e9c17a;background:#e9c17a0c;font-size:34px}.lobby-empty h3{font-size:22px;margin:16px 0 8px}.lobby-empty p{font-size:13px;color:#a6bead;line-height:1.7;margin:0 auto 22px;max-width:390px}.lobby-empty button{min-height:48px;padding-inline:24px}.room-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));align-items:start}.room-card{padding:20px;border-radius:20px;box-shadow:0 8px 30px #0002}.room-card-header{display:flex;gap:12px;align-items:center;justify-content:space-between}.room-card-header h3{margin:0;font-size:18px;overflow-wrap:anywhere;min-width:0}.room-state{flex-shrink:0;font-size:10px;padding:6px 9px;border-radius:20px;color:#c5c3b3;background:#ffffff0a;border:1px solid #ffffff15}.room-state.available{color:#a0e4b5;background:#65cc7f12;border-color:#65cc7f40}.room-card-meta{font-size:11px;color:#94b09c;margin:8px 0 0}.room-card-rules{font-size:11px;color:#b6cbb9;border-top:1px solid #ffffff12;padding-top:15px;margin:12px 0 0;text-align:center;line-height:1.8}.room-card .lobby-table{height:290px}.room-card .lobby-table-center{top:86px;height:120px;font-size:13px}.room-card .chair{width:98px;min-height:66px;gap:2px;border:1px solid #d6bd7e75;background:#2b4d39;color:#f3e2b6;border-bottom-width:3px;border-radius:12px}.room-card .chair-1,.room-card .chair-3{top:111px}.room-card .chair.occupied{background:#142e26;border-color:#77947c30;color:#b7cbbd;opacity:1}.room-card .chair:not(:disabled):hover{background:#48623e;border-color:#f0cf85;box-shadow:0 0 0 3px #e9c17a15}.room-card .chair-icon{font-size:17px}.room-card .chair strong{font-size:11px}.room-card .chair small{font-size:8px}.clear-room-filter{grid-column:1/-1;justify-self:start}#create-room-modal{width:min(720px,calc(100vw - 24px));padding:24px;border:1px solid #a9bf9760;border-radius:22px;background:#14352b;color:#edf2e7;box-shadow:0 24px 80px #0006;overflow:auto}#create-room-modal::backdrop{background:#031b15b8;backdrop-filter:blur(7px)}.create-modal-header{display:flex;justify-content:space-between;gap:16px;align-items:center}.create-modal-header .eyebrow{font-size:9px;margin-bottom:5px}#close-create{min-width:44px;font-size:24px;padding:4px}.create-modal-header h2{font-size:27px}#create-room-modal .create-details{margin:0;padding:0;border:0}#create-room-modal summary,#create-room-modal .setup>.section-heading{display:none}#create-room-modal .setup{padding:22px 0 0;background:none;border:0;box-shadow:none}#create-room-modal .form-grid{grid-template-columns:1fr 1fr}#create-room-modal #create{position:sticky;bottom:0;justify-content:center;gap:12px;min-height:50px;box-shadow:0 0 0 8px #14352b}#create-room-modal .micro{font-size:11px;line-height:1.7;padding:12px 0}#create-room-modal label{font-size:12px}
@media(max-width:700px){.lobby-banner img{display:none}.lobby-actions{grid-template-columns:1fr;gap:12px;margin-bottom:28px}.create-shortcut,#home .join-panel{padding:18px}.create-shortcut{grid-template-columns:38px minmax(0,1fr) auto;gap:10px}.shortcut-icon{width:38px;height:38px}.create-shortcut button{grid-column:auto;margin:0;font-size:12px;padding:12px;gap:8px}.create-shortcut h2{font-size:16px}.create-shortcut p{font-size:11px}.lobby-banner h1{font-size:34px}.lounge>.section-heading h2{font-size:22px}.room-filters>span{width:100%;margin:4px 0 0}.room-card{padding:18px 12px}.room-card-header h3{font-size:16px}.room-card .chair{width:86px}.room-card .lobby-table-center{font-size:12px}.lobby-empty{padding:28px 16px}.lobby-empty h3{font-size:20px}#create-room-modal{padding:20px 16px}#create-room-modal .form-grid{gap:18px 12px}.room-card-rules{font-size:10px}}
@media(max-width:370px){.create-shortcut{grid-template-columns:36px minmax(0,1fr)}.create-shortcut button{grid-column:1/-1}.invite-input{flex-wrap:wrap}.invite-input input{flex-basis:100%}#home .join-panel #join{width:100%}.room-card .chair{width:76px}.room-card .chair strong{font-size:10px}.room-card .chair small{font-size:7px}#create-room-modal .form-grid{grid-template-columns:1fr}}
/* Keep individual tables compact even when only one room exists. */
#home .room-list{grid-template-columns:repeat(auto-fill,minmax(min(100%,350px),1fr))}.room-card .chair small{white-space:nowrap;font-size:7px}.room-card .chair{min-height:74px}
@media(min-width:1100px){#home .room-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Player cards: consistent identity, team accent and a dedicated clock row. */
.table-arena .player{--team-accent:#71dba0;position:relative;border-radius:16px!important;padding:14px 10px!important;gap:10px!important;overflow:visible;transition:background .18s,outline-color .18s}
.table-arena .player.team-own{border:1px solid #71dba06b!important;background:linear-gradient(150deg,#1d4034,#142f27)!important;box-shadow:inset 0 3px #71dba0,0 6px 18px #0002!important}
.table-arena .player.team-enemy{--team-accent:#f19b9b;border:1px solid #ed919161!important;background:linear-gradient(150deg,#3d2d30,#2d2528)!important;box-shadow:inset 0 3px #ed9191,0 6px 18px #0002!important}
.table-arena .player.active{outline:2px solid #f0ca80;outline-offset:3px}
.table-arena .player .avatar{display:grid!important;place-items:center;width:40px;height:40px;border-radius:13px;background:#ffffff0c;color:var(--team-accent);border:1px solid #ffffff13;font-size:18px;flex-shrink:0}
.table-arena .player .player-avatar{width:44px;height:46px;margin:0 4px 0 0;flex-shrink:0;display:flex;align-items:center}
.table-arena .player .player-copy{width:100%;min-width:0}
.table-arena .player .player-name{font-size:12px!important;line-height:1.4;font-weight:700;color:#f5f1e7;white-space:normal!important;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.table-arena .player .player-team-badge{color:var(--team-accent);background:#ffffff07;border:1px solid #ffffff0d;font-size:9px!important;padding:3px 7px;margin-top:6px;border-radius:6px;line-height:1.3}
.table-arena .player .player-detail{font-size:9px!important;line-height:1.5;color:#bac7bd;margin-top:6px}
.table-arena .player.team-enemy .player-detail{color:#cfbabb}
.table-arena .player .player-clock-slot{grid-column:1/-1;width:100%;margin-top:1px}
.table-arena .player .player-clock-slot .turn-clock{display:flex;flex-direction:column;gap:3px;border:0;border-radius:8px;padding:7px 5px;background:#00000024;box-shadow:none}
.table-arena .player .player-clock-slot .turn-clock span{font-size:8px;color:#e2d3b2;line-height:1.4}
.table-arena .player .player-clock-slot .turn-clock strong{font-size:20px;line-height:1.2;min-width:0;text-align:center}
.table-arena .arena-seat-top,.table-arena .arena-seat-bottom{display:grid!important;grid-template-columns:44px minmax(0,1fr);text-align:left!important;align-items:center;justify-items:stretch;width:min(100%,285px)}
.table-arena .arena-seat-top .player-clock-slot .turn-clock,.table-arena .arena-seat-bottom .player-clock-slot .turn-clock{flex-direction:row;justify-content:space-between;padding:7px 10px}
.table-arena .player .avatar-mic{width:30px;height:30px;min-height:30px;bottom:-3px;right:-5px;padding:0;border:2px solid #16372d;box-shadow:0 2px 5px #0005;font-size:13px;z-index:1}
.table-arena .team-enemy .avatar-mic{border-color:#37282b}
.table-arena .player button.avatar-mic:before{content:'';position:absolute;inset:-7px;border-radius:50%}
.table-arena .player button.avatar-mic:hover{transform:none;filter:brightness(1.2)}
.table-arena .player.voice-speaking .avatar{box-shadow:0 0 0 3px #72dba040;border-color:#72dba0}
@media(max-width:700px){.table-arena .player{padding:12px 6px 9px!important;gap:8px!important;min-height:0}.table-arena .arena-seat-top,.table-arena .arena-seat-left,.table-arena .arena-seat-right{display:flex!important;flex-direction:column;text-align:center!important;justify-content:flex-start}.table-arena .player .avatar{width:34px;height:34px;font-size:16px;border-radius:11px}.table-arena .player .player-avatar{height:37px;width:38px;margin:0 3px 0 0}.table-arena .player .player-name{font-size:11px!important}.table-arena .player .player-team-badge{font-size:8px!important;padding:3px 5px}.table-arena .player .player-detail{font-size:8px!important;margin-top:5px}.table-arena .arena-seat-top .player-clock-slot .turn-clock{flex-direction:column;padding:7px 5px}.table-arena .arena-seat-bottom{display:grid!important;grid-template-columns:42px minmax(0,1fr);padding:12px 16px!important;min-height:70px}.table-arena .player .player-clock-slot{margin-top:auto}.table-arena .player .avatar-mic{width:28px;height:28px;min-height:28px}}
/* Voice belongs to the local player, progression belongs to the table. */
#game>.voice-panel{display:none}.table-arena .player>.voice-panel{grid-column:1/-1;width:100%;display:block;margin:4px 0 0;padding:10px 0 0;border:0;border-top:1px solid #ffffff15;border-radius:0;background:none;text-align:left}.player .voice-panel>div:first-child>strong,.player #voice-members{display:none}.player .voice-panel p{font-size:10px;line-height:1.5;margin:0 0 8px}.player .voice-actions{display:flex;gap:6px;flex-wrap:wrap;width:100%}.player .voice-actions button{flex:1;min-height:40px;padding:8px;font-size:10px}.table-arena .player .avatar-mic{position:static;width:32px;height:32px;min-height:32px;margin-left:6px;flex-shrink:0;border:1px solid #8caa9577;border-radius:10px}.table-arena .player .player-avatar{width:auto;min-width:78px;gap:0}.table-arena .arena-seat-bottom{grid-template-columns:80px minmax(0,1fr);width:min(100%,340px)}.table-round-actions{grid-column:1/-1;display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.table-round-actions:not(:has(button:not([hidden]))){display:none}.table-round-actions button{min-height:48px;min-width:190px}.host-actions:not(:has(button:not([hidden]))){display:none}body.table-fullscreen .player>.voice-panel{display:block}
@media(max-width:700px){.table-arena .arena-seat-bottom{grid-template-columns:78px minmax(0,1fr)}.table-arena .player .player-avatar{min-width:72px}.table-arena .player .avatar-mic{margin-left:5px}.table-round-actions button{width:100%}}
/* The modal owns progression until dismissed; the table is the fallback. */
body:has(#result-modal[open]) .table-round-actions #next,body:has(#result-modal[open]) .table-round-actions #restart{display:none!important}
/* Catalog cards share the same structure at every viewport width. */
#games-catalog .games-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
#games-catalog .game-card{display:flex;flex-direction:column;min-width:0}
#games-catalog .game-card>img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;flex:none}
#games-catalog .game-card-body{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;flex:1;min-width:0;gap:0;padding:28px}
#games-catalog .game-card h2{font-size:clamp(24px,2.5vw,32px);line-height:1.2;overflow-wrap:normal;word-break:normal;margin:14px 0 12px}
#games-catalog .game-card p{margin:0;line-height:1.7}
#games-catalog .game-facts{margin:22px 0 26px}
#games-catalog .game-card .portal-link{box-sizing:border-box;margin-top:auto;gap:16px;min-height:50px}
#games-catalog .coming-games{grid-column:1/-1;padding:24px 28px;gap:8px}
#games-catalog .coming-games>span:first-child{font-size:28px}
#games-catalog .coming-games h3,#games-catalog .coming-games p,#games-catalog .coming-games .game-tag{margin:0}
@media(max-width:700px){#games-catalog .games-grid{grid-template-columns:minmax(0,1fr);gap:20px}#games-catalog .game-card-body{padding:22px}#games-catalog .coming-games{padding:22px}}
/* The login follows the same welcome + entry panel layout as the games. */
#auth-view{width:100%;max-width:1096px;margin:20px auto 40px;min-height:65vh;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.85fr);gap:70px;align-items:center;padding:24px 0}
.auth-welcome{min-width:0}.auth-welcome .back-link{margin-bottom:30px}.auth-welcome .eyebrow{font-size:10px;letter-spacing:2px;color:#e9c37f}.auth-welcome h2{font-size:clamp(38px,5vw,64px);line-height:1.1;letter-spacing:-2px;margin:22px 0}.auth-welcome h2 span{color:#a9c7b7}.auth-welcome>p:not(.eyebrow){font-size:16px;color:#aac3b2;line-height:1.8;max-width:450px}.auth-tags{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0}.auth-tags span{font-size:11px;color:#c7d6c9;border:1px solid #c8dbb525;border-radius:30px;padding:6px 12px}.auth-welcome img{display:block;width:100%;height:auto;max-height:230px;object-fit:cover;border-radius:22px;border:1px solid #ffffff10}.auth-welcome .auth-caption{font-size:12px!important;margin:16px 0 0}#auth-view .auth-panel{width:100%;max-width:none;margin:0;padding:32px;border-radius:24px;border:1px solid #d8e2bb26;background:linear-gradient(145deg,#23463a,#16382d);box-shadow:0 24px 70px #0003}#auth-view .auth-panel .eyebrow{font-size:9px;letter-spacing:2px;color:#e9c37f;margin:0 0 16px}#auth-title{font-size:29px;line-height:1.2;letter-spacing:-.8px;margin:0 0 14px}#auth-subtitle{font-size:13px;color:#adc3b4;line-height:1.7;margin-bottom:26px}#auth-form label{font-size:12px;color:#d8dfd2}#auth-form input{min-height:50px;background:#102c24;border:1px solid #839d8255;border-radius:10px;padding:14px;font-size:16px}#auth-form input:focus{outline:2px solid #e9c37f;outline-offset:2px}#auth-submit{min-height:50px;border-radius:10px}#auth-error{font-size:12px;color:#ffb4ae}#auth-switch{font-size:12px;margin-top:14px;min-height:44px}@media(max-width:800px){#auth-view{grid-template-columns:1fr;gap:28px;padding:10px 0;margin-top:0}.auth-welcome h2{font-size:42px}.auth-welcome .back-link{margin-bottom:18px}.auth-welcome img{max-height:160px}.auth-welcome .auth-caption{display:none}#auth-view .auth-panel{padding:26px}.auth-tags{margin:18px 0}.auth-welcome>p:not(.eyebrow){font-size:14px}}

/* Keep the desktop seating order on tablets and phones. */
@media(max-width:1000px){
 .table-arena{grid-template-areas:'. north .' 'west felt east' '. south .';grid-template-columns:clamp(48px,8vw,88px) minmax(0,1fr) clamp(48px,8vw,88px);gap:10px 5px}
 .table-arena .arena-seat-top{display:grid!important;grid-template-columns:44px minmax(0,1fr);text-align:left!important;justify-self:center}
 .table-arena .arena-seat-left,.table-arena .arena-seat-right{align-self:center}
 .table-arena .arena-seat-left .player-avatar,.table-arena .arena-seat-right .player-avatar{min-width:0;width:auto;flex-wrap:wrap;justify-content:center}
 .table-arena>.game-surface{padding:10px 5px!important}
 .table-arena .table-top-tools{justify-content:center}
 .table-controls .hand{flex-wrap:wrap;justify-content:center}
 .table-arena .arena-seat-bottom{grid-column:1/-1}
}
