    :root {
      color-scheme: dark;
      --bg-base: #0b0914;
      --bg-surface: #151126;
      --bg-elevated: #1e1836;
      --bg-glass: rgba(30, 24, 54, 0.75);
      --border-subtle: rgba(255, 145, 56, 0.16);
      --border-bright: rgba(255, 145, 56, 0.42);
      --text-main: #f8f5ff;
      --text-muted: #b5add0;
      --text-dim: #7f769d;
      --accent-orange: #ff7b1c;
      --accent-amber: #ffbe3b;
      --accent-purple: #a855f7;
      --accent-green: #22c55e;
      --accent-cyan: #06b6d4;
      --accent-pink: #ec4899;
      --accent-red: #f43f5e;
      --shadow-card: 0 14px 34px -10px rgba(0, 0, 0, 0.65);
      --radius-lg: 16px;
      --radius-md: 12px;
      --radius-sm: 8px;
      --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
      --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    /* Disable lightmode toggle on this page */
    button#mode,
    #mode {
      display: none !important;
      visibility: hidden !important;
      pointer-events: none !important;
    }

    body {
      background-color: var(--bg-base);
      background-image:
        radial-gradient(circle at 12% 8%, rgba(255, 123, 28, 0.14), transparent 36%),
        radial-gradient(circle at 88% 15%, rgba(168, 85, 247, 0.16), transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(255, 190, 59, 0.08), transparent 45%);
      color: var(--text-main);
      font-family: var(--font-sans);
      line-height: 1.6;
      min-height: 100vh;
      padding-bottom: 4rem;
    }

    h1, h2, h3, h4, th {
      text-wrap: balance;
      color: var(--text-main);
    }

    p, li, .pretty-text {
      text-wrap: pretty;
    }

    .container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 1.25rem;
    }

    /* Hero Header */
    .hero {
      position: relative;
      padding: 3.5rem 0 2.5rem;
      border-bottom: 1px solid var(--border-subtle);
      margin-bottom: 2.25rem;
      overflow: hidden;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.35rem 0.9rem;
      border-radius: 999px;
      background: rgba(255, 123, 28, 0.14);
      border: 1px solid var(--border-bright);
      color: var(--accent-amber);
      font-size: 0.82rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      margin-bottom: 1rem;
    }

    .hero h1 {
      font-size: clamp(2rem, 4.2vw, 3.35rem);
      font-weight: 850;
      line-height: 1.12;
      letter-spacing: -0.02em;
      margin-bottom: 0.9rem;
      background: linear-gradient(135deg, #ffffff 0%, #ffd280 52%, #ff7b1c 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .hero-subtitle {
      color: var(--text-muted);
      font-size: clamp(1rem, 1.6vw, 1.2rem);
      max-width: 78ch;
      margin-bottom: 1.5rem;
    }

    .hero-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 1.25rem;
      font-size: 0.9rem;
      color: var(--text-muted);
    }

    .hero-meta span {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: var(--bg-surface);
      padding: 0.4rem 0.85rem;
      border-radius: var(--radius-sm);
      border: 1px solid rgba(255, 255, 255, 0.07);
    }

    .hero-meta strong {
      color: var(--text-main);
    }

    /* KPI Grid */
    .kpi-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1rem;
      margin-bottom: 2.25rem;
    }

    .kpi-card {
      background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(21, 17, 38, 0.85) 100%);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 1.35rem 1.4rem;
      box-shadow: var(--shadow-card);
      position: relative;
      overflow: hidden;
      transition: transform 0.2s ease, border-color 0.2s ease;
    }

    .kpi-card:hover {
      transform: translateY(-2px);
      border-color: var(--border-bright);
    }

    .kpi-card::before {
      content: "";
      position: absolute;
      inset-block-start: 0;
      inset-inline-start: 0;
      width: 100%;
      height: 3px;
      background: var(--kpi-color, var(--accent-orange));
    }

    .kpi-label {
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.07em;
      color: var(--text-muted);
      font-weight: 600;
      margin-bottom: 0.35rem;
    }

    .kpi-value {
      font-size: 2.15rem;
      font-weight: 800;
      font-family: var(--font-mono);
      color: var(--text-main);
      line-height: 1.15;
      margin-bottom: 0.35rem;
    }

    .kpi-sub {
      font-size: 0.83rem;
      color: var(--text-muted);
    }

    .kpi-sub strong {
      color: var(--accent-amber);
    }

    /* Section Cards */
    .section-card {
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 1.65rem;
      margin-bottom: 2rem;
      box-shadow: var(--shadow-card);
    }

    .section-header {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: flex-start;
      gap: 1rem;
      margin-bottom: 1.35rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .section-title {
      font-size: 1.35rem;
      font-weight: 750;
      color: var(--text-main);
      display: flex;
      align-items: center;
      gap: 0.55rem;
    }

    .section-desc {
      color: var(--text-muted);
      font-size: 0.92rem;
      margin-top: 0.25rem;
      max-width: 72ch;
    }

    /* Controls & Pill Buttons */
    .control-group {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
      align-items: center;
    }

    .pill-btn {
      background: var(--bg-elevated);
      color: var(--text-muted);
      border: 1px solid rgba(255, 255, 255, 0.1);
      padding: 0.42rem 0.85rem;
      border-radius: 999px;
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .pill-btn:hover {
      color: var(--text-main);
      border-color: var(--border-bright);
    }

    .pill-btn.active {
      background: var(--accent-orange);
      color: #0b0914;
      border-color: var(--accent-orange);
      font-weight: 700;
    }

    /* Two-column layouts */
    .grid-2col {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    /* Interactive Chart Containers */
    .chart-stage {
      position: relative;
      width: 100%;
      background: rgba(11, 9, 20, 0.55);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: var(--radius-md);
      padding: 1rem;
      overflow: hidden;
    }

    .chart-svg {
      width: 100%;
      height: auto;
      display: block;
      overflow: visible;
    }

    .chart-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      margin-top: 0.95rem;
      font-size: 0.82rem;
      color: var(--text-muted);
      justify-content: center;
    }

    .legend-item {
      display: inline-flex;
      align-items: center;
      gap: 0.42rem;
    }

    .legend-swatch {
      width: 12px;
      height: 12px;
      border-radius: 3px;
      display: inline-block;
    }

    /* Floating Tooltip */
    .chart-tooltip {
      position: fixed;
      pointer-events: none;
      z-index: 1000;
      background: rgba(15, 12, 29, 0.96);
      border: 1px solid var(--border-bright);
      border-radius: var(--radius-md);
      padding: 0.75rem 0.95rem;
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.75);
      font-size: 0.82rem;
      color: var(--text-main);
      max-width: 300px;
      opacity: 0;
      transition: opacity 0.12s ease;
      backdrop-filter: blur(8px);
    }

    .chart-tooltip.visible {
      opacity: 1;
    }

    .tt-title {
      font-weight: 700;
      color: var(--accent-amber);
      margin-bottom: 0.3rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      padding-bottom: 0.25rem;
    }

    .tt-row {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      margin-top: 0.18rem;
    }

    .tt-row span:first-child {
      color: var(--text-muted);
    }

    .tt-row span:last-child {
      font-family: var(--font-mono);
      font-weight: 600;
    }

    /* Story & Milestone Timeline Cards */
    .story-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 1rem;
      margin-top: 1.25rem;
    }

    .story-card {
      background: var(--bg-elevated);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: var(--radius-md);
      padding: 1.15rem;
    }

    .story-time {
      font-family: var(--font-mono);
      font-size: 0.78rem;
      color: var(--accent-amber);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 0.3rem;
    }

    .story-card h4 {
      font-size: 1rem;
      margin-bottom: 0.4rem;
      color: var(--text-main);
    }

    .story-card p {
      font-size: 0.86rem;
      color: var(--text-muted);
    }

    /* Tier Bars */
    .tier-list {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .tier-row {
      background: var(--bg-elevated);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: var(--radius-sm);
      padding: 0.75rem 1rem;
    }

    .tier-row-top {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 0.45rem;
      font-size: 0.88rem;
    }

    .tier-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      font-weight: 800;
      font-family: var(--font-mono);
      font-size: 0.95rem;
    }

    .tier-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      display: inline-block;
    }

    .tier-metrics {
      display: flex;
      flex-wrap: wrap;
      gap: 0.9rem;
      font-size: 0.81rem;
      color: var(--text-muted);
      font-family: var(--font-mono);
    }

    .tier-metrics strong {
      color: var(--text-main);
    }

    .bar-track {
      width: 100%;
      height: 10px;
      background: rgba(255, 255, 255, 0.06);
      border-radius: 999px;
      overflow: hidden;
      display: flex;
    }

    .bar-fill-auto {
      height: 100%;
      transition: width 0.3s ease;
    }

    .bar-fill-manual {
      height: 100%;
      background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.35),
        rgba(255, 255, 255, 0.35) 4px,
        transparent 4px,
        transparent 8px
      );
      transition: width 0.3s ease;
    }

    /* Fun Facts Grid */
    .fun-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1rem;
    }

    .fun-card {
      background: linear-gradient(145deg, var(--bg-elevated) 0%, rgba(21, 17, 38, 0.9) 100%);
      border: 1px solid rgba(255, 190, 59, 0.2);
      border-radius: var(--radius-md);
      padding: 1.2rem;
    }

    .fun-icon {
      font-size: 1.5rem;
      margin-bottom: 0.4rem;
    }

    .fun-stat {
      font-family: var(--font-mono);
      font-size: 1.4rem;
      font-weight: 800;
      color: var(--accent-amber);
      margin-bottom: 0.2rem;
    }

    .fun-title {
      font-weight: 700;
      font-size: 0.95rem;
      margin-bottom: 0.3rem;
    }

    .fun-desc {
      font-size: 0.84rem;
      color: var(--text-muted);
    }

    /* Responsive Data Table (following modern-web-guidance responsive-table) */
    .table-controls {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      margin-bottom: 1rem;
      align-items: center;
      justify-content: space-between;
    }

    .filter-input, .filter-select {
      background: var(--bg-elevated);
      color: var(--text-main);
      border: 1px solid rgba(255, 255, 255, 0.14);
      padding: 0.5rem 0.85rem;
      border-radius: var(--radius-sm);
      font-size: 0.86rem;
      font-family: var(--font-sans);
    }

    .filter-input:focus, .filter-select:focus {
      outline: 2px solid var(--accent-orange);
      border-color: transparent;
    }

    .download-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: var(--bg-elevated);
      color: var(--accent-amber);
      border: 1px solid var(--border-bright);
      padding: 0.5rem 0.85rem;
      border-radius: var(--radius-sm);
      font-size: 0.86rem;
      font-weight: 600;
      text-decoration: none;
      transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
      cursor: pointer;
    }

    .download-btn:hover {
      background: rgba(255, 145, 56, 0.18);
      border-color: var(--accent-orange);
      color: #ffffff;
    }

    .table-wrapper {
      overflow: auto;
      max-inline-size: 100%;
      max-block-size: min(540px, 75vh);
      container-type: inline-size;
      border: 1px solid rgba(255, 255, 255, 0.09);
      border-radius: var(--radius-md);
      background: rgba(11, 9, 20, 0.5);
    }

    table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      font-size: 0.85rem;
      --label-2: "Time";
      --label-3: "Prize Tier";
      --label-4: "Actual Weight";
      --label-5: "Target Weight";
      --label-6: "Delta";
      --label-7: "Prep / Dump";
      --label-8: "Idle Wait";
      --label-9: "Mechanism";
      --label-10: "Mode";
    }

    caption {
      text-align: start;
      padding: 0.75rem 1rem;
      font-size: 0.82rem;
      color: var(--text-muted);
      background: var(--bg-elevated);
      border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    thead {
      position: sticky;
      inset-block-start: 0;
      z-index: 2;
      background: #1b1530;
    }

    th, td {
      padding: 0.65rem 0.85rem;
      text-align: start;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      white-space: nowrap;
    }

    thead th {
      font-weight: 700;
      color: var(--accent-amber);
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      border-bottom: 1px solid var(--border-bright);
    }

    tbody th {
      position: sticky;
      inset-inline-start: 0;
      z-index: 1;
      background: #161229;
      font-family: var(--font-mono);
      color: var(--text-main);
      font-weight: 700;
    }

    tbody tr:hover td,
    tbody tr:hover th {
      background: rgba(255, 123, 28, 0.1);
    }

    .mono {
      font-family: var(--font-mono);
    }

    .tag {
      display: inline-block;
      padding: 0.15rem 0.5rem;
      border-radius: 6px;
      font-size: 0.75rem;
      font-weight: 700;
      font-family: var(--font-mono);
      text-transform: uppercase;
    }

    .tag-manual {
      background: rgba(236, 72, 153, 0.2);
      color: #f472b6;
      border: 1px solid rgba(236, 72, 153, 0.4);
    }

    .tag-auto {
      background: rgba(34, 197, 94, 0.14);
      color: #4ade80;
      border: 1px solid rgba(34, 197, 94, 0.3);
    }

    @container (width < 680px) {
      table, thead, tbody, tr, th, td {
        display: block;
      }

      thead {
        display: none;
      }

      tr {
        margin: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: var(--radius-sm);
        overflow: hidden;
        background: var(--bg-surface);
      }

      tbody th {
        position: sticky;
        inset-block-start: 0;
        z-index: 2;
        background: var(--bg-elevated);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      }

      td {
        display: flex;
        justify-content: space-between;
        white-space: normal;
      }

      td:nth-child(2)::before { content: var(--label-2) ": "; color: var(--text-muted); font-weight: 600; }
      td:nth-child(3)::before { content: var(--label-3) ": "; color: var(--text-muted); font-weight: 600; }
      td:nth-child(4)::before { content: var(--label-4) ": "; color: var(--text-muted); font-weight: 600; }
      td:nth-child(5)::before { content: var(--label-5) ": "; color: var(--text-muted); font-weight: 600; }
      td:nth-child(6)::before { content: var(--label-6) ": "; color: var(--text-muted); font-weight: 600; }
      td:nth-child(7)::before { content: var(--label-7) ": "; color: var(--text-muted); font-weight: 600; }
      td:nth-child(8)::before { content: var(--label-8) ": "; color: var(--text-muted); font-weight: 600; }
      td:nth-child(9)::before { content: var(--label-9) ": "; color: var(--text-muted); font-weight: 600; }
      td:nth-child(10)::before { content: var(--label-10) ": "; color: var(--text-muted); font-weight: 600; }
    }

    .recap-footer {
      text-align: center;
      color: var(--text-dim);
      font-size: 0.85rem;
      margin-top: 3rem;
      padding-top: 1.5rem;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
