    .infinity-home,
    .exam-shell,
    .summary-screen {
      --bg: #08111d;
      --bg-soft: #0d1726;
      --panel: rgba(15, 24, 38, 0.82);
      --panel-strong: rgba(11, 19, 31, 0.92);
      --panel-border: rgba(255,255,255,.08);
      --text: #e9eef7;
      --muted: #93a3bd;
      --white: #ffffff;
      --shadow: 0 26px 70px rgba(0, 0, 0, .35);
      --digit-header: linear-gradient(135deg, #214eb9, #11317a 88%);
      --digit-bar: linear-gradient(90deg, #39c2ff, #3874ff);
      --switch-header: linear-gradient(135deg, #18c964, #0f7a43 88%);
      --switch-bar: linear-gradient(90deg, #ffe65f, #b6f365);
      --grid-header: linear-gradient(135deg, #d31ea7, #6c1ea2 88%);
      --grid-stage: linear-gradient(180deg, #1f8fc4 0%, #166d9b 100%);
      --grid-bar: linear-gradient(90deg, #68c9ff, #1974d6);
      --yesno: linear-gradient(180deg, #db3db7, #9f2384);
      --tube: #7cc4ef;
      --tube-dark: #0e62b4;
      --yellow: linear-gradient(180deg, #ffd74f, #f0b92f);
      --danger: #ff6b7a;
      --ok: #38d892;
      --glow-blue: 0 0 0 1px rgba(74,132,255,.16), 0 10px 34px rgba(53,110,255,.18);
      --glow-pink: 0 0 0 1px rgba(231,78,194,.18), 0 10px 34px rgba(214,54,174,.18);
      --glow-green: 0 0 0 1px rgba(64,210,140,.18), 0 10px 34px rgba(37,163,107,.18);
      color: var(--text);
    }

    .summary-screen {
      position: fixed;
      inset: 0;
      z-index: 1000;
      overflow-y: auto;
      display: grid;
      place-items: center;
      padding: 32px 18px;
      background:
        radial-gradient(circle at 15% 18%, rgba(58,115,255,.20), transparent 30%),
        radial-gradient(circle at 82% 12%, rgba(220,56,176,.16), transparent 28%),
        radial-gradient(circle at 70% 82%, rgba(46,178,146,.12), transparent 25%),
        linear-gradient(180deg, #07111c 0%, #091624 100%);
    }

    .home-card, .summary-card {
      width: min(1220px, 100%);
      background:
        linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)),
        var(--panel);
      border-radius: 32px;
      box-shadow: var(--shadow);
      padding: 30px;
      border: 1px solid var(--panel-border);
      backdrop-filter: blur(18px);
      position: relative;
      overflow: hidden;
    }
    .home-card::before, .summary-card::before {
      content: "";
      position: absolute;
      inset: -1px;
      background:
        radial-gradient(circle at top right, rgba(93,147,255,.16), transparent 28%),
        radial-gradient(circle at bottom left, rgba(233,61,192,.12), transparent 24%);
      pointer-events: none;
    }

    .hero-row {
      display: grid;
      grid-template-columns: 1.15fr .85fr;
      gap: 24px;
      margin-bottom: 24px;
      align-items: start;
      position: relative;
      z-index: 1;
    }

    .brandline {
      display: inline-flex;
      gap: 12px;
      align-items: center;
      flex-wrap: wrap;
      font-size: 14px;
      color: var(--muted);
      margin-bottom: 14px;
    }

    .logo-chip {
      background: linear-gradient(135deg, #11243a, #1b3552);
      color: #f4f7ff;
      border-radius: 999px;
      padding: 9px 14px;
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
      border: 1px solid rgba(255,255,255,.08);
      box-shadow: 0 10px 25px rgba(0,0,0,.24);
    }

    .home-card h1, .summary-card h1 {
      margin: 0 0 12px;
      font-size: clamp(34px, 4vw, 60px);
      line-height: 1.03;
      letter-spacing: -.04em;
    }
    .home-card .lead {
      color: #b6c4d9;
      line-height: 1.7;
      font-size: 17px;
      max-width: 820px;
    }

    .best-box {
      background: rgba(255,255,255,.03);
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 22px;
      padding: 22px;
      display: grid;
      gap: 14px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
      position: relative;
      z-index: 1;
    }

    .best-box h3, .section-title {
      margin: 0;
      font-size: 18px;
      letter-spacing: .02em;
    }
    .best-grid { display: grid; gap: 10px; }
    .best-row {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 10px;
      background: rgba(255,255,255,.035);
      border: 1px solid rgba(255,255,255,.06);
      border-radius: 16px;
      padding: 12px 14px;
      align-items: center;
      font-size: 14px;
    }
    .best-row span { color: var(--muted); }
    .best-row strong { font-size: 15px; }

    .mode-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 18px;
      margin-top: 16px;
      position: relative;
      z-index: 1;
    }

    .mode-card {
      border-radius: 24px;
      padding: 22px;
      background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
      border: 1px solid rgba(255,255,255,.08);
      display: grid;
      gap: 14px;
      box-shadow: 0 18px 32px rgba(0,0,0,.18);
      transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
      position: relative;
      overflow: hidden;
    }
    .mode-card::after {
      content: "";
      position: absolute;
      inset: auto -15% -42% -15%;
      height: 130px;
      background: radial-gradient(circle at center, rgba(255,255,255,.14), transparent 70%);
      pointer-events: none;
      opacity: .55;
    }
    .mode-card:hover {
      transform: translateY(-3px);
      border-color: rgba(255,255,255,.14);
      box-shadow: 0 24px 42px rgba(0,0,0,.26);
    }

    .mode-card h2 { margin: 0; font-size: 30px; letter-spacing: -.03em; }
    .mode-card p { margin: 0; color: #b2c0d4; line-height: 1.6; }
    .mode-card ul { margin: 0; padding-left: 18px; color: #cad5e5; line-height: 1.65; }

    .action-row { display: flex; flex-wrap: wrap; gap: 12px; }
    .home-btn, .control-btn, .lock-btn, .yesno-btn, .choice-btn, .digit-key, .ghost-btn {
      border: 0;
      border-radius: 18px;
      cursor: pointer;
      transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease;
    }
    .home-btn:hover, .control-btn:hover, .lock-btn:hover, .yesno-btn:hover, .choice-btn:hover, .digit-key:hover, .ghost-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 14px 28px rgba(0,0,0,.22);
    }
    .home-btn:disabled, .control-btn:disabled, .lock-btn:disabled, .yesno-btn:disabled, .choice-btn:disabled, .digit-key:disabled, .ghost-btn:disabled {
      opacity: .55;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .home-btn {
      padding: 14px 18px;
      font-weight: 700;
      color: white;
      background: linear-gradient(135deg, #132843, #0b1d34);
      min-height: 54px;
      border: 1px solid rgba(255,255,255,.08);
    }
    .gauntlet-btn { background: linear-gradient(135deg, #f13a9f, #531f99 82%); }

    .mode-digit-home { box-shadow: var(--glow-blue); }
    .mode-switch-home { box-shadow: var(--glow-green); }
    .mode-grid-home { box-shadow: var(--glow-pink); }

    .exam-shell {
      position: fixed;
      inset: 0;
      z-index: 1000;
      overflow-y: auto;
      display: none;
      background:
        radial-gradient(circle at 18% 14%, rgba(73,128,255,.16), transparent 24%),
        radial-gradient(circle at 86% 9%, rgba(228,47,183,.14), transparent 20%),
        linear-gradient(180deg, #091320 0%, #08111d 100%);
    }
    .exam-shell.active { display: block; }
    .exam-shell::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 18%, transparent 82%, rgba(255,255,255,.02));
    }

    .exam-top {
      width: min(1230px, calc(100vw - 36px));
      margin: 0 auto;
      padding-top: 34px;
      position: relative;
      z-index: 1;
    }

    .exam-header {
      min-height: 66px;
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      color: white;
      font-size: 18px;
      padding: 0 22px;
      border-radius: 24px;
      border: 1px solid rgba(255,255,255,.08);
      box-shadow: 0 16px 36px rgba(0,0,0,.20);
    }

    .exam-header .left {
      display: inline-flex;
      gap: 16px;
      align-items: center;
      font-weight: 500;
      min-width: 0;
    }

    .suite-mark {
      width: 38px;
      height: 38px;
      border-radius: 14px;
      display: grid;
      place-items: center;
      font-size: 21px;
      font-weight: 800;
      background: rgba(255,255,255,.12);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
    }
    .slash { opacity: .75; }
    .challenge-name {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-weight: 650;
      letter-spacing: .01em;
    }

    .exam-header .right {
      display: inline-flex;
      gap: 18px;
      align-items: center;
      font-size: 15px;
      font-weight: 500;
    }

    .right .score-chip, .right .level-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 10px;
      border-radius: 999px;
      background: rgba(255,255,255,.10);
      backdrop-filter: blur(8px);
    }

    .timer-row {
      display: grid;
      grid-template-columns: 1fr 88px;
      gap: 18px;
      align-items: center;
      padding: 10px 10px 0 10px;
    }

    .timer-track {
      height: 18px;
      background: rgba(255,255,255,.09);
      border: 1px solid rgba(255,255,255,.06);
      border-radius: 999px;
      box-shadow: inset 0 1px 2px rgba(0,0,0,.22);
      overflow: hidden;
    }

    .timer-fill { height: 100%; width: 100%; transition: width .1s linear; }
    .timer-text {
      font-size: 18px;
      text-align: right;
      color: #dbe7fa;
      font-variant-numeric: tabular-nums;
    }

    .meta-strip {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 10px;
      margin: 14px auto 0;
      width: min(1230px, calc(100vw - 36px));
      color: #9fb1c7;
      font-size: 13px;
      position: relative;
      z-index: 1;
    }

    .meta-pill {
      background: rgba(255,255,255,.045);
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 16px;
      padding: 9px 11px;
      text-align: center;
      box-shadow: 0 10px 22px rgba(0,0,0,.12);
      backdrop-filter: blur(12px);
    }
    .meta-pill strong {
      color: #eef5ff;
      margin-left: 6px;
      font-variant-numeric: tabular-nums;
      font-size: 14px;
    }

    .exam-stage-wrap {
      width: min(1230px, calc(100vw - 36px));
      margin: 20px auto 0;
      display: grid;
      justify-items: center;
      min-height: calc(100vh - 220px);
      padding-bottom: 36px;
      position: relative;
      z-index: 1;
    }

    .exam-stage {
      width: 100%;
      min-height: 640px;
      display: grid;
      justify-items: center;
      align-items: center;
      padding: 26px 24px 32px;
      position: relative;
      overflow: hidden;
      border-radius: 30px;
      border: 1px solid rgba(255,255,255,.08);
      background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
      backdrop-filter: blur(12px);
      box-shadow: var(--shadow);
    }

    .mode-digit .exam-header { background: var(--digit-header); }
    .mode-digit .timer-fill { background: var(--digit-bar); }
    .mode-digit .exam-stage { background: linear-gradient(180deg, rgba(28,55,119,.28), rgba(12,20,35,.58)); }

    .mode-switch .exam-header { background: var(--switch-header); }
    .mode-switch .timer-fill { background: var(--switch-bar); }
    .mode-switch .exam-stage { background: linear-gradient(180deg, rgba(22,87,49,.22), rgba(12,20,35,.58)); }

    .mode-grid .exam-header { background: var(--grid-header); }
    .mode-grid .timer-fill { background: var(--grid-bar); }

    .digit-stage, .switch-stage, .grid-stage {
      width: 100%;
      height: 100%;
      display: none;
    }
    .digit-stage.active, .switch-stage.active, .grid-stage.active { display: grid; }

    .digit-stage {
      place-items: center;
      gap: 18px;
      align-content: center;
    }

    .digit-meta, .switch-meta, .grid-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
      max-width: min(94vw, 920px);
    }
    .digit-chip, .switch-chip, .grid-chip {
      padding: 9px 13px;
      border-radius: 999px;
      background: rgba(255,255,255,.07);
      color: #dbe7fa;
      font-size: 13px;
      border: 1px solid rgba(255,255,255,.08);
      backdrop-filter: blur(10px);
      box-shadow: 0 10px 22px rgba(0,0,0,.12);
    }
    .digit-chip.emphasis, .switch-chip.emphasis, .grid-chip.emphasis {
      background: rgba(255,255,255,.12);
      color: #fff;
      font-weight: 700;
    }

    .digit-card {
      background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.90));
      border: 1px solid rgba(255,255,255,.75);
      border-radius: 24px;
      padding: 18px 22px;
      min-width: min(92vw, 760px);
      box-shadow: 0 20px 36px rgba(0,0,0,.18);
    }

    .digit-equation {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 8px;
      font-size: clamp(28px, 4vw, 56px);
      line-height: 1.2;
      min-height: 104px;
      color: #152437;
      letter-spacing: -.02em;
    }

    .digit-target {
      padding: 6px 12px;
      border-radius: 14px;
      background: rgba(31,76,183,.10);
      border: 1px solid rgba(31,76,183,.12);
      font-weight: 700;
    }

    .digit-blank {
      width: clamp(32px, 2.8vw, 48px);
      height: clamp(58px, 6vw, 80px);
      border-radius: 14px;
      background: #eef3fb;
      border: 2px solid transparent;
      display: inline-flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 5px 12px rgba(0,0,0,.05);
      font-weight: 600;
      color: #23324a;
    }

    .digit-blank.active {
      background: linear-gradient(180deg, #ff9c1c, #f2780d);
      border-color: #ffbf73;
      color: white;
      transform: translateY(-1px);
    }
    .digit-pad {
      width: min(92vw, 470px);
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
    }

    .digit-key {
      min-height: 88px;
      background: var(--yellow);
      color: #2d2f39;
      font-size: clamp(30px, 3vw, 46px);
      box-shadow: inset 0 -12px 0 rgba(0,0,0,.06), 0 10px 22px rgba(0,0,0,.16);
      font-weight: 700;
    }
    .digit-key.used { opacity: .33; }
    .digit-key.ghost { outline: 2px dashed rgba(0,0,0,.12); }

    .trash-btn {
      width: min(92vw, 470px);
      min-height: 74px;
      background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
      color: #eef5ff;
      font-size: 36px;
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 16px;
      box-shadow: 0 16px 26px rgba(0,0,0,.16);
      cursor: pointer;
      backdrop-filter: blur(10px);
    }

    .lock-btn {
      width: 76px;
      height: 76px;
      border-radius: 999px;
      background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
      color: #fff;
      font-size: 34px;
      border: 1px solid rgba(255,255,255,.14);
      box-shadow: 0 16px 26px rgba(0,0,0,.18);
      backdrop-filter: blur(10px);
    }

    .status-line {
      font-size: 14px;
      color: var(--muted);
      min-height: 20px;
      text-align: center;
      max-width: min(92vw, 900px);
      line-height: 1.5;
    }
    .status-line.good { color: var(--ok); }
    .status-line.bad { color: var(--danger); }

    .switch-stage {
      place-items: center;
      align-content: center;
    }

    .switch-canvas {
      width: min(96vw, 980px);
      display: grid;
      justify-items: center;
      align-items: center;
      gap: 10px;
      position: relative;
      padding: 12px 0 20px;
    }

    .switch-symbol-row {
      display: flex;
      gap: 22px;
      align-items: center;
      justify-content: center;
      flex-wrap: nowrap;
      min-height: 86px;
    }

    .symbol-box {
      width: clamp(66px, 7vw, 82px);
      height: clamp(66px, 7vw, 82px);
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
      box-shadow: 0 12px 28px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.10);
      display: grid;
      place-items: center;
      border: 1px solid rgba(255,255,255,.08);
      backdrop-filter: blur(10px);
    }

    .shape-plus, .shape-square, .shape-triangle, .shape-circle, .shape-diamond, .shape-ring, .shape-hex, .shape-xmark, .shape-star { position: relative; }
    .shape-plus { width: 34px; height: 34px; }
    .shape-plus::before, .shape-plus::after {
      content: "";
      position: absolute;
      background: #16a9f0;
      border-radius: 2px;
      left: 50%; top: 50%; transform: translate(-50%, -50%);
    }
    .shape-plus::before { width: 14px; height: 34px; }
    .shape-plus::after { width: 34px; height: 14px; }
    .shape-square { width: 32px; height: 32px; background: #f10916; border-radius: 8px; }
    .shape-triangle {
      width: 0; height: 0;
      border-left: 18px solid transparent;
      border-right: 18px solid transparent;
      border-bottom: 34px solid #f0df0c;
      transform: translateY(-2px);
    }
    .shape-circle { width: 34px; height: 34px; background: #55bd40; border-radius: 50%; }
    .shape-diamond { width: 30px; height: 30px; background: #ff8a00; transform: rotate(45deg); border-radius: 6px; }
    .shape-ring { width: 34px; height: 34px; border: 7px solid #6a59ff; border-radius: 50%; }
    .shape-hex { width: 36px; height: 32px; background: #16b5a4; clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); }
    .shape-star {
      width: 36px;
      height: 36px;
      background: #ffd24e;
      clip-path: polygon(50% 0%, 61% 34%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 34%);
    }
    .shape-xmark { width: 34px; height: 34px; }
    .shape-xmark::before, .shape-xmark::after {
      content: "";
      position: absolute;
      left: 50%;
      top: 50%;
      width: 12px;
      height: 38px;
      background: #ff5f7f;
      border-radius: 999px;
      transform-origin: center;
    }
    .shape-xmark::before { transform: translate(-50%, -50%) rotate(45deg); }
    .shape-xmark::after { transform: translate(-50%, -50%) rotate(-45deg); }

    .tube-stack {
      position: relative;
      display: grid;
      justify-items: center;
      gap: 8px;
      width: min(92vw, 620px);
      padding: 10px 0;
    }

    .tube-spine {
      position: absolute;
      top: 8px;
      bottom: 8px;
      left: 50%;
      transform: translateX(-50%);
      width: 10px;
      background: linear-gradient(180deg, rgba(104,214,255,.78), rgba(208,244,255,.45) 42%, rgba(104,214,255,.78));
      border-radius: 999px;
      opacity: .45;
      z-index: 0;
    }

    .funnel {
      width: 74px;
      height: 58px;
      position: relative;
      z-index: 1;
    }
    .funnel::before {
      content: "";
      position: absolute;
      left: 50%;
      top: 0;
      transform: translateX(-50%);
      width: 58px;
      height: 10px;
      background: var(--tube-dark);
      border-radius: 999px;
      box-shadow: inset 0 -2px 0 rgba(255,255,255,.15);
    }
    .funnel::after {
      content: "";
      position: absolute;
      left: 50%;
      top: 8px;
      transform: translateX(-50%);
      width: 0;
      height: 0;
      border-left: 24px solid transparent;
      border-right: 24px solid transparent;
      border-top: 40px solid var(--tube-dark);
      filter: drop-shadow(0 4px 0 rgba(0,0,0,.08));
    }
    .funnel .neck {
      position: absolute;
      left: 50%;
      bottom: 6px;
      transform: translateX(-50%);
      width: 30px;
      height: 12px;
      background: var(--tube-dark);
      border-radius: 4px;
      z-index: 2;
    }

    .op-fixed {
      min-width: 118px;
      min-height: 58px;
      border-radius: 14px;
      background: linear-gradient(180deg, rgba(124,196,239,.88), rgba(43,135,209,.82));
      display: grid;
      place-items: center;
      padding: 8px 12px;
      color: white;
      font-size: clamp(22px, 2.6vw, 30px);
      font-weight: 700;
      box-shadow: 0 10px 22px rgba(0,0,0,.16);
      z-index: 1;
      border: 1px solid rgba(255,255,255,.12);
    }
    .op-fixed .op-stack, .choice-btn .op-stack {
      display: grid;
      justify-items: center;
      gap: 4px;
    }
    .op-badge, .choice-badge {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .12em;
      opacity: .82;
    }

    .choice-row {
      position: relative;
      z-index: 1;
      display: flex;
      gap: 18px;
      justify-content: center;
      align-items: center;
      flex-wrap: nowrap;
      padding: 10px 20px;
      background: repeating-linear-gradient(135deg, rgba(124,196,239,.28) 0 8px, rgba(209,239,252,.16) 8px 16px);
      border-radius: 24px;
      box-shadow: inset 0 0 0 2px rgba(124,196,239,.22);
    }

    .choice-btn {
      min-width: 126px;
      min-height: 68px;
      border-radius: 16px;
      background: linear-gradient(180deg, rgba(139,206,244,.92), rgba(76,162,218,.92));
      color: #16304f;
      font-size: clamp(22px, 2.2vw, 28px);
      box-shadow: 0 8px 18px rgba(0,0,0,.16);
      padding: 8px 10px;
      border: 1px solid rgba(255,255,255,.16);
      font-weight: 700;
    }

    .choice-btn.selected { outline: 4px solid rgba(255,255,255,.7); color: #0c1c2f; }
    .choice-btn.flash { box-shadow: 0 0 0 2px rgba(255,255,255,.22), 0 16px 30px rgba(0,0,0,.16); }

    .switch-mask {
      opacity: .5;
      filter: blur(.4px);
    }

    .grid-stage {
      background: var(--grid-stage);
      border: 0;
      place-items: stretch;
      position: relative;
      min-height: 640px;
      border-radius: 28px;
      overflow: hidden;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    }
    .grid-stage::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 25% 10%, rgba(255,255,255,.10), transparent 22%),
        radial-gradient(circle at 80% 26%, rgba(255,255,255,.08), transparent 20%);
      pointer-events: none;
    }

    .grid-content {
      width: 100%;
      height: 100%;
      display: grid;
      align-content: center;
      justify-items: center;
      gap: 18px;
      position: relative;
      overflow: hidden;
      padding: 18px 10px;
      z-index: 1;
    }

    .watermark {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      color: rgba(255,255,255,.08);
      font-size: clamp(120px, 14vw, 220px);
      transform: rotate(-22deg);
      pointer-events: none;
      user-select: none;
      font-weight: 800;
      letter-spacing: -.06em;
    }

    .grid-title {
      font-size: clamp(30px, 4vw, 58px);
      color: rgba(255,255,255,.90);
      text-align: center;
      margin-top: 6px;
      letter-spacing: -.04em;
      text-shadow: 0 8px 24px rgba(0,0,0,.16);
    }

    .memory-board {
      display: grid;
      gap: clamp(12px, 1.8vw, 28px);
      justify-content: center;
      align-content: center;
      width: min(96vw, 1120px);
      min-height: 450px;
      padding: 14px 20px;
    }

    .hole {
      width: clamp(18px, 3vw, 42px);
      height: clamp(18px, 3vw, 42px);
      border-radius: 999px;
      background: rgba(255,255,255,.96);
      display: grid;
      place-items: center;
      box-shadow: inset 0 -2px 0 rgba(0,0,0,.08), 0 8px 14px rgba(0,0,0,.06);
      cursor: default;
      position: relative;
    }

    .hole.active-memory::after,
    .hole.selected-order::before {
      content: "";
      width: 72%;
      height: 72%;
      border-radius: 999px;
      background: var(--dot-color, #b21b93);
      box-shadow: 0 0 0 3px rgba(255,255,255,.92);
    }
    .hole.active-memory.moving::before {
      content: "";
      position: absolute;
      inset: -10px;
      border-radius: 999px;
      border: 2px dashed rgba(255,255,255,.4);
      opacity: .7;
    }

    .hole.clickable { cursor: pointer; }
    .hole.selected-order > span {
      position: absolute;
      color: white;
      font-size: clamp(10px, 1vw, 14px);
      font-weight: 800;
      z-index: 2;
    }

    .spatial-wrap {
      width: min(94vw, 1100px);
      display: grid;
      justify-items: center;
      gap: 24px;
      align-content: center;
    }

    .spatial-boards {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: clamp(16px, 4vw, 56px);
      flex-wrap: wrap;
    }

    .operator-sign {
      color: white;
      font-size: clamp(48px, 6vw, 96px);
      line-height: 1;
      opacity: .95;
      transform: translateY(4px);
      text-shadow: 0 8px 20px rgba(0,0,0,.16);
    }

    .mini-board {
      width: clamp(164px, 20vw, 230px);
      height: clamp(164px, 20vw, 230px);
      background: rgba(21, 78, 134, .84);
      box-shadow: 0 18px 28px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.08);
      display: grid;
      place-items: center;
      border-radius: 20px;
      border: 1px solid rgba(255,255,255,.08);
    }

    .yesno-row {
      display: flex;
      gap: 18px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .yesno-btn {
      min-width: 200px;
      min-height: 72px;
      background: var(--yesno);
      color: white;
      font-size: clamp(22px, 2.2vw, 40px);
      text-transform: lowercase;
      box-shadow: 0 16px 26px rgba(0,0,0,.16);
      border: 1px solid rgba(255,255,255,.14);
    }

    .bottom-controls {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      justify-content: center;
      margin-top: 10px;
    }

    .control-btn, .ghost-btn {
      min-height: 48px;
      padding: 0 16px;
      background: rgba(255,255,255,.15);
      border: 1px solid rgba(255,255,255,.12);
      box-shadow: 0 10px 18px rgba(0,0,0,.10);
      color: #fff;
      backdrop-filter: blur(12px);
    }

    .legend-swatch {
      width: 11px;
      height: 11px;
      border-radius: 999px;
      display: inline-block;
      margin-right: 7px;
      vertical-align: middle;
    }

    .summary-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0,1fr));
      gap: 16px;
      margin-top: 20px;
      position: relative;
      z-index: 1;
    }

    .summary-metric {
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 20px;
      padding: 18px;
      text-align: center;
      box-shadow: 0 14px 24px rgba(0,0,0,.14);
    }
    .summary-metric label {
      display: block;
      font-size: 12px;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .12em;
      margin-bottom: 8px;
    }
    .summary-metric strong { font-size: 34px; }
    .summary-text { color: #b5c3d8; line-height: 1.7; font-size: 16px; margin-top: 18px; position: relative; z-index: 1; }

    .hidden { display: none !important; }

    body.infinity-active { overflow: hidden; }

    @media (max-width: 980px) {
      .hero-row { grid-template-columns: 1fr; }
      .mode-grid { grid-template-columns: 1fr; }
      .summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
      .meta-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
      .timer-row { grid-template-columns: 1fr 74px; }
      .choice-row { gap: 10px; padding: 8px 10px; }
      .choice-btn { min-width: 96px; }
      .switch-symbol-row { gap: 12px; }
    }

    @media (max-width: 640px) {
      .home-card, .summary-card { padding: 20px; border-radius: 22px; }
      .exam-top, .meta-strip, .exam-stage-wrap { width: calc(100vw - 18px); }
      .exam-top { padding-top: 16px; }
      .exam-header { padding: 0 12px; font-size: 15px; border-radius: 20px; }
      .exam-header .left { gap: 10px; }
      .exam-header .right { gap: 8px; font-size: 13px; }
      .timer-row { padding: 8px 4px 0; gap: 8px; }
      .timer-text { font-size: 16px; }
      .meta-strip { grid-template-columns: 1fr 1fr; }
      .digit-pad { gap: 10px; }
      .yesno-btn { min-width: 150px; min-height: 62px; }
      .summary-grid { grid-template-columns: 1fr; }
      .digit-card { min-width: min(94vw, 760px); padding: 16px 14px; }
      .digit-chip, .switch-chip, .grid-chip { font-size: 12px; }
    }
