/* Curvi — elegant: deep black, soft emerald, champagne gold, serif headlines */
@font-face { font-family: "Instrument Serif"; src: url(assets/fonts/instrumentserif.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(assets/fonts/instrumentserif-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: Inter; src: url(assets/fonts/inter.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(assets/fonts/jetbrainsmono.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
:root {
  --bg: #08090a; --bg2: #0d100f; --card: rgba(255, 255, 255, .035); --card2: rgba(255, 255, 255, .055);
  --line: rgba(232, 201, 135, .13); --line2: rgba(232, 201, 135, .28);
  --ink: #f3efe6; --muted: #a9aaa0; --dim: #6f7169;
  --green: #34d399; --green2: #10a774; --pump: #9ff2cf; --red: #f07a8a; --gold: #e8c987; --gold2: #c9a35b;
  --head: "Instrument Serif", Georgia, serif; --body: Inter, system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 22px; --gut: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.65 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1100px 700px at 78% -12%, rgba(52, 211, 153, .13), transparent 62%), radial-gradient(900px 640px at -8% 18%, rgba(232, 201, 135, .08), transparent 60%),
  radial-gradient(800px 600px at 50% 110%, rgba(52, 211, 153, .06), transparent 60%); }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(1140px, 100% - 2 * var(--gut)); margin-inline: auto; }
.g { font-style: italic; background: linear-gradient(100deg, var(--green) 10%, #b8f5dc 55%, var(--gold) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 11.5px var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); opacity: .7; }
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -.005em; font-weight: 400; }
h1 { font-size: clamp(58px, 8.4vw, 112px); line-height: .92; margin: 18px 0 22px; }
h2 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1; margin: 14px 0 30px; }
h3 { font-size: 26px; line-height: 1.1; }
.lead { font-size: clamp(16.5px, 1.5vw, 19px); color: #cfccc2; max-width: 520px; margin: 0 0 26px; font-weight: 300; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, #f3dcab, var(--gold2)); color: #1d1608; font: 600 15px var(--body); letter-spacing: .01em; text-decoration: none;
  box-shadow: 0 10px 34px rgba(232, 201, 135, .22), inset 0 1px 0 rgba(255, 255, 255, .45); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(232, 201, 135, .32), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line2); box-shadow: none; }
.btn--ghost:hover { border-color: var(--gold); box-shadow: none; }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn.is-disabled, a.is-disabled { opacity: .45; pointer-events: none; }
.btn.is-disabled::after { content: "soon"; font: 700 10px var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .25); }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px) saturate(1.2); background: rgba(8, 9, 10, .66); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 28px var(--head); }
.nav__links { display: flex; gap: 22px; margin-left: 10px; }
.nav__links a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2); }
.icon svg { width: 17px; height: 17px; fill: var(--ink); }
.icon:not(.is-disabled):hover { border-color: var(--gold); }

/* hero */
.hero { padding: clamp(28px, 6vw, 70px) 0 40px; }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 14px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: 500 13.5px var(--body); color: #dcd8cc; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dot--g { background: var(--green); } .dot--r { background: var(--red); } .dot--y { background: var(--gold); }
.note { color: var(--dim); font-size: 14px; margin: 0; }

/* CA bar */
.ca { display: flex; align-items: center; gap: 10px; max-width: 540px; padding: 8px 8px 8px 16px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); backdrop-filter: blur(8px); }
.ca__label { font: 600 11px var(--mono); color: var(--gold); letter-spacing: .16em; }
.ca__value { flex: 1; min-width: 0; font: 500 clamp(9.4px, 2.55vw, 14px) var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca__value.is-set { color: var(--ink); }
.ca__copy { border: 0; border-radius: 999px; padding: 8px 16px; background: var(--gold); color: #1d1608; font: 700 12px var(--mono); cursor: pointer; }
.ca__copy.is-done { background: var(--green); }

/* game */
.game { position: relative; width: min(100%, 420px); aspect-ratio: 400 / 640; margin-inline: auto; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line2); background: #080b0a; box-shadow: 0 40px 110px rgba(0, 0, 0, .6), 0 0 0 8px rgba(232, 201, 135, .05); }
.game canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: pointer; }
.g-mute { position: absolute; right: 12px; bottom: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(8, 9, 10, .75); color: var(--ink); cursor: pointer; font-size: 16px; }
.g-over { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center;
  background: radial-gradient(circle at 50% 40%, rgba(8, 9, 10, .5), rgba(8, 9, 10, .9)); }
.g-over[hidden] { display: none; }
.g-over h2 { margin: 0; font-size: 54px; }
.g-over p { margin: 0; color: #d6d2c6; }
#gTitle { color: var(--red); }
#gTitle.is-win { color: var(--gold); font-size: 30px; }
.g-score b { font: 700 26px var(--mono); color: var(--ink); }
.g-best b { font-family: var(--mono); color: var(--gold); }
.g-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.g-hint { font-size: 13px; color: var(--muted) !important; }
.kbd { display: inline-block; min-width: 24px; padding: 2px 6px; margin: 0 2px; border-radius: 6px; border: 1px solid var(--line2); font: 700 12px var(--mono); }
.tg { color: var(--green); } .tr { color: var(--red); } .tp { color: var(--pump); } .ty { color: var(--gold); }

/* band */
.band { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.band__in { display: flex; gap: 34px; align-items: center; width: max-content; padding: 16px 0; animation: marq 40s linear infinite; font: italic 400 30px var(--head); white-space: nowrap; color: #dcd8cc; }
.band__in .r { color: var(--red); }
.band__in i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
@keyframes marq { to { transform: translateX(-50%); } }

/* sections */
.sec { padding: clamp(56px, 9vw, 110px) 0 0; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { padding: 26px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, var(--card2), var(--card)); backdrop-filter: blur(6px); }
.card p { color: var(--muted); margin: 10px 0 0; font-size: 15.5px; font-weight: 300; }
.card__ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 18px; border: 1px solid var(--line2); font: 600 18px var(--mono); color: var(--gold); }
.card__ic--g { color: var(--green); } .card__ic--r { color: var(--red); } .card__ic--y { color: var(--gold); }
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(20px, 5vw, 60px); padding: clamp(28px, 5vw, 56px); border-radius: 32px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(52, 211, 153, .07), rgba(232, 201, 135, .04)); }
.story h2 { margin-bottom: 0; }
.story__txt p { margin: 0 0 14px; color: #cfccc2; font-size: 17.5px; font-weight: 300; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.facts div { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); min-width: 0; }
.facts span, .official span { display: block; font: 700 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.facts b { font: 400 30px var(--head); overflow-wrap: anywhere; }
.official { margin-top: 18px; }
.official__label { display: block; font: 700 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.official ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.official li { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); min-width: 0; }
.official a { text-decoration: none; display: block; }
.official b { font: 700 15px var(--mono); overflow-wrap: anywhere; }
.official a:not(.is-disabled):hover b { color: var(--gold); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li { padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.steps b { font: 600 12px var(--mono); color: var(--gold); letter-spacing: .14em; }
.steps h3 { margin: 10px 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; font-weight: 300; }
.alert { padding: 24px 26px; border-radius: var(--r); border: 1px solid rgba(232, 201, 135, .32); background: rgba(232, 201, 135, .05); }
.alert b { font: 700 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.alert p { margin: 8px 0 0; color: #e4dcc6; }

/* token page */
.page-hero { padding: clamp(40px, 7vw, 80px) 0 10px; }
.token-panel { margin: 24px 0 18px; padding: 22px; border-radius: 22px; border: 1px solid var(--line2); background: var(--card); }
.token-panel .ca { max-width: none; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 600 11.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--live { color: var(--green); }

/* footer */
.foot { margin-top: clamp(70px, 10vw, 120px); border-top: 1px solid var(--line); padding: 40px 0 30px; }
.foot__in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot__cols { display: flex; gap: clamp(28px, 6vw, 70px); flex-wrap: wrap; }
.foot__cols div { display: flex; flex-direction: column; gap: 8px; }
.foot__cols span { font: 700 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.foot__cols a { color: var(--muted); text-decoration: none; }
.foot__cols a:not(.is-disabled):hover { color: var(--ink); }
.foot__legal { margin-top: 28px; color: var(--dim); font-size: 13px; }
.foot__legal p { margin: 0 0 8px; max-width: 760px; }

/* responsive */
@media (max-width: 980px) {
  .cards, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__links { display: none; }
}
@media (max-width: 820px) {
  .hero__in, .story { grid-template-columns: 1fr; }
  .game { width: min(100%, 400px); }
  .facts, .official ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .cards, .steps, .facts, .official ul { grid-template-columns: 1fr; }
  .nav__cta .btn { display: none; }
  .ca__copy { padding: 8px 10px; }
  h1 { font-size: 46px; }
}
@media (prefers-reduced-motion: reduce) { .band__in { animation: none; } html { scroll-behavior: auto; } }

/* 3D hero stage */
.stage { position: relative; height: clamp(380px, 46vw, 600px); }
.stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; cursor: grab; }
.stage::after { content: ""; position: absolute; left: 50%; bottom: 6%; width: 70%; height: 18%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(232, 201, 135, .16), transparent); pointer-events: none; z-index: -1; }
.stage.no-webgl { background: url(assets/curvi-3d.png) center / contain no-repeat; }
.stage__tip { position: absolute; right: 8px; bottom: 8px; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
/* play section */
.play { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.play__list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.play__list li { display: flex; gap: 12px; align-items: baseline; color: #d6d2c6; }
.play__list b { font: 600 12px var(--mono); color: var(--gold); min-width: 26px; }
@media (max-width: 820px) { .play { grid-template-columns: 1fr; } .stage { height: 380px; } }
