
    :root {
      color-scheme: dark;
      font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
      background: #07110f;
      color: #e8f4e9;
      font-synthesis: none;
      text-rendering: optimizeLegibility;
    }

    * { box-sizing: border-box; }

    body {
      min-width: 320px;
      min-height: 100vh;
      margin: 0;
      overflow-x: hidden;
      background:
        radial-gradient(ellipse at 50% 30%, #16312a 0, #0b1c18 42%, #050b0a 100%);
    }

    body::before {
      position: fixed;
      inset: 0;
      z-index: -1;
      background-image: radial-gradient(#a6d7a4 0.7px, transparent 0.7px);
      background-size: 37px 37px;
      opacity: .13;
      content: "";
      mask-image: linear-gradient(to bottom, #000, transparent 85%);
    }

    .page {
      width: min(100% - 32px, 1020px);
      margin: 0 auto;
      padding: 28px 0 32px;
    }

    header {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 20px;
      margin: 0 0 20px;
    }

    .eyebrow {
      margin: 0 0 6px;
      color: #9dc6a3;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .24em;
      text-transform: uppercase;
    }

    h1 {
      margin: 0;
      color: #f3f5dd;
      font-size: clamp(25px, 5vw, 40px);
      font-weight: 800;
      letter-spacing: .07em;
      text-shadow: 0 0 22px #b3db7d55;
    }

    .subtitle {
      margin: 7px 0 0;
      color: #9db4a4;
      font-size: 13px;
      letter-spacing: .04em;
    }

    .badge {
      flex: 0 0 auto;
      padding: 8px 12px;
      border: 1px solid #68886470;
      border-radius: 999px;
      color: #b7d786;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .12em;
      box-shadow: inset 0 0 14px #83a85d16, 0 0 18px #83a85d10;
    }

    .machine {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 248px;
      overflow: hidden;
      border: 1px solid #7fa47b55;
      border-radius: 16px;
      background: linear-gradient(145deg, #1d312a, #101c19 58%, #0b1412);
      box-shadow: 0 26px 70px #0009, inset 0 1px #e3f2d51c;
    }

    .stage {
      display: flex;
      flex-direction: column;
      justify-content: center;
      min-height: 520px;
      padding: 26px 30px;
      background:
        radial-gradient(ellipse at 50% 48%, #31412a38, transparent 65%),
        linear-gradient(135deg, #13221d, #0d1714);
    }

    aside {
      display: flex;
      flex-direction: column;
      padding: 23px 20px;
      border-left: 1px solid #ffffff12;
      background: linear-gradient(180deg, #182720, #101a17);
    }

    .panel-label {
      margin: 0 0 7px;
      color: #91a99a;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .2em;
    }

    .divider {
      height: 1px;
      margin: 20px 0;
      background: linear-gradient(90deg, #a5c67b55, transparent);
    }

    .footer-note {
      margin: 18px 0 0;
      color: #758c7e;
      font-size: 10px;
      line-height: 1.7;
    }

    /* ---- 开始界面 ---- */
    .start-row {
      display: flex;
      gap: 10px;
      margin: 18px 0 6px;
    }

    .start-row input {
      flex: 1;
      min-width: 0;
      padding: 13px 14px;
      border: 1px solid #68886466;
      border-radius: 9px;
      background: #0c151280;
      color: #e7edcc;
      font: inherit;
      font-size: 14px;
      outline: none;
      transition: border-color .15s;
    }
    .start-row input:focus { border-color: #cfdf8c; }

    .btn-go {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 48px;
      padding: 0 26px;
      border: 1px solid #cfdf8c;
      border-radius: 9px;
      background: linear-gradient(180deg, #d6e8a2, #a7c477);
      color: #172117;
      font: inherit;
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
      box-shadow: 0 4px 18px #b8d77d24, inset 0 1px #fff9;
      transition: transform .12s, filter .12s;
      white-space: nowrap;
    }
    .btn-go:hover { filter: brightness(1.08); }
    .btn-go:active { transform: translateY(2px); }
    .btn-go:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

    .btn-ghost {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 44px;
      padding: 0 20px;
      border: 1px solid #68886470;
      border-radius: 9px;
      background: #ffffff06;
      color: #b7d786;
      font: inherit;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      transition: color .15s, border-color .15s;
    }
    .btn-ghost:hover { color: #d9e8a4; border-color: #cfdf8c80; }
    .btn-ghost:focus-visible { outline: 2px solid #d9e8a4; outline-offset: 3px; }

    .tip {
      margin: 0 0 4px;
      color: #9db4a4;
      font-size: 13px;
      line-height: 1.9;
    }
    .tip b { color: #d9e8a4; }

    .err-msg {
      margin: 6px 0 0;
      color: #e8a39a;
      font-size: 12px;
    }
    .err-msg[hidden] { display: none; }

    .hint {
      margin: 10px 0 0;
      color: #758c7e;
      font-size: 11px;
      line-height: 1.8;
    }
    .hint a { color: #9dc6a3; }

    .lv-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
    .lv-tag {
      padding: 6px 12px;
      border: 1px solid #68886450;
      border-radius: 999px;
      color: #a7b3a5;
      font-size: 11px;
      letter-spacing: .05em;
    }

    /* ---- 游戏界面 ---- */
    .stats-row { display: flex; gap: 10px; margin: 0 0 14px; }
    .stat-chip {
      flex: 1;
      padding: 11px 13px;
      border: 1px solid #849d6838;
      border-radius: 10px;
      background: #0c151280;
      text-align: center;
    }
    .stat-chip .lab { display: block; margin-bottom: 4px; color: #91a99a; font-size: 10px; font-weight: 700; letter-spacing: .18em; }
    .stat-chip .val { color: #d9e8a4; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }

    .timer-track {
      height: 7px;
      overflow: hidden;
      margin-bottom: 26px;
      border-radius: 999px;
      background: #0c1512;
      box-shadow: inset 0 1px 3px #000a;
    }
    .timer-bar {
      width: 100%;
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, #d6e8a2, #a7c477);
      box-shadow: 0 0 12px #b8d77d55;
      transition: width .08s linear;
    }

    .question {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 14px;
      min-height: 110px;
      margin-bottom: 24px;
      font-size: clamp(34px, 7vw, 54px);
      font-weight: 800;
      letter-spacing: .04em;
      color: #f3f5dd;
      text-shadow: 0 0 22px #b3db7d55;
      font-variant-numeric: tabular-nums;
    }
    .q-blank {
      display: inline-grid;
      place-items: center;
      min-width: 1.6em;
      padding: 0 .15em;
      border-bottom: 4px solid #cfdf8c;
      color: #d9e8a4;
      text-shadow: 0 0 24px #c3e47b66;
    }
    .q-op, .q-eq { color: #9dc6a3; }
    .q-res { color: #e7edcc; }

    .answer-row { display: flex; gap: 10px; max-width: 460px; }
    .answer-row input {
      flex: 1;
      min-width: 0;
      padding: 13px 14px;
      border: 1px solid #68886466;
      border-radius: 9px;
      background: #0c151280;
      color: #e7edcc;
      font: inherit;
      font-size: 20px;
      font-weight: 700;
      text-align: center;
      font-variant-numeric: tabular-nums;
      outline: none;
      transition: border-color .15s;
    }
    .answer-row input:focus { border-color: #cfdf8c; }

    .feedback {
      min-height: 24px;
      margin: 16px 0 0;
      font-size: 14px;
      font-weight: 700;
    }
    .feedback.ok { color: #b7d786; }
    .feedback.err { color: #e8a39a; }

    .sec-left { margin: 6px 0 0; color: #758c7e; font-size: 11px; }

    /* ---- 结算界面 ---- */
    .over-box { text-align: center; }
    .over-box h2 {
      margin: 0 0 10px;
      color: #f3f5dd;
      font-size: clamp(22px, 4vw, 30px);
      letter-spacing: .12em;
      text-shadow: 0 0 20px #c5df8e88;
    }
    .over-line { margin: 0 0 6px; color: #b6c8a9; font-size: 14px; }
    .over-line b { color: #d9e8a4; font-size: 18px; }
    .rank-line { min-height: 22px; margin: 4px 0 18px; color: #9dc6a3; font-size: 12px; }
    .over-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

    /* ---- 侧栏排行榜 ---- */
    .board { list-style: none; margin: 0; padding: 0; }
    .board li {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 0;
      border-bottom: 1px solid #ffffff0d;
      font-size: 12px;
    }
    .board .rk { flex: 0 0 26px; color: #d9e8a4; font-weight: 800; text-align: center; }
    .board .nm { flex: 1; min-width: 0; overflow: hidden; color: #dfe8d0; text-overflow: ellipsis; white-space: nowrap; }
    .board .lv { flex: 0 0 auto; color: #91a99a; font-size: 10px; }
    .board .sc { flex: 0 0 auto; color: #d9e8a4; font-weight: 800; font-variant-numeric: tabular-nums; }
    .board .mg-empty { color: #758c7e; font-size: 11px; border-bottom: 0; }

    kbd {
      padding: 2px 6px;
      border: 1px solid #44564a;
      border-radius: 4px;
      background: #17221c;
      color: #d3e2be;
      font: 10px "Segoe UI", sans-serif;
      box-shadow: 0 2px #0a100d;
    }

    [hidden] { display: none !important; }

    @media (max-width: 760px) {
      .page { width: min(100% - 20px, 540px); padding-top: 18px; }
      .machine { grid-template-columns: 1fr; }
      .stage { min-height: auto; padding: 18px 16px; }
      aside {
        padding: 17px;
        border-top: 1px solid #ffffff12;
        border-left: 0;
      }
      .badge { display: none; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
    }

    /* ---- 博客外壳 ---- */
    .blog-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      width: min(100% - 32px, 1020px);
      margin: 0 auto;
      padding: 22px 0 4px;
    }
    .bt-brand { display: flex; align-items: center; gap: 11px; color: #e8f4e9; text-decoration: none; }
    .bt-mark {
      display: grid;
      width: 38px;
      height: 38px;
      place-items: center;
      border: 1px solid #7fa47b4d;
      border-radius: 12px;
      color: #b7d786;
      background: #83a85d14;
    }
    .bt-name { display: block; font-size: 14px; font-weight: 750; letter-spacing: .02em; }
    .bt-cap { display: block; margin-top: 2px; color: #8ea795; font-size: 10px; letter-spacing: .16em; }
    .bt-back {
      padding: 8px 13px;
      border: 1px solid #7fa47b4d;
      border-radius: 999px;
      color: #a9c5a1;
      background: #ffffff06;
      font-size: 12px;
      font-weight: 700;
      text-decoration: none;
      white-space: nowrap;
      transition: color .15s ease, border-color .15s ease;
    }
    .bt-back:hover { color: #d9e8a4; border-color: #cfdf8c80; }
    .bt-back:focus-visible { outline: 2px solid #d9e8a4; outline-offset: 3px; }
    .blog-foot {
      width: min(100% - 32px, 1020px);
      margin: 0 auto;
      padding: 4px 0 26px;
      color: #758c7e;
      font-size: 11px;
      line-height: 2;
      text-align: center;
    }
    .blog-foot a { color: #9db4a4; text-decoration: none; margin: 0 3px; }
    .blog-foot a:hover { color: #d9e8a4; }
  