/* Gunma Mammoth Racing — light gray × slate (#56676f) × ink. Editorial, low-radius. */
:root {
  --bg: #dfe2e3;
  --bg-2: #e9ebec;
  --surface: #fafafa;
  --surface-2: #f0f2f2;
  --line: #cdd2d4;
  --line-strong: #b3bbbf;
  --text: #121a1a;
  --text-2: #3f4a4e;
  --muted: #6f7b80;
  --slate: #56676f;
  --slate-dark: #3f4c53;
  --ink: #121a1a;
  --radius: 8px;
  --radius-s: 6px;
  --font-display: "Cormorant Garamond", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --font-mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
button, input { font-family: inherit; }
.flow__n, .hill__num, .stamp, .done__title, .h2, .count b, .bar__event, .strip__cat, .btn--big small { font-variant-numeric: lining-nums; }
::selection { background: var(--slate); color: #fff; }

.app {
  max-width: 480px; margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) 20px calc(32px + env(safe-area-inset-bottom));
  min-height: 100dvh; display: flex; flex-direction: column;
}

/* top bar */
.bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 18px; border-bottom: 1px solid var(--line-strong); margin-bottom: 26px; }
.bar__tag { font-family: var(--font-display); font-size: 15px; letter-spacing: .24em; color: var(--slate); font-weight: 700; }
.bar__event { font-family: var(--font-display); font-size: 13px; letter-spacing: .08em; color: var(--muted); font-weight: 600; }

/* fixed footer with the wordmark */
.foot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
  background: rgba(223,226,227,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-strong);
}
.foot__brand img { display: block; height: 14px; width: auto; }
.foot__tag { font-family: var(--font-display); font-size: 12px; letter-spacing: .22em; color: var(--muted); font-weight: 700; white-space: nowrap; }
.app { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

/* ---- top page ---- */
.top { padding: 10px 0 8px; }
.top__eyebrow { font-family: var(--font-display); font-size: 14px; letter-spacing: .22em; color: var(--slate); font-weight: 700; margin-bottom: 18px; }
.top__display { font-family: var(--font-display); font-weight: 700; font-size: 92px; line-height: .86; letter-spacing: -.03em; color: var(--slate); margin: 0 0 18px; }
.top__display span { display: block; }
.top__display span + span { color: var(--ink); }
.top__sub { font-family: var(--font-mincho); font-size: 22px; letter-spacing: .06em; font-weight: 700; margin: 0 0 12px; color: var(--ink); }
.top__lead { margin: 0; color: var(--text-2); font-size: 16.5px; }
.top__lead b { color: var(--text); font-weight: 600; }
.kv { margin: 22px -20px 0; padding: 0 8px; }
.kv img { display: block; width: 100%; height: auto; }
.cta { margin-top: 8px; }
.btn--big { padding: 20px; font-size: 20px; flex-direction: column; gap: 2px; }
.btn--big small { font-size: 12px; font-weight: 500; letter-spacing: .12em; opacity: .7; font-family: var(--font-display); }
.btn--big::after { display: none; }
.count { text-align: center; font-family: var(--font-mincho); font-size: 14px; letter-spacing: .08em; color: var(--text-2); margin: 14px 0 0; }
.count b { font-family: var(--font-display); font-size: 22px; color: var(--ink); margin: 0 2px; }
.scrollcue { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 34px 0 10px; font-family: var(--font-display); font-size: 12px; letter-spacing: .3em; color: var(--muted); font-weight: 700; }
.scrollcue span { width: 1px; height: 34px; background: var(--slate); animation: cue 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* full-bleed bands with curved tops */
.screen-extra { display: none; }
.screen-extra.is-active { display: block; }
.band { position: relative; margin: 0 -20px; padding: 44px 20px 40px; background: var(--bg); }
.band__in { max-width: 440px; margin: 0 auto; }
.band__label { font-family: var(--font-display); font-size: 14px; letter-spacing: .3em; font-weight: 700; color: var(--slate); margin: 0 0 14px; }
.band__title { font-family: var(--font-mincho); font-size: 34px; line-height: 1.3; font-weight: 700; letter-spacing: .02em; margin: 0 0 16px; }
.band__title--sm { font-size: 24px; }
.band__text { margin: 0; font-size: 16px; color: var(--text-2); }
.band--dark { background: var(--ink); color: #fff; margin-top: 26px; padding-top: 64px; }
.band--dark::before { content: ""; position: absolute; left: -10%; right: -10%; top: -36px; height: 72px; background: var(--ink); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.band--dark .band__label { color: #b9c2c6; }
.band--dark .band__title { color: #fff; }
.band--dark .band__text { color: #cfd5d8; }
.band--slate { background: var(--slate); color: #fff; }
.band--slate .band__label { color: #dfe2e3; }
.band--slate .band__title { color: #fff; font-family: var(--font-display); font-size: 36px; letter-spacing: -.01em; }
.band--slate .band__text { color: #e6e9ea; }
.reward { text-align: center; }
.reward__emoji { font-size: 56px; line-height: 1; margin-bottom: 14px; }

/* 8-question strip (horizontal scroll) */
.strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 20px 12px; margin: 18px -20px 0; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip__item { flex: 0 0 200px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: 12px 12px 10px; }
.strip__item img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; }
.strip__cat { font-family: var(--font-mincho); font-size: 12px; letter-spacing: .12em; color: var(--slate); margin-top: 6px; font-weight: 700; }

.band .flow { margin-bottom: 22px; }

.screen { display: none; flex: 1; flex-direction: column; }
.screen.is-active { display: flex; animation: rise .22s cubic-bezier(.2,.7,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* hill-climb gauge */
.hill { position: relative; margin: 0 0 18px; }
.hill svg { display: block; width: 100%; height: auto; overflow: visible; }
.hill__ground { fill: rgba(86,103,111,.10); }
.hill__base { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-linecap: round; }
.hill__done { fill: none; stroke: var(--slate); stroke-width: 2.5; stroke-linecap: round; transition: stroke-dashoffset .45s cubic-bezier(.2,.7,.2,1); }
.hill__rider { font-size: 26px; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.hill__summit { font-size: 26px; }
.hill__row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; border-top: 1px solid var(--line-strong); padding-top: 8px; }
.hill__num { font-family: var(--font-display); font-size: 18px; letter-spacing: .1em; color: var(--slate); font-weight: 700; }
.hill__caption { font-family: var(--font-mincho); font-size: 13.5px; letter-spacing: .12em; color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 26px 22px; }
.card + .card { margin-top: 12px; }
.card__title { font-family: var(--font-display); font-size: 15px; letter-spacing: .25em; color: var(--slate); font-weight: 700; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }

.flow { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.flow li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; font-size: 16px; color: var(--text-2); line-height: 1.6; }
.flow li b { color: var(--text); font-weight: 600; }
.flow__n { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #fff; background: var(--slate); width: 32px; height: 32px; border-radius: 4px; display: grid; place-items: center; margin-top: 1px; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; border: 0; border-radius: var(--radius-s); cursor: pointer;
  font-weight: 700; font-size: 18px; padding: 18px 20px;
  -webkit-tap-highlight-color: transparent; transition: transform .08s, opacity .15s;
}
.btn:active { transform: scale(.985); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:disabled { opacity: .5; cursor: default; }
.btn--primary::after { content: "→"; font-weight: 700; }
.btn--ghost { background: transparent; color: var(--muted); font-weight: 500; font-size: 15px; padding: 14px; margin-top: 8px; }

.meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); margin-top: 18px; }
.meta span + span { text-align: right; }

/* question */
.q { margin-bottom: 20px; }
.q__cat { font-family: var(--font-mincho); font-size: 14px; letter-spacing: .25em; color: var(--slate); font-weight: 700; margin-bottom: 8px; }
.q__fig { margin: 0 0 10px; padding: 0 0 4px; border-bottom: 1px solid var(--line-strong); }
.q__fig[hidden] { display: none; }
.q__fig img { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 auto; mix-blend-mode: multiply; }
.q__text { font-size: 26px; line-height: 1.45; font-weight: 700; margin: 0 0 10px; letter-spacing: -.005em; }
.q__hint { margin: 0; color: var(--muted); font-size: 15px; min-height: 1.5em; }

.choices { display: grid; gap: 10px; }
.choice {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  color: var(--text); padding: 20px 18px; font-size: 19px; font-weight: 600;
  -webkit-tap-highlight-color: transparent;
  transition: background .12s, border-color .12s, transform .08s;
}
.choice::after {
  content: ""; width: 26px; height: 26px; border-radius: 4px; flex: none;
  border: 1.5px solid var(--slate); display: grid; place-items: center;
  font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--slate);
  transition: background .12s, border-color .12s, color .12s;
}
.choice:active { transform: scale(.99); background: var(--surface-2); }
.choice--yes::after { content: "✓"; }
.choice--will::after { content: "→"; }
.choice.is-picked { background: var(--slate); color: #fff; border-color: var(--slate); }
.choice.is-picked::after { background: #fff; border-color: #fff; color: var(--slate); }
.choice--attr { font-weight: 500; font-size: 18px; }
.choice--skip { color: var(--muted); font-weight: 500; font-size: 15px; border: 1px dashed var(--line-strong); background: transparent; }
.choice--skip::after { display: none; }

/* form */
.h2 { font-family: var(--font-display); font-size: 40px; font-weight: 600; letter-spacing: 0; margin: 0 0 10px; line-height: 1; }
.h2 em { font-style: normal; color: var(--slate); }
.p { margin: 0 0 20px; color: var(--text-2); font-size: 16px; }
.p b { color: var(--text); }
.field { display: block; margin-bottom: 18px; }
.field__label { display: flex; align-items: baseline; gap: 8px; font-size: 14.5px; font-weight: 600; margin-bottom: 8px; color: var(--text-2); }
.field__label em { font-style: normal; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .15em; color: #fff; background: var(--slate); padding: 2px 8px; border-radius: 3px; }
.field input {
  width: 100%; font-size: 18px; padding: 16px; color: var(--text);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  transition: border-color .12s, box-shadow .12s;
}
.field input::placeholder { color: var(--muted); }
.field input:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(86,103,111,.18); }
.field.is-invalid input { border-color: #c4503d; }
.field__error { display: block; color: #b8432f; font-size: 14px; min-height: 1.3em; margin-top: 6px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-2); margin: 0 0 22px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box { width: 24px; height: 24px; flex: none; border: 1.5px solid var(--line-strong); border-radius: 4px; margin-top: 2px; display: grid; place-items: center; transition: background .12s, border-color .12s; }
.check__box::after { content: "✓"; font-family: var(--font-body); font-weight: 700; font-size: 14px; color: #fff; opacity: 0; }
.check input:checked + .check__box { background: var(--slate); border-color: var(--slate); }
.check input:checked + .check__box::after { opacity: 1; }
.check b { color: var(--text); font-weight: 600; }

.fine { font-size: 13px; color: var(--muted); margin: 16px 0 0; line-height: 1.7; }

/* done */
.done { position: relative; text-align: center; padding: 26px 0 30px; overflow: hidden; }
.done__mark { position: absolute; left: 50%; top: -6px; width: 260px; height: auto; transform: translateX(-50%); opacity: .07; pointer-events: none; }
.done__eyebrow { position: relative; font-family: var(--font-display); font-size: 15px; letter-spacing: .3em; color: var(--slate); font-weight: 700; margin-bottom: 18px; }
.done__title {
  position: relative;
  font-family: var(--font-display); font-size: 58px; line-height: .95; letter-spacing: -.01em; font-weight: 700; margin: 0 0 18px; color: var(--ink);
}
.done__title em { font-style: italic; font-weight: 600; font-size: .56em; display: block; margin-bottom: 2px; letter-spacing: .02em; line-height: 1.1; color: var(--slate); }
.done__lead { position: relative; font-family: var(--font-mincho); color: var(--text-2); margin: 0; font-size: 16px; letter-spacing: .04em; }
.stamp {
  position: relative;
  display: inline-flex; flex-direction: column; gap: 2px; margin-top: 22px;
  background: var(--ink); border-radius: 4px; padding: 14px 22px;
  font-family: var(--font-display); font-size: 13px; letter-spacing: .22em; color: #b9c2c6;
}
.stamp b { color: #fff; font-weight: 700; font-size: 16px; }
.closing { margin-top: 18px; padding: 18px 20px; background: var(--surface-2); border-left: 3px solid var(--slate); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.closing__title { font-family: var(--font-mincho); font-size: 14px; letter-spacing: .25em; color: var(--slate); font-weight: 700; margin-bottom: 8px; }
.closing__body { font-size: 15.5px; color: var(--text-2); }
