:root {
  --ink: #171717;
  --paper: #f3f0e7;
  --white: #fffef8;
  --red: #ff4f37;
  --blue: #2968ff;
  --yellow: #ffbf1f;
  --green: #24b47e;
  --line: #bdb8ac;
  --muted: #706e68;
  --mono: "DM Mono", monospace;
  --sans: "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); overflow-x: hidden; }
button { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

.manual-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 82px; display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(255,255,255,.15); color: var(--white); background: rgba(18,18,18,.9);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 12px; width: max-content; color: inherit; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); background: var(--red); border-radius: 50% 50% 50% 8px; font: 500 14px var(--mono); }
.brand b { display: block; font-size: 15px; letter-spacing: .1em; }
.brand small { display: block; margin-top: 2px; color: #999; font: 10px var(--mono); letter-spacing: .13em; }
.header-section { color: #777; font: 500 9px var(--mono); letter-spacing: .15em; }
.header-cta { justify-self: end; padding: 12px 16px; border: 1px solid #555; color: white; font: 500 10px var(--mono); letter-spacing: .1em; text-decoration: none; }
.header-cta b { margin-left: 12px; color: var(--red); font-weight: 500; }

.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr); align-items: center; gap: clamp(30px, 6vw, 100px); padding: 130px clamp(24px, 6vw, 96px) 80px; overflow: hidden; color: var(--white); background: #121212; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .54; background: linear-gradient(90deg,#111 0%,rgba(17,17,17,.93) 42%,rgba(17,17,17,.3)), url('/base/static/images/game-bg.jpg') center / cover; }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none; background: repeating-linear-gradient(0deg,transparent 0 4px,rgba(255,255,255,.12) 5px); }
.hero-grid { position: absolute; inset: 0; opacity: .17; background-image: linear-gradient(rgba(255,255,255,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.18) 1px,transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to right,black,transparent 75%); }
.hero-copy, .hero-range { position: relative; z-index: 2; }
.eyebrow { margin: 0; font: 500 10px var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.eyebrow span { display: inline-block; margin-right: 10px; padding: 5px 8px; color: var(--white); background: var(--ink); }
.eyebrow.light span { color: var(--ink); background: var(--red); }
.hero .eyebrow span { color: var(--ink); background: var(--red); }
.hero h1 { margin: 24px 0 22px; font: 900 clamp(76px, 9vw, 150px)/.76 var(--sans); letter-spacing: -.085em; }
.hero h1 em, .section h2 em, .final-cta h2 em { color: var(--red); font-style: normal; }
.hero-lead { margin: 0; color: #c4c4c4; font-size: clamp(12px, 1.25vw, 16px); line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-width: 196px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 20px; border: 1px solid transparent; font-size: 12px; font-weight: 900; text-decoration: none; }
.button span { font: 500 9px var(--mono); }
.button-primary { color: var(--ink); background: var(--red); box-shadow: 5px 5px 0 var(--white); }
.button-ghost { color: white; border-color: #777; background: rgba(0,0,0,.25); }
.button-light { color: var(--ink); background: var(--white); }

.hero-range { min-height: min(68vh, 700px); border: 1px solid rgba(255,255,255,.18); background: radial-gradient(circle at 55% 42%,rgba(255,79,55,.18),transparent 30%),rgba(5,5,5,.42); box-shadow: 16px 16px 0 rgba(0,0,0,.32); overflow: hidden; }
.range-label { position: absolute; z-index: 4; top: 20px; left: 22px; font: 500 9px var(--mono); letter-spacing: .13em; }
.live-dot { width: 7px; height: 7px; display: inline-block; margin-right: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(255,79,55,.15); }
.sight { position: absolute; border: 2px solid rgba(255,255,255,.45); border-radius: 50%; }
.sight::before, .sight::after { content: ""; position: absolute; background: rgba(255,255,255,.55); }
.sight::before { width: 140%; height: 1px; left: -20%; top: 50%; }
.sight::after { width: 1px; height: 140%; left: 50%; top: -20%; }
.sight i { position: absolute; inset: 17%; border: 1px solid rgba(255,79,55,.8); border-radius: 50%; }
.sight i:last-child { inset: 40%; background: var(--red); border: 0; }
.sight-large { width: clamp(260px, 30vw, 480px); aspect-ratio: 1; right: -5%; top: 8%; }
.sight-small { width: 130px; aspect-ratio: 1; left: 8%; bottom: 8%; opacity: .45; }
.hero-target { position: absolute; z-index: 2; object-fit: contain; filter: drop-shadow(0 16px 12px rgba(0,0,0,.7)); animation: hover-target 2.6s ease-in-out infinite alternate; }
.hero-target-one { width: 31%; right: 15%; top: 24%; }
.hero-target-two { width: 18%; left: 13%; bottom: 17%; animation-delay: -.8s; }
.hero-target-three { width: 16%; right: 8%; bottom: 8%; animation-delay: -1.7s; }
@keyframes hover-target { to { translate: 0 -10px; rotate: 3deg; } }
.range-score { position: absolute; z-index: 3; top: 23%; left: 7%; padding-left: 14px; border-left: 3px solid var(--red); }
.range-score small { display: block; color: #aaa; font: 9px var(--mono); letter-spacing: .12em; }
.range-score strong { color: var(--red); font: 500 clamp(26px,3vw,46px) var(--mono); }
.range-caption { position: absolute; z-index: 3; left: 7%; bottom: 7%; margin: 0; color: #777; font: 500 clamp(13px,1.3vw,20px)/1.4 var(--mono); letter-spacing: .05em; }
.scroll-cue { position: absolute; z-index: 3; left: clamp(24px,6vw,96px); bottom: 22px; display: flex; align-items: center; gap: 14px; color: #777; font: 8px var(--mono); letter-spacing: .15em; }
.scroll-cue i { width: 54px; height: 1px; display: block; background: linear-gradient(90deg,var(--red),transparent); }

.signal-strip { overflow: hidden; padding: 14px 0; color: var(--ink); background: var(--red); transform: rotate(-1deg) scale(1.02); }
.signal-strip div { width: max-content; font: 500 12px var(--mono); letter-spacing: .14em; white-space: nowrap; animation: ticker 22s linear infinite; }
.signal-strip b { margin: 0 18px; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: clamp(90px, 11vw, 170px) 0; }
.mission { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px,9vw,150px); align-items: start; }
.section-heading h2, .rules-copy h2 { margin: 24px 0 0; font-size: clamp(52px,7vw,102px); line-height: .93; letter-spacing: -.065em; }
.mission-copy { padding-top: 58px; }
.mission-copy .lead { color: var(--ink); font-size: clamp(19px,2vw,29px); font-weight: 700; line-height: 1.65; }
.mission-copy > p:not(.lead) { color: var(--muted); font-size: 14px; line-height: 2.1; }
.mission-spec { margin: 44px 0 0; border-top: 2px solid var(--ink); }
.mission-spec div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.mission-spec dt { color: var(--red); font: 500 9px var(--mono); letter-spacing: .1em; }
.mission-spec dd { margin: 0; font: 500 11px var(--mono); }

.flow { width: 100%; padding-inline: clamp(24px,6vw,96px); color: white; background: var(--ink); }
.section-kicker { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 60px; }
.section-kicker h2 { margin: 0; text-align: right; font-size: clamp(44px,6vw,84px); line-height: .9; letter-spacing: -.06em; }
.section-kicker h2 em { color: var(--red); font-style: normal; }
.step-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid #4a4a4a; border-left: 1px solid #4a4a4a; }
.step-card { position: relative; min-height: 430px; padding: 28px; border-right: 1px solid #4a4a4a; border-bottom: 1px solid #4a4a4a; overflow: hidden; }
.step-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -72px; bottom: -72px; border-radius: 50%; background: var(--red); opacity: 0; transition: .25s; }
.step-card:hover::after { opacity: 1; transform: scale(1.6); }
.step-number { color: #777; font: 500 10px var(--mono); }
.step-icon { width: 78px; height: 78px; display: grid; place-items: center; margin: 52px 0 40px; color: var(--red); }
.step-icon svg { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.target-icon { position: relative; border: 2px solid var(--red); border-radius: 50%; }
.target-icon::before, .target-icon::after { content: ""; position: absolute; background: var(--red); }
.target-icon::before { width: 110%; height: 2px; }
.target-icon::after { width: 2px; height: 110%; }
.target-icon span { width: 26px; height: 26px; border: 2px solid var(--red); border-radius: 50%; }
.step-label { color: #777; font: 500 8px var(--mono); letter-spacing: .15em; }
.step-card h3 { margin: 8px 0 14px; font-size: 32px; }
.step-card > p:last-child { position: relative; z-index: 1; color: #aaa; font-size: 12px; line-height: 1.9; }

.rules { display: grid; grid-template-columns: minmax(360px,.85fr) 1.15fr; gap: clamp(50px,10vw,150px); align-items: center; }
.rules-visual { position: relative; min-height: 620px; display: grid; place-items: center; overflow: hidden; color: white; background-color: #242424; background-image: linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px); background-size: 32px 32px; box-shadow: 12px 12px 0 var(--ink); }
.rule-target { position: relative; width: min(78%,420px); aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 25px solid var(--red); border-radius: 50%; background: var(--white); color: var(--ink); box-shadow: 0 0 0 18px var(--blue),0 0 0 35px var(--yellow); }
.rule-target::before, .rule-target::after { content: ""; position: absolute; z-index: 4; background: var(--ink); }
.rule-target::before { width: 125%; height: 3px; }
.rule-target::after { width: 3px; height: 125%; }
.rule-target strong, .rule-target small { position: relative; z-index: 5; }
.rule-target strong { font: 500 clamp(52px,7vw,92px)/1 var(--mono); }
.rule-target small { font: 500 9px var(--mono); letter-spacing: .12em; }
.coordinate { position: absolute; color: #777; font: 8px var(--mono); letter-spacing: .1em; }
.coordinate-a { top: 18px; left: 20px; }
.coordinate-b { right: 18px; bottom: 18px; color: var(--red); }
.rules-copy h2 { font-size: clamp(48px,6vw,84px); }
.rule-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin: 42px 0; background: var(--line); border: 1px solid var(--line); }
.rule-list div { padding: 20px 14px; background: var(--paper); }
.rule-list strong { display: block; font: 500 clamp(22px,2.5vw,38px) var(--mono); }
.rule-list span { display: block; margin-top: 8px; color: var(--muted); font: 8px/1.5 var(--mono); letter-spacing: .12em; }
.rules-copy ul { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.rules-copy li { display: grid; grid-template-columns: 42px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.rules-copy li span { color: var(--red); font: 500 9px var(--mono); }

.tips { border-top: 1px solid var(--line); }
.tips .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 60px; }
.tips .section-heading h2 { text-align: right; }
.tips-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.tip { position: relative; min-height: 220px; padding: 34px; border: 1px solid var(--line); background: var(--white); }
.tip > span { color: var(--red); font: 500 9px var(--mono); letter-spacing: .14em; }
.tip h3 { margin: 35px 0 10px; font-size: 21px; }
.tip p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.tip::after { content: "+"; position: absolute; right: 18px; top: 14px; color: var(--line); font: 30px var(--mono); }

.final-cta { position: relative; min-height: 670px; display: grid; place-items: center; overflow: hidden; padding: 90px 24px; color: white; text-align: center; background: #111; }
.final-cta::before { content: ""; position: absolute; inset: 0; opacity: .25; background: url('/base/static/images/game-bg.jpg') center / cover; }
.final-splat { position: absolute; width: min(62vw,760px); aspect-ratio: 1; background: var(--red); clip-path: polygon(48% 0,57% 25%,76% 9%,75% 31%,100% 40%,79% 53%,91% 74%,67% 70%,55% 100%,43% 76%,17% 91%,25% 63%,0 51%,22% 39%,8% 17%,39% 28%); opacity: .92; transform: rotate(-8deg); }
.final-content { position: relative; z-index: 2; }
.final-cta h2 { margin: 28px 0 20px; font: 900 clamp(62px,10vw,148px)/.75 var(--sans); letter-spacing: -.08em; text-shadow: 4px 4px 0 rgba(0,0,0,.25); }
.final-cta h2 em { color: var(--white); }
.final-cta p:not(.eyebrow) { font-size: 13px; }
.hero-actions.centered { justify-content: center; }

footer { min-height: 130px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 24px clamp(20px,5vw,70px); color: white; background: var(--ink); border-top: 1px solid #3a3a3a; }
footer p { color: #777; font: 8px var(--mono); letter-spacing: .15em; }
.manual-end { justify-self: end; color: #aaa; font: 9px var(--mono); }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease,transform .65s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .manual-header { grid-template-columns: 1fr auto; }
  .header-section { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 140px; }
  .hero-copy { max-width: 700px; }
  .hero-range { min-height: 610px; }
  .step-grid { grid-template-columns: repeat(2,1fr); }
  .rules { grid-template-columns: 1fr; }
  .rules-visual { min-height: 560px; }
}

@media (max-width: 680px) {
  .manual-header { height: 64px; padding: 0 12px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand b { font-size: 12px; }
  .brand small { display: none; }
  .header-cta { padding: 10px 11px; font-size: 8px; }
  .header-cta span { margin-left: 5px; }
  .hero { display: block; min-height: auto; padding: 112px 18px 74px; }
  .hero h1 { font-size: clamp(68px,25vw,112px); }
  .hero-lead br { display: none; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-range { min-height: 440px; margin-top: 60px; }
  .hero-target-one { width: 45%; right: 8%; top: 24%; }
  .hero-target-two { width: 25%; }
  .hero-target-three { width: 22%; }
  .range-score { top: 15%; }
  .scroll-cue { display: none; }
  .signal-strip { padding: 11px 0; }
  .section { width: calc(100% - 32px); padding: 84px 0; }
  .mission { display: block; }
  .section-heading h2, .rules-copy h2 { font-size: 50px; }
  .mission-copy { padding-top: 30px; }
  .mission-spec div { grid-template-columns: 80px 1fr; }
  .flow { width: 100%; padding-inline: 16px; }
  .section-kicker, .tips .section-heading { display: block; }
  .section-kicker h2, .tips .section-heading h2 { margin-top: 28px; text-align: left; }
  .step-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 360px; }
  .step-icon { margin-block: 38px 28px; }
  .rules-visual { min-height: 420px; }
  .rule-target { border-width: 17px; box-shadow: 0 0 0 12px var(--blue),0 0 0 23px var(--yellow); }
  .rule-list { grid-template-columns: 1fr; }
  .rule-list div { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .rule-list span { margin: 0; text-align: right; }
  .tips-grid { grid-template-columns: 1fr; }
  .tip { min-height: 190px; }
  .final-cta { min-height: 600px; }
  .final-cta h2 { font-size: clamp(58px,20vw,90px); }
  footer { grid-template-columns: 1fr auto; }
  footer p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
