    .section-view { display: none; }
    .section-view.active { display: block; }

    /* ── Sidebar ── */
    .sidebar-overlay {
      position: fixed; inset: 0;
      background: rgba(5, 6, 9, 0.6);
      backdrop-filter: blur(4px);
      z-index: 998; opacity: 0; pointer-events: none;
      transition: opacity 0.3s ease;
    }
    .sidebar-overlay.active { opacity: 1; pointer-events: auto; }

    .glass-sidebar {
      background: var(--bg-surface);
      border-right: 1px solid var(--border-color);
      padding: 1.5rem 0.9rem;
      position: fixed; top: 0; left: 0;
      width: 264px; height: 100vh; z-index: 999;
      display: flex; flex-direction: column; justify-content: space-between;
      transform: translateX(-100%);
      transition: transform 0.34s var(--ease-spring);
      overflow-y: auto;
    }
    .glass-sidebar.open { transform: translateX(0); }

    .sidebar-header { padding: 0.4rem 0.6rem 1.5rem; display: flex; align-items: center; gap: 12px; }
    .sidebar-bottom { margin-top: auto; padding-top: 1rem; }

    /* Persistent identity block (credits live here, single source) */
    .identity-card {
      display: flex; align-items: center; gap: 12px;
      padding: 12px 14px; margin-bottom: 12px;
      background: var(--bg-panel); border: 1px solid var(--border-color);
      border-radius: var(--radius); text-align: left;
    }
    .identity-avatar {
      width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
      background: var(--bg-input); border: 1px solid var(--accent-line);
      display: flex; align-items: center; justify-content: center;
      color: var(--accent); font-weight: 800; overflow: hidden; position: relative;
    }

    .dashboard-topbar {
      display: flex; align-items: center; gap: 0.75rem;
      padding: 0.75rem 1.1rem;
      border-bottom: 1px solid var(--border-color);
      background: color-mix(in srgb, var(--bg-deep) 82%, transparent);
      backdrop-filter: blur(14px);
      position: sticky; top: 0; z-index: 50;
      margin: -1.5rem -1rem 1.5rem;
    }

    .hamburger-menu-btn {
      background: var(--bg-panel); border: 1px solid var(--border-color);
      border-radius: var(--radius-sm); padding: 0.45rem; cursor: pointer;
      display: inline-flex; align-items: center; justify-content: center;
      transition: var(--transition-fast); color: var(--text-main); flex-shrink: 0;
    }
    .hamburger-menu-btn:hover { background: var(--bg-panel-hover); }

    @media (min-width: 1025px) {
      .glass-sidebar { transform: none; box-shadow: none; }
      #dashboard-container { margin-left: 264px; }
      .dashboard-topbar { display: none; }
      .sidebar-overlay { display: none; }
      #sidebar-close-btn { display: none; }
    }

    /* ── Section header (eyebrow + title + rule) ── */
    .section-head { margin-bottom: 2.5rem; }
    .section-head .rule-accent { margin: 0.9rem 0 1rem; }

    /* ── Task layout ── */
    .task-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 1.75rem; align-items: start; }
    .task-side { position: sticky; top: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
    .log-container {
      height: 460px; background: var(--bg-panel);
      border: 1px solid var(--border-color); border-radius: var(--radius);
      display: flex; flex-direction: column; box-shadow: var(--edge-highlight); overflow: hidden;
    }
    @media (max-width: 1200px) {
      .task-grid { grid-template-columns: 1fr; }
      .task-side { position: static; }
      .log-container { height: 340px; }
    }

    /* ── Wheel ── */
    .wheel-wrap { position: relative; width: 240px; height: 240px; margin: 0 auto 2rem; }
    .wheel-pointer {
      position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
      width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent;
      border-top: 24px solid var(--accent); z-index: 10; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
    }

    .stat-box {
      padding: 0.85rem 1.25rem; background: var(--bg-panel); border: 1px solid var(--border-color);
      border-radius: var(--radius-sm); text-align: center; min-width: 110px;
    }
    .divider { height: 1px; background: var(--border-color); border: 0; margin: 0; }

    /* ══════════════════════════════════════════════════════
       REDESIGN 2026-07 — bottom nav, motion, earn hub, sliders
       ══════════════════════════════════════════════════════ */

    /* Utility: element visible only on the mobile breakpoint */
    .mobile-only { display: none; }

    /* ── Directional section entrance (replaces per-section .animate-slide-up) ── */
    .section-view.active {
      animation: sectionEnter 0.42s var(--ease-out);
    }
    @keyframes sectionEnter {
      from { opacity: 0; transform: translateX(var(--enter-dx, 18px)); }
      to   { opacity: 1; transform: translateX(0); }
    }

    /* ── Credit "bump" when the balance changes (paired with JS count-up) ── */
    @keyframes creditBump {
      0%   { transform: scale(1); }
      45%  { transform: scale(1.12); }
      100% { transform: scale(1); }
    }
    .credit-bump { animation: creditBump 0.5s var(--ease-spring); display: inline-block; }

    /* ── Claim "pop" for quests / achievements / daily reward ── */
    @keyframes claimPop {
      0%   { transform: scale(1); }
      40%  { transform: scale(1.16); }
      100% { transform: scale(1); }
    }
    .claim-pop { animation: claimPop 0.5s var(--ease-spring); }

    /* ── Mobile bottom tab bar ── */
    .mobile-tabbar { display: none; }
    .tabbar-btn {
      position: relative;
      display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
      padding: 8px 4px 4px; background: transparent; border: 0; cursor: pointer;
      color: var(--text-dim); font-family: var(--font-sans); font-size: 10.5px; font-weight: 600;
      transition: color 0.2s var(--ease-out); -webkit-tap-highlight-color: transparent;
    }
    .tabbar-btn svg { width: 22px; height: 22px; transition: transform 0.28s var(--ease-spring); }
    .tabbar-btn.active { color: var(--accent); }
    .tabbar-btn.active svg { transform: translateY(-1px); }
    .tabbar-ind {
      position: absolute; top: 0; left: 50%; transform: translateX(-50%) scaleX(0);
      width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent);
      transition: transform 0.3s var(--ease-spring);
    }
    .tabbar-btn.active .tabbar-ind { transform: translateX(-50%) scaleX(1); }
    .tabbar-badge {
      position: absolute; top: 6px; right: 50%; margin-right: -18px;
      width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
      box-shadow: 0 0 0 2px var(--bg-surface); animation: pulse 2s ease-in-out infinite;
    }

    /* ── Queue engine live pulse ring (wraps the JS-managed status dot) ── */
    .engine-pulse { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; }
    .engine-pulse::after {
      content: ""; position: absolute; width: 30px; height: 30px; border-radius: 50%;
      border: 1.5px solid var(--accent-line); animation: enginePing 2.4s var(--ease-out) infinite;
    }
    @keyframes enginePing {
      0%   { transform: scale(0.5); opacity: 0.8; }
      100% { transform: scale(1.15); opacity: 0; }
    }

    /* ── Earn hub: today summary + progress ring ── */
    .earn-summary {
      display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center;
    }
    .ring-wrap { position: relative; width: 116px; height: 116px; flex-shrink: 0; }
    .ring-wrap svg { width: 116px; height: 116px; transform: rotate(-90deg); }
    .ring-track { fill: none; stroke: var(--bg-input); stroke-width: 10; }
    .ring-fill {
      fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round;
      transition: stroke-dashoffset 0.8s var(--ease-spring);
    }
    .ring-center {
      position: absolute; inset: 0; display: flex; flex-direction: column;
      align-items: center; justify-content: center; text-align: center;
    }
    .ring-center .ring-num { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 800; color: var(--text-main); line-height: 1; }
    .ring-center .ring-sub { font-size: 10px; color: var(--text-dim); margin-top: 3px; }

    /* ── Quest rows ── */
    .quest-row {
      display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem;
      background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-sm);
      transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), opacity 0.3s ease;
    }
    .quest-row.done { opacity: 0.55; }
    .quest-row.claimable { border-color: var(--accent-line); box-shadow: 0 0 22px -8px var(--accent-glow); }
    .quest-bar { height: 5px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; margin-top: 6px; }
    .quest-bar-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.5s var(--ease-spring); }
    .quest-bar-fill.is-done { background: var(--success); }

    /* ── Streak milestone stepper ── */
    .streak-stepper { display: flex; align-items: center; gap: 0; margin-top: 0.25rem; }
    .streak-node {
      display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0;
    }
    .streak-dot {
      width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
      background: var(--bg-input); border: 1.5px solid var(--border-color);
      font-family: var(--font-mono); font-weight: 800; font-size: 12px; color: var(--text-muted);
      transition: var(--transition);
    }
    .streak-node.reached .streak-dot { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
    .streak-node.next .streak-dot { border-color: var(--accent); color: var(--text-main); animation: soft-glow 3s ease-in-out infinite; }
    .streak-node .streak-label { font-size: 9.5px; color: var(--text-dim); }
    .streak-line { flex: 1; height: 2px; background: var(--border-color); min-width: 14px; }
    .streak-line.reached { background: var(--accent); }

    /* ── Achievement rows ── */
    .ach-row {
      display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 1rem;
      background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-sm);
      transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), opacity 0.3s ease;
    }
    .ach-row.locked { opacity: 0.5; }
    .ach-row.claimable { border-color: var(--accent-line); box-shadow: 0 0 22px -8px var(--accent-glow); }
    .ach-icon {
      width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
      background: var(--bg-panel); color: var(--text-muted);
    }
    .ach-row.unlocked .ach-icon { color: var(--accent); }

    /* ── Range slider (task advanced params) ── */
    .range-field { display: flex; flex-direction: column; gap: 8px; }
    .range-head { display: flex; align-items: center; justify-content: space-between; }
    .range-bubble {
      font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--accent);
      background: var(--accent-soft); border: 1px solid var(--accent-line);
      padding: 2px 10px; border-radius: 999px; min-width: 44px; text-align: center;
    }
    input[type="range"].glass-range {
      -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px;
      background: var(--bg-input); border: 1px solid var(--border-color); outline: none; cursor: pointer;
    }
    input[type="range"].glass-range::-webkit-slider-thumb {
      -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%;
      background: var(--accent); border: 3px solid var(--bg-surface); box-shadow: var(--shadow-sm);
      transition: transform 0.15s var(--ease-out);
    }
    input[type="range"].glass-range::-webkit-slider-thumb:active { transform: scale(1.2); }
    input[type="range"].glass-range::-moz-range-thumb {
      width: 20px; height: 20px; border-radius: 50%; background: var(--accent);
      border: 3px solid var(--bg-surface); cursor: pointer;
    }

    /* ── Compact stat tile row (account hero + earn hub) ── */
    .mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
    .mini-stat {
      padding: 0.9rem 1rem; background: var(--bg-input); border: 1px solid var(--border-color);
      border-radius: var(--radius-sm); text-align: center;
    }
    .mini-stat .ms-num { font-family: var(--font-mono); font-weight: 800; font-size: 1.35rem; color: var(--accent); line-height: 1; }
    .mini-stat .ms-label { font-size: 10.5px; color: var(--text-dim); margin-top: 5px; letter-spacing: 0.02em; }

    /* ── Mobile adaptations ── */
    @media (max-width: 1024px) {
      .mobile-only { display: flex; }
      .glass-sidebar { display: none !important; }
      .sidebar-overlay { display: none !important; }
      .mobile-tabbar {
        display: grid; grid-template-columns: repeat(4, 1fr);
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 997;
        background: color-mix(in srgb, var(--bg-surface) 92%, transparent);
        backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
        border-top: 1px solid var(--border-color);
        padding: 0 4px calc(4px + env(safe-area-inset-bottom, 0px));
      }
      .glass-main { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important; }
      .earn-summary { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1rem; }
      .mini-stats { grid-template-columns: repeat(3, 1fr); }
      .task-grid { grid-template-columns: 1fr; }
    }
    @media (min-width: 1025px) {
      .mobile-tabbar { display: none !important; }
    }

    /* ══════════════════════════════════════════════════════════
       ARCADE — 遊戲中心
       Same vocabulary as the rest of the dashboard: hairline borders,
       12/16px radii, accent used for numbers and active edges only.
       Nothing here is a filled colour block.
       ══════════════════════════════════════════════════════════ */

    /* ── Today's ledger ── */
    .ledger-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .ledger-cell {
      padding: 14px 16px;
      background: var(--bg-panel);
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
    }
    .ledger-num { font-size: 1.5rem; font-weight: 800; margin-top: 6px; letter-spacing: -0.02em; }
    .loss-meter {
      height: 6px; border-radius: 3px;
      background: var(--bg-input);
      border: 1px solid var(--border-color);
      overflow: hidden;
    }
    .loss-meter > span {
      display: block; height: 100%; width: 100%;
      background: var(--accent);
      border-radius: 3px;
      transition: width 0.6s var(--ease-spring), background 0.3s linear;
    }

    /* ── Lobby ── */
    .arcade-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
      gap: 1rem;
    }
    .game-card {
      display: flex; flex-direction: column; gap: 14px;
      padding: 1.5rem;
      background: var(--bg-surface);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm), var(--edge-highlight);
      transition: var(--transition);
    }
    .game-card:hover {
      border-color: var(--border-highlight);
      box-shadow: var(--shadow-md), var(--edge-highlight);
      transform: translateY(-2px);
    }
    .game-card-top { display: flex; flex-direction: column; gap: 10px; }
    .game-card-art {
      width: 46px; height: 46px;
      display: flex; align-items: center; justify-content: center;
      border-radius: var(--radius);
      background: var(--bg-panel);
      border: 1px solid var(--border-color);
      color: var(--accent);
    }
    .game-card-art svg { width: 26px; height: 26px; }
    .game-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
    .game-card-name { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
    .game-card-tag { font-size: 11px; }
    .game-card-blurb { color: var(--text-dim); font-size: 13.5px; line-height: 1.65; }
    .game-card .disclosure { background: transparent; }
    .game-card .disclosure-trigger { padding: 11px 14px; font-size: 13.5px; }
    .game-card .disclosure-body { padding: 2px 14px 14px; }
    .game-card > .glass-btn { margin-top: auto; }

    /* .howto-list lives in components.css — the marketing pages use it too. */

    /* ── Game modal ── */
    .game-overlay { z-index: 10000; }
    .game-container { max-width: 560px; }
    .game-panel { display: flex; flex-direction: column; max-height: min(88vh, 860px); }
    .game-head {
      display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
      padding: 22px 24px 16px;
      border-bottom: 1px solid var(--border-color);
    }
    .game-title { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; }
    .game-head-actions { display: flex; gap: 8px; flex-shrink: 0; }
    .icon-btn {
      width: 34px; height: 34px;
      display: inline-flex; align-items: center; justify-content: center;
      background: transparent;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-sm);
      color: var(--text-dim);
      cursor: pointer;
      transition: var(--transition-fast);
    }
    .icon-btn:hover { background: var(--bg-panel-hover); color: var(--text-main); border-color: var(--border-highlight); }

    .game-howto-panel {
      padding: 16px 24px;
      background: var(--bg-panel);
      border-bottom: 1px solid var(--border-color);
    }
    .game-body { padding: 24px; overflow-y: auto; flex: 1; }
    .game-foot {
      display: flex; flex-direction: column; gap: 12px;
      padding: 16px 24px 22px;
      border-top: 1px solid var(--border-color);
      background: var(--bg-panel);
    }
    .game-balance { font-size: 12px; color: var(--text-muted); text-align: right; }
    .game-balance .num { color: var(--accent); font-weight: 700; }
    .game-actions { display: flex; flex-direction: column; gap: 10px; }
    .game-hint { color: var(--text-muted); font-size: 12.5px; text-align: center; margin-top: 1rem; line-height: 1.6; }

    /* ── Bet control ── */
    .bet-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
    .bet-stepper {
      display: flex; align-items: center;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-sm);
      background: var(--bg-input);
      overflow: hidden;
    }
    .bet-stepper button {
      width: 38px; height: 40px;
      background: transparent; border: 0; cursor: pointer;
      color: var(--text-dim);
      display: inline-flex; align-items: center; justify-content: center;
      transition: var(--transition-fast);
    }
    .bet-stepper button:hover { background: var(--bg-panel-hover); color: var(--accent); }
    .bet-stepper input {
      width: 92px; height: 40px;
      background: transparent; border: 0; outline: none;
      color: var(--text-main); font-weight: 700; font-size: 14px; text-align: center;
      border-left: 1px solid var(--border-color);
      border-right: 1px solid var(--border-color);
    }
    .bet-stepper input::-webkit-outer-spin-button,
    .bet-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
    .bet-stepper input[type=number] { -moz-appearance: textfield; }
    .bet-chips { display: flex; gap: 6px; margin-left: auto; }
    .bet-chips button {
      padding: 7px 11px;
      background: transparent;
      border: 1px solid var(--border-color);
      border-radius: 7px;
      color: var(--text-dim);
      font-size: 12px; font-weight: 600; cursor: pointer;
      transition: var(--transition-fast);
    }
    .bet-chips button:hover { border-color: var(--accent-line); color: var(--accent); }

    .mine-picker, .bac-picker { display: flex; align-items: center; gap: 12px; }
    .mine-picker .segmented, .bac-picker .segmented { flex: 1; }

    /* ── Result banner ── */
    .game-result {
      display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
      margin-top: 1.25rem; padding: 14px 18px;
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      background: var(--bg-panel);
      text-align: center;
    }
    .game-result .num { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
    .game-result em { font-style: normal; font-size: 13px; color: var(--text-dim); }
    .game-result.is-win { border-color: color-mix(in srgb, var(--success) 45%, transparent); }
    .game-result.is-win .num { color: var(--success); }
    .game-result.is-lose .num { color: var(--danger); }
    .game-result.is-push .num { color: var(--text-dim); }

    /* ── Playing cards (drawn, never typed — ♠♥♦♣ render as emoji on some OSes) ── */
    .hand { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
    .card-face {
      position: relative;
      width: 52px; height: 74px; flex-shrink: 0;
      display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
      background: var(--bg-elevated);
      border: 1px solid var(--border-highlight);
      border-radius: var(--radius-sm);
      box-shadow: var(--shadow-sm);
      color: var(--text-main);
      animation: cardIn 0.34s var(--ease-spring) both;
    }
    .card-face.is-red { color: var(--danger); }
    .card-rank { font-family: var(--font-mono); font-size: 19px; font-weight: 700; line-height: 1; }
    .card-suit { width: 17px; height: 17px; }
    .card-face.is-back {
      background:
        repeating-linear-gradient(45deg, var(--bg-panel) 0 5px, var(--bg-input) 5px 10px);
      border-color: var(--border-color);
    }
    /* A same-rank card in 比大小: discarded rather than played, so it is shown
       set aside instead of in line. */
    /* Needs its own keyframes: cardIn's `both` fill would otherwise land on
       opacity 1 / transform none and undo the setting-aside. */
    .card-face.is-push {
      opacity: 0.5;
      border-style: dashed;
      box-shadow: none;
      transform: scale(0.86);
      animation: cardPush 0.34s var(--ease-spring) both;
    }
    @keyframes cardPush {
      from { opacity: 0; transform: translateY(8px) scale(0.8); }
      to { opacity: 0.5; transform: scale(0.86); }
    }
    .card-face.is-push::after {
      content: "平手";
      position: absolute;
      bottom: -1.15rem;
      font-size: 10px;
      letter-spacing: 0.08em;
      color: var(--text-muted);
    }
    @keyframes cardIn { from { opacity: 0; transform: translateY(8px) scale(0.94); } to { opacity: 1; transform: none; } }

    .bj-stage, .bac-stage { display: flex; flex-direction: column; gap: 1.5rem; }
    .bj-side { display: flex; flex-direction: column; gap: 2px; }
    .bj-score { font-size: 1.15rem; font-weight: 800; color: var(--accent); }
    .bj-buttons, .hl-buttons { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }

    /* ── High-low ── */
    .hl-stage { display: flex; align-items: center; justify-content: center; gap: 1.25rem; flex-wrap: wrap; }
    .hl-meta { display: flex; gap: 1.5rem; }
    .hl-meta .num { font-size: 1.1rem; font-weight: 700; margin-top: 4px; }
    .hl-mult { color: var(--accent); }
    .hl-odds { font-size: 11px; color: var(--text-muted); margin-left: 6px; }

    /* ── Scratch card ── */
    .scratch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 300px; margin: 0 auto; }
    .scratch-cell {
      position: relative;
      aspect-ratio: 1;
      display: flex; align-items: center; justify-content: center;
      background: var(--bg-input);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-sm);
      overflow: hidden;
      cursor: pointer;
    }
    .scratch-cell.is-idle { cursor: default; }
    .scratch-sym { color: var(--text-dim); transition: color 0.2s linear; }
    .scratch-sym.is-win { color: var(--accent); }
    .scratch-foil {
      position: absolute; inset: 0;
      background: linear-gradient(135deg, var(--bg-panel-hover), var(--bg-panel));
      border-radius: var(--radius-sm);
      transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    }
    .scratch-cell.is-open .scratch-foil { opacity: 0; transform: scale(1.12); }

    /* ── Slot ── */
    .slot-window {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
      max-width: 300px; margin: 0 auto;
      padding: 12px;
      background: var(--bg-input);
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
    }
    .slot-reel {
      aspect-ratio: 3 / 4;
      display: flex; align-items: center; justify-content: center;
      background: var(--bg-panel);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-sm);
      color: var(--text-dim);
      overflow: hidden;
    }
    .slot-reel.is-spinning { border-color: var(--accent-line); }
    .slot-sym { display: flex; animation: reelDrop 0.16s var(--ease-out); }
    .slot-sym.is-landed { color: var(--accent); animation: reelLand 0.36s var(--ease-spring); }
    @keyframes reelDrop { from { transform: translateY(-14px); opacity: 0.4; } to { transform: none; opacity: 1; } }
    @keyframes reelLand { 0% { transform: translateY(-8px) scale(0.9); } 60% { transform: translateY(2px) scale(1.06); } 100% { transform: none; } }

    /* ── Mines ── */
    .mine-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; max-width: 320px; margin: 0 auto; }
    .mine-cell {
      aspect-ratio: 1;
      display: flex; align-items: center; justify-content: center;
      background: var(--bg-input);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-sm);
      color: transparent;
      cursor: pointer;
      transition: var(--transition-fast);
    }
    .mine-cell svg { width: 17px; height: 17px; }
    .mine-cell:not(:disabled):hover { background: var(--bg-panel-hover); border-color: var(--border-highlight); transform: translateY(-1px); }
    .mine-cell:disabled { cursor: default; }
    .mine-cell.is-safe { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, transparent); background: var(--bg-panel); }
    .mine-cell.is-mine { color: var(--text-muted); }
    .mine-cell.is-boom { color: var(--danger); border-color: var(--danger); }
    .mine-meta { display: flex; justify-content: center; gap: 1.75rem; margin-top: 1.25rem; text-align: center; }
    .mine-meta .num { font-size: 1.1rem; font-weight: 700; margin-top: 4px; }

    .wheel-stage { display: flex; flex-direction: column; align-items: center; }

    /* ── Mobile: the modal becomes a full-height sheet ── */
    @media (max-width: 640px) {
      .arcade-grid { grid-template-columns: 1fr; }
      .game-container { max-width: 100%; padding: 0; height: 100%; }
      .game-panel { max-height: 100%; height: 100%; border-radius: 0; border: 0; }
      .game-overlay.modal-open { align-items: stretch; }
      .game-head { padding-top: max(22px, env(safe-area-inset-top)); }
      .game-foot { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
      .bet-chips { margin-left: 0; }
      .bet-stepper input { width: 74px; }
      .hl-meta { gap: 1rem; }
      .card-face { width: 46px; height: 66px; }
    }

    /* ── Reduced motion: neutralise the new looping/entrance effects ── */
    @media (prefers-reduced-motion: reduce) {
      .section-view.active { animation: none !important; }
      .credit-bump, .claim-pop,
      .streak-node.next .streak-dot, .tabbar-badge { animation: none !important; }
      .card-face, .slot-sym, .slot-sym.is-landed { animation: none !important; }
      .game-card:hover, .mine-cell:hover { transform: none !important; }
      .scratch-cell.is-open .scratch-foil { transition: none; }
    }
