.game-room{--bg:#fff;--surface:#f3f3ef;--surface-hover:#ebebe5;--line:#e4e4df;--line-strong:#808590;--ink:#1f325a;--ink-2:#56627a;--accent:#2651cb;--accent-hover:#1f44b0;--accent-press:#1a3a96;--accent-tint:#edf1fc;--shadow-sheet:0 0 0 1px #1f325a0f, 0 1px 2px #1f325a0f, 0 6px 16px -6px #1f325a24;--shadow-pop:0 0 0 1px #1f325a14, 0 16px 48px -12px #1f325a3d;--ease-out:cubic-bezier(.22, 1, .36, 1);--game-bar:56px;--game-tray:288px;z-index:50;background:var(--surface);color:var(--ink);-webkit-tap-highlight-color:transparent;flex-direction:column;padding:0;font:400 16px/1.5 DM Sans,DM Sans Fallback,system-ui,sans-serif;display:flex;position:fixed;inset:0;overflow:hidden}.game-room *,.game-room :before,.game-room :after{box-sizing:border-box}.game-room h1,.game-room h2,.game-room h3,.game-room p,.game-room ol{margin:0}.game-room h2{letter-spacing:-.02em;font:600 24px/1.2 Outfit,Outfit Fallback,system-ui,sans-serif}.game-room button,.game-room a{font:inherit;color:inherit;text-decoration:none}.game-room button{cursor:pointer}.game-room svg{flex-shrink:0;display:block}.game-room :focus-visible{outline:2px solid var(--accent);outline-offset:2px}.game-room [hidden]{display:none!important}.game-sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;margin:-1px;position:absolute;overflow:hidden}.game-bar{height:var(--game-bar);padding:0 max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left));border-bottom:1px solid var(--line);background:var(--bg);flex-shrink:0;align-items:center;gap:4px;display:flex}.game-bar h1{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;margin-left:4px;font:500 16px/1.35 DM Sans,DM Sans Fallback,system-ui,sans-serif;overflow:hidden}.game-icon{background:0 0;border:0;border-radius:999px;place-items:center;width:44px;height:44px;padding:0;transition:background-color .12s linear;display:inline-grid}.game-icon:active,.game-icon[aria-expanded=true]{background:var(--surface)}.game-timer{font-variant-numeric:tabular-nums;background:0 0;border:0;border-radius:999px;align-items:center;gap:6px;height:44px;padding:0 12px;transition:background-color .12s linear;display:inline-flex;color:var(--ink-2)!important;font-size:15px!important;font-weight:500!important}@media (hover:hover){.game-icon:hover,.game-timer:hover{background:var(--surface)}}.game-menu{inset:calc(var(--game-bar) + 4px) max(8px, env(safe-area-inset-right)) auto auto;background:var(--bg);width:264px;color:var(--ink);box-shadow:var(--shadow-pop);opacity:0;transition:opacity .12s, transform .12s, overlay .12s allow-discrete, display .12s allow-discrete;border:0;border-radius:16px;margin:0;padding:8px;position:fixed;transform:translateY(-4px)}.game-menu:popover-open{opacity:1;transition-duration:.2s;transition-timing-function:var(--ease-out);transform:none}@starting-style{.game-menu:popover-open{opacity:0;transform:translateY(-4px)}}.game-menu a,.game-menu button{width:100%;min-height:44px;color:var(--ink);text-align:left;background:0 0;border:0;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:0 12px;font:500 15px/1.35 DM Sans,DM Sans Fallback,system-ui,sans-serif;display:flex}@media (hover:hover){.game-menu a:hover,.game-menu button:hover{background:var(--surface)}}.game-menu hr{border:0;border-top:1px solid var(--line);margin:4px 0}.game-switch-ui{background:var(--line-strong);border-radius:999px;width:36px;height:22px;transition:background-color .12s linear;position:relative}.game-switch-ui:after{content:"";width:16px;height:16px;transition:transform .2s var(--ease-out);background:#fff;border-radius:50%;position:absolute;top:3px;left:3px}[aria-checked=true]>.game-switch-ui{background:var(--ink)}[aria-checked=true]>.game-switch-ui:after{transform:translate(14px)}.game-stage{flex:1;min-height:0;display:flex;position:relative}.game-surface{flex:1;min-width:0;min-height:0;position:relative}.game-board{touch-action:none;width:100%;height:100%;display:block;position:absolute;inset:0}.game-side{width:var(--game-tray);border-left:1px solid var(--line);background:var(--bg);flex-direction:column;flex-shrink:0;min-height:0;padding:16px;display:flex}.game-toolbar{z-index:3;background:var(--bg);box-shadow:var(--shadow-pop);border-radius:999px;gap:4px;padding:4px;display:flex;position:absolute;bottom:24px;left:50%;transform:translate(-50%)}.game-tool{white-space:nowrap;height:44px;transition:background-color .12s linear, transform .12s var(--ease-out);background:0 0;border:0;border-radius:999px;align-items:center;gap:8px;padding:0 16px;display:inline-flex;font-size:15px!important;font-weight:500!important}.game-tool:active:not(:disabled){transform:scale(.98)}.game-tool[aria-pressed=true]{background:var(--ink);color:#fff!important}.game-tool:disabled{opacity:.4;cursor:default}@media (hover:hover){.game-tool:hover:not(:disabled):not([aria-pressed=true]){background:var(--surface)}}.game-veil{z-index:2;background:var(--surface);color:var(--ink-2);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:16px;padding:24px;font-size:15px;display:flex;position:absolute;inset:0}.game-veil:before{content:"";aspect-ratio:210/297;background:var(--bg);width:min(60vw,280px);max-height:50%;box-shadow:var(--shadow-sheet);border-radius:2px}.game-veil .game-primary{width:auto}.game-toast{z-index:3;background:var(--ink);color:#fff;text-align:center;pointer-events:none;border-radius:999px;max-width:calc(100% - 32px);padding:8px 16px;font-size:15px;font-weight:500;position:absolute;top:16px;left:50%;transform:translate(-50%)}.game-toast:empty{display:none}.game-dialog{background:var(--bg);width:min(400px,100% - 32px);max-height:calc(100dvh - 32px);color:var(--ink);box-shadow:var(--shadow-pop);opacity:0;transition:opacity .32s var(--ease-out), transform .32s var(--ease-out), overlay .32s allow-discrete, display .32s allow-discrete;border:0;border-radius:16px;padding:32px;transform:scale(.98)}.game-dialog[open]{opacity:1;transform:none}@starting-style{.game-dialog[open]{opacity:0;transform:scale(.98)}}.game-dialog::backdrop{background:#1f325a52}.game-dialog p{color:var(--ink-2);margin-top:8px}.game-dialog .game-actions{flex-direction:column;gap:8px;margin-top:24px;display:flex}.game-steps{counter-reset:step;padding:0;list-style:none;margin-top:16px!important}.game-steps li{counter-increment:step;grid-template-columns:28px 1fr;display:grid}.game-steps li+li{margin-top:12px}.game-steps li:before{content:counter(step);color:var(--ink-2);font-variant-numeric:tabular-nums;font-size:15px;font-weight:500}.game-primary,.game-secondary{width:100%;height:48px;transition:background-color .12s linear, transform .12s var(--ease-out);border:0;border-radius:999px;justify-content:center;align-items:center;gap:8px;padding:0 24px;display:flex;font-size:16px!important;font-weight:500!important}.game-primary{background:var(--accent);color:#fff!important}.game-secondary{background:var(--accent-tint);color:var(--accent)!important}.game-primary:active,.game-secondary:active{transform:scale(.98)}.game-link{justify-content:center;align-items:center;min-height:44px;font-size:15px;font-weight:500;display:flex;color:var(--accent)!important}@media (hover:hover){.game-primary:hover{background:var(--accent-hover)}.game-secondary:hover{background:color-mix(in srgb, var(--accent-tint), var(--accent) 6%)}.game-link:hover{text-underline-offset:3px;text-decoration:underline}}.game-noscript{color:#1f325a;padding:24px 16px;font:400 16px/1.6 DM Sans,DM Sans Fallback,system-ui,sans-serif}.game-noscript a{color:#2651cb}@media (width<=599px){.game-toolbar{padding:4px 8px max(4px, env(safe-area-inset-bottom));box-shadow:0 -1px 0 var(--line);border-radius:0;justify-content:space-around;bottom:0;left:0;right:0;transform:none}.game-tool{border-radius:12px;flex-direction:column;gap:2px;height:56px;padding:0 12px;font-size:13px!important}.game-surface{margin-bottom:calc(64px + env(safe-area-inset-bottom))}.game-dialog{padding:24px}}@media (height<=520px) and (orientation:landscape){.game-room{--game-bar:48px}}@media (prefers-reduced-motion:reduce){.game-room *,.game-room :before,.game-room :after,.game-menu,.game-dialog{transition-duration:0s!important;animation:none!important}}.game-room--puzzle button,.game-room--puzzle a{-webkit-user-select:none;user-select:none}.puzzle-board{overflow:visible}.game-room--puzzle .game-surface{z-index:2}.puzzle-frame{filter:drop-shadow(0 1px 2px #1f325a1f)drop-shadow(0 6px 10px #1f325a14)}.puzzle-piece{cursor:grab;touch-action:none}.puzzle-piece__shadow{filter:drop-shadow(0 1px 1px #1f325a66);stroke:#0000;stroke-width:2.6px;stroke-linejoin:round}.puzzle-piece__outline{stroke:#ffffffd9}.puzzle-piece.is-selected .puzzle-piece__outline{stroke:var(--ink);stroke-width:1.1px}.puzzle-piece.is-placed{cursor:default;pointer-events:none}.puzzle-piece.is-placed .puzzle-piece__shadow{filter:none}.puzzle-piece.is-placed .puzzle-piece__outline{stroke:#ffffff40;stroke-width:.25px}.game-room--puzzle.is-complete .puzzle-piece__outline{stroke:#0000}.game-room--puzzle.is-dragging .puzzle-piece{cursor:grabbing}.game-room--puzzle.is-dragging .puzzle-piece.is-selected .puzzle-piece__shadow{filter:drop-shadow(0 3px 4px #1f325a59)}.puzzle-hint-shape{fill:#2651cb1f;stroke:var(--accent);stroke-width:1.1px;stroke-dasharray:2 1.5}.puzzle-tray{overscroll-behavior:contain;scrollbar-width:thin;flex:1;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:8px;min-height:0;display:grid;overflow:auto}.puzzle-tile{background:var(--surface);touch-action:none;border:0;border-radius:8px;justify-content:center;align-items:center;height:clamp(96px,15vh,128px);padding:10px;transition:background-color .12s linear;display:flex;position:relative;cursor:grab!important}@media (hover:hover){.puzzle-tile:hover{background:var(--surface-hover)}}.puzzle-tile.is-selected{box-shadow:0 0 0 2px var(--ink)}.puzzle-tile.is-hint{box-shadow:0 0 0 2px var(--accent)}.puzzle-tile.is-lifted{pointer-events:none}.puzzle-tile.is-lifted svg{opacity:.18}.puzzle-tile svg{filter:drop-shadow(0 1px 2px #1f325a2e);pointer-events:none;width:100%;height:100%}.puzzle-model-image{width:auto;max-width:100%;max-height:55dvh;box-shadow:var(--shadow-sheet);border-radius:2px;margin:16px auto 0;display:block}.game-room--puzzle .game-toolbar{left:calc(50% - var(--game-tray) / 2)}@media (width<=959px){.game-room--puzzle .game-toolbar{left:50%}.game-room--puzzle .game-stage{flex-direction:column}.game-room--puzzle .game-side{border-left:0;border-top:1px solid var(--line);order:3;width:auto;height:132px;padding:12px 16px}.puzzle-tray{gap:8px;display:flex;overflow:auto hidden}.puzzle-tile{touch-action:pan-x;flex:0 0 96px;height:100%}.game-room--puzzle .game-toolbar{bottom:148px}}@media (width<=599px){.game-room--puzzle .game-toolbar{order:4;position:static}.game-room--puzzle .game-surface{margin-bottom:0}}
