:root {
  --red: #d71920;
  --red-dark: #a50f17;
  --red-soft: #fff0f1;
  --ink: #211d1e;
  --muted: #6e6264;
  --line: #eadfe1;
  --paper: #ffffff;
  --wash: #f8f5f5;
  --shadow: 0 24px 70px rgba(93, 11, 19, 0.16);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
button, input { font: inherit; }
button { cursor: pointer; }

.simulation-bar {
  padding: 9px 20px;
  color: #fff;
  background: #780b12;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 28px;
}

.brand { color: var(--red); text-decoration: none; }
.brand-word {
  display: block;
  font-size: 34px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -2px;
  line-height: .85;
}
.brand-subtitle {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.header-link { color: var(--ink); font-size: 14px; font-weight: 700; }
.header-step { color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.hero {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 72px;
  min-height: 700px;
  padding: 72px max(28px, calc((100vw - 1180px) / 2));
  color: #fff;
  background:
    radial-gradient(circle at 15% 15%, rgba(255,255,255,.18), transparent 24%),
    linear-gradient(135deg, var(--red) 0%, #c70f18 52%, #8d0910 100%);
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
}
.hero h1 {
  margin: 0;
  font-size: clamp(54px, 8vw, 100px);
  line-height: .9;
  letter-spacing: -.06em;
}
.hero h1 span { color: #ffd8da; }
.hero-lead { max-width: 600px; margin: 30px 0; font-size: 20px; line-height: 1.55; }
.privacy-note { font-size: 13px; opacity: .82; }

.primary-button, .danger-button {
  min-height: 50px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}
.hero .primary-button { color: var(--red); background: #fff; }
.reveal-section .primary-button, .quiz-section .primary-button { color: #fff; background: var(--red); }

.mock-card {
  position: relative;
  color: var(--ink);
  background: var(--paper);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  overflow: hidden;
}
.mock-card::before, .mock-card::after {
  content: "";
  position: absolute;
  top: 86px;
  width: 32px;
  height: 32px;
  background: #a30c14;
  border-radius: 50%;
}
.mock-card::before { left: -16px; }
.mock-card::after { right: -16px; }
.ticket-top {
  display: flex;
  justify-content: space-between;
  padding: 22px 28px;
  color: #fff;
  background: #171314;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
}
.ticket-body { padding: 40px; }
.ticket-icon { color: var(--red); font-size: 42px; }
.ticket-body h2 { margin: 10px 0; font-size: 34px; letter-spacing: -.03em; }
.ticket-body > p { color: var(--muted); }
.ticket-body label, .nickname-panel label { display: block; margin: 20px 0 7px; font-size: 13px; font-weight: 800; }
.ticket-body input, .nickname-panel input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--wash);
}
.danger-button { width: 100%; margin-top: 24px; color: #fff; background: var(--red); }
.field-note { text-align: center; font-size: 12px; }

.reveal-section, .quiz-section, .leaderboard-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 28px;
}
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading h2 { margin: 0 0 18px; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.05em; }
.section-heading > p:last-child { color: var(--muted); font-size: 18px; line-height: 1.65; }
.section-heading .eyebrow, .result-section .eyebrow { color: var(--red); }
.section-heading.compact { margin-bottom: 28px; }
.section-heading.compact h2 { font-size: clamp(34px, 4vw, 52px); }

.warning-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 36px; }
.warning-grid article { padding: 30px; background: var(--red-soft); border-radius: 20px; }
.warning-number { color: var(--red); font-size: 13px; font-weight: 900; letter-spacing: .12em; }
.warning-grid h3 { margin: 24px 0 10px; font-size: 21px; }
.warning-grid p { margin: 0; color: var(--muted); line-height: 1.55; }

.quiz-section { border-top: 1px solid var(--line); }
.question-card { margin: 0 0 20px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; }
.question-card legend { padding: 0 8px; font-size: 19px; font-weight: 800; }
.question-card legend span { margin-right: 12px; color: var(--red); }
.answer-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 16px;
  border-radius: 12px;
  background: var(--wash);
}
.answer-option:has(input:checked) { color: var(--red-dark); background: var(--red-soft); }
.answer-option input { margin-top: 3px; accent-color: var(--red); }
.nickname-panel { margin: 28px 0; padding: 28px; color: #fff; background: #241d1f; border-radius: 20px; }
.nickname-panel label { margin-top: 0; }
.nickname-panel p { margin-bottom: 0; color: #d7ccce; font-size: 13px; }
.form-status { min-height: 24px; color: var(--red-dark); font-weight: 700; }

.result-section {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 42px;
  padding: 70px max(28px, calc((100vw - 1044px) / 2));
  background: var(--red-soft);
}
.score-ring {
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
}
.score-ring strong { font-size: 42px; line-height: 1; }
.score-ring span { margin-top: -45px; font-size: 12px; text-transform: uppercase; }
.result-section h2 { margin: 0 0 12px; font-size: 48px; letter-spacing: -.04em; }
.result-section p:last-child { color: var(--muted); font-size: 18px; }

.leaderboard-section { background: #fff; }
.leaderboard-list { margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.leaderboard-list li {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  counter-increment: rank;
}
.leaderboard-list li::before { content: counter(rank, decimal-leading-zero); color: var(--red); font-weight: 900; }
.leaderboard-list strong { font-size: 18px; }
.leaderboard-list span { color: var(--red-dark); font-weight: 900; }
.leaderboard-list .empty-board { display: block; color: var(--muted); counter-increment: none; }
.leaderboard-list .empty-board::before { content: none; }

.leaderboard-page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 18%, rgba(215, 25, 32, .08), transparent 28%),
    linear-gradient(180deg, #fff7f7 0, #fff 32%);
}
.leaderboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  padding: 20px max(28px, calc((100vw - 1180px) / 2));
  color: #fff;
  background: var(--red);
  box-shadow: 0 12px 34px rgba(93, 11, 19, .16);
}
.leaderboard-brand { color: #fff; text-decoration: none; }
.leaderboard-brand .brand-subtitle { color: #fff; }
.leaderboard-live { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.leaderboard-live span { width: 9px; height: 9px; background: #fff; border-radius: 50%; box-shadow: 0 0 0 6px rgba(255,255,255,.18); }
.leaderboard-page main { display: grid; align-items: center; width: 100%; }
.leaderboard-standalone { width: 100%; padding-top: 72px; padding-bottom: 72px; }
.leaderboard-standalone .section-heading { max-width: 900px; }
.leaderboard-standalone .section-heading h1 { margin: 0 0 16px; font-size: clamp(44px, 6vw, 78px); line-height: .95; letter-spacing: -.06em; }
.leaderboard-standalone .leaderboard-list { border-top: 1px solid var(--line); }
.leaderboard-standalone .leaderboard-list li { min-height: 76px; padding: 20px 14px; }
.leaderboard-standalone .leaderboard-list strong { font-size: clamp(18px, 2vw, 25px); }
.leaderboard-standalone .leaderboard-list span { font-size: clamp(18px, 2vw, 24px); }

footer { padding: 38px 28px; color: #e5d9db; background: #211d1e; text-align: center; font-size: 13px; }

.rewards-page { min-height: 100vh; background: var(--wash); }
.reward-stage {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 76px;
  min-height: calc(100vh - 178px);
  padding: 76px max(28px, calc((100vw - 1180px) / 2));
  color: #fff;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.18), transparent 24%),
    linear-gradient(135deg, var(--red) 0%, #c70f18 52%, #8d0910 100%);
}
.reward-copy .eyebrow { color: #fff; }
.reward-copy h1 { margin: 0; font-size: clamp(54px, 7vw, 92px); line-height: .92; letter-spacing: -.06em; }
.reward-copy h1 span { color: #ffd8da; }
.reward-lead { max-width: 650px; margin: 28px 0; font-size: 20px; line-height: 1.55; }
.reward-alert { display: grid; gap: 5px; max-width: 620px; margin: 0 0 28px; padding: 18px 20px; color: var(--ink); background: #fff; border-radius: 14px; }
.reward-alert span { color: var(--muted); line-height: 1.45; }
.reward-continue { display: inline-flex; align-items: center; min-height: 52px; padding: 14px 23px; color: var(--red); background: #fff; border-radius: 999px; font-weight: 900; text-decoration: none; }
.reward-continue:focus-visible { outline: 4px solid rgba(255,255,255,.42); outline-offset: 4px; }
.boarding-card { position: relative; color: var(--ink); background: #fff; border-radius: 28px; box-shadow: var(--shadow); transform: rotate(2deg); overflow: hidden; }
.boarding-card::before, .boarding-card::after { position: absolute; top: 78px; width: 32px; height: 32px; background: #a30c14; border-radius: 50%; content: ""; }
.boarding-card::before { left: -16px; }
.boarding-card::after { right: -16px; }
.boarding-card-top { display: flex; justify-content: space-between; padding: 22px 28px; color: #fff; background: #171314; font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.boarding-card-body { padding: 42px; }
.boarding-label { margin: 18px 0 8px; color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.boarding-card-body > strong { display: block; font-size: 36px; line-height: 1; letter-spacing: -.04em; }
.boarding-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 36px 0 0; }
.boarding-card dl div { padding-top: 16px; border-top: 1px solid var(--line); }
.boarding-card dt { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.boarding-card dd { margin: 7px 0 0; font-weight: 800; }
.boarding-code { padding: 22px 42px; color: var(--red); background: var(--red-soft); font-family: monospace; font-size: 23px; letter-spacing: .08em; overflow: hidden; white-space: nowrap; }

[hidden] { display: none !important; }

@media (max-width: 820px) {
  .site-header { padding: 18px 20px; }
  .header-link { display: none; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 70px 24px; }
  .hero h1 { font-size: clamp(52px, 18vw, 78px); }
  .mock-card { transform: none; }
  .warning-grid { grid-template-columns: 1fr; }
  .result-section { grid-template-columns: 1fr; }
  .score-ring { width: 140px; height: 140px; }
  .header-step { display: none; }
  .reward-stage { grid-template-columns: 1fr; gap: 48px; padding: 66px 24px; }
  .reward-copy h1 { font-size: clamp(50px, 16vw, 76px); }
  .boarding-card { transform: none; }
  .boarding-card dl { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

