.gw-screen{height:100dvh;overflow:hidden;background:radial-gradient(ellipse at 55% 35%,#274653,#0b202e 75%)}.gw-screen>.topbar{height:82px;min-height:0;box-sizing:border-box}.gw-stage{height:calc(100dvh - 82px);max-width:1800px;margin:auto;padding:10px 18px;box-sizing:border-box}.gw-stage h1{margin:0 0 6px;font-size:30px}.gw-layout{display:grid;grid-template-columns:190px minmax(0,1fr) 280px;gap:12px;height:calc(100% - 42px);min-height:0}.gw-players,.gw-panel{min-height:0;overflow:auto}.gw-players .board-player{display:flex;gap:8px;background:#173441;border-left:4px solid var(--gw-colour);border-radius:10px;margin:0 0 10px;padding:10px;align-items:center}.gw-players .board-player.active{box-shadow:0 0 0 2px var(--gw-colour)}.gw-players .avatar,.gw-players .ember-seat-avatar{width:48px;height:58px;flex:none}.gw-players .ember-seat-avatar img{width:100%;height:100%;object-fit:contain}.gw-players strong,.gw-players small{display:block;overflow-wrap:anywhere}.gw-players strong{font-size:14px}.gw-players small{font-size:11px}.gw-frame{position:relative;min-width:0;min-height:0;overflow:hidden}.gw-canvas{width:100%;height:100%;display:block;outline:none!important;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.gw-frame .game-view{position:absolute;bottom:4px;left:50%;transform:translateX(-50%);z-index:4;white-space:nowrap;font-size:11px}.gw-frame .game-view button{padding:5px 7px;min-height:28px}.gw-frame .game-view input{width:64px}.gw-panel{padding:12px;background:#13313f;border:1px solid #7fa2b34a;border-radius:12px}.gw-panel label{display:block;font-size:12px;margin:9px 0}.gw-panel select{display:block;width:100%;font-size:13px;padding:9px;white-space:normal}.gw-panel button{margin:4px 0;min-height:36px;font-size:13px;padding:8px 10px;max-width:100%}.gw-turn{font-size:15px;padding:9px;background:#315368;border-radius:8px;border-left:3px solid #ffd27e}.gw-bubble{position:relative;padding:12px;background:#f3f5e8;color:#173645;border-radius:12px;margin:12px 0;animation:gw-bubble-in .22s ease-out}.gw-bubble:before{content:'';position:absolute;left:-7px;top:14px;border-top:8px solid transparent;border-bottom:8px solid transparent;border-right:8px solid #f3f5e8}.gw-bubble p{font-size:15px;margin:7px 0;line-height:1.35}.gw-bubble strong{font-size:12px}.gw-answer-value{display:block;font-size:25px}.gw-answer{display:flex;gap:8px}.gw-answer button{flex:1;background:#26516a;font-size:22px}.gw-panel .small,.gw-message,.gw-private,.gw-feature{font-size:12px;line-height:1.4}.gw-preview,.gw-kids{padding:8px;border-radius:8px;background:#294654;font-size:13px}.gw-secret{text-align:center;margin:8px 0}.gw-secret img{display:block;width:105px;margin:auto;border:3px solid #e7bd6f;border-radius:8px}.gw-secret strong{font-size:12px}.gw-inspect{padding:8px;background:#244b5e;border-radius:10px;text-align:center;margin:10px 0}.gw-inspect img{display:block;width:108px;border-radius:8px;margin:0 auto 6px}.gw-inspect strong{display:block}.gw-reveals{display:flex;gap:5px}.gw-reveals figure{margin:8px 0;width:50%;font-size:11px}.gw-reveals img{width:100%;border-radius:6px}.gw-history{font-size:12px;margin-top:12px}.gw-history p{padding:5px 0;border-bottom:1px solid #ffffff25}.gw-mini{display:grid;grid-template-columns:repeat(6,1fr);gap:3px;margin:6px 0}.gw-mini i{height:20px;border:2px solid #e16672;border-radius:3px;background:linear-gradient(125deg,#bc3e53,#803546);box-shadow:0 3px 0 #122632}.gw-opponent{margin-top:18px;color:#c8dce4}.gw-opponent small{font-size:10px}.gw-roster{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.gw-roster figure{margin:0;text-align:center}.gw-roster img{width:100%;display:block;border-radius:8px}.gw-roster figcaption,.gw-roster span{font-size:12px}.gw-roster button{padding:4px;background:#183a4b}.gw-roster button.down{opacity:.6}.gw-animating .gw-panel button,.gw-sending .gw-panel button{pointer-events:none;opacity:.65}.gw-loading{position:absolute;inset:40% 0;text-align:center}.gw-animating .gw-overlay{display:none}@keyframes gw-bubble-in{from{transform:scale(.94);opacity:0}to{transform:scale(1);opacity:1}}
@media(max-width:1100px){.gw-layout{grid-template-columns:142px minmax(0,1fr) 235px;gap:7px}.gw-stage{padding:8px}.gw-players .board-player{padding:6px}.gw-players .avatar,.gw-players .ember-seat-avatar{width:32px;height:42px}.gw-players strong{font-size:12px}.gw-panel{padding:8px}}
@media(max-width:960px) and (max-height:600px){.gw-screen>.topbar{position:absolute;right:7px;top:5px;width:auto;height:auto;padding:0;background:none;border:0;z-index:12}.gw-screen>.topbar .brand,.gw-screen>.topbar .pill,.gw-screen>.topbar .turn-announcement,.gw-screen>.topbar [data-action=rules]{display:none}.gw-screen>.topbar button{padding:6px 9px;min-height:30px;font-size:11px}.gw-stage{height:100dvh;padding:5px}.gw-stage h1{font-size:18px;margin:0;height:25px}.gw-layout{height:calc(100% - 25px);grid-template-columns:108px minmax(0,1fr) 185px;gap:4px}.gw-players .board-player{padding:5px;margin-bottom:6px;gap:4px}.gw-players .avatar,.gw-players .ember-seat-avatar{width:25px;height:32px}.gw-players strong{font-size:10px}.gw-players small{font-size:9px}.gw-players>button{font-size:10px;padding:5px;min-height:30px}.gw-private,.gw-history{font-size:10px}.gw-secret img{width:68px}.gw-secret strong{font-size:10px}.gw-opponent{display:none}.gw-panel{padding:5px}.gw-turn{font-size:11px;padding:5px;margin-right:20px}.gw-bubble{padding:7px;margin:6px 0}.gw-bubble p{font-size:12px;margin:4px 0}.gw-panel label{font-size:10px;margin:5px 0}.gw-panel select{font-size:10px;padding:5px}.gw-panel button{font-size:10px;min-height:29px;padding:5px 7px;margin:2px 0}.gw-panel .small,.gw-message,.gw-feature,.gw-preview,.gw-kids{font-size:10px}.gw-inspect img{width:68px}.gw-inspect{padding:5px;margin:5px 0}.gw-frame .game-view{font-size:9px}.gw-frame .game-view button{font-size:9px;padding:3px 5px;min-height:23px}.gw-frame .game-view input{width:42px}.gw-roster{gap:4px}.gw-roster span,.gw-roster figcaption{font-size:10px}}
@media(max-width:600px) and (min-height:601px){.gw-layout{grid-template-columns:1fr;grid-template-rows:60px minmax(240px,1fr) 180px}.gw-players{display:flex;gap:6px}.gw-players .board-player{flex:1;margin:0}.gw-private,.gw-opponent,.gw-history{display:none}.gw-panel{display:flex;flex-wrap:wrap;gap:5px;align-content:start}.gw-panel label{width:45%;margin:0}.gw-panel select{font-size:11px;padding:5px}.gw-turn{width:100%;font-size:12px;padding:5px}.gw-secret{display:none}.gw-roster{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.gw-bubble{animation:none}}

.gw-mini i{transform-origin:center bottom;transition:transform .5s ease}.gw-mini i.down{transform:perspective(80px) rotateX(75deg);opacity:.5}.gw-opponent .gw-mini{perspective:500px}

@media(max-width:960px) and (max-height:600px){.gw-panel:has(.gw-inspect){display:flex;flex-direction:column}.gw-panel:has(.gw-inspect) .gw-turn{order:-2}.gw-panel:has(.gw-inspect) .gw-inspect{order:-1}.gw-panel:has(.gw-inspect) .gw-inspect img{width:76px}}

/* Landscape phones reserve the centre for the faces, with compact side controls. */
@media(max-width:960px) and (max-height:600px){.gw-stage h1{display:none}.gw-layout{height:100%;grid-template-columns:96px minmax(0,1fr) 168px}.gw-panel>p:not(.gw-feature):not(.gw-kids):not(.gw-preview),.gw-message{line-height:1.25}.gw-players .board-player{padding:4px}.gw-frame .game-view{bottom:0}}

.gw-guess-notice{position:fixed;inset:0;z-index:90;display:grid;place-items:center;background:#04131ee8;padding:14px}.gw-guess-notice>div{max-width:620px;max-height:90dvh;overflow:auto;text-align:center;background:#102e43;border:2px solid #efc778;border-radius:20px;padding:22px;color:#fff}.gw-guess-notice h2{color:#ffe3a4;font-size:clamp(20px,3vw,32px)}.gw-guess-notice img{width:130px;height:150px;object-fit:cover;border-radius:12px}.gw-guess-notice button{min-height:44px}.lobby-guide{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px;margin-top:8px}.lobby-guide input{width:18px;height:18px}.lobby-guide small{width:100%;font-size:12px}@media(max-height:500px){.gw-guess-notice>div{display:grid;grid-template-columns:90px 1fr;gap:8px;padding:12px;max-width:680px}.gw-guess-notice img{grid-column:1;grid-row:1/5;width:90px;height:120px;align-self:center}.gw-guess-notice h2,.gw-guess-notice p,.gw-guess-notice button{grid-column:2;margin:0}.gw-guess-notice h2{font-size:21px}}

/* Preserve round player portraits and leave room for labels on narrow screens. */
.gw-players .board-player>span:last-child{flex:1;min-width:0}
.gw-players .avatar{width:48px;height:48px;aspect-ratio:1;flex:none;font-size:30px;line-height:1}
.gw-players .avatar img{object-fit:cover}
@media(max-width:1100px){.gw-players .avatar{width:32px;height:32px;font-size:20px}}
@media(max-width:960px) and (max-height:600px){.gw-players .avatar{width:32px;height:32px;font-size:20px}.gw-players .ember-seat-avatar{width:32px;height:40px;flex:none}}

@media(max-width:960px) and (max-height:600px){.gw-screen>.topbar{left:auto}}
