/* Native game cells inherit the gallery's card, image and toolbar geometry. */
.game-benchmark__preview{isolation:isolate;container-type:inline-size}
.game-benchmark__preview>img,.game-benchmark__preview>svg{display:block;min-width:0;min-height:0;width:100%;height:100%;max-height:100%;object-fit:contain;pointer-events:none}
.game-benchmark__preview>svg{flex:1}
/* A recorded run keeps one slim player bar under the field, so nothing ever covers the board. */
.game-benchmark__preview--playable{--game-bar-h:40px}
.game-benchmark__preview.game-benchmark__preview--playable{padding-bottom:var(--game-bar-h)}
.game-benchmark__preview>.game-replay-timeline{position:absolute;z-index:4;left:0;right:0;bottom:0;height:var(--game-bar-h);border-radius:0 0 var(--radius-structure,6px) var(--radius-structure,6px)}
@container (min-width:520px){.game-benchmark__preview .game-replay-timeline__chapters{display:flex}}
@container (max-width:339px){.game-benchmark__preview .game-replay-timeline__time{display:none}}
/* Gallery rows only: a slimmer bar with a bare scrubber; its play control appears once a run has started. */
.model-row .game-benchmark__preview--playable{--game-bar-h:24px}
.model-row .game-benchmark__preview>.game-replay-timeline{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"lead track";column-gap:2px;padding:0 6px 0 2px;border-top:0;background:transparent}
.model-row .game-benchmark__preview>.game-replay-timeline :is(.game-replay-timeline__stage,.game-replay-timeline__time,.game-replay-timeline__chapters,.game-replay-timeline__tools){display:none}
.model-row .game-benchmark__preview:not(.replay-started)>.game-replay-timeline{column-gap:0}.model-row .game-benchmark__preview:not(.replay-started) .game-replay-timeline__lead{display:none}
.model-row .game-benchmark__preview>.game-replay-timeline button.game-replay-timeline__play{width:22px;height:22px;background:transparent;color:var(--tl-ink)}
.model-row .game-benchmark__preview>.game-replay-timeline button.game-replay-timeline__play:hover{background:var(--tl-hover);color:var(--tl-ink);transform:none}
.model-row .game-benchmark__preview>.game-replay-timeline button.game-replay-timeline__play>svg{width:13px;height:13px}
.model-row .game-benchmark__preview>.game-replay-timeline :is(.game-replay-timeline__track,.game-replay-timeline__seek){height:24px}
.model-row .game-benchmark__preview>.game-replay-timeline .game-replay-timeline__seek::-webkit-slider-runnable-track{height:3px;border-radius:var(--radius-structure,6px);background:linear-gradient(to right,var(--tl-fill) calc(5.5px + var(--replay-fraction,0) * (100% - 11px)),var(--tl-track) 0)}
.model-row .game-benchmark__preview>.game-replay-timeline .game-replay-timeline__seek::-webkit-slider-thumb{width:11px;height:11px;margin-top:-4px;border:2px solid var(--tl-thumb);border-radius:50%;background:var(--tl-fill);box-shadow:0 1px 2px #0003}
.model-row .game-benchmark__preview>.game-replay-timeline .game-replay-timeline__seek::-moz-range-track{height:3px;border-radius:var(--radius-structure,6px)}
.model-row .game-benchmark__preview>.game-replay-timeline .game-replay-timeline__seek::-moz-range-progress{height:3px;border-radius:var(--radius-structure,6px)}
.model-row .game-benchmark__preview>.game-replay-timeline .game-replay-timeline__seek::-moz-range-thumb{box-sizing:border-box;width:11px;height:11px;border:2px solid var(--tl-thumb);border-radius:50%;background:var(--tl-fill)}
.model-row .game-benchmark__preview>.game-replay-timeline .game-replay-timeline__markers{left:5.5px;right:5.5px;height:3px;margin-top:-1.5px}
.model-row .game-benchmark__preview>.game-replay-timeline .game-replay-timeline__markers i{height:3px;background:#fff}
.game-benchmark__score{position:absolute;z-index:2;top:0;right:0;min-width:64px;padding:6px 10px 7px;border:0;border-left:1px solid #c4dbc233;border-bottom:1px solid #c4dbc233;border-radius:0 var(--radius-structure,6px) 0 var(--radius-control,4px);background:#183532f2;color:#fff0c6;pointer-events:none;text-align:right;font:10px/1.3 var(--font-body,system-ui,sans-serif);font-variant-numeric:tabular-nums}
.game-benchmark__score strong{display:block;font-size:18px;font-weight:700;line-height:1.1;white-space:nowrap}.game-benchmark__score strong small{font-size:10px;font-weight:500;color:#deeadf}.game-benchmark__score>span{display:block;color:#deeadf;margin-top:3px;white-space:nowrap}
.game-benchmark__score>.game-benchmark__score-level{margin:0 0 2px;color:#f3d28b;font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.game-benchmark__score--status strong{font-size:12px;line-height:19.8px}
.game-benchmark__preview:has([data-game-scoreboard]) [data-game-compact-score]>rect,.game-benchmark__preview:has([data-game-scoreboard]) [data-game-compact-score] [data-game-score-value],.game-benchmark__preview:has([data-game-scoreboard]) [data-game-compact-score] [data-display-score]{display:none!important}
.game-benchmark__actions{display:flex;gap:6px;margin:8px 8px 0}
.game-benchmark__actions button{flex:1;min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;padding:6px 12px;border:1px solid #1f3d37;border-radius:var(--radius-control,4px);background:#1f3d37;color:#fff6dc;font:650 13px/1.15 var(--font-body,system-ui,sans-serif);white-space:nowrap;cursor:pointer;transition:background .2s}
.game-benchmark__actions button:hover{background:#2b5249;border-color:#2b5249}
.game-benchmark__actions small{color:#b9cdb9}
.game-benchmark__actions button:disabled{cursor:wait;opacity:.65}
.game-benchmark__actions button:focus-visible{outline:2px solid var(--copper,#a24f31);outline-offset:2px}
.game-benchmark .result-share>svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
/* Heading actions sit together at the right edge: share, then enlarge. */
.game-benchmark .result-heading>span:first-child{margin-right:auto}
.game-benchmark .game-benchmark__enlarge{display:grid;place-items:center;flex:none;box-sizing:border-box;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;border:0;border-radius:var(--radius-control,4px);background:transparent;color:var(--olive,#4b6244);cursor:pointer}
.game-benchmark .game-benchmark__enlarge>svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.game-benchmark .game-benchmark__enlarge:hover{background:#f0f3e9}
.game-benchmark .game-benchmark__enlarge:focus-visible{outline:2px solid var(--olive,#4b6244);outline-offset:2px}
/* The play button is the card's invitation: solid, warm and labelled until a run has started. */
.game-benchmark__preview>.game-benchmark__replay{position:absolute;z-index:3;left:50%;top:calc(50% - var(--game-bar-h,0px) / 2);display:grid;place-items:center;box-sizing:border-box;width:64px;height:64px;padding:0;transform:translate(-50%,-50%);border:3px solid #fff8e3e6;border-radius:50%;background:linear-gradient(150deg,#f7dc96,#e0ae52);color:#1d3a35;box-shadow:0 8px 22px #071f2a59,0 0 0 1px #0b2a2630;cursor:pointer;opacity:1;transition:transform .18s,box-shadow .18s,opacity .18s}
.game-benchmark__preview>.game-benchmark__replay::before{content:'';position:absolute;inset:-3px;border:2px solid #f7dc96;border-radius:50%;opacity:0;pointer-events:none;animation:game-replay-pulse 2.8s ease-out infinite}
@keyframes game-replay-pulse{0%{transform:scale(1);opacity:.75}70%,100%{transform:scale(1.55);opacity:0}}
/* The sound switch (gameSoundButtonHtml): a small round chip in the picture's top-left corner once a replay has started, in the score badge's
   dark green. On, its two waves breathe while the replay plays; off, they fold away and a cross takes their place. 40px to press, 32px seen. */
.game-benchmark__sound{display:none;position:absolute;z-index:4;top:4px;left:4px;width:32px;height:32px;padding:0;border:0;background:none;color:#fff6dc;cursor:pointer;place-items:center;opacity:.45;transition:opacity .2s;-webkit-tap-highlight-color:transparent}
.game-benchmark__preview.replay-started>.game-benchmark__sound,.sl-slot.sl-started>.game-benchmark__sound{display:grid}
.game-benchmark__preview:hover>.game-benchmark__sound,.sl-slot:hover>.game-benchmark__sound,.game-benchmark__sound:focus-visible{opacity:.85}
.game-benchmark__sound:hover{opacity:1}
@media(hover:none){.game-benchmark__sound{opacity:.6}}
.game-benchmark__sound::before{content:'';position:absolute;inset:6px;border-radius:50%;background:#0d1f1c8c;transition:background-color .15s}
.game-benchmark__sound:hover::before{background:#0d1f1cc4}
.game-benchmark__sound:focus-visible{outline:0}
.game-benchmark__sound:focus-visible::before{box-shadow:0 0 0 2px #fff8e3}
.game-benchmark__sound>svg{position:relative;width:12px;height:12px;overflow:visible}
.game-sound__speaker{fill:currentColor}
.game-sound__wave,.game-sound__off{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;transform-box:view-box;transform-origin:12px 12px;transition:opacity .18s,transform .2s ease-out}
.game-sound__off{opacity:0;transform:scale(.6)}
.game-benchmark__sound[aria-pressed=false] .game-sound__wave{opacity:0;transform:scale(.6)}
.game-benchmark__sound[aria-pressed=false] .game-sound__off{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.game-benchmark__sound,.game-benchmark__sound::before,.game-sound__wave,.game-sound__off{transition:none}}
.game-benchmark__replay>svg{width:28px;height:28px;margin-left:2px;fill:currentColor;filter:drop-shadow(0 1px 0 #fff6d880);transition:transform .18s}
.game-benchmark__replay[data-replay-action=loading]>svg,.game-benchmark__replay[data-replay-state=replay]>svg,.game-benchmark__replay[data-replay-state=retry]>svg{margin-left:0}
.game-benchmark__replay-label{position:absolute;top:calc(100% + 9px);left:50%;transform:translateX(-50%);padding:5px 11px;border-radius:var(--radius-label,999px);background:#15332ef2;color:#fff8e3;font:600 11px/1.2 var(--font-body,system-ui,sans-serif);letter-spacing:.01em;white-space:nowrap;pointer-events:none;box-shadow:0 3px 10px #071f2a40}
/* While a run plays or rests mid-way the bar owns the transport; the button stays a silent hit area. */
.game-benchmark__preview>.game-benchmark__replay:is([data-replay-state=pause],[data-replay-state=resume]){opacity:0}
.game-benchmark__preview>.game-benchmark__replay:is([data-replay-state=pause],[data-replay-state=resume])::before,.game-benchmark__preview>.game-benchmark__replay[data-replay-action=loading]::before{display:none}
.game-benchmark__preview>.game-benchmark__replay[data-replay-action=loading]{cursor:wait}
.game-benchmark__preview>.game-benchmark__replay:is([data-replay-state=pause],[data-replay-state=resume])>.game-benchmark__replay-label{display:none}
@media(hover:hover){.game-benchmark__preview>.game-benchmark__replay:hover{transform:translate(-50%,-50%) scale(1.07);box-shadow:0 10px 28px #071f2a6b,0 0 0 1px #0b2a2640}}
.game-benchmark__preview>.game-benchmark__replay:focus-visible{opacity:1;outline:3px solid #15332e;outline-offset:4px}
.game-benchmark__preview>.game-benchmark__replay:focus-visible>.game-benchmark__replay-label{display:block}
@container (max-width:300px){.game-benchmark__preview>.game-benchmark__replay{width:54px;height:54px}.game-benchmark__replay>svg{width:24px;height:24px}.game-benchmark__replay-label{padding:4px 9px;font-size:10px}}
.game-benchmark__spinner{transform-origin:12px 12px;animation:game-replay-loading .9s linear infinite}
@keyframes game-replay-loading{to{transform:rotate(360deg)}}
.game-benchmark__notice{position:absolute;z-index:2;top:0;left:0;max-width:calc(100% - 14px);padding:5px 7px;border:0;border-right:1px solid #c4d1ba;border-bottom:1px solid #c4d1ba;border-radius:var(--radius-structure,6px) 0 var(--radius-control,4px) 0;background:#fffef8f2;color:#3e503a;font:10px/1.4 var(--font-body,system-ui,sans-serif);pointer-events:none;text-align:left}
.game-benchmark__notice strong{display:block;font-weight:600}.game-benchmark__notice span{display:none}
@container(min-width:480px){.game-benchmark__notice{top:0;left:0;padding:10px 12px;max-width:min(310px,calc(100% - 24px));font-size:12px}.game-benchmark__notice strong{font-size:14px}.game-benchmark__notice span{display:block;margin-top:3px}}
.game-benchmark__context{display:flex;align-items:center;justify-content:space-between;gap:8px;height:28px;margin:0 10px;overflow:hidden}
.game-benchmark__context .game-benchmark__notice{position:static;flex:none;max-width:100%;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#647458;font-size:10px;line-height:1.3}
.game-benchmark__context .game-benchmark__notice strong{font-size:inherit;font-weight:500}.game-benchmark__context .game-benchmark__notice span{display:none}
/* The gallery game card (.result-card) takes its footer from the SVG footer rules in benchmark-rows.css; these serve the comparison card. */
:where(.game-benchmark:not(.result-card)) .game-benchmark__footer{display:grid;grid-template-columns:minmax(0,1fr) 70px;align-items:start;padding:0;font-size:12px}
:where(.game-benchmark:not(.result-card)) .game-benchmark__footer--unscored>.game-benchmark__task-button{grid-column:2}
.game-benchmark:where(:not(.result-card)) .game-benchmark__footer .result-prompt-button{position:static;display:flex;align-items:center;justify-content:center;gap:6px;width:70px;height:44px;min-height:44px;padding:0 7px;border:0;border-left:1px solid #dce3d2;background:transparent;color:var(--olive,#4b6244);font:500 12px/1.2 var(--font-body,system-ui,sans-serif);white-space:nowrap;cursor:pointer}
.game-benchmark:where(:not(.result-card)) .game-benchmark__footer .result-prompt-button:hover{background:#e6eddc}
.game-benchmark:where(:not(.result-card)) .game-benchmark__footer .result-prompt-button:focus-visible{outline:2px solid var(--copper,#a24f31);outline-offset:-3px}
.game-benchmark:where(:not(.result-card)) .game-benchmark__footer .quality-details>summary{margin:0;padding:6px 10px;gap:5px}
.game-benchmark:where(:not(.result-card)) .game-benchmark__footer .quality-score{font-size:17px;white-space:nowrap}:where(.game-benchmark:not(.result-card)) .game-benchmark__footer .quality-score small{font-size:10px}
.game-benchmark__score-value{display:flex;flex-direction:column;gap:2px;min-width:0}
:where(.game-benchmark:not(.result-card)) .game-benchmark__footer>.game-benchmark__score-value{padding:6px 10px}
.game-benchmark .game-benchmark__score-label{display:block;color:#647458;font:500 10px/1.2 var(--font-body,system-ui,sans-serif);white-space:nowrap}
/* This run's game points per level, inside the score disclosure. */
.game-benchmark__levels{display:grid;gap:6px;max-width:440px;padding-top:2px}
.game-benchmark__levels-title{margin:0;color:#647458;font:600 10px/1.3 var(--font-body,system-ui,sans-serif);letter-spacing:.06em;text-transform:uppercase}
.game-benchmark__levels ol{display:grid;gap:5px;margin:0;padding:0;list-style:none}
.game-benchmark__levels li{display:grid;grid-template-columns:52px minmax(0,1fr) 40px minmax(96px,auto);align-items:center;gap:10px;color:#3f5037;font:500 11px/1.3 var(--font-body,system-ui,sans-serif);font-variant-numeric:tabular-nums}
.game-benchmark__levels li>i{display:block;height:6px;border-radius:var(--radius-structure,6px);background:#dde5d0;overflow:hidden}.game-benchmark__levels li>i::before{content:'';display:block;width:calc(var(--w,0) * 1%);height:100%;border-radius:var(--radius-structure,6px);background:#a24f31}
.game-benchmark__levels li>b{text-align:right;font-weight:700;color:#2f4630}
.game-benchmark__levels li[data-empty]{color:#8a967f}.game-benchmark__levels li[data-empty]>b{font-weight:500}
.game-benchmark--comparison{position:relative}
.game-benchmark--comparison .result-heading{height:50px;font-size:12px;text-align:left;gap:8px}
.game-benchmark--comparison .game-benchmark__footer{margin-top:8px;border-top:1px solid #e2e7d8}
.game-benchmark__recording{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}
.game-benchmark__preview--playable>.game-benchmark__recording{bottom:var(--game-bar-h)}
.game-benchmark__recording>svg{display:block;flex:none;width:auto;height:auto;max-width:100%;max-height:100%;overflow:hidden}
.game-benchmark__preview.has-replay>img{visibility:hidden}
.game-benchmark__stage{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#5b6c51;font:500 11px/1.3 var(--font-body,system-ui,sans-serif)}
@media(hover:none){.game-benchmark__preview--playable{--game-bar-h:48px}.model-row .game-benchmark__preview--playable{--game-bar-h:36px}.model-row .game-benchmark__preview>.game-replay-timeline :is(.game-replay-timeline__track,.game-replay-timeline__seek){height:36px}.model-row .game-benchmark__preview>.game-replay-timeline button.game-replay-timeline__play{width:36px;height:36px}.game-benchmark .game-benchmark__enlarge{width:44px;height:44px}.game-benchmark__actions button{height:44px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.game-benchmark__preview>.game-benchmark__replay,.game-benchmark__replay>svg{transition:none}.game-benchmark__preview>.game-benchmark__replay::before{animation:none}.game-benchmark__spinner{animation:none}}

.game-player button:disabled{cursor:default;opacity:.45}
.game-player{width:min(1140px,96vw);max-width:none;height:min(920px,95dvh);max-height:95dvh;padding:0;border:1px solid #577572;border-radius:var(--radius-structure,6px);background:#10282d;color:#f4ecd9;box-shadow:0 30px 100px #00131088;overflow:hidden}.game-player::backdrop{background:#061617d9;backdrop-filter:blur(5px)}.game-player__shell{display:flex;flex-direction:column;height:100%}.game-player__header{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid #ffffff1a;gap:12px}.game-player h2{font:600 21px/1.3 system-ui;margin:0;color:#f5e7c9}.game-player button:not([data-game-control]){font:500 12px system-ui;cursor:pointer;border:1px solid #698781;border-radius:var(--radius-control,4px);color:#ecf1df;background:#204149;min-height:36px;padding:8px 12px}.game-player button:not([data-game-control]):hover{background:#315852}.game-player button:not([data-game-control]):focus-visible{outline:3px solid #f5cb75;outline-offset:3px}.game-player button.game-player__close{font-size:25px;min-width:42px;padding:1px 12px}.game-player__body{min-height:0;overflow:auto;padding:16px 24px;display:flex;flex-direction:column;gap:12px;flex:1}.game-player__progress{display:flex;gap:6px}.game-player__progress span{flex:1;background:#ffffff08;border:1px solid #ffffff18;border-radius:var(--radius-structure,6px);padding:7px;text-align:center;font:11px system-ui;color:#98aca7}.game-player__progress .is-current{border-color:#e4bc71;color:#ffe3a2;background:#e4bc7114}.game-player__progress .is-done{color:#a5e1c6}.game-player__instructions{font:12px/1.5 system-ui;color:#b7cac0;margin:0;max-width:85ch}.game-player__toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font:12px system-ui;color:#b7cac0}.game-player__toolbar strong{color:#ffe0a0;font-size:19px}.game-player__toolbar button:first-of-type{margin-left:auto}.game-player__board{position:relative;flex:1;min-height:300px;display:flex;justify-content:center;background:radial-gradient(ellipse at 50% 65%,#254649,#10282d 72%);border-radius:var(--radius-structure,6px)}.game-player__board>svg{width:100%;height:100%;max-height:570px;min-height:300px;object-fit:contain}.game-player__footer{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;font:12px/1.5 system-ui}.game-player__status{margin:0;color:#c7d6bd}.game-player button.game-player__next{background:#e6c27a;color:#203b36;font-weight:650}.game-player [hidden]{display:none!important}@media(max-width:600px){.game-player{width:100vw;max-height:100dvh;height:100dvh;border-radius:0;border:0}.game-player__header{padding:14px}.game-player h2{font-size:17px}.game-player__body{padding:12px;gap:10px}.game-player__board{min-height:290px}.game-player__board>svg{min-height:290px}.game-player__toolbar{gap:8px}.game-player__toolbar strong{font-size:16px}.game-player__toolbar button{padding:7px;font-size:10px}.game-player__progress span{font-size:10px;padding:6px 3px}.game-player__footer{align-items:flex-start}.game-player__next{flex-shrink:0}}

.game-player__stage-title{margin:0;color:#f2ddad;font:600 14px/1.5 system-ui}.game-player__toolbar select{max-width:100%;background:#204149;color:#ecf1df;border:1px solid #698781;border-radius:var(--radius-control,4px);padding:9px}.game-player__body>input[type=range]{width:100%;accent-color:#e6c27a}
.game-player__progress>button{flex:1;min-width:0}
.game-player .game-player__progress>button{padding:7px;font:11px system-ui}
.game-player .game-player__progress>button.is-current{border-color:#e4bc71;color:#ffe3a2;background:#e4bc7114}
.game-player .game-player__progress>button.is-done{color:#a5e1c6}
.game-player__footer>.game-player__next{margin-left:auto;flex:none}
.game-player button.game-player__next:disabled{background:#263d41;color:#91a4a2;border-color:#526768;opacity:1;cursor:default}
.game-player button.game-player__next.is-ready{border-color:#f6d78f;box-shadow:0 0 0 2px #e6c27a22}
.game-player button.game-player__next.is-ready:is(:hover,:focus-visible){background:#f3d391;color:#203b36}
.game-player__board{align-items:center}
.game-player__board{container-type:inline-size}
.game-player__task{flex:none;border:1px solid #ffffff20;border-radius:var(--radius-structure,6px);padding:0 12px;color:#c7d6bd;font:12px/1.5 system-ui}
.game-player__task summary{cursor:pointer;min-height:40px;align-content:center;color:#f2ddad;font-weight:600}
.game-player__task summary:focus-visible{outline:2px solid #f5cb75;outline-offset:3px}
.game-player__task p{margin:0 0 10px;max-width:90ch}
.game-player__task-stages{list-style:none;padding:0;margin:0 0 12px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:5px 16px}
.game-player__task-stages li{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #ffffff12;padding-top:5px}
.game-player__task-stages strong{white-space:nowrap;color:#f2ddad;font-weight:500}
.game-player__body>:not(.game-player__board){flex-shrink:0}
.game-player__board>svg{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:100%;max-height:100%;min-height:0;overflow:hidden}

/* Blur one static browser snapshot; leave the live gallery out of painting. */
.game-player-backdrop-host.is-capturing{position:fixed;inset:0;overflow:hidden}
.game-player-backdrop-host.is-frozen *{visibility:hidden!important}
:root.game-player-background-active body>:not(.game-player):not(.game-player-backdrop-host),:root.game-player-background-active body>:not(.game-player):not(.game-player-backdrop-host) *{visibility:hidden!important}
:root.game-player-background-active body>dialog:not(.game-player)::backdrop{visibility:hidden}
.game-player[data-game-backdrop]::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}
.game-player[data-game-backdrop=opaque]::backdrop{background:#061617}
.game-player-backdrop-host::view-transition{pointer-events:none}
.game-player-backdrop-host::view-transition-group(root),.game-player-backdrop-host::view-transition-old(root){animation:none;mix-blend-mode:normal;opacity:1}
.game-player-backdrop-host::view-transition-image-pair(root){isolation:auto}
.game-player-backdrop-host::view-transition-new(root){display:none}
.game-player-backdrop-host::view-transition-old(root){filter:blur(5px)}

/* Keep the phone field close to its controls, with short single-line actions. */
@media(max-width:600px){
.game-player__header{padding:10px 12px}.game-player__body{padding:10px 12px;gap:10px}
.game-player__progress{gap:4px}.game-player__progress span{padding:4px 2px;font-size:9px;white-space:nowrap}
.game-player__instructions{font-size:11px;line-height:1.4}.game-player__stage-title{font-size:12px}
.game-player__toolbar{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:6px;align-items:center}
.game-player__toolbar>strong,.game-player__toolbar>span{grid-column:span 6;white-space:nowrap}
.game-player__toolbar>.game-player__actor{grid-column:span 6}
.game-player__toolbar button:first-of-type{margin-left:0}.game-player__toolbar>button:not(.game-player__actor){grid-column:span 4}
.game-player__toolbar:has(>.game-playback-sound)>button:not(.game-player__actor){grid-column:span 3}
.game-player button:not([data-game-control]){white-space:nowrap;min-height:40px;padding:7px 8px;font-size:11px}
.game-player .game-player__toolbar>.game-player__view,.game-player .game-player__toolbar>.game-player__restart,.game-player .game-player__toolbar>.game-playback-settings{font-size:0}
.game-player__view::after{content:'View';font-size:11px}.game-player__restart::after{content:'Restart';font-size:11px}.game-player__toolbar>.game-playback-settings::after{content:'Settings';font-size:11px}
.game-player__board{flex:none;min-height:0;aspect-ratio:var(--game-board-aspect,1.25);width:100%}
.game-player__board>svg{width:100%;height:100%;min-height:0;max-height:none;object-fit:contain}
.game-player__footer{min-height:40px;font-size:11px;align-items:center}.game-player__status{font-size:11px}
.game-player[data-game-mode=replay] .game-player__toolbar>.game-player__score{grid-column:span 6;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;padding:6px 12px}.game-player[data-game-mode=replay] .game-player__toolbar>.game-player__score span{font-size:10px}.game-player[data-game-mode=replay] .game-player__toolbar>.game-player__score strong{font-size:18px;line-height:1.1}
.game-player[data-game-mode=replay] .game-player__toolbar>select{grid-column:span 12;order:3;min-width:0;width:100%;font-size:12px}
.game-player[data-game-mode=replay] .game-player__toolbar>button{grid-column:span 6;margin-left:0}
}

/* What the model just sent, as a chip beside the replay. It never covers the board. */
.game-move{display:flex;align-items:center;gap:10px;min-width:0;--move-ink:#35502e;--move-bg:#eef3e4;--move-line:#bccbae;--move-muted:#7a8b6f;--move-accent:#7c9468;--move-amber:#a96f0f;--move-teal:#1f8173}
.game-move[hidden],.game-move__chip[hidden]{display:none}
.game-move__chip{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%;height:20px;padding:0 9px;border:1px solid var(--move-line);border-radius:var(--radius-label,999px);background:var(--move-bg);color:var(--move-ink);font:600 11px/1 var(--font-body,system-ui,sans-serif);white-space:nowrap;font-variant-numeric:tabular-nums;transform-origin:left center}
.game-move__chip[data-actor=Amber]{--move-accent:var(--move-amber)}
.game-move__chip[data-actor=Teal]{--move-accent:var(--move-teal)}
.game-move__chip[data-blocked]{border-style:dashed}
.game-move__actor{display:inline-flex;align-items:center;gap:5px}
.game-move__actor::before{content:'';flex:none;width:7px;height:7px;border-radius:50%;background:var(--move-accent)}
.game-move__glyph{color:var(--move-accent);font-size:14px;line-height:1}
.game-move__note{font-style:normal;font-weight:500;color:var(--move-muted)}
.game-move__chip.is-pop{animation:game-move-pop .3s cubic-bezier(.2,.8,.3,1)}
@keyframes game-move-pop{0%{transform:scale(.8);opacity:.35}55%{transform:scale(1.09);opacity:1}100%{transform:scale(1)}}
.game-move__trail{display:inline-flex;align-items:center;gap:3px}
.game-move__previous{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:50%;color:var(--move-muted);font:600 13px/1 var(--font-body,system-ui,sans-serif);opacity:calc(1 - var(--game-move-age,1) * .17)}
.game-move__previous[data-actor=Amber]{color:var(--move-amber)}.game-move__previous[data-actor=Teal]{color:var(--move-teal)}
.game-move__previous[data-blocked]{text-decoration:line-through}
.game-benchmark__move{margin-left:auto;flex:none}.game-benchmark__move .game-move__chip{transform-origin:right center}
.game-player__moves{display:flex;align-items:center;min-height:34px;margin:0}.game-player__moves[hidden]{display:none}
.game-player__move{--move-ink:#f6ead0;--move-bg:#1a3b40;--move-line:#52807b;--move-muted:#a3bbb2;--move-accent:#e6c27a;--move-amber:#f3c671;--move-teal:#77d8c1;gap:12px}
.game-player__move .game-move__chip{height:30px;padding:0 13px;border-radius:var(--radius-label,999px);font-size:14px;gap:8px}
.game-player__move .game-move__glyph{font-size:19px}
.game-player__move .game-move__actor::before{width:9px;height:9px}
.game-player__move .game-move__note{font-size:12px}
.game-player__move .game-move__previous{min-width:26px;height:26px;font-size:16px}
.game-player h2:has(.game-player__model-logo){display:flex;align-items:center;gap:10px;min-width:0}
.game-player__model-logo{flex:none;width:26px;height:26px;padding:3px;border-radius:var(--radius-control,4px);background:#fffef8;object-fit:contain}
@media(max-width:600px){.game-player__moves{min-height:30px}.game-player__move{gap:8px}.game-player__move .game-move__chip{height:28px;padding:0 11px;font-size:13px}.game-player__move .game-move__previous{min-width:22px}.game-player h2:has(.game-player__model-logo){font-size:17px;gap:8px}.game-player__model-logo{width:24px;height:24px}}
@media(prefers-reduced-motion:reduce){.game-move__chip.is-pop{animation:none}}

/* Play mode: one live score on the board; the toolbar keeps the same text for assistive technology only. */
.game-player__sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.game-player[data-game-mode=play] .game-player__body>.game-player__footer{position:sticky;bottom:-16px;z-index:3;padding:8px 0 16px;background:linear-gradient(#10282d00,#10282d 10px)}

/* You versus the models: the visitor's game points beside every completed run. */
.game-compare{scroll-margin-bottom:76px;--you:#f4cd72;--model:#86d4e8;--ink:#f6ead0;--muted:#a9bfb6;--line:#ffffff1f;position:relative;display:grid;gap:10px;padding:14px 16px 12px;border:1px solid #6e8f88;border-radius:var(--radius-structure,6px);background:linear-gradient(160deg,#1b3d42,#142f34 60%);color:var(--ink);font:12px/1.4 system-ui;box-shadow:inset 0 1px 0 #ffffff14,0 10px 28px #00131066;animation:game-compare-in .4s cubic-bezier(.2,.8,.3,1) both}
.game-compare.is-top{border-color:#e4bc71;box-shadow:inset 0 1px 0 #ffffff1a,0 0 0 1px #e4bc7155,0 10px 32px #e4bc7126}
.game-compare p{margin:0}
.game-compare__main{display:grid;gap:10px;min-width:0}
.game-compare__label{color:var(--muted);font-size:10px;font-weight:600;letter-spacing:.09em;text-transform:uppercase}
.game-compare__headline{color:#fff0c6;font-size:17px;font-weight:650;line-height:1.3;text-wrap:balance}
.game-compare.is-top .game-compare__headline::before{content:'\2726\00a0'/'';color:var(--you)}
.game-compare__duel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.game-compare__side{display:grid;grid-template-columns:auto 1fr;align-items:baseline;column-gap:5px;min-width:0;padding:8px 10px 9px;border:1px solid var(--line);border-radius:var(--radius-structure,6px);background:#ffffff08}
.game-compare__name{grid-column:1/-1;display:flex;align-items:center;gap:6px;min-width:0;margin-bottom:2px;color:var(--muted);font-size:11px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-compare__side strong{font-size:28px;font-weight:700;line-height:1.05;font-variant-numeric:tabular-nums}
.game-compare__side small{color:var(--muted);font-size:11px}
.game-compare__side--you{border-color:#f4cd7266;background:#f4cd7217}.game-compare__side--you strong,.game-compare__side--you .game-compare__name{color:var(--you)}
.game-compare__side--model{border-color:#86d4e84d;background:#86d4e812}.game-compare__side--model strong{color:var(--model)}
.game-compare__logo{flex:none;width:16px;height:16px;padding:2px;border-radius:var(--radius-control,4px);background:#fffef8;object-fit:contain}

.game-compare__strip{position:relative;height:56px;margin:2px 8px 0}
.game-compare__axis{position:absolute;left:0;right:0;bottom:22px;height:2px;border-radius:0;background:linear-gradient(90deg,#ffffff20,#ffffff38)}
.game-compare__ends{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:space-between;color:#8ea69e;font-size:10px;font-variant-numeric:tabular-nums}
.game-compare__dot{position:absolute;left:calc(var(--x) * 1%);bottom:calc(19px + var(--lane) * 10px);width:8px;height:8px;margin-left:-4px;border-radius:50%;background:#a9bfb6;opacity:.8}
.game-compare__dot--model{bottom:17px;width:12px;height:12px;margin-left:-6px;background:var(--model);box-shadow:0 0 0 2px #142f34,0 0 0 3px var(--model);opacity:1;z-index:2}
.game-compare__you{position:absolute;z-index:3;left:calc(var(--x) * 1%);bottom:0;width:0;height:100%;animation:game-compare-drop .7s .25s cubic-bezier(.3,1.5,.5,1) both}
.game-compare__you::before{content:'';position:absolute;left:-7px;bottom:16px;width:14px;height:14px;border-radius:3px;/* radius: custom */background:var(--you);box-shadow:0 0 0 2px #142f34,0 0 12px #f4cd7280;transform:rotate(45deg)}
.game-compare__you::after{content:'';position:absolute;left:-1px;top:17px;bottom:33px;width:2px;border-radius:0;background:linear-gradient(#f4cd7200,#f4cd72aa)}
.game-compare__you b{position:absolute;left:0;top:0;padding:1px 8px;border-radius:var(--radius-label,999px);background:var(--you);color:#2b2108;font:700 11px/1.5 system-ui;white-space:nowrap;font-variant-numeric:tabular-nums;transform:translateX(-50%)}
.game-compare__you[data-edge=start] b{transform:translateX(-12px)}.game-compare__you[data-edge=end] b{transform:translateX(calc(-100% + 12px))}
.game-compare__sub{color:var(--muted);font-size:12px}

.game-compare__all{border-top:1px solid var(--line);margin:0 -4px}
.game-compare__all>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:0 4px;color:#f2ddad;font-weight:600;cursor:pointer;list-style:none}
.game-compare__all>summary::-webkit-details-marker{display:none}
.game-compare__all>summary:focus-visible{outline:2px solid #f5cb75;outline-offset:-2px;border-radius:var(--radius-control,4px)}
.game-compare__chevron{flex:none;width:8px;height:8px;margin-right:4px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg) translate(-2px,-2px);transition:transform .2s}
.game-compare__all[open] .game-compare__chevron{transform:rotate(-135deg) translate(-2px,-2px)}
.game-compare__list{scroll-margin-bottom:76px;position:relative;display:grid;gap:3px;max-height:min(260px,36dvh);margin:0 0 4px;padding:0 4px 0 0;overflow:auto;list-style:none;overscroll-behavior:contain}
.game-compare__list li{display:grid;grid-template-columns:22px minmax(0,1.2fr) minmax(40px,1fr) 38px;align-items:center;gap:8px;min-height:30px;padding:0 8px;border-radius:var(--radius-structure,6px);color:#c7d6bd;font-variant-numeric:tabular-nums}
.game-compare__list li.is-you{background:#f4cd7222;color:var(--you);box-shadow:inset 0 0 0 1px #f4cd7266}
.game-compare__list li.is-model{background:#86d4e81a;color:var(--model);box-shadow:inset 0 0 0 1px #86d4e855}
.game-compare__rank{color:#8ea69e;font-size:11px}.game-compare__list li:is(.is-you,.is-model) .game-compare__rank{color:inherit}
.game-compare__who{display:flex;align-items:center;gap:6px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.game-compare__track{height:6px;border-radius:var(--radius-structure,6px);background:#ffffff14;overflow:hidden}
.game-compare__track i{display:block;width:calc(var(--w) * 1%);height:100%;border-radius:var(--radius-structure,6px);background:#8aa59c}
.game-compare__list li.is-you .game-compare__track i{background:var(--you)}.game-compare__list li.is-model .game-compare__track i{background:var(--model)}
.game-compare__list li>b{text-align:right;font-weight:650}

.game-compare__legend{display:flex;flex-wrap:wrap;gap:4px 14px;color:var(--muted);font-size:11px}
.game-compare__key{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.game-compare__key::before{content:'';flex:none;width:9px;height:9px;border-radius:0;background:var(--you)}.game-compare__key--model::before{background:var(--model)}
.game-compare__grid{display:grid;grid-template-columns:repeat(var(--levels),minmax(0,1fr));gap:4px 8px;margin-top:4px}
.game-compare__level{display:grid;gap:4px;justify-items:center;min-width:0}
.game-compare__pair{display:flex;align-items:flex-end;justify-content:center;gap:4px;width:100%;height:66px;padding-top:14px;border-bottom:1px solid #ffffff2a}
.game-compare__bar{position:relative;flex:0 1 26px;min-width:0;height:calc(var(--h,1) * 1%);min-height:2px;border-radius:var(--radius-structure,6px) var(--radius-structure,6px) 0 0;background:var(--you);transform-origin:bottom;animation:game-compare-grow .55s calc(.1s + var(--i,0) * .07s) cubic-bezier(.2,.8,.3,1) both}
.game-compare__bar--model{background:var(--model)}
.game-compare__bar[data-empty]{background:#ffffff1a;height:2px}
.game-compare__bar b{position:absolute;left:50%;bottom:100%;padding-bottom:1px;color:var(--ink);font:600 10px/1.2 system-ui;font-variant-numeric:tabular-nums;transform:translateX(-50%)}
.game-compare__level-name{color:var(--muted);font-size:10px;font-weight:600}

@keyframes game-compare-in{from{opacity:0;transform:translateY(10px)}}
@keyframes game-compare-grow{from{transform:scaleY(0)}}
@keyframes game-compare-drop{from{opacity:0;transform:translateY(-16px)}}
@media(min-width:760px){.game-compare{padding:16px 20px 14px}.game-compare__headline{font-size:20px}.game-compare__duel{max-width:560px}.game-compare__side strong{font-size:32px}.game-compare__bar{flex-basis:34px}.game-compare__pair{height:74px}}
@media(min-width:900px){.game-compare{grid-template-columns:minmax(0,1.15fr) minmax(280px,1fr);gap:0 28px;align-items:start}.game-compare__all{align-self:stretch;margin:0;padding-left:24px;border-top:0;border-left:1px solid var(--line)}.game-compare__list{max-height:min(236px,30dvh)}}
@media(max-width:600px){.game-compare{padding:12px 12px 4px;gap:8px}.game-compare__main{gap:8px}.game-compare__headline{font-size:16px}.game-compare__side{padding:7px 9px 8px}.game-compare__side strong{font-size:26px}.game-compare__list li{grid-template-columns:20px minmax(0,1.3fr) minmax(32px,.8fr) 34px;gap:6px}}
@media(prefers-reduced-motion:reduce){.game-compare,.game-compare__bar,.game-compare__you{animation:none}.game-compare__chevron{transition:none}}

/* Replay dialog: score chip and level picker above the field, one player bar below it. Short screens give the field a little less. */
@media(min-width:601px) and (max-height:780px){.game-player__board{min-height:220px}.game-player__body{gap:8px;padding-block:12px}}
.game-player__score{display:flex;align-items:baseline;gap:10px;padding:6px 14px;border:1px solid #ffffff1f;border-radius:var(--radius-structure,6px);background:#ffffff0a;color:#b7cac0;font:600 11px/1.2 system-ui;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap}
.game-player__score strong{color:#ffe0a0;font-size:19px;font-weight:700;letter-spacing:0;text-transform:none;font-variant-numeric:tabular-nums}
.game-player__score small{margin-left:2px;color:#b7cac0;font-size:11px;font-weight:500}
.game-player[data-game-mode=replay] .game-player__toolbar select{height:40px;padding:0 12px;border-radius:var(--radius-control,4px)}
.game-player__bar{flex:none;min-width:0}
.game-player__bar .game-replay-timeline{width:100%}

/* Ranking: gap rows say how many runs a condensed list skips. */
.game-compare__list.is-condensed{max-height:none;overflow:visible}
.game-compare__list li.game-compare__gap{display:flex;align-items:center;gap:10px;min-height:26px;padding:0 8px;color:#8ea69e;font-size:11px}
.game-compare__gap::before,.game-compare__gap::after{content:'';flex:1;border-top:1px dashed #ffffff33}
.game-compare__gap::before{max-width:22px}
.game-player .game-compare button.game-compare__more{display:block;width:100%;min-height:44px;margin:0;padding:0 4px;border:0;border-radius:var(--radius-control,4px);background:transparent;color:#f2ddad;font:600 12px/1.2 system-ui;text-align:left;cursor:pointer}
.game-player .game-compare button.game-compare__more:hover{background:#ffffff0f}
.game-player .game-compare button.game-compare__more:focus-visible{outline:2px solid #f5cb75;outline-offset:-2px}
.game-compare__rank{min-width:0}
.game-compare__list li{grid-template-columns:28px minmax(0,1.2fr) minmax(40px,1fr) 38px}
@media(max-width:600px){.game-compare__list li{grid-template-columns:26px minmax(0,1.3fr) minmax(32px,.8fr) 34px}}

/* Play mode keeps the level progress in view while a result panel is open. */
.game-player[data-game-mode=play] .game-player__body>.game-player__progress{position:sticky;top:-16px;z-index:4;margin:-4px -24px 0;padding:8px 24px;background:#10282d;box-shadow:0 1px 0 #ffffff14}
@media(max-width:600px){.game-player[data-game-mode=play] .game-player__body>.game-player__progress{top:-10px;margin:-2px -12px 0;padding:6px 12px}}
/* Level outcomes: a mark per level on the card, the closing label of a replayed level, and the enlarged player's footer. */
.game-benchmark__outcomes{display:flex;align-items:center;gap:5px;flex:none;margin:0 0 0 auto;padding:0;list-style:none}
.game-benchmark__outcomes li{display:flex;margin:0;padding:0}
.game-benchmark__outcomes .game-outcome{width:13px;height:13px}
.game-benchmark:has(.has-replay) .game-benchmark__outcomes{display:none}
.game-benchmark__outcome{display:inline-flex;align-items:center;gap:6px;min-width:0;font-style:normal;font-weight:600;color:#3f5037;white-space:nowrap}
.game-benchmark__outcome .game-outcome{width:12px;height:12px}
.game-benchmark__outcome small{font-size:inherit;font-weight:500;color:#6a7a5e}
/* On a narrow card the outcome and its note take a line of their own below the level's points. */
@media(max-width:600px){
.game-benchmark__levels li{grid-template-columns:auto minmax(0,1fr) auto;column-gap:8px;row-gap:2px}
.game-benchmark__levels li>em{grid-column:1/-1;flex-wrap:wrap;white-space:normal;gap:2px 6px}
.game-benchmark__levels li[data-empty]>span:last-child{grid-column:1/-1}
}
/* A desktop gallery card can be narrower than the four-column row (218px), which cut the outcome off at the card's edge. On such a
   card the open list drops its collapsed bar, so every row stays on one line. */
.result-card .game-benchmark__footer{container-type:inline-size}
@media(min-width:601px){@container(max-width:240px){
.game-benchmark__levels li{grid-template-columns:auto minmax(0,1fr) minmax(84px,auto);column-gap:8px}
.game-benchmark__levels li>i{display:none}
}}
.game-outcome-chip{--chip-bg:#eef3e4;--chip-line:#bccbae;--chip-ink:#35502e;display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%;height:20px;padding:0 9px 0 6px;border:1px solid var(--chip-line);border-radius:var(--radius-label,999px);background:var(--chip-bg);color:var(--chip-ink);font:600 11px/1 var(--font-body,system-ui,sans-serif);white-space:nowrap;transform-origin:right center}
.game-outcome-chip[hidden]{display:none}
.game-outcome-chip .game-outcome{width:12px;height:12px}
.game-outcome-chip[data-outcome=cleared]{--chip-bg:#e4f0df;--chip-line:#a9cca5;--chip-ink:#2c5a34}
.game-outcome-chip[data-outcome=out-of-turns],.game-outcome-chip[data-outcome=out-of-lives]{--chip-bg:#f8ecd8;--chip-line:#e0c08e;--chip-ink:#764a10}
.game-outcome-chip[data-outcome=ended-early]{--chip-bg:#e8eef3;--chip-line:#b8c8d5;--chip-ink:#3a5063}
.game-outcome-chip__note{font-weight:500;opacity:.8}.game-outcome-chip__note::before{content:'· '}
.game-outcome-chip[data-outcome=no-valid-move]{--chip-bg:#f8e1de;--chip-line:#e2a8a2;--chip-ink:#8a2a22}
.game-outcome-chip.is-pop{animation:game-outcome-pop .35s cubic-bezier(.2,.8,.3,1)}
@keyframes game-outcome-pop{0%{transform:scale(.8);opacity:.3}55%{transform:scale(1.1);opacity:1}100%{transform:scale(1)}}
.game-benchmark__closing{margin-left:auto;flex:none}
.game-benchmark__context.is-level-ended .game-benchmark__move{display:none}
.game-player__closing{--chip-bg:#ffffff12;--chip-line:#ffffff2e;--chip-ink:#eef2e0;height:30px;padding:0 14px 0 10px;border-radius:var(--radius-label,999px);font-size:14px;gap:8px;margin-left:auto;flex:none}
.game-player__closing .game-outcome{width:15px;height:15px}
.game-player__closing[data-outcome=cleared]{--chip-bg:#1f4a34;--chip-line:#4f9b6f;--chip-ink:#c8f0d3}
.game-player__closing[data-outcome=out-of-turns],.game-player__closing[data-outcome=out-of-lives]{--chip-bg:#4a3a1c;--chip-line:#a98240;--chip-ink:#ffe2a8}
.game-player__closing[data-outcome=ended-early]{--chip-bg:#263a4a;--chip-line:#6b8aa3;--chip-ink:#d2e2ef}
.game-player__closing[data-outcome=no-valid-move]{--chip-bg:#4d2323;--chip-line:#b3605a;--chip-ink:#ffd0cb}
.game-player__moves{gap:12px}
.game-player[data-game-mode=replay] .game-player__status{display:flex;align-items:center;gap:9px;min-height:26px;font-size:13px;font-weight:600;color:#f2ddad}
.game-player__status .game-outcome{width:15px;height:15px}
.game-player[data-game-mode=replay] .game-player__status[data-outcome=ended-early]{color:#d2e2ef}
@media(max-width:600px){.game-player__closing{height:28px;padding:0 12px 0 9px;font-size:13px}.game-player__moves.is-level-ended .game-move__trail{display:none}.game-player[data-game-mode=replay] .game-player__status{font-size:12px}}
@media(prefers-reduced-motion:reduce){.game-outcome-chip.is-pop{animation:none}}
/* Phone touch targets: dialog controls reach 44px. */
@media(max-width:600px){.game-player button:not([data-game-control]),.game-player button.game-player__close,.game-player button[data-game-actor-control],.game-player__task summary,.game-player[data-game-mode=replay] .game-player__toolbar select{min-height:44px}.game-player button.game-player__close{min-width:44px}.game-player[data-game-mode=replay] .game-player__toolbar select{height:44px}.game-player .game-replay-timeline .game-replay-timeline__seek,.game-player .game-replay-timeline .game-replay-timeline__track{height:44px}}
.game-compare__benchmark{display:grid;grid-template-columns:auto 1fr;align-items:baseline;column-gap:12px;padding:10px 12px;border:1px solid #f4cd7266;border-radius:var(--radius-structure,6px);background:#f4cd7217}
.game-compare__benchmark-label{grid-column:1/-1;margin:0;color:var(--you);font-size:10px;font-weight:650;letter-spacing:.09em;text-transform:uppercase}
.game-compare__benchmark-value{margin:2px 0 0;color:var(--you);font-variant-numeric:tabular-nums}
.game-compare__benchmark-value strong{font-size:30px;font-weight:700;line-height:1.05}
.game-compare__benchmark-value small{margin-left:2px;color:var(--muted);font-size:12px}
.game-compare__benchmark-note{margin:0;color:#f3ead2;font-size:12px;line-height:1.45}
.game-player button.game-compare__share{grid-column:1/-1;justify-self:start;display:inline-flex;align-items:center;gap:8px;margin-top:10px;border-color:#e6c27a;background:#e6c27a;color:#203b36;font-weight:650}
.game-player button.game-compare__share:hover{border-color:#f1d394;background:#f1d394}
.game-compare__share svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.game-compare__share-url{grid-column:1/-1;margin-top:10px;min-width:0;padding:8px 10px;border:1px solid #698781;border-radius:var(--radius-control,4px);background:#10292b;color:#ecf1df;font:12px system-ui}
/* Foresight play: turns and lives beside the board's score chip. */
.game-player__hud{position:absolute;left:12px;top:12px;z-index:6;display:flex;align-items:center;gap:10px;padding:7px 11px;border:1px solid #adc8e02e;border-radius:var(--radius-control,4px);color:#e8f1fb;background:#08131fb8;font:700 13px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:.02em;pointer-events:none}
.game-player__lives{display:flex;gap:4px}
.game-player__life{width:13px;height:13px;fill:#ffd04b;transition:fill .3s}
.game-player__life.is-lost{fill:#ffd04b3d}
.game-player__board[data-hud] .game-surface__status{top:50px}
@container (max-width:420px){.game-player__hud{left:8px;top:8px;gap:8px;padding:5px 8px;font-size:11px}.game-player__life{width:11px;height:11px}.game-player__board[data-hud] .game-surface__status{top:40px}}
/* Play glyphs: Foresight's ghost keeps watching and moves first when the visitor reaches to play; Latch's robot blinks,
   then lights its antenna. The nearest .game-play-cue, a button or a whole board, triggers the reaction. */
.game-play-glyph{flex:none;width:22px;height:22px;overflow:visible;transition:transform .25s cubic-bezier(.3,1.5,.5,1)}
.game-play-glyph *{transform-box:fill-box;transform-origin:center}
.game-play-eyes{transition:transform .25s cubic-bezier(.3,1.5,.5,1)}
.game-play-glyph[data-family=foresight] .game-play-eyes{animation:game-ghost-glance 5.2s ease-in-out infinite}
.game-play-glyph[data-family=latch] .game-play-eyes{animation:game-robot-blink 4.6s infinite}
.game-play-cue:is(:hover,:focus-visible,:has(:focus-visible)) .game-play-glyph[data-family=foresight]{transform:translate(3px,-2px)}
.game-play-cue:is(:hover,:focus-visible,:has(:focus-visible)) .game-play-glyph[data-family=latch]{transform:translateY(-2px)}
.game-play-cue:is(:hover,:focus-visible,:has(:focus-visible)) .game-play-eyes{animation:none;transform:translateX(.9px)}
.game-play-cue:is(:hover,:focus-visible,:has(:focus-visible)) .game-play-light{animation:game-robot-light .9s ease-in-out infinite}
@keyframes game-ghost-glance{0%,38%,100%{transform:none}46%,62%{transform:translateX(-1.1px)}70%,86%{transform:translateX(.9px)}}
@keyframes game-robot-blink{0%,92%,100%{transform:none}95%{transform:scaleY(.15)}}
@keyframes game-robot-light{50%{fill:#fff3c9}}
@media(prefers-reduced-motion:reduce){.game-play-glyph,.game-play-eyes{transition:none;transform:none!important}.game-play-eyes,.game-play-light{animation:none!important}}
/* A play label reads as one sentence over two lines: "Play Latch" and, smaller, "against the best AIs". */
.game-play-label{display:flex;flex-direction:column;gap:2px;text-align:left}
.game-play-label small{font-size:11px;font-weight:500}
/* The invitation in replays and previews, with the promise beside it where there is room. */
.game-player button.game-player__try{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:5px 16px 5px 12px;border-color:#f3d391;background:#e6c27a;color:#203b36;font:650 13.5px/1.15 system-ui;text-align:left;transition:background .2s}
.game-player button.game-player__try:hover{background:#f3d391}
.game-player__try small{color:#5e4a1f}
.game-player__try-note{color:#b7cac0;font:12px/1.4 system-ui}
.game-player__footer>.game-player__try{flex:none;margin-left:auto}
.game-player .game-player__try-note{margin-left:auto}
.game-player .game-player__try-note+button.game-player__try{margin-left:0}
@media(max-width:600px){.game-player .game-player__try-note{display:none}.game-player button.game-player__try{justify-content:center;padding:5px 12px;font-size:13px}}
