/* =====================================================================
   TENURE — design system
   Black glass, cream type, sand accents. One accent family used often:
   heading full stops, progress, active states, panel edges, stat boxes.
   ===================================================================== */

:root {
  /* Light theme. Names kept from the original system: --ink = page/background tones,
     --cream = text tones. --on-sand is text placed on sand fills. */
  --ink: #f4eddf;
  --ink-2: #ece3d0;
  --ink-3: #e3d8c1;
  --ink-4: #d9ccb2;
  --cream: #17130e;
  --cream-2: #3e362b;
  --cream-3: #786e5e;
  --sand: #c48d2e;
  --sand-2: #a87522;
  --sand-3: #9a6a1c;
  --sand-deep: #7a5418;
  --sand-glow: #e2b35d;
  --on-sand: #17130e;
  --paper: #fffaf0;
  --stat-bg: #17130e;
  --stat-text: #b8ad97;
  --up: #4c8a2c;
  --down: #c0492c;

  --line: rgba(23, 19, 14, 0.12);
  --line-2: rgba(23, 19, 14, 0.2);
  --glass: rgba(255, 251, 242, 0.58);
  --glass-2: rgba(255, 251, 242, 0.75);
  --sand-line: rgba(168, 117, 34, 0.42);

  --r-xl: 34px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --max: 1480px;
  --gutter: clamp(18px, 3vw, 44px);

  --f-head: 'TenureHead', 'Bricolage Grotesque', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.6;
  font-feature-settings: 'tnum' 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
body.intro-active { overflow: hidden; }
body.has-cursor, body.has-cursor * { cursor: none !important; }

img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--sand-glow); color: var(--on-sand); }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
  color: var(--cream);
}
h1 { font-size: clamp(56px, 8.6vw, 164px); letter-spacing: -0.035em; line-height: .94; }
h2 { font-size: clamp(42px, 5.2vw, 88px); }
h3 { font-size: clamp(26px, 2.2vw, 36px); letter-spacing: -0.015em; }
h4 { font-size: 22px; letter-spacing: -0.01em; }
p { margin: 0; }
.dot { color: var(--sand); }
.muted { color: var(--cream-3); }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Background layers ---------- */
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.bg-fallback {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vw 60vh at 30% 45%, rgba(226, 179, 93, .10), transparent 70%),
    radial-gradient(50vw 50vh at 80% 90%, rgba(226, 179, 93, .06), transparent 70%);
}
body.scene-ready .bg-fallback { opacity: .55; }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.9'/></svg>");
  animation: grain 9s steps(8) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 62px; padding: 0 30px; border-radius: 999px;
  font-weight: 700; font-size: 18px; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-xl { height: 72px; padding: 0 38px; font-size: 20px; }
.btn-primary { background: var(--sand); color: var(--on-sand); }
.btn-primary::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--sand-3), var(--sand));
  transform: translateY(-101%); transition: transform .5s var(--ease);
}
.btn-primary:hover::after { transform: translateY(0); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--cream); background: rgba(255, 251, 242, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--sand); color: var(--sand-3); }
.btn-wallet { height: 54px; padding: 0 24px; border: 1px solid var(--sand-line); color: var(--sand-3); background: rgba(226, 179, 93, .07); }
.btn-wallet:hover { background: rgba(226, 179, 93, .16); }
.btn-wallet.connected { color: var(--on-sand); background: var(--sand); border-color: var(--sand); }
.btn[disabled] { opacity: .45; pointer-events: none; }

.icon-btn {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: rgba(255, 251, 242, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s, color .3s, transform .3s var(--ease);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { border-color: var(--sand); color: var(--sand-3); transform: rotate(-8deg); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 16px; font-weight: 600; color: var(--cream-2);
  transition: all .25s;
}
.chip:hover { color: var(--cream); border-color: var(--cream-3); }
.chip.active { background: var(--sand); color: var(--on-sand); border-color: var(--sand); }

/* ---------- Top bar ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 600; pointer-events: none; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 104px; }
.topbar a, .topbar button { pointer-events: auto; }
.logo { display: inline-flex; align-items: center; gap: 14px; }
.logo-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--sand); color: var(--on-sand); transition: transform .6s var(--ease); }
.logo-mark svg { width: 26px; height: 26px; }
.logo:hover .logo-mark { transform: rotate(180deg); }
.logo-word { font-family: var(--f-head); font-weight: 700; font-size: 32px; letter-spacing: -0.03em; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.ca-chip {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 251, 242, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 16px; font-weight: 600; color: var(--cream-2);
}
.ca-chip b { color: var(--sand); font-weight: 700; }
.ca-chip:hover { border-color: var(--sand-line); }

/* ---------- Scroll progress (a sand column) ---------- */
.sand-progress { position: fixed; right: 16px; top: 132px; bottom: 132px; width: 3px; border-radius: 3px; background: var(--line); z-index: 500; pointer-events: none; }
.sand-progress span { position: absolute; left: 0; top: 0; width: 100%; height: 0%; border-radius: 3px; background: linear-gradient(180deg, var(--sand-2), var(--sand)); }
.sand-progress span::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--sand-3); box-shadow: 0 0 14px var(--sand); }

/* ---------- View & pages ---------- */
#view { position: relative; z-index: 2; outline: none; }
.page { padding: 150px 0 60px; min-height: 100vh; }
.page-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.page-head p { color: var(--cream-2); font-size: 20px; max-width: 560px; justify-self: end; }
.page-head .head-actions { justify-self: end; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Frosted panels with a sand edge */
.panel {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.panel::before {
  content: ''; position: absolute; left: 34px; top: -1px; width: 120px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--sand), transparent);
}
.panel::after {
  content: ''; position: absolute; left: -1px; top: 34px; width: 2px; height: 80px; border-radius: 2px;
  background: linear-gradient(180deg, var(--sand), transparent);
}
.panel-pad { padding: clamp(24px, 3vw, 48px); }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }

/* Stat boxes */
.stat {
  position: relative; padding: 24px 26px 22px; border-radius: var(--r-md);
  background: var(--stat-bg); border: 1px solid var(--sand-line);
  box-shadow: inset 0 1px 0 rgba(242, 212, 145, .08);
}
.stat b { display: block; font-family: var(--f-head); font-weight: 700; font-size: clamp(40px, 4vw, 64px); line-height: 1; color: var(--sand-glow); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; font-size: 16px; color: var(--stat-text); line-height: 1.4; }
.stat.sm b { font-size: 40px; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

/* Reveal: content pours in from the top edge */
[data-reveal] { clip-path: inset(0 0 100% 0); transform: translateY(28px); transition: clip-path 1.1s var(--ease), transform 1.1s var(--ease); }
[data-reveal].in { clip-path: inset(0 0 -20% 0); transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; }
.hero-inner { width: 100%; display: grid; grid-template-columns: 1fr minmax(0, 860px); }
.hero-copy { grid-column: 2; padding-top: 40px; padding-left: clamp(0px, 2vw, 40px); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.hero.play h1 .line > span { transform: none; }
.hero.play h1 .line:nth-child(2) > span { transition-delay: .1s; }
.hero.play h1 .line:nth-child(3) > span { transition-delay: .2s; }
.hero-sub { margin-top: 30px; font-size: 21px; color: var(--cream-2); max-width: 520px; opacity: 0; transform: translateY(16px); transition: all 1s var(--ease) .35s; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; transform: translateY(16px); transition: all 1s var(--ease) .45s; }
.hero-ca { margin-top: 34px; display: inline-flex; align-items: center; gap: 14px; opacity: 0; transition: opacity 1s .6s; font-size: 16px; color: var(--cream-3); }
.hero-ca button, .hero-ca .ca-x { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; border: 1px dashed var(--sand-line); color: var(--cream-2); font-weight: 600; }
.hero-ca button:hover, .hero-ca .ca-x:hover { border-style: solid; color: var(--sand-3); }
.hero-ca svg { width: 18px; height: 18px; }
.hero.play .hero-sub, .hero.play .hero-actions { opacity: 1; transform: none; }
.hero.play .hero-ca { opacity: 1; }
.hero-scrollcue { position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; color: var(--cream-3); }
.hero-scrollcue i { width: 2px; height: 46px; background: linear-gradient(var(--sand), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Home: tier timeline */
.timeline { padding: clamp(28px, 4vw, 60px); }
.timeline-track { position: relative; height: 14px; border-radius: 14px; background: rgba(23, 19, 14, .07); margin: 70px 0 30px; }
.timeline-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 14px; background: linear-gradient(90deg, var(--sand-deep), var(--sand), var(--sand-3)); }
.timeline-fill::after { content: ''; position: absolute; right: -3px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--sand-3); box-shadow: 0 0 0 6px rgba(226, 179, 93, .2), 0 0 30px var(--sand); }
.timeline-marks { position: absolute; inset: 0; }
.timeline-mark { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 2px; height: 34px; background: var(--line-2); }
.timeline-mark span { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 15px; color: var(--cream-3); }
.tier-cards { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 16px; }
.tier-card { padding: 26px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255, 251, 242, .55); transition: border-color .5s, background .5s, transform .5s var(--ease); }
.tier-card b { display: block; font-family: var(--f-head); font-size: clamp(54px, 5vw, 92px); line-height: .95; letter-spacing: -0.04em; color: var(--cream-3); transition: color .5s; }
.tier-card h4 { margin-top: 18px; }
.tier-card p { margin-top: 6px; color: var(--cream-3); font-size: 16px; }
.tier-card.lit { border-color: var(--sand-line); background: rgba(226, 179, 93, .06); transform: translateY(-6px); }
.tier-card.lit b { color: var(--sand); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.section { margin-top: clamp(80px, 10vw, 160px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 36px; }
.section-head p { max-width: 520px; color: var(--cream-2); }

.flip-card { position: relative; padding: clamp(28px, 4vw, 56px); overflow: hidden; }
.flip-card .flip-glass { width: 120px; height: 170px; transition: transform 1.1s var(--ease-io); }
.flip-card:hover .flip-glass { transform: rotate(180deg); }
.flip-card h3 { margin-top: 30px; }
.flip-card p { margin-top: 14px; color: var(--cream-2); max-width: 460px; }

.mini-board { display: grid; gap: 10px; }
.mini-row { display: grid; grid-template-columns: 52px 1fr auto 120px; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid transparent; transition: border-color .3s, background .3s; }
.mini-row:hover { border-color: var(--line-2); background: rgba(23, 19, 14, .03); }

/* ---------- Token bits ---------- */
.tok-icon { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--ink-3); border: 1px solid var(--line); flex: none; }
.tok-icon.ph { display: grid; place-items: center; font-family: var(--f-head); font-weight: 700; color: var(--sand); font-size: 20px; }
.tok-name { font-weight: 700; font-size: 18px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tok-sym { font-size: 15px; color: var(--cream-3); }
.up { color: var(--up); }
.down { color: var(--down); }
.spark { width: 100%; height: 44px; }

/* ---------- Board ---------- */
.board-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.seg { display: inline-flex; padding: 6px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 251, 242, .55); gap: 4px; }
.seg button { height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 600; color: var(--cream-2); transition: all .25s; }
.seg button:hover { color: var(--cream); }
.seg button.active { background: var(--sand); color: var(--on-sand); }
.field {
  height: 62px; padding: 0 22px; border-radius: 16px; border: 1px solid var(--line-2);
  background: rgba(255, 253, 248, .75); font-size: 18px; outline: none; transition: border-color .25s, box-shadow .25s;
}
.field:focus { border-color: var(--sand); box-shadow: 0 0 0 4px rgba(226, 179, 93, .14); }
.field::placeholder { color: var(--cream-3); }
select.field { appearance: none; padding-right: 48px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%23e2b35d' stroke-width='1.8'><path d='M1 1l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 20px center; }
select.field option { background: var(--ink-2); }
.search { position: relative; flex: 1; min-width: 260px; max-width: 460px; }
.search .field { width: 100%; padding-left: 56px; }
.search svg { position: absolute; left: 20px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--cream-3); }

.live-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; color: var(--cream-3); }
.live-tag .glass-tick { width: 18px; height: 24px; color: var(--sand); }
.live-tag.spin .glass-tick { animation: tick 1s var(--ease-io); }
@keyframes tick { to { transform: rotate(180deg); } }

.board { overflow: hidden; }
.board-head, .board-row {
  display: grid; align-items: center; gap: 14px;
  grid-template-columns: minmax(220px, 2.3fr) 1fr .7fr .7fr .8fr 1fr 1fr 1fr 150px 96px;
  padding: 0 28px;
}
.board-head { height: 62px; font-size: 14px; font-weight: 600; color: var(--cream-3); border-bottom: 1px solid var(--line); }
.board-head button { text-align: left; color: inherit; font-weight: 600; }
.board-head button.sorted { color: var(--sand); }
.board-row { min-height: 84px; border-bottom: 1px solid var(--line); transition: background .25s; position: relative; }
.board-row:last-child { border-bottom: 0; }
.board-row:hover { background: rgba(23, 19, 14, .035); }
.board-row::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--sand); transform: scaleY(0); transition: transform .3s var(--ease); }
.board-row:hover::before { transform: scaleY(1); }
.board-row .tok { display: flex; align-items: center; gap: 14px; min-width: 0; }
.board-row .tok > div { min-width: 0; }
.board-row .cell { font-variant-numeric: tabular-nums; font-size: 17px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row-actions button { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--cream-3); border: 1px solid transparent; transition: all .2s; }
.row-actions button:hover { color: var(--cream); border-color: var(--line-2); }
.row-actions button.on { color: var(--sand); }
.row-actions svg { width: 20px; height: 20px; }
.board-empty { padding: 80px 28px; text-align: center; color: var(--cream-3); }
.board-empty h3 { color: var(--cream); margin-bottom: 10px; }
.skeleton { height: 84px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, transparent, rgba(23, 19, 14, .04), transparent); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Coin page ---------- */
.back { display: inline-flex; align-items: center; gap: 10px; color: var(--cream-3); font-weight: 600; margin-bottom: 30px; }
.back:hover { color: var(--sand-3); }
.back svg { width: 20px; height: 20px; }
.coin-head { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; margin-bottom: 36px; }
.coin-head .tok-icon { width: 96px; height: 96px; border-radius: 24px; }
.coin-head h1 { font-size: clamp(44px, 5vw, 84px); }
.coin-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.coin-price { text-align: right; }
.coin-price b { display: block; font-family: var(--f-head); font-size: clamp(36px, 3.6vw, 60px); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.coin-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 24px; }
.chart-box { position: relative; height: 420px; }
.chart-box svg { width: 100%; height: 100%; overflow: visible; }
.chart-tip { position: absolute; pointer-events: none; padding: 10px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--sand-line); font-size: 15px; white-space: nowrap; opacity: 0; transition: opacity .15s; }
.chart-note { margin-top: 14px; font-size: 15px; color: var(--cream-3); }
.flow-glass { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; }
.flow-legend { display: grid; gap: 12px; }
.flow-legend div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.about { color: var(--cream-2); }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------- Accordion (How it works) ---------- */
.acc-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 70px); align-items: start; }
.acc-visual { position: sticky; top: 120px; height: min(720px, calc(100vh - 240px)); display: grid; place-items: center; overflow: hidden; }
.acc-visual .big-glass { width: min(64%, 360px); height: auto; transition: transform 1.2s var(--ease-io); }
.acc-visual .visual-caption { position: absolute; left: 32px; right: 32px; bottom: 28px; display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.acc-visual .visual-caption b { font-family: var(--f-head); font-size: 54px; line-height: 1; color: var(--sand); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.acc-visual .visual-caption span { color: var(--cream-3); font-size: 16px; text-align: right; }
.acc { border-top: 1px solid var(--line); }
.acc-row { border-bottom: 1px solid var(--line); position: relative; }
.acc-row::before { content: ''; position: absolute; left: -1px; top: 0; bottom: 0; width: 3px; background: var(--sand); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease); }
.acc-row.open::before { transform: scaleY(1); }
.acc-btn { width: 100%; display: grid; grid-template-columns: 64px 1fr 40px; gap: 22px; align-items: center; padding: 30px 8px 30px 22px; text-align: left; }
.acc-ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--cream-2); transition: all .4s var(--ease); }
.acc-ico svg { width: 28px; height: 28px; }
.acc-row.open .acc-ico { border-color: var(--sand); color: var(--on-sand); background: var(--sand); }
.acc-btn h3 { transition: color .3s; }
.acc-row:not(.open) .acc-btn:hover h3 { color: var(--sand-3); }
.acc-plus { width: 28px; height: 28px; position: relative; justify-self: end; }
.acc-plus::before, .acc-plus::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--cream-2); border-radius: 2px; transition: transform .45s var(--ease); }
.acc-plus::after { transform: rotate(90deg); }
.acc-row.open .acc-plus::after { transform: rotate(0); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.acc-row.open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-inner { display: grid; grid-template-columns: 1fr 260px; gap: 28px; padding: 0 8px 36px 108px; align-items: start; }
.acc-inner p { color: var(--cream-2); font-size: 19px; }
.acc-tiers { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Clock (simulator) ---------- */
.clock-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 24px; }
.clock-visual { display: grid; grid-template-columns: 1fr 120px; gap: 10px; align-items: center; min-height: 640px; padding: clamp(24px, 3vw, 48px); }
.clock-visual .big-glass { width: 100%; max-width: 330px; justify-self: center; transition: transform 1s var(--ease-io); }
.tier-rail { position: relative; height: 100%; min-height: 440px; }
.tier-rail .rail { position: absolute; left: 10px; top: 4%; bottom: 4%; width: 2px; background: var(--line-2); }
.tier-rail .rail-fill { position: absolute; left: 10px; bottom: 4%; width: 2px; background: var(--sand); height: 0; }
.tier-rail .rail-tick { position: absolute; left: 0; display: flex; align-items: center; gap: 10px; transform: translateY(50%); }
.tier-rail .rail-tick i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--ink); transition: all .4s; }
.tier-rail .rail-tick span { font-weight: 700; color: var(--cream-3); transition: color .4s; }
.tier-rail .rail-tick.hit i { border-color: var(--sand); background: var(--sand); box-shadow: 0 0 18px var(--sand); }
.tier-rail .rail-tick.hit span { color: var(--sand-3); }
.clock-read { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.clock-read .stat b { font-size: clamp(48px, 5vw, 84px); }
.ctrl { display: grid; gap: 12px; margin-bottom: 26px; }
.ctrl label { font-weight: 600; color: var(--cream-2); display: flex; justify-content: space-between; }
.ctrl label output { color: var(--sand); font-variant-numeric: tabular-nums; }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; }
input[type='range']::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--sand) var(--p, 0%), rgba(23, 19, 14, .12) var(--p, 0%)); }
input[type='range']::-moz-range-track { height: 8px; border-radius: 8px; background: rgba(23, 19, 14, .12); }
input[type='range']::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--sand); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--sand-3); border: 5px solid var(--ink); box-shadow: 0 0 0 1px var(--sand); }
input[type='range']::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--sand-3); border: 5px solid var(--ink); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.speed { display: inline-flex; gap: 6px; }
.pool-table { width: 100%; border-collapse: collapse; font-size: 17px; }
.pool-table th { text-align: left; font-size: 14px; font-weight: 600; color: var(--cream-3); padding: 0 10px 12px; }
.pool-table td { padding: 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.pool-table input { width: 100%; height: 52px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 253, 248, .75); font-size: 17px; outline: none; }
.pool-table input:focus { border-color: var(--sand); }
.share-bar { height: 10px; border-radius: 10px; background: rgba(23, 19, 14, .08); overflow: hidden; min-width: 80px; }
.share-bar i { display: block; height: 100%; background: var(--sand); border-radius: 10px; transition: width .6s var(--ease); }

/* ---------- Sandfall ---------- */
.sandfall { position: relative; height: min(70vh, 720px); min-height: 520px; overflow: hidden; }
.sandfall canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: var(--r-xl); }
.sf-tip { position: absolute; z-index: 3; pointer-events: none; min-width: 220px; padding: 14px 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--sand-line); font-size: 15px; opacity: 0; transition: opacity .15s; }
.sf-tip b { font-size: 17px; }
.sf-legend { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 18px; color: var(--cream-3); font-size: 16px; }
.sf-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }

/* ---------- Glassworks (builder) ---------- */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; }
.form-grid { display: grid; gap: 22px; }
.form-row { display: grid; gap: 10px; }
.form-row > label { font-weight: 600; color: var(--cream-2); }
.form-row .hint { font-size: 15px; color: var(--cream-3); }
.form-row .err { font-size: 15px; color: var(--down); min-height: 0; }
.form-row.bad .field { border-color: var(--down); }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
textarea.field { height: auto; min-height: 130px; padding: 16px 22px; resize: vertical; line-height: 1.5; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { width: 54px; height: 54px; border-radius: 16px; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); transition: transform .25s var(--ease); }
.swatch:hover { transform: translateY(-3px); }
.swatch.active { border-color: var(--cream); }
.preview { display: grid; place-items: center; padding: 34px; min-height: 560px; }
.preview .art { width: 100%; max-width: 560px; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(60, 45, 20, .18); }
.preview .art.wide { max-width: 100%; }
.preview .art svg { width: 100%; height: auto; }
.out-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; justify-content: center; }
.code-out { margin-top: 22px; width: 100%; padding: 18px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; color: var(--cream-3); max-height: 160px; overflow: auto; white-space: pre-wrap; word-break: break-all; }

/* ---------- Launch ---------- */
.launch-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; align-items: start; }
.upload { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; }
.upload-box { width: 120px; height: 120px; border-radius: 22px; border: 1.5px dashed var(--sand-line); display: grid; place-items: center; overflow: hidden; color: var(--sand); position: relative; }
.upload-box img { width: 100%; height: 100%; object-fit: cover; }
.upload-box svg { width: 34px; height: 34px; }
.upload input { position: absolute; inset: 0; opacity: 0; }
.tier-edit { display: grid; gap: 10px; }
.tier-edit-row { display: grid; grid-template-columns: 1fr 1fr 52px; gap: 10px; align-items: center; }
.tier-edit-row .field { height: 56px; }
.tier-edit-row button { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--cream-3); }
.tier-edit-row button:hover { color: var(--down); border-color: var(--down); }
.locked { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--paper); border: 1px solid var(--sand-line); color: var(--cream-2); }
.locked svg { width: 22px; height: 22px; color: var(--sand); flex: none; }
.summary { position: sticky; top: 120px; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; margin: 24px 0 0; }
.summary dt { color: var(--cream-3); }
.summary dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.confirm { text-align: center; padding: clamp(36px, 5vw, 80px); }
.confirm .big-glass { width: 120px; margin: 0 auto 30px; }
.confirm h2 { margin-bottom: 18px; }
.confirm p { color: var(--cream-2); max-width: 560px; margin: 0 auto; }
.confirm .ref { display: inline-block; margin-top: 24px; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--sand-line); color: var(--sand-3); font-weight: 700; letter-spacing: .04em; }

/* ---------- Watchlist ---------- */
.empty { text-align: center; padding: clamp(50px, 7vw, 110px) 24px; }
.empty .big-glass { width: 90px; margin: 0 auto 26px; }
.empty h3 { margin-bottom: 12px; }
.empty p { color: var(--cream-2); max-width: 460px; margin: 0 auto 28px; }

/* ---------- Dock (bottom nav shaped like a sideways hourglass) ---------- */
.dock {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%); z-index: 600;
  display: flex; align-items: center; transition: transform .9s var(--ease);
}
body.ready .dock { transform: translate(-50%, 0); }
.dock-bulb {
  position: relative; display: flex; align-items: center; gap: 2px; padding: 8px;
  background: rgba(255, 251, 242, .78); border: 1px solid var(--line-2);
  backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
}
.dock-bulb.left { border-radius: 999px 40px 40px 999px; padding-right: 26px; }
.dock-bulb.right { border-radius: 40px 999px 999px 40px; padding-left: 26px; }
.dock-item {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 16px; color: var(--cream-2);
  transition: color .3s;
}
.dock-item svg { width: 22px; height: 22px; flex: none; }
.dock-item:hover { color: var(--cream); }
.dock-item.active { color: var(--on-sand); }
.dock-pill { position: absolute; z-index: 0; top: 8px; height: 58px; border-radius: 999px; background: var(--sand); transition: left .55s var(--ease), width .55s var(--ease), opacity .3s; opacity: 0; pointer-events: none; }
.dock-waist {
  position: relative; z-index: 2; width: 82px; height: 82px; margin: 0 -18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); border: 1px solid var(--sand-line);
  box-shadow: 0 0 0 8px rgba(244, 237, 223, .94);
  transition: transform .6s var(--ease), border-color .3s;
}
.dock-waist:hover { transform: rotate(180deg); border-color: var(--sand); }
.dock-waist .waist-label { position: absolute; bottom: -2px; left: 50%; transform: translate(-50%, 100%); font-size: 12px; color: var(--cream-3); opacity: 0; }
.dock-waist svg { width: 34px; height: 46px; }
.dock-waist .w-grain { animation: wgrain 1.2s linear infinite; }
.dock-waist .w-grain:nth-of-type(2) { animation-delay: .4s; }
.dock-waist .w-grain:nth-of-type(3) { animation-delay: .8s; }
@keyframes wgrain { 0% { transform: translateY(-6px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }
.dock-key { margin-left: 4px; font-size: 12px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--cream-3); }

/* ---------- Full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(244, 237, 223, .94);
  backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
  overflow-y: auto;
}
.menu.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .5s var(--ease), visibility 0s; }
.menu-inner { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 90px); padding-top: 120px; padding-bottom: 60px; }
.menu-close { position: fixed; top: 25px; right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; z-index: 2; background: var(--ink); }
.menu-close:hover { border-color: var(--sand); color: var(--sand-3); }
.menu-close svg { width: 18px; height: 18px; }
.strata { border-top: 1px solid var(--line); }
.stratum {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 24px;
  padding: 20px 18px; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateX(var(--from, -60px));
  transition: opacity .7s var(--ease), transform .9s var(--ease), color .3s;
}
.stratum:nth-child(even) { --from: 60px; }
.menu.open .stratum { opacity: 1; transform: none; transition-delay: calc(var(--i) * 55ms + 100ms); }
.stratum::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--sand), var(--sand-3)); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.stratum:hover::before, .stratum:focus-visible::before { transform: scaleX(1); }
.stratum:hover, .stratum:focus-visible { color: var(--on-sand); }
.stratum .s-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; border: 1px solid var(--line-2); transition: border-color .3s; }
.stratum:hover .s-ico { border-color: rgba(255, 251, 242, .55); }
.stratum .s-ico svg { width: 26px; height: 26px; }
.stratum h3 { font-size: clamp(30px, 3.2vw, 52px); color: inherit; }
.stratum p { font-size: 17px; color: var(--cream-3); margin-top: 4px; transition: color .3s; }
.stratum:hover p { color: rgba(23, 19, 14, .7); }
.stratum .s-key { font-size: 15px; font-weight: 700; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); }
.stratum.current .s-ico { border-color: var(--sand); color: var(--sand); }
.menu-side { position: relative; display: flex; flex-direction: column; gap: 24px; justify-content: space-between; opacity: 0; transform: translateY(30px); transition: all .9s var(--ease) .3s; }
.menu.open .menu-side { opacity: 1; transform: none; }
.menu-side .menu-glass { width: min(240px, 60%); margin: 0 auto; }
.menu-side .stat b { font-size: 40px; }
.menu-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 2; padding: clamp(60px, 8vw, 120px) 0 140px; }
.footer-panel {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  border: 1px solid var(--line); background: var(--glass);
  backdrop-filter: blur(22px) saturate(1.15); -webkit-backdrop-filter: blur(22px) saturate(1.15);
  padding: clamp(28px, 4vw, 60px) clamp(24px, 4vw, 60px) 28px;
}
.footer-panel::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--sand), transparent); opacity: .7; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 22px; color: var(--cream-2); max-width: 420px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-col h4 { font-size: 15px; font-family: var(--f-body); font-weight: 700; color: var(--cream-3); letter-spacing: 0; margin-bottom: 6px; }
.footer-col a { color: var(--cream-2); transition: color .25s, transform .3s var(--ease); }
.footer-col a:hover { color: var(--sand-3); transform: translateX(4px); }
.footer-ca, .footer-x { display: inline-flex; align-items: center; gap: 10px; color: var(--cream-2); font-weight: 600; }
.footer-ca:hover, .footer-x:hover { color: var(--sand-3); }
.footer-ca svg, .footer-x svg { width: 18px; height: 18px; }
.footer-word {
  font-family: var(--f-head); font-weight: 700; line-height: .8; letter-spacing: -0.04em;
  font-size: clamp(90px, 19vw, 300px); margin: clamp(40px, 6vw, 80px) 0 24px;
  color: transparent; -webkit-text-stroke: 1.5px rgba(23, 19, 14, .22);
  background: linear-gradient(180deg, transparent 55%, rgba(226, 179, 93, .55) 55%) no-repeat;
  -webkit-background-clip: text; background-clip: text;
  white-space: nowrap;
}
.footer-word .dot { -webkit-text-stroke: 0; color: var(--sand); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px 30px; justify-content: space-between; align-items: center; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; color: var(--cream-3); }
.footer-top-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--cream-2); font-weight: 600; }
.footer-top-btn:hover { color: var(--sand-3); }
.footer-top-btn svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Page transition curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 7000; display: flex; pointer-events: none; }
.curtain i { flex: 1; background: var(--sand-2); transform: translateY(-101%); }
.curtain i:nth-child(odd) { background: var(--sand); }
.curtain.run i { animation: curtain .9s var(--ease-io) forwards; animation-delay: calc(var(--i) * 28ms); }
@keyframes curtain { 0% { transform: translateY(-101%); } 45%, 55% { transform: translateY(0); } 100% { transform: translateY(101%); } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 128px; z-index: 8500; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 14px 22px; border-radius: 999px; background: var(--sand); color: var(--on-sand); font-weight: 700; transition: all .4s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 9000; background: var(--ink);
  display: grid; place-items: center; overflow: hidden;
  clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--ease-io);
}
.intro.leaving { clip-path: inset(0 0 100% 0); pointer-events: none; }
.intro.gone { display: none; }
.intro-skip { position: absolute; top: 32px; right: 36px; font-weight: 600; color: var(--cream-3); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); z-index: 2; }
.intro-skip:hover { color: var(--cream); border-color: var(--line-2); }
.intro-stage { display: flex; align-items: center; gap: clamp(30px, 6vw, 110px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.intro.ending .intro-stage { opacity: 0; transform: translateY(-40px) scale(.96); }
.intro-glass { width: clamp(150px, 18vw, 250px); }
.intro-readout { display: flex; flex-direction: column; gap: 6px; width: clamp(300px, 34vw, 520px); }
.intro-label { font-size: 17px; color: var(--cream-3); }
.intro-time { font-family: var(--f-head); font-weight: 700; font-size: clamp(64px, 9vw, 140px); line-height: 1; letter-spacing: 0; white-space: nowrap; }
.intro-time .d { display: inline-block; width: .66em; text-align: center; }
.intro-time .d.c { width: .32em; }
.intro-mult { font-size: 22px; color: var(--cream-2); }
.intro-mult b { font-family: var(--f-head); font-size: 46px; color: var(--sand); margin-right: 4px; display: inline-block; min-width: 1.4em; transform-origin: left center; }
.intro-mult b.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.intro-tiers { list-style: none; padding: 0; margin: 20px 0 0; display: flex; gap: 10px; }
.intro-tiers li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--cream-3); font-size: 15px; font-weight: 600; transition: all .4s; }
.intro-tiers li.hit { border-color: var(--sand); color: var(--on-sand); background: var(--sand); }
.intro-end { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 44px; pointer-events: none; }
.intro-end > * { pointer-events: auto; }
.intro-word { display: flex; font-family: var(--f-head); font-weight: 700; font-size: clamp(80px, 15vw, 260px); letter-spacing: -0.05em; line-height: .9; }
.intro-word span { display: inline-block; opacity: 0; transform: translateY(60%); transition: transform 1s var(--ease), opacity .8s; }
.intro-word span.dot { color: var(--sand); }
.intro.ending .intro-word span { opacity: 1; transform: none; transition-delay: calc(var(--i) * 45ms + .1s); }
.intro-enter { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease) .35s, transform .5s var(--ease) .35s, visibility 0s .35s; visibility: hidden; }
.intro.ending .intro-enter { opacity: 1; transform: none; visibility: visible; }
#scene { opacity: 0; transition: opacity 1.4s var(--ease); }
body.scene-ready #scene { opacity: 1; }

.page-title { font-size: clamp(52px, 6.4vw, 112px); line-height: .95; letter-spacing: -0.035em; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--cream-2); }
.plain-list li { position: relative; padding-left: 22px; }
.plain-list li::before { content: ''; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; border-radius: 2px; background: var(--sand); transform: rotate(45deg); }

/* ---------- SVG hourglass component ---------- */
.big-glass { width: 100%; height: auto; overflow: visible; transform-origin: 50% 50%; }
.big-glass .g-outline { fill: none; stroke: var(--cream-2); stroke-width: 2; stroke-linejoin: round; }
.big-glass .g-cap { fill: var(--ink-4); stroke: var(--cream-2); stroke-width: 2; }
.big-glass .g-post { stroke: var(--cream-3); stroke-width: 2; }
.big-glass .g-sand { fill: var(--sand); }
.big-glass .g-stream { stroke: var(--sand-3); stroke-width: 3; stroke-dasharray: 3 5; animation: stream .5s linear infinite; }
.big-glass .g-shine { fill: none; stroke: rgba(23, 19, 14, .3); stroke-width: 2; stroke-linecap: round; }
.big-glass .g-tick { stroke: var(--cream-3); stroke-width: 2; transition: stroke .4s; }
.big-glass .g-tick-label { fill: var(--cream-3); font-family: var(--f-body); font-size: 13px; font-weight: 700; transition: fill .4s; }
.big-glass .g-tick.hit { stroke: var(--sand); }
.big-glass .g-tick-label.hit { fill: var(--sand-3); }
.big-glass .g-scan { fill: url(#scanGrad); opacity: 0; }
.big-glass .g-grain { fill: var(--sand-3); }
.big-glass.draw .g-outline, .big-glass.draw .g-cap { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw .9s var(--ease) forwards; }
.big-glass.draw .g-cap { fill-opacity: 0; animation: draw .9s var(--ease) forwards, capfill .4s .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes capfill { to { fill-opacity: 1; } }
@keyframes stream { to { stroke-dashoffset: -8; } }

/* ---------- Cursor ---------- */
#trail { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 9999; pointer-events: none; }
#cursor { position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; width: 30px; height: 40px; margin: -20px 0 0 -15px; opacity: 0; transition: opacity .3s; will-change: transform; }
#cursor.on { opacity: 1; }
#cursor svg { width: 100%; height: 100%; transition: transform .35s var(--ease); }
#cursor .c-ring { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; border: 1.5px solid var(--sand); transform: scale(.3); opacity: 0; transition: transform .35s var(--ease), opacity .3s; }
#cursor.hover .c-ring { transform: scale(1); opacity: .9; }
#cursor.hover svg { transform: scale(.8); }
#cursor.down svg { transform: rotate(180deg) scale(.9); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .board-head, .board-row { grid-template-columns: minmax(200px, 2.3fr) 1fr .7fr .7fr 1fr 1fr 130px 96px; }
  .board-head .c-m5, .board-row .c-m5, .board-head .c-liq, .board-row .c-liq { display: none; }
  .dock-item .lbl { display: none; }
  .dock-item.active .lbl { display: inline; }
}
@media (max-width: 1080px) {
  .page-head, .acc-wrap, .clock-grid, .builder, .launch-grid, .coin-grid, .split, .menu-inner { grid-template-columns: 1fr; }
  .page-head p, .page-head .head-actions { justify-self: start; }
  .acc-visual { position: relative; top: 0; height: 460px; }
  .summary { position: static; }
  .menu-side { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { grid-column: 1; padding-left: 0; }
  .tier-cards { grid-template-columns: repeat(2, 1fr); }
  .board-head, .board-row { grid-template-columns: minmax(180px, 2fr) 1fr .8fr 1fr 110px 90px; }
  .board-head .c-h1, .board-row .c-h1, .board-head .c-mcap, .board-row .c-mcap { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .topbar-inner { height: 84px; }
  .logo-word { font-size: 26px; }
  .logo-mark { width: 40px; height: 40px; }
  .ca-chip { display: none !important; }
  .btn-wallet { height: 48px; padding: 0 16px; font-size: 16px; }
  .icon-btn { width: 48px; height: 48px; }
  .page { padding-top: 120px; }
  .hero-copy { padding-top: 120px; }
  .tier-cards, .clock-read, .form-2 { grid-template-columns: 1fr; }
  .acc-inner { grid-template-columns: 1fr; padding-left: 22px; }
  .board-head { display: none; }
  .board-row { grid-template-columns: 1fr auto; padding: 14px 18px; }
  .board-row .cell:not(.c-price), .board-row .c-spark { display: none; }
  .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .coin-head { grid-template-columns: auto 1fr; }
  .coin-price { grid-column: 1 / -1; text-align: left; }
  .clock-visual { grid-template-columns: 1fr 90px; min-height: 480px; }
  .dock { bottom: 12px; max-width: calc(100vw - 20px); }
  .dock-item { padding: 0 12px; height: 50px; }
  .dock-item .lbl, .dock-item.active .lbl { display: none; }
  .dock-pill { height: 50px; }
  .dock-waist { width: 66px; height: 66px; }
  .dock-key { display: none; }
  .sand-progress { display: none; }
  .intro-stage { flex-direction: column; gap: 30px; }
  .intro-readout { align-items: center; min-width: 0; }
  .mini-row { grid-template-columns: 44px 1fr auto; }
  .mini-row .spark { display: none; }
  .flow-glass { grid-template-columns: 110px 1fr; }
}
@media (max-width: 460px) {
  .dock-bulb.left .dock-item:nth-child(n+4), .dock-bulb.right .dock-item:nth-child(n+4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { clip-path: none; transform: none; }
}

/* Light theme details */
.stat .up, .stat b.up { color: #9fd06e !important; }
.stat .down, .stat b.down { color: #f08a6c !important; }
.panel { box-shadow: 0 20px 60px -30px rgba(80, 55, 15, .25); }
.dock-bulb { box-shadow: 0 16px 40px -18px rgba(80, 55, 15, .35); }
.btn-primary { background: var(--sand-glow); }
.btn-primary::after { background: linear-gradient(180deg, #f2d491, var(--sand-glow)); }
.chip.active, .seg button.active, .dock-pill, .logo-mark, .toast, .btn-wallet.connected, .acc-row.open .acc-ico, .intro-tiers li.hit { background: var(--sand-glow); }
.btn-wallet { color: var(--sand-deep); background: rgba(226, 179, 93, .14); }
.footer-word { -webkit-text-stroke-color: rgba(23, 19, 14, .28); background: linear-gradient(180deg, transparent 55%, rgba(196, 141, 46, .6) 55%) no-repeat; -webkit-background-clip: text; background-clip: text; }
