    :root {
      color-scheme: dark;
      --tar: #17130f;
      --tar-soft: #211b15;
      --bone: #e8d9b5;
      --bone-dim: #b9aa88;
      --copper: #b85e32;
      --copper-dark: #6f351f;
      --turquoise: #2bbfa8;
      --gold: #f1c453;
      --red: #d94735;
      --sand: #8b6a3d;
      --sand-light: #b68c50;
      --glass: rgba(198, 231, 221, .16);
      --line: rgba(232, 217, 181, .18);
      --shadow: rgba(0, 0, 0, .52);
      --bl: 8px;
      --gutter: 12px;
      font-family: "Arial Narrow", "Roboto Condensed", "Franklin Gothic Medium", sans-serif;
      background: var(--tar);
      color: var(--bone);
    }

    * { box-sizing: border-box; }
    html { background: var(--tar); }
    body {
      min-width: 320px;
      min-height: 100vh;
      margin: 0;
      overflow-x: hidden;
      background:
        linear-gradient(rgba(23, 19, 15, .92), rgba(23, 19, 15, .97)),
        repeating-linear-gradient(22deg, transparent 0 26px, rgba(232, 217, 181, .06) 27px 28px),
        var(--tar);
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      opacity: .34;
      background:
        radial-gradient(circle at 50% -15%, rgba(241, 196, 83, .2), transparent 38rem),
        repeating-linear-gradient(90deg, transparent 0 5px, rgba(0, 0, 0, .06) 6px);
      mix-blend-mode: screen;
    }

    button, input, select { font: inherit; }
    button, select {
      border: 1px solid rgba(232, 217, 181, .28);
      border-radius: 3px;
      background: #2a2119;
      color: var(--bone);
    }
    button { min-height: 38px; padding: 7px 13px; cursor: pointer; font-weight: 800; letter-spacing: .04em; }
    button:hover { border-color: var(--gold); color: var(--gold); }
    :focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; }

    .app { width: min(1600px, 100%); min-height: 100vh; margin: auto; padding: 12px 16px 18px; }
    .broadcast-bar {
      position: relative;
      z-index: 4;
      display: grid;
      grid-template-columns: minmax(220px, 1fr) minmax(310px, 1.1fr) minmax(220px, 1fr);
      align-items: center;
      gap: 18px;
      min-height: 82px;
      padding: 9px 14px;
      border: 1px solid var(--line);
      border-top: 4px solid var(--copper);
      background: linear-gradient(180deg, #2b2118, #1b1611);
      box-shadow: 0 10px 28px var(--shadow);
    }
    .brand-lockup { min-width: 0; }
    .kicker, .micro, .label {
      color: var(--bone-dim);
      font: 700 10px/1.25 Consolas, "IBM Plex Mono", monospace;
      letter-spacing: .13em;
      text-transform: uppercase;
    }
    .wordmark {
      margin: 2px 0 0;
      color: var(--bone);
      font: 900 clamp(27px, 3.3vw, 48px)/.82 Rockwell, "Roboto Slab", Georgia, serif;
      letter-spacing: -.055em;
      text-transform: uppercase;
      text-shadow: 2px 3px 0 var(--copper-dark);
    }
    .wordmark span { color: var(--gold); }
    .jackpot-plate {
      position: relative;
      justify-self: center;
      width: min(100%, 520px);
      padding: 9px 44px;
      text-align: center;
      border: 2px solid #8b522f;
      border-radius: 5px;
      background:
        linear-gradient(90deg, rgba(255,255,255,.06), transparent 12% 88%, rgba(0,0,0,.18)),
        #6d3e27;
      box-shadow: inset 0 0 0 3px #2d1b13, 0 6px 0 #0d0a08;
    }
    .jackpot-plate::before, .jackpot-plate::after {
      content: "";
      position: absolute;
      top: 50%;
      width: 8px;
      height: 8px;
      margin-top: -4px;
      border-radius: 50%;
      background: var(--gold);
      box-shadow: inset 0 0 0 2px #72571d;
    }
    .jackpot-plate::before { left: 13px; }
    .jackpot-plate::after { right: 13px; }
    .jackpot-plate strong {
      display: block;
      margin-top: 2px;
      color: var(--gold);
      font: 800 clamp(22px, 2.9vw, 38px)/1 Consolas, "IBM Plex Mono", monospace;
      letter-spacing: -.05em;
    }
    .schedule { display: grid; justify-items: end; gap: 3px; text-align: right; }
    .schedule strong { color: var(--turquoise); font: 800 22px/1 Consolas, monospace; }
    .connection { display: inline-flex; align-items: center; gap: 6px; color: var(--bone-dim); font-size: 11px; }
    .connection::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--turquoise); box-shadow: 0 0 0 3px rgba(43,191,168,.12); }
    .connection[data-state="error"]::before { background: var(--red); }

    .phase-strip {
      position: relative;
      z-index: 3;
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 38px;
      padding: 6px 12px;
      border-inline: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      background: #1c1712;
      overflow: hidden;
    }
    .live-flag { padding: 4px 7px; border-radius: 2px; background: #a63227; color: #fff6e2; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
    #phase-name { color: var(--gold); font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
    #phase-detail { min-width: 0; color: var(--bone-dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    #camera-cue { margin-left: auto; color: var(--turquoise); font: 700 10px Consolas, monospace; text-transform: uppercase; white-space: nowrap; }
    .network-strip { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 7px 12px; border: 1px solid var(--line); border-top: 0; background: #15110e; color: var(--bone-dim); font: 9px/1.35 Consolas, monospace; }
    .network-strip b { color: var(--turquoise); }

    .broadcast-grid {
      display: grid;
      grid-template-columns: minmax(150px, .34fr) minmax(560px, 1.55fr) minmax(255px, .55fr);
      gap: 10px;
      margin-top: 10px;
    }
    .panel {
      border: 1px solid var(--line);
      background: rgba(34, 27, 21, .92);
      box-shadow: 0 12px 28px rgba(0,0,0,.2);
    }
    .panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 11px 8px; border-bottom: 1px solid var(--line); }
    h2, h3 { margin: 0; color: var(--bone); font: 900 15px/1 Rockwell, Georgia, serif; letter-spacing: .035em; text-transform: uppercase; }

    .crew-panel { align-self: start; }
    .crew-list { display: grid; gap: 5px; max-height: 690px; padding: 8px; overflow: auto; }
    .crew-card {
      --crew-color: var(--turquoise);
      display: grid;
      grid-template-columns: 24px minmax(0, 1fr);
      gap: 7px;
      align-items: center;
      min-height: 38px;
      padding: 4px 5px;
      border-left: 3px solid var(--crew-color);
      background: rgba(0,0,0,.16);
      transition: opacity .16s ease, transform .16s ease;
    }
    .crew-card.is-out { opacity: .34; filter: grayscale(.7); }
    .crew-card.is-focus { transform: translateX(3px); background: rgba(241,196,83,.09); }
    .crew-card.is-pass { border-left-style: double; border-left-width: 5px; }
    .crew-card.is-house { border-left-color: #8d887e; background: repeating-linear-gradient(135deg, rgba(232,217,181,.05) 0 4px, transparent 4px 8px); }
    .snake-mark {
      position: relative;
      width: 22px;
      height: 12px;
      border: 3px solid var(--crew-color);
      border-left-width: 7px;
      border-radius: 60% 40% 50% 50%;
      transform: rotate(-12deg);
    }
    .snake-mark::after { content: ""; position: absolute; right: -5px; top: 1px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
    .crew-name { overflow: hidden; color: var(--bone); font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
    .crew-meta { color: var(--bone-dim); font: 9px Consolas, monospace; text-transform: uppercase; }

    .pit-panel { position: relative; min-width: 0; overflow: hidden; background: #0e0c09; }
    .pit-head { position: absolute; z-index: 3; top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; pointer-events: none; }
    .pit-title { padding: 6px 9px; border-left: 3px solid var(--copper); background: rgba(23,19,15,.8); }
    .pit-title h2 { font-size: 18px; }
    .alive-plate { padding: 6px 9px; background: rgba(23,19,15,.82); color: var(--bone); font: 800 12px Consolas, monospace; text-align: right; }
    .stage { position: relative; min-height: 500px; background: radial-gradient(ellipse at 50% 40%, #47311d, #0d0b08 72%); }
    .arena-host { width: 100%; height: 500px; }
    .arena-host canvas { display: block; width: 100%; height: 100%; }
    .camera-bars { position: absolute; inset: 0; pointer-events: none; border-block: 0 solid #090705; transition: border-width .35s ease; }
    .stage[data-camera="final"] .camera-bars { border-block-width: 18px; }
    .impact-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; box-shadow: inset 0 0 90px var(--copper); }
    .stage.is-impact .impact-flash { animation: impact .36s ease-out; }

    .drum-rig {
      position: absolute;
      z-index: 4;
      left: 50%;
      bottom: 10px;
      width: 148px;
      height: 118px;
      transform: translateX(-50%) scale(.78);
      transform-origin: 50% 100%;
      transition: width .5s ease, height .5s ease, bottom .5s ease, transform .5s ease;
      pointer-events: none;
    }
    .stage.is-post .drum-rig { width: 330px; height: 268px; bottom: 84px; transform: translateX(-50%) scale(1); }
    .stage.is-post::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(circle at 50% 52%, rgba(241,196,83,.08), rgba(10,8,6,.82) 66%); }
    .drum-yoke { position: absolute; inset: 5% 0 10%; border: 7px solid #9b672e; border-bottom-width: 12px; border-radius: 24% 24% 6% 6%; box-shadow: inset 0 0 0 2px #e0aa45, 0 7px 10px rgba(0,0,0,.5); }
    .drum-glass {
      position: absolute;
      left: 15%;
      top: 13%;
      width: 70%;
      aspect-ratio: 1.22;
      overflow: hidden;
      border: 5px solid #d8a747;
      border-radius: 50%;
      background: linear-gradient(145deg, rgba(219,245,235,.24), rgba(43,191,168,.06) 52%, rgba(0,0,0,.18));
      box-shadow: inset 15px 12px 22px rgba(255,255,255,.11), inset -16px -12px 22px rgba(0,0,0,.32), 0 0 24px rgba(241,196,83,.18);
    }
    .drum-glass::before { content: ""; position: absolute; inset: 8% 46% 12% 12%; border-radius: 50%; background: linear-gradient(100deg, rgba(255,255,255,.25), transparent); transform: rotate(18deg); }
    .tickets { position: absolute; inset: 12%; }
    .ticket-chip { position: absolute; width: 22%; height: 10%; border: 1px solid #8c7140; border-radius: 2px; background: var(--bone); box-shadow: 0 2px 3px rgba(0,0,0,.45); transform: rotate(var(--angle)); }
    .ticket-chip:nth-child(3n) { background: #d8bd78; }
    .drum-rig.is-rattling .drum-glass { animation: drum-turn .58s linear infinite; }
    .stage[data-rattle="mini"] .drum-glass { box-shadow: inset 15px 12px 22px rgba(255,255,255,.11), 0 0 42px var(--turquoise); }
    .stage[data-rattle="medium"] .drum-glass { box-shadow: inset 15px 12px 22px rgba(255,255,255,.11), 0 0 74px var(--gold); }
    .stage[data-rattle="major"] { box-shadow: inset 0 0 150px rgba(241,196,83,.48); }
    .stage[data-rattle="major"] .drum-glass { box-shadow: inset 15px 12px 22px rgba(255,255,255,.18), 0 0 110px var(--gold); }
    .drum-caption { position: absolute; left: 50%; bottom: -2px; width: 175%; transform: translateX(-50%); color: var(--gold); font: 900 11px/1.2 Rockwell, Georgia, serif; letter-spacing: .09em; text-align: center; text-transform: uppercase; text-shadow: 0 2px 3px #000; }
    .stage.is-post .drum-caption { font-size: 17px; }
    .drum-caption span { display: block; margin-top: 2px; color: var(--bone); font: 700 10px Consolas, monospace; letter-spacing: .05em; }

    .phase-card {
      position: absolute;
      z-index: 5;
      left: 50%;
      top: 45%;
      width: min(82%, 540px);
      padding: 18px;
      opacity: 0;
      transform: translate(-50%, -45%) scale(.96);
      border: 1px solid rgba(241,196,83,.45);
      background: rgba(23,19,15,.93);
      box-shadow: 0 22px 70px #000;
      text-align: center;
      pointer-events: none;
      transition: opacity .3s ease, transform .3s ease;
    }
    .phase-card.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    .stage.is-post .phase-card { top: 19%; width: min(74%, 620px); padding: 12px 18px; }
    .stage.is-post .phase-card strong { font-size: clamp(23px, 3.8vw, 42px); }
    .phase-card strong { display: block; color: var(--gold); font: 900 clamp(26px, 5vw, 52px)/.95 Rockwell, Georgia, serif; text-transform: uppercase; }
    .phase-card span { display: block; margin-top: 7px; color: var(--bone); font: 700 12px/1.4 Consolas, monospace; }

    .controls {
      display: grid;
      grid-template-columns: auto auto auto auto minmax(110px, 1fr) auto auto minmax(130px, auto) auto;
      align-items: center;
      gap: 7px;
      padding: 9px;
      border-top: 1px solid var(--line);
      background: #1b1611;
    }
    .primary { border-color: var(--gold); background: var(--gold); color: #2a1d0f; }
    .primary:hover { color: #17130f; background: #ffd873; }
    input[type="range"] { width: 100%; accent-color: var(--copper); }
    select { min-height: 38px; padding: 5px 8px; }
    #event-counter { min-width: 76px; color: var(--bone-dim); font: 700 10px Consolas, monospace; text-align: right; }

    .feed-panel { display: grid; grid-template-rows: auto minmax(230px, 1fr) auto; min-height: 0; }
    .event-feed { max-height: 505px; margin: 0; padding: 8px 8px 8px 28px; overflow: auto; color: var(--bone-dim); font-size: 11px; line-height: 1.35; }
    .event-feed li { margin-bottom: 7px; padding-left: 2px; }
    .event-feed li::marker { color: var(--copper); font: 700 9px Consolas, monospace; }
    .event-feed strong { color: var(--bone); }
    .burn-ledger { padding: 9px; border-top: 1px solid var(--line); background: rgba(217,71,53,.055); }
    .burn-ledger h3 { color: var(--red); font-size: 12px; }
    .burn-list { display: grid; gap: 5px; margin-top: 7px; }
    .burn-item { padding: 6px; border-left: 3px solid var(--red); background: rgba(0,0,0,.16); color: var(--bone-dim); font: 9px/1.35 Consolas, monospace; }
    .burn-item strong { display: block; color: var(--bone); font-size: 10px; }

    .results-grid { display: grid; grid-template-columns: minmax(400px, 1.3fr) minmax(310px, .7fr); gap: 10px; margin-top: 10px; }
    .top-ten { padding-bottom: 8px; }
    .purse-formula { color: var(--gold); font: 700 11px Consolas, monospace; }
    .placement-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 9px; }
    .place-card {
      --place-color: var(--turquoise);
      position: relative;
      min-width: 0;
      min-height: 78px;
      padding: 8px 7px 7px 30px;
      border-top: 3px solid var(--place-color);
      background: rgba(0,0,0,.18);
    }
    .place-card:nth-child(1) { background: linear-gradient(135deg, rgba(241,196,83,.2), rgba(0,0,0,.16)); }
    .place-number { position: absolute; left: 7px; top: 6px; color: var(--gold); font: 900 21px/1 Rockwell, Georgia, serif; }
    .place-name { display: block; overflow: hidden; color: var(--bone); font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
    .place-share { display: block; margin-top: 8px; color: var(--gold); font: 800 12px Consolas, monospace; }
    .place-credit { color: var(--bone-dim); font: 9px Consolas, monospace; }
    .returns { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0 10px 4px; color: var(--bone-dim); font: 10px Consolas, monospace; }
    .returns b { color: var(--bone); }

    .rattle-panel { position: relative; overflow: hidden; }
    .rattle-panel::before { content: ""; position: absolute; right: -36px; top: -42px; width: 140px; height: 140px; border: 16px double rgba(241,196,83,.08); border-radius: 50%; }
    .rattle-readout { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
    .readout { padding: 7px; border-top: 1px solid var(--line); }
    .readout span { display: block; color: var(--bone-dim); font: 8px Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
    .readout strong { display: block; margin-top: 3px; color: var(--bone); font-size: 15px; }
    .readout.accent strong { color: var(--gold); }
    .receipt-order { margin: 0 10px 10px; padding: 8px; border: 1px solid rgba(43,191,168,.25); color: var(--bone-dim); font: 10px/1.5 Consolas, monospace; }
    .receipt-order b { color: var(--turquoise); }

    .footer {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 12px;
      margin-top: 10px;
      padding: 10px 12px;
      border: 1px solid var(--line);
      background: #1b1611;
      color: var(--bone-dim);
      font-size: 11px;
      line-height: 1.4;
    }
    .footer strong { color: var(--turquoise); }
    details { max-width: 620px; }
    summary { cursor: pointer; color: var(--bone); font-weight: 800; }
    .hashes { display: grid; grid-template-columns: 110px 1fr; gap: 4px 8px; margin: 7px 0 0; font: 9px/1.35 Consolas, monospace; }
    .hashes dt { color: var(--bone-dim); }
    .hashes dd { margin: 0; overflow-wrap: anywhere; color: var(--bone); }

    .load-error { position: fixed; z-index: 20; inset: 0; display: none; place-items: center; padding: 20px; background: rgba(23,19,15,.96); }
    .load-error.is-visible { display: grid; }
    .error-card { width: min(500px, 100%); padding: 24px; border: 1px solid var(--red); background: #2b1b16; box-shadow: 0 24px 70px #000; }
    .error-card h2 { color: var(--red); font-size: 24px; }
    .error-card p { color: var(--bone-dim); line-height: 1.5; }

    /* Pixel broadcast pass: one 12-column field, hairline separation, arena-first hierarchy. */
    .skip-link { position: fixed; z-index: 30; left: 16px; top: 8px; padding: 10px 14px; background: var(--bone); color: var(--tar); transform: translateY(-160%); }
    .skip-link:focus { transform: none; }
    .broadcast-bar { border-top-width: 1px; }
    .loop-primer { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-top: 0; background: #1b1611; }
    .loop-step { min-width: 0; padding: 8px 10px; border-right: 1px solid var(--line); color: var(--bone-dim); font-size: 11px; line-height: 1.25; }
    .loop-step:last-child { border-right: 0; }
    .loop-step b { display: block; margin-bottom: 2px; color: var(--bone); }
    .loop-step strong { color: var(--gold); }
    .broadcast-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .crew-panel { grid-column: span 2; }
    .crew-list { max-height: 525px; }
    .pit-panel { grid-column: span 8; align-self: start; }
    .feed-panel { grid-column: span 2; height: 571px; }
    .crew-card { border-left: 0; border: 1px solid transparent; }
    .crew-card.is-focus { border-color: var(--gold); }
    .crew-card.is-pass { border-left: 0; }
    .crew-card.is-pass .snake-mark { outline: 2px double var(--gold); outline-offset: 2px; }
    .crew-card.is-house { border-left: 0; background: rgba(232,217,181,.04); }
    .pit-title { border-left: 0; border: 1px solid var(--line); }
    .place-card { border-top: 0; border: 1px solid var(--line); }
    .arena-legend { position: absolute; z-index: 2; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px 12px; max-width: calc(100% - 24px); padding: 6px 8px; border: 1px solid var(--line); background: rgba(23,19,15,.88); color: var(--bone-dim); font: 9px/1.2 Consolas, monospace; pointer-events: none; }
    .legend-key { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
    .legend-key::before { content: ""; width: 13px; height: 4px; border-radius: 4px; background: var(--turquoise); }
    .legend-key.house::before { background: #8d887e; }
    .legend-key.impact::before { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
    .legend-key.poster::before { height: 8px; border-radius: 0; background: var(--bone); }

    @keyframes impact { 0% { opacity: .8; } 100% { opacity: 0; } }
    @keyframes drum-turn { to { transform: rotate(360deg); } }

    @media (max-width: 1150px) {
      .broadcast-grid { grid-template-columns: minmax(520px, 1.4fr) minmax(250px, .6fr); }
      .pit-panel, .feed-panel { grid-column: auto; }
      .crew-panel { grid-column: 1 / -1; grid-row: 2; }
      .crew-list { grid-template-columns: repeat(5, minmax(0, 1fr)); max-height: none; }
      .results-grid { grid-template-columns: 1fr; }
      .loop-primer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .loop-step:nth-child(3) { border-right: 0; }
      .loop-step:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
    }

    @media (max-width: 790px) {
      .app { padding: 8px; }
      .broadcast-bar { grid-template-columns: 1fr 1fr; gap: 10px; }
      .jackpot-plate { grid-column: 1 / -1; grid-row: 2; }
      .schedule { align-self: end; }
      .broadcast-grid { grid-template-columns: 1fr; }
      .pit-panel { grid-row: 1; }
      .feed-panel { grid-row: 2; }
      .crew-panel { grid-row: 3; grid-column: auto; }
      .crew-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .feed-panel { height: auto; grid-template-rows: auto auto auto; }
      .event-feed { max-height: 190px; }
      .stage { min-height: 430px; }
      .arena-host { height: 430px; }
      .controls { grid-template-columns: 1fr 1fr 1fr; }
      .controls input { grid-column: 1 / -1; grid-row: 2; }
      #event-counter { text-align: left; }
      .placement-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .place-card:first-child { grid-column: 1 / -1; }
      .footer { grid-template-columns: 1fr; }
      .loop-primer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .loop-step, .loop-step:nth-child(3) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
      .loop-step:nth-child(even) { border-right: 0; }
      .loop-step:nth-last-child(-n+2) { border-bottom: 0; }
    }

    @media (max-width: 460px) {
      .app { padding: 0; }
      .broadcast-bar { grid-template-columns: 1fr auto; gap: 8px; min-height: 64px; padding: 8px; }
      .kicker, .schedule .label { display: none; }
      .wordmark { font-size: 27px; }
      .schedule { justify-items: end; text-align: right; }
      .schedule strong { font-size: 16px; }
      .jackpot-plate { grid-column: 1 / -1; grid-row: 2; padding: 6px 24px; }
      .jackpot-plate strong { font-size: 22px; }
      .network-strip { display: none; }
      .loop-step { padding: 6px 8px; font-size: 10px; }
      .phase-strip { align-items: flex-start; flex-wrap: wrap; }
      #phase-detail { order: 3; width: 100%; white-space: normal; }
      #camera-cue { margin-left: 0; }
      .stage { min-height: 340px; }
      .arena-host { height: 340px; }
      .stage.is-post .drum-rig { width: 250px; height: 210px; bottom: 70px; }
      .controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .controls button, .controls select { min-width: 0; width: 100%; padding-inline: 5px; }
      .controls input { grid-column: 1 / -1; }
      .crew-list { grid-template-columns: 1fr 1fr; }
      .rattle-readout { grid-template-columns: 1fr; }
      .arena-legend { left: 6px; right: 6px; bottom: 6px; max-width: none; justify-content: space-between; }
      .legend-key { font-size: 0; }
      .legend-key::after { font-size: 9px; }
      .legend-key.holder::after { content: "holder"; }
      .legend-key.house::after { content: "house"; }
      .legend-key.impact::after { content: "impact"; }
      .legend-key.poster::after { content: "poster"; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition: none !important; }
    }
