:root {
  --ink: #111317;
  --muted: #5b6270;
  --line: #e6e8ee;
  --bg: #ffffff;
  --soft: #f4f5f8;
  --accent: #ff5a1f;
  --accent-dark: #e14a12;
  --brand: #5b21b6;
  --good: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --radius: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}
button { font: inherit; cursor: pointer; }
a { color: var(--brand); }
.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 40px; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); max-width: 560px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; letter-spacing: -0.3px; color: var(--ink); text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
.top .right { font-size: 14px; color: var(--muted); }
.progress { height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; margin: 6px 0 18px; }
.progress > i { display: block; height: 100%; background: var(--brand); transition: width .3s; }
.qnum { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .3px; }
.kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1.2px; color: var(--brand); background: #ede9fe; padding: 5px 10px; border-radius: 99px; margin-top: 10px; }
h1 { font-size: 29px; line-height: 1.15; letter-spacing: -0.6px; margin: 14px 0 10px; }
h2 { font-size: 22px; line-height: 1.25; letter-spacing: -0.3px; margin: 6px 0 16px; }
p.sub { color: var(--muted); font-size: 16px; margin: 0 0 22px; }
.opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px; font-size: 17px; font-weight: 600; color: var(--ink);
  transition: border-color .12s, background .12s, transform .06s;
}
.opt:hover { border-color: #c9c3f5; }
.opt:active { transform: scale(.99); }
.opt.sel { border-color: var(--brand); background: #f5f3ff; }
.opt .dot { width: 22px; height: 22px; border-radius: 99px; border: 2px solid var(--line); flex: 0 0 22px; }
.opt.sel .dot { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 4px #fff; }
.big2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.big2 .opt { flex-direction: column; justify-content: center; padding: 22px 10px; font-size: 18px; }
.big2 .opt .ic { font-size: 40px; line-height: 1; }
.cta {
  display: block; width: 100%; border: 0; border-radius: var(--radius);
  background: var(--accent); color: #fff; font-weight: 800; font-size: 18px;
  padding: 17px 18px; box-shadow: 0 6px 16px rgba(255, 90, 31, .28); transition: background .12s;
}
.cta:hover { background: var(--accent-dark); }
.cta[disabled] { opacity: .6; cursor: default; }
.ghost { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 14px; padding: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--soft); padding: 8px; border-radius: var(--radius); margin-bottom: 14px; }
.grid3 .c { background: #fff; border-radius: 10px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.grid3 .c svg { width: 80%; height: 80%; }
.grid3 .q { font-size: 34px; font-weight: 800; color: var(--brand); background: #ede9fe; }
.mopts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mopts .opt { justify-content: center; padding: 8px; aspect-ratio: 1; }
.mopts .opt svg { width: 85%; height: 85%; }
.memo { text-align: center; padding: 30px 0 10px; }
.memo .w { font-size: 44px; font-weight: 900; letter-spacing: 6px; color: var(--brand); }
.memo .em { font-size: 54px; letter-spacing: 10px; }
.memo .t { margin-top: 18px; font-size: 15px; color: var(--muted); }
.stroop { text-align: center; font-size: 46px; font-weight: 900; letter-spacing: 2px; margin: 20px 0 24px; }
.stroopopts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stroopopts .opt { justify-content: center; }
.stroopopts .sw { width: 18px; height: 18px; border-radius: 4px; }
.react { margin: 10px auto 18px; width: 220px; height: 220px; border-radius: 999px; background: var(--soft); border: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: var(--muted); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.react.go { background: var(--good); color: #fff; }
.react.early { background: #fee2e2; color: var(--bad); }
.cheer { text-align: center; padding: 26px 8px 8px; }
.cheer .ic { font-size: 54px; }
.cheer p { font-size: 20px; font-weight: 700; line-height: 1.35; margin: 14px 0 26px; }
.anl { margin: 10px 0 20px; }
.anl .row { margin-bottom: 14px; }
.anl .lab { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.bar { height: 10px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); width: 0; transition: width .9s ease; border-radius: 99px; }
.modal { position: fixed; inset: 0; background: rgba(17, 19, 23, .45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 20; }
.modal .box { background: #fff; border-radius: 18px; padding: 22px; width: 100%; max-width: 380px; text-align: center; }
.modal .box h3 { margin: 0 0 16px; font-size: 20px; }
input.f { width: 100%; font: inherit; font-size: 17px; padding: 15px 14px; border: 2px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; outline: none; }
input.f:focus { border-color: var(--brand); }
.note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
.err { color: var(--bad); font-size: 14px; margin: 4px 0 8px; }
.card { border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 12px; background: #fff; }
.locked { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 12px; }
.locked .card { text-align: center; margin: 0; }
.locked .lbl { font-size: 13px; color: var(--muted); font-weight: 600; }
.locked .num { font-size: 40px; font-weight: 900; filter: blur(9px); user-select: none; color: var(--brand); }
.locked .sm { font-size: 13px; color: var(--muted); }
.pill { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: 14px; padding: 6px 10px; border-radius: 99px; }
.pill.g { background: #dcfce7; color: #166534; }
.pill.r { background: #fee2e2; color: #991b1b; }
.warn { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 14px; padding: 14px; font-size: 15px; margin: 12px 0; }
ul.ok { list-style: none; padding: 0; margin: 8px 0 16px; }
ul.ok li { padding: 7px 0 7px 30px; position: relative; font-size: 16px; }
ul.ok li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 18px; height: 18px; border-radius: 99px; background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8 13.6 4.4 10l-1.4 1.4L8 16.4l9-9-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat; }
.price { border: 2px solid var(--brand); border-radius: 18px; padding: 16px; margin: 14px 0; background: #faf8ff; }
.price .l1 { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 18px; }
.price .l1 b { font-size: 28px; }
.price .l2 { color: var(--muted); font-size: 15px; margin-top: 4px; }
.fine { font-size: 12.5px; color: var(--muted); margin: 12px 0; line-height: 1.45; }
.faq h4 { margin: 14px 0 4px; font-size: 15px; }
.faq p { margin: 0; color: var(--muted); font-size: 14px; }
footer { max-width: 560px; margin: 0 auto; padding: 18px 16px 30px; font-size: 12.5px; color: var(--muted); text-align: center; border-top: 1px solid var(--line); }
footer a { color: var(--muted); margin: 0 6px; }
.center { text-align: center; }
.hide { display: none !important; }
.spin { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 99px; display: inline-block; animation: sp 0.8s linear infinite; vertical-align: middle; }
@keyframes sp { to { transform: rotate(360deg); } }
/* app */
.hero { text-align: center; padding: 10px 0 6px; }
.hero .score { font-size: 72px; font-weight: 900; letter-spacing: -2px; color: var(--brand); line-height: 1; }
.hero .lbl { font-weight: 700; color: var(--muted); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kv .card { text-align: center; margin: 0; }
.kv .v { font-size: 34px; font-weight: 900; }
.kv .s { font-size: 13px; color: var(--muted); }
.btnrow { display: grid; gap: 10px; margin: 14px 0; }
.btn2 { display: block; width: 100%; border: 2px solid var(--ink); background: #fff; color: var(--ink); border-radius: var(--radius); padding: 14px; font-weight: 800; font-size: 16px; text-align: center; text-decoration: none; }
.days { display: grid; gap: 8px; }
.day { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.day input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--brand); flex: 0 0 20px; }
.day.lock { opacity: .45; }
.day b { display: block; }
.game { text-align: center; }
.tabs { display: flex; gap: 8px; margin: 6px 0 14px; flex-wrap: wrap; }
.tabs button { border: 2px solid var(--line); background: #fff; border-radius: 99px; padding: 8px 14px; font-weight: 700; font-size: 14px; }
.tabs button.on { border-color: var(--brand); background: #f5f3ff; color: var(--brand); }
@media (min-width: 600px) {
  h1 { font-size: 34px; }
}
