:root {
  --bg: #070b16;
  --bg-2: #0b1222;
  --card: rgba(18, 27, 48, .88);
  --card-2: rgba(12, 19, 35, .92);
  --line: rgba(126, 164, 226, .17);
  --line-strong: rgba(126, 196, 255, .42);
  --text: #eef4ff;
  --muted: #93a6c6;
  --muted-2: #7386a6;
  --accent: #62e6c8;
  --accent-2: #6f8cff;
  --pink: #ff7ab6;
  --gold: #ffd36e;
  --danger: #ff7080;
  --radius: 20px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 8% -8%, rgba(90, 122, 255, .28), transparent 62%),
    radial-gradient(900px 520px at 94% 2%, rgba(98, 230, 200, .14), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(255, 122, 182, .10), transparent 62%),
    var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(600px 300px at 15% 20%, rgba(111, 140, 255, .10), transparent 70%),
    radial-gradient(500px 260px at 88% 12%, rgba(98, 230, 200, .08), transparent 70%);
}
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .30;
  background-image:
    linear-gradient(rgba(126, 164, 226, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 164, 226, .10) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
}

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 1;
  max-width: 1120px; margin: 0 auto;
  padding: 64px 28px 28px;
  display: flex; align-items: center; gap: 28px;
}
.hero-inner { flex: 1; min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .22em; font-weight: 700;
  color: var(--accent); text-transform: uppercase;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(98, 230, 200, .14), 0 0 18px rgba(98, 230, 200, .8);
}
h1 {
  margin: 14px 0 8px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: -.02em;
  background: linear-gradient(100deg, #ffffff 0%, #c9e7ff 42%, #8ef2dc 78%, #ffb8d8 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: 0 16px 46px rgba(95, 140, 255, .18);
}
.subtitle { margin: 0; color: var(--muted); font-size: clamp(15px, 1.8vw, 18px); max-width: 620px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span {
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(18, 29, 50, .6);
  color: #b7c9e8; font-size: 12px;
}
.chips span:nth-child(1) { border-color: rgba(98, 230, 200, .32); color: #b9f8e9; }
.chips span:nth-child(3) { border-color: rgba(255, 122, 182, .30); color: #ffd0e4; }
.hero-art {
  position: relative; width: 300px; height: 210px; flex: 0 0 auto;
}
.orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .6; }
.orb-a { width: 170px; height: 170px; right: 10px; top: 6px; background: radial-gradient(circle at 35% 30%, rgba(111,140,255,.55), rgba(111,140,255,.05) 65%); }
.orb-b { width: 100px; height: 100px; right: 145px; bottom: 4px; background: radial-gradient(circle at 40% 35%, rgba(98,230,200,.45), rgba(98,230,200,.03) 68%); }
.pad-svg { position: relative; width: 260px; height: 190px; display: block; margin: 10px 0 0 auto; filter: drop-shadow(0 18px 40px rgba(72, 110, 255, .25)); }

/* ---------- progress ---------- */
.progress-sticky {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 11, 22, .78);
  border-top: 1px solid transparent;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.progress-inner {
  max-width: 980px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; gap: 14px;
}
.progress-copy { font-size: 12px; color: var(--muted); white-space: nowrap; }
.progress-copy b { color: var(--accent); font-size: 14px; margin-left: 4px; }
.progress-track {
  flex: 1; height: 7px; border-radius: 999px; overflow: hidden;
  background: rgba(126, 164, 226, .16);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35);
}
.progress-fill {
  height: 100%; width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #6f8cff, #62e6c8 55%, #ffd36e);
  box-shadow: 0 0 16px rgba(98, 230, 200, .55);
  transition: width .35s ease;
}
.progress-count { font-size: 12px; color: var(--muted-2); min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.wrap { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 26px 24px 10px; }
.card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section { padding: 26px 28px 8px; margin-bottom: 18px; scroll-margin-top: 66px; }
.section-head { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 18px; }
.section-num {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px; letter-spacing: .02em;
  color: #07111f;
  background: linear-gradient(140deg, #a8fff0, #62e6c8 55%, #8aa4ff);
  box-shadow: 0 10px 26px rgba(98, 230, 200, .20);
}
.section-head h2 { margin: 1px 0 3px; font-size: 21px; letter-spacing: -.01em; }
.section-head p { margin: 0; color: var(--muted-2); font-size: 13px; }
.consent-section { padding-bottom: 24px; }
.consent-section .section-head { padding-bottom: 14px; }

/* ---------- question ---------- */
fieldset.q { border: 0; margin: 0; padding: 22px 0 24px; border-top: 1px dashed rgba(126,164,226,.15); min-width: 0; }
fieldset.q:first-of-type { border-top: 0; padding-top: 4px; }
.q-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.q-no {
  flex: 0 0 auto; margin-top: 2px;
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
  color: var(--accent); background: rgba(98, 230, 200, .08);
  border: 1px solid rgba(98, 230, 200, .20); border-radius: 7px;
  padding: 2px 7px; font-variant-numeric: tabular-nums;
}
.q-title-wrap { flex: 1; min-width: 0; }
.q-title-wrap h3 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.5; color: #eaf2ff; }
.hint { margin: 3px 0 0; color: var(--muted-2); font-size: 12.5px; }
.req, .opt-tag {
  flex: 0 0 auto; margin-top: 3px;
  font-size: 10.5px; padding: 2px 7px; border-radius: 999px;
  letter-spacing: .04em;
}
.req { color: #ffd0d7; background: rgba(255, 112, 128, .10); border: 1px solid rgba(255, 112, 128, .25); }
.opt-tag { color: var(--muted-2); background: rgba(126, 164, 226, .08); border: 1px solid var(--line); }

.options { display: grid; gap: 9px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt { position: relative; display: block; min-width: 0; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt-body {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(126, 164, 226, .18);
  background: rgba(14, 22, 39, .72);
  color: #c9d7ef; font-size: 14px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, color .18s ease;
  word-break: break-word;
}
.opt:hover .opt-body { border-color: rgba(126, 196, 255, .42); background: rgba(22, 34, 58, .85); color: #eef5ff; }
.opt-mark {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid rgba(150, 178, 220, .55);
  background: rgba(7, 12, 24, .5);
  position: relative; transition: .18s ease;
}
.opt.check .opt-mark { border-radius: 6px; }
.opt input:checked + .opt-body {
  border-color: rgba(98, 230, 200, .65);
  background: linear-gradient(140deg, rgba(98, 230, 200, .16), rgba(111, 140, 255, .13));
  color: #f4fffd;
  box-shadow: 0 0 0 1px rgba(98, 230, 200, .08), 0 10px 24px rgba(8, 24, 38, .35);
}
.opt input:checked + .opt-body .opt-mark {
  border-color: var(--accent); background: var(--accent);
  box-shadow: 0 0 12px rgba(98, 230, 200, .55);
}
.opt input:checked + .opt-body .opt-mark::after {
  content: ""; position: absolute; left: 5px; top: 2px;
  width: 5px; height: 9px;
  border: solid #062018; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.opt.radio input:checked + .opt-body .opt-mark::after {
  left: 5px; top: 5px; width: 6px; height: 6px;
  border: 0; border-radius: 50%; background: #062018; transform: none;
}
.opt input:focus-visible + .opt-body { outline: 2px solid rgba(122, 190, 255, .9); outline-offset: 2px; }
.opt.disabled { cursor: not-allowed; }
.opt.disabled .opt-body { opacity: .38; }
.q.invalid .opt-body { border-color: rgba(255, 112, 128, .36); }
.q.invalid .q-title-wrap h3 { color: #ffd6dc; }

/* classes */
.class-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.class-opt { display: block; cursor: pointer; position: relative; }
.class-opt input { position: absolute; opacity: 0; pointer-events: none; }
.class-opt span {
  display: grid; place-items: center; height: 42px; border-radius: 11px;
  border: 1px solid rgba(126, 164, 226, .18); background: rgba(14, 22, 39, .72);
  color: #c9d7ef; font-weight: 700; font-size: 14px;
  transition: .18s ease;
}
.class-opt:hover span { border-color: rgba(126, 196, 255, .45); color: #fff; }
.class-opt input:checked + span {
  color: #04130f; border-color: transparent;
  background: linear-gradient(140deg, #a8fff0, #62e6c8);
  box-shadow: 0 8px 22px rgba(98, 230, 200, .25);
}
.class-opt input:focus-visible + span { outline: 2px solid rgba(122, 190, 255, .9); outline-offset: 2px; }

/* games */
.game-groups { display: grid; gap: 12px; }
.game-group {
  border: 1px solid rgba(126, 164, 226, .13); border-radius: 14px;
  background: rgba(7, 12, 24, .35); padding: 12px 12px 13px;
}
.game-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.game-group-head h4 { margin: 0; font-size: 13px; color: #b8cff0; letter-spacing: .02em; }
.game-group-head span { font-size: 11px; color: var(--muted-2); }
.game-options { gap: 7px; }
.game-options .opt-body { min-height: 38px; padding: 8px 10px; font-size: 13px; border-radius: 10px; }
.game-options .opt-mark { width: 16px; height: 16px; }

/* consent */
.consent {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  padding: 15px 16px; border-radius: 14px;
  border: 1px solid rgba(126, 164, 226, .18);
  background: rgba(12, 20, 36, .6);
}
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent-mark {
  flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px;
  border: 1.5px solid rgba(150, 178, 220, .55); background: rgba(7, 12, 24, .5);
  position: relative; transition: .18s ease;
}
.consent input:checked + .consent-mark { background: var(--accent); border-color: var(--accent); }
.consent input:checked + .consent-mark::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px;
  border: solid #062018; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.consent input:focus-visible + .consent-mark { outline: 2px solid rgba(122, 190, 255, .9); outline-offset: 2px; }
.consent-text { font-size: 13.5px; color: #c7d6ee; }
.consent-text b { color: #f1f7ff; font-size: 14.5px; }
.consent-text span { color: var(--muted-2); font-size: 12.5px; }
.consent-section.invalid .consent { border-color: rgba(255, 112, 128, .55); }

/* submit */
.submit-card { padding: 24px 28px 28px; text-align: center; }
.submit-note { color: var(--muted-2); font-size: 12.5px; line-height: 1.8; margin-bottom: 18px; }
.submit-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 220px; height: 56px; padding: 0 30px;
  border: 0; border-radius: 14px; cursor: pointer;
  color: #04130f; font-size: 17px; font-weight: 800; letter-spacing: .04em;
  background: linear-gradient(135deg, #b9fff1, #62e6c8 48%, #8ca6ff);
  box-shadow: 0 18px 42px rgba(98, 230, 200, .22), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.submit-btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 22px 52px rgba(98, 230, 200, .30); }
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { cursor: wait; opacity: .65; transform: none; }
.form-error {
  margin: 16px auto 0; max-width: 620px; padding: 10px 14px; border-radius: 10px;
  color: #ffd6dc; background: rgba(255, 112, 128, .10);
  border: 1px solid rgba(255, 112, 128, .35); font-size: 13px;
}
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* success */
.success { padding: 44px 28px 40px; text-align: center; margin-top: 10px; }
.success-check {
  width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 38px; font-weight: 800;
  color: #04130f; background: linear-gradient(140deg, #b9fff1, #62e6c8);
  box-shadow: 0 0 0 10px rgba(98, 230, 200, .08), 0 18px 40px rgba(98, 230, 200, .22);
}
.success h2 { margin: 0 0 6px; font-size: 28px; }
.success-sub { margin: 0; color: var(--muted); }
.success-id {
  display: inline-block; margin: 20px 0 6px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(98, 230, 200, .30); background: rgba(98, 230, 200, .08);
  color: #bff8ea; font-size: 13px;
}
.success-id b { color: #fff; letter-spacing: .06em; }
.success-tip { max-width: 520px; margin: 4px auto 20px; color: var(--muted-2); font-size: 12.5px; }
.ghost-btn {
  height: 44px; padding: 0 22px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--line-strong); background: rgba(18, 29, 50, .7);
  color: #d7e8ff; font-size: 14px; font-weight: 600;
}
.ghost-btn:hover { background: rgba(26, 42, 70, .9); }
[hidden] { display: none !important; }
footer {
  position: relative; z-index: 1; max-width: 980px; margin: 26px auto 0;
  padding: 18px 24px 30px; display: flex; justify-content: space-between; gap: 12px;
  border-top: 1px solid rgba(126, 164, 226, .10);
  color: var(--muted-2); font-size: 11.5px;
}
.noscript { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 99; padding: 12px; border-radius: 10px; background: #32151c; color: #ffd6dc; text-align: center; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.q.invalid { animation: shake .32s ease; }

@media (max-width: 900px) {
  .hero { padding-top: 44px; }
  .hero-art { width: 220px; height: 170px; }
  .pad-svg { width: 200px; height: 150px; }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .class-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .hero { padding: 32px 18px 18px; display: block; }
  .hero-art { display: none; }
  h1 { font-size: 34px; }
  .subtitle { font-size: 14px; }
  .chips { gap: 6px; margin-top: 16px; }
  .chips span { padding: 5px 9px; font-size: 11px; }
  .progress-inner { padding: 8px 14px; gap: 9px; }
  .progress-count { display: none; }
  .wrap { padding: 18px 12px 6px; }
  .section { padding: 18px 15px 6px; border-radius: 16px; }
  .section-head { gap: 11px; padding-bottom: 14px; }
  .section-num { width: 38px; height: 38px; border-radius: 12px; font-size: 13px; }
  .section-head h2 { font-size: 18px; }
  .section-head p { font-size: 12px; }
  fieldset.q { padding: 18px 0; }
  .q-head { gap: 9px; }
  .q-title-wrap h3 { font-size: 15.5px; }
  .req, .opt-tag { display: none; }
  .options, .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .game-options { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .game-options .opt-body { font-size: 12.5px; padding: 7px 8px; min-height: 36px; }
  .class-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .class-opt span { height: 40px; }
  .opt-body { min-height: 44px; }
  .consent { padding: 12px; }
  .submit-card { padding: 18px 15px 22px; }
  .submit-note { font-size: 12px; }
  .submit-btn { width: 100%; }
  .success { padding: 32px 18px 28px; }
  .success h2 { font-size: 23px; }
  footer { display: block; text-align: center; padding: 16px 16px 24px; }
  footer span { display: block; margin: 3px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
