:root {
  --bg: oklch(95.8% .018 82);
  --card: oklch(98.6% .009 85);
  --card-2: oklch(93.6% .022 80);
  --well: oklch(90% .028 78);
  --ink: oklch(23% .016 50);
  --muted: oklch(41% .02 55);
  --faint: oklch(53% .022 60);
  --seal: oklch(49% .165 30);
  --seal-2: oklch(43% .16 30);
  --gold: oklch(56% .11 72);
  --on-seal: oklch(97% .012 82);
  --dark: oklch(19% .014 48);
  --on-dark: oklch(95% .014 82);
  --line: oklch(84% .035 72);
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 2px oklch(30% .03 60 / .05), 0 10px 30px -8px oklch(30% .04 60 / .14);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --space-xs: .25rem;
  --space-sm: .5rem;
  --space-md: .75rem;
  --space-lg: 1rem;
  --space-xl: 1.5rem;
  --space-2xl: 2rem;
  --space-3xl: 3rem;
  --space-4xl: 4rem;
  --space-5xl: 6rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.shell { width: min(100% - 2rem, 1180px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 50; top: .5rem; left: .5rem; padding: .7rem 1rem; background: var(--dark); color: var(--on-dark); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { background: color-mix(in oklch, var(--card) 92%, transparent); border-bottom: 1px solid var(--line); }
.network-nav { display: flex; gap: var(--xl, 1.5rem); padding-block: .55rem; overflow-x: auto; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; scrollbar-width: thin; }
.network-nav a, .page-nav a { text-decoration: none; }
.network-nav a:hover, .page-nav a:hover, .footer-grid a:hover { color: var(--seal-2); }
.main-nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--serif); font-size: 1.15rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand span { display: grid; width: 2.15rem; aspect-ratio: 1; place-items: center; border-radius: 50%; background: var(--seal); color: var(--on-seal); font-size: 1.1rem; line-height: 1; transform: rotate(-4deg); }
.page-nav { display: flex; justify-content: flex-end; gap: clamp(.9rem, 2.5vw, 2rem); font-size: .88rem; font-weight: 650; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .72rem 1.15rem; border: 1px solid transparent; border-radius: var(--r-sm); font-weight: 750; line-height: 1.2; text-align: center; text-decoration: none; transition: transform .22s var(--ease-out), background-color .22s var(--ease-out), border-color .22s var(--ease-out); }
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 44px; padding-inline: 1.25rem; text-transform: uppercase; }
.button-primary { background: var(--seal); color: var(--on-seal); box-shadow: 0 7px 18px -10px var(--seal-2); }
.button-primary:hover { background: var(--seal-2); }
.button-secondary { border-color: var(--ink); background: transparent; color: var(--ink); }
.button-secondary:hover { background: var(--card); }

.leaderboard-bar { background: var(--dark); color: var(--on-dark); }
.leaderboard-inner { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: var(--space-lg); padding-block: .7rem; }
.leaderboard-inner p { margin: 0; font-size: .85rem; }
.leaderboard-inner a { flex: none; color: var(--on-dark); font-size: .83rem; font-weight: 750; }

.hero { display: grid; grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr); align-items: center; gap: clamp(2.5rem, 6vw, 6rem); min-height: 690px; padding-block: clamp(4rem, 8vw, 7rem); }
.eyebrow { margin: 0 0 var(--space-md); color: var(--seal-2); font-size: .73rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 650; letter-spacing: -.035em; line-height: 1.06; }
h1 { font-size: clamp(4rem, 10vw, 7.3rem); }
h2 { max-width: 16ch; font-size: clamp(2.35rem, 5vw, 4.25rem); }
h3 { font-family: var(--serif); line-height: 1.2; }
.hero-kicker { margin: .6rem 0 1.1rem; font-family: var(--serif); font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 650; }
.hero-text { max-width: 53ch; margin: 0; color: var(--muted); font-size: 1.05rem; }
.hero-actions { display: grid; gap: var(--space-lg); margin-top: var(--space-2xl); }
.action-group { display: grid; justify-items: start; gap: .4rem; }
.action-group small { max-width: 60ch; color: var(--faint); font-size: .75rem; line-height: 1.45; }
.install-note { margin: 1rem 0 0; color: var(--muted); font-size: .82rem; }
.fact-line { display: flex; flex-wrap: wrap; gap: .55rem 1.4rem; margin: 2rem 0 0; padding: 0; color: var(--muted); font-size: .82rem; font-weight: 700; list-style: none; }
.fact-line li:not(:last-child)::after { content: "·"; position: relative; left: .7rem; color: var(--gold); }
.hero-art { position: relative; margin: 0; }
.hero-art::before { content: "鬼"; position: absolute; z-index: -1; top: -4.8rem; right: -1rem; color: var(--well); font-family: var(--serif); font-size: clamp(9rem, 20vw, 17rem); line-height: 1; }
.hero-art img { width: 100%; border: 1px solid color-mix(in oklch, var(--line) 80%, transparent); border-radius: var(--r-lg); box-shadow: var(--shadow); object-fit: cover; }
.hero-art figcaption { position: absolute; right: 1rem; bottom: -1.1rem; padding: .65rem .9rem; border-radius: var(--r-sm); background: var(--dark); color: var(--on-dark); font-family: var(--serif); font-size: .85rem; }

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section-heading { display: grid; gap: 0; }
.section-heading > p:last-child { max-width: 55ch; margin: 1.2rem 0 0; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 4rem); margin: clamp(2.75rem, 6vw, 5rem) 0 0; padding: 0; list-style: none; counter-reset: steps; }
.steps li { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.steps span { color: var(--seal); font-family: var(--serif); font-size: 1.4rem; }
.steps h3 { margin: 1rem 0 .55rem; font-size: 1.35rem; }
.steps p { margin: 0; color: var(--muted); }
.game-details { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 6vw, 6rem); margin-top: clamp(3rem, 7vw, 6rem); padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--r-lg); background: var(--card-2); }
.game-details h3 { margin: 0 0 .7rem; font-size: 1.45rem; }
.game-details p { max-width: 62ch; margin: 0; color: var(--muted); }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1rem; margin: 0 0 .8rem; }
.controls div { display: flex; justify-content: space-between; gap: .8rem; border-bottom: 1px solid var(--line); }
.controls dt { font-weight: 750; }
.controls dd { margin: 0; color: var(--muted); }

.worlds-section { background: var(--dark); color: var(--on-dark); }
.worlds-section .eyebrow { color: oklch(76% .09 72); }
.world-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); margin-top: clamp(2.75rem, 6vw, 5rem); }
.world-card { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(180px, .88fr); min-height: 260px; overflow: hidden; border: 1px solid oklch(35% .018 55); border-radius: var(--r-md); background: oklch(23% .017 50); }
.world-card img { width: 100%; height: 100%; object-fit: cover; }
.world-copy { align-self: center; padding: clamp(1.15rem, 3vw, 2rem); }
.world-count { margin: 0; color: oklch(76% .09 72); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.world-copy h3 { margin: .45rem 0 .7rem; font-size: clamp(1.45rem, 2.5vw, 2rem); }
.world-copy p:last-child { margin: 0; color: oklch(80% .014 72); font-size: .9rem; }

.shop-heading { display: flex; align-items: end; justify-content: space-between; gap: var(--space-xl); }
.text-link { color: var(--seal-2); font-weight: 750; }
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); margin-top: clamp(2.75rem, 6vw, 5rem); }
.product-card { display: flex; min-height: 280px; flex-direction: column; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.product-card.featured { grid-column: span 2; background: var(--dark); color: var(--on-dark); box-shadow: var(--shadow); }
.product-top { display: flex; align-items: center; justify-content: space-between; }
.tag { padding: .2rem .55rem; border-radius: 99px; background: var(--seal); color: var(--on-seal); font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.old-price { color: oklch(73% .014 72); font-size: .85rem; text-decoration: line-through; }
.product-kind { margin: 0; color: var(--faint); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-card h3 { margin: 1rem 0 .55rem; font-size: 1.4rem; }
.product-card p:not(.product-kind) { margin: 0 0 1.2rem; color: var(--muted); font-size: .88rem; }
.product-card.featured p { color: oklch(79% .015 72); }
.product-card .button { margin-top: auto; }
.button-shop { border-color: var(--line); background: var(--card-2); color: var(--ink); }
.button-shop:hover { border-color: var(--gold); background: var(--well); }
.holder-note { margin: 1.25rem 0 0; color: var(--muted); font-size: .82rem; }
.purchase-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 3rem 0 0; padding: 1px; border-radius: var(--r-md); background: var(--line); list-style: none; overflow: hidden; }
.purchase-steps li { display: flex; gap: 1rem; padding: 1.4rem; background: var(--card-2); }
.purchase-steps span { color: var(--seal); font-family: var(--serif); font-size: 1.5rem; }
.purchase-steps strong { font-family: var(--serif); font-size: 1.05rem; }
.purchase-steps p { margin: .2rem 0 0; color: var(--muted); font-size: .8rem; }
.account-note { max-width: 75ch; margin: 1.5rem 0 0; color: var(--muted); }

.faq-section { background: var(--card-2); }
.faq-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(3rem, 8vw, 8rem); }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { min-height: 64px; padding: 1.2rem 2.2rem 1.2rem 0; cursor: pointer; font-family: var(--serif); font-size: 1.08rem; font-weight: 700; }
details p { max-width: 65ch; margin: -.4rem 0 1.4rem; color: var(--muted); }

.site-footer { padding-top: clamp(3rem, 7vw, 5rem); background: var(--dark); color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: clamp(2rem, 6vw, 5rem); }
.footer-brand span { background: var(--seal); }
.footer-grid > div > p { color: oklch(74% .014 72); }
.footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.footer-grid h2 { margin: 0 0 .5rem; color: oklch(74% .014 72); font-family: var(--sans); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid nav a { color: var(--on-dark); font-size: .88rem; text-decoration: none; }
.copyright { margin-top: 3rem; padding-block: 1.3rem; border-top: 1px solid oklch(34% .016 50); color: oklch(72% .014 72); font-size: .75rem; }

.privacy-page main { padding-block: clamp(3rem, 8vw, 6rem); }
.privacy-article { max-width: 820px; }
.privacy-article h1 { font-size: clamp(3rem, 8vw, 5.5rem); }
.privacy-lead { max-width: 65ch; color: var(--muted); font-size: 1.05rem; }
.privacy-notice { margin: 2rem 0 3rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card-2); }
.privacy-article section { margin-top: 3rem; }
.privacy-article h2 { max-width: none; margin-bottom: 1rem; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.privacy-article p, .privacy-article li { max-width: 72ch; color: var(--muted); }

@media (max-width: 980px) {
  .main-nav { grid-template-columns: auto auto; padding-block: .8rem; }
  .page-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; padding-bottom: .25rem; white-space: nowrap; }
  .main-nav > .button { grid-column: 2; grid-row: 1; justify-self: end; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { max-width: 700px; }
  .hero-art { width: min(100%, 760px); }
  .world-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .leaderboard-inner { align-items: flex-start; flex-direction: column; gap: .3rem; }
  .hero { gap: 3.5rem; padding-block: 3.5rem 4.5rem; }
  h1 { font-size: clamp(3.7rem, 19vw, 5.2rem); }
  .hero-actions .button { width: 100%; }
  .hero-art figcaption { right: .7rem; }
  .steps, .game-details, .purchase-steps, .faq-layout, .footer-grid { grid-template-columns: 1fr; }
  .steps { gap: 2rem; }
  .game-details { gap: 2rem; }
  .world-card { grid-template-columns: 1fr; }
  .world-card img { aspect-ratio: 16 / 9; }
  .shop-heading { align-items: flex-start; flex-direction: column; }
  .shop-grid { grid-template-columns: 1fr; }
  .product-card.featured { grid-column: auto; }
  .purchase-steps { gap: 1px; }
  .footer-grid { gap: 2.5rem; }
}

@media (max-width: 420px) {
  .shell { width: min(100% - 2rem, 1180px); }
  .main-nav { gap: .75rem; }
  .brand { font-size: 1rem; }
  .brand span { width: 2rem; }
  .button-small { padding-inline: 1rem; }
  .controls { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.product-art { display: block; width: auto; height: 120px; margin: 0 auto .75rem; image-rendering: pixelated; }
