:root {
  --bg: #110e18; --side: #0b0911; --card: #18141f; --card2: #211a2d; --line: #2a2338; --line2: #3a3150;
  --text: #efe6cc; --muted: #a8a0bd; --dim: #8a82a2;
  --gold: #f0c84a; --gold-d: #a8801f; --green: #8fd16a; --purple: #a77bf3; --pink: #ef7fa0; --cyan: #6ad1e0;
  --pix: 'Silkscreen', ui-monospace, monospace;
  --mono: 'Space Mono', ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: var(--mono); font-size: 14px; line-height: 1.7; letter-spacing: .02em; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.px { image-rendering: pixelated; }
.up { text-transform: uppercase; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------------------------------------------------------------- the frame: menu left, panel right */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 26px; padding: 26px 16px 20px;
        background: var(--side); border-right: 1px dashed var(--line2); overflow-y: auto; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 12px; padding: 4px 10px; text-decoration: none; }
.logo img { width: 37px; height: 40px; image-rendering: pixelated; }
.logo-text { font-family: var(--pix); font-weight: 700; font-size: 28px; letter-spacing: .04em; color: var(--gold); text-shadow: 0 3px 0 #5a3f10; }
.menu-btn { display: none; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 6px 12px; border-radius: 10px; text-decoration: none;
         font-family: var(--pix); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.nav a img { width: 32px; height: 32px; image-rendering: pixelated; flex: none; }
.nav a:hover { background: var(--card); }
.nav a[aria-current="page"] { background: var(--card2); color: var(--gold); box-shadow: inset 0 0 0 1px var(--line2); }
.nav-pill { margin-left: auto; white-space: nowrap; font-style: normal; font-size: 10px; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; background: var(--gold); color: #1a1206; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding: 0 10px; }
.socials { display: flex; gap: 10px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--card); border: 1px solid var(--line2); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.fine { margin: 0; font-size: 11px; line-height: 1.6; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }

.main { min-width: 0; padding: 20px 32px 48px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1280px; margin-bottom: 20px; }
.where { margin: 0; font-family: var(--pix); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 10px; }
.where::before { content: ''; width: 8px; height: 8px; background: var(--gold); }
.pill-btn { font-family: var(--pix); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); text-decoration: none;
            padding: 11px 20px; border-radius: 999px; background: var(--card); border: 1px solid var(--line2); }
.pill-btn:hover { border-color: var(--purple); }

.panel { max-width: 1280px; display: flex; flex-direction: column; gap: 26px; }
.js .panel:not(.on) { display: none; }
.js .panel.on { animation: rise .22s ease-out; }
@keyframes rise { from { transform: translateY(6px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .panel.on { animation: none; } }

/* ---------------------------------------------------------------- type, buttons, tags */
.ph { display: flex; flex-direction: column; gap: 10px; }
.eyebrow { margin: 0; font-family: var(--pix); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.h1 { margin: 0; font-family: var(--pix); font-weight: 400; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.15; letter-spacing: .02em; text-transform: uppercase; text-wrap: balance; }
.h2 { margin: 0; font-family: var(--pix); font-weight: 400; font-size: 19px; line-height: 1.25; letter-spacing: .04em; text-transform: uppercase; }
.lead { margin: 0; max-width: 72ch; text-transform: uppercase; line-height: 1.85; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 0; cursor: pointer;
       font-family: var(--pix); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: transform .08s, box-shadow .08s, border-color .15s, color .15s; }
.btn-gold { background: var(--gold); color: #1a1206; box-shadow: 0 4px 0 var(--gold-d); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--gold-d); }
.btn-gold:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--gold-d); }
.btn-gold[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 12px; }
.tag { display: inline-block; align-self: flex-start; padding: 7px 16px; transform: skewX(-12deg); box-shadow: 4px 4px 0 #000;
       font-family: var(--mono); font-style: italic; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.tag > span { display: inline-block; transform: skewX(12deg); }
.tag-gold { background: var(--gold); color: #1a1206; }
.tag-purple { background: var(--purple); color: #140c22; }
.tag-green { background: var(--green); color: #0f1a08; }
.tag-pink { background: var(--pink); color: #22080f; }
.badge { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; padding: 4px 9px; border-radius: 6px; border: 1px solid currentColor;
         font-family: var(--pix); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.badge::before { content: ''; width: 7px; height: 7px; background: currentColor; }
.badge.live { color: var(--green); }
.badge.soon { color: var(--gold); }
.badge.test { color: var(--cyan); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 5px 11px; border-radius: 8px; background: var(--card2); border: 1px solid var(--line); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------------------------------------------------------------- home */
.home-top { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.hero { flex: 1 1 560px; min-width: 0; margin: 0; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); background: #0d0a14; }
.hero img { display: block; width: 100%; height: auto; }
.hero figcaption { position: absolute; right: 0; bottom: 0; padding: 10px 18px; background: var(--side); border-top-left-radius: 12px;
                   font-style: italic; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.shuffle-card { flex: 1 1 300px; max-width: 340px; display: flex; flex-direction: column; gap: 10px; padding: 18px 22px; background: var(--card); border: 1px solid var(--line2); border-radius: 14px; }
.count { margin: 0; font-family: var(--pix); font-size: 32px; line-height: 1; }
.count small { margin-left: 6px; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.meter { height: 14px; padding: 2px; background: #0b0911; border: 1px solid var(--line2); border-radius: 4px; }
.meter > span { display: block; height: 100%; min-width: 4px; background: repeating-linear-gradient(90deg, var(--gold) 0 6px, var(--gold-d) 6px 8px); }
.peek { display: flex; justify-content: center; gap: 14px; }
.peek img { width: 128px; height: 128px; border-radius: 10px; image-rendering: pixelated; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.price { margin: 0; font-family: var(--pix); font-size: 30px; line-height: 1; color: var(--gold); }
.price small { font-size: 13px; letter-spacing: .08em; white-space: nowrap; }
.about { display: flex; flex-direction: column; gap: 10px; }
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.qt { display: flex; align-items: center; gap: 16px; padding: 16px 18px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s; }
.qt:hover { border-color: var(--gold); }
.qt img { width: 64px; height: 64px; image-rendering: pixelated; flex: none; }
.qt b { display: block; font-family: var(--pix); font-weight: 400; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.qt span { display: block; font-size: 12px; line-height: 1.6; color: var(--muted); text-transform: uppercase; }

/* ---------------------------------------------------------------- shuffle */
.sh-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.sh-main { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 24px; }
.sh-vault { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.sh-stats { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; }
.ladder { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ladder li { display: flex; flex-direction: column; gap: 2px; padding: 8px 6px; border-radius: 8px; background: var(--card2); border: 1px solid var(--line); text-align: center; }
.ladder b { font-family: var(--pix); font-weight: 400; font-size: 15px; }
.ladder span { font-size: 10px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; font-variant-numeric: tabular-nums; }
.ladder li.now { background: var(--gold); border-color: var(--gold); color: #1a1206; }
.ladder li.now span { color: #3d2c06; }
.ladder li.past { opacity: .4; }
.reveal { display: flex; align-items: center; gap: 18px; padding: 16px; border-radius: 12px; background: rgba(240, 200, 74, .1); border: 1px solid var(--gold); }
.reveal img { width: 128px; height: 128px; border-radius: 10px; image-rendering: pixelated; flex: none; }
.reveal > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.status.err { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--gold); background: rgba(240, 200, 74, .12); color: var(--gold); font-size: 13px; }
.status { margin: 0; min-height: 1.7em; font-size: 12px; text-transform: uppercase; color: var(--muted); }
.vault-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; counter-increment: s; }
.steps li::before { content: counter(s); font-family: var(--pix); font-size: 28px; line-height: 1; color: var(--gold); }
.steps b { font-family: var(--pix); font-weight: 400; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.steps span { font-size: 12px; line-height: 1.7; color: var(--muted); text-transform: uppercase; }
.steps a { color: var(--gold); }

.pick-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: 24px; border-color: var(--gold-d); }
.pick-card .ph { flex: 1 1 420px; min-width: 0; }

/* ---------------------------------------------------------------- gallery */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button { min-height: 44px; padding: 0 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--line2); cursor: pointer;
               font-family: var(--pix); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.tabs button i { font-style: normal; color: var(--muted); margin-left: 6px; }
.tabs button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: #1a1206; }
.tabs button[aria-selected="true"] i { color: #3d2c06; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tools input[type="search"], .tools select { min-height: 40px; padding: 0 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--line2); color: var(--text);
                                            font-family: var(--mono); font-size: 12px; text-transform: uppercase; max-width: 100%; }
.tools input[type="search"] { width: 170px; }
.tools select { width: 138px; }
.tools select.set { border-color: var(--gold); color: var(--gold); }
.chk { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line2); background: var(--card);
       font-size: 12px; text-transform: uppercase; cursor: pointer; }
.chk input { accent-color: var(--gold); }
.found { margin-left: auto; font-size: 12px; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.tile img { display: block; width: 100%; height: auto; aspect-ratio: 1; image-rendering: pixelated; border-radius: 10px; background: var(--card); border: 1px solid var(--line); transition: border-color .12s, transform .12s; }
.tile:hover img { border-color: var(--gold); transform: translateY(-2px); }
.tile span { display: flex; justify-content: space-between; gap: 6px; font-family: var(--pix); font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.tile .v { color: var(--gold); }
.pals { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.pal { display: flex; flex-direction: column; gap: 10px; padding: 14px; text-align: left; cursor: pointer; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.pal:hover { border-color: var(--gold); }
.pal img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; background: #f3ead2; }
.pal b { font-family: var(--pix); font-weight: 400; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.pal span { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.empty { padding: 40px 0; text-align: center; text-transform: uppercase; color: var(--muted); }

/* the NFT card (a dialog: Esc and the close button both close it) */
.nft { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line2); border-radius: 16px; background: var(--card); color: var(--text); }
.nft::backdrop { background: rgba(6, 4, 10, .78); }
.nft-body { display: flex; flex-wrap: wrap; gap: 24px; padding: 24px; }
.nft-art { flex: 0 1 360px; min-width: 0; }
.nft-art img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; }
.nft-info { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.traits { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.traits div { padding: 8px 10px; border-radius: 8px; background: var(--card2); border: 1px solid var(--line); }
.traits dt { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.traits dd { margin: 0; font-size: 12px; text-transform: uppercase; overflow-wrap: anywhere; }
.vault-note { margin: 0; padding: 10px 12px; border-radius: 8px; background: rgba(240, 200, 74, .12); border: 1px solid var(--gold); color: var(--gold); font-size: 12px; text-transform: uppercase; }
.x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card2); cursor: pointer; display: grid; place-items: center; }
.x svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.5; fill: none; }

/* ---------------------------------------------------------------- profile */
.pf-connect { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; }
.pf-body { display: flex; flex-direction: column; gap: 22px; }
.pf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pf-stats .card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; }
.pf-stats .k { font-family: var(--pix); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pf-stats b { font-family: var(--pix); font-weight: 400; font-size: 24px; line-height: 1.15; color: var(--gold); overflow-wrap: anywhere; }
.pf-stats span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rec { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.rec li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 5px; border-bottom: 1px dashed var(--line); font-size: 12px; text-transform: uppercase; color: var(--muted); }
.rec li b { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.tile .k { color: var(--green); }

/* ---------------------------------------------------------------- games, story, compost, history */
.feature { display: flex; flex-wrap: wrap; overflow: hidden; }
.feature > img { flex: 1 1 480px; min-width: 0; width: 100%; height: auto; display: block; }
.feature > div { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.game { display: flex; flex-direction: column; overflow: hidden; }
.game img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 7; object-fit: cover; border-bottom: 1px solid var(--line); }
.game div { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.game p, .feature p { margin: 0; font-size: 13px; text-transform: uppercase; line-height: 1.75; color: var(--muted); }
.story { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.story figure { flex: 1 1 460px; min-width: 0; margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); }
.story figure img { display: block; width: 100%; height: auto; }
.story > div { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.list li { display: flex; gap: 12px; font-size: 13px; text-transform: uppercase; }
.list li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 8px; background: var(--gold); }
.coin-head { display: flex; align-items: center; gap: 20px; }
.coin-head img { width: 96px; height: 96px; image-rendering: pixelated; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.three .card { display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.three p { margin: 0; font-size: 13px; line-height: 1.75; color: var(--muted); text-transform: uppercase; }
.asa { font-variant-numeric: tabular-nums; }
.timeline { margin: 0; padding: 0 0 0 30px; list-style: none; position: relative; display: flex; flex-direction: column; gap: 30px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line2); }
.timeline > li { position: relative; display: flex; flex-direction: column; gap: 12px; }
.timeline > li::before { content: ''; position: absolute; left: -30px; top: 8px; width: 12px; height: 12px; border: 2px solid var(--text); border-radius: 50%; background: var(--bg); }
.timeline p { margin: 0; max-width: 78ch; text-transform: uppercase; line-height: 1.85; }

/* ---------------------------------------------------------------- phones: the menu folds into a top bar */
@media (max-width: 1100px) {
  .quick, .games, .three, .steps { grid-template-columns: minmax(0, 1fr); }
  .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .app { display: block; }
  .side { position: sticky; top: 0; z-index: 20; height: auto; max-height: 100vh; gap: 0; padding: 10px 16px; border-right: 0; border-bottom: 1px dashed var(--line2); }
  .logo { padding: 4px 0; }
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line2); cursor: pointer;
              font-family: var(--pix); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
  .nav, .side-foot { display: none; }
  .side.open .nav { display: flex; padding: 12px 0 6px; }
  .side.open .side-foot { display: flex; padding: 8px 0 14px; }
  .main { padding: 16px 16px 40px; }
  .topbar { display: none; }
  .shuffle-card { max-width: none; }
  .found { margin-left: 0; width: 100%; }
  .vault-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
}
