@font-face { font-family: Fraunces; src: url(../fonts/Fraunces-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Fraunces; src: url(../fonts/Fraunces-800.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: Fraunces; src: url(../fonts/Fraunces-Italic-600.woff2) format('woff2'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: Nunito; src: url(../fonts/Nunito-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Nunito; src: url(../fonts/Nunito-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Nunito; src: url(../fonts/Nunito-800.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: Nunito; src: url(../fonts/Nunito-900.woff2) format('woff2'); font-weight: 900; font-display: swap; }
:root { --paper: #F6EEDC; --card: #FFFAF0; --ink: #3B2A1F; --ink2: rgba(59,42,31,.66); --line: rgba(59,42,31,.16); --berry: #E0607E; --sun: #F4C24F; --leaf: #7DB45A; --sea: #5DB2BC; --lav: #B9A8E6; --shadow: 0 4px 0 rgba(59,42,31,.92); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 17px/1.55 Nunito, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 800; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -.01em; }
.sub { font-size: 19px; color: var(--ink2); font-weight: 700; margin: 10px 0 28px; max-width: 640px; }

/* nav: strong contrast over the live island */
.nav { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 10; width: min(1120px, calc(100% - 24px)); display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 14px; background: rgba(255,250,240,.94); border: 2px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 800 22px Fraunces, Georgia, serif; }
.brand img { width: 30px; height: 30px; }
.nav nav { display: flex; gap: 18px; margin-left: auto; }
.nav nav a { text-decoration: none; font-weight: 800; font-size: 15px; }
.nav nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font: 900 18px Nunito; padding: 13px 26px; border: 2.5px solid var(--ink); border-radius: 16px; background: var(--berry); color: #fff; box-shadow: var(--shadow); transition: transform .08s, box-shadow .08s; }
.cta:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(59,42,31,.92); }
.cta.ghost { background: var(--card); color: var(--ink); }
.cta.small { font-size: 15px; padding: 8px 18px; border-radius: 12px; }

/* hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--sea); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-card { position: absolute; left: max(20px, calc((100% - 1120px) / 2)); bottom: max(40px, 9vh); width: min(520px, calc(100% - 40px)); background: rgba(255,250,240,.95); border: 2.5px solid var(--ink); border-radius: 26px; box-shadow: 0 6px 0 rgba(59,42,31,.92); padding: 26px 28px 22px; }
.kicker { margin: 0 0 6px; font-weight: 900; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #B4553E; }
.hero h1 { font-size: clamp(54px, 8vw, 92px); letter-spacing: -.02em; }
.lede { font-size: 18px; margin: 10px 0 20px; color: #4a382c; }
.hero .row { display: flex; gap: 12px; flex-wrap: wrap; }
.live { margin: 16px 0 0; font-weight: 800; font-size: 14px; color: var(--ink2); display: flex; align-items: center; gap: 8px; }
.live::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); border: 1.5px solid var(--ink); }

/* Tufts grid */
.tufts-sec { padding: 96px 0 80px; }
.rar-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.rar-filter button { font: 800 14px Nunito; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; background: #fff; cursor: pointer; color: var(--ink); }
.rar-filter button.on { background: var(--ink); color: var(--card); }
.tuftgrid { position: relative; background: #FBF5E8; border: 2.5px solid var(--ink); border-radius: 26px; box-shadow: 0 6px 0 rgba(59,42,31,.92); overflow: hidden; }
.tuftgrid canvas { display: block; width: 100%; touch-action: pan-y; }
.mg-labels { position: absolute; left: 0; top: 0; right: 0; pointer-events: none; }
.mg-label { position: absolute; text-align: center; padding: 0 4px; line-height: 1.15; }
.mg-label b { display: block; font: 800 clamp(13px, 1.25vw, 16px) Fraunces, Georgia, serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-label span { display: block; margin-top: 2px; font: 800 11.5px Nunito, system-ui, sans-serif; color: rgba(59,42,31,.55); white-space: nowrap; }
.tip { z-index: 2; }
.tip { position: absolute; pointer-events: none; width: 230px; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 rgba(59,42,31,.9); padding: 10px 12px; font-size: 13.5px; }
.tip b { font: 800 17px Fraunces, Georgia, serif; display: block; }
.tip i { font: 600 italic 14px Fraunces, Georgia, serif; color: var(--ink2); display: block; margin: 2px 0 6px; }
.rar { display: inline-block; font: 900 11px Nunito; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1.5px solid var(--ink); }
.rar.common { background: #EDE6D6; } .rar.uncommon { background: #D6EDC4; } .rar.rare { background: #CFE3F6; } .rar.epic { background: #E3D7F7; } .rar.legend { background: #FFE6A3; }

/* how */
.how { padding: 40px 0 90px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.cards article { background: var(--card); border: 2.5px solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); padding: 18px 18px 20px; }
.cards img { width: 56px; height: 56px; }
.cards h3 { font-size: 22px; margin: 8px 0 6px; }
.cards p { margin: 0; color: #4a382c; font-size: 15.5px; }

/* coin */
.coin { padding: 90px 0; background: #EFE4CC; border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 2.5px solid var(--ink); border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.tiers > div { padding: 18px; border-right: 2px dashed var(--line); }
.tiers > div:last-child { border-right: 0; }
.tiers b { display: block; font: 800 20px Fraunces, Georgia, serif; margin-bottom: 6px; }
.tiers span { font-size: 15px; color: #4a382c; }
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.flow > div { background: var(--card); border: 2.5px solid var(--ink); border-radius: 22px; padding: 18px 20px; }
.flow h3 { font-size: 22px; margin-bottom: 6px; }
.flow p { margin: 0; font-size: 15.5px; color: #4a382c; }
.ca { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--ink); color: var(--card); border-radius: 16px; padding: 12px 16px; font-weight: 800; }
.ca code { font: 700 14px ui-monospace, Menlo, monospace; word-break: break-all; color: #F6E7C3; }
.fine { font-size: 13px; color: var(--ink2); font-weight: 700; margin-top: 12px; }

.foot { padding: 28px 0 40px; font-weight: 800; font-size: 14px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot .links { display: flex; gap: 16px; }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .tiers > div:nth-child(2) { border-right: 0; }
  .tiers > div:nth-child(-n+2) { border-bottom: 2px dashed var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav nav { display: none; }
  .nav .cta { margin-left: auto; }
  .hero { min-height: 620px; }
  .hero-card { left: 12px; right: 12px; width: auto; bottom: 16px; padding: 20px 18px 18px; border-radius: 22px; }
  .lede { font-size: 15.5px; margin: 8px 0 16px; }
  .hero h1 { font-size: 52px; }
  .hero .row { flex-wrap: nowrap; gap: 10px; }
  .hero .row .cta { flex: 1; font-size: 16px; padding: 12px 10px; }
  .cards, .tiers, .flow { grid-template-columns: 1fr; }
  .tiers > div { border-right: 0; border-bottom: 2px dashed var(--line); }
  .tiers > div:last-child { border-bottom: 0; }
  .tufts-sec { padding: 70px 0 60px; }
  .coin { padding: 64px 0; }
}

/* music: the toggle (js/play/music.js) and the "now playing" label (CC0 tracks by Komiku) */
.music-btn .ico { width: 24px; height: 24px; }
.music-btn.is-on .ico { animation: music-bob .7s ease-in-out infinite alternate; }
.music-btn[aria-pressed="false"] .ico { opacity: .55; }
@keyframes music-bob { from { transform: translateY(1px) rotate(-6deg); } to { transform: translateY(-2px) rotate(6deg); } }
.music-chip { position: fixed; z-index: 60; pointer-events: none; display: grid; gap: 1px; max-width: min(280px, calc(100vw - 16px)); padding: 8px 12px 9px; background: #FFFAF0; color: #3B2A1F; border: 2px solid #3B2A1F; border-radius: 12px; box-shadow: 0 3px 0 rgba(59,42,31,.9); font: 600 13px/1.25 Nunito, system-ui, sans-serif; opacity: 0; transform: translateY(-4px) scale(.98); transition: opacity .25s ease, transform .25s ease; }
.music-chip.is-on { opacity: 1; transform: none; }
.music-chip-k { font: 900 10.5px/1 Nunito, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #C9614C; }
.music-chip b { font: 800 15px/1.2 Fraunces, Georgia, serif; }
.music-chip-a { font-size: 12px; color: rgba(59,42,31,.6); }
@media (prefers-reduced-motion: reduce) { .music-btn.is-on .ico { animation: none; } .music-chip { transition: none; } }
.music-nav { width: 40px; height: 40px; border-radius: 12px; border: 2px solid #3B2A1F; background: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
@media (max-width: 640px) { .music-nav { margin-left: auto; } .nav .cta { margin-left: 0; } }
