:root {
  --bg: #ffffff;
  --bg-2: #f7f7f5;
  --line: #e9e8e4;
  --text: #111217;
  --muted: #6b6f7b;
  --yellow: #ffcc1a;
  --green: #0f9f5a;
  --red: #d92d20;
  --blue: #2563eb;
  --radius: 16px;
  --surface: #ffffff;
  --nav-bg: rgba(255,255,255,.85);
  --line-2: #cfcdc6;
  --dot: #e7e4da;
  --glow: #fff6d6;
  --brick-edge: #d9d6cc;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.up { color: var(--green); } .down { color: var(--red); }
.wrap, .nav-inner, .hero, .section, .cta, .footer { padding-inline: max(20px, calc((100vw - 1200px) / 2)); }

/* NAV */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { height: 64px; display: flex; align-items: center; gap: 40px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.logo-mark { width: 22px; height: 14px; border-radius: 3px; background: var(--yellow); position: relative; margin-top: 4px; }
.logo-mark::before, .logo-mark::after { content: ""; position: absolute; top: -4px; width: 6px; height: 5px; border-radius: 2px 2px 0 0; background: var(--yellow); }
.logo-mark::before { left: 3px; } .logo-mark::after { right: 3px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; color: var(--muted); margin-right: auto; }
.nav-links a:hover { color: var(--text); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: background .15s, transform .15s, border-color .15s; cursor: pointer; }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-primary { background: var(--yellow); color: var(--text); }
.btn-primary:hover { background: #f5bf00; }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { opacity: .88; }
.btn-ghost { background: var(--surface); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-2); }

/* HERO */
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 32px; min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); padding-block: 40px; background: radial-gradient(55% 55% at 72% 55%, var(--glow) 0%, transparent 70%), var(--bg); }
.eyebrow { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 20px; }
h1 { font-size: clamp(44px, 6vw, 80px); line-height: 1; letter-spacing: -.045em; font-weight: 800; margin-bottom: 22px; }
.lede { font-size: 18px; color: var(--muted); max-width: 440px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; gap: 36px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 480px; }
.hero-stats dt { font-size: 13px; color: var(--muted); }
.hero-stats dd { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.stage { position: relative; height: min(74vh, 660px); min-height: 480px; }
#stage3d { position: absolute; inset: 0 0 90px 0; width: 100%; height: calc(100% - 90px); display: block; cursor: grab; touch-action: pan-y; }
#stage3d:active { cursor: grabbing; }
.feature { position: absolute; left: 0; bottom: 0; width: min(330px, calc(100% - 170px)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: 0 10px 30px -18px rgba(17,18,23,.3); transition: opacity .25s; }
.feature.swap { opacity: 0; }
.f-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.f-name { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin: 2px 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.f-k { display: block; font-size: 12px; color: var(--muted); }
.f-v { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stage-ctrl { position: absolute; right: 0; bottom: 22px; display: flex; align-items: center; gap: 12px; }
.stage-ctrl > button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.stage-ctrl > button:hover { border-color: var(--text); }
.dots { display: flex; gap: 6px; }
.dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: var(--line-2); cursor: pointer; transition: width .25s, background .25s; }
.dots button.on { width: 20px; background: var(--text); }

/* SECTIONS */
.section { padding-block: 110px; }
.section-alt { background: var(--bg-2); }
.section-head { margin-bottom: 44px; }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
.sub { color: var(--muted); font-size: 17px; margin-top: 10px; }
.note { margin-top: 14px; color: var(--muted); font-size: 13px; }

/* ITEMS */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-bottom: 40px; }
.item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: border-color .2s, transform .2s; }
.item:hover { border-color: var(--line-2); transform: translateY(-3px); }
.item-img { aspect-ratio: 1; background: var(--surface); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.item:hover .item-img img { transform: scale(1.04); }
.item-body { padding: 14px 16px 16px; }
.item-fr { font-size: 12px; color: var(--muted); }
.item h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin: 1px 0 10px; }
.item-prices { display: flex; align-items: baseline; justify-content: space-between; }
.item-prices .v { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.item-prices .r { font-size: 13px; color: var(--muted); }
.chip { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.chip.up { background: #e3f6ec; } .chip.down { background: #fde8e6; } .chip.flat { background: #eaf0ff; color: var(--blue); }

/* TABLE */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.vtable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.vtable th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.vtable td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.vtable .r { text-align: right; }
.vtable .num { color: var(--muted); margin-right: 8px; font-family: var(--mono); font-size: 12px; }
.vtable tfoot td { font-weight: 700; border-bottom: 0; background: var(--bg-2); }

/* STEPS */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step-num { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.step h3 { font-size: 20px; margin: 18px 0 6px; letter-spacing: -.01em; }
.step p { color: var(--muted); }

/* TOKENOMICS */
.toko { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: center; }
.donut-wrap { position: relative; width: 100%; max-width: 320px; aspect-ratio: 1; }
.donut { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-big { font-size: 48px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.donut-small { font-size: 13px; color: var(--muted); }
.legend { list-style: none; display: grid; gap: 4px; }
.legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.legend .lt { font-weight: 600; }
.legend .lp { font-weight: 700; font-variant-numeric: tabular-nums; }
.toko-cards { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tcard { padding: 16px; border-radius: 12px; border: 1px solid var(--line); }
.tk { display: block; font-size: 12px; color: var(--muted); }
.tv { font-size: 20px; font-weight: 700; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 20px; }

/* CTA + FOOTER */
.cta { padding-block: 110px; text-align: center; display: grid; justify-items: center; gap: 28px; }
.ca { display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border: 1px solid var(--line); border-radius: 10px; font-family: var(--mono); font-size: 13px; max-width: 100%; }
.ca span { color: var(--muted); }
.ca code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca button { border: 0; background: var(--bg-2); border-radius: 7px; padding: 6px 10px; cursor: pointer; font-size: 12px; }
.footer { padding-block: 36px 48px; border-top: 1px solid var(--line); display: flex; gap: 32px; align-items: flex-start; justify-content: space-between; }
.footer p { color: var(--muted); font-size: 12px; max-width: 620px; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; }
  .stage { height: 520px; min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .toko { grid-template-columns: 1fr; gap: 32px; }
  .donut-wrap { margin: 0 auto; }
}
@media (max-width: 600px) {
  .hero-stats { gap: 20px; }
  .hero-stats dd { font-size: 18px; }
  .feature { width: 100%; }
  .stage-ctrl { top: 0; bottom: auto; }
  #stage3d { inset: 48px 0 118px 0; height: calc(100% - 166px); }
  .section, .cta { padding-block: 80px; }
  .toko-cards { grid-template-columns: 1fr 1fr 1fr; }
  .footer { flex-direction: column; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* HERO PUNCH */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(circle, var(--dot) 1.6px, transparent 2px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(70% 70% at 70% 50%, #000 0%, transparent 75%); mask-image: radial-gradient(70% 70% at 70% 50%, #000 0%, transparent 75%); }
.hero h1 { font-size: clamp(46px, 6vw, 92px); line-height: 1; white-space: nowrap; margin-bottom: 28px; letter-spacing: -.055em; }
.hero h1 .w { display: inline-block; animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
.hero h1 .w:nth-child(2) { animation-delay: .08s; } .hero h1 .w:nth-of-type(3) { animation-delay: .18s; }
.hero h1 mark { background: var(--yellow); color: var(--text); padding: 0 .12em; border-radius: .12em; position: relative; box-shadow: 0 .08em 0 #e0a800; }
.hero h1 mark::before, .hero h1 mark::after { content: ""; position: absolute; top: -.13em; width: .34em; height: .14em; border-radius: .05em .05em 0 0; background: var(--yellow); }
.hero h1 mark::before { left: .3em; } .hero h1 mark::after { right: .3em; }
.hero .lede, .hero .hero-cta, .hero .hero-stats { animation: rise .9s .3s cubic-bezier(.2,.8,.2,1) both; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(15,159,90,.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(15,159,90,0); } 100% { box-shadow: 0 0 0 0 rgba(15,159,90,0); } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.btn-primary { box-shadow: 0 4px 0 #d9a900; }
.btn-primary:active { box-shadow: 0 1px 0 #d9a900; transform: translateY(3px); }

/* TICKER */
.ticker { background: var(--text); color: #fff; overflow: hidden; padding: 14px 0; font-family: var(--mono); font-size: 13px; }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.ticker-track span { white-space: nowrap; display: inline-flex; gap: 10px; align-items: center; }
.ticker-track b { color: var(--yellow); font-weight: 500; }
.ticker-track .up { color: #4ade80; } .ticker-track .down { color: #f87171; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* STORY (scroll) */
.story { height: 320vh; position: relative; background: var(--bg-2); }
.story-pin { position: sticky; top: 64px; height: calc(100vh - 64px); height: calc(100svh - 64px); overflow: hidden; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); padding-inline: max(20px, calc((100vw - 1200px) / 2)); }
.story canvas { grid-column: 2; grid-row: 1; width: 100%; height: 100%; display: block; }
.story-copy { grid-column: 1; grid-row: 1; align-self: center; position: relative; z-index: 1; }
.story-steps { position: relative; min-height: 220px; }
.story-steps article { position: absolute; inset: 0 auto auto 0; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .5s; pointer-events: none; }
.story-steps article.on { opacity: 1; transform: none; }
.story-steps h3 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1; letter-spacing: -.045em; font-weight: 800; margin: 14px 0 14px; }
.story-steps p { color: var(--muted); font-size: 18px; max-width: 380px; }
.story-bar { position: absolute; left: max(20px, calc((100vw - 1200px) / 2)); top: 18%; bottom: 18%; width: 3px; margin-left: -18px; background: var(--line); border-radius: 2px; }
.story-bar i { display: block; height: 100%; background: var(--yellow); transform-origin: top; transform: scaleY(0); }
@media (max-width: 960px) {
  .story-pin { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .story canvas { grid-column: 1; grid-row: 1; }
  .story-copy { grid-row: 2; align-self: end; padding-bottom: 40px; }
  .story-steps { min-height: 170px; }
  .story-bar { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
.ticker-track em { font-style: normal; }

/* LOGO */
.logo-img { width: 26px; height: auto; image-rendering: pixelated; display: block; }
.nav-links a.on { color: var(--text); }
.cta-logo { width: 96px; height: auto; image-rendering: pixelated; }

/* HOME (hero only, scroll-driven brick box) */
html { scroll-behavior: auto; }
.home { height: 260vh; position: relative; }
.home-pin.hero { position: sticky; top: 64px; height: calc(100vh - 64px); height: calc(100svh - 64px); min-height: 0; padding-block: 0; }
.home-canvas { width: 100%; height: 100%; display: block; }
.home-steps { position: absolute; right: max(20px, calc((100vw - 1200px) / 2)); bottom: 32px; display: flex; gap: 8px; list-style: none; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.home-steps li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); transition: background .3s, color .3s, border-color .3s; }
.home-steps li.on { background: var(--text); color: #fff; border-color: var(--text); }
.scroll-hint { position: absolute; left: max(20px, calc((100vw - 1200px) / 2)); bottom: 32px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.scroll-hint::after { content: ""; width: 1px; height: 28px; background: linear-gradient(var(--muted), transparent); animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 0%,100% { transform: translateY(-4px); opacity: .4; } 50% { transform: translateY(4px); opacity: 1; } }
.view.section { min-height: calc(100vh - 64px - 140px); }
.view .stage { margin-bottom: 48px; }
@media (max-width: 960px) {
  .home-pin.hero { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding-top: 28px; gap: 0; }
  .home-pin .hero-stats { margin-top: 24px; }
  .home-steps { right: 50%; transform: translateX(50%); bottom: 20px; }
  .scroll-hint { display: none; }
}
@media (max-width: 600px) {
  .home-pin h1 { font-size: 44px; margin-bottom: 14px; }
  .home-pin .lede { font-size: 16px; margin-bottom: 18px; }
  .home-pin .hero-stats { display: none; }
}
[hidden] { display: none !important; }
.home-pin.hero { grid-template-rows: minmax(0, 1fr); }
.home-canvas { min-height: 0; grid-column: 2; grid-row: 1; }
.home-pin .hero-copy { grid-column: 1; grid-row: 1; }
@media (max-width: 960px) {
  .home-pin.hero { grid-template-rows: auto minmax(0, 1fr); }
  .home-pin .hero-copy { grid-column: 1; grid-row: 1; }
  .home-canvas { grid-column: 1; grid-row: 2; }
}
.home-steps li { white-space: nowrap; }
@media (max-width: 960px) {
  .nav-inner { height: auto; flex-wrap: wrap; row-gap: 0; padding-top: 12px; }
  .nav-links { display: flex; order: 3; width: 100%; gap: 22px; overflow-x: auto; padding: 10px 0 12px; margin: 0; scrollbar-width: none; }
  .nav-links a { white-space: nowrap; }
  .home-pin.hero, .story-pin { top: 104px; height: calc(100svh - 104px); }
}

/* HOME full-screen scroll */
.home { height: 340vh; }
.home-pin.hero { display: block; padding: 0; }
.home-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-pin .hero-copy { position: absolute; z-index: 1; left: max(20px, calc((100vw - 1200px) / 2)); top: 50%; transform: translateY(calc(-50% - var(--p, 0) * 240px)); opacity: max(0, calc(1 - var(--p, 0) * 7)); max-width: 560px; }
.home-pin .hero-copy[style], .home-pin .hero-copy { pointer-events: auto; }
.home-steps, .scroll-hint { z-index: 1; }
.home-steps { left: 50%; right: auto; transform: translateX(-50%); }
.scroll-hint { opacity: max(0, calc(1 - var(--p, 0) * 10)); }
@media (max-width: 960px) {
  .home-pin .hero-copy { top: 28px; transform: translateY(calc(var(--p, 0) * -240px)); right: 20px; }
  .home-steps { transform: translateX(-50%); right: auto; }
}

/* REWARDS */
.rw { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.rw-ways { list-style: none; display: grid; gap: 12px; margin-bottom: 32px; max-width: 460px; }
.rw-ways li { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.rw-ways b { display: block; font-size: 17px; }
.rw-ways span { color: var(--muted); font-size: 14px; }
.rw-n { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--yellow); display: grid; place-items: center; font-weight: 800; color: var(--text) !important; font-size: 15px !important; }
.rw-side { display: grid; gap: 16px; }
.gcard { position: relative; aspect-ratio: 1.6; border-radius: 22px; padding: 28px; color: #fff; background: radial-gradient(120% 120% at 100% 0%, #3a3d4a 0%, #111217 60%); box-shadow: 0 30px 60px -30px rgba(17,18,23,.6); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transform: rotate(-3deg); transition: transform .4s; }
.gcard:hover { transform: rotate(0) translateY(-4px); }
.gcard::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 200px; height: 200px; border-radius: 50%; background: var(--yellow); opacity: .9; }
.gcard-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #c9c9cf; position: relative; z-index: 1; }
.gcard-top img { image-rendering: pixelated; }
.gcard-amt { font-size: clamp(48px, 6vw, 72px); font-weight: 800; letter-spacing: -.04em; line-height: 1; position: relative; z-index: 1; }
.gcard-sub { color: #c9c9cf; font-size: 14px; position: relative; z-index: 1; }
.rw-timer { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; }
.rw-timer span { color: var(--muted); font-size: 14px; }
.rw-timer b { font-family: var(--mono); font-size: 16px; font-variant-numeric: tabular-nums; }
.rw-prizes { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rw-prizes li { padding: 14px; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.rw-prizes b { display: block; font-size: 22px; letter-spacing: -.02em; }
.rw-prizes span { font-size: 12px; color: var(--muted); }
@media (max-width: 960px) { .rw { grid-template-columns: 1fr; gap: 40px; } }

/* BACKING BADGES */
.bk { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.bk::before { content: ""; width: 6px; height: 6px; border-radius: 2px; }
.bk-phys { background: #fff4cc; color: #7a5a00; } .bk-phys::before { background: var(--yellow); }
.bk-vault { background: #eaf0ff; color: var(--blue); } .bk-vault::before { background: var(--blue); }
.backing-key { margin-top: 16px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.item-body .bk { margin: 6px 0 2px; display: inline-flex; }
.item-body .item-fr { display: block; }

/* HERO copy v2 */
.home-pin .hero-copy { max-width: none; }
.home-pin h1 { font-size: clamp(44px, 5.6vw, 88px); }
.home-pin .lede { font-size: 20px; max-width: 520px; }
.home-pin .lede b { color: var(--text); font-weight: 700; }

/* STEP BUTTONS — LEGO bricks */
.home-steps { gap: 14px; bottom: 36px; }
.home-steps li {
  position: relative; cursor: pointer; user-select: none;
  height: 44px; padding: 0 22px; display: grid; place-items: center;
  border: 0; border-radius: 6px; font-weight: 700; font-size: 12px; letter-spacing: .1em;
  background: var(--surface); color: var(--muted);
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.9), 0 5px 0 var(--brick-edge), 0 10px 18px -8px rgba(17,18,23,.25);
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.home-steps li::before, .home-steps li::after {
  content: ""; position: absolute; top: -7px; width: 18px; height: 8px; border-radius: 4px 4px 1px 1px;
  background: inherit; box-shadow: inset 0 2px 0 rgba(255,255,255,.7), inset 0 -2px 0 rgba(0,0,0,.08);
}
.home-steps li::before { left: 22%; } .home-steps li::after { right: 22%; }
.home-steps li:hover { transform: translateY(-2px); color: var(--text); }
.home-steps li.on {
  background: var(--yellow); color: var(--text); transform: translateY(-3px);
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.6), 0 6px 0 #c99a00, 0 16px 24px -10px rgba(201,154,0,.6);
}
.home-steps li:active { transform: translateY(3px); box-shadow: inset 0 -3px 0 rgba(0,0,0,.1), 0 1px 0 #c99a00; }
@media (max-width: 600px) { .home-steps { gap: 8px; } .home-steps li { padding: 0 12px; font-size: 11px; height: 40px; } }

/* DARK MODE */
:root[data-theme="dark"] {
  --bg: #0d0e12; --bg-2: #14161c; --surface: #17191f; --line: #262933; --line-2: #3a3e4a;
  --text: #f3f2ee; --muted: #9a9dab; --nav-bg: rgba(13,14,18,.8);
  --dot: #23262f; --glow: rgba(255,204,26,.10); --brick-edge: #07080a;
  color-scheme: dark;
}
:root[data-theme="dark"] .chip.up { background: rgba(15,159,90,.16); }
:root[data-theme="dark"] .chip.down { background: rgba(217,45,32,.18); }
:root[data-theme="dark"] .chip.flat, :root[data-theme="dark"] .bk-vault { background: rgba(37,99,235,.2); color: #8fb0ff; }
:root[data-theme="dark"] .bk-phys { background: rgba(255,204,26,.16); color: var(--yellow); }
:root[data-theme="dark"] .item-img { background: #fff; }
:root[data-theme="dark"] .gcard { background: radial-gradient(120% 120% at 100% 0%, #2b2e3a 0%, #08090c 60%); border: 1px solid var(--line); }
:root[data-theme="dark"] .home-steps li { box-shadow: inset 0 -5px 0 rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06), 0 5px 0 var(--brick-edge), 0 10px 18px -8px rgba(0,0,0,.6); }
:root[data-theme="dark"] .home-steps li::before, :root[data-theme="dark"] .home-steps li::after { box-shadow: inset 0 2px 0 rgba(255,255,255,.08), inset 0 -2px 0 rgba(0,0,0,.3); }
:root[data-theme="dark"] .home-steps li.on { box-shadow: inset 0 -5px 0 rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.6), 0 6px 0 #c99a00, 0 16px 28px -8px rgba(255,204,26,.45); }
.theme-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--text); }
.theme-btn:hover { border-color: var(--line-2); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
body, .nav, .item, .step, .btn-ghost { transition: background-color .3s, border-color .3s, color .3s; }
.nav-inner .theme-btn { margin-right: -28px; }
@media (max-width: 960px) { .nav-inner { column-gap: 10px; } .nav-inner .logo { margin-right: auto; } .nav-inner .theme-btn { margin-right: 0; } }
.home-pin h1 { line-height: 1.1; }
/* text on yellow stays dark in both themes */
.btn-primary, .hero h1 mark, .home-steps li.on, .rw-n { color: #111217 !important; }

/* HERO v3 — centered */
.home-pin .hero-copy { left: 50%; right: auto; top: clamp(40px, 9vh, 110px); transform: translate(-50%, calc(var(--p, 0) * -240px)); width: min(980px, calc(100% - 40px)); text-align: center; display: flex; flex-direction: column; align-items: center; }
.home-pin h1 { font-size: clamp(44px, 6.6vw, 104px); white-space: normal; }
.home-pin .lede { max-width: 560px; margin-inline: auto; }
.home-pin .hero-cta { justify-content: center; }
.home-pin .eyebrow { margin-bottom: 18px; }
.hero::before { -webkit-mask-image: radial-gradient(60% 60% at 50% 75%, #000 0%, transparent 75%); mask-image: radial-gradient(60% 60% at 50% 75%, #000 0%, transparent 75%); }
.hero { background: radial-gradient(50% 45% at 50% 78%, var(--glow) 0%, transparent 70%), var(--bg); }
.scroll-hint { left: auto; right: max(20px, calc((100vw - 1200px) / 2)); }
@media (max-width: 960px) {
  .home-pin .hero-copy { top: 24px; transform: translate(-50%, calc(var(--p, 0) * -240px)); right: auto; }
}
.logo-img, .cta-logo, .gcard-top img { image-rendering: auto; }
.logo-img { width: 24px; }
.logo { font-size: 18px; letter-spacing: -.02em; }
:root[data-theme="dark"] .logo-img, :root[data-theme="dark"] .cta-logo { filter: drop-shadow(0 0 0 transparent); }
.acro b { color: var(--text); }

/* BACKING — raised tiles + brick tags */
.backing-key { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 16px; margin-top: 22px; }
.bkey { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 0 var(--brick-edge), 0 12px 20px -14px rgba(17,18,23,.35); }
.bkey svg { width: 40px; height: 40px; flex: none; }
.bkey b { display: block; font-size: 15px; color: var(--text); letter-spacing: -.01em; }
.bkey span { font-size: 13px; color: var(--muted); }
.bk { gap: 0; padding: 4px 8px 5px; border-radius: 4px; font-family: var(--mono); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.bk::before { display: none; }
.bk-phys { background: var(--yellow) !important; color: #111217 !important; box-shadow: inset 0 -2px 0 rgba(0,0,0,.14), 0 2px 0 #c99a00; }
.bk-vault { background: #2b2e38 !important; color: #f3f2ee !important; box-shadow: inset 0 -2px 0 rgba(0,0,0,.3), 0 2px 0 #111217; }
@media (max-width: 600px) { .backing-key { grid-template-columns: 1fr; } }

/* ===== LEGO RELIEF SYSTEM ===== */
:root { --edge: #d6d2c6; --edge-strong: #c4c0b3; --hl: rgba(255,255,255,.9); }
:root[data-theme="dark"] { --edge: #050608; --edge-strong: #000; --hl: rgba(255,255,255,.06); }

/* buttons: every button is a brick */
.btn { box-shadow: inset 0 1px 0 var(--hl), inset 0 -3px 0 rgba(0,0,0,.08), 0 4px 0 var(--edge); transform: translateY(0); transition: transform .12s, box-shadow .12s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 -1px 0 rgba(0,0,0,.08), 0 1px 0 var(--edge); }
.btn-primary { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -3px 0 rgba(0,0,0,.1), 0 4px 0 #c99a00; }
.btn-primary:active { box-shadow: 0 1px 0 #c99a00; }
.btn-dark { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -3px 0 rgba(0,0,0,.3), 0 4px 0 #000; }
:root[data-theme="dark"] .btn-dark { box-shadow: inset 0 -3px 0 rgba(0,0,0,.12), 0 4px 0 #9b9a95; }
.theme-btn, .stage-ctrl > button { box-shadow: inset 0 1px 0 var(--hl), 0 3px 0 var(--edge); transition: transform .12s, box-shadow .12s; }
.theme-btn:active, .stage-ctrl > button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }

/* surfaces: raised tiles with a bottom edge */
.item, .step, .rw-ways li, .bkey, .tcard, .rw-timer, .rw-prizes li, .feature, .table-wrap, .ca, .faq details, .gcard {
  box-shadow: inset 0 1px 0 var(--hl), 0 6px 0 var(--edge), 0 18px 28px -20px rgba(17,18,23,.35);
}
.item:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 var(--hl), 0 10px 0 var(--edge), 0 26px 30px -22px rgba(17,18,23,.4); }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin-bottom: 14px; background: var(--surface); }
.faq summary { padding: 18px 0; }
.faq details p { padding-bottom: 18px; }
.gcard { box-shadow: 0 8px 0 #000, 0 30px 50px -28px rgba(17,18,23,.7); }

/* studs on tiles */
.item, .step, .rw-ways li, .bkey, .tcard, .rw-prizes li, .feature, .table-wrap { position: relative; overflow: visible; }
.item::before, .step::before, .tcard::before, .feature::before, .table-wrap::before, .rw-prizes li::before {
  content: ""; position: absolute; top: -7px; left: 22px; width: 18px; height: 8px; border-radius: 4px 4px 1px 1px;
  background: var(--surface); border: 1px solid var(--line); border-bottom: 0;
  box-shadow: 30px 0 0 -1px var(--surface), 30px 0 0 0 var(--line);
}
.item { overflow: visible; } .item-img { overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.step::before, .table-wrap::before { background: var(--yellow); border-color: #c99a00; box-shadow: 30px 0 0 -1px var(--yellow), 30px 0 0 0 #c99a00; }
.rw-n, .step-num { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.12), 0 3px 0 #c99a00; }
.step-num { display: inline-block; background: var(--yellow); color: #111217; padding: 3px 8px; border-radius: 5px; font-weight: 700; }

/* table: chunky brick rows */
.table-wrap { overflow: visible; margin-top: 8px; }
.vtable { border-collapse: separate; border-spacing: 0; }
.vtable thead th { background: var(--text); color: var(--bg); text-transform: uppercase; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
.vtable thead th:first-child { border-top-left-radius: var(--radius); } .vtable thead th:last-child { border-top-right-radius: var(--radius); }
.vtable tbody tr:hover td { background: var(--bg-2); }
.vtable td { padding: 14px 16px; }
.vtable .num { display: inline-block; font-family: var(--mono); font-size: 11px; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; margin-right: 10px; box-shadow: 0 2px 0 var(--edge); }
.vtable td .bk { margin-left: 8px; }
.vtable td.up, .vtable td.down { font-weight: 700; }
.vtable tfoot td { background: var(--yellow); color: #111217; border-top: 0; }
.vtable tfoot td:first-child { border-bottom-left-radius: var(--radius); } .vtable tfoot td:last-child { border-bottom-right-radius: var(--radius); }
.vtable tfoot td.up, .vtable tfoot td.down { color: #111217; }
.chip { box-shadow: inset 0 -2px 0 rgba(0,0,0,.08), 0 2px 0 var(--edge); border-radius: 5px; }
@media (max-width: 700px) { .table-wrap { overflow-x: auto; } .table-wrap::before { display: none; } }
.logo-img { width: 30px; }
.socials { display: flex; gap: 8px; margin-right: -28px; }
.icon-btn { cursor: default; }
.icon-btn svg { width: 17px; height: 17px; }
.nav-inner .theme-btn#theme-btn { margin-left: 0; }
@media (max-width: 960px) { .socials { margin-right: 0; } }
@media (max-width: 600px) { .socials .icon-btn { width: 34px; height: 34px; } .socials { gap: 6px; } .nav-inner .btn-sm { padding: 0 12px; } }
.nav-inner .socials .theme-btn { margin-right: 0; }

/* LEGO-style display type for section text (not the Market/vault page) */
:root { --brick-font: "Titan One", "Inter", system-ui, sans-serif; }
.view:not(#vault) h2, .view:not(#vault) h3, .faq summary, .rw-ways b, .bkey b, .gcard-amt, .rw-prizes b, .tcard .tv, .donut-big {
  font-family: var(--brick-font); font-weight: 400; letter-spacing: .005em;
}
.view:not(#vault) h2 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.02; text-shadow: 0 3px 0 var(--edge); }
.view:not(#vault) .step h3 { font-size: 24px; }
.faq summary { font-size: 19px; }
.view .rw h2 { font-size: clamp(32px, 3.6vw, 48px); }
.home-steps { top: 0; bottom: auto !important; transition: none; }
.home-steps li { height: 50px; padding: 0 26px; font-size: 13px; }
.nav-links { color: var(--text); font-weight: 600; }
.nav-links a { opacity: .9; } .nav-links a:hover, .nav-links a.on { opacity: 1; }
.nav-links a.on { box-shadow: inset 0 -3px 0 var(--yellow); padding-bottom: 2px; }

/* ===== HEADER v2 — floating brick bar ===== */
.nav { position: fixed; left: 0; right: 0; top: 14px; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding-inline: max(14px, calc((100vw - 1200px) / 2)); pointer-events: none; }
.nav-inner { pointer-events: auto; position: relative; height: 62px; padding: 0 10px 0 16px; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: inset 0 1px 0 var(--hl), 0 6px 0 var(--edge), 0 22px 36px -22px rgba(17,18,23,.45); padding-inline: 10px 10px !important; padding-left: 16px !important; }
.nav-inner::before, .nav-inner::after { content: ""; position: absolute; top: -8px; width: 20px; height: 9px; border-radius: 5px 5px 1px 1px; background: var(--yellow); box-shadow: inset 0 2px 0 rgba(255,255,255,.55), 0 0 0 0 transparent; }
.nav-inner::before { left: 28px; box-shadow: inset 0 2px 0 rgba(255,255,255,.55), 32px 0 0 var(--yellow); }
.nav-inner::after { right: 28px; box-shadow: inset 0 2px 0 rgba(255,255,255,.55), -32px 0 0 var(--yellow); }
.nav-links { margin: 0 auto; gap: 2px; padding: 4px; border-radius: 12px; background: var(--bg-2); box-shadow: inset 0 2px 4px rgba(17,18,23,.08), inset 0 0 0 1px var(--line); }
.nav-links a { padding: 8px 16px; border-radius: 9px; opacity: 1; color: var(--text); font-weight: 600; transition: background .15s, box-shadow .15s, transform .12s; }
.nav-links a:hover { background: var(--surface); box-shadow: 0 2px 0 var(--edge), inset 0 0 0 1px var(--line); }
.nav-links a.on { background: var(--yellow); color: #111217; padding-bottom: 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.1), 0 3px 0 #c99a00; transform: translateY(-1px); }
.socials { margin-right: 0; }
.nav-inner .theme-btn { margin-right: 0; }
.logo { padding-right: 4px; }

/* page offsets for the overlay header */
.home-pin.hero { top: 0; height: 100vh; height: 100svh; }
.home-pin .hero-copy { top: clamp(120px, 16vh, 170px); }
.view.section, .view.cta { padding-top: 150px; }
.view.section { min-height: calc(100vh - 140px); }

@media (max-width: 960px) {
  .nav { top: 10px; }
  .nav-inner { height: auto; padding: 10px 10px 10px 14px !important; row-gap: 10px; }
  .nav-links { order: 3; width: 100%; margin: 0; justify-content: space-between; overflow-x: auto; }
  .nav-links a { padding: 8px 12px; font-size: 13px; }
  .home-pin.hero { top: 0; height: 100svh; }
  .home-pin .hero-copy { top: 150px; }
  .view.section, .view.cta { padding-top: 170px; }
}
@media (max-width: 600px) { .socials .icon-btn:not(:last-child) { display: none; } }
.nav { top: 22px; } @media (max-width: 960px) { .nav { top: 16px; } }
@media (max-width: 600px) {
  .socials { display: none; }
  .nav-inner { column-gap: 8px; }
  .nav-inner .btn-sm { height: 36px; padding: 0 12px; font-size: 13px; }
  .nav-inner .theme-btn { width: 36px; height: 36px; }
  .nav-links a { padding: 7px 10px; font-size: 12.5px; }
  .home-pin .hero-copy { top: 140px; }
}

/* CHROME OFF-WHITE (light theme) */
:root:not([data-theme="dark"]) {
  --bg: #f1f0ec; --bg-2: #e9e8e3; --line: #e0ded7; --line-2: #cbc8bf; --dot: #dcd9d0;
  --nav-bg: rgba(250,250,247,.85);
}
:root:not([data-theme="dark"]) body {
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(165deg, #f7f7f4 0%, #efeee9 38%, #e7e6e0 62%, #f2f1ed 100%);
  background-attachment: fixed;
}
:root:not([data-theme="dark"]) .hero { background: radial-gradient(50% 45% at 50% 78%, var(--glow) 0%, transparent 70%); }
:root:not([data-theme="dark"]) .nav-inner { background: linear-gradient(180deg, #ffffff 0%, #f6f5f2 100%); }
.nav-inner::before, .nav-inner::after { display: none; }

/* NAV TABS as LEGO bricks */
.nav-links { background: none; box-shadow: none; padding: 8px 0 4px; gap: 10px; }
.nav-links a {
  position: relative; height: 36px; display: grid; place-items: center; padding: 0 16px; border-radius: 6px;
  background: var(--surface); color: var(--text); font-weight: 600; font-size: 13.5px;
  box-shadow: inset 0 1px 0 var(--hl), inset 0 -4px 0 rgba(0,0,0,.06), inset 0 0 0 1px var(--line), 0 4px 0 var(--edge);
  transition: transform .12s, box-shadow .12s, background .15s;
}
.nav-links a::before, .nav-links a::after {
  content: ""; position: absolute; top: -6px; width: 14px; height: 7px; border-radius: 4px 4px 1px 1px;
  background: inherit; box-shadow: inset 0 0 0 1px var(--line), inset 0 2px 0 var(--hl);
}
.nav-links a::before { left: 22%; } .nav-links a::after { right: 22%; }
.nav-links a:hover { transform: translateY(-2px); background: var(--surface); box-shadow: inset 0 1px 0 var(--hl), inset 0 -4px 0 rgba(0,0,0,.06), inset 0 0 0 1px var(--line), 0 6px 0 var(--edge); }
.nav-links a:active { transform: translateY(3px); box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 var(--edge); }
.nav-links a.on { background: var(--yellow); color: #111217; transform: translateY(-2px); padding-bottom: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -4px 0 rgba(0,0,0,.1), 0 5px 0 #c99a00; }
.nav-links a.on::before, .nav-links a.on::after { box-shadow: inset 0 2px 0 rgba(255,255,255,.6), inset 0 0 0 1px #e0b000; }
@media (max-width: 960px) { .nav-links { padding: 10px 2px 6px; gap: 8px; justify-content: space-between; } .nav-links a { padding: 0 10px; height: 34px; font-size: 12.5px; } }

/* MARKET — centered layout */
#vault .section-head { text-align: center; display: grid; justify-items: center; margin-bottom: 20px; }
#vault .backing-key { justify-content: center; }
#vault .stage { height: auto; min-height: 0; display: grid; justify-items: center; margin-bottom: 64px; }
#vault #stage3d { position: relative; inset: auto; width: 100%; height: min(56vh, 500px); }
#vault .feature { position: relative; left: auto; bottom: auto; width: min(440px, 100%); margin-top: -8px; text-align: center; }
#vault .f-top { justify-content: center; gap: 10px; }
#vault .f-row { text-align: center; }
#vault .stage-ctrl { position: static; margin-top: 22px; }
#vault .items { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
#vault .item { width: 270px; }
#vault .table-wrap { max-width: 1000px; margin-inline: auto; }
#vault .note { text-align: center; }
@media (max-width: 600px) {
  #vault #stage3d { height: 380px; }
  #vault .item { width: 100%; }
}

/* NAV — letters built from bricks */
.nav-links { gap: 26px; padding: 0; align-items: center; }
.nav-links a, .nav-links a:hover, .nav-links a.on, .nav-links a:active { background: none; box-shadow: none; padding: 6px 2px; height: auto; border-radius: 0; transform: none; }
.nav-links a::before, .nav-links a::after { display: none; }
.nav-links a { --bt-face: #22252e; --bt-edge: rgba(0,0,0,.35); --bt-stud: #3a3e4a; transition: transform .15s; }
.nav-links a .bt { display: block; overflow: visible; }
.nav-links a:hover { transform: translateY(-2px); }
.nav-links a:hover .bt { filter: drop-shadow(0 2px 0 rgba(0,0,0,.12)); }
.nav-links a.on { --bt-face: #ffcc1a; --bt-edge: #c99a00; --bt-stud: #ffd84d; transform: translateY(-1px); }
.nav-links a.on .bt { filter: drop-shadow(0 2px 0 rgba(201,154,0,.35)); }
:root[data-theme="dark"] .nav-links a { --bt-face: #f3f2ee; --bt-edge: rgba(0,0,0,.35); --bt-stud: #ffffff; }
:root[data-theme="dark"] .nav-links a.on { --bt-face: #ffcc1a; --bt-edge: #c99a00; --bt-stud: #ffd84d; }
@media (max-width: 960px) { .nav-links { gap: 14px; justify-content: space-around; padding: 6px 0 2px; } }
.nav-links { gap: 22px; } .nav-links a { padding: 6px 2px; }

/* NAV brick letters v2 — realistic multicolour bricks, assemble on hover */
.nav-links a, .nav-links a:hover, .nav-links a.on { transform: none; filter: none; }
.nav-links a .bt { overflow: visible; }
.nav-links .b { transform-box: fill-box; transform-origin: center; }
.nav-links .b .f { fill: var(--c); transition: fill .25s; }
.nav-links .b .s { fill: var(--c); transition: fill .25s; }
.nav-links .b .sh { fill: #fff; opacity: .55; }
.nav-links .b .e { fill: #000; opacity: .22; }
/* resting, not-current: tidy graphite bricks */
.nav-links a:not(.on):not(:hover) .b .f, .nav-links a:not(.on):not(:hover) .b .s { fill: #34373f; }
:root[data-theme="dark"] .nav-links a:not(.on):not(:hover) .b .f, :root[data-theme="dark"] .nav-links a:not(.on):not(:hover) .b .s { fill: #e9e8e3; }
.nav-links a.build .b { animation: brick-in .55s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: var(--d); }
@keyframes brick-in {
  0% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.6); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
.nav-links a .bt { filter: drop-shadow(0 1px 0 rgba(0,0,0,.18)); }
@media (prefers-reduced-motion: reduce) { .nav-links a.build .b { animation: none; } }

/* NAV v3 — smooth type at rest, brick build on hover that resolves into the type */
.nav-links { gap: 8px; }
.nav-links a { position: relative; display: grid; place-items: center; padding: 6px 4px; }
.nav-links a .t { font-family: var(--font); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); padding: 7px 12px; border-radius: 7px; transition: background .2s, box-shadow .2s; }
.nav-links a.on .t { background: var(--yellow); color: #111217; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -3px 0 rgba(0,0,0,.1), 0 3px 0 #c99a00; }
.nav-links a .bt { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0; pointer-events: none; filter: none; }
.nav-links a .b .f, .nav-links a .b .s { fill: var(--c) !important; }
.nav-links a.build .bt { animation: bt-life 1.15s ease both; }
.nav-links a.build .t { animation: t-back 1.15s ease both; }
@keyframes bt-life { 0% { opacity: 1; } 68% { opacity: 1; filter: blur(0); } 100% { opacity: 0; filter: blur(2px); } }
@keyframes t-back { 0%, 62% { opacity: 0; transform: scale(.94); filter: blur(3px); } 100% { opacity: 1; transform: none; filter: blur(0); } }
@media (prefers-reduced-motion: reduce) { .nav-links a.build .bt, .nav-links a.build .t { animation: none; } }

/* MARKET categories */
.cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 34px auto 40px; max-width: 980px; }
.cat { position: relative; display: grid; justify-items: center; gap: 6px; width: 132px; padding: 18px 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); box-shadow: inset 0 1px 0 var(--hl), 0 5px 0 var(--edge); }
.cat svg { width: 30px; height: 30px; }
.cat b { font-size: 14px; color: var(--muted); }
.cat span { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; padding: 2px 7px; border-radius: 4px; background: var(--bg-2); }
.cat:not(.live) { opacity: .7; }
.cat:not(.live) svg { opacity: .55; }
.cat.live { background: var(--yellow); border-color: #e0b000; color: #111217; transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -4px 0 rgba(0,0,0,.08), 0 7px 0 #c99a00, 0 18px 26px -14px rgba(201,154,0,.6); }
.cat.live b { color: #111217; font-family: var(--brick-font); font-weight: 400; font-size: 17px; }
.cat.live span { background: #111217; color: #4ade80; }
.cat.live::before, .cat.live::after { content: ""; position: absolute; top: -8px; width: 22px; height: 9px; border-radius: 5px 5px 1px 1px; background: var(--yellow); box-shadow: inset 0 2px 0 rgba(255,255,255,.55); }
.cat.live::before { left: 28px; } .cat.live::after { right: 28px; }
.cat-head { text-align: center; margin-bottom: 8px; }
.cat-head h3 { font-family: var(--brick-font); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); margin: 12px 0 6px; }
.cat-head p { color: var(--muted); }
.cat-badge { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 5px; background: #111217; color: var(--yellow); box-shadow: 0 3px 0 #000; }
@media (max-width: 600px) { .cat { width: calc(33% - 10px); } .cats { gap: 10px; } }

/* MARKET categories v2 — material tiles */
.cats { gap: 16px; margin: 30px auto 44px; }
.cat {
  width: 152px; height: 188px; padding: 0; display: block; overflow: hidden; border: 0; border-radius: 18px; color: #fff; opacity: 1;
  background: var(--tex) center / cover no-repeat, #ccc;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 0 0 1px rgba(0,0,0,.08), 0 6px 0 rgba(17,18,23,.22), 0 22px 30px -18px rgba(17,18,23,.55);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, filter .25s;
}
.cat::before, .cat::after { display: none !important; }
.cat:not(.live) { opacity: 1; filter: saturate(.75) brightness(.97); }
.cat:hover { transform: translateY(-5px); filter: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 0 0 1px rgba(0,0,0,.08), 0 10px 0 rgba(17,18,23,.22), 0 30px 36px -20px rgba(17,18,23,.6); }
.cat .cat-ic { position: absolute; top: 12px; left: 12px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.28); backdrop-filter: blur(10px) saturate(160%); -webkit-backdrop-filter: blur(10px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 4px 12px -6px rgba(0,0,0,.4); color: #fff; }
.cat .cat-ic svg { width: 20px; height: 20px; opacity: 1 !important; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.cat-plate { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 10px 10px 9px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  background: rgba(255,255,255,.72); backdrop-filter: blur(14px) saturate(170%); -webkit-backdrop-filter: blur(14px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 6px 14px -8px rgba(0,0,0,.35); }
.cat-plate b { font-family: var(--font) !important; font-weight: 700 !important; font-size: 13px !important; color: #111217 !important; letter-spacing: -.01em; white-space: nowrap; }
.cat-plate span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: rgba(17,18,23,.08) !important; color: #555a66 !important; }
.cat.live { transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 0 3px var(--surface), 0 0 0 5px #111217, 0 10px 0 rgba(17,18,23,.25), 0 30px 40px -18px rgba(201,154,0,.7); }
.cat.live .cat-plate span { background: #111217 !important; color: #4ade80 !important; display: inline-flex; align-items: center; gap: 5px; }
.cat.live .cat-plate span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 6px #4ade80; }
@media (max-width: 600px) { .cat { width: calc(50% - 8px); height: 150px; } }
.cats { max-width: 1120px; }
.cat.live { background: var(--tex) center / cover no-repeat, var(--yellow); border: 0; color: #fff; }
.cat.live .cat-ic { color: #fff; }
.cat.live .cat-ic { background: rgba(255,255,255,.28) !important; color: #fff !important; padding: 0; }

/* MARKET categories v3 — 3D object renders + tilt */
.cats { perspective: 900px; }
.cat { background: #e6e5e0 !important; filter: none !important; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.cat.live { transform: translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.cat:hover { transform: translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .08s linear, box-shadow .25s; }
.cat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translateZ(0) scale(1.02); transition: transform .5s cubic-bezier(.2,.8,.2,1); animation: cat-float 5s ease-in-out infinite; }
.cat:nth-child(2) .cat-img { animation-delay: -.8s; } .cat:nth-child(3) .cat-img { animation-delay: -1.6s; } .cat:nth-child(4) .cat-img { animation-delay: -2.4s; } .cat:nth-child(5) .cat-img { animation-delay: -3.2s; } .cat:nth-child(6) .cat-img { animation-delay: -4s; }
.cat:hover .cat-img { transform: scale(1.1); }
@keyframes cat-float { 0%, 100% { object-position: 50% 52%; } 50% { object-position: 50% 46%; } }
.cat::after { content: "" !important; display: block !important; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(60% 50% at var(--gx, 30%) var(--gy, 20%), rgba(255,255,255,.35), transparent 60%); opacity: 0; transition: opacity .25s; top: 0; left: 0; width: auto; height: auto; box-shadow: none; }
.cat:hover::after { opacity: 1; }
.cat-plate { transform: translateZ(30px); }
.cat:not(.live) .cat-img { filter: saturate(.9); }
@media (prefers-reduced-motion: reduce) { .cat-img { animation: none; } }

/* ===== ENTRY GATE ===== */
html.gated, html.gated body { overflow: hidden; }
.gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(120% 70% at 50% -10%, #fff 0%, transparent 60%), linear-gradient(165deg, #f7f7f4 0%, #ecebe6 60%, #f2f1ed 100%);
  transition: opacity .6s ease, transform .6s ease; }
:root[data-theme="dark"] .gate { background: radial-gradient(120% 70% at 50% -10%, #1b1d24 0%, transparent 60%), #0d0e12; }
.gate.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.gate-box { width: min(640px, 100%); text-align: center; display: grid; justify-items: center; gap: 14px; }
.gate-logo { width: 56px; height: auto; }
.gate h2 { font-family: var(--brick-font); font-weight: 400; font-size: clamp(26px, 4vw, 40px); line-height: 1.1; }
.gate-hint { color: var(--muted); font-size: 15px; }
.gate-slots { display: flex; gap: 8px; margin: 18px 0 8px; }
.gate-slots.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.slot { width: 52px; height: 58px; border-radius: 8px; border: 2px dashed var(--line-2); display: grid; place-items: center; cursor: pointer;
  font-family: var(--brick-font); font-size: 26px; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.25); position: relative; transition: transform .2s; }
.slot.on { border: 0; background: var(--c); box-shadow: inset 0 2px 0 rgba(255,255,255,.4), inset 0 -5px 0 rgba(0,0,0,.18), 0 4px 0 rgba(0,0,0,.25); animation: snap .25s cubic-bezier(.2,1.6,.4,1); }
.slot.on::before, .slot.on::after, .gbrick::before, .gbrick::after { content: ""; position: absolute; top: -7px; width: 14px; height: 8px; border-radius: 4px 4px 1px 1px; background: var(--c); box-shadow: inset 0 2px 0 rgba(255,255,255,.45); }
.slot.on::before, .gbrick::before { left: 9px; } .slot.on::after, .gbrick::after { right: 9px; }
@keyframes snap { from { transform: translateY(-14px) scale(.9); } to { transform: none; } }
.gate-bricks { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 10px; max-width: 520px; margin-top: 10px; }
.gbrick { position: relative; width: 52px; height: 52px; border: 0; border-radius: 8px; cursor: pointer; background: var(--c); color: #fff;
  font-family: var(--brick-font); font-size: 24px; text-shadow: 0 2px 0 rgba(0,0,0,.25);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.4), inset 0 -5px 0 rgba(0,0,0,.18), 0 5px 0 rgba(0,0,0,.28), 0 12px 18px -10px rgba(0,0,0,.4);
  transition: transform .15s, opacity .2s, box-shadow .15s; }
.gbrick:hover { transform: translateY(-3px) rotate(-2deg); }
.gbrick:active { transform: translateY(3px); box-shadow: inset 0 -2px 0 rgba(0,0,0,.18), 0 1px 0 rgba(0,0,0,.28); }
.gbrick:disabled { opacity: .15; transform: scale(.9); cursor: default; }
.gbrick[style*="#f2cd37"], .gbrick[style*="#e4adc8"] { color: #111217; text-shadow: none; }
.gate-enter { margin-top: 18px; opacity: 0; transform: translateY(10px) scale(.95); pointer-events: none; transition: opacity .35s, transform .35s cubic-bezier(.2,1.4,.4,1); min-width: 180px; height: 54px; font-size: 16px; }
.gate.solved .gate-enter { opacity: 1; transform: none; pointer-events: auto; }
.gate.solved .slot.on { animation: win .6s ease both; }
.gate.solved .slot:nth-child(2) { animation-delay: .05s; } .gate.solved .slot:nth-child(3) { animation-delay: .1s; } .gate.solved .slot:nth-child(4) { animation-delay: .15s; } .gate.solved .slot:nth-child(5) { animation-delay: .2s; } .gate.solved .slot:nth-child(6) { animation-delay: .25s; } .gate.solved .slot:nth-child(7) { animation-delay: .3s; }
@keyframes win { 50% { transform: translateY(-10px); } }
@media (max-width: 600px) { .slot, .gbrick { width: 40px; height: 44px; font-size: 20px; } .gbrick { height: 40px; } .gate-slots { gap: 5px; } }

/* ===== WHO AM I ===== */
.about { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: center; max-width: 1000px; margin: 0 auto; }
.about-mark { display: grid; place-items: center; aspect-ratio: 1; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--hl), 0 8px 0 var(--edge), 0 30px 40px -24px rgba(17,18,23,.4); }
.about-mark .bt { width: 62%; height: auto; overflow: visible; }
.about-mark .b .f, .about-mark .b .s { fill: var(--c); }
.about-mark .b .sh { fill: #fff; opacity: .55; } .about-mark .b .e { fill: #000; opacity: .22; }
.about h2 { margin: 6px 0 18px; }
.about p { color: var(--muted); font-size: 17px; max-width: 560px; margin-bottom: 14px; }
.about .about-lede { color: var(--text); font-size: 20px; font-weight: 500; }
.about-sign { color: var(--text) !important; font-weight: 700; }
.about-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.about-tags li { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 7px 12px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 3px 0 var(--edge); }
.about-tags li:first-child { background: #d52b1e; color: #fff; border-color: #b02218; box-shadow: 0 3px 0 #8f1a12; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 32px; } .about-mark { width: 200px; margin: 0 auto; } }

/* NAV — plain, no hover effect */
.nav-links a { font-family: var(--font); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); padding: 7px 12px; border-radius: 7px; transform: none !important; }
.nav-links a:hover { background: none; box-shadow: none; opacity: .7; }
.nav-links a.on { background: var(--yellow); color: #111217; opacity: 1; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -3px 0 rgba(0,0,0,.1), 0 3px 0 #c99a00; }

/* MARKET categories v4 — floating 3D objects, no backgrounds, no status */
.cats { gap: 8px 28px; margin: 34px auto 48px; perspective: 900px; }
.cat, .cat.live, .cat:hover { width: 140px; height: auto; background: none !important; box-shadow: none !important; border: 0; border-radius: 0; overflow: visible; display: grid; justify-items: center; gap: 10px; padding: 0; filter: none !important; }
.cat::after { display: none !important; }
.cat .cat-img { position: relative; inset: auto; width: 130px; height: 130px; object-fit: contain; animation: cat-bob 5s ease-in-out infinite; filter: drop-shadow(0 18px 14px rgba(17,18,23,.22)); transition: transform .4s cubic-bezier(.2,.8,.2,1), filter .3s; }
.cat:hover .cat-img { transform: translateY(-8px) scale(1.06); filter: drop-shadow(0 26px 18px rgba(17,18,23,.26)); }
@keyframes cat-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.cat-name { font-family: var(--font); font-weight: 700; font-size: 14px; color: var(--text); padding: 4px 10px; border-radius: 6px; }
.cat:not(.live) .cat-name { color: var(--muted); }
.cat.live .cat-name { background: var(--yellow); color: #111217; box-shadow: inset 0 -2px 0 rgba(0,0,0,.1), 0 3px 0 #c99a00; }
@media (max-width: 600px) { .cat, .cat.live, .cat:hover { width: calc(33% - 20px); } .cat .cat-img { width: 96px; height: 96px; } }
.about-mark { background: radial-gradient(70% 60% at 50% 40%, #fff 0%, var(--bg-2) 100%); overflow: hidden; }
.about-mark img { width: 92%; height: auto; margin-top: 6%; filter: drop-shadow(0 18px 16px rgba(17,18,23,.2)); animation: cat-bob 5s ease-in-out infinite; }
.about-tags li:nth-child(2) { background: #d80621; color: #fff; border-color: #a8051a; box-shadow: 0 3px 0 #7d0414; }

/* ===== EARN v2 ===== */
.earn { padding: 0; }
.earn-scroll { height: 260vh; position: relative; }
.earn-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; padding: 120px 20px 28px; overflow: hidden; }
.earn-head { text-align: center; display: grid; justify-items: center; gap: 10px; }
.earn-head h2 { font-family: var(--brick-font); font-weight: 400; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; text-shadow: 0 3px 0 var(--edge); }
.earn-timer { display: inline-flex; gap: 12px; align-items: center; margin-top: 8px; padding: 8px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--hl), 0 4px 0 var(--edge); font-size: 14px; color: var(--muted); }
.earn-timer b { font-family: var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.earn-stage { position: relative; width: 100%; display: grid; place-items: center; }
.earn-card { position: relative; z-index: 2; width: min(400px, 80vw); transform-origin: center; will-change: transform, opacity, filter; }
.earn-card:hover { transform: none; }
.vouchers { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 1; }
.voucher { position: absolute; width: 118px; height: 76px; border-radius: 12px; padding: 10px 11px; color: #fff; display: grid; align-content: space-between; text-align: left; overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, #3a3d4a 0%, #111217 65%); box-shadow: 0 5px 0 #000, 0 16px 24px -14px rgba(17,18,23,.6); opacity: 0; will-change: transform, opacity; }
.voucher::after { content: ""; position: absolute; right: -22px; bottom: -22px; width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); }
.voucher img { width: 16px; height: 16px; position: relative; z-index: 1; }
.voucher b { font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1; position: relative; z-index: 1; }
.voucher span { font-size: 9px; color: #c9c9cf; text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); position: relative; z-index: 1; }
.voucher.v200 { background: radial-gradient(120% 120% at 100% 0%, #ffe27a 0%, #ffcc1a 60%); color: #111217; box-shadow: 0 5px 0 #c99a00, 0 18px 26px -12px rgba(201,154,0,.6); }
.voucher.v200::after { background: #111217; } .voucher.v200 span { color: #5a4600; }
.earn-legend { position: absolute; bottom: 8%; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--muted); opacity: var(--done, 0); transform: translateY(calc((1 - var(--done, 0)) * 10px)); }
.earn-cue { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); opacity: calc(1 - var(--p, 0) * 6); }
.earn-ways { padding: 40px max(20px, calc((100vw - 1100px) / 2)) 120px; text-align: center; display: grid; justify-items: center; gap: 26px; }
.earn-ways h3 { font-family: var(--brick-font); font-weight: 400; font-size: clamp(26px, 3vw, 36px); }
.earn-ways .rw-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; width: 100%; max-width: 980px; margin: 0; }
.earn-ways .rw-ways li { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 26px 18px 22px; }
.earn-ways .rw-ways li b { font-size: 20px; }
@media (max-width: 760px) { .earn-ways .rw-ways { grid-template-columns: 1fr; } .voucher { width: 76px; height: 56px; padding: 7px 8px; } .voucher b { font-size: 17px; } .voucher span { font-size: 7px; } }

/* LEGO header icons */
.icon-btn img, #theme-btn img { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); transition: transform .2s; }
.icon-btn:hover img, #theme-btn:hover img { transform: scale(1.12) rotate(-4deg); }
.socials .icon-btn, #theme-btn { width: 42px; height: 42px; cursor: pointer; }

/* TOOLTIPS */
.tip { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 5px; border-radius: 5px; font: 700 11px/1 var(--font); background: var(--yellow); color: #111217; cursor: help; position: relative; vertical-align: middle; box-shadow: 0 2px 0 #c99a00; text-transform: none; letter-spacing: 0; }
.tip::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); width: 240px; padding: 10px 12px; border-radius: 10px; background: #111217; color: #f3f2ee; font: 500 13px/1.45 var(--font); text-align: left; box-shadow: 0 4px 0 #000, 0 18px 30px -14px rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 30; white-space: normal; }
.tip:hover::after, .tip:focus::after { opacity: 1; transform: translate(-50%, 0); }
th:last-child .tip::after, th:nth-last-child(2) .tip::after { left: auto; right: -8px; transform: translateY(6px); }
th:last-child .tip:hover::after, th:nth-last-child(2) .tip:hover::after, th:last-child .tip:focus::after, th:nth-last-child(2) .tip:focus::after { transform: none; }

/* HOW YOU MAKE MONEY strip */
.money { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 56px auto 26px; }
.money-i { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--hl), 0 5px 0 var(--edge); font-size: 15px; }
.money-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #111217; color: var(--yellow); font: 700 13px var(--mono); box-shadow: 0 3px 0 #000; }

/* VAULT TABLE — brick rows */
#vault .table-wrap { border: 0; background: none; box-shadow: none; overflow: visible; }
#vault .table-wrap::before { display: none; }
.vtable { border-collapse: separate; border-spacing: 0 12px; }
.vtable thead th { border: 0; padding: 14px 16px; }
.vtable thead th:first-child { border-radius: 12px 0 0 12px; } .vtable thead th:last-child { border-radius: 0 12px 12px 0; }
.vtable thead tr th { box-shadow: 0 5px 0 #000; }
.vtable tbody td { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 6px 0 var(--edge); padding: 16px; transition: transform .15s, background .15s; }
.vtable tbody td:first-child { border-left: 1px solid var(--line); border-radius: 12px 0 0 12px; font-weight: 600; }
.vtable tbody td:last-child { border-right: 1px solid var(--line); border-radius: 0 12px 12px 0; font-weight: 700; }
.vtable tbody tr:hover td { background: #fffdf5; transform: translateY(-2px); }
.vtable tfoot td { box-shadow: 0 6px 0 #c99a00; border: 0; padding: 16px; font-size: 15px; }
.vtable tfoot td:first-child { border-radius: 12px 0 0 12px; } .vtable tfoot td:last-child { border-radius: 0 12px 12px 0; }
.vtable td.up { color: var(--green); } .vtable td.down { color: var(--red); }
.vtable tbody td.up::before { content: "▲ "; font-size: 10px; } .vtable tbody td.down::before { content: "▼ "; font-size: 10px; }
:root[data-theme="dark"] .vtable tbody tr:hover td { background: #1c1f26; }

/* ===== DOCS ===== */
.docs { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; max-width: 1060px; margin: 0 auto; align-items: start; }
.docs-nav { position: sticky; top: 120px; display: grid; gap: 2px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--hl), 0 5px 0 var(--edge); }
.docs-nav .eyebrow { margin-bottom: 8px; }
.docs-nav a { padding: 7px 10px; border-radius: 7px; font-weight: 600; font-size: 14px; color: var(--muted); }
.docs-nav a:hover { background: var(--bg-2); color: var(--text); }
.docs-body { max-width: 720px; }
.docs-body h2 { margin-bottom: 14px; }
.docs-body h3 { font-family: var(--brick-font); font-weight: 400; font-size: 26px; margin: 48px 0 12px; scroll-margin-top: 120px; }
.docs-body p, .docs-body li { color: var(--muted); font-size: 16.5px; line-height: 1.65; }
.docs-body b { color: var(--text); }
.docs-lede { font-size: 19px !important; color: var(--text) !important; }
.docs-steps { padding-left: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.docs-steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 56px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 0 var(--edge); }
.docs-steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--yellow); color: #111217; font: 700 13px var(--mono); box-shadow: 0 3px 0 #c99a00; }
.docs-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.docs-cards > div { padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 0 var(--edge); }
.docs-cards p { font-size: 15px; margin-top: 6px; }
.docs-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 4px 0 var(--edge); margin-top: 8px; }
.docs-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.docs-table tr:last-child td { border-bottom: 0; }
.docs-table td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; gap: 24px; } .docs-nav { position: static; grid-template-columns: repeat(3, 1fr); } .docs-cards { grid-template-columns: 1fr; } }

/* ===== DOCS v2 — chapters ===== */
.docs { grid-template-columns: 250px minmax(0, 1fr); gap: 48px; max-width: 1140px; }
.docs-nav { top: 110px; gap: 14px; padding: 18px 14px; max-height: calc(100vh - 140px); overflow: auto; }
.docs-nav-title { font-family: var(--brick-font); font-size: 18px; padding: 0 8px; }
.docs-group p { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 8px 6px; }
.docs-group a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--text); transition: background .15s, transform .15s; }
.docs-group a span { display: grid; place-items: center; width: 26px; height: 22px; border-radius: 5px; font: 700 11px var(--mono); background: var(--bg-2); color: var(--muted); flex: none; }
.docs-group a:hover { background: var(--bg-2); }
.docs-group a.on { background: var(--yellow); color: #111217; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 3px 0 #c99a00; }
.docs-group a.on span { background: #111217; color: var(--yellow); }
.docs-body { max-width: 760px; }
.docs-hero { display: flex; gap: 22px; align-items: flex-start; padding-bottom: 26px; margin-bottom: 30px; border-bottom: 2px dashed var(--line-2); }
.docs-num { flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 18px; background: var(--yellow); color: #111217; font-family: var(--brick-font); font-size: 40px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.6), inset 0 -6px 0 rgba(0,0,0,.1), 0 6px 0 #c99a00; position: relative; margin-top: 8px; }
.docs-num::before, .docs-num::after { content: ""; position: absolute; top: -9px; width: 20px; height: 10px; border-radius: 5px 5px 1px 1px; background: var(--yellow); box-shadow: inset 0 2px 0 rgba(255,255,255,.6); }
.docs-num::before { left: 14px; } .docs-num::after { right: 14px; }
.docs-group-label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.docs-hero h2 { font-family: var(--brick-font) !important; font-weight: 400; font-size: clamp(34px, 4.4vw, 52px) !important; line-height: 1.04; margin: 4px 0 8px; }
.docs-lead { font-size: 19px !important; color: var(--text) !important; }
.docs-body h3 { margin: 40px 0 12px; font-size: 24px; }
.docs-body > p { margin-bottom: 12px; }
.docs-steps li { display: grid; gap: 2px; padding: 16px 18px 16px 62px; }
.docs-steps li span { color: var(--muted); }
.docs-cards { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 6px 0 10px; }
.docs-cards > div { position: relative; }
.callout { margin: 22px 0; padding: 14px 18px; border-radius: 12px; border: 1px solid #e8d48a; background: #fff8dc; box-shadow: 0 4px 0 #e8d48a; }
.callout b { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #7a5a00; }
.callout p { color: #5c4600 !important; margin-top: 4px; font-size: 15px !important; }
.callout.tip-c { border-color: #b9d3ff; background: #eef4ff; box-shadow: 0 4px 0 #b9d3ff; } .callout.tip-c b { color: #1d4ed8; } .callout.tip-c p { color: #1e3a8a !important; }
:root[data-theme="dark"] .callout { background: #2a2410; border-color: #5c4a10; box-shadow: 0 4px 0 #5c4a10; } :root[data-theme="dark"] .callout p { color: #f3e4a6 !important; }
:root[data-theme="dark"] .callout.tip-c { background: #111a2e; border-color: #243b6b; box-shadow: 0 4px 0 #243b6b; } :root[data-theme="dark"] .callout.tip-c p { color: #c8d8ff !important; }
.acro-big { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 22px; }
.acro-big span { padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 0 var(--edge); font-size: 18px; color: var(--muted); }
.acro-big b { font-family: var(--brick-font); font-weight: 400; font-size: 28px; color: #111217; background: var(--yellow); padding: 0 6px; border-radius: 6px; margin-right: 2px; box-shadow: 0 3px 0 #c99a00; }
.fee-bars { display: grid; gap: 10px; margin: 14px 0; }
.fee-bars div { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 0 var(--edge); overflow: hidden; }
.fee-bars div::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--c); opacity: .16; }
.fee-bars span, .fee-bars b { position: relative; } .fee-bars b { font-variant-numeric: tabular-nums; }
.roadmap { list-style: none; padding: 0; display: grid; gap: 12px; position: relative; }
.roadmap li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 0 var(--edge); }
.roadmap li b { font-family: var(--brick-font); font-weight: 400; font-size: 18px; }
.roadmap li span { color: var(--muted); }
.roadmap li:first-child { background: var(--yellow); border-color: #e0b000; box-shadow: 0 4px 0 #c99a00; } .roadmap li:first-child span { color: #3d3000; } .roadmap li:first-child b { color: #111217; }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.docs-pager a { display: grid; gap: 2px; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 5px 0 var(--edge); transition: transform .15s; }
.docs-pager a:hover { transform: translateY(-2px); }
.docs-pager a span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.docs-pager a b { font-size: 17px; }
.docs-pager .next { text-align: right; }
@media (max-width: 860px) { .docs-nav { max-height: none; grid-template-columns: 1fr; } .docs-hero { flex-direction: column; gap: 14px; } .roadmap li { grid-template-columns: 1fr; gap: 4px; } }

/* MARKET chooser v5 — clickable cohesive icons */
.cats { gap: 10px 36px; }
.cat, .cat.live, .cat:hover { width: 150px; cursor: pointer; text-decoration: none; }
.cat .cat-img { width: 140px; height: 140px; }
.cat .cat-name { color: var(--text) !important; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 3px 0 var(--edge); padding: 5px 12px; transition: background .15s, box-shadow .15s; }
.cat:hover .cat-name { background: var(--yellow); border-color: #e0b000; color: #111217 !important; box-shadow: 0 3px 0 #c99a00; }

/* LAST TRANSACTIONS */
.tx { max-width: 920px; margin: 20px auto 0; }
.tx-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tx-head h3 { font-family: var(--brick-font); font-weight: 400; font-size: 28px; }
.tx-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.tx-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.8s infinite; }
.tx-list { list-style: none; display: grid; gap: 10px; }
.tx-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) 64px 110px 120px 70px; gap: 14px; align-items: center; padding: 10px 16px 10px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 5px 0 var(--edge); }
.tx-list li.new { animation: tx-in .5s cubic-bezier(.2,1.2,.4,1); }
@keyframes tx-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.tx-list img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.tx-set { display: grid; min-width: 0; } .tx-set b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tx-set span { font-size: 12px; color: var(--muted); }
.tx-side { justify-self: start; font-family: var(--mono); font-size: 11px; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; font-weight: 600; }
.tx-side.buy { background: #e3f6ec; color: var(--green); box-shadow: 0 2px 0 #b9e6cc; } .tx-side.sell { background: #fde8e6; color: var(--red); box-shadow: 0 2px 0 #f5c2bd; }
.tx-price { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.tx-who { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }
.tx-ago { font-size: 12px; color: var(--muted); text-align: right; }
@media (max-width: 760px) { .tx-list li { grid-template-columns: 40px minmax(0, 1fr) auto; } .tx-who, .tx-ago { display: none; } .tx-side { grid-column: 3; grid-row: 1; justify-self: end; } .tx-price { grid-column: 2 / 4; text-align: left; font-size: 13px; } }

/* ONE MARKET page */
#market .back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 3px 0 var(--edge); margin-bottom: 24px; }
#market .back::before { content: "←"; }
#market .cat-head { margin-bottom: 8px; }
#market .stage { height: auto; min-height: 0; display: grid; justify-items: center; margin-bottom: 40px; }
#market #stage3d { position: relative; inset: auto; width: 100%; height: min(56vh, 500px); }
#market .feature { position: relative; left: auto; bottom: auto; width: min(440px, 100%); margin-top: -8px; text-align: center; }
#market .f-top { justify-content: center; gap: 10px; } #market .stage-ctrl { position: static; margin-top: 22px; }
#market .items { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; } #market .item { width: 270px; }
#market .table-wrap { max-width: 1000px; margin-inline: auto; border: 0; background: none; box-shadow: none; overflow: visible; }
#market .table-wrap::before { display: none; } #market .note { text-align: center; }
.soon { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 10px 0 40px; }
.soon img { width: 240px; height: 240px; object-fit: contain; animation: cat-bob 5s ease-in-out infinite; filter: drop-shadow(0 20px 16px rgba(17,18,23,.2)); }
.soon h3 { font-family: var(--brick-font); font-weight: 400; font-size: clamp(30px, 4vw, 44px); }
.soon p { color: var(--muted); max-width: 460px; }
@media (max-width: 600px) { #market #stage3d { height: 380px; } #market .item { width: 100%; } }

/* ===== HEADER v4 — sober ===== */
.nav-links a, .nav-links a:hover, .nav-links a.on { background: none !important; box-shadow: none !important; color: var(--muted); font-size: 13px; letter-spacing: .06em; padding: 8px 12px; position: relative; opacity: 1; }
.nav-links a:hover { color: var(--text); }
.nav-links a.on { color: var(--text) !important; }
.nav-links a.on::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 14px; height: 5px; margin-left: -7px; border-radius: 3px 3px 1px 1px; background: var(--text); }
.nav-icons { display: flex; align-items: center; gap: 4px; }
.nav-icons a, .nav-icons button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 0; background: none; color: var(--text); cursor: pointer; opacity: .75; transition: opacity .15s, background .15s; }
.nav-icons a:hover, .nav-icons button:hover { opacity: 1; background: var(--bg-2); }
.nav-icons svg { width: 19px; height: 19px; }
.nav-icons .moon { display: none; } :root[data-theme="dark"] .nav-icons .sun { display: none; } :root[data-theme="dark"] .nav-icons .moon { display: block; }
.wallet-btn { margin-left: 4px; white-space: nowrap; }
.wallet-btn.connected { background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--hl), 0 3px 0 var(--edge); font-family: var(--mono); font-size: 13px; }
.wallet-btn.connected::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 8px; }
@media (max-width: 960px) { .nav-icons a { display: none; } }
@media (max-width: 600px) { .wallet-btn { height: 34px; padding: 0 12px; font-size: 12.5px; } .nav-links a { padding: 8px 6px; font-size: 11.5px; } }

/* ===== bigger, legible transactions ===== */
.tx { max-width: 1000px; }
.tx-head h3 { font-size: 32px; }
.tx-cols { display: grid; grid-template-columns: minmax(0, 1fr) 80px 130px 140px 90px; gap: 16px; padding: 0 20px 8px 92px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tx-cols span:nth-child(n+3) { text-align: right; }
.tx-list li { grid-template-columns: 56px minmax(0, 1fr) 80px 130px 140px 90px; gap: 16px; padding: 14px 20px 14px 16px; }
.tx-list img { width: 56px; height: 56px; border-radius: 10px; object-fit: contain; }
.tx-set b { font-size: 17px; }
.tx-set span { font-size: 14px; }
.tx-side { font-size: 13px; padding: 5px 12px; justify-self: start; }
.tx-price { font-size: 18px; }
.tx-who { font-size: 14px; }
.tx-ago { font-size: 14px; }
@media (max-width: 760px) { .tx-cols { display: none; } .tx-list li { grid-template-columns: 48px minmax(0, 1fr) auto; } .tx-list img { width: 48px; height: 48px; } .tx-price { grid-column: 2 / 4; text-align: left; font-size: 16px; } }

/* ===== bigger feature card ===== */
#market .feature { width: min(560px, 100%); padding: 20px 24px; }
.f-top { font-size: 14px; }
.f-name { font-size: 26px; margin: 4px 0 14px; }
.f-k { font-size: 13px; }
.f-v { font-size: 22px; }

/* ===== items: actions ===== */
.item-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.btn-xs { height: 38px; padding: 0 12px; font-size: 14px; border-radius: 9px; }
.item-img.gen { background: radial-gradient(70% 60% at 50% 45%, #fff, #f1f0ec); }
.item-img.gen img { object-fit: contain; padding: 14px; }

/* ===== MODALS ===== */
html.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(17,18,23,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[hidden] { display: none !important; }
.modal-box { position: relative; width: min(460px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 0 var(--edge), 0 40px 80px -30px rgba(0,0,0,.5); animation: pop .25s cubic-bezier(.2,1.3,.4,1); }
@keyframes pop { from { transform: translateY(14px) scale(.97); opacity: 0; } }
.modal-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 9px; border: 0; background: var(--bg-2); font-size: 20px; cursor: pointer; }
.tm-top { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; padding-right: 30px; }
.tm-top img { width: 84px; height: 84px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--line); flex: none; }
.tm-top h3 { font-size: 19px; line-height: 1.2; margin: 2px 0 4px; }
.tm-sub, .tm-price { font-size: 13px; color: var(--muted); } .tm-price b { color: var(--text); }
.tm-side { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 12px; background: var(--bg-2); margin-bottom: 18px; }
.tm-side button { height: 40px; border: 0; border-radius: 9px; background: none; font-weight: 700; cursor: pointer; color: var(--muted); }
.tm-side button.on { background: var(--surface); color: var(--text); box-shadow: 0 2px 0 var(--edge); }
.tm-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.tm-frac { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.tm-frac button { height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; box-shadow: 0 3px 0 var(--edge); }
.tm-frac button.on { background: var(--yellow); border-color: #e0b000; color: #111217; box-shadow: 0 3px 0 #c99a00; }
.tm-sum { display: grid; gap: 8px; padding: 14px 16px; border-radius: 12px; background: var(--bg-2); margin-bottom: 12px; }
.tm-sum div { display: flex; justify-content: space-between; font-size: 15px; } .tm-sum dt { color: var(--muted); } .tm-sum dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.tm-sum .tot { padding-top: 8px; border-top: 1px dashed var(--line-2); font-size: 18px; } .tm-sum .tot dd { font-weight: 800; }
.tm-warn { min-height: 18px; font-size: 13px; color: var(--red); margin-bottom: 8px; }
.tm-go { width: 100%; height: 52px; font-size: 16px; }
.tm-go.sell { background: #111217; color: #fff; box-shadow: 0 4px 0 #000; }
.tm-go:disabled { opacity: .45; cursor: not-allowed; }
.tm-demo { text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }
.wm h3 { font-size: 22px; margin-bottom: 16px; }
.wm-list { display: grid; gap: 10px; }
.wm-list button { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: 0 3px 0 var(--edge); text-align: left; }
.wm-list button:hover { transform: translateY(-1px); }
.wm-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--c); color: #111217; font-weight: 800; }
.wm-msg { font-size: 13px; color: var(--red); margin-top: 10px; min-height: 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 160; padding: 12px 18px; border-radius: 12px; background: #111217; color: #fff; font-weight: 600; box-shadow: 0 5px 0 #000; animation: pop .25s; }
.toast[hidden] { display: none; }

/* ===== HOLDINGS ===== */
#holdings .section-head { text-align: center; display: grid; justify-items: center; }
.h-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1000px; margin: 0 auto 28px; }
.h-stats:empty { display: none; }
.h-stats div { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 5px 0 var(--edge); }
.h-stats span { display: block; font-size: 13px; color: var(--muted); } .h-stats b { font-size: 24px; letter-spacing: -.02em; }
.h-list { display: grid; gap: 12px; max-width: 1000px; margin: 0 auto; }
.h-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 110px 120px 120px 180px; gap: 16px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 5px 0 var(--edge); }
.h-row img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.h-name b { display: block; font-size: 16px; } .h-name span, .h-row div > span { font-size: 13px; color: var(--muted); }
.h-row div > b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.h-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.h-empty { text-align: center; display: grid; justify-items: center; gap: 14px; padding: 50px 20px; border-radius: 16px; border: 2px dashed var(--line-2); color: var(--muted); }
@media (max-width: 860px) { .h-stats { grid-template-columns: 1fr 1fr; } .h-row { grid-template-columns: 56px minmax(0, 1fr) auto; } .h-row > div:nth-child(3), .h-row > div:nth-child(5) { display: none; } .h-act { grid-column: 1 / -1; } }

/* ===== GATE: detailed bricks ===== */
.gbrick, .slot.on {
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.38) 0, rgba(255,255,255,0) 22%),
    linear-gradient(90deg, rgba(0,0,0,.12) 0, rgba(0,0,0,0) 12%, rgba(0,0,0,0) 88%, rgba(0,0,0,.16) 100%),
    var(--c);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55), inset 0 -6px 0 rgba(0,0,0,.2), inset 0 -7px 0 rgba(255,255,255,.08),
    0 6px 0 rgba(0,0,0,.28), 0 14px 18px -10px rgba(0,0,0,.45);
  -webkit-text-stroke: 0; letter-spacing: 0;
}
.gbrick { width: 58px; height: 56px; }
.gbrick::before, .gbrick::after, .slot.on::before, .slot.on::after {
  top: -8px; width: 16px; height: 9px; border-radius: 50% 50% 2px 2px / 70% 70% 2px 2px;
  background: linear-gradient(90deg, rgba(0,0,0,.14), rgba(255,255,255,.35) 35%, rgba(0,0,0,0) 60%, rgba(0,0,0,.18)), var(--c);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(0,0,0,.2);
}
.gbrick::before, .slot.on::before { left: 10px; } .gbrick::after, .slot.on::after { right: 10px; }
.gbrick { text-shadow: 0 1px 0 rgba(255,255,255,.25), 0 -1px 0 rgba(0,0,0,.35); }
.gbrick[style*="#f2cd37"], .gbrick[style*="#e4adc8"] { text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.slot { width: 56px; height: 60px; }
@media (max-width: 600px) { .gbrick { width: 42px; height: 42px; } .slot { width: 40px; height: 46px; } }
.wallet-btn:not(.connected) { padding: 0 16px; background: #111217; }
.wallet-btn .bt { display: block; overflow: visible; }
.wallet-btn .b .f, .wallet-btn .b .s { fill: var(--c); }
.wallet-btn .b .sh { fill: #fff; opacity: .55; } .wallet-btn .b .e { fill: #000; opacity: .25; }
.wallet-btn:hover .bt { transform: translateY(-1px); }
.wallet-btn .b .g { display: none; }
.nav-icons a, .nav-icons button { opacity: 1; width: 40px; height: 40px; }
.nav-icons img { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,.18)); transition: transform .2s; }
.nav-icons a:hover img, .nav-icons button:hover img { transform: translateY(-2px) rotate(-4deg); }
.nav-icons a:hover, .nav-icons button:hover { background: none; }
#market #stage-sn { position: relative; inset: auto; width: 100%; height: min(56vh, 500px); display: block; cursor: grab; touch-action: pan-y; }
@media (max-width: 600px) { #market #stage-sn { height: 380px; } }
/* Connect wallet: clean */
.wallet-btn:not(.connected) { padding: 0 18px; background: #111217; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: -.005em; gap: 9px; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 3px 0 #000; }
.wallet-btn:not(.connected)::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--yellow); box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }
:root[data-theme="dark"] .wallet-btn:not(.connected) { background: #f3f2ee; color: #111217; box-shadow: 0 3px 0 #9b9a95; }
/* Same title typography as "The market" */
#holdings h2, #about h2 { font-family: var(--font) !important; font-weight: 800 !important; font-size: clamp(32px, 4vw, 48px) !important; line-height: 1.05; letter-spacing: -.035em; text-shadow: none !important; }
#holdings .sub, #about .about-lede { font-size: 17px !important; font-weight: 400 !important; color: var(--muted) !important; margin-top: 10px; }
#about .eyebrow { margin-bottom: 6px; }

/* ===== GATE v3: realistic 3D 2x2 bricks ===== */
.gbrick, .slot, .slot.on { all: unset; box-sizing: border-box; position: relative; display: block; width: 60px; height: 66px; cursor: pointer; perspective: 520px; }
.gbrick::before, .gbrick::after, .slot.on::before, .slot.on::after { display: none !important; }
.slot { border: 2px dashed var(--line-2); border-radius: 8px; }
.slot.on { border: 0; animation: snap .3s cubic-bezier(.2,1.6,.4,1); }
.gate-slots, .gate-bricks { gap: 18px 14px; }
.cube { --w: 52px; --h: 44px; --d: 52px; position: absolute; left: 50%; top: 58%; width: var(--w); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2);
  transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(-28deg); transition: transform .35s cubic-bezier(.2,1.3,.4,1); }
.gbrick:hover .cube { transform: rotateX(-30deg) rotateY(-14deg) translateY(-4px); }
.gbrick:active .cube { transform: rotateX(-20deg) rotateY(-28deg) translateY(3px); }
.gbrick:disabled { cursor: default; } .gbrick:disabled .cube { opacity: .14; transform: rotateX(-24deg) rotateY(-28deg) scale(.86); }
.fc { position: absolute; box-sizing: border-box; background: var(--c); }
/* front face: letter + plastic sheen + moulded bottom lip */
.fr { width: var(--w); height: var(--h); transform: translateZ(calc(var(--d) / 2)); display: grid; place-items: center; border-radius: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,.28) 0, rgba(255,255,255,.06) 18%, rgba(0,0,0,0) 55%, rgba(0,0,0,.14) 100%), var(--c);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), inset 0 -3px 0 rgba(0,0,0,.18), inset 2px 0 0 rgba(255,255,255,.18); }
.fr b { font-family: var(--brick-font); font-weight: 400; font-size: 26px; line-height: 1; color: rgba(255,255,255,.95);
  text-shadow: 0 1px 0 rgba(255,255,255,.35), 0 -1px 0 rgba(0,0,0,.35), 0 2px 3px rgba(0,0,0,.25); }
.cube.lt .fr b { color: rgba(17,18,23,.85); text-shadow: 0 1px 0 rgba(255,255,255,.6), 0 -1px 0 rgba(0,0,0,.18); }
/* right + left faces: darker */
.rt { width: var(--d); height: var(--h); transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); filter: brightness(.68);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.18)), var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.lf { width: var(--d); height: var(--h); transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); filter: brightness(.8); }
/* top face with four studs */
.tp { width: var(--w); height: var(--d); transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); filter: brightness(1.14);
  background: radial-gradient(120% 120% at 20% 10%, rgba(255,255,255,.35), rgba(255,255,255,0) 60%), var(--c);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; place-items: center; padding: 5px; }
.tp i { display: block; width: 17px; height: 17px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 35% 32%, rgba(255,255,255,.85) 0 12%, rgba(255,255,255,.25) 28%, rgba(0,0,0,0) 55%), var(--c);
  box-shadow: 0 0 0 1px rgba(0,0,0,.12), 1px 2px 0 1px rgba(0,0,0,.22), 2px 4px 4px rgba(0,0,0,.25); transform: translateZ(4px); }
.tp i::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
/* ground shadow */
.gbrick::marker { display: none; }
.gbrick > .cube::after { content: ""; }
.gbrick { filter: drop-shadow(0 10px 8px rgba(17,18,23,.22)); }
.gbrick:disabled { filter: none; }
.gate.solved .slot.on .cube { animation: win3d .7s ease both; }
.gate.solved .slot:nth-child(2) .cube { animation-delay: .06s; } .gate.solved .slot:nth-child(3) .cube { animation-delay: .12s; } .gate.solved .slot:nth-child(4) .cube { animation-delay: .18s; } .gate.solved .slot:nth-child(5) .cube { animation-delay: .24s; } .gate.solved .slot:nth-child(6) .cube { animation-delay: .3s; }
@keyframes win3d { 50% { transform: rotateX(-24deg) rotateY(-28deg) translateY(-14px); } }
@media (max-width: 600px) { .gbrick, .slot { width: 46px; height: 52px; } .cube { --w: 40px; --h: 34px; --d: 40px; } .tp i { width: 13px; height: 13px; } .fr b { font-size: 20px; } .gate-slots, .gate-bricks { gap: 14px 8px; } }

/* ===== GATE v4: SVG bricks ===== */
.gbrick, .slot.on { perspective: none; filter: none; }
.gbk { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 6px rgba(17,18,23,.22)); transition: transform .25s cubic-bezier(.2,1.4,.4,1); }
.gbk-l { font-family: "Titan One", sans-serif; font-size: 22px; fill: rgba(255,255,255,.96); paint-order: stroke; stroke: rgba(0,0,0,.28); stroke-width: 1.2px; }
.gbk.lt .gbk-l { fill: rgba(17,18,23,.85); stroke: rgba(255,255,255,.5); }
.gbrick { width: 66px; height: 66px; }
.slot { width: 66px; height: 66px; }
.gbrick:hover .gbk { transform: translateY(-5px) rotate(-3deg); }
.gbrick:active .gbk { transform: translateY(2px); }
.gbrick:disabled .gbk { opacity: .14; transform: scale(.85); filter: none; }
.gate.solved .slot.on .gbk { animation: win .6s ease both; }
.gate.solved .slot:nth-child(2) .gbk { animation-delay: .06s; } .gate.solved .slot:nth-child(3) .gbk { animation-delay: .12s; } .gate.solved .slot:nth-child(4) .gbk { animation-delay: .18s; } .gate.solved .slot:nth-child(5) .gbk { animation-delay: .24s; } .gate.solved .slot:nth-child(6) .gbk { animation-delay: .3s; }
@media (max-width: 600px) { .gbrick, .slot { width: 48px; height: 48px; } }
/* Earn titles: same type as The market */
.earn-head h2, .earn-ways h3 { font-family: var(--font) !important; font-weight: 800 !important; letter-spacing: -.035em; text-shadow: none !important; }
.earn-head h2 { font-size: clamp(32px, 4vw, 48px) !important; line-height: 1.05; }
.earn-ways h3 { font-size: clamp(24px, 2.6vw, 30px) !important; }
.earn-ways .rw-ways li b { font-family: var(--font) !important; font-weight: 700 !important; }
/* chest logo */
.logo-img { width: 30px; height: 30px; object-fit: contain; }
.gate-logo { width: 64px; height: 64px; object-fit: contain; }
.cta-logo { width: 96px; height: 96px; object-fit: contain; }
.gbrick, .slot { width: 72px; height: 64px; }

/* ===== One title style everywhere (same as "The market") ===== */
h1, h2, h3,
.gate h2, .cat-head h3, .tx-head h3, .soon h3, .docs-hero h2, .docs-body h3, .docs-nav-title,
.view:not(#vault) h2, .view:not(#vault) h3, .item h3, .faq summary, .rw-ways b, .bkey b, .gcard-amt, .rw-prizes b, .tcard .tv, .donut-big,
.cat.live .cat-name, .acro-big b, .roadmap li b, .story-steps h3 {
  font-family: var(--font) !important; font-weight: 800; text-shadow: none !important; letter-spacing: -.03em;
}
.gate h2, .docs-hero h2, .view:not(#vault) h2, .cat-head h3, .soon h3 { font-size: clamp(30px, 3.8vw, 46px) !important; line-height: 1.06; }
.tx-head h3, .docs-body h3 { font-size: clamp(22px, 2.4vw, 28px) !important; }
.item h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.docs-num { font-family: var(--font) !important; font-weight: 800; }
.acro-big b { font-size: 24px; }
.gcard-amt { font-weight: 800; }

/* ===== MARKET chooser: two big hero cards, transactions below the fold ===== */
#vault { padding-top: 130px; }
#vault .section-head { margin-bottom: 8px; }
#vault .cats { min-height: calc(100vh - 300px); min-height: calc(100svh - 300px); align-content: center; gap: 28px; margin: 0 auto; max-width: 1100px; perspective: 1200px; }
.cat.big, .cat.big:hover { width: min(520px, 100%); display: grid; grid-template-columns: 1fr; justify-items: stretch; gap: 0; padding: 0; border-radius: 26px; overflow: hidden;
  background: var(--surface) !important; border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--hl), 0 8px 0 var(--edge), 0 30px 50px -30px rgba(17,18,23,.45) !important; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.cat.big:hover { transform: translateY(-8px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); box-shadow: inset 0 1px 0 var(--hl), 0 14px 0 var(--edge), 0 40px 60px -30px rgba(17,18,23,.5) !important; }
.cat-stage { display: grid; place-items: center; height: 320px; background: radial-gradient(60% 70% at 50% 60%, #fff 0%, var(--bg-2) 100%); }
:root[data-theme="dark"] .cat-stage { background: radial-gradient(60% 70% at 50% 60%, #22252e 0%, #14161c 100%); }
.cat.big .cat-img { width: 280px; height: 280px; }
.cat.big:hover .cat-img { transform: translateY(-10px) scale(1.06); }
.cat-txt { display: grid; gap: 4px; padding: 22px 26px 26px; text-align: left; border-top: 1px solid var(--line); }
.cat-kick { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cat-title { font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; letter-spacing: -.035em; color: var(--text); line-height: 1.1; }
.cat-sub { color: var(--muted); font-size: 15px; }
.cat-go { justify-self: start; margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; background: var(--yellow); color: #111217; font-weight: 700; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 4px 0 #c99a00; }
.cat-go::after { content: "→"; transition: transform .2s; }
.cat.big:hover .cat-go::after { transform: translateX(4px); }
#vault .tx { margin-top: 120px; }
@media (max-width: 760px) { .cat-stage { height: 230px; } .cat.big .cat-img { width: 200px; height: 200px; } #vault .cats { min-height: 0; } #vault .tx { margin-top: 80px; } }
/* reset older .cat span/b rules inside the big cards */
.cat.big span, .cat.big b { all: revert; }
.cat.big .cat-stage { display: grid; place-items: center; height: 300px; background: radial-gradient(60% 70% at 50% 60%, #fff 0%, var(--bg-2) 100%); }
.cat.big .cat-txt { display: grid; gap: 4px; padding: 22px 26px 26px; text-align: left; border-top: 1px solid var(--line); font-family: var(--font); }
.cat.big .cat-kick { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cat.big .cat-title { font-family: var(--font); font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; letter-spacing: -.035em; color: var(--text); line-height: 1.1; }
.cat.big .cat-sub { font-family: var(--font); color: var(--muted); font-size: 15px; }
.cat.big .cat-go { justify-self: start; margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; background: var(--yellow); color: #111217; font-family: var(--font); font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 4px 0 #c99a00; }
.cat.big { width: min(500px, calc(50% - 14px)); }
@media (max-width: 860px) { .cat.big { width: min(520px, 100%); } }
.cat.big .cat-stage { height: 340px; }
.cat-3d { width: 100%; height: 100%; display: block; cursor: grab; }
.cat-3d:active { cursor: grabbing; }
.cat.big[data-cat="lego"] .cat-stage { background: radial-gradient(60% 65% at 50% 55%, #fff6cf 0%, var(--bg-2) 100%); }
.cat.big[data-cat="sneakers"] .cat-stage { background: radial-gradient(60% 65% at 50% 55%, #ffe3df 0%, var(--bg-2) 100%); }
.cat.big .cat-title { font-size: clamp(28px, 3vw, 38px); }
@media (max-width: 760px) { .cat.big .cat-stage { height: 260px; } }
/* no 3D card tilt on the big cards (it made the WebGL canvas shimmer) */
.cat.big, .cat.big:hover { transform: none !important; transform-style: flat; }
.cat.big:hover { transform: translateY(-6px) !important; }
#vault .cats { perspective: none; }
.cat.big .cat-img.hero { width: 300px; height: 300px; object-fit: contain; filter: drop-shadow(0 24px 22px rgba(17,18,23,.22)); animation: cat-bob 5s ease-in-out infinite; }
.cat.big[data-cat="sneakers"] .cat-img.hero { animation-delay: -2.5s; }
.cat.big:hover .cat-img.hero { transform: translateY(-10px) scale(1.05) rotate(-2deg); }
.lede .rh { display: inline-grid; place-items: center; vertical-align: middle; margin-left: 6px; width: 34px; height: 34px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 3px 0 var(--edge); }
.lede .rh img { width: 24px; height: 24px; object-fit: contain; }
.cat.big .cat-img.hero { position: static !important; inset: auto !important; width: 290px !important; height: 290px !important; object-position: 50% 50% !important; }
.cat.big .cat-stage { position: relative !important; display: block !important; height: 330px !important; width: 100%; }
.cat.big .cat-img.hero { position: absolute !important; left: 50% !important; top: 50% !important; width: 280px !important; height: 280px !important; margin: -140px 0 0 -140px !important; transform: none; }
.cat.big:hover .cat-img.hero { transform: scale(1.05) rotate(-2deg); }
/* market chooser: single LEGO card */
.cat.big .cat-stage { position: relative; display: grid !important; place-items: center; height: 340px !important; }
.cat-heroimg { width: 300px; height: 300px; object-fit: contain; filter: drop-shadow(0 24px 22px rgba(17,18,23,.22)); animation: cat-bob 5s ease-in-out infinite; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.cat.big:hover .cat-heroimg { transform: scale(1.05) rotate(-2deg); }
.cat.big { width: min(560px, 100%) !important; }
/* amazon wordmark (text, not the official artwork) */
.amz-mark { font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 26px; letter-spacing: -.02em; color: var(--text); line-height: 1; }
.amz-mark.sm { font-size: 18px; color: #fff; text-transform: none; letter-spacing: -.02em; font-family: Arial, Helvetica, sans-serif; }
.earn-head .amz-mark { margin-bottom: 2px; }
.lede .rh { background: none !important; border: 0 !important; box-shadow: none !important; width: auto; height: auto; margin-left: 4px; }
.lede .rh img { width: 34px; height: 34px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.18)); transform: rotate(8deg); }
/* logo +15% */
.logo-img { width: 35px !important; height: 35px !important; }
.gate-logo { width: 74px !important; height: 74px !important; }
.cta-logo { width: 110px !important; height: 110px !important; }
.nav .logo { font-size: 24px !important; font-weight: 800; letter-spacing: -.035em; gap: 10px; }
/* hero highlight: grey taken from the logo instead of yellow */
.hero h1 mark { background: #c7c6c6; color: #303030 !important; box-shadow: 0 .08em 0 #9a9999; }
.hero h1 mark::before, .hero h1 mark::after { background: #c7c6c6; }
:root[data-theme="dark"] .hero h1 mark { background: #3a3939; color: #f3f2ee !important; box-shadow: 0 .08em 0 #1f1f1f; }
:root[data-theme="dark"] .hero h1 mark::before, :root[data-theme="dark"] .hero h1 mark::after { background: #3a3939; }

/* DOCS flow diagram */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; margin: 10px 0 28px; }
.fl-node { padding: 14px 14px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 0 var(--edge); display: grid; gap: 2px; text-align: center; }
.fl-node b { font-size: 14.5px; } .fl-node span { font-size: 12.5px; color: var(--muted); }
.fl-node.pool { background: #303030; border-color: #000; color: #fff; box-shadow: 0 4px 0 #000; } .fl-node.pool span { color: #c7c6c6; }
.fl-arrow { font-size: 22px; color: var(--muted); }
.fl-sub { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.fl-node.hedge { border-color: #e0b000; box-shadow: 0 4px 0 #c99a00; }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr; } .fl-arrow { transform: rotate(90deg); justify-self: center; } .fl-sub { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .gate-slots { gap: 4px; } .slot { width: 38px !important; height: 40px !important; } }

/* POOL panel (LEGO market) */
.pool { max-width: 1000px; margin: 22px auto 30px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--hl), 0 6px 0 var(--edge); display: grid; gap: 14px; }
.pool-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pool-stats div { padding: 12px 14px; border-radius: 12px; background: var(--bg-2); }
.pool-stats span { display: flex; align-items: center; font-size: 13px; color: var(--muted); }
.pool-stats b { display: block; font-size: 22px; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.pool-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pool-note { text-align: center; font-size: 12px; color: var(--muted); }
.m-sub { color: var(--muted); font-size: 14px; margin: -8px 0 16px; }
.m-field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.m-field input { height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); font: 600 18px var(--font); color: var(--text); }
.m-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.item-body .bk.bk-phys { background: var(--bg-2) !important; color: var(--muted) !important; box-shadow: none; text-transform: none; letter-spacing: 0; font-family: var(--font); font-size: 12px; }
@media (max-width: 760px) { .pool-stats { grid-template-columns: 1fr 1fr; } }
.gate-slots { gap: 8px !important; } .slot { width: 60px !important; } @media (max-width: 600px) { .slot { width: 32px !important; height: 36px !important; } .gate-slots { gap: 3px !important; } }
/* hero highlight: white brick */
.hero h1 mark, :root[data-theme="dark"] .hero h1 mark { background: #ffffff; color: #111217 !important; box-shadow: inset 0 0 0 1px #e2e1dc, 0 .08em 0 #d6d4cc, 0 .3em .6em -.3em rgba(17,18,23,.25); }
.hero h1 mark::before, .hero h1 mark::after, :root[data-theme="dark"] .hero h1 mark::before, :root[data-theme="dark"] .hero h1 mark::after { background: #ffffff; box-shadow: inset 0 0 0 1px #e2e1dc; }
/* hero highlight: black brick */
.hero h1 mark, :root[data-theme="dark"] .hero h1 mark { background: #111217; color: #fff !important; box-shadow: 0 .08em 0 #000, 0 .3em .6em -.3em rgba(17,18,23,.35); }
.hero h1 mark::before, .hero h1 mark::after, :root[data-theme="dark"] .hero h1 mark::before, :root[data-theme="dark"] .hero h1 mark::after { background: #111217; box-shadow: none; }
:root[data-theme="dark"] .hero h1 mark { background: #f3f2ee; color: #111217 !important; box-shadow: 0 .08em 0 #9b9a95; }
:root[data-theme="dark"] .hero h1 mark::before, :root[data-theme="dark"] .hero h1 mark::after { background: #f3f2ee; }
/* about: the project */
.project { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; max-width: 1000px; margin: 90px auto 0; }
.project-photo { margin: 0; }
.project-photo img { width: 100%; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 8px 0 var(--edge), 0 30px 40px -24px rgba(17,18,23,.4); transform: rotate(-1.5deg); }
.project-photo figcaption { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: center; }
.project-txt h2 { margin: 6px 0 16px; }
.project-txt p { color: var(--muted); font-size: 17px; margin-bottom: 12px; }
@media (max-width: 860px) { .project { grid-template-columns: 1fr; gap: 28px; margin-top: 60px; } }
.hero h1 mark sup { font-size: .35em; vertical-align: super; margin-left: .04em; }
.hero h1 sup { font-size: .32em; vertical-align: super; font-weight: 700; }
/* classic theme toggle next to Who am I */
.nav-links .theme-classic { display: grid; place-items: center; width: 34px; height: 34px; margin-left: 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); cursor: pointer; box-shadow: 0 2px 0 var(--edge); }
.nav-links .theme-classic:hover { border-color: var(--line-2); }
.nav-links .theme-classic svg { width: 17px; height: 17px; }
.theme-classic .moon { display: none; } :root[data-theme="dark"] .theme-classic .sun { display: none; } :root[data-theme="dark"] .theme-classic .moon { display: block; }
/* wordmark: white k on a small black brick */
.logo-k { display: inline-block; color: #fff; background: #111217; padding: 0 .09em; margin: 0 .03em; border-radius: .14em; line-height: 1.05; box-shadow: 0 .08em 0 #000; }
:root[data-theme="dark"] .logo-k { background: #111217; color: #fff; box-shadow: 0 0 0 1px #3a3d4a, 0 .08em 0 #000; }
/* k: white letter only, thin dark outline so it stays readable on light backgrounds */
.logo-k, :root[data-theme="dark"] .logo-k { background: none !important; box-shadow: none !important; padding: 0; margin: 0; border-radius: 0; color: #fff; -webkit-text-stroke: 1.2px #111217; paint-order: stroke fill; }
:root[data-theme="dark"] .logo-k { -webkit-text-stroke: 0; }
/* theme toggle now sits right of Connect wallet */
.nav-inner > .theme-classic { display: grid; place-items: center; width: 38px; height: 38px; margin-left: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; box-shadow: 0 2px 0 var(--edge); }
.nav-inner > .theme-classic svg { width: 18px; height: 18px; }
/* brick-built k in the wordmark */
.logo-k { -webkit-text-stroke: 0 !important; display: inline-flex; align-items: flex-end; margin: 0 1px; transform: translateY(1px); }
.logo-k .bt { display: block; overflow: visible; }
.logo-k .b .f, .logo-k .b .s { fill: #ffffff; stroke: #111217; stroke-width: .35; }
.logo-k .b .g { display: none; }
.logo-k .b .sh { fill: #fff; opacity: .9; }
.logo-k .b .e { fill: #111217; opacity: .18; }
:root[data-theme="dark"] .logo-k .b .f, :root[data-theme="dark"] .logo-k .b .s { stroke: #3a3d4a; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.logo-k .b .f, .logo-k .b .s { stroke: #111217 !important; stroke-width: .75 !important; }
.logo-k .b .e { opacity: .32; }
.logo-k .bt { filter: drop-shadow(0 1px 0 rgba(17,18,23,.35)); }
/* gate: bricks only */
.gate-box { gap: 26px; }
.gbk-l { font-size: 17px !important; font-family: var(--font) !important; font-weight: 800; }
.gate-slots { margin-top: 0; }

/* ===== Connect wallet: black LEGO brick button ===== */
.wallet-btn:not(.connected) {
  position: relative; height: 42px; padding: 0 18px 0 16px; gap: 10px; border-radius: 9px; border: 0;
  background: linear-gradient(180deg, #2a2c33 0%, #111217 55%, #0b0c0f 100%); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: -.01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -3px 0 rgba(0,0,0,.45), 0 4px 0 #000, 0 10px 18px -8px rgba(17,18,23,.55);
  transition: transform .12s, box-shadow .12s, filter .15s; overflow: visible;
}
.wallet-btn:not(.connected)::before {
  content: ""; width: 18px; height: 15px; margin: 0; border-radius: 3px; background: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M3 4h15a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V5a3 3 0 0 1 3-3h12v2H4a1 1 0 0 0 0 2h14Zm13 7.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M3 4h15a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V5a3 3 0 0 1 3-3h12v2H4a1 1 0 0 0 0 2h14Zm13 7.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  background-color: #fff;
}
.wallet-btn:not(.connected)::after {
  content: ""; position: absolute; top: -7px; left: 22%; width: 16px; height: 8px; border-radius: 4px 4px 1px 1px;
  background: linear-gradient(180deg, #34363e, #15161b); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), calc(100% * 0 + 0px) 0 0 transparent;
}
.wallet-btn:not(.connected) .stud2 { display: none; }
.wallet-btn:not(.connected):hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -3px 0 rgba(0,0,0,.45), 0 6px 0 #000, 0 16px 22px -10px rgba(17,18,23,.6); }
.wallet-btn:not(.connected):active { transform: translateY(3px); box-shadow: inset 0 -1px 0 rgba(0,0,0,.45), 0 1px 0 #000; }
.wallet-btn:not(.connected) { background-image: radial-gradient(circle at calc(100% - 22% - 8px) -2px, transparent 0, transparent 0), linear-gradient(180deg, #2a2c33 0%, #111217 55%, #0b0c0f 100%); }
/* second stud via an extra layer */
.nav-inner { position: relative; }
.wallet-wrap { position: relative; display: inline-flex; }
.wallet-wrap::after { content: ""; position: absolute; top: -7px; right: 22%; width: 16px; height: 8px; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, #34363e, #15161b); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); pointer-events: none; transition: transform .12s; }
.wallet-wrap:has(.wallet-btn.connected)::after { display: none; }
.wallet-wrap:hover::after { transform: translateY(-2px); }
:root[data-theme="dark"] .wallet-btn:not(.connected) { background: linear-gradient(180deg, #ffffff 0%, #f1f0ec 60%, #e2e0d8 100%); color: #111217; box-shadow: inset 0 1px 0 #fff, inset 0 -3px 0 rgba(0,0,0,.12), 0 4px 0 #9b9a95, 0 10px 18px -8px rgba(0,0,0,.6); }
:root[data-theme="dark"] .wallet-btn:not(.connected)::before { background-color: #111217; }
:root[data-theme="dark"] .wallet-btn:not(.connected)::after, :root[data-theme="dark"] .wallet-wrap::after { background: linear-gradient(180deg, #ffffff, #e2e0d8); }
/* Connect wallet: no background */
.wallet-btn:not(.connected), :root[data-theme="dark"] .wallet-btn:not(.connected) { background: none !important; box-shadow: none !important; color: var(--text) !important; padding: 0 10px; }
.wallet-btn:not(.connected)::before, :root[data-theme="dark"] .wallet-btn:not(.connected)::before { background-color: var(--text) !important; }
.wallet-btn:not(.connected)::after, .wallet-wrap::after { display: none !important; }
.wallet-btn:not(.connected):hover { transform: none; box-shadow: none !important; opacity: .7; }
.wallet-btn:not(.connected):active { transform: translateY(1px); box-shadow: none !important; }

/* ===== EARN gift card v2 ===== */
.earn-card { width: min(460px, 84vw) !important; aspect-ratio: 1.586; padding: 26px 28px !important; border-radius: 22px !important; color: #fff; display: grid !important; grid-template-rows: auto auto 1fr auto; gap: 6px;
  background:
    radial-gradient(circle at 18px 18px, rgba(255,255,255,.055) 0 6px, transparent 6.5px) 0 0 / 36px 36px,
    radial-gradient(120% 140% at 100% 0%, #2d3039 0%, #14151a 45%, #08090b 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 1px rgba(255,255,255,.06), 0 8px 0 #000, 0 40px 60px -30px rgba(17,18,23,.75) !important;
  overflow: hidden; isolation: isolate; }
.earn-card::after { content: "" !important; position: absolute; left: 0; right: 0; bottom: 0; top: auto; width: auto; height: 6px; border-radius: 0; background: linear-gradient(90deg, #d0211c 0 38%, #ffffff 38% 62%, #111217 62%); opacity: .95; }
.gc-shine { position: absolute; inset: -40%; z-index: -1; pointer-events: none; opacity: .55; mix-blend-mode: screen; transition: opacity .3s;
  background: radial-gradient(40% 40% at var(--mx, 75%) var(--my, 20%), rgba(255,255,255,.22), transparent 60%),
              conic-gradient(from 210deg at var(--mx, 75%) var(--my, 20%), rgba(255,90,90,.18), rgba(120,170,255,.16), rgba(140,255,200,.12), rgba(255,220,120,.16), rgba(255,90,90,.18)); filter: blur(18px); }
.earn-card:hover .gc-shine { opacity: .85; }
.gc-row { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.gc-kind { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #a9abb4; }
.earn-card .amz-mark.sm { font-size: 22px; color: #fff; }
.gc-chip { width: 46px; height: 34px; border-radius: 7px; margin-top: 14px; background: linear-gradient(135deg, #e9e6df, #b9b6ae 45%, #f5f3ee 60%, #a8a59d); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); display: grid; grid-template-rows: repeat(3, 1fr); padding: 6px 5px; gap: 3px; }
.gc-chip i { display: block; border-radius: 2px; border: 1px solid rgba(0,0,0,.22); }
.earn-card .gcard-amt { font-size: clamp(64px, 8vw, 92px) !important; font-weight: 800; letter-spacing: -.045em; line-height: 1; align-self: end; background: linear-gradient(180deg, #ffffff 30%, #c9cbd2 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.gc-bottom { margin-top: 6px; padding-bottom: 6px; }
.gc-sub { font-size: 13px; color: #b9bbc4; }
.gc-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; letter-spacing: -.02em; color: #fff; }
.gc-brand img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
:root[data-theme="dark"] .earn-card { border: 1px solid #2a2d36; }
/* vouchers echo the card */
.voucher { background: radial-gradient(circle at 10px 10px, rgba(255,255,255,.06) 0 3.5px, transparent 4px) 0 0 / 20px 20px, radial-gradient(120% 140% at 100% 0%, #2d3039 0%, #0b0c0f 70%) !important; border-radius: 12px; }
.voucher::after { width: auto !important; height: 4px !important; left: 0 !important; right: 0 !important; bottom: 0 !important; border-radius: 0 !important; background: linear-gradient(90deg, #d0211c 0 38%, #fff 38% 62%, #111217 62%) !important; }
.voucher.v200 { background: radial-gradient(circle at 10px 10px, rgba(0,0,0,.08) 0 3.5px, transparent 4px) 0 0 / 20px 20px, linear-gradient(135deg, #ffffff, #e7e5df) !important; color: #111217; box-shadow: 0 5px 0 #b8b5ad, 0 18px 26px -12px rgba(0,0,0,.4) !important; }
.voucher.v200 span { color: #555963 !important; }
.voucher img { display: none; }

/* ===== Earn gift card as a LEGO plate ===== */
.earn-card { overflow: visible !important; border-radius: 14px !important;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.16) 0 3px, transparent 3.5px) 0 0 / 40px 40px,
    radial-gradient(circle at 50% 50%, #2f323b 0 13px, rgba(0,0,0,.55) 13.5px 15px, transparent 15.5px) 0 0 / 40px 40px,
    linear-gradient(180deg, #1e2027 0%, #121318 60%, #0c0d10 100%) !important;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.14), inset 0 -10px 0 rgba(0,0,0,.45), 0 10px 0 #000, 0 44px 60px -30px rgba(17,18,23,.75) !important; }
.earn-card::before { content: ""; position: absolute; top: -12px; left: 22px; right: 22px; height: 13px; pointer-events: none;
  background: radial-gradient(ellipse 13px 13px at 50% 100%, #2b2e36 0 12px, transparent 12.5px) 0 0 / 40px 13px repeat-x;
  filter: drop-shadow(0 -1px 0 rgba(255,255,255,.12)); }
.earn-card .gc-row, .earn-card .gcard-amt, .earn-card .gc-chip { position: relative; z-index: 2; }
.earn-card .gc-row:first-of-type, .earn-card .gc-bottom { background: rgba(12,13,16,.72); margin-left: -10px; margin-right: -10px; padding: 6px 10px; border-radius: 8px; backdrop-filter: blur(2px); }
.earn-card .gcard-amt { padding: 0 8px; background: linear-gradient(180deg, #ffffff 30%, #c9cbd2 100%); -webkit-background-clip: text; background-clip: text; }

/* ===== BRICK GACHA ===== */
.gacha { max-width: 1000px; margin: 40px auto 0; padding: 0 20px 80px; display: grid; gap: 28px; justify-items: center; text-align: center; }
.gacha-head h3 { font-size: clamp(28px, 3.4vw, 40px) !important; margin: 6px 0 8px; }
.gacha-sub { color: var(--muted); }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; width: 100%; }
.pack { display: grid; gap: 16px; justify-items: center; }
.pack-box { position: relative; width: 100%; max-width: 250px; aspect-ratio: 1 / 1.1; border-radius: 14px; display: grid; place-content: center; gap: 6px;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.12) 0 9px, rgba(0,0,0,.25) 9.5px 11px, transparent 11.5px) 0 0 / 30px 30px, linear-gradient(160deg, color-mix(in srgb, var(--pc) 85%, #fff) 0%, var(--pc) 55%, color-mix(in srgb, var(--pc) 75%, #000) 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -10px 0 rgba(0,0,0,.25), 0 8px 0 color-mix(in srgb, var(--pc) 55%, #000), 0 30px 40px -24px rgba(17,18,23,.6);
  transition: transform .25s cubic-bezier(.2,1.3,.4,1); }
.pack:hover .pack-box { transform: translateY(-6px) rotate(-1.5deg); }
.pack-box b { font-size: 56px; font-weight: 800; letter-spacing: -.04em; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.25); }
.pack-box span:not(.pack-studs) { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.pack[style*="#e2e0d8"] .pack-box b, .pack[style*="#e2e0d8"] .pack-box span:not(.pack-studs) { color: #111217; text-shadow: none; }
.pack-studs { position: absolute; top: -10px; left: 0; right: 0; display: flex; justify-content: space-evenly; padding: 0 18%; }
.pack-studs i { width: 28px; height: 11px; border-radius: 6px 6px 1px 1px; background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 70%, #fff), var(--pc)); box-shadow: inset 0 2px 0 rgba(255,255,255,.4); }
.pack .btn { width: 100%; max-width: 250px; }
.gacha-stage { width: 100%; min-height: 380px; display: grid; place-items: center; }
.reveal { position: relative; display: grid; justify-items: center; gap: 14px; }
.rv-box { position: relative; width: 220px; aspect-ratio: 1/1.1; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 85%, #fff), var(--pc)); box-shadow: inset 0 -10px 0 rgba(0,0,0,.25), 0 8px 0 color-mix(in srgb, var(--pc) 55%, #000); }
.rv-box b { font-size: 48px; font-weight: 800; color: #fff; }
.rv-box .pack-studs i { background: var(--pc); }
.reveal.shaking .rv-box { animation: shake .12s linear infinite; }
@keyframes shake { 0% { transform: translate(0,0) rotate(0); } 25% { transform: translate(-4px,1px) rotate(-2deg); } 50% { transform: translate(3px,-2px) rotate(2deg); } 75% { transform: translate(-2px,2px) rotate(-1deg); } }
.rv-card { position: relative; z-index: 2; width: 300px; aspect-ratio: 1.586; border-radius: 16px; padding: 18px 20px; display: grid; align-content: space-between; justify-items: start; color: #fff;
  background: radial-gradient(circle at 50% 50%, #2f323b 0 9px, rgba(0,0,0,.5) 9.5px 10.5px, transparent 11px) 0 0 / 28px 28px, linear-gradient(180deg, #1e2027, #0c0d10);
  box-shadow: 0 8px 0 #000, 0 30px 50px -20px rgba(0,0,0,.6); animation: pop-in .6s cubic-bezier(.2,1.5,.4,1) both; }
.rv-card b { font-size: 58px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.rv-card em { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #a9abb4; }
@keyframes pop-in { from { transform: scale(.4) rotate(-12deg); opacity: 0; } }
.burst { position: absolute; left: 50%; top: 40%; width: 0; height: 0; z-index: 1; }
.burst i { position: absolute; width: 14px; height: 10px; border-radius: 2px; background: #2b2e36; transform: rotate(var(--a)) translateX(0); animation: fly .9s cubic-bezier(.2,.8,.2,1) forwards; }
.burst i:nth-child(3n) { background: #fff; box-shadow: 0 0 0 1px #ccc; } .burst i:nth-child(5n) { background: #d0211c; }
@keyframes fly { to { transform: rotate(var(--a)) translateX(var(--d)); opacity: 0; } }
.reveal.r-rare .rv-card { box-shadow: 0 8px 0 #000, 0 0 0 3px #f5c542, 0 0 60px 10px rgba(245,197,66,.55); }
.reveal.r-rare .burst i { background: #f5c542; }
.reveal.r-uncommon .rv-card { box-shadow: 0 8px 0 #000, 0 0 0 3px #3b82f6, 0 0 40px 4px rgba(59,130,246,.35); }
.rv-msg { color: var(--muted); font-weight: 600; }
.rv-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.rar { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; font-weight: 700; }
.r-common { background: #e2e0d8; color: #3b3d45; } .r-uncommon { background: #dbe8ff; color: #1d4ed8; } .r-rare { background: #fff1c2; color: #8a6100; box-shadow: 0 0 0 1px #f5c542; }
.odds { width: 100%; }
.odds-table th { text-align: left; padding: 12px 16px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.odds-table td:last-child, .odds-table th:last-child { text-align: left; }
.pulls { width: 100%; text-align: left; }
.pulls h4 { font-size: 16px; margin-bottom: 10px; }
.pulls ul { list-style: none; display: grid; gap: 8px; }
.pulls li { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 3px 0 var(--edge); font-size: 14px; }
.pulls li.empty { display: block; color: var(--muted); text-align: center; }
@media (max-width: 760px) { .packs { grid-template-columns: 1fr; } .pack-box { max-width: 220px; } .odds { overflow-x: auto; } }

/* 3D gacha stage */
.gacha-3d { position: relative; width: 100%; height: min(60vh, 520px); border-radius: 22px; overflow: hidden;
  background: radial-gradient(60% 60% at 50% 45%, #ffffff 0%, var(--bg-2) 100%); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--hl), 0 6px 0 var(--edge); }
:root[data-theme="dark"] .gacha-3d { background: radial-gradient(60% 60% at 50% 45%, #22252e 0%, #121318 100%); }
#gacha3d { width: 100%; height: 100%; display: block; }
.g-result { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; padding: 14px 18px; border-radius: 14px;
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -14px rgba(0,0,0,.4); animation: pop .3s; min-width: 280px; }
:root[data-theme="dark"] .g-result { background: rgba(20,22,28,.88); }
.g-result b { font-size: 22px; letter-spacing: -.02em; }
.g-result p { color: var(--muted); font-size: 14px; }
.packs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pack { gap: 8px; }
.pack-name { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .gacha-3d { height: 380px; } .packs { gap: 8px; } .pack .btn { font-size: 12px; padding: 0 8px; } .pack-name { font-size: 9px; } }
.g-result { bottom: 12px; padding: 10px 14px; gap: 4px; min-width: 0; width: min(92%, 420px); }
.g-result b { font-size: 18px; } .g-result p { font-size: 12.5px; }
.g-result .rv-cta { flex-wrap: nowrap; gap: 8px; } .g-result .rv-cta .btn { height: 38px; padding: 0 14px; font-size: 13.5px; }

/* pack cards under the 3D stage */
.gacha { margin-top: 0; padding-top: 150px; }
.pack { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--hl), 0 5px 0 var(--edge); text-align: left; justify-items: stretch !important; gap: 10px !important; position: relative; overflow: hidden; }
.pack::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--pc); }
.pk-head { display: flex; align-items: center; gap: 8px; }
.pk-head b { font-size: 15px; letter-spacing: -.01em; }
.pk-dot { width: 14px; height: 14px; border-radius: 4px; background: var(--pc); box-shadow: inset 0 -2px 0 rgba(0,0,0,.2), 0 0 0 1px rgba(0,0,0,.08); }
.pk-tag { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; background: var(--bg-2); color: var(--muted); }
.pk-50 .pk-tag { background: linear-gradient(135deg, #f1f2f4, #b9bdc6); color: #23262e; }
.pk-100 .pk-tag { background: linear-gradient(135deg, #fff1c2, #f5c542); color: #6b4c00; }
.pk-best { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.pk-100 { box-shadow: inset 0 1px 0 var(--hl), 0 5px 0 var(--edge), 0 0 0 2px rgba(245,197,66,.45); }
.pack .btn { max-width: none; }
.earn-scroll { margin-top: 40px; }
@media (max-width: 760px) { .packs { grid-template-columns: 1fr !important; } .gacha { padding-top: 170px; } }

/* ===== premium buttons (replace the yellow) ===== */
.btn-primary, .btn-pack {
  background: linear-gradient(180deg, #2c2f37 0%, #15161b 55%, #0d0e11 100%) !important; color: #fff !important; border: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -2px 0 rgba(0,0,0,.4), 0 3px 0 #000, 0 12px 20px -12px rgba(17,18,23,.6) !important;
  letter-spacing: -.005em; transition: transform .12s, box-shadow .12s, filter .15s; }
.btn-primary:hover, .btn-pack:hover { transform: translateY(-1px); filter: brightness(1.12); }
.btn-primary:active, .btn-pack:active { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(0,0,0,.4), 0 1px 0 #000 !important; }
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .btn-pack { background: linear-gradient(180deg, #ffffff, #e9e7e1) !important; color: #111217 !important; box-shadow: inset 0 1px 0 #fff, 0 3px 0 #8f8e89, 0 12px 20px -12px rgba(0,0,0,.7) !important; }
.pk-100 .btn-pack { background: linear-gradient(180deg, #f8e3a1 0%, #e2b64a 45%, #b8862a 100%) !important; color: #2a1d02 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 0 rgba(0,0,0,.18), 0 3px 0 #7a5a17, 0 14px 24px -12px rgba(184,134,42,.7) !important; }

/* ===== Grail pack: noble ===== */
.pk-100 { background: radial-gradient(120% 140% at 100% 0%, #2a2620 0%, #121110 55%, #0a0908 100%) !important; color: #f3e6c4; border: 1px solid transparent !important;
  background-clip: padding-box; box-shadow: 0 0 0 1px #8a6a2a, inset 0 0 0 1px rgba(245,197,66,.25), 0 6px 0 #000, 0 24px 40px -20px rgba(184,134,42,.55) !important; }
.pk-100::before { width: 100% !important; height: 2px; bottom: auto !important; background: linear-gradient(90deg, transparent, #f5c542, transparent) !important; }
.pk-100::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,231,160,.16) 45%, transparent 60%) -200% 0 / 200% 100% no-repeat; animation: noble-sheen 4s ease-in-out infinite; }
@keyframes noble-sheen { 0%, 40% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.pk-100 .pk-head b { font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 700; letter-spacing: .02em; color: #f5dfa0; }
.pk-100 .pk-best { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: 0; background: linear-gradient(180deg, #fff1c8, #e2b64a 60%, #b8862a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pk-100 .pk-dot { background: linear-gradient(135deg, #fff1c2, #e2b64a 55%, #a8791f); }
.pk-100 .pk-tag { background: rgba(245,197,66,.14) !important; color: #f5dfa0 !important; box-shadow: inset 0 0 0 1px rgba(245,197,66,.4); }
.pk-crown { position: absolute; top: 12px; right: 14px; width: 22px; height: 16px; opacity: .9;
  background: linear-gradient(180deg, #fff1c2, #e2b64a 60%, #a8791f);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cpath d='M1 4l5.5 5L12 1l5.5 8L23 4l-2 12H3z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cpath d='M1 4l5.5 5L12 1l5.5 8L23 4l-2 12H3z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat; }
.pk-100 .pk-tag { margin-right: 30px; }

/* ===== Rarity & odds: collapsible ===== */
.odds { width: 100%; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 0 var(--edge); overflow: hidden; text-align: left; }
.odds summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 700; }
.odds summary::-webkit-details-marker { display: none; }
.odds summary em { font-style: normal; font-size: 13px; font-weight: 500; color: var(--muted); margin-left: auto; }
.odds summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .2s; margin-left: 6px; }
.odds[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.odds .odds-table { border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; margin: 0; }
.odds .note { padding: 0 18px 16px; }
@media (max-width: 600px) { .odds summary em { display: none; } }
/* My holdings: icon button right of Connect wallet */
.holdings-btn { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); box-shadow: 0 2px 0 var(--edge); transition: transform .12s; }
.holdings-btn svg { width: 20px; height: 20px; }
.holdings-btn:hover { transform: translateY(-1px); }
.holdings-btn span { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 7px; background: #111217; color: #fff; opacity: 0; pointer-events: none; transition: opacity .15s; }
.holdings-btn:hover span, .holdings-btn:focus-visible span { opacity: 1; }
body[data-view="holdings"] .holdings-btn { background: #111217; color: #fff; border-color: #111217; }
:root[data-theme="dark"] body[data-view="holdings"] .holdings-btn { background: #f3f2ee; color: #111217; }

/* ===== header icon buttons: premium ===== */
.nav-inner > .theme-classic, .holdings-btn {
  position: relative; width: 40px; height: 40px; border-radius: 12px; border: 0; color: #111217; cursor: pointer;
  background: linear-gradient(180deg, #ffffff 0%, #eeece6 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(17,18,23,.08), 0 3px 0 #d3d0c6, 0 10px 16px -10px rgba(17,18,23,.35);
  display: grid; place-items: center; transition: transform .15s, box-shadow .15s; }
.nav-inner > .theme-classic:hover, .holdings-btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(17,18,23,.1), 0 4px 0 #cfccc2, 0 14px 20px -10px rgba(17,18,23,.4); }
.nav-inner > .theme-classic:active, .holdings-btn:active { transform: translateY(2px); box-shadow: inset 0 0 0 1px rgba(17,18,23,.1), 0 1px 0 #cfccc2; }
:root[data-theme="dark"] .nav-inner > .theme-classic, :root[data-theme="dark"] .holdings-btn { color: #f3f2ee; background: linear-gradient(180deg, #2a2d35, #17181d); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(255,255,255,.06), 0 3px 0 #000, 0 10px 16px -10px rgba(0,0,0,.6); }
.holdings-btn svg, .tm svg { width: 21px; height: 21px; }
body[data-view="holdings"] .holdings-btn { color: #fff; background: linear-gradient(180deg, #2c2f37, #111217); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 3px 0 #000; }
.h-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; font: 700 10.5px/1 var(--font); font-style: normal; background: #d0211c; color: #fff; box-shadow: 0 0 0 2px var(--surface); }
/* animated sun <-> moon */
.tm .tm-core { transition: r .4s cubic-bezier(.2,1.3,.4,1); }
.tm .tm-cut { transition: cx .45s cubic-bezier(.2,1,.3,1), cy .45s cubic-bezier(.2,1,.3,1); }
.tm .tm-rays { transform-origin: 12px 12px; transition: transform .5s cubic-bezier(.2,1.2,.4,1), opacity .3s; }
:root[data-theme="dark"] .tm .tm-core { r: 8px; }
:root[data-theme="dark"] .tm .tm-cut { cx: 16.5px; cy: 7.5px; }
:root[data-theme="dark"] .tm .tm-rays { transform: rotate(90deg) scale(.4); opacity: 0; }
.tm .theme-classic .sun, .tm .moon { display: none; }

/* ===== header +30% (desktop) ===== */
@media (min-width: 961px) {
  .nav-inner { zoom: 1.1; }
  .view.section, .view.cta, .gacha { padding-top: 165px; }
  .home-pin .hero-copy { top: clamp(132px, 17.5vh, 182px); }
}

/* gate: removable bricks + brand top-left */
.gbrick.used { opacity: .22; transform: scale(.9); }
.gbrick.used:hover { opacity: .45; transform: scale(.92); }
.slot.on { cursor: pointer; }
.slot.on:hover { transform: translateY(-2px); filter: brightness(1.06); }
.gate-brand { position: absolute; top: 24px; left: 28px; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.gate-brand img { width: 32px; height: auto; display: block; }
@media (max-width: 600px) { .gate-brand { top: 16px; left: 16px; font-size: 18px; } .gate-brand img { width: 28px; } }

.gate-brand img { width: 42px; }
@media (max-width: 600px) { .gate-brand img { width: 36px; } }
