/* Nostalgie™ — Classic High Five depth layer
   Warm obsidian, gold filigree, 3D bevels, micro-motion. */

:root {
  --l2-obsidian: #07060b;
  --l2-stone: #12101a;
  --l2-panel: rgba(18, 14, 24, 0.82);
  --l2-gold: #c9a227;
  --l2-gold-hi: #f3d98a;
  --l2-gold-dim: rgba(201, 162, 39, 0.35);
  --l2-ink: #e8dfd0;
  --l2-muted: #9a8f7c;
  --l2-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --l2-shadow-3d:
    inset 0 1px 0 rgba(243, 217, 138, 0.22),
    inset 0 -28px 48px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(80, 58, 18, 0.45),
    0 1px 0 rgba(255, 220, 140, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 4px 0 rgba(40, 28, 8, 0.7);
}

html { scroll-behavior: smooth; }

body.l2-world {
  background-color: var(--l2-obsidian) !important;
  color: var(--l2-ink);
}

body.l2-world::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -18%, rgba(201, 162, 39, 0.16), transparent 58%),
    radial-gradient(ellipse 40% 30% at 8% 88%, rgba(140, 40, 20, 0.12), transparent 50%),
    radial-gradient(ellipse 45% 35% at 92% 70%, rgba(60, 40, 120, 0.1), transparent 55%),
    linear-gradient(180deg, #0b0a10 0%, #07060b 40%, #05040a 100%);
}

body.l2-world::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  box-shadow: inset 0 0 180px rgba(0, 0, 0, 0.72);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.site-header.nc-header {
  background: linear-gradient(180deg, rgba(18, 14, 22, 0.88), rgba(10, 8, 14, 0.72)) !important;
  box-shadow:
    0 1px 0 rgba(243, 217, 138, 0.18) inset,
    0 12px 40px rgba(0, 0, 0, 0.45) !important;
  border-bottom-color: rgba(201, 162, 39, 0.22) !important;
}

#l2-dust {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
#l2-dust i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(243, 217, 138, 0.55);
  box-shadow: 0 0 8px rgba(243, 217, 138, 0.45);
  animation: l2-float var(--t, 14s) linear infinite;
  opacity: 0.35;
}
@keyframes l2-float {
  0% { transform: translate3d(0, 110vh, 0) scale(0.4); opacity: 0; }
  12% { opacity: 0.45; }
  100% { transform: translate3d(var(--x, 20px), -10vh, 0) scale(1); opacity: 0; }
}

.np-card,
.lore-card,
.faq-block,
.about-card,
.pack-card,
.donate-wrapper .wallet-status-bar,
.nostalgie-card,
.nc-feature-card,
.nc-stat-card,
.podium-card,
.ranking-table,
.hero-wrapper {
  position: relative;
  transform: none;
  transition: box-shadow 0.4s var(--l2-ease), border-color 0.4s ease, filter 0.4s ease;
}

.np-card,
.lore-card,
.faq-block,
.about-card,
.pack-card,
.nostalgie-card,
.nc-feature-card {
  background: var(--l2-panel) !important;
  border: 1px solid rgba(201, 162, 39, 0.22) !important;
  box-shadow: var(--l2-shadow-3d) !important;
  backdrop-filter: blur(16px) saturate(140%);
}

.np-card::before,
.lore-card::before,
.faq-block::before,
.about-card::before,
.pack-card::before,
.nostalgie-card::before,
.nc-feature-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 162, 39, 0.1);
  border-radius: inherit;
  pointer-events: none;
}

.np-card:hover,
.lore-card:hover,
.faq-block:hover,
.pack-card:hover,
.nc-feature-card:hover,
.podium-card:hover {
  transform: none;
  border-color: rgba(243, 217, 138, 0.5) !important;
  box-shadow:
    inset 0 1px 0 rgba(243, 217, 138, 0.4),
    inset 0 -28px 48px rgba(0, 0, 0, 0.4),
    0 22px 48px rgba(0, 0, 0, 0.58),
    0 0 48px rgba(201, 162, 39, 0.16) !important;
}

.btn.gold,
.hero-main-btn,
.pack-btn,
.btn-ritual.active,
.np-actions a,
.np-actions button {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--l2-ease), box-shadow 0.2s ease, filter 0.2s ease;
}
.btn.gold,
.hero-main-btn {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 22px rgba(201, 162, 39, 0.28),
    0 2px 0 #6a5010 !important;
}
.btn.gold:hover,
.hero-main-btn:hover,
.pack-card:hover .pack-btn {
  filter: brightness(1.08);
}
.btn.gold:active,
.hero-main-btn:active,
.np-actions button:active {
  transform: translateY(1px) scale(0.98);
}

.btn.gold::after,
.hero-main-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.28) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: l2-shimmer 4.8s ease-in-out infinite;
}
@keyframes l2-shimmer {
  0%, 55% { transform: translateX(-120%); }
  75% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

.nc-rate-chip,
.np-chip {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--l2-ease), border-color 0.25s ease;
}
.nc-rate-chip:hover,
.np-chip:hover {
  border-color: var(--l2-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 18px rgba(201, 162, 39, 0.22);
}

.np-bar {
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.06);
}
.np-bar > i {
  box-shadow: 0 0 12px currentColor;
}

.site-footer-l2 {
  position: relative;
  z-index: 2;
  margin-top: 64px;
  padding: 36px 20px 28px;
  border-top: 1px solid rgba(201, 162, 39, 0.18);
  background: linear-gradient(180deg, rgba(10, 8, 14, 0.2), rgba(0, 0, 0, 0.55));
  text-align: center;
  color: var(--l2-muted);
}
.site-footer-l2 .foot-brand {
  font-family: Cinzel, Georgia, serif;
  color: var(--l2-gold-hi);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.site-footer-l2 nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  margin: 12px 0 16px;
}
.site-footer-l2 a { color: #cfc3ae; font-size: 0.85rem; }
.site-footer-l2 a:hover { color: var(--l2-gold-hi); }
.site-footer-l2 .foot-rates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
}
.site-footer-l2 .foot-rates span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.25);
  color: #d8c9a4;
}

.rates-board {
  width: min(860px, 100%);
  margin: 8px auto 0;
  padding: 22px 22px 18px;
  border-radius: 18px;
  border: 1px solid rgba(201, 162, 39, 0.22);
  background: linear-gradient(180deg, rgba(18, 16, 24, 0.92), rgba(8, 7, 12, 0.94));
  box-shadow: inset 0 1px 0 rgba(243, 217, 138, 0.12), 0 18px 40px rgba(0, 0, 0, 0.35);
}
.rates-board__kicker {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d4af37;
}
.rates-board__head h2 {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: #f3d98a;
}
.rates-board__head p {
  margin: 8px 0 0;
  color: #a89b84;
  font-size: 0.92rem;
  line-height: 1.55;
}
.rates-board__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.rates-col {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.28);
}
.rates-col--patron {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: inset 0 1px 0 rgba(243, 217, 138, 0.12);
}
.rates-col h3 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d8c9a4;
}
.rates-col--patron h3 { color: #f3d98a; }
.rates-col ul { list-style: none; margin: 0; padding: 0; }
.rates-col li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
  color: #cfc3ae;
}
.rates-col li:last-child { border-bottom: 0; }
.rates-col b { color: #efe6d4; font-variant-numeric: tabular-nums; }
.rates-col--patron b { color: #f3d98a; }
.rates-board__note {
  margin: 14px 0 0;
  color: #8d7f68;
  font-size: 0.8rem;
  line-height: 1.5;
}
.rates-board__note code {
  color: #f3d98a;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85em;
}
@media (max-width: 700px) {
  .rates-board__grid { grid-template-columns: 1fr; }
}

.nc-reveal,
.nc-scroll-reveal {
  animation: l2-rise 0.8s var(--l2-ease) both;
}
@keyframes l2-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.podium-card {
  background: rgba(14, 12, 18, 0.85) !important;
  border: 1px solid rgba(201, 162, 39, 0.25) !important;
  box-shadow: var(--l2-shadow-3d) !important;
}
.ranking-table {
  background: rgba(10, 8, 14, 0.7);
  box-shadow: var(--l2-shadow-3d);
}

.n-input,
.np-sel,
input.apple-input {
  background: #0c0b10 !important;
  border: 1px solid rgba(201, 162, 39, 0.22) !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.55) !important;
  color: #efe6d4 !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.n-input:focus,
.np-sel:focus {
  outline: none;
  border-color: var(--l2-gold) !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.55), 0 0 0 3px rgba(201, 162, 39, 0.18) !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .np-card:hover, .pack-card:hover, .nc-feature-card:hover { transform: none; }
}

#l2-aurora {
  position: fixed;
  width: 560px;
  height: 560px;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(243, 217, 138, 0.11), transparent 70%);
  mix-blend-mode: screen;
}
.world-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: rgba(0, 0, 0, 0.28);
  color: #d8c9a4;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.world-pulse .pip {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 8px #ff3b30;
  animation: none;
}
.world-pulse.up .pip, .world-pulse .pip.on {
  background: #3dd68c;
  box-shadow: 0 0 10px #3dd68c;
  animation: led-breathe 2.8s ease-in-out infinite;
}
.world-pulse.boot .pip {
  background: #ff9f0a;
  box-shadow: 0 0 10px #ff9f0a;
  animation: led-boot 0.12s infinite alternate;
}
.world-pulse.down .pip {
  background: #ff3b30;
  box-shadow: 0 0 8px #ff3b30;
  animation: none;
}
.world-pulse b { color: #f3d98a; font-variant-numeric: tabular-nums; }
.pulse-flash { animation: valflash .7s ease; }
@keyframes valflash {
  0% { text-shadow: 0 0 14px rgba(243,217,138,.9); }
  100% { text-shadow: none; }
}
@keyframes pulse { 50% { opacity: .55; } }
@keyframes led-boot {
  from { opacity: .35; box-shadow: 0 0 4px #ff9f0a; }
  to { opacity: 1; box-shadow: 0 0 16px #ff9f0a, 0 0 28px rgba(255,159,10,.5); }
}
@keyframes led-breathe {
  0%, 100% { opacity: .75; transform: scale(1); box-shadow: 0 0 8px #3dd68c; }
  50% { opacity: 1; transform: scale(1.08); box-shadow: 0 0 16px #3dd68c, 0 0 26px rgba(61,214,140,.45); }
}
