:root {
  --ink: #0b0b0e;
  --ink-2: #121217;
  --ink-3: #1a1a21;
  --line: rgba(236, 234, 228, .12);
  --paper: #ecebe6;
  --muted: #9a9aa3;
  --dim: #6c6c75;
  --accent: #b8f53c;
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --display: "Syncopate", "Zen Kaku Gothic New", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 16px/1.85 var(--sans);
  letter-spacing: .02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { letter-spacing: 0; line-height: 1.7; }
/* fine film grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--paper); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }
.serif { font-family: var(--serif); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(11, 11, 14, .78); backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-brand { font: 700 15px/1 var(--display); letter-spacing: .32em; text-decoration: none; }
.nav-brand span { color: var(--muted); }
.nav-links { display: flex; gap: clamp(14px, 2.6vw, 34px); align-items: center; }
.nav-links a { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--paper); }
.nav-lang { border: 1px solid var(--line); padding: 6px 12px; border-radius: 99px; text-transform: none !important; letter-spacing: .04em !important; }
@media (max-width: 640px) {
  .nav-links a:not(.nav-lang) { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; overflow: hidden; isolation: isolate; }
.hero-stage, .hero-veil { position: absolute; inset: 0; z-index: -1; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero-slide.is-active { opacity: 1; }
.hero-slide.is-active img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.08) translate3d(0, 0, 0); } to { transform: scale(1.18) translate3d(-1.5%, -1%, 0); } }
.hero-veil {
  background:
    linear-gradient(90deg, rgba(11, 11, 14, .88) 0%, rgba(11, 11, 14, .62) 45%, rgba(11, 11, 14, .25) 100%),
    linear-gradient(to bottom, rgba(11, 11, 14, .6), rgba(11, 11, 14, 0) 30%, rgba(11, 11, 14, .9) 88%, var(--ink));
}
.hero-inner { min-width: 0; align-self: center; padding-top: 120px; padding-bottom: 40px; }
.kicker { font-size: 12px; letter-spacing: .38em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.hero-title { margin: 0; line-height: .9; }
.wordmark { display: block; font: 700 clamp(28px, 8.6vw, 150px)/.92 var(--display); letter-spacing: .08em; white-space: nowrap; }
.wordmark span { -webkit-text-stroke: 1.5px var(--paper); color: transparent; }
.hero-line { font: 700 clamp(22px, 3.2vw, 40px)/1.45 var(--serif); margin: 34px 0 14px; letter-spacing: .06em; }
html[lang="en"] .hero-line { letter-spacing: .01em; }
.hero-sub { max-width: 34em; color: rgba(236, 234, 228, .78); margin: 0; }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 34px; }
.hero-now { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.hero-now-k { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); }
.hero-now-v { font: 700 18px/1.4 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { width: 28px; height: 3px; padding: 0; border: 0; background: rgba(236, 234, 228, .22); cursor: pointer; position: relative; overflow: hidden; }
.hero-dot.is-active::after { content: ""; position: absolute; inset: 0; background: var(--paper); transform-origin: left; animation: dot 7s linear forwards; }
@keyframes dot { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.scroll-cue { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); writing-mode: vertical-rl; position: relative; padding-bottom: 46px; }
.scroll-cue::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 1px; height: 38px; background: linear-gradient(var(--paper), transparent); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 640px) { .scroll-cue { display: none; } .hero-dot { width: 18px; } }

/* ---------- sections ---------- */
section { position: relative; }
.game, .free, .articles, .about { padding: clamp(80px, 12vw, 160px) 0; }
.sec-head { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-label { font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--accent); margin: 0; white-space: nowrap; }
.sec-rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.sec-title { font-size: clamp(30px, 4.6vw, 56px); line-height: 1.25; margin: 0 0 14px; font-weight: 800; letter-spacing: .04em; }
.sec-lead { color: var(--muted); margin: 0 0 clamp(36px, 5vw, 60px); }

.game { --accent: #fff; }
.game::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 85% 20%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%);
}
.feature-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature-grid--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature-grid--rev .feature-copy { order: 2; }
@media (max-width: 900px) {
  .feature-grid, .feature-grid--rev { grid-template-columns: 1fr; }
  .feature-grid--rev .feature-copy { order: 0; }
}
.bv-wordmark { font: 700 clamp(38px, 5.4vw, 68px)/1 var(--display); letter-spacing: .06em; margin: 0 0 22px; text-shadow: 0 0 40px color-mix(in srgb, var(--accent) 45%, transparent); }
.bv-wordmark span { color: var(--accent); }
.game-logo { width: min(340px, 80%); margin: 0 0 18px; filter: drop-shadow(0 6px 30px color-mix(in srgb, var(--accent) 35%, transparent)); }
.game-title { font-size: clamp(34px, 5vw, 60px); line-height: 1.15; margin: 0 0 18px; font-weight: 800; letter-spacing: .06em; }
.game-title small { display: block; font-size: .36em; letter-spacing: .3em; color: var(--accent); margin-top: 10px; font-weight: 500; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .08em; margin: 0 0 10px; padding: 6px 14px 6px 12px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 99px; color: var(--accent); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.genre { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 6px 0 16px; }
.lead { font-size: clamp(18px, 1.9vw, 22px); line-height: 1.7; margin: 0 0 16px; font-weight: 500; }
.lead.serif { font-weight: 700; }
.body { color: rgba(236, 234, 228, .74); margin: 0 0 24px; }
.facts { display: flex; gap: clamp(20px, 3vw, 40px); margin: 0 0 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact b { display: block; font: 700 clamp(30px, 3.4vw, 42px)/1 var(--display); color: var(--accent); }
.fact span { font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.features { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.features li { font-size: 13px; padding: 6px 12px; background: var(--ink-3); border: 1px solid var(--line); border-radius: 4px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-decoration: none; border-radius: 4px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--accent { background: var(--accent); color: var(--ink); box-shadow: 0 10px 40px -12px var(--accent); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px var(--accent); }
.btn--ghost { border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--paper); }

.video-frame { position: relative; border-radius: 6px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: 0 40px 100px -40px color-mix(in srgb, var(--accent) 45%, #000), 0 0 0 1px var(--line); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

.shots { display: flex; gap: 14px; margin-top: clamp(40px, 6vw, 72px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent; }
.shot { flex: 0 0 clamp(240px, 30vw, 380px); padding: 0; border: 0; background: none; cursor: zoom-in; scroll-snap-align: start; border-radius: 4px; overflow: hidden; position: relative; }
.shot img { aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease), filter .4s; filter: saturate(.85) brightness(.9); }
.shot:hover img, .shot:focus-visible img { transform: scale(1.05); filter: none; }

/* Arcana banner */
.game--coming { padding-top: 0; }
.banner { position: relative; height: clamp(260px, 42vw, 560px); overflow: hidden; margin-bottom: clamp(60px, 8vw, 110px); }
.banner > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.banner-veil { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--ink), transparent 25%, transparent 55%, var(--ink)); }
.banner-logo { position: absolute; left: 50%; bottom: 4%; width: min(560px, 70vw); transform: translateX(-50%); filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .8)); }

/* ---------- free games ---------- */
.free { background: linear-gradient(to bottom, var(--ink), var(--ink-2) 20%, var(--ink-2) 80%, var(--ink)); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }
.card { --accent: #fff; background: var(--ink); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: transform .45s var(--ease), border-color .45s, box-shadow .45s; scroll-margin-top: 90px; }
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--accent) 60%, transparent); }
.card-media { aspect-ratio: 16 / 9; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: clamp(20px, 2.6vw, 30px); display: flex; flex-direction: column; flex: 1; }
.card-body .genre { color: var(--accent); margin: 0 0 8px; }
.card-title { font: 800 clamp(24px, 2.4vw, 30px)/1.3 var(--serif); margin: 0; letter-spacing: .04em; }
.card-kana { font-size: 12px; color: var(--dim); margin: 2px 0 14px; letter-spacing: .1em; }
.card-desc { color: rgba(236, 234, 228, .74); font-size: 15px; margin: 0 0 20px; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12px; letter-spacing: .04em; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; display: inline-flex; gap: 6px; transition: background .2s, color .2s, border-color .2s; }
a.chip:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.chip--muted { color: var(--muted); }
.yt { margin-top: 14px; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; color: var(--muted); }
.yt:hover { color: var(--paper); }
.yt-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: #e3342f; color: #fff; }
.yt-embed { aspect-ratio: 16 / 9; width: 100%; border: 0; display: block; }

/* ---------- articles ---------- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.article { text-decoration: none; display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--ink-2); transition: transform .4s var(--ease); }
.article:hover { transform: translateY(-4px); }
.article-media img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.article h3 { font-size: 16px; line-height: 1.6; margin: 16px 18px 6px; }
.article-src { display: block; margin: 0 18px 16px; font-size: 12px; color: var(--muted); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(36px, 6vw, 90px); align-items: end; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about { --accent: var(--paper); }
.about-body p { margin: 0 0 1em; color: rgba(236, 234, 228, .8); max-width: 36em; }
.avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 28px; box-shadow: 0 0 0 1px var(--line), 0 20px 60px -20px #000; }
.about-side .sec-label { color: var(--muted); margin-bottom: 14px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-size: 14px; transition: background .2s, color .2s; }
.social svg { width: 17px; height: 17px; fill: currentColor; }
.social:hover { background: var(--paper); color: var(--ink); }
.socials--small .social { padding: 8px; border-radius: 50%; }
.socials--small .social span { display: none; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot small { color: var(--dim); font-size: 12px; }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(5, 5, 7, .92); backdrop-filter: blur(6px); }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 4px; }
.lightbox-close { position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: rgba(11, 11, 14, .7); color: var(--paper); font-size: 24px; cursor: pointer; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
