:root {
  color-scheme: dark;
  --bg: #111112;
  --pixel: #77747f;
  --light: #eeedf0;
  --muted: #55545b;
  --soft: #a5a3ad;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body { overflow: hidden; background: var(--bg); color: var(--light); }
.scene { position: relative; width: 100%; height: 100vh; height: 100dvh; min-height: 420px; overflow: hidden; background: var(--bg); }
.brand { position: absolute; top: 23.5%; left: 50%; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); text-align: center; user-select: none; }
.brand-icon { width: 48px; height: 48px; margin-bottom: 10px; object-fit: contain; image-rendering: pixelated; mix-blend-mode: screen; }
.brand h1 { margin: 0; font-size: 52px; line-height: .95; font-weight: 700; letter-spacing: -3px; }
.tagline { margin: 34px 0 0; color: #5b5a60; font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.instruction { position: absolute; top: 66.3%; left: 50%; z-index: 2; margin: 0; transform: translate(-50%, -50%); color: #55545b; font-size: 11px; font-weight: 700; letter-spacing: .13em; white-space: nowrap; user-select: none; pointer-events: none; }
.field { position: absolute; bottom: 0; left: 0; width: 100%; height: 31vh; height: clamp(190px, 31vh, 235px); display: block; outline: none; cursor: pointer; image-rendering: pixelated; touch-action: manipulation; }
.field:focus-visible { outline: 1px dashed #a19eaa; outline-offset: -5px; }
@media (hover: hover) and (pointer: fine) { .field { cursor: none; } }
.shade { position: absolute; inset: 0; z-index: 5; background: rgba(7, 7, 9, .75); backdrop-filter: blur(2px); }
.reveal[hidden], .shade[hidden] { display: none; }
.reveal { position: absolute; z-index: 6; top: 50%; left: 50%; width: min(432px, calc(100% - 32px)); padding: 22px 15px 17px; transform: translate(-50%, -50%); border: 1px solid #292929; border-radius: 14px; background: #242424; text-align: left; box-shadow: 0 18px 65px #0009; animation: appear .22s ease-out; }
.popup-icon { width: 56px; height: 56px; margin: 0 0 14px; display: grid; place-items: center; overflow: hidden; border: 1px solid #f26a7e; border-radius: 50%; background: #101012; }
.popup-icon img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.reveal h2 { margin: 0 0 6px; color: #efedf1; font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.25px; }
.popup-copy { margin: 0 0 16px; color: #aaa9ad; font-size: 14px; line-height: 1.5; }
.cat-name { color: #dedde1; font-weight: 600; }
.ca-row { display: flex; width: 100%; height: 48px; align-items: center; gap: 4px; padding: 5px 6px 5px 11px; border-radius: 11px; background: #191919; }
.ca-row input { min-width: 0; flex: 1; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #e7e5ec; font: 600 11px Arial, Helvetica, sans-serif; }
.ca-row input::placeholder { color: #aaa9ad; opacity: 1; }
.ca-row button { height: 34px; flex: 0 0 auto; padding: 0 12px; border: 0; border-radius: 9px; background: #414141; color: #eeedf0; font: 700 12px Arial, Helvetica, sans-serif; cursor: pointer; }
.ca-row button:hover:not(:disabled) { background: #505050; }
.ca-row button:disabled { color: #aaa9ad; cursor: default; }
.copy-status { min-height: 0; margin: 0; color: #a8a5b1; font-size: 10px; }
.trade-button { display: block; width: 100%; min-height: 44px; margin-top: 12px; border: 0; border-radius: 14px; background: #eeece8; color: #161616; font: 700 13px Arial, Helvetica, sans-serif; letter-spacing: .09em; cursor: pointer; }
.trade-button:hover:not(:disabled) { background: #fff; }
.trade-button:disabled { opacity: .62; cursor: default; }
.disclaimer { margin: 14px 0 0; color: #8b898d; font-size: 12px; line-height: 1.5; }
@keyframes appear { from { opacity: 0; transform: translate(-50%, -47%); } to { opacity: 1; transform: translate(-50%, -50%); } }

@media (max-width: 600px) {
  .brand { top: 20%; }
  .brand h1 { font-size: 43px; letter-spacing: -2.5px; }
  .tagline { margin-top: 25px; font-size: 12px; }
  .instruction { top: 61%; font-size: 9px; }
  .field { height: 30vh; height: clamp(185px, 30vh, 220px); }
  .reveal { padding: 20px 15px 16px; }
}

@media (max-height: 520px) {
  .brand { top: 9%; }
  .brand-icon { width: 36px; height: 36px; margin-bottom: 5px; }
  .brand h1 { font-size: 38px; }
  .tagline { margin-top: 12px; }
  .instruction { top: 55%; }
  .field { height: 190px; }
}
