/* ==========================================================================
   AXORONIN — DESIGN SYSTEM
   Cyberpunk Tokyo × Samurai × Axolotl × Premium Web3

   Token system
   ------------
   Dark  (primary): void black / deep charcoal-purple grounds, neon
         purple + pink + electric blue signal color, sakura as a rare warm
         accent — never all four at once in one spot.
   Light (intentional, not inverted): warm paper-lavender ground, ink-charcoal
         type, the same neons pulled down in saturation/lightness so they
         read as accents on paper rather than glow-on-void.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@500;700;900&family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root{
  /* ---------- DARK (default) ---------- */
  --bg: #08060c;
  --bg-alt: #0d0a16;
  --bg-raised: #120e1c;
  --panel: rgba(24, 18, 38, 0.55);
  --panel-solid: #150f22;
  --border: rgba(178, 133, 255, 0.16);
  --border-strong: rgba(178, 133, 255, 0.34);

  --purple: #9b5cff;
  --purple-deep: #6a2dd6;
  --pink: #ff4fd8;
  --blue: #33d0ff;
  --sakura: #ffb3d1;

  --text: #f3eefb;
  --text-dim: #b6acc9;
  --text-faint: #7d7391;

  --grad-signal: linear-gradient(120deg, var(--blue), var(--purple) 45%, var(--pink) 100%);
  --grad-panel: linear-gradient(160deg, rgba(155,92,255,0.10), rgba(255,79,216,0.04));
  --glow-purple: 0 0 40px rgba(155, 92, 255, 0.35);
  --glow-pink: 0 0 40px rgba(255, 79, 216, 0.3);

  --shadow-soft: 0 20px 60px rgba(0,0,0,0.45);
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 26px;

  --font-display: 'Noto Serif JP', serif;
  --font-tech: 'Rajdhani', sans-serif;
  --font-body: 'Inter', 'Noto Sans JP', sans-serif;

  --nav-h: 84px;
  --ease: cubic-bezier(.22,.9,.3,1);
  color-scheme: dark;
}

html[data-theme="light"]{
  --bg: #f7f3fb;
  --bg-alt: #f0e9f7;
  --bg-raised: #ffffff;
  --panel: rgba(255, 255, 255, 0.7);
  --panel-solid: #ffffff;
  --border: rgba(124, 58, 237, 0.14);
  --border-strong: rgba(124, 58, 237, 0.28);

  --purple: #7c3aed;
  --purple-deep: #5b21b6;
  --pink: #d63aa6;
  --blue: #1f8fbf;
  --sakura: #e78aad;

  --text: #211a2e;
  --text-dim: #564b6b;
  --text-faint: #85799a;

  --grad-panel: linear-gradient(160deg, rgba(124,58,237,0.07), rgba(214,58,166,0.05));
  --glow-purple: 0 0 30px rgba(124,58,237,0.18);
  --glow-pink: 0 0 30px rgba(214,58,166,0.15);

  --shadow-soft: 0 16px 40px rgba(94,53,177,0.12);
  color-scheme: light;
}

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

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
body.no-scroll{ overflow: hidden; height: 100%; }

/* Ambient base texture: fine grain + soft radial glows, fixed */
body::before{
  content:"";
  position: fixed; inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vw 60vw at 12% -10%, rgba(155,92,255,0.16), transparent 60%),
    radial-gradient(50vw 50vw at 110% 10%, rgba(255,79,216,0.10), transparent 60%),
    radial-gradient(40vw 40vw at 50% 120%, rgba(51,208,255,0.08), transparent 60%),
    var(--bg);
  transition: background .4s var(--ease);
}
body::after{
  content:"";
  position: fixed; inset:0; z-index: -1; pointer-events:none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }
button{ font-family: inherit; }
ul{ list-style: none; margin:0; padding:0; }

.container{ width: min(1240px, 92%); margin-inline: auto; }
.eyebrow{
  font-family: var(--font-tech);
  letter-spacing: .32em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--purple);
  display:flex; align-items:center; gap:.6em;
}
.eyebrow::before{ content:""; width:26px; height:1px; background: var(--grad-signal); display:inline-block; }

h1,h2,h3,h4{ font-family: var(--font-display); margin: 0; font-weight: 900; letter-spacing: .01em; }
.section-head{ max-width: 720px; margin-bottom: 3rem; }
.section-head h2{ font-size: clamp(2rem, 4.4vw, 3.2rem); margin-top: .6rem; line-height: 1.08; }
.section-head p{ color: var(--text-dim); font-size: 1.05rem; margin-top: 1rem; max-width: 56ch; }

section{ position: relative; padding: clamp(4rem, 9vw, 8rem) 0; }

/* focus visibility everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------- BUTTONS ---------------- */
.btn{
  display: inline-flex; align-items:center; justify-content:center; gap:.6em;
  font-family: var(--font-tech); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; font-size: .85rem;
  padding: .95em 1.9em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0px) scale(.98); }

.btn-primary{
  background: var(--grad-signal);
  color: #08060c;
  box-shadow: 0 8px 30px rgba(155,92,255,.35);
}
.btn-primary:hover{ box-shadow: 0 12px 44px rgba(255,79,216,.4); }
html[data-theme="light"] .btn-primary{ color: #fff; }

.btn-ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover{ border-color: var(--purple); box-shadow: var(--glow-purple); }

.btn-block{ width: 100%; }
.btn-sm{ padding: .7em 1.4em; font-size: .74rem; }

/* ---------------- NAVBAR ---------------- */
.navbar{
  position: fixed; top:0; left:0; right:0; z-index: 500;
  height: var(--nav-h);
  display:flex; align-items:center;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease), box-shadow .4s var(--ease), height .3s var(--ease);
}
.navbar.scrolled{
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 40px rgba(0,0,0,.28);
  height: 72px;
}
.nav-inner{ width: min(1320px, 94%); margin-inline:auto; display:flex; align-items:center; justify-content: space-between; gap: 1.4rem; }

.brand{ display:flex; align-items:center; gap:.65rem; font-family: var(--font-tech); font-weight:700; font-size: 1.15rem; letter-spacing:.06em; }
.brand .mark{
  width: 34px; height:34px; border-radius: 9px;
  background: var(--grad-signal);
  display:flex; align-items:center; justify-content:center;
  color:#08060c; font-family: var(--font-display); font-weight:900; font-size: 1rem;
  box-shadow: var(--glow-purple);
  flex: none;
}
.brand span{ background: var(--grad-signal); -webkit-background-clip:text; background-clip:text; color:transparent; }

.nav-links{ display:flex; align-items:center; gap: 2.1rem; }
.nav-links a{
  font-family: var(--font-tech); font-size: .84rem; letter-spacing:.08em; text-transform: uppercase;
  color: var(--text-dim); position: relative; padding: .3em 0;
  transition: color .25s var(--ease);
}
.nav-links a::after{
  content:""; position:absolute; left:0; right:100%; bottom:-3px; height:2px;
  background: var(--grad-signal); transition: right .3s var(--ease); border-radius: 2px;
}
.nav-links a:hover, .nav-links a.active{ color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after{ right:0; }

.nav-actions{ display:flex; align-items:center; gap: .9rem; }

.theme-toggle{
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size: 1.05rem;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s;
}
.theme-toggle:hover{ box-shadow: var(--glow-purple); transform: rotate(-8deg); }

.hamburger{
  display:none; width: 44px; height:44px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--border-strong);
  align-items:center; justify-content:center; cursor:pointer;
  font-size: 1.2rem; color: var(--text);
}

/* ---------------- MOBILE MENU ---------------- */
.mobile-menu{
  position: fixed; inset:0; z-index: 600;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(22px);
  display:flex; flex-direction:column;
  padding: 6rem 8% 3rem;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
  overflow-y:auto;
}
.mobile-menu.open{ transform: translateY(0); }
.mobile-menu-close{
  position:absolute; top: 1.6rem; right: 6%;
  width: 46px; height:46px; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--border-strong);
  display:flex; align-items:center; justify-content:center;
  font-size: 1.3rem; cursor:pointer; color: var(--text);
}
.mobile-links{ display:flex; flex-direction:column; gap: 0; margin-top: 1rem; }
.mobile-links a{
  font-family: var(--font-display); font-size: 2rem; font-weight: 900;
  text-transform: uppercase;
  padding: .62rem 0; border-bottom: 1px solid var(--border);
  opacity:0; transform: translateY(16px);
  display:block;
}
.mobile-menu.open .mobile-links a{ animation: mm-in .6s var(--ease) forwards; }
.mobile-links a:nth-child(1){ animation-delay: .08s; }
.mobile-links a:nth-child(2){ animation-delay: .13s; }
.mobile-links a:nth-child(3){ animation-delay: .18s; }
.mobile-links a:nth-child(4){ animation-delay: .23s; }
.mobile-links a:nth-child(5){ animation-delay: .28s; }
.mobile-links a:nth-child(6){ animation-delay: .33s; }
.mobile-links a:nth-child(7){ animation-delay: .38s; }
.mobile-links a:nth-child(8){ animation-delay: .43s; }
@keyframes mm-in{ to{ opacity:1; transform: translateY(0); } }

.mobile-foot{ margin-top: 2.2rem; display:flex; flex-direction:column; gap: 1rem; }
.mobile-theme-row{ display:flex; align-items:center; justify-content:space-between; padding: .8rem 1.1rem; border:1px solid var(--border-strong); border-radius: 14px; font-family: var(--font-tech); letter-spacing:.06em; text-transform:uppercase; font-size:.85rem; }

@media (max-width: 900px){
  .nav-links{ display:none; }
  .hamburger{ display:flex; }
  /* "Join Discord" and "Mint" already live in the mobile menu's footer —
     showing them again here crowded the mobile navbar and caused overflow/wrap. */
  .nav-actions .btn{ display:none; }
}

/* Keep the expanded navigation on one line before the mobile menu takes over. */
@media (min-width: 901px) and (max-width: 1540px){
  .nav-links{ gap:.75rem; }
  .nav-links a{ font-size:.72rem; letter-spacing:.05em; }
  .nav-actions{ gap:.55rem; }
  .nav-actions .btn{ padding-inline:.7rem; }
}

/* ---------------- HERO ---------------- */
.hero{
  position: relative;
  min-height: 100svh;
  display:flex; align-items:center;
  padding-top: var(--nav-h);
  overflow:hidden;
  isolation: isolate;
}
.hero-scene{
  position:absolute; inset:0; z-index:-1;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255,79,216,0.14), transparent 60%),
    radial-gradient(90% 60% at 15% 100%, rgba(51,208,255,0.14), transparent 55%),
    linear-gradient(180deg, #05040a 0%, #0b0715 55%, #120a1e 100%);
}
.hero-skyline{
  position:absolute; left:0; right:0; bottom:0; height: 42%;
  background-repeat: repeat-x; background-position: bottom;
  background-size: 900px 100%;
  opacity:.85;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='400' viewBox='0 0 900 400'%3E%3Cg fill='%23120a1e'%3E%3Crect x='0' y='180' width='60' height='220'/%3E%3Crect x='70' y='120' width='40' height='280'/%3E%3Crect x='120' y='210' width='90' height='190'/%3E%3Crect x='225' y='90' width='34' height='310'/%3E%3Crect x='270' y='160' width='70' height='240'/%3E%3Crect x='350' y='60' width='46' height='340'/%3E%3Crect x='405' y='200' width='110' height='200'/%3E%3Crect x='525' y='140' width='36' height='260'/%3E%3Crect x='570' y='190' width='80' height='210'/%3E%3Crect x='660' y='100' width='40' height='300'/%3E%3Crect x='710' y='220' width='95' height='180'/%3E%3Crect x='815' y='150' width='42' height='250'/%3E%3Crect x='860' y='205' width='40' height='195'/%3E%3C/g%3E%3Cg fill='%239b5cff' opacity='0.5'%3E%3Crect x='10' y='200' width='4' height='16'/%3E%3Crect x='90' y='150' width='4' height='16'/%3E%3Crect x='240' y='120' width='4' height='16'/%3E%3Crect x='420' y='230' width='4' height='16'/%3E%3Crect x='585' y='215' width='4' height='16'/%3E%3Crect x='675' y='130' width='4' height='16'/%3E%3Crect x='825' y='180' width='4' height='16'/%3E%3C/g%3E%3Cg fill='%23ff4fd8' opacity='0.5'%3E%3Crect x='40' y='260' width='4' height='14'/%3E%3Crect x='290' y='190' width='4' height='14'/%3E%3Crect x='460' y='260' width='4' height='14'/%3E%3Crect x='730' y='260' width='4' height='14'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.5) 60%, transparent);
  opacity:.4;
}
.hero-fog{
  position:absolute; left:-10%; right:-10%; bottom:-5%; height:40%;
  background: linear-gradient(180deg, transparent, rgba(155,92,255,.16), rgba(8,6,12,.9));
  filter: blur(6px);
  animation: fog-drift 22s ease-in-out infinite alternate;
}
@keyframes fog-drift{ from{ transform: translateX(-3%);} to{ transform: translateX(3%);} }

#sakura-canvas, #hero-particles{ position:absolute; inset:0; pointer-events:none; }

.hero-art-frame{
  position:absolute; right: 4%; bottom:0; top: var(--nav-h);
  width: min(46%, 620px);
  display:flex; align-items:flex-end; justify-content:center;
  z-index:1;
}
.hero-placeholder{
  width:100%; aspect-ratio: 3/4; max-height: 78vh;
  border-radius: var(--radius-l);
  border: 1px dashed var(--border-strong);
  background: var(--grad-panel);
  display:flex; align-items:center; justify-content:center; text-align:center;
  color: var(--text-faint); font-family: var(--font-tech); letter-spacing:.08em; text-transform:uppercase; font-size:.78rem; padding: 2rem;
  box-shadow: inset 0 0 60px rgba(155,92,255,.08);
}

.hero-content{ position:relative; z-index:2; width: min(1240px, 92%); margin-inline:auto; padding-top: 1rem; }
.hero-content .inner{ max-width: 640px; }
.hero-tag{
  display:inline-flex; align-items:center; gap:.6em;
  font-family: var(--font-tech); font-size:.74rem; letter-spacing:.28em; text-transform:uppercase;
  color: var(--blue); padding: .5em 1em; border:1px solid var(--border-strong); border-radius:999px;
  background: var(--panel); margin-bottom: 1.6rem;
}
.hero-tag .dot{ width:7px; height:7px; border-radius:50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); animation: pulse-dot 1.8s ease-in-out infinite; }
@keyframes pulse-dot{ 50%{ opacity:.35; transform: scale(.8);} }

.hero h1{
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: .01em;
}
.hero h1 .line2{
  background: var(--grad-signal);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  display:block;
}
.hero p.lead{
  margin-top: 1.6rem; font-size: 1.12rem; color: var(--text-dim); max-width: 46ch;
}
.hero-actions{ display:flex; flex-wrap:wrap; gap: 1rem; margin-top: 2.4rem; }
.hero-meta{
  margin-top: 3rem; display:flex; flex-wrap:wrap; gap: .5em 1.2em;
  font-family: var(--font-tech); font-size:.75rem; letter-spacing:.12em; text-transform:uppercase; color: var(--text-faint);
}
.hero-meta span{ display:flex; align-items:center; gap:.5em; }
.hero-meta span:not(:last-child)::after{ content:"•"; margin-left: 1.2em; color: var(--purple); }

.scroll-cue{
  position:absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:.5rem;
  color: var(--text-faint); font-family: var(--font-tech); font-size:.68rem; letter-spacing:.3em; text-transform:uppercase;
}
.scroll-cue .bar{ width:1px; height: 34px; background: linear-gradient(var(--purple), transparent); animation: cue 2s ease-in-out infinite; }
@keyframes cue{ 0%{ opacity:0; transform: scaleY(.3); transform-origin: top;} 40%{opacity:1; transform:scaleY(1); transform-origin: top;} 100%{opacity:0; transform: scaleY(1); transform-origin: bottom;} }

@media (max-width: 980px){
  /* .hero is display:flex with no flex-direction, so it defaults to "row".
     The artwork frame is position:absolute on desktop (removed from flex
     flow), but the rule below makes it position:relative on mobile — which
     puts it back INTO the flex row, fighting the text block for horizontal
     space and collapsing the artwork placeholder to a sliver. Forcing
     column direction here makes it stack properly instead. */
  .hero{ flex-direction: column; min-height: auto; overflow: visible; padding-bottom: 3rem; }
  .hero-art-frame{ position:relative; width: 88%; margin: 2.4rem auto 0; top:auto; inset: auto; }
  .hero-content{ padding-bottom: 2rem; }
}

/* ---------------- GLASS PANEL / CARDS ---------------- */
.panel{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.grid-4{ display:grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; }
@media (max-width: 980px){ .grid-3, .grid-4{ grid-template-columns: repeat(2,1fr); } .grid-2{ grid-template-columns: 1fr; } }
@media (max-width: 620px){ .grid-3, .grid-4{ grid-template-columns: 1fr; } }

.feature-card{
  padding: 2rem 1.8rem;
  position: relative;
  overflow:hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.feature-card::before{
  content:""; position:absolute; inset:0; opacity:0; transition: opacity .4s var(--ease);
  background: var(--grad-panel);
}
.feature-card:hover{ transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-soft); }
.feature-card:hover::before{ opacity:1; }
.feature-card .num{ font-family: var(--font-tech); color: var(--purple); font-size:.78rem; letter-spacing:.2em; }
.feature-card h3{ font-size: 1.3rem; margin-top:.9rem; position:relative; }
.feature-card p{ color: var(--text-dim); margin-top:.7rem; font-size:.96rem; position:relative; }
.feature-card .icon{ font-size: 1.7rem; margin-bottom:.4rem; }

/* ---------------- INTRO / ABOUT split ---------------- */
.split{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 3.4rem; align-items:center; }
@media (max-width: 900px){ .split{ grid-template-columns: 1fr; } }
.split.reverse{ grid-template-columns: .9fr 1.1fr; }
@media (max-width: 900px){ .split.reverse{ grid-template-columns: 1fr; } .split.reverse .split-art{ order:-1; } }
.split-art .hero-placeholder{ aspect-ratio: 4/5; max-height: none; }

/* ---------------- COLLECTION GALLERY ---------------- */
.nft-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 1080px){ .nft-grid{ grid-template-columns: repeat(3,1fr);} }
@media (max-width: 760px){ .nft-grid{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 460px){ .nft-grid{ grid-template-columns: 1fr;} }

.nft-card{
  position:relative; border-radius: var(--radius-m); overflow:hidden;
  border:1px solid var(--border); background: var(--panel-solid);
  cursor:pointer;
  transition: transform .45s var(--ease), border-color .4s var(--ease), box-shadow .45s var(--ease);
}
.nft-card:hover{ transform: translateY(-8px); border-color: var(--purple); box-shadow: 0 20px 50px rgba(155,92,255,.25); }
.nft-media{ aspect-ratio: 1/1; overflow:hidden; position:relative; background: var(--grad-panel); }
.nft-media .ph{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; text-align:center; color:var(--text-faint); font-family:var(--font-tech); letter-spacing:.06em; text-transform:uppercase; font-size:.7rem; padding: 1rem; transition: transform .6s var(--ease); }
.nft-card:hover .nft-media .ph{ transform: scale(1.08); }
.nft-media::after{ content:""; position:absolute; inset:0; opacity:0; transition:opacity .4s; box-shadow: inset 0 0 0 2px var(--purple), inset 0 0 40px rgba(155,92,255,.35); }
.nft-card:hover .nft-media::after{ opacity:1; }
.nft-info{ padding: 1rem 1.1rem 1.2rem; }
.nft-info .id{ font-family: var(--font-tech); font-size:.72rem; color: var(--text-faint); letter-spacing:.12em; }
.nft-info h4{ font-family: var(--font-display); font-size:1.05rem; margin-top:.2rem; }
.nft-traits{ display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.8rem; max-height:0; overflow:hidden; transition: max-height .4s var(--ease); }
.nft-card:hover .nft-traits{ max-height: 80px; }
.trait-chip{ font-size:.65rem; font-family: var(--font-tech); letter-spacing:.05em; text-transform:uppercase; padding:.3em .6em; border-radius:999px; border:1px solid var(--border-strong); color: var(--text-dim); }

/* ---------------- TRAITS ---------------- */
.trait-tabs{ display:flex; flex-wrap:wrap; gap:.7rem; margin-bottom: 2rem; }
.trait-tab{
  font-family: var(--font-tech); font-size:.78rem; letter-spacing:.1em; text-transform:uppercase;
  padding: .7em 1.3em; border-radius:999px; border:1px solid var(--border-strong); color: var(--text-dim);
  cursor:pointer; background: transparent; transition: all .3s var(--ease);
}
.trait-tab.active, .trait-tab:hover{ color: var(--bg); background: var(--grad-signal); border-color: transparent; }
html[data-theme="light"] .trait-tab.active, html[data-theme="light"] .trait-tab:hover{ color:#fff; }
.trait-values{ display:grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap:1rem; }
.trait-value{ padding: 1.1rem 1.2rem; border-radius: var(--radius-s); }
.trait-value .name{ font-family:var(--font-display); font-weight:700; font-size:1rem; }
.trait-value .sub{ font-size:.78rem; color: var(--text-faint); margin-top:.3rem; font-family: var(--font-tech); letter-spacing:.06em; text-transform:uppercase; }

/* ---------------- ROADMAP ---------------- */
.roadmap-track{ position:relative; margin-top: 2rem; }
.roadmap-track::before{
  content:""; position:absolute; left: 22px; top:0; bottom:0; width:2px;
  background: linear-gradient(var(--purple), var(--pink), var(--blue));
  opacity:.5;
}
@media (min-width: 860px){ .roadmap-track::before{ left:50%; transform: translateX(-50%);} }

.phase{
  position:relative; padding-left: 60px; margin-bottom: 3.2rem;
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.phase.in-view{ opacity:1; transform: translateY(0); }
.phase::before{
  content:""; position:absolute; left: 14px; top: 6px; width:18px; height:18px; border-radius:50%;
  background: var(--bg); border: 2px solid var(--purple); box-shadow: 0 0 0 4px rgba(155,92,255,.15);
}
.phase.in-view::before{ background: var(--grad-signal); box-shadow: 0 0 24px rgba(255,79,216,.5); }

@media (min-width: 860px){
  .phase{ width: 46%; padding-left: 0; padding-right: 2.6rem; }
  .phase::before{ left: auto; right: -29px; }
  .phase:nth-child(even){ margin-left: 54%; padding-right:0; padding-left: 2.6rem; }
  .phase:nth-child(even)::before{ right:auto; left: -29px; }
}

.phase .tag{ font-family: var(--font-tech); font-size:.72rem; letter-spacing:.2em; color: var(--pink); text-transform:uppercase; }
.phase h3{ font-size: 1.5rem; margin-top:.5rem; }
.phase .quote{ font-style: normal; color: var(--text-dim); margin-top:.5rem; font-family: var(--font-display); font-size:.98rem; }
.phase ul{ margin-top: 1rem; display:flex; flex-direction:column; gap:.55rem; }
.phase li{ display:flex; gap:.6em; font-size:.94rem; color: var(--text-dim); }
.phase li::before{ content:"⟡"; color: var(--purple); flex:none; }
.phase .btn{ margin-top: 1.2rem; }

.roadmap-note{ margin-top: 2rem; font-size:.85rem; color: var(--text-faint); border-left: 2px solid var(--border-strong); padding-left: 1rem; max-width: 60ch; }

/* ---------------- STATS ---------------- */
.stat-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:1.4rem; }
@media (max-width: 760px){ .stat-grid{ grid-template-columns: repeat(2,1fr); } }
.stat-card{ text-align:center; padding: 2.2rem 1rem; }
.stat-card .val{ font-family: var(--font-display); font-size: clamp(1.8rem,4vw,2.6rem); background: var(--grad-signal); -webkit-background-clip:text; background-clip:text; color:transparent; }
.stat-card .lbl{ margin-top:.5rem; font-family: var(--font-tech); font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color: var(--text-faint); }

/* ---------------- FAQ ---------------- */
.faq-item{ border-bottom: 1px solid var(--border); }
.faq-q{
  width:100%; text-align:left; background:none; border:none; color: var(--text);
  padding: 1.5rem .2rem; display:flex; align-items:center; justify-content:space-between; gap:1rem;
  cursor:pointer; font-family: var(--font-display); font-size: 1.08rem; font-weight:700;
}
.faq-q .plus{ font-family: var(--font-tech); font-size:1.3rem; color: var(--purple); transition: transform .35s var(--ease); flex:none; }
.faq-item.open .plus{ transform: rotate(135deg); }
.faq-a{ max-height:0; overflow:hidden; transition: max-height .45s var(--ease); }
.faq-a p{ padding: 0 .2rem 1.6rem; color: var(--text-dim); max-width: 68ch; }

/* ---------------- FINAL CTA ---------------- */
.final-cta{
  position:relative; overflow:hidden; text-align:center; border-radius: var(--radius-l);
  padding: clamp(4rem,10vw,7rem) 1.5rem;
  border:1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(20,14,30,.5), rgba(8,6,12,.9));
}
.final-cta .hero-grid{ opacity:.25; }
.final-cta h2{ font-size: clamp(2.1rem,5vw,3.4rem); max-width: 16ch; margin-inline:auto; }
.final-cta p{ color: var(--text-dim); margin-top:1rem; font-size:1.1rem; }
.final-cta .hero-actions{ justify-content:center; margin-top:2.2rem; }

/* ---------------- FOOTER ---------------- */
footer{ border-top:1px solid var(--border); padding: 4rem 0 2rem; margin-top: 2rem; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-grid h5{ font-family: var(--font-tech); letter-spacing:.14em; text-transform:uppercase; font-size:.78rem; color: var(--text-faint); margin-bottom: 1rem; }
.footer-links{ display:flex; flex-direction:column; gap:.6rem; }
.footer-links a{ color: var(--text-dim); font-size:.92rem; }
.footer-links a:hover{ color: var(--purple); }
.footer-bottom{ margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--border); display:flex; flex-wrap:wrap; justify-content:space-between; gap:1rem; font-size:.8rem; color: var(--text-faint); }

/* ---------------- LOADING SCREEN ---------------- */
.loader{
  position: fixed; inset:0; z-index: 9999; background: #05040a;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1.4rem;
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader.hide{ opacity:0; visibility:hidden; pointer-events:none; }
.loader .mark{ width:64px; height:64px; border-radius:16px; background: var(--grad-signal); display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:900; color:#05040a; font-size:1.6rem; box-shadow: 0 0 50px rgba(155,92,255,.5); animation: loader-pulse 1.6s ease-in-out infinite; }
@keyframes loader-pulse{ 50%{ transform: scale(1.08); } }
.loader p{ font-family: var(--font-tech); letter-spacing:.3em; text-transform:uppercase; font-size:.78rem; color: var(--text-faint); }
.loader .bar{ width: 200px; height:2px; background: rgba(255,255,255,.08); overflow:hidden; border-radius:2px; }
.loader .bar span{ display:block; height:100%; width:40%; background: var(--grad-signal); animation: loader-bar 1.1s ease-in-out infinite; }
@keyframes loader-bar{ 0%{ transform: translateX(-100%);} 100%{ transform: translateX(350%);} }

/* ---------------- CUSTOM CURSOR (desktop only) ---------------- */
.cursor-dot, .cursor-ring{ position: fixed; top:0; left:0; pointer-events:none; z-index: 9998; border-radius:50%; transform: translate(-50%,-50%); }
.cursor-dot{ width:6px; height:6px; background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.cursor-ring{ width:34px; height:34px; border:1px solid var(--border-strong); transition: transform .15s var(--ease), border-color .3s; }
.cursor-ring.active{ border-color: var(--purple); transform: translate(-50%,-50%) scale(1.5); }
@media (hover:none), (pointer:coarse){ .cursor-dot,.cursor-ring{ display:none; } }

/* ---------------- REVEAL ANIMATIONS ---------------- */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in{ opacity:1; transform: translateY(0); }
.reveal-delay-1{ transition-delay:.08s; } .reveal-delay-2{ transition-delay:.16s; } .reveal-delay-3{ transition-delay:.24s; } .reveal-delay-4{ transition-delay:.32s; }

/* ---------------- MISC PAGE HEADER (sub-pages) ---------------- */
.page-hero{ padding-top: calc(var(--nav-h) + 4.5rem); padding-bottom: 3rem; position:relative; }
.page-hero .eyebrow{ margin-bottom: 1rem; }
.page-hero h1{ font-size: clamp(2.4rem,5.6vw,4rem); }
.page-hero p{ color: var(--text-dim); margin-top: 1.1rem; max-width: 60ch; font-size:1.05rem; }
.shinkai-hero{ background:radial-gradient(circle at 85% 25%, color-mix(in srgb, var(--purple) 20%, transparent), transparent 38%); }
.shinkai-crest{ color:var(--purple); font-family:var(--font-tech); font-weight:700; letter-spacing:.18em; margin-top:1.5rem; }
.shinkai-map{ overflow:hidden; padding:0; margin:0; }
.shinkai-map img{ display:block; width:100%; max-height:780px; object-fit:cover; }
.shinkai-map figcaption{ padding:.8rem 1rem; color:var(--text-faint); font-family:var(--font-tech); font-size:.72rem; letter-spacing:.14em; text-align:center; }
.story-copy{ max-width:760px; }
.story-copy h2, .story-code h2, .story-signal h2{ margin-top:.7rem; font-size:clamp(1.8rem,3.8vw,2.7rem); }
.story-copy p{ color:var(--text-dim); margin-top:1rem; font-size:1.03rem; }
.story-code{ padding:clamp(1.6rem,5vw,3.5rem); text-align:center; }
.story-code > p{ color:var(--text-dim); max-width:54ch; margin:1rem auto 0; }
.story-code-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:.8rem; margin:2rem auto 0; max-width:800px; }
.story-code-grid span{ border:1px solid var(--border); padding:1rem; color:var(--text); font-family:var(--font-tech); font-size:.77rem; letter-spacing:.06em; text-transform:uppercase; }
.story-region{ margin-top:4rem; }
.story-region .split-text h2{ margin-top:.65rem; font-size:clamp(1.7rem,3.4vw,2.4rem); }
.story-art{ margin:0; overflow:hidden; border:1px solid var(--border-strong); background:var(--panel); }
.story-art img{ display:block; width:100%; aspect-ratio:1/1; object-fit:cover; transition:transform .5s ease; }
.story-art:hover img{ transform:scale(1.03); }
.story-kurosai{ margin-top:4rem; padding:clamp(1.6rem,5vw,3rem); display:flex; justify-content:space-between; align-items:end; gap:2rem; background:linear-gradient(135deg, var(--panel), #12051e); }
.story-kurosai h2{ margin-top:.6rem; font-size:clamp(1.7rem,3.4vw,2.4rem); }
.story-kurosai p:not(.shinkai-crest){ color:var(--text-dim); max-width:58ch; margin-top:1rem; }
.story-signal{ max-width:840px; padding:clamp(1.6rem,5vw,3.5rem); text-align:center; background:linear-gradient(135deg, var(--panel), #240718); }
.story-signal > p{ color:var(--text-dim); max-width:62ch; margin:1rem auto 0; }
.story-signal blockquote{ color:var(--text); font-family:var(--font-tech); font-size:clamp(1rem,2vw,1.3rem); letter-spacing:.07em; line-height:1.8; margin:2rem auto; }
.signal-warning{ color:#ff4a8b !important; font-family:var(--font-tech); font-weight:700; letter-spacing:.2em; }
.story-conflict{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-top:2rem; }
.story-conflict div{ border:1px solid var(--border-strong); padding:1.2rem; display:flex; flex-direction:column; gap:.4rem; }
.story-conflict span{ color:var(--text-faint); font-family:var(--font-tech); font-size:.72rem; letter-spacing:.16em; }
.story-conflict strong{ color:var(--purple); font-family:var(--font-tech); font-size:.78rem; letter-spacing:.08em; }
.story-end{ color:var(--text-faint) !important; font-family:var(--font-tech); font-size:.75rem !important; letter-spacing:.12em; line-height:1.7; }
@media (max-width:650px){ .story-code-grid, .story-conflict{ grid-template-columns:1fr; } .story-kurosai{ align-items:flex-start; flex-direction:column; gap:.5rem; } }
.divider-glyph{ display:flex; align-items:center; gap:1rem; margin: 3rem 0; color: var(--text-faint); font-family: var(--font-tech); letter-spacing:.3em; font-size:.7rem; text-transform:uppercase; }
.divider-glyph::before, .divider-glyph::after{ content:""; flex:1; height:1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); }

/* section separators */
.jp-pattern{ position:absolute; inset:0; opacity:.05; pointer-events:none; background-image: repeating-linear-gradient(135deg, var(--purple) 0 1px, transparent 1px 34px); }

/* utility */
.center{ text-align:center; }
.mt-lg{ margin-top: 3rem; }
.muted{ color: var(--text-dim); }

/* ==========================================================================
   SINGLE-PAGE ROUTER — panel visibility
   Only one .route-panel is shown at a time (toggled by script.js's router).
   Each panel already contains its own <section>s, so this is purely a
   show/hide + fade layer on top of the existing design system above.
   ========================================================================== */
.route-panel{ display: none; }
.route-panel.active{ display: block; animation: route-fade .45s var(--ease); }
@keyframes route-fade{ from{ opacity: 0; transform: translateY(8px); } to{ opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce){
  .route-panel.active{ animation: none; }
}

/* ==========================================================================
   RESTORED PAGE-SPECIFIC STYLES
   These lived in each sub-page's own <head> before everything was merged
   into one HTML file — the merge only pulled <main> content, so these were
   missing. Restoring them here, with mobile breakpoints for each.
   ========================================================================== */

/* ---------------- LORE ---------------- */
.lore-chapter{ padding: 2.4rem; margin-bottom: 1.6rem; position:relative; overflow:hidden; }
.lore-chapter .chap-tag{ font-family: var(--font-tech); font-size:.72rem; letter-spacing:.3em; text-transform:uppercase; color: var(--pink); }
.lore-chapter h2{ font-size: clamp(1.6rem,3.4vw,2.2rem); margin-top:.6rem; }
.lore-body{ margin-top: 1.4rem; font-family: var(--font-display); font-size: 1.12rem; line-height: 1.9; color: var(--text-dim); max-width: 62ch; white-space: pre-line; }
.lore-chapter.locked{ filter: none; }
.lore-chapter.locked .lore-body{ color: var(--text-faint); filter: blur(.4px); }
.lock-badge{ display:inline-flex; align-items:center; gap:.5em; margin-top:1.4rem; font-family: var(--font-tech); font-size:.72rem; letter-spacing:.2em; text-transform:uppercase; color: var(--text-faint); border:1px solid var(--border-strong); padding:.5em 1em; border-radius:999px; }
@media (max-width: 600px){
  .lore-chapter{ padding: 1.6rem; }
  .lore-body{ font-size: 1rem; line-height: 1.8; }
}

/* ---------------- COLLECTION: toolbar + modal ---------------- */
.toolbar{ display:flex; flex-wrap:wrap; gap:1rem; align-items:center; margin-bottom: 2.4rem; }
.search-input{
  flex:1; min-width:220px; background: var(--panel); border:1px solid var(--border-strong); border-radius:999px;
  padding: .85em 1.4em; color: var(--text); font-family: var(--font-body); font-size:.95rem;
}
.search-input::placeholder{ color: var(--text-faint); }
.filter-select{
  background: var(--panel); border:1px solid var(--border-strong); border-radius:999px;
  padding: .8em 1.2em; color: var(--text); font-family: var(--font-tech); font-size:.8rem; letter-spacing:.06em; text-transform:uppercase;
}
.result-count{ font-family: var(--font-tech); font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; color: var(--text-faint); margin-bottom: 1.4rem; }
.empty-state{ text-align:center; padding: 5rem 1rem; color: var(--text-faint); font-family: var(--font-tech); letter-spacing:.1em; text-transform:uppercase; font-size:.85rem; }
@media (max-width: 600px){
  .toolbar{ flex-direction: column; align-items: stretch; }
  .search-input, .filter-select{ width: 100%; }
}

.modal-overlay{ position:fixed; inset:0; z-index:700; background: rgba(4,3,8,.78); backdrop-filter: blur(10px); display:flex; align-items:center; justify-content:center; padding:1.5rem; opacity:0; visibility:hidden; transition: opacity .35s var(--ease), visibility .35s; }
.modal-overlay.open{ opacity:1; visibility:visible; }
.modal{ width:min(760px,100%); max-height:88vh; overflow:auto; background: var(--panel-solid); border:1px solid var(--border-strong); border-radius: var(--radius-l); padding: 2rem; display:grid; grid-template-columns: 1fr 1fr; gap: 2rem; transform: translateY(20px); transition: transform .35s var(--ease); }
.modal-overlay.open .modal{ transform: translateY(0); }
@media (max-width:700px){
  .modal{ grid-template-columns:1fr; padding: 1.4rem; max-height: 92vh; }
}
@media (max-width: 420px){
  .modal-overlay{ padding: .75rem; }
}
.modal-close{ position:absolute; top:1.4rem; right:1.6rem; width:40px; height:40px; border-radius:50%; background: var(--panel); border:1px solid var(--border-strong); cursor:pointer; font-size:1.1rem; color:var(--text); }
.modal-media{ aspect-ratio:1/1; border-radius: var(--radius-m); background: var(--grad-panel); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; text-align:center; color: var(--text-faint); font-family: var(--font-tech); font-size:.75rem; letter-spacing:.06em; text-transform:uppercase; padding:1.5rem; }
.modal-trait-row{ display:flex; justify-content:space-between; padding:.7rem 0; border-bottom:1px solid var(--border); font-size:.92rem; }
.modal-trait-row span:first-child{ color: var(--text-faint); font-family: var(--font-tech); letter-spacing:.08em; text-transform:uppercase; font-size:.72rem; }

/* ---------------- WHITEPAPER ---------------- */
.wp-layout{ display:grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items:start; }
@media (max-width: 860px){ .wp-layout{ grid-template-columns: 1fr; } }
.wp-nav{ position: sticky; top: calc(var(--nav-h) + 1.5rem); display:flex; flex-direction:column; gap:.3rem; }
.wp-nav a{ font-family: var(--font-tech); font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; color: var(--text-faint); padding:.5em .8em; border-left: 2px solid transparent; }
.wp-nav a:hover, .wp-nav a.active{ color: var(--text); border-left-color: var(--purple); }
.wp-section{ margin-bottom: 3.6rem; scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
.wp-section h2{ font-size: clamp(1.6rem,3.2vw,2.1rem); }
.wp-section .eyebrow{ margin-bottom:.6rem; }
.wp-section p{ color: var(--text-dim); margin-top: 1rem; max-width: 68ch; }
.wp-list{ margin-top: 1.2rem; display:flex; flex-direction:column; gap:.6rem; }
.wp-list li{ display:flex; gap:.6em; color: var(--text-dim); font-size:.96rem; }
.wp-list li::before{ content:"⟡"; color: var(--purple); flex:none; }
@media (max-width: 860px){
  /* A sticky sidebar makes little sense once it's stacked above the content
     on mobile — turn it into a horizontal scrollable tab row instead. */
  .wp-nav{
    position: static; flex-direction: row; flex-wrap: wrap; gap: .5rem;
    margin-bottom: 1.6rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border);
  }
  .wp-nav a{ border-left: none; border-bottom: 2px solid transparent; padding: .4em .3em; }
  .wp-nav a:hover, .wp-nav a.active{ border-left-color: transparent; border-bottom-color: var(--purple); }
}

/* ---------------- MINT ---------------- */
.mint-layout{ display:grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items:start; }
@media (max-width: 900px){ .mint-layout{ grid-template-columns:1fr; } }
.mint-art .hero-placeholder{ aspect-ratio: 1/1; max-height:none; }
.mint-panel{ padding: 2.2rem; }
.mint-row{ display:flex; justify-content:space-between; align-items:center; padding: .9rem 0; border-bottom: 1px solid var(--border); font-size:.92rem; }
.mint-row span:first-child{ color: var(--text-faint); font-family: var(--font-tech); letter-spacing:.08em; text-transform:uppercase; font-size:.72rem; }
.qty-control{ display:flex; align-items:center; gap: 1rem; }
.qty-btn{ width:38px; height:38px; border-radius:50%; border:1px solid var(--border-strong); background: var(--panel); color: var(--text); font-size:1.1rem; cursor:pointer; }
.qty-btn:disabled{ opacity:.4; cursor:not-allowed; }
.qty-val{ font-family: var(--font-tech); font-size:1.2rem; min-width: 2ch; text-align:center; }
.status-banner{ margin-top:1.4rem; padding: .9rem 1.1rem; border-radius: var(--radius-s); border:1px solid var(--border-strong); background: var(--panel); font-size:.85rem; color: var(--text-dim); display:flex; align-items:center; gap:.7em; }
.status-banner .dot{ width:8px; height:8px; border-radius:50%; background: var(--pink); box-shadow:0 0 8px var(--pink); flex:none; }
.contract-box{ display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-top:1.4rem; padding: .8rem 1rem; border-radius: var(--radius-s); background: var(--bg-alt); border:1px solid var(--border); font-family: var(--font-tech); font-size:.78rem; word-break: break-all; }
.copy-btn{ background:none; border:1px solid var(--border-strong); border-radius:8px; padding:.4em .8em; cursor:pointer; color:var(--text-dim); font-size:.7rem; flex:none; }
@media (max-width: 600px){
  .mint-panel{ padding: 1.5rem; }
  .contract-box{ flex-direction: column; align-items: stretch; gap: .6rem; }
  .copy-btn{ width: 100%; }
}

/* ==========================================================================
   ADDITIONAL MOBILE-FIT FIXES
   ========================================================================== */

/* The hero tag pill ("The Ronin Clan is awakening") uses heavy letter-spacing
   which, combined with an inline-flex width-to-content box, could overflow
   the viewport on narrow phones instead of wrapping. */
.hero-tag{
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
@media (max-width: 420px){
  .hero-tag{ font-size: .66rem; letter-spacing: .18em; padding: .5em .9em; }
  .hero h1{ letter-spacing: 0; }
}

/* Tighten outer spacing a touch on very small phones so panels/cards don't
   feel edge-to-edge. */
@media (max-width: 420px){
  .container{ width: 94%; }
  .feature-card, .stat-card{ padding: 1.6rem 1.3rem; }
  .final-cta{ padding: 3rem 1.2rem; }
}

/* ==========================================================================
   REAL ARTWORK — once a .hero-placeholder holds an actual image, drop the
   dashed "placeholder" look and let the artwork fill the frame properly.
   ========================================================================== */
.hero-placeholder.has-image{
  padding: 0;
  border-style: solid;
  border-color: var(--border-strong);
  overflow: hidden;
  background: var(--bg-raised);
}
.hero-placeholder.has-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* NFT grid cards: once a real thumbnail exists, show it as a cover image
   instead of the dashed text placeholder. */
.nft-media.has-image{ background: var(--bg-raised); }
.nft-media.has-image img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.nft-card:hover .nft-media.has-image img{ transform: scale(1.08); }

/* ==========================================================================
   RONIN NAME GENERATOR
   Reuses existing tokens (--purple/--pink/--blue, --font-display/--font-tech,
   .panel, .trait-tab, .btn) so it inherits the site's look without any new
   color or type choices.
   ========================================================================== */
.namegen-panel{
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.namegen-modes{ justify-content: center; margin-bottom: 2rem; }

.namegen-display{
  min-height: 190px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--grad-panel);
  padding: 2rem 1.5rem;
  overflow: hidden;
}
.namegen-placeholder{ color: var(--text-faint); }
.namegen-glyph{
  font-family: var(--font-display); font-size: 2.6rem; display: block;
  margin-bottom: .6rem; opacity: .35;
}
.namegen-placeholder p{ font-family: var(--font-tech); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }

.namegen-result{ width: 100%; }
.namegen-name{
  font-family: var(--font-tech); font-weight: 700; letter-spacing: .04em;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  background: var(--grad-signal);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  word-break: break-word;
}
.namegen-kanji{
  font-family: var(--font-display); font-weight: 900; font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-top: .7rem; color: var(--text);
}
.namegen-meaning{
  font-family: var(--font-tech); letter-spacing: .18em; text-transform: uppercase;
  font-size: .78rem; color: var(--text-faint); margin-top: .8rem;
}

/* Brief text-scramble/glitch state while a name is "generating" */
.namegen-name.is-glitching, .namegen-kanji.is-glitching{
  animation: namegen-flicker .5s steps(2, end) infinite;
}
@keyframes namegen-flicker{
  0%, 100%{ opacity: 1; transform: translateX(0); }
  45%{ opacity: .55; transform: translateX(-1px); }
  55%{ opacity: .85; transform: translateX(1px); }
}
@media (prefers-reduced-motion: reduce){
  .namegen-name.is-glitching, .namegen-kanji.is-glitching{ animation: none; }
}

.namegen-actions{ display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.namegen-count{
  margin-top: 1.2rem; font-family: var(--font-tech); font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint);
}

.namegen-copy-flash{ color: var(--blue) !important; }

@media (max-width: 480px){
  .namegen-display{ padding: 1.6rem 1.2rem; min-height: 170px; }
  .namegen-actions{ flex-direction: column; align-items: stretch; }
  .namegen-actions .btn{ width: 100%; }
}
