@font-face {
  font-family: "Unbounded";
  src: url("../assets/fonts/unbounded-variable.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("../assets/fonts/sora-variable.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/ibm-plex-mono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/ibm-plex-mono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/ibm-plex-mono-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #07050a;
  --velvet: #14091c;
  --pad: #1c0d28;
  --purple: #321445;
  --pink: #ff7ae6;
  --pink-hot: #ff4ec8;
  --pink-soft: #f6c2ff;
  --pink-deep: #c1249a;
  --gold: #e0c075;
  --gold-dim: #a8894a;
  --cream: #f3ead6;
  --ink: #160e1c;
  --platinum: #d9d4e8;
  --mist: rgba(243, 234, 214, 0.72);
  --glass: rgba(18, 8, 26, 0.78);
  --line: rgba(224, 192, 117, 0.32);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Sora", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --topbar: 52px;
  --dock: 62px;
  --safe-x: max(14px, env(safe-area-inset-left));
  --home-angle: 90deg;
  --ring-rot: 0deg;
  --orbit-r: 128px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  height: 100%;
  height: 100dvh;
  background: var(--void);
  color: var(--cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
button, a { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
p, h1, h2, h3, dl, dd, dt, figure, blockquote { margin: 0; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 80;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ========== LOADER ========== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(80, 16, 70, 0.45), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(20, 8, 30, 1), var(--void) 70%);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px 30px #000;
  pointer-events: none;
}
.loader-stage {
  position: relative;
  width: min(420px, calc(100% - 32px));
  text-align: center;
}
.loader-dop {
  position: relative;
  width: min(240px, 62vw);
  height: min(240px, 62vw);
  margin: 0 auto 18px;
}
.loader-halo {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 230, 0.28), transparent 68%);
  filter: blur(8px);
  animation: pulseGlow 1.8s ease-in-out infinite;
}
.loader-diamond {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(255, 78, 200, 0.55));
  animation: dopFloat 2.4s ease-in-out infinite;
}
.loader-cut {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}
.cut-edge {
  stroke: rgba(255, 200, 245, 0.15);
  stroke-width: 1.4;
}
.cut-edge.is-cut {
  stroke: #ffe8ff;
  stroke-width: 2;
  filter: drop-shadow(0 0 6px #ff4ec8);
}
.cut-beam {
  stroke: #fff;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px #ff7ae6) drop-shadow(0 0 16px #ff4ec8);
  transform-origin: 100px 100px;
  opacity: 0.9;
}
.loader-brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.22em;
  font-size: 13px;
  color: var(--pink-soft);
}
.loader-kicker, .loader-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 8px;
  min-height: 1.2em;
}
.loader-count { color: var(--mist); margin-top: 10px; }
.loader-bar {
  width: min(240px, 70%);
  height: 3px;
  margin: 14px auto 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pink-deep), var(--pink), var(--gold));
  box-shadow: 0 0 10px var(--pink);
  transition: width 0.35s var(--ease);
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes dopFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ========== APP ========== */
.app {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.04);
  filter: blur(8px);
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease), filter 0.7s var(--ease);
}
.app.is-ready {
  opacity: 1;
  transform: none;
  filter: none;
}
.app.is-booting { pointer-events: none; }

.room { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.room-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(90, 20, 80, 0.35), transparent 42%),
    radial-gradient(ellipse at 20% 100%, rgba(40, 10, 50, 0.5), transparent 40%),
    linear-gradient(180deg, #120818 0%, #0a0610 100%);
}
.room-velvet {
  position: absolute;
  inset: 0;
  background-image: url("../assets/img/textures/velvet.png");
  background-size: 280px 280px;
  opacity: 0.28;
  mix-blend-mode: overlay;
}
.room-lamp {
  position: absolute;
  left: 50%;
  top: 6%;
  width: 70%;
  height: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 200, 160, 0.16), transparent 65%);
  pointer-events: none;
}
.room-dust span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.35;
  animation: dustDrift linear infinite;
}
@keyframes dustDrift {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  15% { opacity: 0.4; }
  100% { transform: translateY(-40vh) translateX(12px); opacity: 0; }
}
.rivet {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f0e0b0, #6a5420 55%, #2a1c08);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.2);
}
.rivet-tl { top: 10px; left: 10px; }
.rivet-tr { top: 10px; right: 10px; }
.rivet-bl { bottom: 10px; left: 10px; }
.rivet-br { bottom: 10px; right: 10px; }

/* ========== TOPBAR ========== */
.topbar {
  position: relative;
  z-index: 8;
  height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--safe-x);
  padding-right: max(14px, env(safe-area-inset-right));
  gap: 10px;
  border-bottom: 1px solid rgba(224, 192, 117, 0.16);
  background: linear-gradient(180deg, rgba(10,6,16,0.7), rgba(10,6,16,0.2));
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-mark { width: 28px; height: 28px; object-fit: contain; flex: 0 0 auto; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.2em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.topbar-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.chain-chip, .autoplay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--platinum);
  background: rgba(255,255,255,0.03);
}
.chain-chip img { width: 14px; height: 11px; }
.autoplay-btn { color: var(--gold); }
.autoplay-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #5a4a30;
  box-shadow: 0 0 0 0 transparent;
}
.autoplay-btn.is-on .autoplay-dot {
  background: #5dff9a;
  box-shadow: 0 0 8px #5dff9a;
  animation: pulseGlow 1.4s ease-in-out infinite;
}

/* ========== STAGE ========== */
.stage {
  position: relative;
  z-index: 2;
  height: calc(100dvh - var(--topbar) - var(--dock));
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.table-col {
  flex: 0 0 auto;
  height: 40%;
  min-height: 190px;
  max-height: 46%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.table-board {
  position: relative;
  width: min(360px, 88%);
  height: 100%;
  display: grid;
  place-items: center;
  transform: perspective(900px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  transform-style: preserve-3d;
  transition: transform 0.15s linear;
}
.pad-shadow {
  position: absolute;
  width: 78%;
  height: 28%;
  bottom: 6%;
  left: 11%;
  background: radial-gradient(ellipse, rgba(0,0,0,0.7), transparent 70%);
  filter: blur(8px);
}
.velvet-pad {
  position: relative;
  width: min(300px, 78vw);
  height: min(300px, 78vw, 100%);
  aspect-ratio: 1;
  max-height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 140, 200, 0.16), transparent 42%),
    radial-gradient(circle at 50% 50%, #3a184c 0%, #1a0b26 58%, #0c0712 100%);
  box-shadow:
    inset 0 0 0 3px rgba(180, 140, 70, 0.35),
    inset 0 0 0 7px rgba(40, 20, 10, 0.6),
    inset 0 20px 40px rgba(255, 200, 180, 0.08),
    0 20px 40px rgba(0,0,0,0.5);
  overflow: hidden;
  touch-action: none;
}
.pad-grain {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image: url("../assets/img/textures/velvet.png");
  background-size: 180px;
  opacity: 0.45;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.pad-lamp {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(255,230,200,0.18), transparent 55%);
  pointer-events: none;
}
.index-ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px dashed rgba(224, 192, 117, 0.28);
  background: repeating-conic-gradient(
    from var(--ring-rot),
    rgba(224,192,117,0.0) 0 6deg,
    rgba(224,192,117,0.35) 6deg 7deg
  );
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%);
  mask: radial-gradient(circle, transparent 66%, #000 67%);
  pointer-events: none;
  transition: background 0.6s var(--ease);
}
.facet-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: rotate(var(--ring-rot));
  transition: transform 0.7s var(--ease);
}
.facet-stone {
  --theta: calc(var(--i) * 72deg);
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  margin: 0;
  padding: 0;
  pointer-events: auto;
  transform:
    rotate(var(--theta))
    translate(var(--orbit-r))
    rotate(calc(-1 * var(--theta) - var(--ring-rot)));
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--platinum);
  z-index: 4;
}
.facet-stone .stone-gem {
  width: 18px;
  height: 22px;
  background: linear-gradient(160deg, #fff 0%, var(--pink-soft) 30%, var(--pink-hot) 70%, #5a1048 100%);
  clip-path: polygon(50% 0%, 100% 32%, 82% 100%, 18% 100%, 0% 32%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25), 0 0 10px rgba(255,78,200,0.0);
}
.facet-stone .stone-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--gold);
  text-shadow: 0 1px 4px #000;
}
.facet-stone.is-active .stone-gem {
  box-shadow: 0 0 0 1px #fff, 0 0 16px var(--pink);
  transform: scale(1.15);
}
.facet-stone.is-active .stone-label { color: var(--pink-soft); }

.diamond-mount {
  position: absolute;
  inset: 18%;
  display: grid;
  place-items: center;
  pointer-events: none;
  animation: dopFloat 4.5s ease-in-out infinite;
  z-index: 3;
}
.diamond-glow {
  position: absolute;
  inset: 8%;
  background: radial-gradient(circle, rgba(255, 90, 200, 0.4), transparent 66%);
  filter: blur(12px);
}
.diamond-logo {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.55));
  z-index: 1;
}
.glint {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fff;
  clip-path: polygon(50% 0, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0 50%, 35% 35%);
  opacity: 0;
  z-index: 2;
  animation: glintPop 4.8s ease-in-out infinite;
}
.g1 { top: 28%; left: 30%; animation-delay: 0s; }
.g2 { top: 46%; right: 26%; animation-delay: 1.6s; }
.g3 { bottom: 30%; left: 46%; animation-delay: 3.1s; width: 6px; height: 6px; }
@keyframes glintPop {
  0%, 78%, 100% { opacity: 0; transform: scale(0.2) rotate(0deg); }
  86% { opacity: 1; transform: scale(1) rotate(20deg); }
}

.pad-plaque {
  position: absolute;
  bottom: 11%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--gold);
  white-space: nowrap;
  z-index: 4;
  pointer-events: none;
  text-shadow: 0 1px 3px #000;
}
.table-hint {
  position: absolute;
  bottom: 2px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243,234,214,0.4);
  pointer-events: none;
}

/* ========== DOSSIER / BOTTOM SHEET ========== */
.dossier {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  z-index: 5;
  margin: 0 10px 6px;
  background:
    linear-gradient(180deg, rgba(36, 18, 48, 0.92), rgba(16, 8, 24, 0.96));
  border: 1px solid rgba(224, 192, 117, 0.28);
  border-bottom: 0;
  border-radius: 18px 18px 8px 8px;
  box-shadow:
    0 -10px 40px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  transform-origin: 50% 100%;
}
.dossier::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 42px;
  height: 4px;
  margin-left: -21px;
  border-radius: 99px;
  background: rgba(224, 192, 117, 0.45);
  z-index: 2;
}
.sheet {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 22px 16px 16px;
  overscroll-behavior: contain;
  max-width: 100%;
}
.sheet.is-entering,
.sheet.is-leaving {
  pointer-events: none;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.exhibit, .sheet-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.sheet-tag { color: var(--pink-soft); }
.kicker {
  font-family: var(--font-mono);
  font-size: clamp(9px, 2.7vw, 12px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink);
  line-height: 1.35;
  margin: 4px 0 6px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 14vw, 88px);
  letter-spacing: -0.03em;
  line-height: 0.88;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0;
  color: #fff;
  text-shadow: 0 0 24px rgba(255, 78, 200, 0.45);
  max-width: 100%;
  overflow: hidden;
}
.wordmark span {
  display: inline-block;
  animation: letterIn 0.7s var(--ease) both;
}
.wordmark span:nth-child(1) { animation-delay: 0.05s; }
.wordmark span:nth-child(2) { animation-delay: 0.1s; }
.wordmark span:nth-child(3) { animation-delay: 0.15s; }
.wordmark span:nth-child(4) { animation-delay: 0.2s; }
.wordmark span:nth-child(5) { animation-delay: 0.25s; }
.wordmark span:nth-child(6) { animation-delay: 0.3s; }
.wordmark span:nth-child(7) { animation-delay: 0.35s; }
@keyframes letterIn {
  from { opacity: 0; transform: translateY(0.4em) rotate(-6deg); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
.metaline {
  margin: 8px 0 12px;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.identity {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.ticker-pill, .chain-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.chain-pill img { width: 16px; height: 12px; }

.sheet-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 6.4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 4px 0 12px;
}
.sheet-lead, .story p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--mist);
  margin-bottom: 10px;
}
.story strong { color: #fff; font-weight: 600; }
.text-link {
  color: var(--pink-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.fiction-note, .pump-note, .disclaimer {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(243,234,214,0.7);
  border-left: 2px solid var(--gold-dim);
  padding: 8px 10px;
  background: rgba(224, 192, 117, 0.06);
  margin: 12px 0;
}

/* ========== BUTTONS ========== */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  max-width: 100%;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.16s var(--ease), filter 0.16s, box-shadow 0.16s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active, .btn.is-press { transform: scale(0.96); }
.btn-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  padding: 0 8px;
}
.btn-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.btn-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  margin-top: 2px;
  opacity: 0.8;
}
.btn-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.45) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}
.btn:hover .btn-shine, .btn:focus-visible .btn-shine { transform: translateX(120%); }

/* Faceted diamond Buy */
.btn-buy {
  flex: 1 1 112px;
  min-height: 58px;
  min-width: 0;
  color: #1a0814;
  background: linear-gradient(180deg, #ffd4f8 0%, #ff7ae6 38%, #c1249a 100%);
  clip-path: polygon(50% 0%, 100% 32%, 86% 100%, 14% 100%, 0% 32%);
  box-shadow: 0 0 18px rgba(255, 78, 200, 0.45);
  padding: 10px 16px 12px;
}
.btn-buy .btn-label { font-size: 15px; }
.btn-buy:hover { box-shadow: 0 0 26px rgba(255, 78, 200, 0.7); }

/* Appraisal-slip CA */
.btn-ca {
  flex: 1 1 128px;
  min-width: 0;
  min-height: 58px;
  color: var(--ink);
  background:
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(0,0,0,0.06) 10px 11px),
    linear-gradient(180deg, #f7edd4, #e6d3a6);
  border: 1px dashed #8a6a2c;
  border-left: 0;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.25);
  padding: 8px 10px 8px 16px;
  text-align: left;
}
.btn-ca .btn-copy { align-items: flex-start; }
.btn-ca .btn-label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-ca-perf {
  position: absolute;
  left: 3px;
  top: 6px;
  bottom: 6px;
  width: 6px;
  background:
    repeating-linear-gradient(180deg,
      transparent 0 5px,
      #5a3c14 5px 7px);
  opacity: 0.55;
}

/* Wax / cut-stamp X */
.btn-x {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  color: #f8e7c8;
  background:
    radial-gradient(circle at 35% 30%, #ff8ad0, #9a1858 58%, #4a0c2c 100%);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  box-shadow: 0 0 0 2px rgba(255, 200, 160, 0.25), 0 6px 16px rgba(80, 0, 40, 0.5);
}
.btn-x .btn-label { font-size: 18px; letter-spacing: 0; }

.btn-chart, .btn-tg {
  flex: 1 1 100px;
  min-height: 48px;
  min-width: 0;
  color: var(--cream);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  padding: 8px 12px;
}
.btn-compact {
  flex: 1 1 120px;
  min-height: 44px;
  font-size: 12px;
}

/* ========== TWEETS ========== */
.tweet-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 100%;
}
.tweet-card {
  position: relative;
  background: rgba(10, 6, 16, 0.7);
  border: 1px solid rgba(255, 122, 230, 0.22);
  border-radius: 16px;
  padding: 12px 12px 10px;
  box-shadow: 0 0 0 1px rgba(224, 192, 117, 0.08), 0 12px 30px rgba(0,0,0,0.25);
  max-width: 100%;
}
.tweet-credit {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  z-index: 1;
}
.tweet-credit:hover { color: var(--pink-soft); }
.tweet-hd {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  padding-right: 86px;
  align-items: center;
}
.tweet-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  grid-row: 1 / span 2;
  border: 1px solid rgba(255,255,255,0.15);
}
.tweet-name {
  font-weight: 650;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.blue-check { color: #1d9bf0; display: inline-flex; flex: 0 0 auto; }
.blue-check svg { display: block; }
.tweet-handle, .tweet-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(243,234,214,0.55);
}
.tweet-time {
  grid-column: 2;
  margin-top: 2px;
}
.tweet-text {
  margin: 10px 0 8px;
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.tweet-photo {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  margin: 0;
}
.tweet-photo img, .tweet-quoted-photo {
  width: 100%;
  height: auto;
  display: block;
}
.tweet-quoted {
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 8px;
  align-items: start;
}
.tweet-hd-mini { grid-column: 1 / -1; padding-right: 0; grid-template-columns: 24px 1fr; }
.tweet-avatar-mini { width: 24px; height: 24px; }
.tweet-text-mini { grid-column: 1; margin: 0; font-size: 12px; }
.tweet-quoted-photo {
  grid-column: 2;
  grid-row: 2;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

/* ========== GAMES ========== */
.game-hub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.game-card {
  text-align: left;
  padding: 12px 10px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(224, 192, 117, 0.22);
  border-radius: 12px;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  transition: transform 0.16s var(--ease), border-color 0.16s, box-shadow 0.16s;
}
.game-card:hover, .game-card:focus-visible {
  border-color: var(--pink);
  box-shadow: 0 0 16px rgba(255, 78, 200, 0.2);
  transform: translateY(-1px);
}
.game-no {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.game-card strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.game-blurb { font-size: 11px; color: var(--mist); line-height: 1.35; }
.game-best { font-family: var(--font-mono); font-size: 10px; color: var(--pink-soft); }
.game-stage { margin-top: 6px; max-width: 100%; }
.game-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  min-width: 0;
}
.game-back {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--gold);
  padding: 4px 0;
  flex: 0 0 auto;
}
.game-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  flex: 1 1 auto;
  min-width: 0;
}
.game-hud {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--pink-soft);
  flex: 0 0 auto;
}
.game-help {
  font-size: 11px;
  color: var(--mist);
  margin-bottom: 8px;
}
.game-mount {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #2a1238, #100814 70%);
  border: 1px solid rgba(255, 122, 230, 0.2);
  border-radius: 12px;
  min-height: 200px;
}
.game-actions { display: flex; gap: 8px; margin-top: 10px; }

/* laser cut */
.laser-board {
  position: relative;
  width: 100%;
  height: 230px;
  touch-action: none;
}
.laser-diamond {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 120px;
  height: 132px;
  transform: translate(-50%, -50%);
}
.laser-svg { width: 100%; height: 100%; overflow: visible; }
.laser-target { fill: rgba(255, 78, 200, 0.35); stroke: #ffd4f8; stroke-width: 2; }
.laser-idle { fill: rgba(255,255,255,0.04); stroke: rgba(224,192,117,0.35); stroke-width: 1; }
.laser-arm {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 3px;
  height: 86px;
  margin-left: -1.5px;
  margin-top: -86px;
  background: linear-gradient(180deg, #fff, #ff7ae6 70%, transparent);
  transform-origin: 50% 100%;
  box-shadow: 0 0 10px #ff7ae6;
  pointer-events: none;
}
.laser-hit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
  pointer-events: none;
}

/* combo */
.combo-board { padding: 12px 10px 16px; text-align: center; }
.combo-slip {
  display: inline-block;
  background: #f3ead6;
  color: #1a1020;
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.28em;
  padding: 8px 16px;
  margin-bottom: 12px;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  min-width: 120px;
}
.combo-slip.is-hidden { filter: blur(7px); user-select: none; letter-spacing: 0.2em; }
.combo-dials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 14px;
}
.dial {
  width: 64px;
  background: linear-gradient(180deg, #2a1c14, #120c0a);
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  color: var(--gold);
  overflow: hidden;
}
.dial button {
  width: 100%;
  height: 26px;
  color: var(--gold);
  font-size: 10px;
}
.dial-face {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  padding: 6px 0;
  border-top: 1px solid rgba(224,192,117,0.25);
  border-bottom: 1px solid rgba(224,192,117,0.25);
}
.combo-open {
  display: inline-flex;
  margin: 0 auto;
  min-width: 140px;
}

/* collect */
.collect-board {
  position: relative;
  height: 230px;
  overflow: hidden;
  touch-action: none;
}
.collect-item {
  position: absolute;
  top: -28px;
  width: 22px;
  height: 26px;
  pointer-events: none;
}
.collect-item.is-gem {
  background: linear-gradient(160deg, #fff, #ff7ae6 50%, #8a1868);
  clip-path: polygon(50% 0%, 100% 32%, 82% 100%, 18% 100%, 0% 32%);
  box-shadow: 0 0 8px rgba(255,78,200,0.6);
}
.collect-item.is-glass {
  background: linear-gradient(160deg, #cfd6de, #6a7380);
  clip-path: polygon(50% 0%, 100% 32%, 82% 100%, 18% 100%, 0% 32%);
  opacity: 0.85;
}
.collect-pouch {
  position: absolute;
  bottom: 8px;
  width: 72px;
  height: 22px;
  margin-left: -36px;
  background: linear-gradient(180deg, #e0c075, #6a4a18);
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
  box-shadow: 0 0 10px rgba(224,192,117,0.4);
}
.collect-timer {
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
}

/* spot */
.spot-board { padding: 10px; }
.spot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.spot-cell {
  min-height: 54px;
  border: 1px solid rgba(255,122,230,0.2);
  border-radius: 8px;
  background: #1a0e24;
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
}
.spot-cell.is-fundador {
  color: var(--pink-soft);
  font-weight: 600;
}
.spot-cell .mini-gem {
  width: 10px;
  height: 12px;
  background: var(--pink);
  clip-path: polygon(50% 0%, 100% 32%, 82% 100%, 18% 100%, 0% 32%);
  flex: 0 0 auto;
}
.spot-cell.is-wrong { background: #3a1020; border-color: #ff4d6d; }
.spot-cell.is-right { background: #14301c; border-color: #5dff9a; }

/* ========== VAULT SLIPS ========== */
.vault-kicker { font-size: 11px; }
.vault-slips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 8px 0 10px;
}
.vault-slips > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(243, 234, 214, 0.04);
  border: 1px solid rgba(224, 192, 117, 0.16);
  border-radius: 6px;
  min-width: 0;
}
.vault-slips dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 2px;
}
.vault-slips dd {
  font-size: 13px;
  overflow-wrap: anywhere;
  min-width: 0;
}

/* ========== DOCK ========== */
.facet-dock {
  position: relative;
  z-index: 8;
  height: var(--dock);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 6px var(--safe-x) max(8px, env(safe-area-inset-bottom));
  padding-right: max(14px, env(safe-area-inset-right));
  background: linear-gradient(180deg, rgba(8,4,12,0.2), rgba(8,4,12,0.92));
  border-top: 1px solid rgba(224, 192, 117, 0.2);
  max-width: 100%;
}
.dock-stone {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: rgba(243,234,214,0.55);
  border-radius: 8px;
  padding: 4px 2px;
}
.dock-stone span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
}
.dock-stone b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.dock-stone.is-active {
  color: #fff;
  background: rgba(255, 78, 200, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 230, 0.45);
}
.dock-stone.is-active span { color: var(--pink-soft); }

/* ========== TOASTS / STINGER ========== */
.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock) + 16px);
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(320px, calc(100% - 24px));
  pointer-events: none;
}
.toast {
  background: #f3ead6;
  color: #1a1020;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 10px 14px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  box-shadow: 4px 6px 0 rgba(0,0,0,0.4);
  animation: toastIn 0.35s var(--ease);
}
.toast.is-out { animation: toastOut 0.3s var(--ease) forwards; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px) rotate(-1deg); }
  to { opacity: 1; transform: none; }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(8px); }
}

.stinger {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.45);
  pointer-events: none;
}
.stinger p {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 8vw, 72px);
  letter-spacing: -0.04em;
  text-align: center;
  text-transform: uppercase;
  padding: 0 16px;
  animation: sting 0.7s var(--ease);
}
.stinger.is-win p {
  color: #ffe8a8;
  text-shadow: 0 0 24px rgba(224,192,117,0.8), 0 4px 0 #5a3c10;
}
.stinger.is-fail p {
  color: #ff9ad8;
  text-shadow: 0 0 24px rgba(255,78,200,0.7), 0 4px 0 #4a1030;
}
@keyframes sting {
  0% { opacity: 0; transform: scale(1.4) rotate(-4deg); filter: blur(8px); }
  35% { opacity: 1; transform: scale(1) rotate(0deg); filter: none; }
  100% { opacity: 1; }
}

/* ========== DESKTOP ========== */
@media (min-width: 900px) {
  :root {
    --topbar: 58px;
    --dock: 0px;
    --home-angle: 0deg;
    --orbit-r: 176px;
  }
  .facet-dock { display: none; }
  .rivet-bl, .rivet-br { bottom: 14px; }
  .stage {
    flex-direction: row;
    align-items: stretch;
    height: calc(100dvh - var(--topbar));
    padding: 12px 20px 20px;
    gap: 18px;
  }
  .table-col {
    flex: 1 1 52%;
    height: auto;
    max-height: none;
    min-height: 0;
  }
  .table-board { width: min(620px, 100%); }
  .velvet-pad {
    width: min(520px, 46vw, 70vh);
    height: min(520px, 46vw, 70vh);
  }
  .facet-stone { display: flex; width: 84px; }
  .facet-stone .stone-gem { width: 22px; height: 26px; }
  .facet-stone .stone-label { font-size: 9px; }
  .diamond-mount { inset: 22%; }
  .pad-plaque { bottom: 16%; font-size: 10px; }
  .table-hint { bottom: 8px; font-size: 10px; }
  .dossier {
    flex: 0 0 min(520px, 42%);
    width: min(520px, 42%);
    margin: 0;
    border-radius: 8px 20px 20px 8px;
    border-bottom: 1px solid rgba(224, 192, 117, 0.28);
    align-self: stretch;
  }
  .dossier::before { display: none; }
  .sheet { padding: 28px 28px 24px; }
  .wordmark { font-size: clamp(56px, 6.4vw, 104px); }
  .cta-row { gap: 10px; }
  .btn-buy { flex: 1 1 150px; min-height: 70px; }
  .btn-ca { flex: 1 1 170px; min-height: 70px; }
  .btn-x { flex: 0 0 74px; width: 74px; height: 74px; }
  .game-hub { grid-template-columns: 1fr 1fr; gap: 12px; }
  .game-mount, .laser-board, .collect-board { min-height: 260px; }
  .laser-board, .collect-board { height: 280px; }
  .toasts { bottom: 28px; right: 28px; left: auto; transform: none; width: 300px; }
  .tweet-hd { padding-right: 110px; }
}

@media (min-width: 1280px) {
  .velvet-pad {
    width: min(560px, 48vw, 74vh);
    height: min(560px, 48vw, 74vh);
  }
  :root { --orbit-r: 196px; }
}

@media (min-width: 1600px) {
  .dossier { flex-basis: 560px; width: 560px; }
}

/* Very tight phones */
@media (max-width: 379px) {
  .btn-buy, .btn-ca { flex: 1 1 calc(50% - 8px); }
  .wordmark { font-size: 34px; }
  .kicker { font-size: 9px; }
  .cta-row[data-cta="find"] { gap: 6px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .loader-diamond, .diamond-mount, .loader-halo, .glint, .autoplay-btn.is-on .autoplay-dot {
    animation: none !important;
  }
  .app { transform: none; filter: none; }
  .cut-beam { opacity: 0; }
}

body.is-hidden .room-dust span,
body.is-hidden .loader-diamond,
body.is-hidden .loader-halo,
body.is-hidden .diamond-mount,
body.is-hidden .glint,
body.is-hidden .autoplay-dot {
  animation-play-state: paused !important;
}
