/* Blade Surge landing (Night Shrine): ink night, blade cyan, torii red. Pixel display type, Japanese sans body. */
@font-face { font-family: "Pixelify Sans"; src: url(assets/fonts/pixelify-sans.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url(assets/fonts/zen-kaku-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url(assets/fonts/zen-kaku-700.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  color-scheme: dark;
  --ink: #0d0c14;
  --ink-2: #16141f;
  --ink-3: #1f1c2b;
  --line: #2b2838;
  --fg: #e9e4f2;
  --muted: #a39cb8;
  --paper: #f5ead2;
  --blade: #7fd8ff;
  --blade-deep: #05121c;
  --vermilion: #e0503c;
  --gold: #ffd56a;
  --f-display: "Pixelify Sans", "Silkscreen", ui-monospace, monospace;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --gutter: max(16px, 4vw);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--ink); color: var(--fg); font-family: var(--f-body); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; }
.px { image-rendering: pixelated; }
a { color: var(--blade); }
:focus-visible { outline: 2px solid var(--blade); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .86em; background: #ffffff12; padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
.sec-title { font-family: var(--f-display); font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; letter-spacing: .02em; }
.sec-title::before { content: ""; display: inline-block; width: 12px; height: 12px; background: var(--vermilion); margin-right: 14px; vertical-align: .18em; transform: rotate(45deg); }
.lede { color: var(--muted); max-width: 62ch; }

/* ---------- nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 24px; padding: 10px var(--gutter); background: #0d0c14d9; backdrop-filter: blur(8px); border-bottom: 1px solid #ffffff10; }
.nav-logo img { height: 26px; width: auto; display: block; }
.nav nav { display: flex; gap: 22px; margin-left: auto; font-family: var(--f-display); font-size: 15px; }
.nav nav a { color: var(--fg); text-decoration: none; }
.nav nav a:hover { color: var(--blade); }
.nav-build { font-family: var(--f-display); font-size: 13px; color: var(--muted); letter-spacing: .08em; white-space: nowrap; }
@media (max-width: 760px) { .nav nav { display: none; } .nav-build { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: min(78vh, 760px); display: flex; align-items: center; background: #221d4a; cursor: crosshair; }
.layers, .layer, .dark { position: absolute; inset: 0; }
.layer { background-repeat: repeat-x; image-rendering: pixelated; will-change: transform; inset: -3% -3%; }
.layer.sky { background: #221d4a url(assets/shrine_sky.png) center / cover no-repeat; }
.layer.far { background-image: url(assets/shrine_mountains_far.png); background-position: center bottom 15%; background-size: auto 34%; }
.layer.near { background-image: url(assets/shrine_mountains_near.png); background-position: center bottom 8%; background-size: auto 26%; }
.layer.cback { background-image: url(assets/shrine_clouds_back.png); background-position: center bottom 4%; background-size: auto 22%; }
.layer.cfront { background-image: url(assets/shrine_clouds_front.png); background-position: center bottom -6%; background-size: auto 30%; opacity: .9; }
.dark { background: radial-gradient(circle var(--r, 240px) at var(--mx, 70%) var(--my, 55%), #05040c00 0, #05040c99 60%, #05040cd9 100%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1120px; margin: 0 auto; padding: 64px var(--gutter); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; }
.hero h1 { font-size: 0; }
.hero .logo { width: 100%; max-width: 560px; height: auto; filter: drop-shadow(0 0 22px #ff3b3b55); }
.tagline { font-family: var(--f-display); color: var(--paper); letter-spacing: .07em; font-size: clamp(13px, 1.6vw, 17px); margin: 14px 0 0; }
.pitch { max-width: 46ch; color: #d9d3e8; margin: 18px 0 0; text-shadow: 0 1px 2px #000; }
.cta { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.btn { display: inline-block; font-family: var(--f-display); font-weight: 700; font-size: clamp(16px, 2vw, 21px); letter-spacing: .03em; background: var(--blade); color: var(--blade-deep); text-decoration: none; padding: 14px 24px; border-radius: 3px; box-shadow: 0 0 0 2px var(--blade-deep), 0 0 0 4px var(--blade), 0 0 32px #7fd8ff99; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--blade-deep), 0 0 0 4px var(--blade), 0 0 46px #7fd8ffcc; }
.cta-sub { margin: 0; font-family: var(--f-display); font-size: 14px; color: #cfc8e6; }
.cta-sub a { color: var(--blade); }
.hero-ninja { justify-self: center; width: 432px; height: 432px; max-width: 100%; --sw: 3456px; --n: 8; background-image: url(assets/ember_idle.png); filter: drop-shadow(0 0 26px #7fd8ff55); }
.hero-build { position: absolute; z-index: 2; right: var(--gutter); bottom: 14px; font-family: var(--f-display); font-size: 13px; letter-spacing: .08em; color: #ffffff8c; }
.sprite { background-repeat: no-repeat; background-size: var(--sw) 100%; animation: sprite 1.33s steps(var(--n)) infinite; image-rendering: pixelated; }
@keyframes sprite { to { background-position: calc(var(--sw) * -1) 0; } }
@media (max-width: 820px) {
  .hero { min-height: 0; cursor: auto; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 40px 56px; gap: 8px; }
  .hero-ninja { order: -1; width: 216px; height: 216px; --sw: 1728px; justify-self: start; margin: -20px 0 -30px -40px; }
}

/* ---------- gameplay strip ---------- */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #08070e; }
.strip figure { margin: 0; position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.strip figure:hover img { transform: scale(1.04); }
.strip figcaption { position: absolute; inset: auto 0 0; padding: 40px 18px 16px; background: linear-gradient(#0000, #000d); font-family: var(--f-display); font-size: 18px; }
@media (max-width: 720px) { .strip { grid-template-columns: 1fr; } .strip figure { aspect-ratio: 4 / 3; } }

/* ---------- features ---------- */
.features { padding-block: 88px 24px; }
.feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 56px; margin-top: 36px; }
.feat-grid h3 { font-family: var(--f-display); font-size: 22px; color: var(--blade); font-weight: 600; }
.feat-grid p { margin: 8px 0 0; color: #cdc7dc; max-width: 52ch; }
@media (max-width: 720px) { .feat-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- phases ---------- */
.phases { padding-block: 72px 24px; }
.phase-row { list-style: none; margin: 28px 0 0; padding: 0 var(--gutter) 16px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-color: var(--vermilion) var(--ink-2); }
.phase-row li { position: relative; scroll-snap-align: start; border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 9; }
.phase-row img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phase-row .kanji { position: absolute; top: 10px; left: 10px; writing-mode: vertical-rl; font-weight: 700; font-size: 17px; letter-spacing: .08em; line-height: 1; color: #fff; text-shadow: 0 2px 0 #000, 0 0 8px #000; }
.phase-row .pn { position: absolute; inset: auto 0 0; padding: 22px 12px 8px; font-family: var(--f-display); font-size: 15px; background: linear-gradient(#0000, #000c); }

/* ---------- download ---------- */
.download { padding-block: 88px 24px; }
.os-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.os { background: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.os.mine { border-color: var(--blade); box-shadow: 0 0 0 1px var(--blade), 0 0 34px #7fd8ff22; }
.os h3 { font-family: var(--f-display); font-size: 24px; }
.os.mine h3::after { content: "your system"; font-family: var(--f-body); font-size: 12px; color: var(--blade); border: 1px solid var(--blade); border-radius: 99px; padding: 1px 8px; margin-left: 10px; vertical-align: .3em; }
.os .req { margin: 0; color: var(--muted); font-size: 15px; min-height: 3.2em; }
.btn-os { display: block; text-align: center; font-family: var(--f-display); font-weight: 700; font-size: 17px; padding: 11px 14px; border-radius: 3px; text-decoration: none; background: var(--ink-3); color: var(--fg); border: 1px solid var(--line); }
.btn-os:hover { border-color: var(--blade); }
.os.mine .btn-os { background: var(--blade); color: var(--blade-deep); border-color: var(--blade); }
.btn-os[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.os .meta { margin: 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.os .meta code { font-size: 11.5px; }
.os .how { margin: 4px 0 0; font-size: 15px; color: #cdc7dc; }
.fine { color: var(--muted); font-size: 15px; margin-top: 22px; max-width: 80ch; }
@media (max-width: 860px) { .os-grid { grid-template-columns: 1fr; } }

/* ---------- changelog ---------- */
.changelog { padding-block: 72px 24px; }
.log { margin-top: 22px; border-left: 2px solid var(--line); padding-left: 22px; }
.log h3 { font-family: var(--f-display); font-size: 20px; }
.log h3 span { color: var(--muted); font-size: 15px; font-weight: 400; margin-left: 10px; }
.log ul { margin: 10px 0 0; padding-left: 18px; color: #cdc7dc; max-width: 80ch; }
.log li + li { margin-top: 4px; }

/* ---------- faq ---------- */
.faq { padding-block: 72px 96px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 80ch; }
.faq details:first-of-type { margin-top: 18px; border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-display); color: var(--blade); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: #cdc7dc; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: #09080f; padding-block: 36px 48px; color: var(--muted); font-size: 14px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.foot-inner img { height: 22px; width: auto; }
.foot-inner p { margin: 0; }
.foot-build { margin-left: auto !important; font-family: var(--f-display); letter-spacing: .05em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sprite { animation: none; }
  .layer { transform: none !important; }
  .strip img, .btn { transition: none; }
}
@media (hover: none), (max-width: 820px) { .dark { --r: 70vmax; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
