
    :root {
      color-scheme: dark;
      font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
      --bg: #031521;
      --panel: rgba(7, 32, 49, .78);
      --panel-2: rgba(10, 44, 63, .62);
      --line: rgba(125, 216, 226, .22);
      --text: #eaf9ff;
      --muted: #8fb4c4;
      --cyan: #62e0e6;
      --orange: #ffb14a;
      --red: #ff6b5e;
    }

    * { box-sizing: border-box; }

    body {
      min-width: 320px;
      min-height: 100vh;
      margin: 0;
      color: var(--text);
      background:
        radial-gradient(circle at 12% 8%, rgba(72, 199, 209, .16), transparent 30%),
        radial-gradient(circle at 88% 0%, rgba(255, 177, 74, .10), transparent 28%),
        linear-gradient(160deg, #061d2c 0%, #03131f 55%, #010b14 100%);
      overflow-x: hidden;
    }

    body::before {
      position: fixed;
      inset: 0;
      z-index: -1;
      background-image:
        linear-gradient(rgba(126, 216, 230, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 216, 230, .035) 1px, transparent 1px);
      background-size: 42px 42px;
      content: "";
      mask-image: linear-gradient(to bottom, #000, transparent 80%);
    }

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

    .topbar {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 20px;
    }

    .eyebrow {
      margin: 0 0 7px;
      color: var(--cyan);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .28em;
      text-transform: uppercase;
    }

    h1 {
      margin: 0;
      font-size: clamp(28px, 5vw, 44px);
      font-weight: 850;
      letter-spacing: .12em;
      text-shadow: 0 0 30px rgba(98, 224, 230, .28);
    }

    .subtitle {
      margin: 8px 0 0;
      color: var(--muted);
      font-size: 13px;
      letter-spacing: .04em;
    }

    .header-badge {
      display: flex;
      flex: 0 0 auto;
      align-items: center;
      gap: 9px;
      padding: 8px 13px;
      border: 1px solid rgba(98, 224, 230, .28);
      border-radius: 999px;
      background: rgba(8, 42, 57, .55);
      color: #b5eef0;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .16em;
      box-shadow: inset 0 0 18px rgba(98, 224, 230, .08);
    }

    .pulse {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--cyan);
      box-shadow: 0 0 0 0 rgba(98, 224, 230, .55);
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      70% { box-shadow: 0 0 0 9px rgba(98, 224, 230, 0); }
      100% { box-shadow: 0 0 0 0 rgba(98, 224, 230, 0); }
    }

    .game-shell {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 266px;
      gap: 18px;
      align-items: stretch;
    }

    .stage-wrap {
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(126, 216, 230, .3);
      border-radius: 20px;
      background: #041a2b;
      box-shadow: 0 28px 70px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .08);
    }

    canvas {
      display: block;
      width: 100%;
      height: auto;
      aspect-ratio: 8 / 5;
      touch-action: none;
      cursor: crosshair;
    }

    .overlay {
      position: absolute;
      inset: 0;
      z-index: 2;
      display: grid;
      place-items: center;
      padding: 24px;
      background: rgba(2, 15, 25, .58);
      backdrop-filter: blur(5px);
      transition: opacity .25s ease, visibility .25s ease;
    }

    .overlay[hidden] {
      display: grid;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    .overlay-card {
      width: min(100%, 380px);
      padding: 28px 30px;
      border: 1px solid rgba(126, 216, 230, .36);
      border-radius: 18px;
      background: linear-gradient(160deg, rgba(11, 48, 66, .96), rgba(4, 24, 38, .96));
      text-align: center;
      box-shadow: 0 22px 50px rgba(0, 0, 0, .45), inset 0 1px rgba(255, 255, 255, .08);
    }

    .overlay-kicker {
      margin: 0 0 8px;
      color: var(--cyan);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .3em;
    }

    .overlay-card h2 {
      margin: 0 0 10px;
      font-size: 28px;
      letter-spacing: .08em;
    }

    .overlay-card p:not(.overlay-kicker) {
      margin: 0 0 20px;
      color: #a8cbd8;
      font-size: 13px;
      line-height: 1.75;
    }

    .overlay-card strong {
      color: var(--orange);
      font-size: 18px;
    }

    button {
      font: inherit;
    }

    .primary-btn {
      width: 100%;
      padding: 12px 16px;
      border: 1px solid rgba(255, 177, 74, .62);
      border-radius: 11px;
      background: linear-gradient(180deg, #ffc46e, #f09a33);
      color: #2a1604;
      font-weight: 800;
      letter-spacing: .06em;
      cursor: pointer;
      box-shadow: 0 10px 22px rgba(240, 154, 51, .2), inset 0 1px rgba(255, 255, 255, .45);
      transition: transform .15s ease, filter .15s ease;
    }

    .primary-btn:hover { filter: brightness(1.08); }
    .primary-btn:active { transform: translateY(1px); }
    .primary-btn:disabled { opacity: .5; cursor: wait; }

    .hint-strip {
      position: absolute;
      right: 16px;
      bottom: 14px;
      left: 16px;
      z-index: 1;
      display: flex;
      justify-content: center;
      gap: 8px;
      flex-wrap: wrap;
      pointer-events: none;
    }

    .hint-strip span {
      padding: 5px 9px;
      border: 1px solid rgba(255, 255, 255, .12);
      border-radius: 999px;
      background: rgba(3, 20, 32, .58);
      color: #b8d9df;
      font-size: 10px;
      letter-spacing: .05em;
      backdrop-filter: blur(4px);
    }

    .panel {
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: 20px;
      background: linear-gradient(165deg, var(--panel), rgba(3, 20, 32, .84));
      box-shadow: inset 0 1px rgba(255, 255, 255, .06);
    }

    .panel-section {
      padding: 14px;
      border: 1px solid rgba(126, 216, 230, .13);
      border-radius: 14px;
      background: var(--panel-2);
    }

    .label {
      margin: 0 0 8px;
      color: #7ea7b8;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .2em;
    }

    .score {
      display: block;
      font-size: 46px;
      font-weight: 850;
      line-height: 1;
      letter-spacing: .06em;
      color: #f4fbff;
      font-variant-numeric: tabular-nums;
      text-shadow: 0 0 20px rgba(98, 224, 230, .25);
    }

    .meta {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      margin-top: 12px;
      padding-top: 11px;
      border-top: 1px solid rgba(126, 216, 230, .14);
      color: #88adbd;
      font-size: 11px;
    }

    .meta b { color: var(--orange); font-size: 13px; }

    .status-text {
      margin: 0;
      font-size: 14px;
      font-weight: 700;
    }

    .meter {
      height: 6px;
      margin: 12px 0 8px;
      overflow: hidden;
      border-radius: 999px;
      background: rgba(126, 216, 230, .12);
    }

    .meter i {
      display: block;
      width: 0;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--cyan), var(--orange));
      transition: width .2s ease;
    }

    .tiny {
      margin: 0;
      color: #7296a7;
      font-size: 10px;
      line-height: 1.6;
    }

    .legend {
      display: grid;
      gap: 9px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .legend li {
      display: flex;
      align-items: center;
      gap: 10px;
      color: #b7d5de;
      font-size: 11px;
    }

    .legend img {
      flex: 0 0 48px;
      width: 48px;
      height: 30px;
      object-fit: contain;
    }

    .legend li:nth-child(2) img { width: 40px; flex-basis: 40px; height: 30px; }
    .legend li:nth-child(3) img { width: 24px; flex-basis: 24px; }
    .legend li:nth-child(4) img { width: 32px; flex-basis: 32px; height: 34px; }

    .panel .primary-btn { margin-top: auto; }

    kbd {
      display: inline-block;
      margin-left: 4px;
      padding: 1px 5px;
      border: 1px solid rgba(42, 22, 4, .28);
      border-radius: 4px;
      background: rgba(255, 255, 255, .35);
      font-family: inherit;
      font-size: 10px;
      font-weight: 800;
    }

    .touch-controls {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .touch-controls button {
      padding: 11px;
      border: 1px solid rgba(126, 216, 230, .25);
      border-radius: 11px;
      background: rgba(12, 51, 69, .7);
      color: #d7f4f7;
      font-size: 20px;
      font-weight: 800;
      touch-action: none;
      user-select: none;
    }

    .touch-controls button:active {
      background: rgba(98, 224, 230, .25);
    }

    @media (pointer: fine) {
      .touch-controls { display: none; }
    }

    .footer-note {
      margin: 0;
      color: #6f94a4;
      font-size: 10px;
      line-height: 1.6;
    }

    @media (max-width: 900px) {
      .game-shell { grid-template-columns: 1fr; }
      .panel {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
      }
      .panel .primary-btn,
      .touch-controls,
      .footer-note { grid-column: 1 / -1; }
    }

    @media (max-width: 560px) {
      .page { width: min(100% - 20px, 1180px); padding-top: 20px; }
      .topbar { align-items: flex-start; flex-direction: column; }
      .panel { grid-template-columns: 1fr; }
      .hint-strip span:nth-child(2),
      .hint-strip span:nth-child(3) { display: none; }
      .score { font-size: 38px; }
    }
  .backblog{position:fixed;top:14px;left:14px;z-index:999;color:#8fb4c4;text-decoration:none;font-size:14px;padding:5px 12px;border:1px solid rgba(125,216,226,.25);border-radius:8px;background:rgba(7,32,49,.7);transition:.2s}.backblog:hover{color:#eaf9ff;border-color:#62e0e6}
    .page{padding-top:64px}
  