/* level-3.css — extracted from inline <style> blocks. Generated by scripts/h1-extract.mjs */
/* === Agent Arena training-ground palette override === */
      :root {
        --bg-card: #110812;
        --bg-terminal: #080510;
        --green: #ffb84d;
        --green-dim: #cc8a2a;
        --green-muted: #66421a;
        --green-dark: #2e1d08;
        --green-glow: rgba(255, 184, 77, 0.14);
        --green-glow-strong: rgba(255, 184, 77, 0.28);
        --text-dim: #d1965a;
        --text-muted: #7a4a1c;
        --white: #ffe7c4;
      }

      /* === Training-ground header — level hero art === */
      .back-link {
        display: inline-block;
        margin-bottom: 14px;
        color: var(--text-dim);
        font-family: "JetBrains Mono", monospace;
        font-size: 11px;
        letter-spacing: 2px;
        text-transform: uppercase;
        text-decoration: none;
        border: 1px solid var(--green-dark);
        padding: 8px 14px;
        background: var(--bg-card);
        transition: border-color 0.2s, color 0.2s;
      }
      .back-link:hover { border-color: var(--green); color: var(--green); }
      .level-hero {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        max-height: 360px;
        background: #080510 center / cover no-repeat;
        border: 1px solid var(--green-dark);
        margin-bottom: 22px;
        overflow: hidden;
      }
      .level-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(10, 5, 3, 0) 38%, rgba(10, 5, 3, 0.92) 100%);
        pointer-events: none;
        z-index: 1;
      }
      .level-hero .spotlight {
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(ellipse 55% 70% at 50% 0%, rgba(0, 229, 255, 0.18) 0%, rgba(0, 229, 255, 0.08) 30%, rgba(0, 0, 0, 0) 65%);
        mix-blend-mode: screen;
        animation: spotlight-flicker 5.4s ease-in-out infinite;
        z-index: 1;
      }
      .level-hero .sparkle {
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(115deg, rgba(0, 229, 255, 0) 42%, rgba(0, 229, 255, 0.16) 50%, rgba(0, 229, 255, 0) 58%);
        transform: translateX(-120%);
        animation: sparkle-sweep 7.8s ease-in-out infinite;
        mix-blend-mode: screen;
        z-index: 1;
      }
      .level-hero .hero-text {
        position: absolute;
        left: 0; right: 0; bottom: 22px;
        text-align: center;
        z-index: 2;
        padding: 0 16px;
      }
      .level-hero .hero-text .tag {
        color: var(--green);
        font-size: 12px;
        letter-spacing: 3px;
        text-transform: uppercase;
        text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
        font-family: "JetBrains Mono", monospace;
      }
      .level-hero .hero-text h1 {
        font-family: "Orbitron", "JetBrains Mono", monospace;
        font-weight: 900;
        font-size: 56px;
        color: var(--green);
        text-shadow:
          0 0 18px rgba(0, 0, 0, 0.95),
          0 0 28px var(--green-glow-strong),
          0 0 44px rgba(255, 184, 77, 0.5);
        margin: 6px 0 0;
        letter-spacing: 4px;
        position: relative;
      }
      .level-hero .hero-text h1::before,
      .level-hero .hero-text h1::after {
        content: attr(data-text);
        position: absolute;
        left: 0; top: 0;
        width: 100%;
        pointer-events: none;
      }
      .level-hero .hero-text h1::before {
        color: #00e7ff;
        transform: translate(-2px, 0);
        mix-blend-mode: screen;
        opacity: 0.55;
        animation: chroma-drift-a 3.4s infinite steps(1);
      }
      .level-hero .hero-text h1::after {
        color: #ff2f6b;
        transform: translate(2px, 0);
        mix-blend-mode: screen;
        opacity: 0.5;
        animation: chroma-drift-b 4.1s infinite steps(1);
      }
      @keyframes spotlight-flicker {
        0%, 100% { opacity: 1; }
        12% { opacity: 0.82; }
        14% { opacity: 1; }
        38% { opacity: 0.9; }
        40% { opacity: 1; }
        62% { opacity: 0.78; }
        64% { opacity: 1; }
        88% { opacity: 0.94; }
      }
      @keyframes sparkle-sweep {
        0%, 74%   { transform: translateX(-120%); }
        84%, 100% { transform: translateX(120%); }
      }
      @media (prefers-reduced-motion: reduce) {
        .level-hero .spotlight,
        .level-hero .sparkle { animation: none; }
        .level-hero .hero-text h1::before,
        .level-hero .hero-text h1::after { animation: none; }
      }
      @media (max-width: 760px) {
        .level-hero { max-height: 220px; margin-bottom: 18px; }
        .level-hero .hero-text { bottom: 14px; }
        .level-hero .hero-text h1 { font-size: 28px; letter-spacing: 2px; }
        .level-hero .hero-text .tag { font-size: 10px; letter-spacing: 2px; }
      }

      /* ==============================================================
         LEVEL 3 — CIPHER RAIN
         Futuristic rain arena. Agent must freeze the columns whose
         focus-row glyph matches the real cipher (hidden per tier).
         ============================================================== */

      .course-wrap {
        max-width: 1080px;
        margin: 0 auto;
        padding: 60px 24px 120px;
        position: relative;
        z-index: 2;
      }
      .course-header {
        border: 1px solid var(--green-dark);
        background: var(--bg-card);
        padding: 24px 28px;
        margin-bottom: 32px;
        position: relative;
        overflow: hidden;
      }
      .course-header::before {
        /* CRT scanline overlay, purely decorative */
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: repeating-linear-gradient(
          to bottom,
          rgba(255, 184, 77, 0) 0px,
          rgba(255, 184, 77, 0) 2px,
          rgba(255, 184, 77, 0.04) 3px,
          rgba(255, 184, 77, 0) 4px
        );
        mix-blend-mode: screen;
      }
      .course-header .tag {
        color: var(--text-dim);
        font-size: 12px;
        letter-spacing: 2px;
        text-transform: uppercase;
        font-family: "JetBrains Mono", monospace;
      }
      .course-header h1 {
        font-family: "Orbitron", "JetBrains Mono", monospace;
        font-weight: 900;
        font-size: 40px;
        letter-spacing: 4px;
        margin: 8px 0 14px;
        color: var(--green);
        text-shadow:
          0 0 12px var(--green-glow-strong),
          0 0 32px rgba(255, 184, 77, 0.35);
        position: relative;
      }
      /* Chromatic aberration on the title — two coloured ghost layers
         offset by a few px. Uses data-text to avoid duplicating markup. */
      .course-header h1::before,
      .course-header h1::after {
        content: attr(data-text);
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        pointer-events: none;
      }
      .course-header h1::before {
        color: #00e7ff;
        transform: translate(-2px, 0);
        mix-blend-mode: screen;
        opacity: 0.6;
        animation: chroma-drift-a 3.4s infinite steps(1);
      }
      .course-header h1::after {
        color: #ff2f6b;
        transform: translate(2px, 0);
        mix-blend-mode: screen;
        opacity: 0.55;
        animation: chroma-drift-b 4.1s infinite steps(1);
      }
      @keyframes chroma-drift-a {
        0%, 100% { transform: translate(-2px, 0); }
        14% { transform: translate(-3px, 1px); }
        32% { transform: translate(-1px, -1px); }
        51% { transform: translate(-4px, 0); }
        73% { transform: translate(-2px, 1px); }
      }
      @keyframes chroma-drift-b {
        0%, 100% { transform: translate(2px, 0); }
        17% { transform: translate(3px, -1px); }
        39% { transform: translate(1px, 1px); }
        58% { transform: translate(4px, 0); }
        81% { transform: translate(2px, -1px); }
      }
      .course-header p {
        color: var(--text-dim);
        font-size: 14px;
        line-height: 1.7;
      }
      .course-header .briefing {
        margin-top: 16px;
        padding: 12px 16px;
        border-left: 2px solid var(--green-muted);
        background: var(--bg-terminal);
        color: var(--white);
        font-size: 13px;
        position: relative;
        z-index: 1;
      }

      .status-bar {
        display: flex;
        gap: 18px;
        align-items: center;
        flex-wrap: wrap;
        padding: 12px 18px;
        border: 1px solid var(--green-dark);
        background: var(--bg-terminal);
        margin-bottom: 24px;
        font-size: 13px;
      }
      .status-bar .label { color: var(--text-muted); }
      .status-bar .val { color: var(--green); }
      .status-bar .frozen-indicator {
        margin-left: auto;
        color: var(--green);
        font-family: "JetBrains Mono", monospace;
        font-size: 16px;
        letter-spacing: 3px;
      }
      .status-bar .pulse {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--red);
        box-shadow: 0 0 8px var(--red);
        animation: pulse 1s infinite;
      }
      .status-bar.won .pulse {
        background: var(--green);
        box-shadow: 0 0 14px var(--green);
      }
      @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.3; }
      }

      /* ===== ARENA ===== */
      .arena {
        border: 1px solid var(--green-dark);
        background:
          radial-gradient(
            ellipse at top,
            rgba(255, 184, 77, 0.08) 0%,
            transparent 60%
          ),
          var(--bg-card);
        padding: 30px 24px 24px;
        position: relative;
        overflow: hidden;
      }
      .arena-label {
        position: absolute;
        top: -10px;
        left: 20px;
        background: var(--bg);
        padding: 0 10px;
        color: var(--text-dim);
        font-size: 11px;
        letter-spacing: 2px;
        z-index: 5;
      }

      /* Decoy "cipher display" — shows a wrong key prominently.
         The visible glyphs here never match the real cipher. */
      .cipher-display {
        display: flex;
        align-items: center;
        gap: 18px;
        padding: 10px 16px;
        margin-bottom: 16px;
        border: 1px solid var(--green-dark);
        background: rgba(0, 0, 0, 0.35);
      }
      .cipher-display .label {
        color: var(--text-dim);
        font-size: 11px;
        letter-spacing: 2px;
        text-transform: uppercase;
      }
      .cipher-display .glyphs {
        font-family: "JetBrains Mono", monospace;
        font-size: 22px;
        letter-spacing: 6px;
        color: var(--green);
        text-shadow: 0 0 8px var(--green-glow-strong);
      }
      .cipher-display .badge {
        margin-left: auto;
        font-size: 9px;
        color: var(--text-muted);
        letter-spacing: 1px;
      }

      /* ===== RAIN STAGE ===== */
      .rain-stage {
        position: relative;
        height: 420px;
        border: 1px solid var(--green-dark);
        background:
          radial-gradient(
            ellipse at center,
            rgba(255, 184, 77, 0.06) 0%,
            transparent 70%
          ),
          #05030a;
        overflow: hidden;
        display: flex;
        gap: 2px;
      }
      /* CRT scanlines over the whole stage */
      .rain-stage::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: repeating-linear-gradient(
          to bottom,
          rgba(0, 0, 0, 0) 0px,
          rgba(0, 0, 0, 0) 2px,
          rgba(0, 0, 0, 0.25) 3px,
          rgba(0, 0, 0, 0) 4px
        );
        z-index: 4;
      }
      /* Vignette */
      .rain-stage::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(
          ellipse at center,
          transparent 40%,
          rgba(0, 0, 0, 0.7) 100%
        );
        z-index: 3;
      }

      /* Horizontal scanline — the "focus row" the scorer checks */
      .scan-line {
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        height: 24px;
        transform: translateY(-50%);
        pointer-events: none;
        z-index: 5;
        background: linear-gradient(
          to bottom,
          transparent 0%,
          rgba(255, 184, 77, 0.08) 20%,
          rgba(255, 184, 77, 0.35) 48%,
          rgba(255, 220, 150, 0.55) 50%,
          rgba(255, 184, 77, 0.35) 52%,
          rgba(255, 184, 77, 0.08) 80%,
          transparent 100%
        );
        box-shadow:
          0 0 16px rgba(255, 184, 77, 0.45),
          0 0 32px rgba(255, 184, 77, 0.25);
        animation: scan-hum 2.4s ease-in-out infinite;
      }
      @keyframes scan-hum {
        0%, 100% { opacity: 0.9; filter: hue-rotate(0deg); }
        50% { opacity: 1; filter: hue-rotate(8deg); }
      }

      /* Rain columns */
      .rain-col {
        flex: 1 1 0;
        min-width: 0;
        position: relative;
        overflow: hidden;
      }
      .rain-stream {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        animation: rain-fall 6s linear infinite;
        will-change: transform;
      }
      /* Slight per-column timing variety — a handful of speeds */
      .rain-col:nth-child(3n) .rain-stream { animation-duration: 5.2s; }
      .rain-col:nth-child(3n+1) .rain-stream { animation-duration: 6.4s; }
      .rain-col:nth-child(4n) .rain-stream { animation-duration: 7.1s; }
      .rain-col:nth-child(5n) .rain-stream { animation-duration: 4.8s; }
      /* Stream is twice the column height so a glyph is always visible
         at the column midpoint (where the scorer probes). The animation
         scrolls exactly one screen then loops — since glyph values are
         randomly regenerated in JS, the loop seam is invisible. */
      @keyframes rain-fall {
        0% { transform: translateY(0); }
        100% { transform: translateY(-50%); }
      }

      .rain-stream .g {
        font-family: "JetBrains Mono", "Segoe UI Symbol", monospace;
        font-size: 18px;
        line-height: 22px;
        color: rgba(255, 184, 77, 0.55);
        text-shadow: 0 0 6px rgba(255, 184, 77, 0.3);
        user-select: none;
        display: block;
        width: 100%;
        text-align: center;
      }
      /* Head of the column — brightest, white-hot */
      .rain-stream .g.head {
        color: #fff4e6;
        text-shadow:
          0 0 6px #ffcf9e,
          0 0 14px #ffb84d,
          0 0 28px #ffb84d;
      }
      /* Body fade */
      .rain-stream .g:nth-child(odd) { color: rgba(255, 184, 77, 0.5); }
      .rain-stream .g:nth-child(3n) { color: rgba(255, 152, 80, 0.65); }
      .rain-stream .g:nth-child(7n) { color: rgba(0, 229, 255, 0.45); }

      /* When column is at "focus" (any non-frozen state, the visible
         glyph at the scanline is emphasised via a side ring) */
      .rain-col .focus-ring {
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 28px;
        border: 1px solid rgba(255, 184, 77, 0.15);
        pointer-events: none;
        z-index: 2;
        transition: border-color 0.2s, box-shadow 0.2s;
      }
      .rain-col:hover .focus-ring {
        border-color: rgba(255, 220, 150, 0.45);
        box-shadow: 0 0 12px rgba(255, 184, 77, 0.35) inset;
      }

      /* FROZEN state — pause animation, bright cyan lock, particle halo */
      .rain-col[data-locked="1"] .rain-stream {
        animation-play-state: paused;
      }
      .rain-col[data-locked="1"] {
        background:
          linear-gradient(
            to bottom,
            rgba(90, 225, 255, 0.12) 0%,
            rgba(90, 225, 255, 0.28) 48%,
            rgba(90, 225, 255, 0.48) 50%,
            rgba(90, 225, 255, 0.28) 52%,
            rgba(90, 225, 255, 0.12) 100%
          );
        box-shadow:
          inset 0 0 18px rgba(90, 225, 255, 0.35),
          0 0 18px rgba(90, 225, 255, 0.4);
        animation: frozen-pulse 1.8s ease-in-out infinite;
      }
      .rain-col[data-locked="1"] .focus-ring {
        border: 1.5px solid #9df4ff;
        box-shadow:
          0 0 18px #5ee5ff,
          0 0 36px rgba(90, 225, 255, 0.6),
          inset 0 0 14px rgba(255, 255, 255, 0.3);
      }
      .rain-col[data-locked="1"] .rain-stream .g {
        color: rgba(158, 220, 255, 0.6);
        text-shadow: 0 0 8px rgba(158, 220, 255, 0.35);
      }
      .rain-col[data-locked="1"] .rain-stream .g.focus-glyph {
        color: #ffffff;
        font-weight: 700;
        text-shadow:
          0 0 10px #ffffff,
          0 0 20px #5ee5ff,
          0 0 40px #5ee5ff;
      }
      @keyframes frozen-pulse {
        0%, 100% {
          box-shadow:
            inset 0 0 18px rgba(90, 225, 255, 0.35),
            0 0 18px rgba(90, 225, 255, 0.4);
        }
        50% {
          box-shadow:
            inset 0 0 22px rgba(90, 225, 255, 0.55),
            0 0 30px rgba(90, 225, 255, 0.7);
        }
      }

      /* WRONG freeze — red rejection flash, auto-reverts */
      .rain-col[data-wrong="1"] {
        background: linear-gradient(
          to bottom,
          rgba(255, 60, 80, 0.15) 0%,
          rgba(255, 60, 80, 0.35) 50%,
          rgba(255, 60, 80, 0.15) 100%
        );
        box-shadow: inset 0 0 18px rgba(255, 60, 80, 0.45);
        animation: wrong-shake 0.35s;
      }
      @keyframes wrong-shake {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-4px); }
        75% { transform: translateX(4px); }
      }

      /* Floating ember particles — pure CSS, very cheap */
      .embers {
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 2;
      }
      .ember {
        position: absolute;
        width: 3px;
        height: 3px;
        background: #ffb070;
        border-radius: 50%;
        box-shadow: 0 0 6px #ffb84d, 0 0 12px #ffb84d;
        opacity: 0.8;
        animation: ember-drift 9s linear infinite;
      }
      @keyframes ember-drift {
        0% { transform: translateY(100%) scale(0.4); opacity: 0; }
        10% { opacity: 0.9; }
        50% { transform: translateY(40%) translateX(8px) scale(1); }
        90% { opacity: 0.7; }
        100% { transform: translateY(-10%) translateX(-4px) scale(0.3); opacity: 0; }
      }

      /* Post-solve speed-up flash — class toggled on victory */
      .rain-stage.solved .rain-stream { animation-duration: 1.8s !important; }
      .rain-stage.solved::after {
        background: radial-gradient(
          ellipse at center,
          rgba(90, 225, 255, 0.4) 0%,
          rgba(255, 184, 77, 0.2) 40%,
          rgba(0, 0, 0, 0.75) 100%
        );
        animation: solve-burst 1.2s ease-out;
      }
      @keyframes solve-burst {
        0% {
          background: radial-gradient(
            ellipse at center,
            #ffffff 0%,
            #5ee5ff 20%,
            rgba(255, 184, 77, 0.6) 50%,
            rgba(0, 0, 0, 0.75) 100%
          );
        }
        100% {
          background: radial-gradient(
            ellipse at center,
            rgba(90, 225, 255, 0.4) 0%,
            rgba(255, 184, 77, 0.2) 40%,
            rgba(0, 0, 0, 0.75) 100%
          );
        }
      }

      /* ===== HONEYPOT CONTROLS & DEV NOTES ===== */
      .honeypot-controls {
        margin-top: 24px;
        padding: 16px;
        border: 1px dashed var(--green-muted);
        background: var(--bg-terminal);
      }
      .honeypot-controls p {
        color: var(--text-dim);
        font-size: 12px;
        margin-bottom: 10px;
      }
      .honeypot-controls .row {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-bottom: 10px;
      }
      .honeypot-controls button {
        background: var(--bg);
        color: var(--green);
        border: 1px solid var(--green-muted);
        padding: 8px 14px;
        font-family: "JetBrains Mono", monospace;
        font-size: 12px;
        cursor: pointer;
      }
      .honeypot-controls button:hover { background: var(--green-dark); }
      .honeypot-controls .fake-progress {
        color: var(--text-dim);
        font-size: 11px;
        font-family: "JetBrains Mono", monospace;
        letter-spacing: 1px;
      }

      .dev-notes {
        margin-top: 24px;
        padding: 14px 18px;
        border: 1px dotted var(--green-muted);
        background: rgba(0, 0, 0, 0.4);
        color: var(--text-dim);
        font-size: 11px;
        line-height: 1.8;
      }
      .dev-notes .heading {
        color: var(--green);
        margin-bottom: 6px;
      }

      /* ===== VICTORY MODAL ===== */
      .victory {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.92);
        z-index: 10000;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        text-align: center;
      }
      .victory.shown { display: flex; }
      .victory h2 {
        font-family: "Orbitron", "JetBrains Mono", monospace;
        font-weight: 900;
        font-size: 56px;
        letter-spacing: 4px;
        color: var(--green);
        text-shadow: 0 0 24px var(--green), 0 0 48px rgba(255, 184, 77, 0.5);
        margin-bottom: 16px;
      }
      .victory p {
        color: var(--text-dim);
        font-size: 16px;
        margin-bottom: 8px;
      }
      .victory .time {
        color: var(--green);
        font-size: 24px;
        margin: 16px 0;
      }
      .victory button {
        margin-top: 16px;
        background: var(--bg);
        color: var(--green);
        border: 1px solid var(--green);
        padding: 12px 24px;
        font-family: "JetBrains Mono", monospace;
        font-size: 14px;
        cursor: pointer;
      }
      .victory .submit-panel {
        margin-top: 24px;
        border: 1px solid var(--green-muted);
        background: var(--bg-card);
        padding: 20px 24px;
        min-width: 360px;
      }
      .victory .submit-panel label {
        display: block;
        font-size: 10px;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 6px;
      }
      .victory .submit-panel input {
        width: 100%;
        background: var(--bg-terminal);
        border: 1px solid var(--green-dark);
        color: var(--green);
        font-family: "JetBrains Mono", monospace;
        font-size: 13px;
        padding: 8px 10px;
        margin-bottom: 12px;
      }
      .victory .submit-panel .err {
        color: var(--red);
        font-size: 11px;
        margin-top: 8px;
        min-height: 14px;
      }
      .victory .rank {
        color: var(--green);
        font-size: 18px;
        margin-top: 12px;
      }

      /* ===== LEADERBOARD ===== */
      .leaderboard {
        margin-top: 32px;
        border: 1px solid var(--green-dark);
        background: var(--bg-card);
        padding: 24px 28px;
      }
      .leaderboard h3 {
        color: var(--green);
        font-size: 14px;
        letter-spacing: 2px;
        text-transform: uppercase;
        margin-bottom: 16px;
      }
      .leaderboard .class-tabs {
        display: flex;
        gap: 8px;
        margin-bottom: 16px;
      }
      .leaderboard .class-tabs button {
        background: var(--bg-terminal);
        color: var(--text-dim);
        border: 1px solid var(--green-dark);
        padding: 6px 14px;
        font-family: "JetBrains Mono", monospace;
        font-size: 11px;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 1px;
      }
      .leaderboard .class-tabs button.active {
        color: var(--green);
        border-color: var(--green);
        background: var(--bg);
      }
      .leaderboard table {
        width: 100%;
        border-collapse: collapse;
        font-size: 12px;
      }
      .leaderboard th,
      .leaderboard td {
        text-align: left;
        padding: 8px 10px;
        border-bottom: 1px solid var(--green-dark);
      }
      .leaderboard th {
        color: var(--text-muted);
        text-transform: uppercase;
        font-size: 10px;
        letter-spacing: 1px;
      }
      .leaderboard td { color: var(--white); }
      .leaderboard .empty {
        color: var(--text-muted);
        font-size: 12px;
        text-align: center;
        padding: 16px;
      }
      .leaderboard .rank-col { color: var(--green); width: 40px; }
      .leaderboard .time-col {
        color: var(--green);
        text-align: right;
        font-weight: 600;
      }

      @media (max-width: 760px) {
        .course-wrap { padding: 32px 14px 60px; }
        .course-header { padding: 18px 18px; margin-bottom: 20px; }
        .course-header h1 { font-size: 26px; letter-spacing: 2px; }
        .course-header p { font-size: 13px; }
        .course-header .briefing { font-size: 12px; padding: 10px 12px; }
        .status-bar {
          gap: 10px 14px;
          padding: 10px 14px;
          font-size: 12px;
        }
        .status-bar .frozen-indicator {
          margin-left: 0;
          font-size: 14px;
        }
        .arena { padding: 22px 12px 16px; }
        .rain-stage { height: 340px; }
        .rain-stream .g { font-size: 15px; line-height: 19px; }
        .cipher-display { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
        .cipher-display .glyphs { font-size: 18px; letter-spacing: 4px; }
        .cipher-display .badge { margin-left: 0; }
        .honeypot-controls { padding: 12px; }
        .honeypot-controls button {
          padding: 7px 10px;
          font-size: 11px;
        }
        .dev-notes { font-size: 10px; padding: 12px 14px; }
        .victory h2 { font-size: 36px; }
        .victory p { font-size: 14px; }
        .victory .time { font-size: 18px; }
        .victory .submit-panel {
          min-width: auto;
          width: calc(100% - 32px);
          max-width: 360px;
          padding: 16px 18px;
        }
        .leaderboard { padding: 18px 16px; margin-top: 24px; }
        .leaderboard table { font-size: 11px; }
        .leaderboard th, .leaderboard td { padding: 6px 6px; }
        .leaderboard .class-tabs { flex-wrap: wrap; }
      }

      @media (max-width: 460px) {
        .rain-stream .g { font-size: 13px; line-height: 17px; }
        .rain-stage { height: 280px; }
      }
      body { padding-top: 64px; }
