/* =====================================================================
   NOREN — UI/UX DESIGN SYSTEM (Cartoon Adventure / Neobrutalist Theme)
   Mood: adventurous · playful · organic · premium cartoon collectibles
   ---------------------------------------------------------------------
   01. Design tokens          05. Buttons (cartoon bounce)
   02. Base / typography      06. Adventure cards
   03. Overlays / particle     07. Cartoon form inputs
   04. Nav + Campfire hero    08. Particle submit + sections + footer
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lilita+One&family=Fredoka:wght@300;400;500;600;700&display=swap');

/* ====================== 01. DESIGN TOKENS ====================== */
:root {
  /* — Core Noren palette — */
  --void-900: #fdf9f0;   /* warm ivory paper background */
  --void-800: #f7eed8;   /* sandy beige container */
  --void-700: #eadebe;   /* darker sandy container */
  --void-600: #d6c69f;
  --void-line: #1c1d21;  /* thick cartoon outline color */

  --cyan:     #5dcbc0;   /* Noren mint green */
  --cyan-dim: #4daaa1;
  --magenta:  #ff9ebb;   /* Noren pastel coral/pink */
  --magenta-dim: #e07f9c;
  --purple:   #8cc0e6;   /* Noren sky blue */
  --purple-2: #ff9f43;   /* Noren campfire orange/amber */
  --blood:    #e55039;   /* volcanic red */
  --wood:     #8e5a36;   /* warm rustic wood */

  /* — Text — */
  --ink:      #1c1d21;   /* dark charcoal text */
  --ink-soft: #484b54;   /* softer charcoal */
  --ink-mute: #727682;   /* muted gray-brown */

  /* — Functional — */
  --glow-cyan:    3px 3px 0px var(--void-line);
  --glow-magenta: 3px 3px 0px var(--void-line);
  --glow-purple:  4px 4px 0px rgba(28, 29, 33, 0.15);
  --grad-gate: conic-gradient(from 180deg, var(--cyan), var(--purple), var(--magenta), var(--purple-2), var(--cyan));
  --grad-text: linear-gradient(100deg, var(--ink) 0%, var(--wood) 100%);

  /* — Type — */
  --font-display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body:    "Fredoka", "Space Grotesk", system-ui, sans-serif;

  /* — Motion — */
  --ease-out: cubic-bezier(.25, 1, .5, 1);
  --ease-in-out: cubic-bezier(.68, -0.6, .32, 1.6); /* Bouncy cartoon easing */
  --dur: .35s;

  /* — Layout — */
  --maxw: 1180px;
  --radius: 20px; /* Playful rounded corners */
}

body.dark-theme {
  /* — Core Noren Dark palette — */
  --void-900: #12151c;   /* deep charcoal black */
  --void-800: #1e222b;   /* slate container background */
  --void-700: #2b303c;   /* lighter slate */
  --void-600: #393e4d;
  
  --ink:      #fdfbf7;   /* light ivory text */
  --ink-soft: #c8ceda;   /* soft blue-gray text */
  --ink-mute: #7d8494;   /* muted gray text */
  
  /* Keep the thick lines dark for Neobrutalist contrast */
  --void-line: #0c0e12; 
  
  /* Glows and gradients adapt for dark mode */
  --glow-cyan:    3px 3px 0px var(--void-line);
  --glow-magenta: 3px 3px 0px var(--void-line);
  --glow-purple:  4px 4px 0px rgba(0, 0, 0, 0.4);
  --grad-text: linear-gradient(100deg, var(--ink) 0%, var(--cyan) 100%);

  background-image: 
    radial-gradient(120% 120% at 50% 0%, #1c202a 0%, var(--void-900) 75%, #080a0d 100%),
    radial-gradient(circle at 10% 20%, rgba(93, 203, 192, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 158, 187, 0.03) 0%, transparent 40%) !important;
}

/* ====================== 02. BASE / TYPOGRAPHY ====================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--void-900);
  background-image: 
    radial-gradient(120% 120% at 50% 0%, #fffdf9 0%, var(--void-900) 70%, #ebdcb9 100%),
    radial-gradient(circle at 10% 20%, rgba(93, 203, 192, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 158, 187, 0.04) 0%, transparent 40%);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .2px;
  overflow-x: hidden;
  cursor: default;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400; /* Lilita One is pre-bolded */
  letter-spacing: .02em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease-out); }
a:hover { color: var(--cyan-dim); }

img { max-width: 100%; display: block; }

::selection { background: var(--cyan); color: var(--void-line); }

/* Scrollbar */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--void-800); border-left: 3px solid var(--void-line); }
::-webkit-scrollbar-thumb {
  background: var(--purple-2);
  border-radius: 20px; 
  border: 3px solid var(--void-line);
}

.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(70px, 12vw, 130px) clamp(20px, 5vw, 48px);
  z-index: 2;
}

.section__head { max-width: 620px; margin-bottom: 54px; }
.section__eyebrow {
  font-family: var(--font-display);
  font-size: 0.9rem; letter-spacing: 0.12em;
  color: var(--purple-2);
  margin: 0 0 12px;
  text-transform: uppercase;
}
.section__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--ink);
}
.section__lead { color: var(--ink-soft); font-size: 1.15rem; max-width: 52ch; margin-top: 14px; }

/* ====================== 03. OVERLAYS / PARTICLE FIELD ====================== */
.void-field {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: .85;
}
.overlay-grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .06;
  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='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
/* Cartoon/map grid instead of scanlines */
.overlay-scanlines {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.025;
  background-image: 
    linear-gradient(to right, var(--void-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--void-line) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ====================== 04A. NAV ====================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px clamp(20px, 5vw, 48px);
  transition: background var(--dur), border-color var(--dur);
  border-bottom: 3px solid transparent;
}
.nav.is-stuck {
  background: var(--void-900);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--void-line);
}
.theme-toggle {
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  background: var(--void-800); border: 3px solid var(--void-line);
  box-shadow: 2px 2px 0px var(--void-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  transition: transform 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out), background 0.12s var(--ease-out);
}
.theme-toggle:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--void-line);
  background: var(--void-700);
}
.theme-toggle:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--void-line);
}
.theme-toggle__icon { display: block; line-height: 1; }
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__mark {
  width: 48px; height: 48px; border-radius: 50%;
  background: url('../img/pfpbg.png') no-repeat center center;
  background-size: cover;
  border: 3px solid var(--void-line);
  box-shadow: 3px 3px 0px var(--void-line);
  position: relative;
  overflow: hidden;
}
.nav__mark::after {
  content: ""; position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 14px; color: var(--void-900);
}
.nav__word {
  font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.05em;
  color: var(--ink);
}
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-family: var(--font-display); font-size: 0.95rem;
  letter-spacing: 0.05em; color: var(--ink-soft); position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 4px;
  background: var(--cyan); border: 1.5px solid var(--void-line);
  border-radius: 10px;
  transition: width var(--dur) var(--ease-out);
}
.nav__links a:hover::after { width: 100%; }

/* ====================== 04B. HERO + CAMPFIRE PORTAL ====================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 20px 80px; overflow: hidden; z-index: 2;
}

/* — The breathing campfire portal — */
.portal {
  position: absolute; top: 50%; left: 50%;
  width: min(82vmin, 680px); aspect-ratio: 1; translate: -50% -50%;
  z-index: -1;
  animation: breathe 6s var(--ease-in-out) infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1);    filter: brightness(1); }
  50%      { transform: scale(1.05); filter: brightness(1.1); }
}
.portal__halo {
  position: absolute; inset: -15%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,159,67,.2) 0%, rgba(229,80,57,.06) 40%, transparent 70%);
  filter: blur(35px);
}
.portal__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 4px dashed var(--void-line);
  opacity: .75;
}
.portal__ring--1 { animation: spin 45s linear infinite; }
.portal__ring--2 { inset: 9%;  border: 3px dotted var(--void-line); animation: spin 30s linear infinite reverse; }
.portal__ring--3 { inset: 20%; border: 4px dashed var(--cyan); animation: spin 18s linear infinite; }
.portal__core {
  position: absolute; inset: 30%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--purple-2) 0%, var(--blood) 60%, var(--void-line) 100%);
  border: 4px solid var(--void-line);
  box-shadow: inset 0 0 40px rgba(255,159,67,.6), 4px 4px 0px rgba(0,0,0,0.1);
}
.portal__event-horizon {
  position: absolute; inset: 30%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(255,159,67,.65), transparent 30%, rgba(229,80,57,.55), transparent 60%);
  filter: blur(4px); opacity: .85;
  animation: spin 10s linear infinite;
  mix-blend-mode: color-burn;
}

.hero__content { position: relative; z-index: 3; max-width: 760px; }
.hero__eyebrow {
  font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.08em;
  color: var(--ink-soft); margin: 0 0 20px;
  text-transform: uppercase;
}
.hero__title { font-size: clamp(3.8rem, 15vw, 8.8rem); line-height: 0.9; }
.hero__line { display: block; }
.hero__line--accent {
  color: var(--cyan);
  -webkit-text-stroke: 3px var(--void-line);
  text-shadow: 4px 4px 0px var(--void-line);
}
.hero__sub {
  color: var(--ink-soft); font-size: 1.25rem; max-width: 46ch; margin: 24px auto 38px;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero__stats {
  display: flex; gap: clamp(20px, 5vw, 60px); justify-content: center; flex-wrap: wrap;
  margin: 64px 0 0; padding: 0;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat dt {
  font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.05em;
  color: var(--ink-mute); text-transform: uppercase;
}
.stat dd {
  margin: 0; font-family: var(--font-display); font-size: 1.8rem;
  color: var(--purple-2); 
  -webkit-text-stroke: 1px var(--void-line);
  text-shadow: 2px 2px 0px var(--void-line);
}
.stat dd span { color: var(--magenta); }
.pulse-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px;
  background: var(--blood); border: 1.5px solid var(--void-line);
  box-shadow: 1px 1px 0px var(--void-line);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1; transform:scale(1);} 50%{opacity:.5; transform:scale(.8);} }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--ink-mute);
}
.hero__scroll i {
  width: 3px; height: 40px;
  background: var(--void-line);
  border-radius: 10px;
  animation: descend 2s ease-in-out infinite;
}
@keyframes descend { 0%{transform:scaleY(0); transform-origin:top;} 50%{transform:scaleY(1);} 100%{transform:scaleY(0); transform-origin:bottom;} }

/* ====================== 05. BUTTONS (cartoon bounce) ====================== */
.btn {
  position: relative; overflow: hidden; cursor: pointer;
  font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--ink);
  padding: 14px 28px; border-radius: 14px;
  border: 3px solid var(--void-line);
  background: var(--void-800);
  box-shadow: 4px 4px 0px var(--void-line);
  transition: transform 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out), background 0.12s var(--ease-out);
  isolation: isolate;
}
.btn__label { position: relative; z-index: 2; }
.btn:hover { 
  transform: translate(-2px, -2px); 
  box-shadow: 6px 6px 0px var(--void-line); 
  background: var(--void-700); 
}
.btn:active { 
  transform: translate(2px, 2px); 
  box-shadow: 2px 2px 0px var(--void-line); 
}
.btn--lg { padding: 16px 36px; font-size: 1.1rem; border-radius: 16px; }
.btn--mini { padding: 8px 14px; font-size: 0.75rem; border-radius: 10px; border-width: 2px; box-shadow: 2px 2px 0px var(--void-line); }
.btn--mini:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0px var(--void-line); }
.btn--mini:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0px var(--void-line); }

.btn--primary {
  border-color: var(--void-line);
  background: var(--cyan);
  color: var(--void-line);
}
.btn--primary:hover { background: #6ee4d8; }

.btn--ghost { border-color: var(--void-line); background: var(--void-900); color: var(--ink-soft); }
.btn--ghost:hover { background: var(--void-800); color: var(--ink); }

/* Ripple injected by JS */
.btn .ripple {
  position: absolute; border-radius: 50%; transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none; z-index: 1;
  animation: ripple .5s var(--ease-out) forwards;
}

/* Wiggle animation triggers on hover */
[data-glitch-hover]:hover {
  animation: cartoon-wiggle 0.3s ease infinite;
}
@keyframes cartoon-wiggle {
  0%, 100% { transform: translate(-2px, -2px) rotate(0deg); }
  33% { transform: translate(-3px, -1px) rotate(-1.2deg); }
  66% { transform: translate(-1px, -3px) rotate(1.2deg); }
}
.glitch-layer {
  display: none !important;
}

/* ====================== 06. ADVENTURE CARDS ====================== */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}
.holo-card { perspective: 1000px; transform-style: preserve-3d; }
.holo-card__inner {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--void-800);
  border: 3px solid var(--void-line);
  box-shadow: 4px 4px 0px var(--void-line);
  transition: transform .15s var(--ease-out), box-shadow var(--dur), border-color var(--dur);
  transform: rotateX(var(--ry,0)) rotateY(var(--rx,0));
  will-change: transform;
}
.holo-card:hover .holo-card__inner {
  border-color: var(--void-line);
  box-shadow: 8px 8px 0px var(--void-line);
}
/* Golden glare sheen follows pointer */
.holo-card__sheen {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  transition: opacity var(--dur);
  background:
    radial-gradient(420px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.24), transparent 45%),
    linear-gradient(135deg, rgba(255,223,0,0.15) 0%, rgba(255,159,67,0.15) 50%, rgba(255,255,255,0) 100%);
  mix-blend-mode: soft-light;
}
.holo-card:hover .holo-card__sheen { opacity: 1; }

.holo-card__art {
  position: relative; aspect-ratio: 1 / 1; display: flex; align-items: flex-start; justify-content: space-between;
  padding: 16px; overflow: hidden;
  border-bottom: 3px solid var(--void-line);
}
.holo-card__art::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center; opacity: 1;
  transition: transform 1.2s var(--ease-out);
}
.holo-card:hover .holo-card__art::before { transform: scale(1.08); }
.holo-card__art--01::before { background-image: url('../../collection/1.jpeg'); }
.holo-card__art--02::before { background-image: url('../../collection/2.jpeg'); }
.holo-card__art--03::before { background-image: url('../../collection/3.jpeg'); }
.holo-card__art--04::before { background-image: url('../../collection/4.jpeg'); }
.holo-card__art--05::before { background-image: url('../../collection/5.jpeg'); }
.holo-card__art--06::before { background-image: url('../../collection/6.jpeg'); }

.holo-card__rarity {
  position: relative; z-index: 2; font-family: var(--font-display); font-size: .65rem; font-weight: 700;
  letter-spacing: 0.05em; padding: 5px 10px; border-radius: 8px;
  border: 2px solid var(--void-line);
  color: var(--void-line);
  box-shadow: 2px 2px 0px var(--void-line);
}
.rarity--mythic    { background: var(--cyan); }
.rarity--legendary { background: var(--magenta); }
.rarity--rare      { background: var(--purple); }
.rarity--cursed    { background: var(--purple-2); }

.holo-card__id { 
  position: relative; z-index: 2; font-family: var(--font-display); font-size: 0.8rem; 
  color: var(--ink); border: 2px solid var(--void-line); background: var(--void-900);
  padding: 2px 6px; border-radius: 6px; box-shadow: 1.5px 1.5px 0px var(--void-line);
}

.holo-card__meta { padding: 18px; position: relative; z-index: 2; }
.holo-card__meta h3 { font-size: 1.15rem; letter-spacing: .02em; margin-bottom: 14px; }
.holo-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.holo-card__price { 
  font-family: var(--font-display); font-size: 1.1rem; color: var(--purple-2); 
  -webkit-text-stroke: 0.5px var(--void-line); text-shadow: 1.5px 1.5px 0px var(--void-line);
}
.holo-card__price i { color: var(--ink-soft); font-style: normal; }

/* ====================== 07. CARTOON FORM INPUTS ====================== */
.field { position: relative; margin-bottom: 30px; }
.field__input {
  width: 100%; background: var(--void-900);
  border: 3px solid var(--void-line); border-radius: 14px;
  color: var(--ink); font-family: var(--font-body); font-size: 1rem;
  padding: 22px 16px 10px; outline: none;
  box-shadow: 3px 3px 0px var(--void-line);
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
}
.field__input:focus { border-color: var(--cyan); box-shadow: 5px 5px 0px var(--void-line); background: var(--void-800); }
.field__label {
  position: absolute; left: 16px; top: 18px; pointer-events: none;
  color: var(--ink-soft); font-size: 1rem; letter-spacing: .02em;
  transition: all .2s var(--ease-out);
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
  top: 6px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--wood); font-family: var(--font-display);
}
.field__line {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: var(--cyan); transition: width .3s var(--ease-out);
}
.field__input:focus ~ .field__line { width: 100%; }
.field__input.is-invalid { border-color: var(--blood); box-shadow: 4px 4px 0px var(--blood); animation: shake .35s; }
@keyframes shake { 0%,100%{transform:translateX(0);} 25%{transform:translateX(-6px);} 75%{transform:translateX(6px);} }

/* ====================== 08A. PARTICLE SUBMIT BUTTON ====================== */
.btn-particle {
  position: relative; cursor: pointer; overflow: hidden;
  width: 100%; max-width: 320px; min-height: 60px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.05em;
  color: var(--void-line); border: 3px solid var(--void-line); border-radius: 16px;
  background: var(--cyan);
  box-shadow: 4px 4px 0px var(--void-line); isolation: isolate;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur), background var(--dur);
}
.btn-particle--wide { max-width: 100%; }
.btn-particle:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0px var(--void-line); }
.btn-particle:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0px var(--void-line); }
.btn-particle__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.btn-particle__label { position: relative; z-index: 2; transition: opacity .3s, transform .3s; }
.btn-particle__success {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  opacity: 0; transform: scale(.8); transition: opacity .4s, transform .4s;
  color: var(--void-line); letter-spacing: 0.05em;
}
.btn-particle.is-loading { background: var(--void-700); }
.btn-particle.is-loading .btn-particle__label { opacity: 0; transform: scale(.8); }
.btn-particle.is-success { background: var(--magenta); }
.btn-particle.is-success .btn-particle__label { opacity: 0; }
.btn-particle.is-success .btn-particle__success { opacity: 1; transform: scale(1); }

.btn:disabled, .btn-particle:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: 4px 4px 0px var(--void-line) !important;
}

/* ====================== 08B. MINT ====================== */
.mint__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 6vw, 70px); align-items: center; }
.mint__progress { margin: 34px 0; }
.mint__progress-head { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 10px; }
.mint__bar { height: 16px; border-radius: 20px; background: var(--void-900); overflow: hidden; border: 3px solid var(--void-line); }
.mint__bar i { display: block; height: 100%; width: var(--p,0); background: var(--cyan); border-radius: 20px; transition: width 1.2s var(--ease-out); }

.mint__counter { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.stepper {
  width: 48px; height: 48px; border-radius: 12px; cursor: pointer;
  background: var(--void-900); border: 3px solid var(--void-line); color: var(--ink);
  font-size: 1.6rem; font-family: var(--font-display);
  box-shadow: 2px 2px 0px var(--void-line);
  transition: all 0.12s var(--ease-out);
}
.stepper:hover { box-shadow: 3px 3px 0px var(--void-line); transform: translate(-1px, -1px); background: var(--void-800); }
.stepper:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0px var(--void-line); }
.mint__qty { font-family: var(--font-display); font-size: 2.2rem; min-width: 2ch; text-align: center; color: var(--ink); }
.mint__cost { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink-soft); letter-spacing: .05em; }
.mint__cost strong { color: var(--blood); }
.mint__fineprint { color: var(--ink-mute); font-size: 0.85rem; margin-top: 16px; max-width: 42ch; }

.mint__visual { display: grid; place-items: center; }
@keyframes float {
  0%, 100% { translate: 0 0px; }
  50% { translate: 0 -12px; }
}
.mint-relic {
  position: relative; width: min(80%, 360px); aspect-ratio: 3/4;
  transition: transform .15s var(--ease-out);
  transform: rotateX(var(--ry,0)) rotateY(var(--rx,0));
  will-change: transform;
  animation: float 4.5s ease-in-out infinite;
}
.mint-relic__glow { position: absolute; inset: -20%; background: radial-gradient(circle, rgba(93, 203, 192, .22), transparent 65%); filter: blur(30px); animation: breathe 6s var(--ease-in-out) infinite; }
.mint-relic__frame {
  position: relative; width: 100%; height: 100%; border-radius: 24px; overflow: hidden;
  background: var(--void-800) url('../hidden.png') no-repeat center/cover;
  border: 3px solid var(--void-line); display: grid; place-items: center;
  box-shadow: 6px 6px 0px var(--void-line);
}
.mint-relic__scan { 
  position: absolute; left: 0; right: 0; height: 35%; top: -35%; 
  background: linear-gradient(transparent, rgba(93, 203, 192, 0.15), transparent); 
  animation: relic-scan 3.5s linear infinite; 
}
@keyframes relic-scan { to { top: 135%; } }
.mint-relic__q { 
  display: none;
  font-family: var(--font-display); font-size: 8rem; color: var(--ink); 
  text-shadow: 4px 4px 0px rgba(0,0,0,0.15); animation: pulse 3s ease-in-out infinite; 
}
.mint-relic__tag { 
  position: absolute; top: 16px; left: 16px; font-family: var(--font-display); font-size: 0.72rem; 
  letter-spacing: 0.05em; color: var(--void-line); border: 2px solid var(--void-line); 
  background: var(--magenta); padding: 5px 10px; border-radius: 8px; box-shadow: 2px 2px 0px var(--void-line);
}

/* ====================== 08C. LORE ====================== */
.lore { text-align: center; }
.lore__quote {
  max-width: 760px; margin: 0 auto; font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.4; letter-spacing: 0.02em;
  color: var(--ink); position: relative;
}
.lore__quote cite { display: block; margin-top: 24px; font-family: var(--font-body); font-style: normal; font-size: 1rem; letter-spacing: 0.05em; color: var(--wood); }
/* ====================== 08D. JOIN ====================== */
.join__panel {
  max-width: 620px; margin: 0 auto; text-align: center;
  padding: clamp(34px, 5vw, 60px); border-radius: 24px;
  background: var(--void-800);
  border: 3px solid var(--void-line);
  box-shadow: 6px 6px 0px var(--void-line);
}
.join__form { margin-top: 36px; text-align: left; }

/* ====================== 08E. FOOTER ====================== */
.footer { position: relative; z-index: 2; border-top: 3px solid var(--void-line); padding: 50px clamp(20px,5vw,48px); max-width: var(--maxw); margin: 60px auto 0; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; }
.footer__socials { display: flex; gap: 26px; font-family: var(--font-display); font-size: 0.95rem; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 2px solid var(--void-line); color: var(--ink-soft); font-size: 0.85rem; }

/* ====================== REVEAL / SUCK-IN ====================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: var(--delay, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

[data-suck] { transition: transform .6s var(--ease-in-out), opacity .6s, filter .6s; }
[data-suck].is-sucked { transform: scale(.88) translateY(-40px); opacity: 0; filter: blur(4px); }

/* ====================== RESPONSIVE ====================== */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .mint__grid { grid-template-columns: 1fr; }
  .mint__visual { order: -1; }
}
@media (max-width: 520px) {
  .hero__stats { gap: 26px; }
  .footer__bottom { flex-direction: column; }
}

/* ====================== ACCESSIBILITY ====================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
  .reveal { opacity: 1; transform: none; }
  .void-field, .overlay-scanlines { display: none; }
}
:focus-visible { outline: 3px solid var(--purple-2); outline-offset: 3px; border-radius: 6px; }

/* ====================== 08F. TRIBE TASKS ====================== */
.tribe-tasks {
  margin-bottom: 30px;
}
.tasks-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--purple-2);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}
.task-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--void-900);
  border: 3px solid var(--void-line);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 12px;
  box-shadow: 3px 3px 0px var(--void-line);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur), background var(--dur);
}
.task-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px var(--void-line);
  background: var(--void-800);
}
.task-card.is-verified {
  border-color: var(--cyan);
  box-shadow: 3px 3px 0px var(--cyan);
  background: rgba(93, 203, 192, 0.05);
}
body.dark-theme .task-card.is-verified {
  background: rgba(93, 203, 192, 0.02);
}
.task-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.task-icon {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--void-800);
  border: 2px solid var(--void-line);
  border-radius: 10px;
}
.task-card.is-verified .task-icon {
  background: var(--cyan);
  border-color: var(--cyan);
}
.task-details {
  text-align: left;
}
.task-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.task-link {
  font-size: 0.8rem;
  color: var(--purple-2);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.task-link:hover {
  color: var(--cyan);
  text-decoration: underline;
}
.task-verify-btn {
  padding: 6px 16px;
  font-size: 0.8rem;
  background: var(--wood);
  border: 2px solid var(--void-line);
  border-radius: 10px;
  color: var(--void-900);
  font-family: var(--font-display);
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--void-line);
  transition: all var(--dur) var(--ease-out);
}
.task-verify-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--void-line);
  background: var(--ink-soft);
  color: var(--void-900);
}
.task-verify-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--void-line);
}
.task-verify-btn.is-loading {
  background: var(--void-700) !important;
  color: var(--ink-soft) !important;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}
.task-verify-btn.is-success {
  background: var(--cyan) !important;
  color: var(--void-line) !important;
  border-color: var(--cyan) !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: default;
}

/* ====================== 08G. NOTIFICATIONS ====================== */
#noren-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.noren-toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  background: var(--void-800);
  border: 3px solid var(--void-line);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 4px 4px 0px var(--void-line);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-body);
  color: var(--ink);
  transform: translateY(80px) scale(0.8);
  opacity: 0;
  transition: all 0.4s var(--ease-in-out);
}
.noren-toast.is-show {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.noren-toast.is-fade {
  transform: translateY(-20px) scale(0.8);
  opacity: 0;
}
.noren-toast--error {
  border-color: var(--blood);
  box-shadow: 4px 4px 0px var(--blood);
}
.noren-toast--warning {
  border-color: var(--purple-2);
  box-shadow: 4px 4px 0px var(--purple-2);
}
.noren-toast--success {
  border-color: var(--cyan);
  box-shadow: 4px 4px 0px var(--cyan);
}
.noren-toast__content {
  flex: 1;
}
.noren-toast__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}
.noren-toast--error .noren-toast__title { color: var(--blood); }
.noren-toast--warning .noren-toast__title { color: var(--purple-2); }
.noren-toast--success .noren-toast__title { color: var(--cyan); }

.noren-toast__msg {
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 500;
}
.noren-toast__close {
  background: none;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  line-height: 1;
  font-weight: bold;
  transition: color 0.2s;
}
.noren-toast__close:hover {
  color: var(--ink);
}

/* ====================== 09. ONLINE ENVIRONMENT ADAPTATION ====================== */
.online-env #mint,
.online-env .nav-mint {
  display: none !important;
}


