/* Stream Racers - the player's guide. Chrome from lab/lab.css; this is the
   page's layout and the small moving pictures in it (guide.js). */

html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

code { font-family: inherit; color: #ffd23f; }

/* ===== head =====
   The logo lockup (home.css .logo, a size down) over a venue at sunset. The
   venue is drawn by guide.js from venue-art.js and held still. Until it
   fades in, the head is a plain dusk, dark enough for the words on it. */
.g-head {
    position: relative; overflow: hidden;
    border-bottom: 3px solid #000;
    background:
        radial-gradient(60% 100% at 85% 0%, rgba(255, 45, 149, .16), transparent 60%),
        #140c28;
}
.g-scene {
    position: absolute; inset: 0;
    --horizon: 58px;       /* the ground's height, from the bottom */
    --sun-r: 15%;          /* the sun's distance from the right edge */
    opacity: 0; transition: opacity .5s;
}
.g-scene.ready { opacity: 1; }
.g-scene > i { position: absolute; left: 0; right: 0; image-rendering: pixelated; }
.gs-sky { top: 0; bottom: 0; background: var(--sky, none); }
.gs-stars { top: 0; height: 60%; background: var(--stars, none) repeat-x 0 0 / 400px 200px; opacity: .8; }
.g-scene > .gs-sun {
    left: auto; right: var(--sun-r);
    bottom: calc(var(--horizon) - 30px);
    width: 210px; height: 210px;
    background: var(--sun, none) no-repeat center / contain;
}
.gs-far { bottom: calc(var(--horizon) - 4px); height: 120px; background: var(--far, none) repeat-x 0 100% / 400px 120px; }
.gs-city { bottom: calc(var(--horizon) - 6px); height: 104px; background: var(--city, none) repeat-x 0 100% / 260px 104px; }
/* one landmark, its own focus (the tower, the dome) set under the sun's middle */
.g-scene > .gs-landmark {
    left: auto;
    right: calc(var(--sun-r) + 105px - var(--lm-x, 165px));
    bottom: calc(var(--horizon) - 6px);
    width: 330px; height: 132px;
    background: var(--landmark, none) no-repeat 0 100% / 330px 132px;
}
/* the synth grid the venue stands on: lines that run at you, rails that
   meet at the horizon. Still - the demos below are the page's motion. */
.gs-ground {
    bottom: 0; height: var(--horizon); overflow: hidden;
    background:
        repeating-linear-gradient(0deg, var(--grid-line, rgba(255, 95, 162, .5)) 0 1px, transparent 1px 12px),
        var(--ground, #24103b);
    border-top: 2px solid var(--neon, #ff5fa2);
}
.gs-ground::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: -50%; right: -50%;
    background: repeating-linear-gradient(90deg, var(--grid-dim, rgba(255, 95, 162, .22)) 0 1px, transparent 1px 46px);
    transform: perspective(60px) rotateX(55deg); transform-origin: 50% 100%;
}
/* faded under the copy on the left, so the venue is the backdrop and the
   words stay the thing to read */
.g-scene::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(11, 7, 22, .9) 0%, rgba(11, 7, 22, .8) 38%, rgba(11, 7, 22, .3) 60%, rgba(11, 7, 22, .08) 100%);
}

.g-head-in { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 24px 22px 26px; }
.g-head .kicker { font-size: 17px; letter-spacing: 4px; color: var(--hot); text-shadow: 0 2px 0 #000; }

/* the lockup, copied from home.css and set a size down */
.logo { position: relative; height: 122px; margin: 2px 0 0; font-weight: normal; }
.logo-a {
    display: block;
    font-size: 78px; line-height: 1; letter-spacing: 5px;
    background: linear-gradient(180deg, #ffffff 0%, #e6e9ff 42%, #6c6f9e 50%, #d9f6ff 62%, #ffffff 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    -webkit-text-stroke: 2px #1a0b2e;
    filter: drop-shadow(0 4px 0 #000);
}
.logo-b {
    position: absolute; left: 122px; top: 47px;
    font-family: 'Mr Dafoe', 'Segoe Script', cursive; font-size: 85px; line-height: 1;
    color: #ffe2f3; transform: rotate(-7deg);
    text-shadow: 0 0 2px #000, 3px 3px 0 #000, 0 0 14px #ff2d95, 0 0 30px #ff2d95;
}

.g-head p { margin: 4px 0 0; font-size: 22px; color: #fff; text-shadow: 0 2px 0 #000; }
.g-steps { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; margin: 16px 0 0; padding: 0; }
.g-steps li {
    display: flex; align-items: center; gap: 10px;
    padding: 5px 14px 6px 6px;
    background: rgba(23, 14, 46, .9);
    border: 3px solid #000; border-radius: 10px;
    font-size: 21px; letter-spacing: 1px;
}
.g-steps b {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    background: linear-gradient(180deg, #ff4fa6, #d61a7a 55%, #a3106a);
    border: 2px solid #000; border-radius: 7px;
    font-weight: normal; font-size: 20px;
}

/* ===== body: contents on the left, sections on the right ===== */
.g-body {
    max-width: 1180px; margin: 0 auto;
    padding: 22px 22px 70px;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.g-toc {
    position: sticky; top: 16px;
    display: flex; flex-direction: column; gap: 4px;
}
.g-toc a {
    padding: 4px 12px;
    border-left: 3px solid var(--line);
    font-size: 19px; letter-spacing: 1px; color: var(--dim);
}
.g-toc a:hover { color: #fff; border-left-color: #5e4e8c; }
/* cyan is "where am I" across the site; pink stays the action */
.g-toc a.on { color: #fff; border-left-color: #22e4ff; }
.g-toc a.toc-studio { margin-top: 8px; color: #ffd23f; border-left-color: #5a4614; }

.g-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.g-sec {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 0;
    background: var(--ink-2);
    border: 3px solid #000; border-radius: 14px;
    overflow: hidden;
}
.g-sec.wide { grid-template-columns: minmax(0, 1fr); }

/* Each picture stands in a dusk: violet overhead, a warm glow low down, the
   faint scanlines of the venue signs. Kept dark enough that the demos' own
   plates and small type still read on it. */
.g-demo {
    position: relative;
    min-height: 270px;
    display: flex; align-items: center; justify-content: center;
    padding: 14px;
    background:
        repeating-linear-gradient(0deg, rgba(0, 0, 0, .1) 0 1px, transparent 1px 4px),
        radial-gradient(70% 55% at 50% 112%, rgba(255, 138, 61, .32), transparent 70%),
        radial-gradient(90% 70% at 50% 100%, rgba(255, 45, 149, .16), transparent 72%),
        linear-gradient(180deg, #150b2c 0%, #24104a 55%, #3f1752 100%);
    border-right: 3px solid #000;
    overflow: hidden;
}
.g-demo > * { position: relative; z-index: 1; }
.g-demo.tall { min-height: 330px; }
/* the real race gets the synth grid to drive on, low down where its cars are */
.g-demo[data-demo="race"]::before {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
    background: repeating-linear-gradient(0deg, rgba(255, 95, 162, .22) 0 1px, transparent 1px 14px);
    border-top: 2px solid rgba(255, 95, 162, .45);
    -webkit-mask-image: linear-gradient(transparent, #000 60%);
            mask-image: linear-gradient(transparent, #000 60%);
}

.g-copy { padding: 18px 20px 20px; min-width: 0; }
.g-num { font-size: 16px; letter-spacing: 3px; color: var(--hot); }
/* chrome, the same treatment as the site's section heads (lab.css) */
.g-copy h2 {
    margin: 0 0 6px; font-size: 34px; letter-spacing: 3px; font-weight: normal;
    background: linear-gradient(180deg, #ffffff 0%, #ffd6f5 45%, #ff7ac8 52%, #8be9ff 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 2px 0 #000);
}
.g-copy > p { margin: 0 0 12px; font-size: 21px; line-height: 1.3; color: #d4c8ec; }
.g-copy a { color: #ffd23f; }
.g-facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.g-facts li {
    position: relative; padding-left: 20px;
    font-size: 19px; line-height: 1.3; color: var(--dim);
}
.g-facts li::before {
    content: ''; position: absolute; left: 2px; top: 8px;
    width: 8px; height: 8px; background: var(--hot); border-radius: 2px;
}
.g-facts b { color: var(--text); font-weight: normal; }

@media (max-width: 980px) {
    .g-body { grid-template-columns: minmax(0, 1fr); }
    .g-toc {
        position: static; flex-direction: row; flex-wrap: nowrap;
        overflow-x: auto; scrollbar-width: none; gap: 6px;
    }
    .g-toc::-webkit-scrollbar { display: none; }
    .g-toc a { flex: 0 0 auto; border: 2px solid var(--line); border-radius: 8px; padding: 2px 10px; font-size: 17px; }
    .g-toc a.on { border-color: #22e4ff; }
    .g-toc a.toc-studio { margin-top: 0; }
}
@media (max-width: 760px) {
    .g-sec { grid-template-columns: minmax(0, 1fr); }
    .g-demo { border-right: 0; border-bottom: 3px solid #000; min-height: 240px; }
    .g-demo.tall { min-height: 300px; }
    .g-head-in, .g-body { padding-left: 16px; padding-right: 16px; }
    .g-head-in { padding-top: 20px; padding-bottom: 22px; }
    /* on a phone the copy fills the width: the venue sits behind it, dimmed,
       and comes up only along the bottom where the steps are */
    .g-scene { --sun-r: -40px; }
    .g-scene::after { background: linear-gradient(180deg, rgba(11, 7, 22, .86) 0%, rgba(11, 7, 22, .78) 60%, rgba(11, 7, 22, .45) 100%); }
    .g-scene > .gs-sun { width: 150px; height: 150px; bottom: calc(var(--horizon) + 60px); }
    .g-scene > .gs-landmark { right: -70px; transform: scale(.7); transform-origin: 100% 100%; }
    .logo { height: 104px; }
    .logo-a { font-size: 60px; letter-spacing: 4px; }
    .logo-b { font-size: 70px; left: 92px; top: 34px; }
    .g-head p { font-size: 19px; }
    .g-steps { gap: 8px; }
    .g-steps li { font-size: 18px; padding: 4px 10px 5px 5px; gap: 8px; }
    .g-steps b { width: 24px; height: 24px; font-size: 17px; }
    .g-copy h2 { font-size: 28px; }
    .g-copy > p { font-size: 19px; }
}

/* ===== 01 · join ===== */
.dj { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; width: 100%; align-items: start; }
.dj-chat {
    align-self: stretch;
    padding: 8px 10px;
    background: rgba(10, 10, 14, .9);
    border: 3px solid #000; border-radius: 10px;
    min-height: 200px;
}
.hc-head { font-size: 12px; letter-spacing: 3px; color: var(--dim); margin-bottom: 4px; }
.hc-line { font-size: 17px; letter-spacing: 1px; color: #ffd23f; line-height: 1.5; white-space: nowrap; }
.hc-line b { font-weight: normal; }
.hc-line.in { animation: g-pop .25s ease-out; }
@keyframes g-pop { from { opacity: 0; transform: translateY(5px); } }
.dj-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dj-status { font-size: 16px; letter-spacing: 3px; color: #8bd427; }
.dj-status.full { color: #ffd23f; }
.dj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dj-seat {
    position: relative;
    height: 92px;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    padding: 4px 4px 5px;
    background: var(--ink-3);
    border: 2px dashed var(--line); border-radius: 9px;
}
.dj-open { margin: auto 0; font-size: 13px; letter-spacing: 2px; color: #5e4e8c; }
.dj-seat.taken { border-style: solid; border-color: #000; animation: g-pop .25s ease-out; }
.dj-seat.you { border-color: var(--hot); box-shadow: 0 0 0 2px var(--hot) inset; }
.dj-bay { display: flex; justify-content: center; }
.dj-name { font-size: 14px; letter-spacing: 2px; margin-top: 2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* dark with a gold edge: on a gold chip the gold coin vanished and read as © */
.dj-gift {
    position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
    padding: 0 6px 1px;
    background: #170e2e; color: #ffd23f;
    border: 2px solid #ffd23f;
    border-radius: 5px; font-size: 12px; letter-spacing: 1px; white-space: nowrap;
}

/* ===== 02 · the real race ===== */
.dr-frame { position: relative; overflow: hidden; }
.dr-frame iframe {
    position: absolute; left: 0; top: 0;
    border: 0; background: transparent;
    transform-origin: top left;
}

/* ===== 03 · venues & skies ===== */
.g-skyhead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 14px 0 8px; }
.g-skyhead h3, .g-venhead { margin: 0; font-size: 16px; letter-spacing: 3px; font-weight: normal; color: var(--dim); }
.g-skyhead span { font-size: 16px; letter-spacing: 1px; color: #8a7cb0; }
.g-venhead { margin: 18px 0 8px; }

/* The seven skies double as a switch for the signs below. Only colours
   change on a click - the border is always 3px - so nothing moves. */
.g-skies { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.g-sky {
    display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 1px 10px;
    align-items: center; align-content: center;
    padding: 5px 10px 6px 5px;
    font-family: inherit; color: var(--text); text-align: left;
    background: var(--ink-3);
    border: 3px solid #000; border-radius: 10px;
    cursor: pointer;
}
.g-sky:hover { border-color: #5e4e8c; }
.g-sky:focus-visible { outline: 3px solid #ffd23f; outline-offset: 2px; }
.g-sky.on { border-color: #22e4ff; box-shadow: 0 0 10px rgba(34, 228, 255, .3); }
.g-sky-sw {
    grid-row: 1 / span 2;
    width: 46px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    font-style: normal; font-size: 20px; line-height: 1;
    background: var(--sw);
    border: 2px solid #000; border-radius: 7px;
}
.g-sky b { font-weight: normal; font-size: 19px; letter-spacing: 2px; line-height: 1.1; }
.g-sky.on b { color: #22e4ff; }
.g-sky-fx { font-size: 15px; letter-spacing: 1px; line-height: 1.2; color: var(--dim); }
.g-sky-fx > span { white-space: nowrap; }
.g-sky-fx .up { color: #a7dc63; }
.g-sky-fx .down { color: #ff8fa8; }

.g-venues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
/* the box is the sign's own shape, so a sign arriving (fonts first) or
   being redrawn in another sky never moves what is under it */
.g-sign { aspect-ratio: 320 / 112; border-radius: 14px; }
/* a plain sunset holds the place until the sign is drawn, and then steps out
   of the way so it cannot show at the sign's rounded corners */
.g-sign:empty { background: linear-gradient(#2b1055, #a8336e 72%, #ff9a6b); }
.g-sign svg { display: block; width: 100%; height: 100%; }
/* the venue's own pull on the race, in the colours the race HUD uses */
.g-perks { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.g-perk {
    padding: 0 8px 1px;
    border: 2px solid #000; border-radius: 6px;
    font-size: 16px; letter-spacing: 1px;
}
.g-perk.up { background: #24391c; color: #a7dc63; }
.g-perk.down { background: #3a1c26; color: #ff8fa8; }
@media (max-width: 760px) {
    .g-venues { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .g-skies { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* ===== 04 · plan ===== */
.dp { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.dp-row { display: grid; grid-template-columns: minmax(0, 1fr) 30px; grid-template-rows: auto auto; gap: 4px 10px; }
.dp-head { grid-column: 1; display: flex; align-items: baseline; gap: 10px; }
.dp-head b { font-size: 18px; font-weight: normal; letter-spacing: 2px; }
.dp-mode { font-size: 14px; letter-spacing: 2px; }
.dp-bar {
    grid-column: 1; grid-row: 2;
    position: relative; height: 24px;
    border: 2px solid #000; border-radius: 6px;
}
.dp-car { position: absolute; bottom: 2px; left: 0; }
.dp-tank {
    grid-column: 2; grid-row: 1 / span 2;
    position: relative;
    border: 2px solid #000; border-radius: 5px;
    background: #0d0820;
    overflow: hidden;
}
.dp-tank i { position: absolute; left: 0; right: 0; bottom: 0; }
.dp-tank-n {
    position: absolute; left: 0; right: 0; top: 2px;
    text-align: center; font-size: 12px; color: #fff; text-shadow: 0 1px 0 #000;
}
.dp-foot { font-size: 13px; letter-spacing: 2px; color: var(--dim); text-align: center; }

.g-modes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.g-modes li { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 10px; }
.g-modes b {
    font-weight: normal; font-size: 17px; letter-spacing: 2px; text-align: center;
    padding: 1px 0 2px; border: 2px solid; border-radius: 6px;
}
.g-modes span { font-size: 18px; color: var(--dim); }

/* ===== 05 · cups ===== */
.dc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 128px; gap: 10px; width: 100%; align-items: center; }
.dc-round { display: flex; flex-direction: column; gap: 10px; }
.dc-label { font-size: 12px; letter-spacing: 3px; color: var(--dim); }
.dc-match {
    border: 2px solid #000; border-radius: 8px;
    background: var(--ink-3);
    overflow: hidden;
    transition: box-shadow .2s;
}
.dc-match.live { box-shadow: 0 0 0 2px #ffd23f; }
.dc-side {
    padding: 4px 8px; font-size: 16px; letter-spacing: 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: background .2s, color .2s, opacity .2s;
}
.dc-side + .dc-side { border-top: 2px solid #000; }
.dc-side.won { background: rgba(139, 212, 39, .18); color: #8bd427; }
.dc-side.out { opacity: .35; }
.dc-side.in { animation: g-pop .25s ease-out; }
.dc-champ {
    display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
    opacity: 0; transform: scale(.9); transition: opacity .3s, transform .3s;
}
.dc-champ.show { opacity: 1; transform: none; }
.dc-crown { font-size: 12px; letter-spacing: 3px; color: #ffd23f; }
.dc-who { font-size: 18px; letter-spacing: 1px; }
.dc-champ img { width: 120px; height: auto; image-rendering: auto; border: 2px solid #000; border-radius: 6px; }
.dc-prize { font-size: 11px; letter-spacing: 2px; color: var(--dim); }

.g-crates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.g-crate {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 6px;
    background: var(--ink-3);
    border: 2px solid #000; border-top: 4px solid var(--tint); border-radius: 9px;
}
.g-crate b { font-size: 16px; font-weight: normal; letter-spacing: 2px; }
.g-crate img { width: 100%; height: auto; image-rendering: auto; border: 2px solid #000; border-radius: 5px; }
.g-crate span { font-size: 13px; letter-spacing: 2px; color: var(--tint); }

/* ===== 06 · containers ===== */
.dx { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.dx-head { display: flex; align-items: center; gap: 10px; }
.dx-head img { width: 96px; height: auto; image-rendering: auto; border: 2px solid #000; border-radius: 5px; }
.dx-head b { font-size: 20px; font-weight: normal; letter-spacing: 2px; }
.dx-reel {
    position: relative; height: 96px; overflow: hidden;
    background: #0c0720;
    border: 3px solid #000; border-radius: 10px;
}
.dx-track { position: absolute; left: 0; top: 6px; display: flex; will-change: transform; }
.dx-item {
    flex: 0 0 96px; height: 78px; margin-right: 8px;
    display: flex; align-items: flex-end; justify-content: center;
    background: linear-gradient(transparent 55%, color-mix(in srgb, var(--q) 30%, transparent));
    border: 2px solid #000; border-bottom: 4px solid var(--q); border-radius: 8px;
    padding-bottom: 4px;
}
.dx-item.hit { box-shadow: 0 0 0 3px var(--q); }
.dx-mark {
    position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1px;
    background: #ffd23f; box-shadow: 0 0 10px rgba(255, 210, 63, .6);
}
.dx-out { min-height: 24px; font-size: 18px; letter-spacing: 1px; color: #d4c8ec; opacity: 0; transition: opacity .25s; }
.dx-out.show { opacity: 1; }
.dx-out b { font-weight: normal; letter-spacing: 2px; }

/* ===== 07 · garage ===== */
.dg { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dg-label { font-size: 16px; letter-spacing: 3px; color: #ffd23f; min-height: 20px; }
.dg-bay {
    width: 100%; min-height: 104px;
    display: flex; align-items: flex-end; justify-content: center;
    border-bottom: 3px solid rgba(255, 255, 255, .07);
}
.dg-tune { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.dg-row { display: grid; grid-template-columns: 76px auto minmax(0, 1fr); align-items: center; gap: 10px; }
.dg-row b { font-size: 15px; font-weight: normal; letter-spacing: 2px; }
.dg-row span { font-size: 13px; letter-spacing: 2px; color: var(--dim); }
.dg-pips { display: flex; gap: 3px; }
.dg-pips i {
    width: 16px; height: 10px; border: 2px solid #000; border-radius: 3px;
    background: var(--ink-3); transition: background .2s;
}
.dg-pips i.on { background: #8bd427; }

/* ===== 08 · classes ===== */
.dk { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dk-col {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 8px 6px;
    background: radial-gradient(80% 70% at 50% 85%, color-mix(in srgb, var(--tier) 22%, transparent), transparent 70%), var(--ink-3);
    border: 2px solid #000; border-radius: 10px;
}
.dk-badge {
    font-weight: normal; font-size: 15px; letter-spacing: 3px;
    padding: 0 8px 1px; border-radius: 5px;
    background: var(--tier); color: #170e2e;
}
.dk-bay { min-height: 58px; display: flex; align-items: flex-end; }
.dk-price { font-size: 17px; letter-spacing: 1px; color: #ffd23f; }

/* ===== 09 · pay slip ===== */
.dm {
    width: min(320px, 100%);
    padding: 12px 14px 14px;
    background: #f1ede2; color: #1c1233;
    border: 3px solid #000; border-radius: 6px;
    box-shadow: 0 6px 0 rgba(0, 0, 0, .35);
    font-size: 17px; letter-spacing: 1px;
}
.dm-head { display: flex; align-items: flex-end; gap: 10px; padding-bottom: 6px; border-bottom: 2px dashed #b9b3a3; }
.dm-head b { font-weight: normal; font-size: 18px; letter-spacing: 2px; }
.dm-rows { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; min-height: 110px; }
.dm-row { display: flex; justify-content: space-between; animation: g-pop .2s ease-out; }
.dm-row b { font-weight: normal; }
.dm-row.plus b { color: #2f7d18; }
.dm-row.minus b { color: #c22c4f; }
.dm-total {
    padding-top: 6px; border-top: 2px dashed #b9b3a3;
    text-align: right; font-size: 28px; color: #170e2e; min-height: 36px;
}

.g-coin { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 10px; }
.g-coin p { margin: 0; font-size: 19px; line-height: 1.3; color: var(--dim); }
.g-coin b { color: var(--text); font-weight: normal; }

/* ===== 10 · commands ===== */
.g-cmds { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; margin-top: 8px; }
@media (max-width: 760px) { .g-cmds { grid-template-columns: minmax(0, 1fr); } }
.g-cmds h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: 3px; font-weight: normal; color: var(--dim); }
.g-cmds dl { margin: 0; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 6px 10px; }
.g-cmds dt { font-size: 21px; color: #ffd23f; }
.g-cmds dd { margin: 0; font-size: 18px; color: #d4c8ec; align-self: center; }

/* ===== 11 · questions ===== */
.g-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin-top: 8px; }
@media (max-width: 760px) { .g-faq { grid-template-columns: minmax(0, 1fr); } }
.g-faq h3 { margin: 0 0 2px; font-size: 21px; font-weight: normal; letter-spacing: 1px; }
.g-faq p { margin: 0; font-size: 18px; line-height: 1.3; color: var(--dim); }

/* ===== for streamers ===== */
.g-sec.streamers { border-color: #4a3a12; }
.g-studio { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
/* the studio's own colour, in the same chrome */
.g-studio h2 { background-image: linear-gradient(180deg, #fffbe6 0%, #ffe9a0 45%, #ffb81f 53%, #fff1b8 100%); }
.g-studio p { margin: 0; font-size: 19px; color: var(--dim); }
.g-studio > div { flex: 1; min-width: 220px; }
.g-studio .btn { margin-left: 0; background: #ffd23f; color: #170e2e; }
/* lab.css gives every action button a pink glow; this one is gold */
.g-sec.streamers .g-studio .btn:not(:disabled) { box-shadow: 0 0 12px rgba(255, 210, 63, .35); }

@media (max-width: 520px) {
    .dj { grid-template-columns: 112px minmax(0, 1fr); gap: 8px; }
    .hc-line { font-size: 14px; white-space: normal; line-height: 1.25; margin-bottom: 3px; }
    .dj-bay .car-frame { zoom: .72; }
    .dj-name { font-size: 12px; letter-spacing: 1px; }
    .dj-status { font-size: 13px; letter-spacing: 2px; }
    .dc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .dc-champ { grid-column: 1 / -1; flex-direction: row; justify-content: center; }
    .dc-champ img { width: 90px; }
    .dx-head img { width: 72px; }
    .g-cmds dl { grid-template-columns: 92px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .hc-line.in, .dj-seat.taken, .dc-side.in, .dm-row { animation: none; }
    .g-scene { transition: none; }
}
