/* ================================================================
   HAYAO — 侍道
   Design tokens
   Palette   : void black, dried-blood crimson, katana gold, parchment
   Type      : Shippori Mincho (display) / Noto Sans JP (body/UI)
               / JetBrains Mono (HUD numerals)
   Signature : MMORPG boot-sequence loading gate + loot-tier rarity codex
================================================================= */

:root{
  --void:        #0a0605;
  --void-2:      #130c0a;
  --void-3:      #1c1310;
  --line:        rgba(212,175,90,.16);
  --line-strong: rgba(212,175,90,.34);

  --blood:        #4a0f16;
  --blood-bright: #b8222f;
  --blood-glow:   #ff3b45;

  --gold:        #d4af5a;
  --gold-bright: #f2d98c;
  --gold-dim:    #8a6a33;

  --ink:      #efe6d4;
  --ink-dim:  #b7a98f;
  --ink-faint:#7d715f;

  /* loot-tier colors, MMO convention */
  --tier-common:    #9a9488;
  --tier-uncommon:  #4fae63;
  --tier-rare:      #3f8fd6;
  --tier-epic:      #a25fe0;
  --tier-legendary: #e0a63f;

  --font-display: 'Shippori Mincho', serif;
  --font-body:    'Noto Sans JP', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --container: 1180px;
  --radius: 3px;
}

*, *::before, *::after{ box-sizing: border-box; }

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

body{
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading{ overflow: hidden; height: 100%; }

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3{ font-family: var(--font-display); font-weight: 700; margin: 0; color: var(--gold-bright); }
p{ margin: 0 0 1em; }
p:last-child{ margin-bottom: 0; }

.sr-only{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link{
  position: absolute; left: 1rem; top: -60px;
  background: var(--gold); color: var(--void);
  padding: .6em 1em; z-index: 999; border-radius: var(--radius);
  transition: top .2s ease;
  font-family: var(--font-body); font-weight: 600;
}
.skip-link:focus{ top: 1rem; }

:focus-visible{
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* ================================================================
   TEXTURE — faint ambient grain + ember glow, applied to body bg
================================================================= */
body::before{
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 15% -5%, rgba(184,34,47,.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 20%, rgba(212,175,90,.09), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ================================================================
   LOADING SCREEN
================================================================= */
#loading-screen{
  position: fixed; inset: 0;
  z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--void);
  transition: opacity .7s ease, visibility .7s ease;
}
#loading-screen.is-hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-bg{
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 38%, rgba(184,34,47,.22), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(212,175,90,.10), transparent 70%),
    var(--void);
}
.loading-vignette{
  position: absolute; inset: 0;
  box-shadow: inset 0 0 220px 60px #000;
  pointer-events: none;
}

.loading-content{
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 0 1.5rem;
}

.loading-emblem-wrap{
  position: relative;
  width: clamp(140px, 22vw, 220px);
  height: clamp(140px, 22vw, 220px);
  margin-bottom: 1.6rem;
}
.loading-emblem{
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 26px rgba(184,34,47,.45));
  animation: emblem-breathe 3.2s ease-in-out infinite;
}
@keyframes emblem-breathe{
  0%, 100%{ transform: scale(1); filter: drop-shadow(0 0 20px rgba(184,34,47,.4)); }
  50%{ transform: scale(1.035); filter: drop-shadow(0 0 34px rgba(212,175,90,.5)); }
}
.loading-ring{
  position: absolute; inset: -14px;
  width: calc(100% + 28px); height: calc(100% + 28px);
  animation: ring-spin 5s linear infinite;
}
.loading-ring circle{
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  stroke-dasharray: 4 14;
  opacity: .65;
}
@keyframes ring-spin{ to{ transform: rotate(360deg); } }

.loading-kanji{
  font-family: var(--font-display);
  color: var(--blood-glow);
  font-size: .95rem;
  letter-spacing: .5em;
  margin: 0 0 .5rem;
  padding-left: .5em;
  opacity: .85;
}
.loading-title{
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: .12em;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, var(--gold-dim));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 2rem;
}

.loading-bar-track{
  position: relative;
  width: min(360px, 62vw);
  height: 3px;
  background: rgba(239,230,212,.12);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: .7rem;
}
.loading-bar-fill{
  position: absolute; inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, var(--blood-bright), var(--gold));
  transition: width .18s ease-out;
}
.loading-bar-glow{
  position: absolute; top: 0; bottom: 0; left: 0; width: 24px;
  background: linear-gradient(90deg, transparent, rgba(242,217,140,.9), transparent);
  animation: bar-shimmer 1.6s linear infinite;
}
@keyframes bar-shimmer{
  0%{ transform: translateX(-24px); }
  100%{ transform: translateX(400px); }
}

.loading-meta-row{
  width: min(360px, 62vw);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--ink-dim);
}
.loading-pct{ color: var(--gold-bright); font-weight: 600; }

.loading-footer{
  position: absolute;
  bottom: clamp(1.5rem, 5vh, 3rem);
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .45em;
  color: var(--ink-faint);
  padding-left: .45em;
}

/* ================================================================
   HEADER / NAV
================================================================= */
.site-header{
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(10,6,5,0);
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.site-header.is-scrolled{
  background: rgba(10,6,5,.86);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand{
  display: flex; align-items: center; gap: .7rem;
}
.brand-mark{ border-radius: 50%; }
.brand-word{
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: .16em;
  color: var(--gold-bright);
}
.primary-nav{
  display: flex; align-items: center; gap: 2rem;
}
.primary-nav a:not(.btn-nav-cta){
  font-size: .87rem;
  letter-spacing: .03em;
  color: var(--ink-dim);
  position: relative;
  padding: .3rem 0;
  transition: color .2s ease;
}
.primary-nav a:not(.btn-nav-cta)::after{
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1px; background: var(--gold);
  transition: right .25s ease;
}
.primary-nav a:not(.btn-nav-cta):hover{ color: var(--ink); }
.primary-nav a:not(.btn-nav-cta):hover::after{ right: 0; }

.btn-nav-cta{
  font-family: var(--font-body); font-weight: 600;
  font-size: .8rem; letter-spacing: .03em;
  border: 1px solid var(--gold-dim);
  padding: .5em 1.1em;
  border-radius: var(--radius);
  color: var(--gold-bright) !important;
  transition: border-color .2s ease, background .2s ease;
}
.btn-nav-cta:hover{ border-color: var(--gold); background: rgba(212,175,90,.08); }
.ext{ font-size: .8em; opacity: .7; }

.nav-toggle{
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: .4rem;
}
.nav-toggle-bar{ width: 22px; height: 2px; background: var(--gold-bright); }

@media (max-width: 820px){
  .nav-toggle{ display: flex; }
  .primary-nav{
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,6,5,.97);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .primary-nav.is-open{ max-height: 320px; }
  .primary-nav a{ padding: 1rem 1.5rem; border-top: 1px solid var(--line); }
  .btn-nav-cta{ margin: 1rem 1.5rem; text-align: center; }
}

/* ================================================================
   HERO
================================================================= */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 5rem;
  overflow: hidden;
}
.hero-bg{ position: absolute; inset: 0; z-index: 0; }
.hero-bg-img{
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  filter: saturate(1.05);
}
.hero-bg::after{
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,6,5,.55) 0%, rgba(10,6,5,.35) 35%, rgba(10,6,5,.85) 78%, var(--void) 100%),
    linear-gradient(90deg, rgba(10,6,5,.65), transparent 30%, transparent 70%, rgba(10,6,5,.65));
}
.hero-scanlines{
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px, rgba(0,0,0,.10) 3px);
  mix-blend-mode: multiply;
  opacity: .5;
}

.hero-frame{ position: relative; z-index: 1; max-width: 760px; }
.eyebrow{
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.hero-title{
  font-size: clamp(3.2rem, 11vw, 6.4rem);
  letter-spacing: .1em;
  line-height: 1;
  background: linear-gradient(180deg, #fff 0%, var(--gold-bright) 45%, var(--gold) 75%, var(--gold-dim) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgba(184,34,47,.35);
  margin-bottom: 1.3rem;
}
.hero-lede{
  color: var(--ink-dim);
  font-size: 1.02rem;
  max-width: 620px;
  margin-left: auto; margin-right: auto;
  margin-bottom: 1rem;
}
.hero-motto{
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: .03em;
  margin-bottom: 2.4rem;
}

.hero-actions{
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
  margin-bottom: 3.2rem;
}
.btn{
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.9em;
  font-family: var(--font-body); font-weight: 600;
  font-size: .92rem; letter-spacing: .02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: linear-gradient(135deg, var(--blood-bright), var(--blood));
  color: var(--ink);
  box-shadow: 0 8px 26px -8px rgba(184,34,47,.7);
  border-color: rgba(255,90,90,.3);
}
.btn-primary:hover{ box-shadow: 0 10px 32px -6px rgba(255,59,69,.75); }
.btn-ghost{
  border-color: var(--gold-dim);
  color: var(--gold-bright);
  background: rgba(212,175,90,.05);
}
.btn-ghost:hover{ border-color: var(--gold); background: rgba(212,175,90,.12); }

.hero-hud{
  display: grid; grid-template-columns: repeat(4, auto);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(19,12,10,.6);
  backdrop-filter: blur(6px);
  margin: 0;
}
.hud-stat{
  padding: .9rem 1.4rem;
  border-right: 1px solid var(--line);
  text-align: left;
}
.hud-stat:last-child{ border-right: 0; }
.hud-stat dt{
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: .3rem;
}
.hud-stat dd{
  margin: 0; font-family: var(--font-mono); font-weight: 600;
  font-size: 1.05rem; color: var(--gold-bright);
}
.hud-status{ display: flex; align-items: center; gap: .45em; color: #7ee08a !important; }
.dot{
  width: 7px; height: 7px; border-radius: 50%; background: #7ee08a;
  box-shadow: 0 0 8px #7ee08a;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot{ 0%,100%{ opacity: 1; } 50%{ opacity: .35; } }

@media (max-width: 640px){
  .hero-hud{ grid-template-columns: repeat(2, 1fr); }
  .hud-stat{ border-right: 1px solid var(--line); }
  .hud-stat:nth-child(2n){ border-right: 0; }
  .hud-stat:nth-child(n+3){ border-top: 1px solid var(--line); }
}

.scroll-cue{
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  z-index: 1;
  color: var(--gold-dim);
  animation: cue-bob 2.2s ease-in-out infinite;
}
@keyframes cue-bob{ 0%,100%{ transform: translate(-50%, 0); } 50%{ transform: translate(-50%, 6px); } }

/* ================================================================
   SECTIONS — shared
================================================================= */
.section{
  position: relative; z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 6.5rem 1.5rem;
}
.section-inset{
  max-width: none;
  background: var(--void-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-inset > *{ max-width: var(--container); margin-left: auto; margin-right: auto; }

.section-title{
  display: flex; align-items: baseline; gap: 1rem;
  margin-bottom: 1.4rem;
}
.section-num{
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--blood-glow);
  border: 1px solid var(--line-strong);
  width: 2.3rem; height: 2.3rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.section-title h2{
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: .06em;
}
.section-intro{
  color: var(--ink-dim);
  max-width: 640px;
  margin-bottom: 3rem;
}

/* ================================================================
   ABOUT
================================================================= */
.about-grid{
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 3.5rem;
}
.about-copy p{ color: var(--ink-dim); }
.about-quote{
  margin-top: 1.6rem;
  padding: 1.1rem 1.4rem;
  border-left: 2px solid var(--gold);
  background: rgba(212,175,90,.05);
  color: var(--ink) !important;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.02rem;
}
.about-panel{ display: flex; flex-direction: column; gap: 1.1rem; }
.panel-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  background: linear-gradient(160deg, rgba(74,15,22,.14), rgba(19,12,10,.4));
  transition: border-color .2s ease, transform .2s ease;
}
.panel-card:hover{ border-color: var(--line-strong); transform: translateY(-3px); }
.panel-kanji{
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--blood-glow);
  display: block;
  margin-bottom: .5rem;
}
.panel-card h3{
  font-size: 1.02rem;
  color: var(--gold-bright);
  margin-bottom: .5rem;
  letter-spacing: .02em;
}
.panel-card p{ color: var(--ink-dim); font-size: .92rem; margin: 0; }

@media (max-width: 900px){
  .about-grid{ grid-template-columns: 1fr; }
}

/* ================================================================
   GALLERY
================================================================= */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.3rem;
}
.gallery-card{
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--void-3);
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.gallery-card:hover, .gallery-card:focus-visible{
  transform: translateY(-5px);
  border-color: var(--gold-dim);
  box-shadow: 0 16px 34px -14px rgba(0,0,0,.7), 0 0 0 1px rgba(212,175,90,.15);
}
.gallery-card img{
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  transition: transform .5s ease;
}
.gallery-card:hover img{ transform: scale(1.06); }
.gallery-card .corner{
  position: absolute; width: 16px; height: 16px;
  border: 0 solid var(--gold);
  opacity: 0; transition: opacity .25s ease;
}
.gallery-card:hover .corner{ opacity: .9; }
.corner.tl{ top: 8px; left: 8px; border-top-width: 2px; border-left-width: 2px; }
.corner.tr{ top: 8px; right: 8px; border-top-width: 2px; border-right-width: 2px; }
.corner.bl{ bottom: 8px; left: 8px; border-bottom-width: 2px; border-left-width: 2px; }
.corner.br{ bottom: 8px; right: 8px; border-bottom-width: 2px; border-right-width: 2px; }

.gallery-caption{
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .8rem .9rem .7rem;
  background: linear-gradient(0deg, rgba(10,6,5,.92), transparent);
  display: flex; justify-content: space-between; align-items: baseline;
}
.gallery-caption .id{
  font-family: var(--font-mono); font-size: .78rem; color: var(--gold-bright); font-weight: 600;
}
.gallery-caption .tag{
  font-family: var(--font-mono); font-size: .62rem; color: var(--ink-faint); letter-spacing: .04em;
}

/* ================================================================
   RARITY LEGEND + TAGS  (loot-tier convention)
================================================================= */
.rarity-legend{ display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.4rem; }
.tier-tag{
  font-family: var(--font-mono);
  font-size: .68rem; font-weight: 600; letter-spacing: .03em;
  padding: .3em .7em;
  border-radius: 2px;
  border: 1px solid currentColor;
  display: inline-block;
}
.tier-common{ color: var(--tier-common); background: rgba(154,148,136,.08); }
.tier-uncommon{ color: var(--tier-uncommon); background: rgba(79,174,99,.08); }
.tier-rare{ color: var(--tier-rare); background: rgba(63,143,214,.08); }
.tier-epic{ color: var(--tier-epic); background: rgba(162,95,224,.08); }
.tier-legendary{ color: var(--tier-legendary); background: rgba(224,166,63,.1); }

/* ================================================================
   CODEX (accordion)
================================================================= */
.codex{ display: flex; flex-direction: column; gap: .8rem; }
.dossier{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--void-2);
  overflow: hidden;
}
.dossier[open]{ border-color: var(--line-strong); }
.dossier summary{
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--font-display);
}
.dossier summary::-webkit-details-marker{ display: none; }
.dossier-seal{
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--gold-dim);
  flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, rgba(212,175,90,.25), transparent 70%);
}
.dossier-heading{ flex: 1; display: flex; flex-direction: column; gap: .2rem; }
.dossier-name{ font-size: 1.05rem; color: var(--gold-bright); letter-spacing: .03em; }
.dossier-meta{ font-family: var(--font-mono); font-size: .74rem; color: var(--ink-faint); }
.dossier-chevron{
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--gold-dim);
  border-bottom: 1.5px solid var(--gold-dim);
  transform: rotate(-45deg);
  transition: transform .25s ease;
  flex-shrink: 0;
}
.dossier[open] .dossier-chevron{ transform: rotate(45deg); }

.dossier-body{ padding: 0 1.4rem 1.3rem; }
.table-scroll{ overflow-x: auto; }
table{ width: 100%; border-collapse: collapse; font-size: .88rem; }
thead th{
  text-align: left;
  font-family: var(--font-mono);
  font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-faint);
  padding: .5rem .6rem;
  border-bottom: 1px solid var(--line);
}
tbody td{
  padding: .6rem .6rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
}
tbody tr:last-child td{ border-bottom: 0; }
tbody tr{ position: relative; }
tbody td:first-child{
  color: var(--ink);
  border-left: 2px solid transparent;
  padding-left: .9rem;
}
tbody tr.tier-row-common td:first-child{ border-left-color: var(--tier-common); }
tbody tr.tier-row-uncommon td:first-child{ border-left-color: var(--tier-uncommon); }
tbody tr.tier-row-rare td:first-child{ border-left-color: var(--tier-rare); }
tbody tr.tier-row-epic td:first-child{ border-left-color: var(--tier-epic); }
tbody tr.tier-row-legendary td:first-child{ border-left-color: var(--tier-legendary); }
td.cell-pct{ font-family: var(--font-mono); }
td.cell-tier{ text-align: right; }

/* ================================================================
   LIGHTBOX
================================================================= */
.lightbox{
  position: fixed; inset: 0; z-index: 800;
  background: rgba(6,4,3,.94);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox[hidden]{ display: none; }
.lightbox-img{
  max-width: min(720px, 90vw);
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
}
.lightbox-caption{
  position: absolute; bottom: 2.2rem; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono);
  color: var(--gold-bright);
  font-size: .85rem; letter-spacing: .05em;
}
.lightbox-close{
  position: absolute; top: 1.4rem; right: 1.6rem;
  background: none; border: 1px solid var(--line-strong); color: var(--ink);
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover{ border-color: var(--gold); color: var(--gold-bright); }
.lightbox-nav{
  background: none; border: 1px solid var(--line-strong); color: var(--ink);
  width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lightbox-nav:hover{ border-color: var(--gold); color: var(--gold-bright); }
.lightbox-prev{ position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next{ position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px){
  .lightbox-prev{ left: .5rem; } .lightbox-next{ right: .5rem; }
}

/* ================================================================
   FOOTER
================================================================= */
.site-footer{
  position: relative; z-index: 1;
  text-align: center;
  padding: 4.5rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
}
.footer-mark{ margin: 0 auto 1rem; border-radius: 50%; }
.footer-motto{
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.02rem;
  margin-bottom: 1.6rem;
}
.footer-nav{
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem;
  color: var(--ink-faint);
  font-size: .85rem;
  margin-bottom: 1.6rem;
}
.footer-nav a:hover{ color: var(--gold-bright); }
.footnote{ color: var(--ink-faint); font-size: .78rem; }

/* ================================================================
   WHITELIST REGISTRATION MODAL
================================================================= */
.wl-overlay{
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6,4,3,.88);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.wl-overlay.is-open{ opacity: 1; visibility: visible; }

.wl-modal{
  position: relative;
  width: 100%; max-width: 460px;
  max-height: 90vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--void-3), var(--void-2));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.85);
  padding: 2.2rem 1.8rem 1.8rem;
  text-align: center;
  transform: translateY(12px) scale(.98);
  transition: transform .25s ease;
}
.wl-overlay.is-open .wl-modal{ transform: translateY(0) scale(1); }

.wl-close{
  position: absolute; top: .9rem; right: .9rem;
  background: none; border: 1px solid var(--line-strong); color: var(--ink);
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.wl-close:hover{ border-color: var(--gold); color: var(--gold-bright); }

.wl-kanji{
  font-family: var(--font-display);
  color: var(--gold-dim);
  font-size: 1.6rem;
  margin: 0 0 .3rem;
}
.wl-title{
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: 1.4rem;
  margin: 0 0 .4rem;
}
.wl-sub{
  color: var(--ink-dim);
  font-size: .9rem;
  margin: 0 0 1.3rem;
}

.wl-countdown{
  display: flex; justify-content: center; gap: .6rem;
  margin-bottom: .4rem;
}
.wl-cd-unit{
  background: rgba(212,175,90,.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .55rem .5rem;
  min-width: 56px;
}
.wl-cd-num{
  display: block;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--gold-bright);
  font-weight: 600;
}
.wl-cd-label{
  display: block;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .06em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-top: .15rem;
}
.wl-cd-caption{
  font-size: .75rem;
  color: var(--ink-faint);
  margin: 0 0 1.4rem;
}

.wl-steps{
  text-align: left;
  color: var(--ink-dim);
  font-size: .85rem;
  line-height: 1.5;
  margin: 0 0 1.4rem;
  padding-left: 1.2rem;
}
.wl-steps li{ margin-bottom: .35rem; }
.wl-steps a{ color: var(--gold-bright); }
.wl-steps a:hover{ text-decoration: underline; }

.wl-form{ text-align: left; }
.wl-field{
  display: block;
  margin-bottom: .9rem;
}
.wl-field span{
  display: block;
  font-size: .75rem;
  color: var(--ink-faint);
  letter-spacing: .03em;
  margin-bottom: .35rem;
}
.wl-field input[type="text"]{
  width: 100%;
  background: var(--void);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .88rem;
  padding: .65rem .75rem;
}
.wl-field input[type="text"]:focus{
  outline: none;
  border-color: var(--gold);
}
.wl-field input.wl-invalid{
  border-color: var(--blood-bright);
}

.wl-checkbox{
  display: flex; align-items: center; gap: .55rem;
}
.wl-checkbox span{ margin-bottom: 0; font-size: .82rem; color: var(--ink-dim); }
.wl-checkbox input{ width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--gold); }

.wl-submit{
  width: 100%;
  text-align: center;
  margin-top: .3rem;
  cursor: pointer;
}
.wl-submit:disabled{ opacity: .55; cursor: not-allowed; }

.wl-status{
  min-height: 1.2em;
  font-size: .82rem;
  text-align: center;
  margin: .7rem 0 0;
}
.wl-status.is-error{ color: var(--blood-bright); }
.wl-status.is-success{ color: var(--tier-uncommon); }

@media (max-width: 480px){
  .wl-cd-unit{ min-width: 48px; padding: .5rem .4rem; }
  .wl-cd-num{ font-size: 1.1rem; }
}
