/* Escape the call panel's clipping and use the phone's full landscape surface. */
html.nexo-arcade-open{overflow:hidden!important}
html.nexo-identity body>.chat.nexo-arcade-portal{position:fixed!important;inset:auto!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%);width:var(--arcade-width)!important;height:var(--arcade-height)!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;display:block!important;overflow:hidden!important;z-index:20000!important;border:0!important;border-radius:0!important;background:#091625!important;box-sizing:border-box!important;zoom:1!important}
html.nexo-identity body>.chat.nexo-arcade-portal.nexo-arcade-rotated{transform:translate(-50%,-50%) rotate(90deg)!important}
html.nexo-identity body>.nexo-arcade-portal>.game-stage{container-type:size!important;display:grid!important;grid-template-rows:48px minmax(0,1fr) 18px!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;box-sizing:border-box!important}
html.nexo-identity body>.nexo-arcade-portal>.game-stage[hidden]{display:none!important}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .activity-header{position:relative!important;inset:auto!important;min-height:0!important;padding:5px max(10px,env(safe-area-inset-left))!important;box-sizing:border-box!important;flex-wrap:nowrap!important}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .activity-header h3{font-size:15px!important}html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .game-eyebrow{font-size:8px!important}.nexo-arcade-portal .activity-header button{flex-shrink:0!important}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .activity-content{height:100%!important;min-height:0!important;min-width:0!important;max-height:none!important;padding:8px max(12px,env(safe-area-inset-right))!important;overflow:auto!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;gap:6px!important}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .activity-content>*{flex-basis:auto!important;min-height:0!important}
.nexo-arcade-portal .activity-status{font-size:8px!important;margin:0!important;padding:2px 12px!important;overflow:hidden!important;white-space:nowrap;text-overflow:ellipsis}
/* Card tables reserve room for the dealer, complete hands and action controls. */
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .casino-table{width:100%!important;flex:1 0 180px!important;min-height:180px!important;max-height:none!important;margin:8px 0 0!important;padding:30px 14px 12px!important;border-width:5px!important;border-radius:70px 70px 28px 28px!important;box-sizing:border-box!important;overflow:visible!important;display:flex!important;flex-direction:column!important;gap:8px!important}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .casino-table .table-dealer{position:absolute!important;top:-12px!important;left:50%!important;transform:translateX(-50%);margin:0!important;display:flex!important}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .casino-table :is(.table-player-hands,.dealer-hand,.table-seat,.game-card-row){max-height:none!important;overflow:visible!important;min-height:min-content!important}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .table-player-hands{display:flex!important;align-items:start!important;justify-content:space-evenly!important;flex-wrap:wrap!important;gap:10px!important;flex:1 0 auto!important}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .table-seat{flex:1 1 160px!important;display:grid!important;justify-items:center!important;gap:4px!important;box-sizing:border-box!important}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .game-card-row{flex-wrap:wrap!important;gap:5px!important;margin:3px 0!important}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .casino-table .game-card{height:clamp(54px,20cqh,86px)!important;width:auto!important;aspect-ratio:.69!important;flex:none!important;box-sizing:border-box!important;max-height:none!important;max-width:none!important}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .poker-table .poker-cards{container-type:normal!important;display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:6px!important}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .poker-table .poker-cards>.discard-card{height:clamp(54px,20cqh,86px)!important;width:auto!important;aspect-ratio:.69!important;max-height:none!important;max-width:none!important}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .poker-table .poker-cards>.discard-card>.game-card{height:100%!important;width:100%!important}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .game-control-deck{flex:0 0 auto!important;flex-wrap:wrap!important;min-height:38px!important;margin:0!important;padding:5px!important;gap:7px!important}
/* UNO gets the wide table, hand strip and reachable colour chooser. */
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .uno-table{flex:1 0 220px!important;width:100%!important;height:auto!important;min-height:220px!important;max-height:none!important;box-sizing:border-box!important;grid-template-rows:28px minmax(45px,1fr) minmax(68px,1.2fr) 24px 34px!important;gap:4px!important;padding:8px 12px!important;overflow:visible!important}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .uno-hand{overflow-x:auto!important;overflow-y:visible!important;min-height:68px!important;touch-action:pan-x}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .uno-card{min-height:0!important;height:clamp(50px,20cqh,82px)!important;max-height:none!important}
/* Tetris stays upright within landscape; the board and buttons share the width. */
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .arcade-tetris{display:grid!important;grid-template-columns:minmax(0,1fr) 110px 160px!important;grid-template-rows:minmax(0,1fr) auto!important;height:100%!important;min-height:220px!important;gap:10px!important;overflow:visible!important}
.nexo-arcade-portal .arcade-tetris .tetris-board-stage{grid-column:1;grid-row:1;min-height:0!important;display:grid!important;place-items:center!important}.nexo-arcade-portal .arcade-tetris .tetris-board-stage>canvas{height:100%!important;max-height:100%!important;width:auto!important;aspect-ratio:1/2!important;max-width:100%!important}
.nexo-arcade-portal .arcade-tetris .tetris-hud{grid-column:2;grid-row:1;overflow:auto!important;min-height:0!important}.nexo-arcade-portal .arcade-tetris .arcade-controls{grid-column:3;grid-row:1;align-self:center!important}.nexo-arcade-portal .arcade-tetris .arcade-help{grid-column:1/-1;font-size:8px!important;margin:0!important}
.nexo-arcade-portal .versus-tetris{height:100%!important;min-height:220px!important;overflow:auto!important}.nexo-arcade-portal .versus-boards{min-height:0!important;flex:1!important;display:flex!important;justify-content:center!important;gap:12px!important}
.nexo-arcade-portal .versus-player{min-height:0!important;min-width:0!important}.nexo-arcade-portal .versus-player>canvas{height:clamp(120px,52cqh,380px)!important;width:auto!important;max-width:100%!important;aspect-ratio:1/2!important}.nexo-arcade-portal .versus-player.is-you{flex-shrink:0!important}
.nexo-arcade-portal .versus-tetris.is-classic .versus-player.is-you{display:grid!important;grid-template-columns:auto 170px!important;grid-template-rows:auto minmax(0,1fr) auto auto!important;gap:5px 14px!important}.nexo-arcade-portal .versus-tetris.is-classic .versus-player.is-you>canvas{grid-column:1;grid-row:2}.nexo-arcade-portal .versus-tetris.is-classic .tetris-command-panel{grid-column:2;grid-row:1/-1;align-self:center!important;min-width:0!important}
.game-stage .arcade-controls{display:grid!important;grid-template-columns:repeat(3,minmax(44px,1fr))!important;gap:10px!important;padding:4px!important}.game-stage .arcade-control{min-height:44px!important;min-width:44px!important;touch-action:none!important;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.game-stage .arcade-control[aria-label$="drop"]{border-color:#f0c873!important}.game-stage .arcade-control[aria-label*="Hard drop"],.game-stage .arcade-control[aria-label="Tetris drop"]{margin-top:8px!important;background:#684b24!important}
@media(prefers-reduced-motion:reduce){.nexo-arcade-portal .card-dealt{animation:none!important}}
/* The embedded desktop table also scrolls instead of cropping longer hands. */
html.nexo-identity .chat .game-stage .activity-content{overflow:auto!important}
html.nexo-identity .chat .game-stage .casino-table{overflow:visible!important;min-height:180px!important;flex-shrink:0!important}
html.nexo-identity .chat .game-stage .casino-table :is(.game-card-row,.table-player-hands,.table-seat){overflow:visible!important;max-height:none!important}
html.nexo-identity .chat .game-stage .casino-table .game-card-row{flex-wrap:wrap!important}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .arcade-tetris{grid-template-columns:minmax(130px,170px) 110px 160px!important;justify-content:center!important}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .arcade-tetris .tetris-board-stage{justify-self:center!important}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .tetris-command-panel .arcade-controls button{width:auto!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:8px!important}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .versus-tetris.is-classic .versus-player.is-you{grid-template-columns:minmax(130px,170px) 200px!important;grid-template-rows:auto minmax(0,1fr) auto!important;justify-content:center!important}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .versus-tetris.is-classic .versus-player.is-you>strong{grid-column:1!important;grid-row:1!important;text-align:center!important}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .versus-tetris.is-classic .versus-player.is-you>canvas{grid-column:1!important;grid-row:2!important;justify-self:center!important}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .versus-tetris.is-classic .versus-player.is-you>.versus-stats{grid-column:1!important;grid-row:3!important;text-align:center!important}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .versus-tetris.is-classic .versus-player.is-you>.versus-previews{grid-column:2!important;grid-row:1!important;flex-direction:row!important}
html.nexo-identity body>.chat.nexo-arcade-portal .game-stage .versus-tetris.is-classic .tetris-command-panel{grid-column:2!important;grid-row:2/4!important}
/* Tetris and chess use a portrait phone surface, independently of card games. */
html.nexo-identity body>.chat.nexo-arcade-portal.nexo-arcade-portrait-rotated{transform:translate(-50%,-50%) rotate(-90deg)!important}
.tetris-instructions{position:absolute;inset:0;z-index:40;display:grid;place-items:center;padding:18px;background:#061321ed;box-sizing:border-box;overflow:auto}
.tetris-instruction-card{max-width:390px;width:100%;padding:22px;border:1px solid #41657d;border-radius:22px;background:linear-gradient(145deg,#203958,#0a1a2d);box-sizing:border-box;color:#e7f5ff}
.tetris-instruction-card h2{font-size:28px;margin:8px 0 20px}.tetris-instruction-card>small{letter-spacing:3px;font-size:10px;color:#f4cb70}.tetris-instruction-row{display:flex;align-items:center;gap:14px;line-height:1.5}.tetris-instruction-row b{width:34px;font-size:26px;color:#f4cb70;text-align:center}.tetris-instruction-note{font-size:12px;color:#adc4d5;line-height:1.6}.tetris-instruction-card>button{display:block;width:100%;min-height:44px;margin-top:10px}
html.nexo-identity body>.nexo-arcade-portrait .game-stage .activity-content{overflow:hidden!important;padding:8px 12px!important}
html.nexo-identity body>.nexo-arcade-portrait .game-stage .versus-tetris{height:100%!important;width:100%!important;display:flex!important;flex-direction:column!important;min-height:0!important;gap:4px!important}
html.nexo-identity body>.nexo-arcade-portrait .game-stage .versus-boards{display:flex!important;flex:1!important;min-height:0!important;justify-content:center!important;gap:8px!important}
html.nexo-identity body>.nexo-arcade-portrait .game-stage .versus-player{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-height:0!important;min-width:0!important;flex:1!important;gap:5px!important;padding:0!important}
html.nexo-identity body>.nexo-arcade-portrait .game-stage .versus-player>canvas{height:auto!important;width:auto!important;max-width:100%!important;max-height:calc(100cqh - 165px)!important;aspect-ratio:1/2!important;flex:0 1 auto!important}
html.nexo-identity body>.nexo-arcade-portrait .game-stage .versus-player>strong{font-size:12px!important}.nexo-arcade-portrait .versus-stats{font-size:10px!important}
html.nexo-identity body>.nexo-arcade-portrait .game-stage :is(.arcade-controls,.arcade-help){display:none!important}
html.nexo-identity body>.nexo-arcade-portrait .game-stage .tetris-command-panel{display:contents!important}
html.nexo-identity body>.nexo-arcade-portrait .game-stage .versus-previews{display:flex!important;gap:12px!important;justify-content:center!important;padding:0!important}.nexo-arcade-portrait .versus-previews canvas{width:60px!important;height:25px!important}.nexo-arcade-portrait .versus-notice{font-size:10px!important;line-height:1.4;text-align:center;margin:0!important}
.nexo-chess{display:flex;flex-direction:column;gap:12px;align-items:center;min-width:0;width:100%;color:#e9f2fc}.chess-lobby{text-align:center;padding:24px}.chess-emblem{font-size:70px;color:#f2cb72}.chess-summary{display:flex;flex-direction:column;gap:6px;text-align:center}.chess-summary small{font-size:10px;letter-spacing:2px;color:#e5c384}.chess-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));width:min(100%,480px);aspect-ratio:1;border:6px solid #71573c;border-radius:8px;overflow:hidden;box-sizing:border-box;flex-shrink:0}
html.nexo-identity .chess-board .chess-square{position:relative;display:grid!important;place-items:center!important;min-width:0!important;min-height:0!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important;aspect-ratio:1;font:clamp(22px,6vw,48px)/1 'Georgia',serif!important;touch-action:manipulation;opacity:1!important}
html.nexo-identity .chess-square.light{background:#ead9b9!important}html.nexo-identity .chess-square.dark{background:#6b8b79!important}html.nexo-identity .chess-square.piece-w{color:#fffdf3!important;text-shadow:0 1px 1px #101c22,1px 0 #101c22,-1px 0 #101c22,0 -1px #101c22}html.nexo-identity .chess-square.piece-b{color:#17232a!important;text-shadow:0 1px 1px #fff6}
.chess-square.legal::after{content:'';position:absolute;width:22%;height:22%;border-radius:50%;background:#0c423b77;pointer-events:none}.chess-square.selected{box-shadow:inset 0 0 0 4px #ffd45f!important}.chess-square small{position:absolute;font:8px system-ui!important;color:#1b353b}.chess-file{bottom:1px;right:3px}.chess-rank{top:2px;left:3px}.chess-footer{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;width:100%;font-size:12px}.chess-footer p{margin:0}.chess-moves{width:100%;max-width:480px;font-size:11px}.chess-promotion,.chess-confirm{padding:12px;border:1px solid #d6b76c;border-radius:10px;background:#14283e;display:flex;flex-wrap:wrap;gap:8px}.chess-promotion{position:absolute;z-index:10;top:30%;left:10%;right:10%}
html.nexo-identity body>.nexo-arcade-portrait .game-stage .activity-content:has(.nexo-chess){overflow:auto!important}.nexo-arcade-portrait .chess-board{width:min(100%,calc(100cqh - 220px))}.nexo-arcade-portrait .chess-square{font-size:clamp(20px,7vw,42px)!important}
