@font-face { font-family: 'Archivo'; src: url('/assets/fonts/archivo.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'JB'; src: url('/assets/fonts/jbmono.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }

:root {
  --ash: #ede6d6; --char: #110b08; --ink: #1d1410; --ember: #ff5a1f; --gold: #f2b13a; --blood: #b3260f; --smoke: #8b7e72;
  --pad: clamp(18px, 3.2vw, 56px);
  --wide: 'wdth' 118;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--char); color: var(--ash); font: 400 17px/1.5 'Archivo', system-ui, sans-serif; font-variation-settings: 'wdth' 100; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: 'JB', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--char); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
canvas.flame { display: block; }
.flame--none { background: radial-gradient(50% 70% at 50% 100%, var(--ember), transparent 70%); }

/* loader */
.loader { position: fixed; inset: 0; z-index: 90; background: var(--char); display: grid; place-items: center; }
.loader__count { font-weight: 900; font-variation-settings: 'wdth' 125; font-size: clamp(80px, 16vw, 240px); color: var(--ember); line-height: 1; }
.loader__bar { position: absolute; left: var(--pad); right: var(--pad); bottom: 48px; height: 2px; background: rgba(237,230,214,.12); }
.loader__bar i { position: absolute; inset: 0; background: var(--ember); transform: scaleX(0); transform-origin: left; }
.no-motion .loader, body:not(.is-loading) .loader[style*="translate"] { pointer-events: none; }
.no-motion .loader { display: none; }

/* header */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 14px; padding: 14px var(--pad); mix-blend-mode: normal; }
.top::before { content: ''; position: absolute; inset: 0; background: rgba(237,230,214,.86); backdrop-filter: blur(10px); opacity: 0; transition: opacity .4s, background .4s; pointer-events: none; }
.top.is-scrolled::before { opacity: 1; }
.top.is-dark::before { background: rgba(17,11,8,.82); }
.top__mark img { width: 44px; height: 44px; border-radius: 10px; }
.top__name { position: relative; text-decoration: none; font-weight: 900; font-variation-settings: 'wdth' 62; font-size: 30px; letter-spacing: -.01em; text-transform: uppercase; color: var(--char); transition: color .4s; }
.top.is-dark .top__name { color: var(--ash); }
.top__act { position: relative; margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ca { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(17,11,8,.25); background: rgba(237,230,214,.7); color: var(--char); cursor: pointer; backdrop-filter: blur(8px); }
.ca:disabled { cursor: default; }
.ca__k { font-weight: 800; font-size: 13px; color: var(--blood); }
.ca__v { font-family: 'JB', monospace; font-size: 13px; }
.ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--char); color: var(--ash); transition: background .25s, transform .25s var(--ease); }
.ico:hover { background: var(--ember); transform: translateY(-2px); }
.ico svg { width: 18px; height: 18px; fill: currentColor; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--ember); color: var(--char); font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .25s var(--ease), background .25s; }
.btn:hover { transform: translateY(-2px); background: var(--gold); }
.btn[aria-disabled="true"] { background: rgba(17,11,8,.1); color: var(--char); box-shadow: inset 0 0 0 1px rgba(17,11,8,.3); }
.top.is-dark .btn[aria-disabled="true"], .top.is-dark .ca { background: rgba(237,230,214,.08); color: var(--ash); box-shadow: inset 0 0 0 1px rgba(237,230,214,.3); border-color: transparent; }
.top.is-dark .ca__k { color: var(--gold); }
.btn--ghost { background: var(--char); color: var(--ash); }
.top.is-dark .btn--ghost { background: var(--ash); color: var(--char); }
.btn--small { height: 36px; font-size: 14px; }

/* hero: ash paper, giant tonal letters, the live flame centre stage */
.hero { position: relative; min-height: 100svh; background: var(--ash); color: var(--char); overflow: hidden; display: grid; grid-template-columns: 1fr minmax(0, 1.4fr) 1fr; grid-template-rows: 1fr auto; padding: 110px var(--pad) clamp(28px, 4vw, 64px); }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .32; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .07 0 0 0 0 .04 0 0 0 0 .03 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero__letters { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 1vw; pointer-events: none; }
.hero__letters span { font-weight: 900; font-variation-settings: 'wdth' 125; font-size: 18.5vw; line-height: .8; letter-spacing: -.04em; color: #e2d9c6; }
.hero__flame { position: absolute; left: 50%; bottom: 0; width: min(62vw, 1100px); height: 92%; transform: translateX(-50%); }
.hero__left, .hero__right { position: relative; z-index: 2; align-self: center; max-width: 330px; font-size: clamp(15px, 1.05vw, 19px); line-height: 1.45; }
.hero__left { grid-column: 1; }
.hero__right { grid-column: 3; justify-self: end; text-align: right; }
.mini { margin: 0 0 22px; width: 132px; border-radius: 14px; background: var(--char); padding: 8px; box-shadow: 0 18px 40px -18px rgba(17,11,8,.6); transform: rotate(-4deg); }
.mini canvas { width: 100%; height: 150px; border-radius: 8px; background: #1d1410; }
.mini figcaption { color: var(--ash); font-weight: 800; font-size: 13px; padding: 8px 4px 2px; }
.clock { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.clock__big { font-weight: 900; font-variation-settings: 'wdth' 112; font-size: clamp(30px, 3vw, 56px); line-height: 1; color: var(--blood); font-variant-numeric: tabular-nums; }
.clock__sub { font-size: 14px; color: #5d5047; }
.hero__claim { position: relative; z-index: 2; grid-column: 1 / -1; grid-row: 2; text-align: center; font-weight: 900; font-variation-settings: 'wdth' 118; font-size: clamp(44px, 8.4vw, 190px); line-height: .9; letter-spacing: -.035em; text-transform: uppercase; color: var(--char); }
.hero__claim .line { display: inline-block; white-space: nowrap; }
.wipe { position: absolute; inset: 0; z-index: 4; background: var(--char); clip-path: polygon(100% 100%, 100% 100%, 100% 100%, 100% 100%); pointer-events: none; }

/* ladder: dark field, five collectible cards on a track */
.ladder { position: relative; min-height: 100vh; background: var(--char); overflow: hidden; padding: clamp(90px, 10vw, 150px) 0 60px; }
.ladder__word { position: relative; z-index: 1; padding: 0 var(--pad); white-space: nowrap; font-weight: 900; font-variation-settings: 'wdth' 125; font-size: clamp(56px, 13.4vw, 340px); line-height: .82; letter-spacing: -.04em; text-transform: uppercase; color: #2a1d16; }
.ladder__lede { position: relative; z-index: 2; max-width: 420px; margin: -2.4vw 0 0 var(--pad); font-size: clamp(16px, 1.2vw, 21px); color: var(--ash); }
.ladder__track { position: relative; margin-top: clamp(30px, 4vw, 70px); }
.field { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(237,230,214,.16); }
.field__ticks { position: absolute; left: var(--pad); top: -14px; display: flex; gap: clamp(260px, 24vw, 520px); }
.field__ticks span { font-family: 'JB', monospace; font-size: 12px; color: var(--smoke); background: var(--char); padding: 4px 8px; border: 1px solid rgba(237,230,214,.18); border-radius: 999px; }
.cards { position: relative; z-index: 2; display: flex; gap: clamp(22px, 3vw, 60px); list-style: none; margin: 0; padding: 0 var(--pad); width: max-content; }
.tcard { width: clamp(250px, 21vw, 420px); }
.tcard__frame { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; padding: 10px; background: linear-gradient(150deg, #3a281e, #1d1410 45%, #2c1e16); box-shadow: inset 0 0 0 1px rgba(237,230,214,.12), 0 30px 60px -30px #000; transition: transform .5s var(--ease); will-change: transform; overflow: hidden; }
.tcard:nth-child(3) .tcard__frame, .tcard:nth-child(4) .tcard__frame { background: linear-gradient(150deg, #ff7a3d, var(--blood) 40%, #5a1608); }
.tcard:nth-child(5) .tcard__frame { background: linear-gradient(150deg, #ffd27a, var(--gold) 35%, #8a5a12); }
.tcard__frame canvas { width: 100%; height: 100%; border-radius: 10px; background: #120c09; }
.tcard__x { position: absolute; right: 22px; top: 18px; font-weight: 900; font-variation-settings: 'wdth' 112; font-size: clamp(36px, 3.4vw, 64px); line-height: 1; color: var(--ash); }
.tcard__sheen { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 50% at var(--sx, 30%) 20%, rgba(255,240,210,.22), transparent 70%); mix-blend-mode: screen; opacity: 0; transition: opacity .4s; }
.tcard__frame:hover .tcard__sheen { opacity: 1; }
.tcard__name { margin-top: 18px; font-weight: 900; font-variation-settings: 'wdth' 118; font-size: clamp(32px, 2.6vw, 52px); line-height: 1; text-transform: uppercase; letter-spacing: -.02em; }
.tcard__rule { margin-top: 6px; color: var(--gold); font-weight: 700; }
.tcard__line { margin-top: 6px; color: #b9ad9e; max-width: 34ch; }
.tcard__count { margin-top: 10px; font-family: 'JB', monospace; font-size: 13px; color: var(--smoke); min-height: 1.4em; }

/* the rule: dot-matrix type that resolves solid */
.rule { position: relative; background: var(--char); padding: clamp(100px, 14vw, 240px) var(--pad); text-align: center; overflow: hidden; }
.rule__dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rule__text { position: relative; font-weight: 900; font-variation-settings: 'wdth' 118; font-size: clamp(40px, 7.4vw, 170px); line-height: .92; letter-spacing: -.035em; text-transform: uppercase; color: var(--ash); }
.rule__text span { display: inline-block; white-space: nowrap; }
.rule__text span + span { color: var(--ember); }
.rule__sub { position: relative; max-width: 560px; margin: 36px auto 0; color: #b9ad9e; font-size: clamp(16px, 1.15vw, 20px); }

/* check-in */
.check { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 110px); align-items: center; padding: clamp(80px, 10vw, 180px) var(--pad); background: var(--ash); color: var(--char); }
.check__copy h2 { font-weight: 900; font-variation-settings: 'wdth' 112; font-size: clamp(40px, 5.4vw, 120px); line-height: .92; letter-spacing: -.03em; text-transform: uppercase; }
.check__copy > p { margin-top: 22px; max-width: 470px; font-size: clamp(16px, 1.15vw, 20px); color: #4a3d34; }
.check__form { margin-top: 34px; max-width: 560px; }
.check__form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.check__row { display: flex; gap: 8px; }
.check__row input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--char); background: transparent; font-family: 'JB', monospace; font-size: 14px; }
.check__row input::placeholder { color: #7a6c61; }
.check__row .btn { height: 52px; padding: 0 26px; background: var(--char); color: var(--ash); }
.check__row .btn:hover { background: var(--ember); color: var(--char); }
.linkbtn { margin-top: 12px; padding: 4px 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-weight: 700; }
.check__err { min-height: 1.5em; margin-top: 8px; color: var(--blood); font-weight: 700; }
.check__stage { display: grid; justify-items: center; gap: 24px; }
.streakcard { position: relative; width: min(100%, 440px); aspect-ratio: 3 / 4.1; border-radius: 26px; padding: 26px; background: var(--char); color: var(--ash); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 40px 80px -40px rgba(17,11,8,.9), inset 0 0 0 1px rgba(237,230,214,.1); transform: rotate(-3deg); transition: opacity .3s; }
.streakcard[data-tier="Inferno"], .streakcard[data-tier="Blaze"] { box-shadow: 0 40px 80px -40px rgba(17,11,8,.9), inset 0 0 0 3px var(--ember); }
.streakcard[data-tier="Eternal"] { box-shadow: 0 40px 80px -40px rgba(17,11,8,.9), inset 0 0 0 3px var(--gold); }
.streakcard.is-busy { opacity: .55; }
.streakcard__flame { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 72%; opacity: .95; }
.streakcard > *:not(canvas) { position: relative; z-index: 1; }
.streakcard__top { display: flex; align-items: center; gap: 10px; font-family: 'JB', monospace; font-size: 13px; color: #cfc4b3; }
.streakcard__top img { border-radius: 8px; }
.streakcard__day { margin-top: 26px; font-weight: 900; font-variation-settings: 'wdth' 125; line-height: .8; letter-spacing: -.04em; text-transform: uppercase; }
.streakcard__day .streakcard__k { display: block; font-size: clamp(30px, 2.6vw, 44px); color: var(--gold); letter-spacing: 0; }
.streakcard__day [data-c-days] { font-size: clamp(110px, 10vw, 180px); }
.streakcard__tier { margin-top: 8px; font-weight: 900; font-variation-settings: 'wdth' 112; font-size: clamp(30px, 2.6vw, 46px); line-height: 1; text-transform: uppercase; color: var(--ember); }
.streakcard[data-tier="Eternal"] .streakcard__tier { color: var(--gold); }
.heat { margin-top: 18px; height: 10px; border-radius: 999px; background: rgba(237,230,214,.14); overflow: hidden; }
.heat i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blood), var(--ember) 60%, var(--gold)); transition: width 1.2s var(--ease); }
.streakcard__note { margin-top: 12px; font-size: 14px; color: #e7dccb; text-shadow: 0 1px 8px rgba(17,11,8,.8); }
.streakcard__facts { margin: auto 0 0; padding-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.streakcard__facts div { background: rgba(17,11,8,.55); box-shadow: inset 0 0 0 1px rgba(237,230,214,.14); border-radius: 12px; padding: 10px; backdrop-filter: blur(6px); }
.streakcard__facts dt { font-size: 12px; color: #cfc4b3; }
.streakcard__facts dd { margin: 2px 0 0; font-family: 'JB', monospace; font-weight: 700; font-size: 15px; }
.streakcard__share { margin-top: 12px; align-self: flex-start; }
.paid { list-style: none; margin: 0; padding: 0; width: min(100%, 440px); }
.paid li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(17,11,8,.15); font-size: 14px; }
.paid li.empty { display: block; color: #5d5047; }

/* the pool */
.pool { position: relative; background: var(--char); padding: clamp(90px, 11vw, 200px) var(--pad) clamp(60px, 7vw, 120px); overflow: hidden; }
.pool__word { font-weight: 900; font-variation-settings: 'wdth' 125; font-size: clamp(56px, 13.4vw, 340px); line-height: .82; letter-spacing: -.04em; text-transform: uppercase; color: var(--ember); white-space: nowrap; }
.pool__body { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 5vw, 100px); align-items: end; margin-top: clamp(30px, 4vw, 70px); }
.pool__num { font-weight: 900; font-variation-settings: 'wdth' 112; font-size: clamp(44px, 6vw, 130px); line-height: .9; letter-spacing: -.03em; }
.pool__sol { font-family: 'Archivo'; font-variant-numeric: tabular-nums; }
.pool__unit { margin-left: .2em; color: var(--gold); font-size: .5em; }
.pool__side p { color: #b9ad9e; font-size: clamp(16px, 1.1vw, 19px); max-width: 520px; }
.pool__links { margin-top: 14px !important; }
.pool__links a { color: var(--gold); font-weight: 700; text-underline-offset: 4px; }
.claims { list-style: none; margin: clamp(60px, 7vw, 120px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(237,230,214,.16); }
.claims li { padding: 26px 22px 0 0; display: flex; flex-direction: column; gap: 8px; }
.claims li + li { padding-left: 22px; border-left: 1px solid rgba(237,230,214,.16); }
.claims b { font-weight: 900; font-variation-settings: 'wdth' 112; font-size: clamp(22px, 1.8vw, 34px); line-height: 1; text-transform: uppercase; color: var(--ash); }
.claims span { color: #b9ad9e; font-size: 15px; }

/* boards */
.boards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 80px); padding: clamp(60px, 7vw, 120px) var(--pad); background: var(--ink); }
.board h2 { font-weight: 900; font-variation-settings: 'wdth' 112; font-size: clamp(30px, 3vw, 60px); line-height: 1; text-transform: uppercase; letter-spacing: -.02em; }
.board__list { list-style: none; margin: 24px 0 0; padding: 0; }
.board__list li { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(237,230,214,.12); font-size: 15px; }
[data-payouts] li { grid-template-columns: auto auto 1fr repeat(3, auto); }
.board__list li.empty { display: block; color: #b9ad9e; }
.board__rank { font-family: 'JB', monospace; color: var(--smoke); }
.board__w { text-decoration: none; }
.board__w:hover { color: var(--gold); }
.board__d { font-weight: 800; }
.board__t { font-weight: 800; text-transform: uppercase; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(237,230,214,.08); }
.t-flame, .t-blaze { color: var(--ember); }
.t-inferno { background: var(--ember); color: var(--char); }
.t-eternal { background: var(--gold); color: var(--char); }
.board__list a.mono { color: var(--gold); font-size: 13px; }

/* footer */
.foot { background: var(--ember); color: var(--char); padding: clamp(40px, 5vw, 80px) var(--pad) 28px; overflow: hidden; }
.foot__word { font-weight: 900; font-variation-settings: 'wdth' 125; font-size: 17.6vw; line-height: .78; letter-spacing: -.05em; text-transform: uppercase; text-align: center; white-space: nowrap; }
.foot__row { display: flex; justify-content: space-between; gap: 24px; margin-top: 28px; font-size: 14px; }
.foot__row p { max-width: 560px; }
.foot__snap { text-align: right; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 30px); opacity: 0; padding: 12px 20px; border-radius: 999px; background: var(--ash); color: var(--char); font-weight: 700; box-shadow: 0 20px 40px -20px #000; transition: .35s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* responsive */
@media (max-width: 1100px) {
  .claims { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .claims li:nth-child(4) { padding-left: 0; border-left: 0; }
}
@media (max-width: 820px) {
  .top { gap: 8px; padding: 10px 14px; }
  .top__mark img { width: 36px; height: 36px; }
  .top__name { font-size: 24px; }
  .top__act .btn--ghost { display: none; }
  .ca { height: 36px; padding: 0 12px; }
  .ca__v { display: none; }
  .ico { width: 36px; height: 36px; }
  .btn { height: 36px; padding: 0 14px; font-size: 14px; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; padding-top: 86px; gap: 18px; }
  .hero__letters { flex-direction: column; justify-content: center; align-items: center; }
  .hero__letters span { font-size: 44vw; }
  .hero__flame { width: 120vw; height: 70%; }
  .hero__left, .hero__right { grid-column: 1; max-width: none; }
  .hero__left { grid-row: 1; display: flex; gap: 14px; align-items: center; }
  .mini { width: 84px; margin: 0; flex: none; }
  .mini canvas { height: 90px; }
  .mini figcaption { font-size: 11px; }
  .hero__right { grid-row: 3; justify-self: start; text-align: left; }
  .hero__claim { grid-row: 4; font-size: clamp(38px, 13vw, 80px); text-align: left; }
  .hero__claim .line { display: block; white-space: normal; }
  .ladder__lede { margin-top: 8px; }
  .cards { flex-direction: column; width: auto; gap: 48px; }
  .tcard { width: 100%; max-width: 420px; }
  .tcard__frame { aspect-ratio: 4 / 3; }
  .field { display: none; }
  .rule__text span { display: block; white-space: normal; }
  .check, .pool__body, .boards { grid-template-columns: 1fr; }
  .check__copy h2 { font-size: clamp(40px, 11vw, 70px); }
  .claims { grid-template-columns: 1fr; }
  .claims li, .claims li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid rgba(237,230,214,.16); }
  .foot__row { flex-direction: column; }
  .foot__snap { text-align: left; }
  .paid li { grid-template-columns: 1fr auto; }
  [data-payouts] li { grid-template-columns: 1fr auto; }
  .board__list li { grid-template-columns: 28px 1fr auto; }
  .board__list li .board__t { grid-column: 2 / -1; justify-self: start; }
}
@media (max-width: 420px) {
  .top__name { display: none; }
  .streakcard { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .wipe { display: none; }
}
