/* One viewport for the match, its controls and its real result. */
.gs-stage-root .iron-game{padding:0;width:100%}.gs-stage-root .play-surface.iron-mode{width:100%;overflow:visible}.gs-game-surface.iron-scene>canvas{height:calc(100% - var(--iron-nav-height))!important;object-fit:contain}.gs-stage-root .iron-notice,.gs-stage-root .iron-storage{font-size:9px;line-height:1.5;margin:4px 8px}
.gs-options-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;width:min(700px,100%);margin:auto;padding:10px}.gs-options-content>aside{display:block!important;width:100%;max-width:none}.gs-options-content .af-studio-caption{display:flex!important}.gs-language{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:8px;margin-bottom:14px}.gs-language select{padding:10px;border-radius:8px;font:inherit;min-width:120px}.gs-stage-root .rules,.gs-stage-root .bl-help,.gs-stage-root .dl-help,.gs-controls-slot .khal-keyboard{display:none!important}
.gs-game-surface.table-mode #table-game{height:100%;min-height:0;padding:6px 8px;overflow:hidden}.gs-game-surface.table-mode .table-status{font-size:13px;min-height:20px;line-height:1.5;margin:0 0 4px}.gs-game-surface.table-mode .board-tag{font-size:10px;margin:2px 0 4px}.gs-game-surface.table-mode .xo-grid{width:min(100%,calc(var(--gs-table-height) - 155px),370px);gap:6px;margin:5px auto}.gs-game-surface.table-mode .xo-cell{font-size:clamp(23px,6vw,60px);min-height:0}.gs-game-surface.table-mode .dama-wrap{width:min(100%,calc(var(--gs-table-height) - 100px),488px);padding:0}.gs-game-surface.table-mode .board-legend{font-size:10px;margin:4px 0}.gs-game-surface.table-mode .xn-action-hint{font-size:10px;margin:3px}.gs-game-surface.table-mode .xn-stock{margin:3px auto;gap:5px}.gs-game-surface.table-mode .xn-stock button{min-height:34px;padding:4px 8px}.gs-game-surface.table-mode .xn-opponent-stock{margin:2px;min-height:0}.gs-game-surface.table-mode .uno-table{display:flex;flex-direction:column;height:100%;width:100%}.gs-game-surface.table-mode .uno-direction,.gs-game-surface.table-mode .uno-note,.gs-game-surface.table-mode .current-color{font-size:10px;line-height:1.5;margin:3px 0}.gs-game-surface.table-mode .uno-layout{flex:1;min-height:85px;grid-template-rows:auto minmax(60px,1fr);margin:3px 0;padding:5px;gap:4px}.gs-game-surface.table-mode .uno-seat-left,.gs-game-surface.table-mode .uno-seat-right{min-height:0;padding:4px}.gs-game-surface.table-mode .uno-seat-opposite{padding:3px}.gs-game-surface.table-mode .opponent-hand{max-height:55px;overflow:hidden}.gs-game-surface.table-mode .uno-hand{flex:0 0 auto;min-height:92px;padding:5px 2px 9px;gap:7px}.gs-game-surface.table-mode .uno-card{width:52px;min-width:52px;height:76px;font-size:25px}.gs-game-surface.table-mode .uno-actions{flex:0 0 auto;margin:3px 0;gap:5px}.gs-game-surface.table-mode .uno-actions button{min-height:34px;padding:5px 12px;font-size:11px}.gs-game-surface.table-mode .color-picker{position:absolute;z-index:9;inset:25% 8px auto;margin:0;padding:10px;background:#29223cf5}.gs-game-surface.table-mode .color-choice{min-height:40px}.gs-table-summary{text-align:center;font-size:clamp(20px,5vw,32px);line-height:1.8}
@media(max-height:450px){.gs-game-surface.table-mode .uno-layout{grid-template-rows:1fr;grid-template-areas:"left center right opposite";grid-template-columns:1fr 2fr 1fr 1fr}.gs-game-surface.table-mode .uno-hand{min-height:65px}.gs-game-surface.table-mode .uno-card{height:52px;width:38px;min-width:38px;font-size:18px}.gs-game-surface.table-mode .uno-direction,.gs-game-surface.table-mode .uno-note{display:none}.gs-game-surface.table-mode .draw-pile{height:45px;width:35px;min-width:35px;gap:1px}.gs-game-surface.table-mode .discard .uno-card{height:48px;width:35px;min-width:35px;font-size:18px}.gs-game-surface.table-mode .xo-grid{width:min(100%,calc(var(--gs-table-height) - 100px),240px)}.gs-game-surface.table-mode .xn-opponent-stock{display:none}.gs-game-surface.table-mode .dama-wrap{width:min(100%,calc(var(--gs-table-height) - 60px),270px)}}
.gs-play-shell,.gs-dialog,.gs-play-shell *,.gs-dialog *{box-sizing:border-box}
.gs-play-shell{position:fixed;z-index:9000;inset:0 auto auto 0;width:var(--gs-view-width,100vw);height:100vh;height:var(--gs-view-height,100dvh);display:flex;flex-direction:column;gap:6px;padding:max(6px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:#101925;color:#f5f5ed;overflow:hidden;overscroll-behavior:contain}
.gs-play-top{display:flex;justify-content:space-between;align-items:center;gap:8px;flex:0 0 auto;min-height:40px}.gs-play-title{font-size:clamp(12px,3.4vw,17px);max-width:38%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gs-play-tools{display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:flex-end}.gs-frame-button,.gs-close,.gs-launch,.gs-reopen{min-height:38px;border:1px solid #81909d;border-radius:10px;background:#243543;color:#fff8e9;padding:7px 10px;font:12px Tahoma,Arial;cursor:pointer;touch-action:manipulation}.gs-wardrobe-button{background:#f0cf9d;color:#3f2b37;border-color:#d9b57d}.gs-stage-slot{flex:1 1 auto;min-height:0;min-width:0;display:flex;align-items:center;justify-content:center;overflow:hidden}.gs-stage-root{display:flex!important;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:0;max-width:100%;max-height:100%;width:100%;margin:0!important;border-radius:12px;overflow:hidden;flex:1 1 auto}.gs-stage-root>*{flex-shrink:0;max-width:100%}.gs-stage-root>.gs-game-surface{flex-shrink:1}.gs-game-surface{margin-inline:auto!important;min-height:0!important;max-width:100%!important;aspect-ratio:auto!important;flex:0 1 auto!important;overflow:hidden}.gs-game-surface>canvas{display:block;width:100%!important;height:100%!important;object-fit:contain}.gs-controls-slot{flex:0 0 auto;display:flex;flex-direction:column;gap:5px;min-height:0;max-height:36%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.gs-controls-slot:empty{display:none}.gs-controls-slot>*{margin:0!important;padding-block:5px!important}.gs-controls-slot .controls-label,.gs-stage-root .kg-help,.gs-stage-root .kg-tip,.gs-stage-root .af-studio-caption,.gs-stage-root .af-phase-track{display:none!important}.gs-controls-slot .toolbar,.gs-controls-slot .kit-toolbar{margin:0!important}.gs-controls-slot button,.gs-stage-root [data-game-controls] button{min-height:36px}.gs-stage-root .af-round-actions{margin:3px 0}.gs-stage-root .af-studio-top{padding:6px 10px;min-height:28px;width:100%}.gs-stage-root .af-poses{padding:5px;margin:3px 0;width:100%}.gs-stage-root .af-studio-caption{display:none}.gs-stage-root .arena-bar,.gs-stage-root .pb-scorebar,.gs-stage-root .kit-hud,.gs-stage-root .kg-hud,.gs-stage-root .shop-hud{width:100%;padding-block:5px;min-height:40px}.gs-stage-root .kit-hud strong{font-size:16px}.gs-stage-root .kit-status{min-height:26px;padding:5px;font-size:10px;width:100%}.gs-stage-root .bb-hand,.gs-stage-root .bb-lanes{margin-block:3px}.gs-stage-root .bl-seats,.gs-stage-root .ld-players{width:100%}.gs-stage-root .kg-status-strip{margin:3px 0}.gs-stage-root .kg-dive-grid{gap:3px;margin-block:4px}.gs-stage-root .pb-power-panel{padding-block:4px}.gs-stage-root .js-setup{max-height:100%;overflow:auto}.gs-stage-root .shop-actions{padding:5px;gap:5px}.gs-stage-root .af-round-hud{top:6px;inset-inline:6px}.gs-stage-root .af-theme-card{max-width:65%}.gs-stage-root .af-voting{max-width:58%}
.gs-dialog{position:fixed;z-index:10020;inset:var(--gs-view-top,0) auto auto var(--gs-view-left,0);margin:0;width:var(--gs-view-width,100vw);max-width:none;height:100vh;height:var(--gs-view-height,100dvh);max-height:none;padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));border:0;background:#101925f5;color:#f5f5ed;overflow:hidden;overscroll-behavior:contain;visibility:visible}.gs-dialog[open]{display:flex;flex-direction:column;gap:10px}.gs-dialog::backdrop{background:#050a10b8;backdrop-filter:blur(5px)}.gs-dialog-heading{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:10px;width:min(900px,100%);margin-inline:auto}.gs-dialog-title{font-size:clamp(19px,4vw,27px);margin:0;line-height:1.4;color:inherit}.gs-close{flex:0 0 auto}.gs-result-content{flex:1 1 auto;min-height:0;display:flex;justify-content:center;align-items:stretch;width:100%;max-width:900px;margin:auto}.gs-result-panel{position:static!important;inset:auto!important;display:flex!important;align-items:stretch!important;justify-content:center!important;margin:0!important;padding:0!important;max-width:100%!important;width:100%!important;height:100%!important;background:transparent!important;backdrop-filter:none!important;overflow:hidden!important}.gs-result-card{display:flex!important;flex-direction:column!important;min-height:0!important;max-height:100%!important;max-width:100%!important;width:100%!important;padding:14px!important;margin:0!important;overflow:hidden!important;border-radius:16px!important;background:#1b2c39!important;color:#fff3df!important}.gs-result-scroll{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:5px 4px;scrollbar-width:thin}.gs-result-scroll>h2,.gs-result-scroll>h3{margin:6px 0 10px;font-size:clamp(21px,5vw,32px)}.gs-result-actions{flex:0 0 auto;display:flex;justify-content:center;flex-wrap:wrap;gap:8px;padding:10px 0 2px;border-top:1px solid #8c9eaa44;background:inherit}.gs-result-actions>button{flex:1;min-width:120px;max-width:380px;min-height:44px!important;margin:0!important;position:static!important}.gs-reopen{position:fixed;z-index:10000;bottom:max(10px,env(safe-area-inset-bottom));inset-inline-start:12px;background:#d9b679;color:#14212a;border-color:#fff1c4;box-shadow:0 4px 20px #0005}.gs-launch{position:fixed;z-index:8000;bottom:max(12px,env(safe-area-inset-bottom));inset-inline-end:12px;max-width:calc(100vw - 24px);margin:0;box-shadow:0 4px 20px #0004}.gs-play-shell [hidden],.gs-dialog [hidden],.gs-launch[hidden],.gs-reopen[hidden]{display:none!important}.gs-dialog :focus-visible,.gs-play-shell :focus-visible{outline:3px solid #d6ee8e;outline-offset:3px}
.af-body .gs-play-shell{background:#f6f1eb;color:#624459}.af-body .gs-dialog{background:#f6f0eafa;color:#674357}.af-body .gs-close{background:#fff8f1;color:#7f5368;border-color:#bb919b}.af-body .gs-result-card{background:linear-gradient(135deg,#fffaf0,#f4e4ec)!important;color:#674357!important;border-color:#caa17c}.gs-result-panel .af-leaderboard{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px auto}.gs-result-panel .af-leaderboard article{padding:7px}.gs-result-panel .af-leaderboard canvas{max-width:95px;max-height:130px;object-fit:contain}.gs-result-panel .af-leaderboard h3{font-size:12px;margin:5px 0}.gs-result-panel .af-leaderboard p{font-size:10px;margin:3px 0}.gs-result-panel .af-results-heading p:first-child{font-size:9px;letter-spacing:2px}.gs-result-panel .af-results-heading h2{font-size:25px;margin:6px}.gs-wardrobe{max-width:100%;background:#f9f2ec!important;color:#674357!important}.gs-wardrobe>.af-wardrobe{flex:1 1 auto;min-height:0;overflow:auto;width:min(650px,100%);margin:0 auto!important;overscroll-behavior:contain}.gs-wardrobe .af-items{max-height:none;overflow:visible;grid-template-columns:repeat(4,minmax(0,1fr))}.gs-wardrobe .af-main-tabs{position:sticky;top:0;background:#fff8f2;z-index:3}.gs-wardrobe .af-wardrobe-heading{padding:10px}.gs-wardrobe .af-item canvas{height:100px}.gs-wardrobe .af-item{min-height:125px}
@media(max-width:560px){.gs-play-title{max-width:27%;font-size:12px}.gs-frame-button{font-size:10px;padding-inline:7px;min-height:36px}.gs-result-panel .af-leaderboard{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.gs-result-panel .af-leaderboard canvas{max-width:74px;max-height:91px}.gs-result-panel .af-leaderboard article{padding:5px}.gs-result-panel .af-place{width:21px;height:21px;top:5px;font-size:14px}.gs-result-panel .af-results-heading h2{font-size:22px}.gs-result-panel .af-results-heading p:last-child{font-size:11px}.gs-result-card{padding:9px!important}.gs-result-actions>button{font-size:11px;padding:8px;min-width:110px}.gs-wardrobe .af-items{grid-template-columns:repeat(3,minmax(0,1fr))}.gs-wardrobe .af-item canvas{height:93px}}
@media(max-height:450px) and (min-width:600px){.gs-play-shell{gap:4px}.gs-play-top{min-height:32px}.gs-frame-button{min-height:30px;padding-block:4px}.gs-controls-slot{max-height:29%}.gs-controls-slot .touch-controls,.gs-controls-slot .kit-controls{padding-block:3px!important}.gs-controls-slot button{min-height:30px}.gs-dialog-heading{min-height:30px}.gs-dialog-title{font-size:18px}.gs-close{min-height:30px;padding-block:4px}.gs-dialog[open]{gap:5px}.gs-result-panel .af-leaderboard{grid-template-columns:repeat(4,minmax(0,1fr));margin-block:5px}.gs-result-panel .af-leaderboard canvas{max-height:76px;max-width:66px}.gs-result-panel .af-leaderboard p{font-size:9px}.gs-result-panel .af-results-heading h2{font-size:21px;margin:2px}.gs-result-panel .af-results-heading p:first-child{display:none}.gs-result-actions{padding-top:5px}.gs-result-actions>button{min-height:37px!important}.gs-wardrobe .af-items{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.gs-dialog,.gs-play-shell{scroll-behavior:auto}}
