/* =========================================================
   PRIXVILLE — Shared Styles
   Typography: Rokkitt (display headings, slab), Crimson Text (editorial body),
   JetBrains Mono (data)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Rokkitt:wght@500;600;700;800;900&family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Surfaces */
  --bg: #090909;
  --surface: #131313;
  --surface-2: #1a1a1a;

  /* Three-tier text hierarchy */
  --cream: #F6F0E6;          /* Headings, card labels, borders, icons, nav */
  --gray: #A8A8A8;            /* Secondary text, metadata, timestamps, addresses */
  --white: #FFFFFF;           /* High-priority data: ETH, counts, important buttons */

  /* Legacy aliases */
  --text: var(--cream);
  --muted: var(--gray);
  --muted-2: #6a6a6a;
  --border: var(--cream);
  --border-strong: var(--cream);
  --border-subtle: #232323;

  /* Accent — softer, more artistic tangerine */
  --accent: #FF7347;
  --accent-soft: rgba(255, 115, 71, 0.14);
  --accent-glow: rgba(255, 115, 71, 0.35);

  /* Type system */
  --font-display: 'Rokkitt', 'Times New Roman', Georgia, serif;
  --font-serif: 'Crimson Text', 'Times New Roman', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Comic shadow tokens — keyed to cream, double-layer for depth */
  --shadow-comic: 5px 5px 0 var(--cream);
  --shadow-comic-accent: 5px 5px 0 var(--accent);
  --shadow-comic-lg: 7px 7px 0 var(--cream);
  --shadow-comic-xl: 9px 9px 0 var(--cream);
  --shadow-stamp: 3px 3px 0 var(--cream);

  /* Two extra accent colors for data points */
  --green: #39FF6A;   /* live data: holder counts, ticket numbers */
  --blue:  #3DBAFF;   /* temporal data: share %, snapshot         */

  --sidebar-w: 240px;
  --sidebar-w-mobile: 0px;
  --topbar-h: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font-serif);
  background: var(--bg);
  color: var(--cream);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Paper grain — subtle SVG noise overlay across the whole site */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.94 0 0 0 0 0.9 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Make sure all content sits above the grain */
.app, .mobile-topbar {
  position: relative;
  z-index: 2;
}

/* Text hierarchy utilities */
.text-white { color: var(--white); }
.text-cream { color: var(--cream); }
.text-gray { color: var(--gray); }
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); }
.display { font-family: var(--font-display); }

a { color: inherit; text-decoration: none; }

/* =========================================================
   APP SHELL
   ========================================================= */

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

.main {
  min-width: 0; /* prevent grid overflow */
  padding: 32px 40px 80px;
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
  position: sticky; top: 0;
  height: 100vh;
  background: var(--surface);
  border-right: 2px solid var(--border);
  display: flex; flex-direction: column;
  padding: 20px 0;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px 24px;
  border-bottom: 2px solid var(--border);
}
.sidebar-brand img {
  width: 36px; height: 36px;
  border-radius: 12px 6px 10px 8px;
  border: 2px solid var(--border);
  box-shadow: 2px 2px 0 var(--border);
}
.sidebar-brand .brand-text {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--white);
}
.sidebar-brand .brand-text span { color: var(--accent); }

.sidebar-nav {
  flex: 1;
  padding: 20px 12px;
  display: flex; flex-direction: column; gap: 4px;
}

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: 14px 6px 10px 8px;
  font-size: 16px;
  color: var(--cream);
  letter-spacing: -0.01em;
  font-weight: 700;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  border: 2px solid transparent;
  background: none;
  font-family: var(--font-display);
  text-align: left;
  width: 100%;
}
.nav-item:nth-child(2n) { border-radius: 6px 14px 8px 10px; }
.nav-item:nth-child(3n) { border-radius: 10px 8px 14px 6px; }
.nav-item:hover {
  background: var(--surface-2);
  color: var(--white);
  border-color: var(--cream);
  transform: translateX(3px) rotate(-1.5deg);
}
.nav-item:active {
  transform: translate(3px, 3px) !important;
  box-shadow: 0 0 0 var(--cream) !important;
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}
.nav-item.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--cream);
  box-shadow: 3px 3px 0 var(--cream);
  transform: translateX(0) rotate(0deg);
}
.nav-item.active:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--cream);
}
.nav-item.active:active {
  transform: translate(3px, 3px) !important;
  box-shadow: 0 0 0 var(--cream) !important;
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}
.nav-item svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: var(--cream);
}
.nav-item.active svg {
  color: var(--white);
}

/* Chunky icon boxes — enclosed mini-frame per nav item */
.nav-icon-box {
  width: 26px; height: 26px;
  border: 2px solid currentColor;
  border-radius: 7px 3px 6px 3px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.04);
}
.nav-item.active .nav-icon-box {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.55);
}
.nav-icon-box svg {
  width: 13px; height: 13px;
}

.sidebar-divider {
  height: 2px;
  background: var(--border);
  margin: 16px 12px;
  border-radius: 999px;
}

.sidebar-label {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gray);
  letter-spacing: -0.01em;
  padding: 0 14px 8px;
  font-weight: 700;
}

.sidebar-socials {
  padding: 0 12px 12px;
  display: flex; gap: 8px;
}
.social-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  height: 40px;
  border: 2px solid var(--cream);
  border-radius: 10px 4px 8px 6px;
  color: var(--cream);
  background: var(--surface);
  box-shadow: 2px 2px 0 var(--cream);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.15s ease, box-shadow 0.15s ease;
}
.social-btn:nth-child(2) { border-radius: 4px 10px 6px 8px; }
.social-btn:nth-child(3) { border-radius: 8px 6px 10px 4px; }
.social-btn:hover {
  color: var(--accent);
  transform: translate(-1px, -1px) rotate(-3deg);
  box-shadow: 3px 3px 0 var(--accent);
}
.social-btn:nth-child(2):hover { transform: translate(-1px, -1px) rotate(2deg); }
.social-btn:nth-child(3):hover { transform: translate(-1px, -1px) rotate(-2deg); }
.social-btn:active {
  transform: translate(2px, 2px) !important;
  box-shadow: 0 0 0 var(--cream) !important;
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}
.social-btn svg {
  width: 14px; height: 14px;
}

/* =========================================================
   MOBILE / HAMBURGER
   ========================================================= */

.mobile-topbar {
  display: none;
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  padding: 0 16px;
  align-items: center; justify-content: space-between;
}
.mobile-topbar .brand-text {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--white);
}
.mobile-topbar .brand-text span { color: var(--accent); }

.hamburger {
  background: none; border: none; color: var(--text);
  cursor: pointer; padding: 8px;
  display: flex; align-items: center; justify-content: center;
}
.hamburger svg { width: 20px; height: 20px; }

.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 40;
}

@media (max-width: 880px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; top: 0; left: 0;
    width: min(300px, 80vw);
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 50;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.open { display: block; }
  .mobile-topbar { display: flex; justify-content: space-between; align-items: center; height: 64px; }
  .mobile-brand {
    font-family: var(--font-display);
    font-size: 28px; font-weight: 800; letter-spacing: -0.03em;
    color: var(--white); text-decoration: none;
  }
  .mobile-brand span { color: var(--accent); }
  .main { padding: 24px 20px 60px; }

  /* Sidebar brand is now an <a> — strip default link styling */
  .sidebar-nav { flex: unset; }
  .sidebar-divider { margin-top: 16px; }

  /* Hide sidebar brand by default on mobile (topbar had the brand,
     now topbar is just the hamburger — show brand only when nav opens) */
  .sidebar-brand { display: none; }
  .sidebar.open .sidebar-brand { display: flex; }
  body.nav-open .mobile-topbar { display: none; }

  /* Tablet: scale down page title so header wraps cleanly */
  .page-title { font-size: 32px; }

  /* Stickers: reduce offset so rotated pill stays on-screen */
  .sticker--top-right,
  .sticker--top-left { top: -10px; font-size: 11px; padding: 5px 10px; }
  .sticker--top-left { padding: 5px 12px 5px 14px; } /* keep asymmetric optical fix */

  /* Stat pips: slightly smaller offset + font at tablet */
  .stat-pip { top: -10px; font-size: 9px; padding: 3px 7px; }

  /* Panel shadow: reduce so it doesn't bleed into adjacent panels */
  .panel { box-shadow: 5px 5px 0 var(--cream); }
  .panel:hover { box-shadow: 7px 7px 0 var(--cream); transform: translate(-1px, -1px); }
  .panel:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--cream); }

  /* Stat shadow: reduce at tablet */
  .stat { box-shadow: 4px 4px 0 var(--cream); }
  .stat:hover { box-shadow: 6px 6px 0 var(--accent); }
  .stat:active { transform: translate(4px, 4px) !important; box-shadow: 0 0 0 var(--cream) !important; }
}

/* =========================================================
   PAGE HEADERS (common across pages)
   ========================================================= */

.page-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: none;
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 16px;
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background-image: radial-gradient(circle, var(--cream) 1.5px, transparent 1.5px);
  background-size: 14px 4px;
  background-repeat: repeat-x;
  background-position: center;
}
.page-title {
  font-family: var(--font-display);
  font-size: 42px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--cream);
  line-height: 1;
}
.page-title span { color: var(--accent); }
.page-tagline {
  font-family: var(--font-serif);
  font-size: 17px; color: var(--gray);
  margin-top: 8px;
  font-style: italic;
  line-height: 1.4;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  background: var(--accent);
  color: var(--white);
  border: 2.5px solid #000;
  border-radius: 999px;
  padding: 11px 24px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.01em;
  cursor: pointer;
  font-weight: 700;
  /* Shadow offset = 4px — must match active translate exactly */
  box-shadow: 4px 4px 0 #000;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
  display: inline-block;
  position: relative;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}
.btn:active {
  /* Translate exactly matches shadow offset — button "presses into" surface */
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 #000;
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}
.btn.connected {
  background: var(--surface);
  color: var(--cream);
  border-color: var(--cream);
  box-shadow: 4px 4px 0 var(--cream);
}
.btn.connected:hover {
  background: var(--surface-2);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--cream);
}
.btn.connected:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--cream);
}

.btn-secondary {
  background: var(--surface);
  color: var(--cream);
  border: 2.5px solid #000;
  border-radius: 999px;
  padding: 11px 24px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.01em;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--cream);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
  display: inline-block;
  position: relative;
}
.btn-secondary:hover {
  background: var(--surface-2);
  color: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--accent);
}
.btn-secondary:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--cream);
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}

/* =========================================================
   PANELS / CARDS / TABLES
   ========================================================= */

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
  margin-top: 12px;
  padding-bottom: 8px; /* room for comic shadow to show at bottom */
}
.stat {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 26px 14px 30px 16px;
  padding: 24px 26px;
  box-shadow: 5px 5px 0 var(--cream);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  position: relative;
  cursor: pointer;
}
.stat:nth-child(2) { border-radius: 14px 28px 16px 30px; transform: rotate(-0.4deg); }
.stat:nth-child(3) { border-radius: 30px 16px 14px 26px; transform: rotate(0.5deg); }
.stat:nth-child(4) { border-radius: 16px 30px 26px 14px; }
.stat:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--accent);
}
.stat:nth-child(2):hover { transform: translate(-2px, -2px) rotate(-0.4deg); box-shadow: 7px 7px 0 var(--accent); }
.stat:nth-child(3):hover { transform: translate(-2px, -2px) rotate(0.5deg);  box-shadow: 7px 7px 0 var(--accent); }
.stat:nth-child(4):hover { transform: translate(-2px, -2px) rotate(1.2deg);  box-shadow: 7px 7px 0 var(--accent); }
.stat:active {
  transform: translate(5px, 5px) !important;
  box-shadow: 0 0 0 var(--cream) !important;
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}
.stat-label { font-family: var(--font-display); font-size: 14px; color: var(--cream); letter-spacing: -0.01em; margin-bottom: 10px; font-weight: 700; }
.stat-value { font-family: var(--font-mono); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--white); }
.stat-value .unit { font-size: 14px; color: var(--gray); margin-left: 4px; font-weight: 400; }

.panel {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 28px 16px 24px 18px;
  margin-bottom: 28px;
  box-shadow: 7px 7px 0 var(--cream);
  overflow: visible;
  position: relative;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.panel:hover {
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 var(--cream);
}
.panel:active {
  transform: translate(7px, 7px);
  box-shadow: 0 0 0 var(--cream);
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}
/* Inner wrapper clips content to the panel's rounded corners without hiding stickers */
.panel > .panel-header,
.panel > .panel-body,
.panel > table,
.panel > #historyList {
  overflow: hidden;
}
.panel > .panel-header:first-of-type {
  border-radius: 26px 14px 0 0;
}
.panel > table:last-child,
.panel > #historyList:last-child {
  border-radius: 0 0 22px 16px;
}
.panel:nth-of-type(2n) {
  border-radius: 16px 28px 18px 24px;
}
.panel-header {
  padding: 20px 26px;
  border-bottom: 2px solid var(--cream);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
  background: var(--surface-2);
  color: var(--cream);
  font-weight: 700;
}
.panel-header .badge {
  background: var(--accent);
  color: var(--white);
  border: 1.5px solid var(--cream);
  border-radius: 999px;
  padding: 4px 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 2px 2px 0 var(--cream);
}
.panel-body { padding: 24px; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--border-subtle); }
th { font-family: var(--font-display); font-size: 13px; color: var(--gray); font-weight: 700; letter-spacing: -0.01em; }
td.addr { font-family: var(--font-mono); color: var(--gray); font-size: 12px; }
td.num { text-align: right; font-family: var(--font-mono); font-size: 13px; color: var(--white); font-weight: 500; }
th.num { text-align: right; }
tbody tr:hover { background: var(--surface-2); }
.rank { color: var(--gray); width: 40px; font-family: var(--font-mono); }

/* =========================================================
   STICKER ACCENTS — permanent rotated stamps for personality
   ========================================================= */

.sticker {
  position: absolute;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--cream);
  background: var(--surface);
  color: var(--cream);
  white-space: nowrap;
  box-shadow: var(--shadow-stamp);
  z-index: 3;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sticker--accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--cream);
  /* Extra vertical padding to match Connect Wallet button proportions */
  padding: 9px 14px;
}
.sticker--top-right {
  top: -12px; right: 20px;
  transform: rotate(8deg);
}
.sticker--top-left {
  top: -12px; left: 20px;
  transform: rotate(-8deg);
  /* Asymmetric padding: extra left+bottom to optically centre text after rotation */
  padding: 7px 16px 7px 18px;
}
.sticker--bottom-right {
  bottom: -12px; right: 20px;
  transform: rotate(-6deg);
}
.sticker--corner {
  top: 14px; right: 14px;
  transform: rotate(12deg);
  font-size: 11px;
  padding: 4px 10px;
}

/* Stamp — circular, fixed-tilt, marker on a page */
.stamp {
  position: absolute;
  width: 84px; height: 84px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.1;
  transform: rotate(-14deg);
  background: rgba(9, 9, 9, 0.6);
  pointer-events: none;
  z-index: 3;
}

/* Scatter marks — small decorative ✱ ° • marks in negative space */
.scatter-mark {
  position: absolute;
  font-family: var(--font-display);
  color: var(--cream);
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

/* Art bleed — subtle artwork peeking from page corners */
.art-bleed {
  position: fixed;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0.08;
  filter: grayscale(0.4);
  mix-blend-mode: screen;
}
.art-bleed--bottom-right {
  bottom: -80px; right: -80px;
  width: 420px; height: 420px;
  transform: rotate(8deg);
}
.art-bleed--top-left {
  top: 80px; left: -100px;
  width: 320px; height: 320px;
  transform: rotate(-12deg);
}
.art-bleed--top-right {
  top: 40px; right: -90px;
  width: 300px; height: 300px;
  transform: rotate(14deg);
  opacity: 0.06;
}
.art-bleed--bottom-left {
  bottom: -60px; left: -70px;
  width: 360px; height: 360px;
  transform: rotate(-10deg);
  opacity: 0.06;
}
.art-bleed img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 40px 20px 32px 16px;
}

@media (max-width: 880px) {
  .art-bleed { display: none; }
}

/* Dotted divider — marquee scroll on hover, all pages */
@keyframes dotMarquee {
  from { background-position: 0 center; }
  to   { background-position: 56px center; }
}
.page-header:hover::after,
.dashboard-header:hover::after,
.vision-hero:hover::after,
.roadmap-hero:hover::after,
.collection-intro:hover::after,
.dao-hero:hover::after {
  animation: dotMarquee 1.8s linear infinite;
}

/* =========================================================
   COMING SOON / EMPTY STATES
   ========================================================= */

.coming-soon {
  min-height: 60vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  border: 2px solid var(--cream);
  border-radius: 22px 12px 18px 14px;
  background: var(--surface);
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--cream);
}
.coming-soon::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, var(--accent-soft) 0%, transparent 50%);
  pointer-events: none;
}
.coming-soon-label {
  font-family: var(--font-display);
  font-size: 14px; color: var(--accent);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  padding: 5px 16px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  position: relative;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--accent);
}
.coming-soon-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
  color: var(--cream);
  line-height: 1.05;
}
.coming-soon-text {
  font-family: var(--font-serif);
  font-size: 18px; color: var(--gray);
  line-height: 1.6;
  max-width: 480px;
  position: relative;
  font-style: italic;
}

@media (max-width: 600px) {
  .coming-soon { padding: 40px 24px; }
  .coming-soon-title { font-size: 34px; }
  .page-title { font-size: 28px; }
  .stat-value { font-size: 20px; }

  /* Mobile: stickers smallest size, reduce rotation slightly to avoid edge clip */
  .sticker--top-right { top: -9px; right: 14px; transform: rotate(5deg); font-size: 10px; padding: 4px 9px; }
  .sticker--top-left  { top: -9px; left: 14px;  transform: rotate(-5deg); font-size: 10px; padding: 4px 11px 4px 12px; }

  /* Pip: minimal at mobile */
  .stat-pip { top: -9px; right: 12px; font-size: 9px; padding: 3px 6px; }

  /* Panels: tighter shadow at mobile, matching active press */
  .panel { box-shadow: 4px 4px 0 var(--cream); margin-bottom: 20px; }
  .panel:hover { box-shadow: 5px 5px 0 var(--cream); transform: translate(-1px, -1px); }
  .panel:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--cream); }

  /* Stats: tightest shadow at mobile */
  .stat { box-shadow: 3px 3px 0 var(--cream); }
  .stat:hover { box-shadow: 5px 5px 0 var(--accent); }
  .stat:active { transform: translate(3px, 3px) !important; box-shadow: 0 0 0 var(--cream) !important; }

  /* Buttons: tighter press at mobile */
  .btn, .btn-secondary { box-shadow: 3px 3px 0 #000; }
  .btn:active, .btn-secondary:active { transform: translate(3px, 3px); box-shadow: 0 0 0 #000; }
}

/* =========================================================
   NAV OPEN — lock body scroll on mobile so the page behind
   the sidebar drawer can't be scrolled while nav is open.
   Only active when .nav-open is toggled by nav.js.
   ========================================================= */
@media (max-width: 880px) {
  body.nav-open {
    overflow: hidden;
    /* On iOS, overflow:hidden alone isn't always enough.
       position:fixed locks it fully, but resets scroll position
       so we compensate with a CSS var set by nav.js if needed.
       For most cases overflow:hidden on body is sufficient. */
    touch-action: none;
  }
}
