/* tittcoin — The Velvet Reveal */
:root {
  --orange: #F7931A;
  --orange-hot: #FF8C00;
  --orange-deep: #C56A08;
  --velvet: #2A0A12;
  --velvet-mid: #4A1520;
  --velvet-lit: #6B1D2A;
  --wine: #8B2A38;
  --gold: #E0B15A;
  --gold-deep: #B8893A;
  --ivory: #F7EDE3;
  --blush: #E8C9B8;
  --satin: #F0D5C4;
  --ink: #1A070C;
  --glass: rgba(42, 10, 18, 0.62);
  --stroke: rgba(224, 177, 90, 0.45);
  --safe-b: max(12px, env(safe-area-inset-bottom));
  --safe-t: max(10px, env(safe-area-inset-top));
  --rail-h: 118px;
  --dock-h: 78px;
  --font-serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-sans: "Bricolage Grotesque", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--velvet);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.45;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}
html, body, #app { height: 100%; }
#app {
  position: relative;
  min-height: 100dvh;
  max-width: 100%;
  overflow: hidden;
}
#world {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  touch-action: none;
}
img { max-width: 100%; height: auto; display: block; }
button, a { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
[hidden] { display: none !important; }

/* ---------- LOADER ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #14060a;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-curtain {
  position: absolute;
  top: -4%;
  width: 54%;
  height: 110%;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.35), transparent 18%, transparent 82%, rgba(0,0,0,0.45)),
    repeating-linear-gradient(90deg, #3a0d16 0 14px, #4c1520 14px 22px, #2c0a11 22px 30px);
  box-shadow: inset 0 0 80px rgba(0,0,0,0.55);
  transition: transform 1.15s cubic-bezier(0.7, 0.05, 0.2, 1);
  z-index: 2;
}
.loader-curtain--left {
  left: -2%;
  border-right: 2px solid rgba(224,177,90,0.28);
  transform-origin: left center;
}
.loader-curtain--right {
  right: -2%;
  border-left: 2px solid rgba(224,177,90,0.28);
  transform-origin: right center;
}
.loader.is-parting .loader-curtain--left { transform: translateX(-104%); }
.loader.is-parting .loader-curtain--right { transform: translateX(104%); }
.loader-stage {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 12px 12px 10px;
  width: min(720px, calc(100% - 20px));
  max-width: 100%;
  box-sizing: border-box;
}
.loader-hero {
  position: relative;
  width: min(420px, 86%);
  margin: 0 auto 8px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(224, 177, 90, 0.55);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 30px rgba(247,147,26,0.22);
  background: #1a070c;
  aspect-ratio: 4 / 3;
  max-height: min(42vh, 360px);
}
.loader-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  animation: ken 14s ease-in-out infinite alternate;
}
.loader-iron {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 64px;
  height: 64px;
  margin: 0;
  border-radius: 50%;
  padding: 4px;
  background:
    radial-gradient(circle at 30% 25%, #ffe7a8, var(--gold) 38%, var(--gold-deep) 70%, #6a4a16);
  box-shadow:
    0 0 0 2px rgba(255, 220, 140, 0.35),
    0 0 24px 6px rgba(247, 147, 26, 0.55);
  animation: heat 1.4s ease-in-out infinite alternate;
}
.loader-iron img { width: 100%; height: 100%; border-radius: 50%; }
.loader-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin-top: 12px;
  width: 100%;
}
.loader-strip figure {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid rgba(224,177,90,0.35);
  background: #14070a;
}
.loader-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ken 12s ease-in-out infinite alternate;
}
.loader-strip-logo {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 45%, #5a2a10, #14070a);
}
.loader-strip-logo img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  animation: none;
}
@media (min-width: 900px) {
  .loader-hero { max-height: min(46vh, 400px); width: min(460px, 70%); }
  .loader-iron { width: 84px; height: 84px; right: 12px; bottom: 12px; padding: 5px; }
  .loader-strip { gap: 7px; margin-top: 14px; }
}
@keyframes heat {
  from { filter: saturate(1) brightness(0.95); box-shadow: 0 0 0 2px rgba(255,220,140,0.3), 0 0 28px 6px rgba(247,147,26,0.4); }
  to { filter: saturate(1.25) brightness(1.12); box-shadow: 0 0 0 2px rgba(255,240,180,0.6), 0 0 64px 16px rgba(255,140,0,0.7); }
}
.loader-kicker {
  margin: 0 0 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--gold);
}
.loader-log {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: rgba(247, 237, 227, 0.35);
}
.loader-log li { min-height: 1.4em; transition: color 0.35s ease, text-shadow 0.35s ease; }
.loader-log li.is-on {
  color: var(--ivory);
  text-shadow: 0 0 18px rgba(247, 147, 26, 0.65);
}

/* ---------- HUD ---------- */
.hud-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(var(--safe-t) + 8px) 14px 8px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(20,6,10,0.7), transparent 85%);
}
.hud-top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(224,177,90,0.5), 0 0 16px rgba(247,147,26,0.45);
  flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.brand-tick { font-size: 11px; color: var(--gold); letter-spacing: 0.08em; }
.hud-top-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.chain-pill {
  border: 1px solid var(--stroke);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blush);
  white-space: nowrap;
}
.auto-btn {
  border: 1px solid var(--stroke);
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.auto-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.3); }
.auto-btn:active { transform: scale(0.96); }
.auto-btn[aria-pressed="true"] {
  background: rgba(247,147,26,0.22);
  color: var(--ivory);
  box-shadow: 0 0 16px rgba(247,147,26,0.35);
}

/* ---------- PANELS ---------- */
#stage {
  position: fixed;
  z-index: 12;
  pointer-events: none;
  left: 0; right: 0;
  top: 0; bottom: 0;
}
.panel {
  position: absolute;
  pointer-events: auto;
  left: 12px;
  right: 12px;
  bottom: calc(var(--rail-h) + var(--dock-h) + var(--safe-b) + 4px);
  max-height: min(46vh, 380px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px 14px;
  border-radius: 18px 18px 8px 8px;
  background:
    linear-gradient(180deg, rgba(62,16,24,0.78), rgba(26,7,12,0.82));
  border: 1px solid var(--stroke);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,230,190,0.12);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  transform: translate3d(0, 24px, -80px) rotateX(8deg);
  filter: blur(8px);
  opacity: 0;
  transform-origin: 50% 100%;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease, opacity 0.45s ease;
}
.panel.is-active {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) rotateX(0);
}
.panel.is-active.tilt {
  transition: transform 0.12s ease-out, filter 0.6s ease, opacity 0.45s ease;
}
.eyebrow {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.headline {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(28px, 8vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.headline .ch {
  display: inline-block;
  transform-origin: 50% 70%;
  animation: flipIn 0.62s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes flipIn {
  from { opacity: 0; transform: rotateX(80deg) translateY(0.4em); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
.lede, .type-line {
  margin: 0;
  font-size: 14px;
  color: var(--blush);
  max-width: 42em;
}
.type-line {
  min-height: 7.2em;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ivory);
  white-space: pre-wrap;
}
.type-line .cursor {
  display: inline-block;
  width: 0.08em;
  height: 0.9em;
  margin-left: 2px;
  background: var(--orange);
  vertical-align: -0.05em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.text-btn {
  margin-top: 10px;
  padding: 6px 0;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-btn:active { transform: scale(0.98); }

/* Fitting game */
.fit-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.fit-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fit-pad {
  width: 64px; height: 48px;
  border-radius: 40% 40% 46% 46%;
  background: radial-gradient(circle at 30% 30%, #f7e0d2, #e2b49a 55%, #c88870);
  color: var(--velvet);
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 0 #8a4e3c, 0 12px 20px rgba(0,0,0,0.35);
  transition: transform 0.12s ease;
}
.fit-pad:active, .fit-pad.is-down { transform: translateY(5px); box-shadow: 0 3px 0 #8a4e3c; }
.fit-bar {
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  border: 1px solid rgba(224,177,90,0.25);
}
.fit-bar i {
  display: block;
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  transition: width 0.08s linear;
}
.fit-level {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: radial-gradient(circle at 40% 35%, #3a151c, #14070a);
  position: relative;
  box-shadow: inset 0 0 0 6px rgba(224,177,90,0.15), 0 0 16px rgba(247,147,26,0.2);
}
.fit-needle {
  position: absolute;
  left: 50%; top: 50%;
  width: 4px; height: 28px;
  margin: -28px 0 0 -2px;
  background: var(--orange);
  border-radius: 2px;
  transform-origin: 50% 100%;
  box-shadow: 0 0 8px var(--orange);
}
.score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
  color: var(--blush);
}
.score-row strong { color: var(--ivory); font-variant-numeric: tabular-nums; }

/* Press switch */
.press-switch {
  position: relative;
  width: 168px;
  height: 96px;
  margin: 14px 0 8px;
}
.press-go {
  position: absolute;
  inset: 10px 8px 8px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 40%, #ffb347, var(--orange) 50%, var(--orange-deep));
  color: #2a0a12;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.12em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 6px 0 #7a3e05;
  text-shadow: 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.1s ease, filter 0.2s ease;
}
.press-go:enabled:hover { filter: brightness(1.08); }
.press-go:enabled:active { transform: translateY(4px); box-shadow: 0 2px 0 #7a3e05; }
.press-go:disabled { filter: grayscale(0.3) brightness(0.7); cursor: not-allowed; }
.press-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 10px 10px 4px 4px;
  background:
    linear-gradient(180deg, #d7b05a, #9a7428 60%, #6e5218);
  color: #2a0a12;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,230,160,0.5);
  transform-origin: top center;
  transition: transform 0.55s cubic-bezier(0.7, 0.1, 0.2, 1.1);
}
.press-switch.is-open .press-cover {
  transform: rotateX(118deg);
  pointer-events: none;
}
.fine {
  margin: 8px 0 0;
  font-size: 11px;
  color: rgba(232, 201, 184, 0.75);
  max-width: 36em;
}

/* Reveal beat */
.beat-track {
  position: relative;
  height: 36px;
  margin: 14px 0 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--stroke);
  overflow: hidden;
}
.beat-zone {
  position: absolute;
  left: 50%;
  top: 3px; bottom: 3px;
  width: 42px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(247,147,26,0.28);
  box-shadow: 0 0 16px rgba(247,147,26,0.35);
}
.beat-tick {
  position: absolute;
  top: 4px; bottom: 4px;
  width: 8px;
  left: 6px;
  border-radius: 4px;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  will-change: left;
}
.pull-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 22px;
  border-radius: 999px 40px 999px 40px;
  background: linear-gradient(180deg, #8b2a38, #4a1520);
  border: 1px solid var(--gold);
  color: var(--ivory);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
  box-shadow: 0 6px 0 #2a0a12, 0 10px 20px rgba(0,0,0,0.3);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.pull-btn:hover { transform: translateY(-2px); }
.pull-btn:active { transform: translateY(4px) scale(0.98); box-shadow: 0 2px 0 #2a0a12; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.g-card {
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: #14070a;
  aspect-ratio: 16 / 9;
}
.g-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: ken 16s ease-in-out infinite alternate;
}
@keyframes ken { to { transform: scale(1.12) translate(-1%, -1%); } }

/* ---------- CTA DOCK ---------- */
.cta-dock {
  position: fixed;
  z-index: 22;
  left: 0; right: 0;
  bottom: calc(var(--rail-h) + var(--safe-b) - 4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 0 10px 8px;
  pointer-events: none;
  max-width: 100%;
}
.cta-dock > * { pointer-events: auto; flex: 0 0 auto; }
.btn-coin {
  width: 64px; height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #ffe29a, var(--gold) 28%, var(--orange) 52%, var(--orange-deep));
  color: #2a0a12;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  box-shadow:
    0 0 0 3px #8a5a16,
    0 0 0 5px rgba(224,177,90,0.5),
    0 10px 18px rgba(0,0,0,0.4),
    inset 0 2px 0 rgba(255,255,255,0.4);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.btn-coin::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.45) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.btn-coin:hover { transform: translateY(-3px) scale(1.04); filter: brightness(1.06); }
.btn-coin:hover::after { transform: translateX(120%); }
.btn-coin:active { transform: scale(0.94); }

.btn-tag {
  display: flex;
  align-items: stretch;
  min-width: 0;
  max-width: min(52vw, 260px);
  background: linear-gradient(180deg, #f3e2c6, #e4c48a);
  color: #2a0a12;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 50%);
  box-shadow: 0 8px 16px rgba(0,0,0,0.35);
  position: relative;
  transition: transform 0.18s ease;
}
.btn-tag:hover { transform: translateY(-2px); }
.tag-eye {
  width: 18px;
  flex: 0 0 18px;
  position: relative;
}
.tag-eye::before {
  content: "";
  position: absolute;
  left: 10px; top: 50%;
  width: 7px; height: 7px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #2a0a12;
  box-shadow: 0 0 0 2px #c9a05a;
}
.tag-body {
  padding: 6px 8px 6px 2px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.tag-body small {
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}
.tag-body strong {
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tag-copy {
  background: #2a0a12;
  color: var(--gold);
  padding: 0 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex: 0 0 auto;
}
.tag-copy:active { filter: brightness(1.2); }

.btn-mirror {
  width: 56px; height: 64px;
  border-radius: 50% 50% 48% 48% / 42% 42% 58% 58%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.55), rgba(255,255,255,0.05) 32%, rgba(40,16,20,0.3) 55%, #1a0a0c 80%);
  border: 3px solid var(--gold);
  box-shadow: 0 8px 16px rgba(0,0,0,0.35), inset 0 0 12px rgba(255,255,255,0.2);
  color: var(--ivory);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-mirror:hover { transform: translateY(-2px) rotate(-4deg); box-shadow: 0 12px 20px rgba(0,0,0,0.4), 0 0 16px rgba(224,177,90,0.4); }
.btn-mirror:active { transform: scale(0.94); }

.btn-perfume {
  min-width: 48px;
  height: 56px;
  padding: 0 10px;
  background: linear-gradient(180deg, #f6ece0, #e6cbb6);
  color: #2a0a12;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  clip-path: polygon(8% 0, 92% 0, 100% 14%, 100% 100%, 0 100%, 0 14%);
  box-shadow: 0 8px 14px rgba(0,0,0,0.3);
  border-top: 3px solid var(--gold);
  transition: transform 0.18s ease;
}
.btn-perfume:hover { transform: translateY(-2px); }
.btn-perfume:active { transform: scale(0.95); }

/* ---------- PORTAL RING ---------- */
.portal-rail {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 18;
  height: calc(var(--rail-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: linear-gradient(to top, rgba(14,4,8,0.92) 40%, transparent);
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}
.rail-hint {
  margin: 0;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(224,177,90,0.7);
  pointer-events: none;
}
.portal-ring {
  position: relative;
  height: 74px;
  max-width: 100%;
  cursor: grab;
}
.portal-ring.is-dragging { cursor: grabbing; }
.portal {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 72px;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  will-change: transform;
}
.portal-swatch {
  width: 46px; height: 34px;
  border-radius: 4px 4px 10px 10px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.35), transparent 20%, transparent 80%, rgba(0,0,0,0.4)),
    repeating-linear-gradient(90deg, #5a1824 0 6px, #3a0e16 6px 10px);
  border: 1px solid rgba(224,177,90,0.45);
  box-shadow: 0 6px 10px rgba(0,0,0,0.35);
  position: relative;
}
.portal-swatch::before {
  content: "";
  position: absolute;
  left: 50%; top: -5px;
  width: 10px; height: 10px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.portal.is-active .portal-swatch {
  box-shadow: 0 0 0 2px var(--orange), 0 0 16px rgba(247,147,26,0.55);
}
.portal-label {
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blush);
  white-space: nowrap;
  text-shadow: 0 1px 4px #000;
}
.portal.is-active .portal-label { color: var(--ivory); }

/* ---------- FOOTER / TOAST / FLASH ---------- */
.disclaimer {
  position: fixed;
  z-index: 19;
  left: 8px;
  right: 8px;
  bottom: var(--safe-b);
  height: auto;
  max-height: 28px;
  overflow: hidden;
  font-size: 8px;
  line-height: 1.3;
  text-align: center;
  color: rgba(247, 237, 227, 0.52);
  pointer-events: none;
  max-width: 100%;
  text-wrap: pretty;
}
.toasts {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(var(--rail-h) + var(--dock-h) + var(--safe-b) + 12px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(360px, calc(100% - 24px));
  pointer-events: none;
}
.toast {
  background: linear-gradient(180deg, #f3e2c6, #e4c48a);
  color: #2a0a12;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
  padding: 10px 14px 10px 22px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
  animation: toastIn 0.35s ease both;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(0.96); } }
.flash {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: radial-gradient(circle, rgba(247,147,26,0.18), transparent 55%);
  font-family: var(--font-serif);
  font-size: clamp(42px, 10vw, 96px);
  letter-spacing: 0.06em;
  color: var(--ivory);
  text-shadow: 0 0 24px rgba(247,147,26,0.8), 0 8px 0 rgba(0,0,0,0.35);
  animation: flashPop 0.9s ease both;
}
@keyframes flashPop {
  0% { opacity: 0; transform: scale(0.7) rotate(-4deg); }
  25% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.1); }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(10, 3, 6, 0.88);
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 86dvh;
  object-fit: contain;
  border: 1px solid var(--stroke);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: calc(var(--safe-t) + 8px);
  right: 14px;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
}

/* ---------- DESKTOP ---------- */
@media (min-width: 900px) {
  :root { --rail-h: 110px; --dock-h: 0px; }
  .cta-dock {
    left: 28px;
    right: auto;
    top: 86px;
    bottom: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 12px;
  }
  .btn-coin { width: 84px; height: 84px; font-size: 20px; }
  .btn-tag { max-width: 280px; }
  .btn-mirror { width: 64px; height: 74px; }
  .disclaimer {
    left: 28px;
    right: auto;
    bottom: calc(var(--rail-h) + 10px);
    width: min(420px, 36vw);
    text-align: left;
    font-size: 10px;
    max-height: none;
    overflow: visible;
  }
  .panel {
    max-width: 460px;
    max-height: min(58vh, 560px);
    bottom: auto;
    top: 120px;
    right: auto;
    left: auto;
    padding: 22px 24px 20px;
  }
  #panel-mark { left: 28px; top: auto; bottom: calc(var(--rail-h) + 64px); width: min(460px, 40vw); }
  #panel-other { right: 36px; top: 110px; width: min(480px, 42vw); }
  #panel-fitting { right: 36px; top: 100px; width: min(500px, 44vw); }
  #panel-press { right: 40px; top: 120px; width: min(420px, 38vw); }
  #panel-reveal { left: 28px; top: auto; bottom: calc(var(--rail-h) + 28px); width: min(480px, 42vw); }
  #panel-mirror { right: 28px; top: 100px; width: min(560px, 48vw); max-height: min(64vh, 640px); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .headline { font-size: clamp(36px, 4.4vw, 64px); }
  .lede { font-size: 16px; }
  .type-line { font-size: 22px; }
  .toasts { left: auto; right: 28px; transform: none; bottom: calc(var(--rail-h) + 24px); }
  .hud-top { padding: calc(var(--safe-t) + 14px) 28px 10px; }
  .brand-name { font-size: 24px; }
}

@media (min-width: 1280px) {
  .panel { border-radius: 4px 22px 4px 22px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }
  .g-card img { animation: none; }
  .loader-iron { animation: none; }
}
