@font-face { font-family: "Lilita One"; src: url(fonts/lilita-one.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(fonts/nunito.woff2) format("woff2"); font-weight: 600 900; font-display: swap; }

:root {
  --ink: #121212; --cream: #FFF4E0; --paper: #FFFBF3; --wood: #E9A55C; --wood-d: #C98134;
  --red: #E3553B; --sun: #FFE04B; --sky: #4C88E2; --fire: #FF7A1A; --ember: #FFB23F;
  --fg-2: #4A3B2C; --fg-3: #7A6650; --char: #2A211A;
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, sans-serif;
  --edge: 3px solid var(--ink); --pop: 4px 4px 0 var(--ink); --r: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--ink); font-family: var(--body); font-weight: 700; font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.num { font-variant-numeric: tabular-nums; }
.lbl { font-size: 11.5px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.card { background: var(--paper); border: var(--edge); border-radius: var(--r); box-shadow: var(--pop); }
h1, h2 { font-family: var(--display); font-weight: 400; margin: 0; }
h2 { font-size: 30px; line-height: 1.05; }

/* ticker */
.ticker { background: var(--ink); color: var(--cream); height: 34px; overflow: hidden; display: flex; align-items: center; }
.track { display: flex; flex: none; white-space: nowrap; animation: tick 40s linear infinite; }
.track span { font-family: var(--display); font-size: 15px; letter-spacing: .04em; padding: 0 22px; display: inline-flex; align-items: center; gap: 8px; }
.track span::after { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--fire); transform: rotate(45deg); margin-left: 22px; }
.track em { font-style: normal; color: var(--sun); }
.track .up { color: #7CE38B; } .track .down { color: #FF8A7A; }
@keyframes tick { to { transform: translateX(-50%); } }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.brand img { width: 46px; height: 46px; border-radius: 50%; border: var(--edge); background: var(--paper); flex: none; }
.brand span { font-family: var(--display); font-size: 23px; line-height: 1; white-space: nowrap; }
.brand em { font-style: normal; color: var(--fire); }
.actions { display: flex; align-items: center; gap: 10px; flex: none; }
.pill { font-weight: 900; font-size: 13.5px; text-decoration: none; padding: 7px 12px; border-radius: 99px; border: 2.5px solid var(--ink); background: var(--paper); transition: background .15s; }
@media (hover: hover) { .pill:hover { background: var(--sun); } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 13px; border: var(--edge); box-shadow: var(--pop); font-family: var(--display); font-size: 18px; letter-spacing: .01em; text-decoration: none; white-space: nowrap; background: var(--paper); color: var(--ink); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .15s; }
.btn.buy { background: var(--red); color: #fff; }
.btn.big { height: 56px; padding: 0 30px; font-size: 22px; border-radius: 15px; }
@media (hover: hover) { .btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); } .btn.ghost:hover { background: var(--sun); } }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn[aria-disabled="true"] { pointer-events: none; }
.btn.buy[aria-disabled="true"] { background: var(--wood); color: var(--ink); }
.btn.ghost[aria-disabled="true"] { color: var(--fg-3); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 410px; grid-template-areas: "pitch furnace" "tiles furnace"; gap: 22px 40px; padding-top: 14px; align-items: start; }
.pitch { grid-area: pitch; }
.tiles { grid-area: tiles; align-self: end; }
.furnace { grid-area: furnace; }

.live { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 5px 12px 5px 10px; border: 2.5px solid var(--ink); border-radius: 99px; background: var(--paper); font-size: 12.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: #2BB673; box-shadow: 0 0 0 0 rgba(43, 182, 115, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(43, 182, 115, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 182, 115, 0); } }
h1 { font-size: clamp(46px, 5.6vw, 80px); line-height: .93; letter-spacing: .005em; }
h1 em { display: block; white-space: nowrap; word-spacing: .05em; font-style: normal; color: var(--fire); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); }
.sub { margin: 16px 0 0; color: var(--fg-2); font-size: 17px; line-height: 1.5; max-width: 50ch; }
.sub b { color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 12px 14px 13px; min-width: 0; }
.tile b { display: block; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.05; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile small { display: block; color: var(--fg-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.hot { background: var(--sun); }
.tile.hot small, .tile.hot .lbl { color: var(--fg-2); }

/* furnace */
.furnace { padding: 13px; display: flex; flex-direction: column; gap: 10px; }
.frame { position: relative; aspect-ratio: 1; border: var(--edge); border-radius: 13px; overflow: hidden; background: var(--wood); }
.frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(255, 122, 26, .45), rgba(255, 122, 26, 0) 42%); pointer-events: none; }
.tag { position: absolute; z-index: 3; left: 12px; top: 12px; padding: 4px 11px; border-radius: 10px; border: var(--edge); background: var(--fire); color: #fff; font-family: var(--display); font-size: 16px; transform: rotate(-3deg); box-shadow: 3px 3px 0 var(--ink); }
.fire { position: absolute; z-index: 2; left: -4%; right: -4%; bottom: -10px; height: 34%; pointer-events: none; }
.f { position: absolute; bottom: 0; overflow: visible; transform-origin: 50% 100%; animation: flick 1.1s ease-in-out infinite alternate; }
.f1 { left: 0; width: 22%; height: 78%; animation-delay: -.3s; }
.f2 { left: 16%; width: 26%; height: 100%; animation-delay: -.8s; animation-duration: .9s; }
.f3 { left: 37%; width: 28%; height: 112%; animation-delay: -.1s; animation-duration: 1.3s; }
.f4 { left: 60%; width: 25%; height: 94%; animation-delay: -.6s; }
.f5 { left: 80%; width: 22%; height: 74%; animation-delay: -.45s; animation-duration: 1s; }
@keyframes flick { 0% { transform: scaleY(.9) skewX(-3deg); } 50% { transform: scaleY(1.06) skewX(2deg); } 100% { transform: scaleY(.95) skewX(-1deg) scaleX(1.03); } }
.e { position: absolute; bottom: 30%; width: 7px; height: 7px; border-radius: 2px; background: var(--ember); border: 1.5px solid var(--ink); opacity: 0; animation: rise 2.6s linear infinite; }
.e1 { left: 18%; } .e2 { left: 34%; animation-delay: -.9s; } .e3 { left: 52%; animation-delay: -1.7s; } .e4 { left: 66%; animation-delay: -.4s; } .e5 { left: 80%; animation-delay: -2.1s; } .e6 { left: 44%; animation-delay: -1.2s; width: 5px; height: 5px; }
@keyframes rise { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(14px, -170px) rotate(160deg); opacity: 0; } }
.next { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.next b { display: block; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.05; }
.fire-t { color: var(--fire); }
.price { text-align: right; }
.price span { color: var(--fg-2); font-size: 14px; }
.heat { height: 26px; border-radius: 99px; border: var(--edge); background: #fff; overflow: hidden; }
.heat i { display: block; height: 100%; width: 0; min-width: 0; background: repeating-linear-gradient(-45deg, var(--fire) 0 12px, #FF9440 12px 24px); background-size: 34px 34px; animation: belt 1s linear infinite; transition: width 1s ease; }
.heat i.on { border-right: 3px solid var(--ink); }
.heatmeta { display: flex; justify-content: space-between; gap: 10px; color: var(--fg-2); font-size: 14px; margin-top: -4px; }
@keyframes belt { to { background-position: 34px 0; } }

/* sections */
.block { margin-top: 40px; }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }

/* next in line: crates on a belt rolling toward the fire */
.belt { position: relative; padding-bottom: 20px; }
.belt::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; border: var(--edge); border-radius: 99px; background: repeating-linear-gradient(90deg, var(--wood) 0 18px, var(--wood-d) 18px 36px); animation: roll 1.2s linear infinite reverse; }
@keyframes roll { to { background-position: 36px 0; } }
.line { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.crate { position: relative; overflow: hidden; }
.crate .img { aspect-ratio: 1; background: var(--wood); border-bottom: var(--edge); }
.crate .img img { width: 100%; height: 100%; object-fit: cover; }
.crate .meta { padding: 7px 10px 9px; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.crate .meta b { font-family: var(--display); font-weight: 400; font-size: 16px; }
.crate .meta span { color: var(--fg-2); font-size: 13px; white-space: nowrap; }
.crate.first { background: var(--sun); }
.crate .badge { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 8px; border: 2.5px solid var(--ink); background: var(--fire); color: #fff; font-family: var(--display); font-size: 13px; }

/* burn pile */
.pile { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.burnt { overflow: hidden; }
.burnt .img { position: relative; aspect-ratio: 1; background: var(--char); border-bottom: var(--edge); }
.burnt .img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.9) sepia(.35) contrast(1.15) brightness(.72); }
.burnt .img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 120%, rgba(42, 33, 26, .85), rgba(42, 33, 26, 0) 70%); }
.stamp { position: absolute; z-index: 1; right: 8px; bottom: 9px; padding: 2px 9px; border-radius: 8px; border: 2.5px solid var(--ink); background: var(--fire); color: #fff; font-family: var(--display); font-size: 14px; transform: rotate(-5deg); }
.burnt .meta { padding: 8px 11px 10px; }
.burnt .meta b { font-family: var(--display); font-weight: 400; font-size: 17px; }
.burnt .meta .row { display: flex; justify-content: space-between; gap: 8px; color: var(--fg-2); font-size: 12.5px; }
.burnt .meta nav { display: flex; gap: 12px; margin-top: 3px; }
.burnt .meta a { color: var(--sky); font-size: 12.5px; font-weight: 900; text-decoration: none; }
@media (hover: hover) { .burnt .meta a:hover { text-decoration: underline; } }
.empty { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 3px dashed var(--fg-3); border-radius: var(--r); color: var(--fg-2); font-size: 15.5px; }
.empty svg { width: 34px; height: 50px; flex: none; }

/* how it works */
.how { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 20px; align-items: center; padding: 22px 26px; overflow: hidden; background: var(--cream); }
.steps { display: flex; flex-direction: column; gap: 14px; }
.steps h2 { margin-bottom: 4px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .n { flex: none; width: 38px; height: 38px; border-radius: 11px; border: var(--edge); background: var(--wood); display: grid; place-items: center; font-family: var(--display); font-size: 20px; box-shadow: 3px 3px 0 var(--ink); }
.step b { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.1; }
.step p { margin: 2px 0 0; color: var(--fg-2); font-size: 15px; max-width: 46ch; }
.art { width: 100%; height: auto; }

footer.wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; padding-top: 30px; padding-bottom: 36px; color: var(--fg-3); font-size: 13.5px; }
footer p { margin: 0; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { text-decoration: none; font-weight: 800; }
@media (hover: hover) { footer a:hover { color: var(--ink); } }

/* loading */
.ph { background: linear-gradient(100deg, var(--wood) 30%, #F2BC7E 50%, var(--wood) 70%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 1080px) {
  .line { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .line > :nth-child(n+7) { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "pitch" "furnace" "tiles"; }
  .furnace { max-width: 520px; width: 100%; justify-self: center; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .how { grid-template-columns: 1fr; }
  .art { max-width: 460px; justify-self: center; }
  .line { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 4px 8px 2px; margin: -2px -4px 0 -2px; scrollbar-width: none; }
  .line::-webkit-scrollbar { display: none; }
  .line > * { flex: 0 0 132px; scroll-snap-align: start; }
  .line > :nth-child(n+7) { display: block; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav .chart, .nav .pill { display: none; }
  .brand span { font-size: 19px; }
  .brand img { width: 40px; height: 40px; }
  .btn { height: 40px; padding: 0 14px; font-size: 16px; }
  .btn.big { height: 52px; padding: 0 22px; font-size: 20px; flex: 1; }
  .sub { font-size: 16px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile b { font-size: 26px; }
  h2 { font-size: 26px; }
  .block { margin-top: 36px; }
  .pile { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .how { padding: 18px; }
  .head { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .e { display: none; }
}
