/* Game masthead and compact investigation controls. */
body > .game-masthead { width:100%; max-width:none; padding:12px 24px 16px; border-bottom:1px solid var(--rule); }
.game-nav { display:grid; grid-template-columns:1fr 1fr 1fr; align-items:center; max-width:1100px; margin:auto; }
.game-nav a { display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; font:14px var(--mono); letter-spacing:0; text-transform:none; }
.game-nav a::before { content:none; }
.game-nav a:first-child { justify-self:start; }
.game-nav a:last-child { justify-self:end; }
.game-nav img { display:block; width:132px; height:72px; object-fit:contain; }
.game-nav svg { width:27px; height:27px; }
.game-heading { max-width:1100px; margin:6px auto 0; text-align:center; }
.game-heading h1 { margin:0; color:var(--oxblood); font:700 clamp(25px,3vw,36px)/1.15 var(--display); }
.game-title { margin:5px 0 0; font:18px/1.3 var(--serif); }
.game-top { display:grid; grid-template-columns:minmax(100px,1fr) minmax(160px,1.5fr) minmax(100px,1fr); align-items:center; gap:12px; padding:12px 24px; }
.game-map { justify-self:start; }
.game-center { text-align:center; min-width:0; }
.game-center .game-locale { font:14px/1.3 var(--serif); margin:0 0 8px; }
.game-clock { display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:8px; }
.game-clock svg { width:29px; height:34px; }
.game-clock strong { display:block; font:23px/1.1 var(--mono); font-variant-numeric:tabular-nums; }
.game-clock span { display:block; font:11px/1.5 var(--mono); color:var(--ink-dim); }
.game-books { justify-self:end; gap:5px; }
.game-books .cluebook-img { width:88px; }
.game-books .suspect-pips { max-width:none; gap:1px; }
.game-books .pip-ico { width:14px; height:16px; }
.game-center .accuse-link { min-height:44px; padding:8px 12px; }
.game-tools { display:flex; justify-content:center; }
.game-tools .reset-link { min-width:32px; min-height:28px; opacity:.6; }
@media(max-width:540px) {
 body > .game-masthead { padding:8px 14px 12px; }
 .game-nav img { width:102px; height:56px; }
 .game-nav a { font-size:11px; gap:4px; }
 .game-nav a:last-child { flex-direction:column; gap:0; }
 .game-nav svg { width:22px; height:22px; }
 .game-title { font-size:16px; }
 .game-top { grid-template-columns:minmax(70px,1fr) minmax(130px,1.4fr) minmax(65px,.8fr); gap:6px; padding:10px; }
 .game-map { --map-cell:17px; }
 .minimap { gap:2px; }
 .map-cell { font-size:8px; }
 .game-center .game-locale { font-size:12px; }
 .game-center .accuse-link { font-size:10px; letter-spacing:0; padding:6px 8px; }
 .game-clock strong { font-size:19px; }
 .game-books .cluebook-img { width:64px; }
 .game-books .suspect-pips { flex-wrap:wrap; max-width:44px; }
 .game-books .pip-ico { width:12px; height:14px; }
}

.game-title { display:block; margin:5px auto 0; background:none; border:0; color:var(--ink); font:18px/1.3 var(--serif); cursor:pointer; padding:4px 8px; min-height:36px; }
.game-title:disabled { cursor:default; opacity:1; }
.game-heading[hidden] { display:none; }
.game-top .game-top-right { width:auto; gap:0; justify-self:end; }
.game-tools .reset-link { margin:0; min-height:44px; min-width:44px; }
.game-top .game-map { --map-cell:clamp(18px,3.5vw,27px); }
.game-top .game-locale { overflow-wrap:anywhere; }
.assignment-bar { padding:0 24px 5px; font-size:.75rem; }
.assignment-bar summary { cursor:pointer; min-height:30px; }
.game-clock { font-variant-numeric:tabular-nums; }
@media(max-width:540px) { .game-top .game-map { --map-cell:17px; } .game-tools .reset-link { min-width:32px; } .game-top .game-top-right { min-width:0; } .assignment-bar { padding:0 10px 4px; } }

/* The same photographed desktop and paper props used on the desk pages. */
html:has(.game) { background:#211b15; }
body:has(.game) {
    background:#211b15 url('/assets/img/scene/desk.webp') center top / cover fixed no-repeat;
}
body:has(.game) > .game-masthead {
    background:transparent;
    border:0;
    padding:10px 24px 0;
}
body:has(.game) main { box-shadow:0 12px 36px #100b0780, 1px 0 2px #100b0730, -1px 0 2px #100b0730; }
.game-nav { min-height:90px; position:relative; max-width:1000px; }
.game-nav .game-brand:first-child { grid-column:2; justify-self:center; }
.game-nav .game-brand img {
    width:124px; height:69px;
    filter:invert(.93) sepia(.35) brightness(1.02) drop-shadow(0 2px 2px #120d09);
}
.game-brand:focus-visible { outline:2px solid #f3e7c9; outline-offset:5px; }
.game-heading {
    position:relative; max-width:680px; margin:8px auto 0; padding:14px 24px 10px;
    background:linear-gradient(#f5edda85,#f5edda85), url('/assets/img/scene/notebook-mid.webp') center / 120% auto;
    box-shadow:0 -1px 0 #f8f2e4, 0 -3px 8px #17110a30;
    border-bottom:3px double #8b755154;
}
.game-heading::before { content:'INVESTIGATION FILE'; display:block; color:#7c3129; font:9px/1 var(--mono); letter-spacing:.2em; margin-bottom:8px; }
.game-heading h1 { font:400 clamp(25px,3vw,30px)/1.15 var(--mono); text-transform:uppercase; letter-spacing:.045em; color:#34271f; text-shadow:.4px .2px #34271f35; }
.game-heading .game-title { font:17px/1.35 var(--mono); margin:0 auto; min-height:36px; padding:5px 0 0; max-width:100%; text-wrap:balance; }
.game-heading .game-title:hover:not(:disabled) { color:var(--oxblood); }
@media(max-width:760px) {
    body:has(.game) > .game-masthead { padding:8px 0 0; }
    .game-nav { min-height:100px; margin:0 18px; }
    .game-nav .game-brand img { width:112px; height:62px; }
    .game-heading { margin-top:0; padding:10px 16px 6px; }
    .game-heading .game-title { font-size:15px; }
}


/* Filed report: tucked below the active investigation sheet. */
body:has(.game) > .game-masthead { overflow-x:clip; }
.game-nav { max-width:920px; z-index:3; }
.game-heading {
    z-index:0; padding:13px 70px 20px 24px; margin-bottom:-8px;
    text-align:left; transform:translateY(7px) rotate(-.65deg); transform-origin:center bottom;
    border-bottom:0;
    box-shadow:0 -1px 0 #fff5df, 2px -2px 6px #17110a35;
}
.game-heading::before { content:none; }
.game-file-meta, .game-file-footer { display:flex; align-items:baseline; justify-content:space-between; gap:12px; font:10px/1.4 var(--mono); }
.game-file-meta { padding-bottom:5px; border-bottom:1px solid #806a4c50; text-transform:uppercase; letter-spacing:.04em; color:#685340; }
.game-file-meta > :last-child, .game-file-footer > :last-child { text-align:right; }
.game-case-number {
    color: #71342c;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1;
    margin-top: 8px;
}
.game-heading h1 { margin:0; font:400 22px/1.25 var(--mono); text-transform:none; letter-spacing:0; text-shadow:none; }
.game-heading .game-title { display:block; text-align:left; margin:0; min-height:44px; font:inherit; padding:8px 0 6px; text-wrap:pretty; }
.game-file-footer { color:#78644e; font-size:9px; letter-spacing:.025em; }
.game-file-status { color:#823f33; text-transform:uppercase; padding:2px 5px 1px; border:1px solid #823f3360; border-radius:1px; white-space:nowrap; transform:rotate(-1.5deg); }
body:has(.game) main { position:relative; z-index:auto; box-shadow:0 -2px 5px #31251a24, 0 12px 36px #100b0780, 1px 0 2px #100b0730, -1px 0 2px #100b0730; }

/* Compact square rooms; the locator is centered independently of font metrics. */
.game-top .game-map { --map-cell:23px; }
.game-top .minimap { gap:2px; }
.game-top .map-cell {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    padding: 0;
    min-width: 0;
    min-height: 0;
    font: 12px / 1 var(--mono);
    border-radius: 2px;
    font-weight: 800;
}
.game-top .map-marker { display:block; width:14px; height:14px; }
.game-top .map-seen { background:#e9dfcb; border-color:#ab9675; }
.game-top .map-here { background:var(--oxblood); border-color:var(--oxblood); color:#fff5dc; }
@media(max-width:1000px) and (min-width:761px) {
    .game-heading { padding-right:130px; }
}
@media(max-width:760px) {
    .game-heading { padding:12px 16px 18px; transform:translateY(7px) rotate(-.4deg); }
    .game-file-meta { font-size:8px; gap:8px; }
    .game-case-number { font-size:10px; }
    .game-heading h1 { font-size:19px; }
    .game-heading .game-title { font:inherit; }
    .game-file-footer { font-size:8px; gap:6px; }
}
@media(max-width:540px) {
    .game-top .game-map { --map-cell:18px; }
    .game-top .minimap { gap:1px; }
    .game-top .map-cell { font-size:8px; }
    .game-top .map-marker { width:12px; height:12px; }
}
@media(max-width:360px) {
    .game-nav .game-brand img { width:96px; }
    .game-file-footer { font-size:7px; }
    .game-clock { gap:5px; }
    .game-clock span { font-size:9px; white-space:nowrap; }
}


/* The block around the room code is trimmed to its capital-letter bounds. */
.map-room-code {
    display: block;
    text-align: center;
    line-height: 1;
    text-box: trim-both cap alphabetic;
    margin-top: 3px;
}
@supports not (text-box:trim-both cap alphabetic) { .map-room-code { transform:translateY(.08em); } }

.game-heading { transform:translate(-80px,7px) rotate(-.65deg); padding:10px 24px 16px; }
.game-file-meta { align-items:center; padding-bottom:3px; }
.game-abandon {
    appearance:none; border:1px solid #823f3360; border-radius:1px; color:#79362e;
    padding:7px 9px; min-height:36px; background:#f6efdf70; cursor:pointer;
    font:10px/1 var(--mono); text-transform:uppercase; letter-spacing:.02em;
}
.game-abandon[hidden] { display:none; }
.game-abandon:hover { background:#e9d8bd; }
.game-abandon:disabled { opacity:.55; cursor:wait; }
/* Photographed leather-backed British warrant card; portrait stays independent. */
.game-nav .game-account-card {
    position:absolute; top:-22px; right:-32px; display:block; width:264px; aspect-ratio:3/2;
    min-height:0; padding:0; background:none; border:0; box-shadow:none;
    transform:rotate(7deg); filter:drop-shadow(3px 7px 5px #100b0980); color:#29323b;
    transition:transform .15s ease;
}
.game-nav .game-account-card:hover { transform:rotate(4deg); }
.game-nav .game-account-card:focus-visible { outline:2px solid #fff0d2; outline-offset:3px; }
.abandon-dialog { max-width:440px; width:calc(100% - 32px); padding:25px; margin:auto; border:1px solid #a18a66; border-radius:3px; color:var(--ink); background:var(--paper); box-shadow:0 16px 70px #0008; font-family:var(--serif); }
.abandon-dialog::backdrop { background:#1c1513b3; }
.abandon-dialog .abandon-eyebrow { font:11px/1.4 var(--mono); color:var(--oxblood); margin:0 0 10px; }
.abandon-dialog h2 { font:22px/1.25 var(--mono); margin:0 0 10px; }
.abandon-dialog p { margin:10px 0; }
.abandon-case-title { font-style:italic; }
.abandon-actions { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; margin-top:22px; }
.abandon-actions button { flex:1 1 auto; min-height:44px; padding:10px; border:1px solid var(--rule); border-radius:2px; background:#f4edde; color:var(--ink); cursor:pointer; font:12px/1.3 var(--mono); }
.abandon-actions .abandon-confirm { background:var(--oxblood); color:var(--paper); border-color:var(--oxblood); }
.abandon-actions button:disabled { opacity:.6; cursor:wait; }
.abandon-error { color:var(--oxblood); }
@media(max-width:1000px) {
    .game-heading { transform:translate(clamp(-80px,calc((760px - 100vw)/2),0px),7px) rotate(-.65deg); }
    .game-nav .game-account-card { right:-15px; width:230px; }
}
@media(max-width:760px) {
    .game-heading {
        transform: translateY(7px) rotate(-.4deg);
        padding: 10px 16px 16px 64px;
    }
    .game-abandon { font-size:9px; min-height:36px; padding:7px; }
    .game-nav {
        min-height: 74px;
    }
    .game-nav .game-brand img { width:100px; }
    .game-nav .game-account-card { top:-16px; right:-18px; width:165px; }
    .warrant-account-label { font-size:13px; top:44%; }
    .game-nav .warrant-rank, .game-nav .warrant-meta { display:none; }
    .warrant-photo-placeholder { font-size:6px; }
}
@media(max-width:430px) {
    .game-nav .game-brand:first-child { transform:translate(-35px,12px); }
    .game-nav .game-account-card { width:152px; right:-21px; top:-12px; }
}
@media(prefers-reduced-motion:reduce) { .game-nav .game-account-card { transition:none; } }

@media(min-width:1001px) { .game-file-meta { padding-right:18px; } }
@media(max-width:360px) { .game-nav .game-brand:first-child { transform:translate(-43px,16px); } .game-nav .game-brand img { width:92px; } }

/* Align the paper with the game; inset its typed contents, not the sheet. */
.game-heading {
    display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:22px; row-gap:4px;
    transform:translateY(7px) rotate(-.65deg); padding:24px 24px 20px 80px;
}
.game-heading[hidden] { display:none; }
.game-file-meta { grid-column:1 / -1; display:block; padding:0; border:0; }
.game-heading h1 { grid-column:1; min-width:0; }
.game-heading .game-title { padding:8px 0 3px; }
.game-abandon {
    grid-column:2; grid-row:2; align-self:end; justify-self:end; margin:0 0 3px;
    display:inline-grid; place-items:center; position:relative;
    min-height:32px; padding:8px 17px; font:10px/1 var(--mono); letter-spacing:.025em;
    text-align:center; white-space:nowrap; background:transparent;
}
.game-abandon > span { display:block; text-align:center; line-height:1; text-box:trim-both cap alphabetic; }
/* Preserve a comfortable tap area around the slimmer visible button. */
.game-abandon::after { content:''; position:absolute; inset:-6px -2px; }
@supports not (text-box:trim-both cap alphabetic) { .game-abandon > span { transform:translateY(.08em); } }
@media(max-width:760px) {
    .game-heading { padding:18px 20px 20px 28px; transform:translateY(7px) rotate(-.4deg); column-gap:14px; }
    .game-abandon { font-size:9px; padding:8px 14px; min-height:32px; }
}
@media(max-width:540px) {
    .game-heading { padding-left:20px; padding-right:16px; column-gap:12px; }
    .game-heading h1 { font-size:17px; }
    .game-abandon { padding-inline:12px; }
}

/* Case tools sit on the file, leaving the investigation controls compact. */
.game-file-meta { display:flex; align-items:center; justify-content:space-between; padding-right:130px; min-height:28px; }
.game-file-tools { display:flex; gap:12px; align-items:center; }
.game-file-tools[hidden], .game-file-tools button[hidden] { display:none; }
.game-file-tools button { position:relative; display:grid; place-items:center; width:32px; height:28px; margin:0; padding:0; border:0; color:#755945; background:transparent; cursor:pointer; }
.game-file-tools button::after { content:''; position:absolute; inset:-8px -6px; }
.game-file-tools svg { display:block; width:24px; height:24px; }
.game-file-tools button:hover { color:var(--oxblood); }
.game-abandon { min-height:42px; font-size:13px; padding:10px 20px; }
/* Special Elite's reported cap height is shorter than its actual capital ink. */
.game-abandon > span { transform:translateY(.17em); }
@supports not (text-box:trim-both cap alphabetic) { .game-abandon > span { transform:translateY(.12em); } }
.game-center .game-suspects { display:flex; flex-direction:column; justify-content:center; gap:4px; min-height:44px; margin:0 auto 9px; }
.game-suspects .suspect-pips { gap:3px; flex-wrap:wrap; justify-content:center; max-width:180px; }
.game-suspects .pip-ico { width:22px; height:22px; }
.game-suspects-label { display:flex; align-items:center; gap:6px; font:11px/1.2 var(--mono); color:var(--ink-dim); }
.game-center .accuse-link { position:relative; min-height:34px; padding:7px 10px; font-size:.65rem; letter-spacing:.04em; }
.game-center .accuse-link::after { content:''; position:absolute; inset:-5px 0; }
.game-books .cluebook-img { width:112px; }
@media(max-width:1000px) { .game-file-meta { padding-right:130px; } }
@media(max-width:760px) {
    .game-file-meta { padding-right:0; }
    .game-abandon { font-size:12px; padding:10px 16px; min-height:42px; }
}
@media(max-width:540px) {
    .game-top { grid-template-columns:minmax(64px,1fr) minmax(120px,1.4fr) 80px; gap:5px; }
    .game-suspects .suspect-pips { gap:2px; max-width:100px; }
    .game-suspects .pip-ico { width:18px; height:18px; }
    .game-suspects-label { font-size:10px; gap:4px; }
    .game-center .accuse-link { font-size:9px; padding:7px 9px; }
    .game-books .cluebook-img { width:80px; }
    .game-file-tools { gap:10px; }
    .game-abandon { font-size:11px; padding-inline:14px; }
}

/* One filing line, then the case title and its setting. */
.game-heading { row-gap:8px; padding-top:18px; }
.game-file-meta { justify-content:flex-start; gap:16px; padding-right:0; }
.game-file-tools { gap:16px; }
.game-file-tools button {
    width: 12px;
    height: 12px;
}
.game-file-tools button::after { inset:-8px; }
.game-file-tools svg { width:17px; height:17px; }
.game-heading h1 { grid-column:1 / -1; line-height:1.35; }
.game-heading .game-title { display:inline; min-height:0; padding:0; }
.game-case-locale {
    display: block;
    margin-left: 0;
    font: 14px / 1.5 var(--mono);
    color: #705946;
    line-height: 1;
}
.game-file-actions { grid-column:1 / -1; display:flex; justify-content:flex-end; align-items:center; gap:12px; margin-top:2px; }
.game-file-actions button {
    margin: 0;
    min-height: 32px;
    padding: 10px 16px;
    font: 13px / 1 var(--mono);
    letter-spacing: .025em;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    margin-bottom: 13px;
}
.game-file-actions button[hidden] { display:none; }
.game-file-actions button > span { display:block; text-box:trim-both cap alphabetic; transform:translateY(.17em); }
@supports not (text-box:trim-both cap alphabetic) { .game-file-actions button > span { transform:translateY(.12em); } }
.game-file-accuse { color:var(--paper); background:var(--oxblood); border:1px solid #a58a4b; border-radius:2px; }
.game-file-accuse:hover { background:var(--oxblood-dk); }
.game-file-accuse:disabled { cursor:wait; opacity:.55; }
.game-center .game-suspects { margin:0 auto; }
@media(max-width:540px) {
    .game-case-locale { font-size:12px; }
    .game-file-actions { gap:10px; }
    .game-file-actions button { font-size:10px; padding-inline:12px; }
}

/* This tab is explicit: scrolling never opens the case file. */
.game-masthead-spacer { flex:none; }
.game-header-pull {
    position:fixed; z-index:16; top:0; left:50%; transform:translateX(-50%);
    display:flex; align-items:center; justify-content:center; gap:5px;
    min-width:96px; height:25px; padding:3px 12px 5px;
    color:#644a34; background:#e4d4b6; border:1px solid #9f8861; border-top:0;
    border-radius:0 0 8px 8px; box-shadow:none;
    font:10px/1 var(--mono); cursor:pointer;
}
.game-header-pull[hidden] { display:none; }
.game-header-pull::after { content:''; position:absolute; inset:0 -3px -19px; }
.game-header-pull svg { width:14px; height:14px; }
.game-header-pull[aria-expanded="true"] svg { transform:rotate(180deg); }
.game-header-pull:hover { background:#efe2c9; }
html:has(.game) { scrollbar-gutter:stable; }
html.game-header-open { overflow:hidden; overflow-anchor:none; }
body:has(.game) > .game-masthead.is-pulled {
    position:fixed; inset:0 0 auto; z-index:15; max-height:75dvh; overflow-y:auto;
    background:#211b15 url('/assets/img/scene/desk.webp') center top / cover fixed no-repeat;
    box-shadow:none;
}
.game-header-open main { top:var(--game-header-shift,0px); }
.game-header-open .game-top { top:var(--game-header-shift,0px); }
.game-header-open .typewriter-machine,
.game-header-open .prompt-dock { translate:0 var(--game-header-shift,0px); }
.game-header-open .command-flight-layer { visibility:hidden; }
@media(prefers-reduced-motion:no-preference) {
    .game-header-open main { transition:top .22s ease-out; }
    .game-header-open .typewriter-machine,
    .game-header-open .prompt-dock { transition:translate .22s ease-out; }
}

/* The victim sits to the left of the suspects: one chalk-outline mark, no count. */
.game-people { display:flex; align-items:flex-start; justify-content:center; gap:16px; }
.game-center .game-people .game-suspects { margin:0; }
.game-victim { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-height:44px; min-width:44px; padding:0; background:none; border:0; color:var(--ink); cursor:pointer; }
.victim-pip {
    display: inline-flex;
    color: #535353;
}
.game-victim .victim-ico { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-dasharray:2.4 1.6; }
.game-victim:hover .victim-pip { color:var(--oxblood); }
.game-victim:focus-visible { outline:2px solid var(--oxblood); outline-offset:2px; }
@media(max-width:540px) {
    .game-people { gap:8px; }
    .game-victim { min-width:36px; }
    .game-victim .victim-ico { width:18px; height:18px; }
    .game-suspects .suspect-pips { max-width:80px; }
}

/* Person silhouettes, a chalk body outline, and bold typed control labels. */
.game-suspects .pip-ico { width:18px; height:28px; }
.game-suspects .suspect-pips { min-height:32px; align-items:center; }
.game-victim .victim-ico {
    width: 26px;
    height: 32px;
    stroke-width: 16;
    stroke-dasharray: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.game-suspects-label { font-weight:700; }
.game-top .count-badge {
    font: 700 12px / 1.3 var(--mono);
    letter-spacing: .02em;
    padding: 4px 9px 0px;
}
.game-suspects .suspects-badge { align-self:center; }
@media(max-width:540px) {
    .game-suspects .pip-ico { width:14px; height:24px; }
    .game-suspects .suspect-pips { min-height:28px; }
    .game-victim .victim-ico { width:38px; height:28px; }
    .game-top .count-badge { font-size:11px; }
}

@media (max-width: 760px) {
    .game-case-number {
        font-size: 12px;
    }
}

@media(max-width:760px) {
    .game-heading { transform:translateY(7px) rotate(-.4deg); padding:10px 16px 16px 64px; }
    .game-abandon { font-size:9px; min-height:36px; padding:7px; }
    .game-nav { min-height:74px; }
    .game-nav .game-brand img { width:100px; }
    .game-nav .game-account-card {
        top: -20px;
        right: -8px;
        width: 181px;
    }
    .warrant-account-label { font-size:13px; top:44%; }
    .game-nav .warrant-rank, .game-nav .warrant-meta { display:none; }
    .warrant-photo-placeholder { font-size:6px; }
    .game-nav .game-brand:first-child {
        grid-column: 1;
        margin-left: 0px;
        justify-self: start;
        transform: translateY(12px);
    }
}

@media (max-width: 704px) {
    body:has(#app.game) {
        padding-right: 16px;
        padding-left: 16px;
    }
}

@media (max-width: 704px) {
    body:has(#app.game) .prompt-dock, body:has(#app.game) .typewriter-machine, body:has(#app.game) .command-flight-layer {
        width: min(calc(100% - 0px), 680px);
        left: calc(50%);
    }
}

/* One case-file sheet, sticking at the start of its lower controls. */
body:has(.game) > .game-masthead {
    position:sticky; top:calc(-1 * var(--game-sticky-cutoff, 0px)); z-index:5;
}
.game-heading {
    transform:none; margin-bottom:0; padding-bottom:0;
}
.game-heading-controls {
    grid-column:1 / -1; margin:0 -24px 0 -80px;
}
.game-heading-controls[hidden] { display:none; }
.game-heading .game-top {
    position:static; background:transparent; margin:0; padding:12px 24px;
}
@media(max-width:760px) {
    .game-heading-controls { margin-inline:-64px -16px; }
}
@media(max-width:540px) {
    .game-heading .game-top { padding:10px; }
}
