@font-face { font-family: "IBM Plex Sans"; font-weight: 100 700; font-display: swap; src: url("/assets/fonts/ibm-plex-sans.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-condensed-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Runic"; font-weight: 400; font-display: swap; src: url("/assets/fonts/noto-sans-runic-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2"); }

:root {
  --bg: #1c1c1c;
  --ink: #e9e9e9;
  --muted: #a9a9a9;
  --gold: #eaba49;
  --yellow: #f0c14e;
  --on-yellow: #1b1b1b;
  --navy: #0c1428;
  --tile: 148px;
  --cells: 4;
  --top-h: 229px;
  --col: 368px;
  --drift: 22;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 14px/1.5 "IBM Plex Sans Condensed", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
html.is-locked { overflow: hidden; }
img { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--gold); color: var(--on-yellow); padding: 8px 12px; }
.skip:focus { left: 8px; }

.top { position: relative; z-index: 5; height: var(--top-h); padding: 32px 32px 0; }
.top__menu { display: none; }
.top__texts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(28px, 3.7vw, 64px); align-items: start; }
.top__tagline, .top__label, .top__link, .tile__label, .expand__label, .expand__name, .expand__market, .expand__mk, .manifesto__kicker {
  font-family: "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif; font-weight: 500; font-size: 12px; line-height: 1.4; letter-spacing: .72px; text-transform: uppercase;
}
.top__tagline, .top__label, .top__para { margin: 0; text-box: trim-both cap alphabetic; }
.top__tagline { max-width: var(--col); margin-bottom: 24px; color: #fffaf0; }
.top__logo-big { width: 201px; height: 36px; }
.top__logo-link { display: block; width: fit-content; }
.top__markets { display: flex; align-items: center; gap: 24px; margin-top: 24px; }
.top__markets a { display: block; }
.top__markets img { height: 24px; width: auto; image-rendering: pixelated; }
.top__label { margin-bottom: 24px; color: rgba(255, 250, 240, .7); }
.top__para { font-size: 14px; line-height: 20px; color: #fffaf0; text-wrap: pretty; }
.top__tagline, .top__label { text-wrap: balance; }
.top__para em { font-style: normal; color: var(--gold); }
.top__more, .top__person { color: var(--gold); text-decoration: none; }
.top__more:hover, .top__more:focus-visible, .top__person:hover, .top__person:focus-visible { color: #fff; }
.top__link { color: rgba(255, 250, 240, .6); padding: 12px 0; transition: color .15s ease; }
.top__link:hover, .top__link:focus-visible, .top__link[aria-pressed="true"] { color: #fffaf0; }

.stage { position: relative; height: calc(100dvh - var(--top-h)); height: calc(min(100dvh, var(--app-h, 100dvh)) - var(--top-h)); }
.gallery { position: relative; height: 100%; overflow: hidden; background: var(--bg); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.gallery__strip {
  position: absolute; left: 0; top: 0; display: grid; grid-auto-flow: column;
  grid-template-rows: repeat(var(--rows, 6), var(--tile)); grid-auto-columns: var(--tile);
  will-change: transform; contain: layout paint;
}
.gallery.is-dragging { cursor: grabbing; }
.tile { position: relative; width: var(--tile); height: var(--tile); overflow: hidden; background: #2a2a2a; }
.tile img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tile__hover {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 12px;
  background: rgba(234, 186, 73, .62); opacity: 0; transition: opacity .18s ease;
}
@media (hover: hover) { .tile:hover .tile__hover, .tile:focus-visible .tile__hover { opacity: 1; } }
.tile:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.tile__label {
  color: var(--on-yellow); white-space: nowrap; text-box: trim-both cap alphabetic;
  font-size: min(12px, calc((var(--tile, 148px) - 24px) / 9.4));
}
.tile__label[data-marks="1"] { font-size: min(12px, calc((var(--tile, 148px) - 24px) / 11)); }
.tile__label[data-marks="2"] { font-size: min(12px, calc((var(--tile, 148px) - 24px) / 12.6)); }
.tile__label, .expand__label { display: inline-flex; align-items: center; }
.coins { display: inline-flex; gap: .3em; margin-left: .5em; }
.coin, .tile .coin { width: 1.3em; height: 1.3em; display: block; margin: -.15em 0; object-fit: contain; border-radius: 50%; }
.tile .coin { background: var(--on-yellow); box-shadow: 0 0 0 1.5px var(--on-yellow); }


.gallery__dark { position: absolute; inset: 0; z-index: 3; background: rgba(0, 0, 0, .72); opacity: 0; transition: opacity .28s ease; }
.gallery__dark.is-on { opacity: 1; }
.expand {
  position: absolute; z-index: 4; margin: 0; width: calc(var(--tile) * var(--cells)); height: calc(var(--tile) * var(--cells));
  background: #111; overflow: hidden; transform-origin: 0 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.expand.is-opening { transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .32s ease; }
.expand__img { width: 100%; height: 100%; object-fit: cover; }
.expand__bar { position: absolute; left: 0; right: 0; top: 0; height: 64px; display: flex; align-items: center; gap: 8px; padding: 16px; z-index: 1; }
.expand__label, .expand__name, .expand__market { padding: 12px 16px; text-box: trim-both cap alphabetic; background: rgba(20, 20, 20, .88); color: #fffaf0; text-decoration: none; }
.expand__name { color: var(--gold); }
.expand__name:empty { display: none; }
.expand__label { border: 0; cursor: pointer; }
.expand__label:hover, .expand__label[aria-expanded="true"], .expand__market:hover, .expand__mk[href]:hover { background: var(--gold); color: var(--on-yellow); }
.expand__spec { position: relative; }
.expand__markets { position: absolute; left: 0; top: calc(100% + 8px); min-width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.expand__label:hover .coin, .expand__label[aria-expanded="true"] .coin, .expand__mk[href]:hover .coin { background: var(--on-yellow); box-shadow: 0 0 0 1.5px var(--on-yellow); }
.expand__markets[hidden] { display: none; }
.expand__mk { display: inline-flex; align-items: center; gap: .6em; padding: 12px 16px; text-box: trim-both cap alphabetic; white-space: nowrap; background: rgba(20, 20, 20, .88); color: #fffaf0; text-decoration: none; }
.expand__market:not([hidden]) { display: inline-flex; align-items: center; height: 40.8px; box-sizing: border-box; padding: 0 16px; }
.expand__close, .manifesto__close { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; background: rgba(20, 20, 20, .88); color: #fff; }
.expand__close { background: rgba(0, 0, 0, .08); color: rgba(27, 27, 27, .7); }
.expand__close path { stroke-width: 1.8; }
.expand__close:hover { background: rgba(0, 0, 0, .16); color: var(--on-yellow); }

.veil { position: fixed; inset: 0; z-index: 8; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .28s ease; }
.veil.is-on { opacity: 1; }
.manifesto {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 9; width: 480px; padding: 32px; overflow-y: auto;
  background: var(--yellow); color: var(--on-yellow); transform: translateX(100%); transition: transform .34s cubic-bezier(.2, .8, .2, 1);
}
.manifesto.is-on { transform: none; }
.manifesto__head { display: flex; align-items: center; height: 32px; }
.manifesto__kicker { text-box: trim-both cap alphabetic; }
.manifesto__close { background: rgba(0, 0, 0, .08); color: var(--on-yellow); }
.manifesto__close:hover { background: var(--on-yellow); color: var(--yellow); }
.manifesto__headline { margin: 32px 0 32px; font-size: 26px; line-height: 1.16; font-weight: 600; letter-spacing: -.01em; }
.manifesto__foot { width: 100%; height: auto; background: var(--navy); image-rendering: pixelated; }
.manifesto__body { margin-top: 24px; font-size: 14px; line-height: 1.55; }
.manifesto__body p { margin: 0 0 18px; }

@media (max-width: 1079px) {
  .top { padding: 0; }
  .top__menu { display: flex; align-items: center; height: 40px; padding: 0 24px; }
  .top__logo img { width: 134px; height: 24px; }
  .top__nav { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; text-align: center; }
  .top__texts { display: block; padding: 32px 24px 0; }
  .top__col { display: none; max-width: 320px; }
  .top__col.is-shown { display: block; }
  .top__logo-big, .top__markets { display: none; }
  .top__tagline { margin-bottom: 0; }
  :root { --cells: 3; }
  .top__menu { background: #292726; }
  .top__tagline { text-wrap: wrap; }
}
@media (max-width: 639px) {
  :root { --tile: 112px; --top-h: 202px; }
  .top__menu { height: 44px; padding: 0; }
  .top__logo { display: none; }
  .top__nav { grid-auto-columns: 1fr; }
  .top__texts { padding: 36.5px 24px 0; height: 158px; }
  .top__col { max-width: none; }
  .top__col--intro.is-shown .top__logo-big { display: block; margin-bottom: 24px; width: 201px; height: 36px; }
  .top__col--intro.is-shown { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
  :root { --bg: #1f1e1d; }
  .gallery__dark { background: rgba(31, 30, 29, .5); }
  .expand { box-shadow: none; }
  .expand.is-sheet .expand__img { width: auto; height: 100%; aspect-ratio: 1; margin: 0 auto; }
  .top__tagline { font-size: min(12px, calc((100vw - 48px) * .0352)); letter-spacing: .06em; }
  .expand__label, .expand__pill, .expand__mk { background: var(--bg); }
  .sheet-dim { position: fixed; left: 0; right: 0; top: 44px; bottom: 0; z-index: 6; background: rgba(31, 30, 29, .5); opacity: 0; transition: opacity .28s ease; }
  .sheet-dim.is-on { opacity: 1; }
  .sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 7; height: var(--sheet-h, 100vw); overflow-y: auto;
    padding: 80px 32px 32px; background: var(--bg); color: #fffaf0;
    transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
  }
  .sheet.is-on { transform: none; }
  .sheet__close { position: absolute; top: 16px; right: 32px; width: 32px; height: 32px; display: grid; place-items: center; background: #2a2928; color: rgba(255, 250, 240, .7); }
  .sheet__close:hover, .sheet__close:focus-visible { background: var(--gold); color: var(--on-yellow); }
  .expand__bar { height: auto; align-items: flex-start; padding: 16px; }
  .expand .expand__label, .expand .expand__pill { height: 32px; padding: 0 16px; box-sizing: border-box; display: inline-flex; align-items: center; background: var(--bg); color: #fffaf0; }
  .expand .expand__pill { font-family: "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif; font-weight: 500; font-size: 12px; letter-spacing: .72px; text-box: trim-both cap alphabetic; }
  .expand .expand__label:hover, .expand .expand__label[aria-expanded="true"], .expand .expand__pill:hover { background: var(--gold); color: var(--on-yellow); }
  .expand__label .coin { width: 14px; height: 14px; margin: 0; }
  .expand__close svg, .sheet__close svg { width: 12px; height: 12px; }
  .expand__close path, .sheet__close path { stroke-width: 2.2; }
  .sheet .top__para { text-wrap: wrap; }
  .manifesto { width: 100%; padding: 24px 16px; }
  .manifesto__headline { font-size: 24px; }
}
.sheet, .sheet-dim { display: none; }
@media (max-width: 639px) { .sheet:not([hidden]), .sheet-dim:not([hidden]) { display: block; } }
@media (prefers-reduced-motion: reduce) {
  .tile__hover, .gallery__dark, .expand, .manifesto, .veil, .sheet, .sheet-dim { transition: none; }
}

.expand.is-upscaled .expand__img { image-rendering: pixelated; }

.expand__pill { display: inline-flex; align-items: center; height: 40.8px; box-sizing: border-box; padding: 0 16px; background: rgba(20, 20, 20, .88); color: var(--ink); font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.expand__pill:hover { background: var(--gold); color: var(--on-yellow); }
.top__holder { display: block; margin: 10px 0 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--gold); text-decoration: none; }
.top__holder:hover, .top__holder:focus-visible { color: #fff; }
.top__col--intro .top__holder { order: 3; }
.holder { position: fixed; top: 0; right: 0; bottom: 0; z-index: 9; width: 480px; padding: 32px; overflow-y: auto; background: var(--bg); color: var(--ink); border-left: 1px solid #2a2a2a; transform: translateX(100%); transition: transform .34s cubic-bezier(.2, .8, .2, 1); }
.holder.is-on { transform: none; }
.holder__close { background: #2a2a2a; color: var(--ink); }
.holder__close:hover { background: var(--gold); color: var(--on-yellow); }
.holder__why { margin: 24px 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.holder__form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.holder__input { width: 100%; padding: 12px; border: 1px solid #3a3a3a; background: #111; color: var(--ink); font: 500 13px/1.3 "IBM Plex Mono", ui-monospace, monospace; }
.holder__input:focus { outline: 2px solid var(--gold); outline-offset: 0; }
.btn { padding: 12px 16px; background: var(--gold); color: var(--on-yellow); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.btn:hover { background: #fff; }
.holder__wallets { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.holder__wallets[hidden] { display: none; }
.holder__wallet { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 999px; background: #2a2a2a; color: var(--ink); font: 500 12px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .02em; }
.holder__wallet-x { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #3a3a3a; color: var(--ink); }
.holder__wallet-x:hover, .holder__wallet-x:focus-visible { background: var(--gold); color: var(--on-yellow); }
.holder__note { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.holder__note:empty { display: none; }
.holder__result { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 16px; }
.holder__result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; margin-top: 20px; }
.reveal { display: grid; gap: 6px; }
.reveal__stage { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: #173117; padding: 0; }
.reveal__art { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; transform: translateY(5%) scale(.93); transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal__stage.is-out .reveal__art { transform: none; }
.reveal__hedge { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.reveal__stage.is-rustling .reveal__hedge { animation: rustle .42s steps(1) 1; }
@keyframes rustle { 0% { transform: translateX(0); } 20% { transform: translateX(2%); } 40% { transform: translateX(-2%); } 60% { transform: translateX(1.5%); } 80% { transform: translateX(-1%); } 100% { transform: none; } }
.reveal__num { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.reveal__name { min-height: 1.4em; font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--gold); }
.reveal__name.is-withheld { color: var(--muted); font-weight: 400; font-size: 13px; display: flex; align-items: baseline; gap: 6px; }
.reveal__runes { font-family: "Noto Sans Runic", serif; font-size: 16px; letter-spacing: .08em; color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .reveal__art { transform: none; transition: none; } }
.holder__hit { display: block; text-align: left; }
.holder__hit img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.holder__hit span { display: block; margin-top: 4px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.holder__hit strong { display: block; font-size: 12px; font-weight: 600; color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 639px) {
  .holder { width: 100%; padding: 24px 16px; }
  .holder__form { grid-template-columns: 1fr; }
}


.lost { display: grid; place-items: center; min-height: 100%; }
.lost__box { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 24px; text-align: center; }
.lost__text { margin: 0; color: var(--ink); }
.lost__home { color: var(--gold); }
