@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Piazzolla';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/piazzolla-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Piazzolla';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/piazzolla-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/quicksand-latin.woff2') format('woff2');
}

:root {
  --bg: #070709;
  --ink: #F7F6F2;
  --ink-2: #D8D4CC;
  --lo: #A8A29A;
  --muted: #6E6A63;
  --line: rgba(255, 255, 255, 0.1);

  --marigold-1: #FDC257;
  --marigold-2: #FAAE30;
  --marigold-3: #E4780A;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

img { display: block; max-width: 100%; -webkit-user-drag: none; user-select: none; }
button, a { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--marigold-1);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================================
   MANDATORY SCROLL-SNAP TRACK
   ============================================================ */
.snap-track {
  position: relative;
  z-index: 1;
}

.snap-step {
  width: 100%;
  height: 100svh;
  min-height: 620px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  pointer-events: none;
}

/* ============================================================
   MINIMAL FLOATING HEADER + TOP-RIGHT DOCKING BAY
   ============================================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px clamp(16px, 3.2vw, 36px);
  background: linear-gradient(to bottom, rgba(7, 7, 9, 0.9) 0%, rgba(7, 7, 9, 0.42) 68%, transparent 100%);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.lockup {
  display: inline-flex;
  align-items: center;
  height: 28px;
}
.lk {
  height: 23px;
  width: auto;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-link {
  padding: 6px 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}
.top-link:hover { color: var(--ink); }

.cta-nav-dock {
  width: 234px;
  height: 40px;
  pointer-events: none;
}

.cta-stage-slot {
  width: 304px;
  height: 62px;
  pointer-events: none;
}

/* ============================================================
   FLYING INTERLOCKING SIDE-BY-SIDE LEGO STORE PAIR
   ============================================================ */
.flying-lego-cta {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 68;
  display: inline-flex;
  align-items: center;
  transform-origin: center center;
  will-change: transform;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.72));
}

.store-brick {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  transition: transform 0.2s var(--ease-spring), filter 0.2s var(--ease);
}

.store-brick--apple {
  width: 162px;
  z-index: 2;
  color: #1D0F00;
}

.store-brick--play {
  width: 156px;
  margin-left: -13.2px;
  z-index: 1;
  color: var(--ink);
}

.store-brick:hover { filter: brightness(1.07); }
.store-brick:active { transform: translateY(2px); }

.sb-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.sb-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  padding-right: 10px;
  padding-bottom: 2px;
  white-space: nowrap;
}
.sb-label--play {
  padding-right: 0;
  padding-left: 11px;
}

/* ============================================================
   RIGHT-EDGE LEGO STUD CHAPTER RAIL
   ============================================================ */
.scene-rail {
  position: fixed;
  right: clamp(12px, 2vw, 26px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rail-dot {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 4px;
}

.rail-dot span {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-2);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  pointer-events: none;
  background: rgba(14, 14, 18, 0.92);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.rail-dot:hover span,
.rail-dot:focus-visible span {
  opacity: 1;
  transform: translateX(0);
}
.rail-dot.is-on span {
  color: var(--marigold-1);
  border-color: rgba(253, 194, 87, 0.32);
}

.rail-dot i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
  transition: transform 0.22s var(--ease-spring), background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.rail-dot:hover i { background: rgba(255, 255, 255, 0.42); }
.rail-dot.is-on i {
  background: var(--marigold-1);
  transform: scale(1.28);
  box-shadow: 0 2px 0 #9E5E04, 0 0 12px rgba(253, 194, 87, 0.75);
}

/* ============================================================
   FIXED PHYSICS STAGE
   ============================================================ */
.stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  z-index: 10;
  pointer-events: none;
}

.stage-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.stud-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 2px, rgba(0, 0, 0, 0.4) 2.6px, transparent 3.6px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 76% 72% at 56% 50%, #000 18%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 76% 72% at 56% 50%, #000 18%, transparent 90%);
}

.stage-glow {
  position: absolute;
  left: var(--gx, 50%);
  top: 50%;
  width: min(680px, 85vw);
  height: min(580px, 80vh);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, rgba(250, 174, 48, 0.11) 0%, rgba(228, 120, 10, 0.03) 42%, transparent 68%);
  transition: left 0.5s var(--ease);
}

/* ============================================================
   HERO MAGNETIC FLUX TETHER + DYNAMIC 2-PIECE PAIR TAGS
   ============================================================ */
.magnet-flux {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 14;
  pointer-events: none;
  overflow: visible;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.mf-glow {
  stroke: rgba(253, 194, 87, 0.28);
  stroke-width: 7px;
  stroke-linecap: round;
  filter: blur(4px);
}
.mf-line {
  stroke: url(#magFluxGrad);
  stroke-width: 2px;
  stroke-dasharray: 5 7;
  stroke-linecap: round;
}
.mf-dot {
  fill: #FFE094;
  filter: drop-shadow(0 0 6px rgba(253, 194, 87, 0.85));
}

.cluster-badges {
  position: absolute;
  inset: 0;
  z-index: 24;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s var(--ease);
}
.cluster-badges.is-hidden {
  opacity: 0;
}
.cluster-badges.is-hidden .cluster-tag {
  pointer-events: none;
}

.cluster-tag {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(15, 14, 18, 0.96);
  border: 1px solid rgba(253, 194, 87, 0.52);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.85);
  font-size: 12px;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  will-change: transform;
  pointer-events: auto;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.cluster-tag:hover {
  background: rgba(28, 25, 22, 0.98);
  border-color: #FDC257;
}
.ct-eq {
  font-weight: 800;
  color: var(--marigold-1);
}
.cluster-tag b {
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.ct-split {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-left: 1px;
  transition: color 0.18s var(--ease);
}
.cluster-tag:hover .ct-split {
  color: var(--marigold-1);
}
.cluster-tag.is-fresh {
  box-shadow: 0 0 24px rgba(253, 194, 87, 0.45), 0 10px 24px -6px rgba(0, 0, 0, 0.85);
}

/* Hover App Home-Screen Preview Card underneath combined Hero pairs (~2x Lego brick height) */
.hero-pair-preview {
  position: absolute;
  left: 0;
  top: 0;
  width: 142px;
  height: 214px;
  padding: 5px;
  border-radius: 20px;
  background: linear-gradient(160deg, #2D2D36 0%, #141418 52%, #1E1E26 100%);
  border: 1px solid rgba(253, 194, 87, 0.62);
  box-shadow:
    0 24px 52px -8px rgba(0, 0, 0, 0.94),
    0 0 28px rgba(253, 194, 87, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  z-index: 34;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s var(--ease), visibility 0.18s var(--ease);
  will-change: transform, opacity;
}
.hero-pair-preview.is-visible {
  opacity: 1;
  visibility: visible;
}
.hero-pair-preview::before {
  content: "";
  position: absolute;
  left: var(--arrow-x, 50%);
  top: -6px;
  width: 10px;
  height: 10px;
  background: #282830;
  border-left: 1px solid rgba(253, 194, 87, 0.62);
  border-top: 1px solid rgba(253, 194, 87, 0.62);
  transform: translateX(-50%) rotate(45deg);
}
.hero-pair-preview.is-above::before {
  top: auto;
  bottom: -6px;
  background: #1B1B22;
  border-left: 0;
  border-top: 0;
  border-right: 1px solid rgba(253, 194, 87, 0.62);
  border-bottom: 1px solid rgba(253, 194, 87, 0.62);
}

.hpp-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  background: #0B0B0E;
}
.hpp-notch {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 5px;
  border-radius: 999px;
  background: #000000;
  z-index: 3;
}
.hpp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.hpp-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 8px 6px;
  background: linear-gradient(to top, rgba(8, 8, 12, 0.94) 0%, rgba(8, 8, 12, 0.6) 62%, transparent 100%);
  text-align: center;
  z-index: 2;
}
.hpp-caption b {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #F7F6F2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   ASSEMBLING / SANDBOX PHONE RIG + PROMINENT UNDER-PHONE BAR
   ============================================================ */
.phone-rig {
  position: absolute;
  left: var(--px, 62%);
  top: var(--py, 50%);
  width: var(--pw, 282px);
  aspect-ratio: 9 / 19.45;
  transform: translate(-50%, -50%);
  z-index: 12;
  pointer-events: none;
}

.phone-blueprint {
  position: absolute;
  inset: 0;
  border-radius: 44px;
  border: 1.5px dashed rgba(253, 194, 87, 0.44);
  background: rgba(253, 194, 87, 0.018);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.24s var(--ease), transform 0.28s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.phone-blueprint.is-drop-ready {
  border-color: rgba(253, 194, 87, 0.65);
  background: radial-gradient(circle at 50% 50%, rgba(253, 194, 87, 0.07) 0%, rgba(253, 194, 87, 0.015) 75%);
}
.phone-blueprint.is-hover-drop {
  border-color: #FDC257;
  background: radial-gradient(circle at 50% 50%, rgba(253, 194, 87, 0.17) 0%, rgba(253, 194, 87, 0.04) 78%);
  box-shadow: 0 0 36px rgba(253, 194, 87, 0.3);
}

.bp-grid-hint--2x2 {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background-image:
    linear-gradient(to right, transparent 49.5%, rgba(255, 255, 255, 0.06) 50%, transparent 50.5%),
    linear-gradient(to bottom, transparent 49.5%, rgba(255, 255, 255, 0.06) 50%, transparent 50.5%);
}

.bp-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--marigold-1);
  border-style: solid;
  opacity: 0.82;
}
.bp-tl { top: -2px; left: -2px; border-width: 2.5px 0 0 2.5px; border-top-left-radius: 14px; }
.bp-tr { top: -2px; right: -2px; border-width: 2.5px 2.5px 0 0; border-top-right-radius: 14px; }
.bp-bl { bottom: -2px; left: -2px; border-width: 0 0 2.5px 2.5px; border-bottom-left-radius: 14px; }
.bp-br { bottom: -2px; right: -2px; border-width: 0 2.5px 2.5px 0; border-bottom-right-radius: 14px; }

.bp-label {
  position: absolute;
  left: 50%;
  bottom: -38px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(16, 16, 20, 0.94);
  border: 1px solid rgba(253, 194, 87, 0.34);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--marigold-1);
  letter-spacing: -0.01em;
}

/* Prominent Under-Phone Action Bar for Sandbox (Step 7) */
.sandbox-underbar {
  position: absolute;
  left: 50%;
  bottom: -54px;
  transform: translateX(-50%);
  z-index: 32;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  pointer-events: auto;
}

.su-make-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFD476 0%, #FAAE30 55%, #E4780A 100%);
  color: #1D0F00;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.015em;
  box-shadow: 0 4px 0 #935102, 0 14px 32px rgba(250, 174, 48, 0.45);
  transition: transform 0.18s var(--ease-spring), filter 0.18s var(--ease);
}
.su-make-btn i { font-style: normal; font-weight: 800; }
.su-make-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.su-make-btn:active { transform: translateY(2px); }

.su-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 17px;
  border-radius: 999px;
  background: #17171E;
  border: 1.5px solid rgba(253, 194, 87, 0.62);
  color: var(--marigold-1);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.82);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.16s var(--ease);
}
.su-clear-btn:hover {
  background: rgba(253, 194, 87, 0.16);
  border-color: #FDC257;
}
.su-clear-btn:active { transform: translateY(1px); }
.cluster-tag,
.su-make-btn,
.su-clear-btn,
.fp-pill {
  touch-action: manipulation;
}

.snap-burst {
  position: absolute;
  inset: -18px;
  border-radius: 56px;
  border: 2px solid rgba(253, 194, 87, 0.85);
  box-shadow: 0 0 42px rgba(253, 194, 87, 0.48);
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}
.snap-burst.is-pop {
  animation: snapWave 0.58s var(--ease-spring) forwards;
}
@keyframes snapWave {
  0% { opacity: 0.94; transform: scale(0.95); }
  100% { opacity: 0; transform: scale(1.14); }
}

/* Dark Titanium iPhone Chassis */
.phone-chassis {
  position: absolute;
  inset: 0;
  padding: 8px;
  border-radius: 42px;
  background: linear-gradient(155deg, #34343A 0%, #16161A 46%, #24242A 100%);
  box-shadow:
    0 42px 96px -18px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 1px rgba(255, 255, 255, 0.26);
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.32s var(--ease), transform 0.36s var(--ease-spring);
  will-change: opacity, transform;
}
.phone-chassis.is-live {
  opacity: 1;
  transform: scale(1);
}

.pk {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #2D2D33;
}
.pk-1 { left: -3px; top: 82px; height: 22px; }
.pk-2 { left: -3px; top: 118px; height: 40px; }
.pk-3 { left: -3px; top: 166px; height: 40px; }
.pk-r { right: -3px; top: 134px; height: 62px; }

.phone-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 35px;
  overflow: hidden;
  overflow: clip;
  background: #0C0C0E;
}

.phone-island {
  position: absolute;
  top: 1.35%;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 3.7%;
  border-radius: 999px;
  background: #000000;
  z-index: 15;
  pointer-events: none;
}

.app-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.26s var(--ease);
}
.app-screen.is-shown { opacity: 1; }

/* Compact Matched-App Summary Pill inside bottom of Phone */
.sandbox-hud {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 14;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.24s var(--ease), transform 0.28s var(--ease-spring), visibility 0.24s var(--ease);
  pointer-events: none;
}
.sandbox-hud.is-shown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sh-card {
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(13, 13, 17, 0.92);
  border: 1px solid rgba(253, 194, 87, 0.44);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.72);
}
.sh-card small {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--marigold-1);
}
.sh-card b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 1px;
}
.sh-card p {
  margin: 2px 0 0;
  font-size: 10.5px;
  line-height: 1.32;
  color: var(--ink-2);
}

/* ============================================================
   AUTHENTIC 6-CARD MARCI FEED REEL
   ============================================================ */
.feed-reel {
  position: absolute;
  inset: 0;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  overflow: hidden;
  overflow: clip;
  border-radius: 35px;
}
.feed-reel.is-shown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fr-track {
  width: 100%;
  height: 600%;
  transform: translate3d(0, calc(var(--feed-card, 0) * -16.666667%), 0);
  transition: transform 0.6s var(--ease-spring);
  will-change: transform;
}

.fr-card {
  position: relative;
  width: 100%;
  height: calc(100% / 6);
  padding: 10px 14px 58px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

/* Authentic top status bar + [Home | Marci loop] capsule */
.fr-top {
  position: relative;
  z-index: 5;
  color: #FFFFFF;
}
.fr-top--ink {
  color: #1C110A;
}

.fr-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.fr-ios-icons {
  display: inline-flex;
  align-items: center;
  opacity: 0.92;
}

.fr-capsule-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.fr-home-capsule {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 31px;
  padding: 3px 4px 3px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}
.fr-home-capsule--warm {
  background: rgba(251, 241, 229, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: #21150E;
}
.fr-home-capsule--paper {
  background: #FFFFFF;
  border: 1px solid rgba(30, 24, 16, 0.08);
  color: #1F1710;
  box-shadow: 0 4px 14px rgba(45, 30, 12, 0.08);
}
.fr-home-capsule--dark {
  background: rgba(39, 45, 62, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #F4F5F8;
}
.fhc-left {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: 1px;
}
.fhc-left small {
  font-size: 7.5px;
  font-weight: 700;
}
.fhc-orb {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #FFFFFF;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
}

/* Authentic Bottom Sheet with Grabber / Chevron + Sliders + Heart */
.fr-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 14px 11px;
  border-radius: 20px 20px 0 0;
  z-index: 6;
}
.fr-grabber {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.28;
  margin: 0 auto 6px;
}
.fr-chevron {
  display: block;
  text-align: center;
  font-style: normal;
  font-size: 11px;
  line-height: 1;
  opacity: 0.65;
  margin: 0 auto 4px;
}
.fr-sheet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fr-sheet-txt small {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.84;
}
.fr-sheet-txt b {
  display: block;
  font-size: 11px;
  font-weight: 650;
  margin-top: 1.5px;
}
.fr-sheet-btns {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fr-sbtn {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 11px;
}
.fr-sbtn.is-liked { color: #FF7B73; }

.fr-sheet--terracotta {
  background: rgba(198, 78, 43, 0.84);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #1E100A;
}
.fr-sheet--terracotta .fr-sbtn { background: rgba(30, 16, 10, 0.12); }

.fr-sheet--dark {
  background: #1A1E2A;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}
.fr-sheet--dark .fr-sheet-txt small { color: var(--marigold-1); opacity: 1; }

.fr-sheet--room {
  background: #EAE3D7;
  border-top: 1px solid rgba(60, 44, 24, 0.08);
  color: #1F1811;
}
.fr-sheet--room .fr-sheet-txt small { color: #9C4E22; opacity: 1; }
.fr-sheet--room .fr-sbtn { background: rgba(45, 32, 16, 0.08); }

.fr-sheet--ivory {
  background: #EFE7D5;
  border-top: 1px solid rgba(62, 46, 26, 0.08);
  color: #1F1811;
}
.fr-sheet--ivory .fr-sbtn { background: rgba(45, 32, 16, 0.08); }

.fr-sheet--ochre {
  background: rgba(182, 118, 48, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #1E1308;
}
.fr-sheet--ochre .fr-sbtn { background: rgba(30, 18, 8, 0.11); }

/* ============================================================
   CARD 0: FROM YOUR WEEK (Painterly top trio + left-bar quote)
   ============================================================ */
.fr-card--week {
  background: linear-gradient(180deg, #FA693D 0%, #FA693D 34%, #E67D5B 66%, #DE8264 100%);
  color: #1D1009;
}
.fw-top-art {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 186px;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 84%, transparent 100%);
}
.fw-body {
  position: relative;
  z-index: 3;
  padding-top: 162px;
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.fw-pill {
  display: inline-block;
  padding: 3.5px 9px;
  border-radius: 999px;
  background: rgba(32, 16, 8, 0.11);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.fw-quote {
  position: relative;
  padding-left: 11px;
  margin-bottom: 14px;
}
.fw-quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 999px;
  background: #FBC547;
}
.fw-quote .fw-q-head {
  display: block;
  margin: 0 0 7px;
  font-size: 16.5px;
  font-weight: 780;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #1B0F09;
}
.fw-quote p {
  margin: 0;
  font-size: 11px;
  font-weight: 520;
  color: rgba(27, 15, 9, 0.8);
}
.fw-source-btn {
  display: inline-flex;
  align-items: center;
  padding: 8.5px 15px;
  border-radius: 999px;
  background: #1F140E;
  color: #FFF7F0;
  font-size: 10.5px;
  font-weight: 650;
}

/* ============================================================
   CARD 1: ENLARGED U.S. & NBA DRAGGABLE NEWS DECK
   ============================================================ */
.fr-card--news {
  background: #13161F;
  color: #F4F5F8;
}
.fn-topic b {
  display: block;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.1;
}
.fn-topic small {
  display: block;
  font-size: 9px;
  color: rgba(244, 245, 248, 0.62);
  margin-top: 1px;
}
.fn-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  padding: 10px 0 8px;
}
.fn-updated {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: #EEAB3B;
  color: #1C1100;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.fn-carousel {
  flex: 1;
  min-height: 0;
  width: calc(100% + 14px);
  margin-right: -14px;
  padding-right: 14px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  display: flex;
  flex-direction: column;
}
.fn-carousel:active,
.fn-carousel.is-dragging {
  cursor: grabbing;
}
.fn-track {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 9px;
  transform: translate3d(calc(var(--news-idx, 0) * -86% + var(--news-drag, 0px)), 0, 0);
  transition: transform 0.38s var(--ease-spring);
  will-change: transform;
}
.fn-carousel.is-dragging .fn-track {
  transition: none;
}
.fn-story {
  flex: 0 0 84%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #222836;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}
.fn-photo {
  position: relative;
  height: 48%;
  min-height: 126px;
  flex-shrink: 0;
  overflow: hidden;
  background: #191E2A;
}
.fn-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.fn-story-body {
  flex: 1;
  min-height: 0;
  padding: 11px 12px 11px;
  display: flex;
  flex-direction: column;
}
.fn-story-body .fn-s-head {
  display: block;
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}
.fn-story-body p {
  margin: 0 0 auto;
  font-size: 10px;
  line-height: 1.38;
  color: rgba(244, 245, 248, 0.68);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fn-story-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  flex-shrink: 0;
}
.fn-pub {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: rgba(244, 245, 248, 0.64);
}
.fn-pub i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
  font-size: 8px;
  color: #FFFFFF;
}
.fn-ext {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-size: 10px;
}
.fn-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  flex-shrink: 0;
}
.fn-dots button {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.22s var(--ease), background 0.22s var(--ease);
}
.fn-dots button.is-on {
  width: 16px;
  background: #FFFFFF;
}
.fn-swipe-hint {
  margin: 4px 0 0;
  text-align: center;
  font-size: 8.5px;
  color: rgba(244, 245, 248, 0.5);
  flex-shrink: 0;
}

/* ============================================================
   CARD 2: FULL-SCREEN PLAYABLE FLAPPY BIRD ARCADE
   ============================================================ */
.fr-card--game {
  background: #0F1521;
  color: #FFFFFF;
  padding-bottom: 56px;
}
.fg-badges {
  display: flex;
  gap: 5px;
  margin-left: auto;
}
.fg-pill {
  padding: 3.5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 9px;
  font-weight: 650;
}
.fg-pill--gold {
  background: rgba(253, 194, 87, 0.16);
  border-color: rgba(253, 194, 87, 0.3);
  color: var(--marigold-1);
}

.fg-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 7px -10px 6px;
}
.fg-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #59BCE6;
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}
.fg-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.fg-banner {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(26, 36, 52, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.fg-banner.is-hidden {
  opacity: 0;
  transform: translateY(-6px);
}
.fg-banner small {
  display: block;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--marigold-1);
}
.fg-banner b {
  display: block;
  font-size: 10.5px;
  font-weight: 650;
  color: #F6F8FB;
  margin-top: 1px;
}
.fg-score-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 24px;
  padding: 6px 10px;
  border-radius: 11px;
  background: rgba(24, 33, 47, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
  pointer-events: none;
}
.fg-score-bar small {
  display: block;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.66;
}
.fg-score-bar b {
  display: block;
  font-size: 10.5px;
  font-weight: 750;
  margin-top: 0.5px;
}
.fg-score-right {
  text-align: right;
}
.fg-medal {
  padding: 2.5px 8px;
  border-radius: 999px;
  background: rgba(253, 194, 87, 0.18);
  color: var(--marigold-1);
  font-size: 8.5px;
  font-weight: 750;
}
.fg-tap-btn {
  width: calc(100% - 8px);
  margin: 0 auto;
  height: 35px;
  flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(180deg, #FCCA3B 0%, #F2B01E 100%);
  color: #1A1100;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(250, 174, 48, 0.25);
}
.fg-tap-btn:active {
  transform: scale(0.985);
}

/* ============================================================
   CARD 3: COACH ROOM PENDING CHECK-IN (Steady)
   ============================================================ */
.fr-card--coach {
  background: #DFD8CA;
  color: #1F1A14;
}
.fc-room-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  z-index: 0;
  pointer-events: none;
}
.fc-room-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(247, 243, 236, 0.62) 0%,
    rgba(244, 239, 230, 0.45) 36%,
    rgba(238, 231, 219, 0.78) 72%,
    rgba(234, 227, 215, 0.94) 100%
  );
  pointer-events: none;
}
.fc-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 1px;
}
.fc-coach-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -4px;
}
.fc-coach-badge img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.18));
}
.fc-coach-badge span {
  margin-top: -3px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 9.5px;
  font-weight: 750;
  color: #1E1913;
}
.fc-side-icons {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.fc-side-icons span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
  color: #262019;
}

.fc-thread {
  position: relative;
  z-index: 3;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 4px 0 8px;
}
.fc-day {
  align-self: center;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.09em;
  color: rgba(34, 28, 22, 0.58);
}
.fc-msg-wrap {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.fc-msg-loop {
  width: 19px;
  height: 19px;
  margin-top: 12px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.fc-bubble {
  flex: 1;
  padding: 10px 11px;
  border-radius: 14px;
  background: rgba(251, 249, 245, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 18px rgba(45, 32, 16, 0.09);
}
.fc-sender {
  display: block;
  font-size: 8.5px;
  font-weight: 700;
  color: #6B6155;
  margin-bottom: 3px;
}
.fc-bubble p {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.38;
  color: #1D1813;
}
.fc-meta {
  padding-left: 25px;
  font-size: 8.5px;
  font-weight: 600;
  color: rgba(34, 28, 22, 0.65);
}
.fc-meta.is-done {
  color: #1D6843;
}
.fc-replies {
  padding-left: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.fc-reply {
  padding: 5.5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(45, 32, 16, 0.09);
  box-shadow: 0 2px 6px rgba(35, 24, 12, 0.07);
  font-size: 9.5px;
  font-weight: 650;
  color: #1F1912;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), transform 0.14s var(--ease);
}
.fc-reply:hover {
  background: #FFFFFF;
}
.fc-reply.is-picked {
  background: #1F1912;
  border-color: #1F1912;
  color: #FFF9F0;
}

/* ============================================================
   CARD 4: SMART TIME-OF-DAY APP (Lamp Morning Verse · 1:1 Reference)
   ============================================================ */
.fr-card--lamp {
  background: #FAF7F1;
  color: #172031;
  padding: calc(12 * var(--pt, 0.684px)) calc(18 * var(--pt, 0.684px)) calc(84 * var(--pt, 0.684px));
}
.fl-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: calc(16 * var(--pt, 0.684px));
}
.fl-date {
  display: block;
  margin-bottom: calc(13 * var(--pt, 0.684px));
  font-size: calc(11.5 * var(--pt, 0.684px));
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #4A5568;
}
.fl-verse-card {
  padding: calc(23 * var(--pt, 0.684px)) calc(22 * var(--pt, 0.684px)) calc(22 * var(--pt, 0.684px));
  border-radius: calc(22 * var(--pt, 0.684px));
  background: radial-gradient(96% 68% at 50% 0%, #FCE3B5 0%, #FDF4E2 54%, #FCF9F2 100%);
  border: 1px solid #EDE0C7;
  box-shadow: 0 calc(6 * var(--pt, 0.684px)) calc(20 * var(--pt, 0.684px)) rgba(120, 72, 16, 0.05);
}
.fl-verse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(8 * var(--pt, 0.684px));
  margin-bottom: calc(16 * var(--pt, 0.684px));
}
.fl-verse-head b {
  font-size: calc(11 * var(--pt, 0.684px));
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #B45B1E;
}
.fl-verse-head span {
  font-size: calc(12 * var(--pt, 0.684px));
  font-weight: 500;
  color: #525C6E;
}
.fl-verse-quote {
  margin: 0 0 calc(20 * var(--pt, 0.684px));
  font-family: 'Piazzolla', Georgia, serif;
  font-size: calc(24.5 * var(--pt, 0.684px));
  font-weight: 450;
  line-height: 1.44;
  letter-spacing: -0.012em;
  color: #172031;
}
.fl-verse-ref {
  margin: 0 0 calc(15 * var(--pt, 0.684px));
  font-size: calc(13 * var(--pt, 0.684px));
  color: #5A6475;
}
.fl-verse-ref b {
  color: #172031;
  font-weight: 700;
}
.fl-actions {
  display: flex;
  align-items: center;
  gap: calc(9 * var(--pt, 0.684px));
}
.fl-study-btn {
  display: inline-flex;
  align-items: center;
  gap: calc(7 * var(--pt, 0.684px));
  height: calc(38 * var(--pt, 0.684px));
  padding: 0 calc(17 * var(--pt, 0.684px));
  border-radius: 999px;
  background: #172133;
  color: #FFFFFF;
  font-size: calc(13.5 * var(--pt, 0.684px));
  font-weight: 600;
}
.fl-study-btn svg {
  width: calc(15 * var(--pt, 0.684px));
  height: calc(15 * var(--pt, 0.684px));
}
.fl-study-btn.is-done {
  background: #BD591D;
}
.fl-icon-btn {
  width: calc(38 * var(--pt, 0.684px));
  height: calc(38 * var(--pt, 0.684px));
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #DCE2EC;
  display: grid;
  place-items: center;
  color: #1E2738;
}
.fl-icon-btn svg {
  width: calc(15 * var(--pt, 0.684px));
  height: calc(15 * var(--pt, 0.684px));
}
.fl-icon-btn.is-saved {
  background: #172133;
  border-color: #172133;
  color: #FFFFFF;
}

.fl-bottom-zone {
  position: relative;
  margin-top: auto;
  padding-top: calc(16 * var(--pt, 0.684px));
}
.fl-reading-peek {
  padding: calc(15 * var(--pt, 0.684px)) calc(18 * var(--pt, 0.684px)) calc(12 * var(--pt, 0.684px));
  border-radius: calc(20 * var(--pt, 0.684px)) calc(20 * var(--pt, 0.684px)) calc(8 * var(--pt, 0.684px)) calc(8 * var(--pt, 0.684px));
  background: #FFFFFF;
  border: 1px solid #E5E9F0;
}
.fl-reading-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: calc(66 * var(--pt, 0.684px));
}
.fl-reading-head span {
  font-size: calc(11 * var(--pt, 0.684px));
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #4A5568;
}
.fl-reading-head small {
  font-size: calc(12 * var(--pt, 0.684px));
  color: #5A6475;
}
.fl-reading-bar {
  height: calc(6 * var(--pt, 0.684px));
  border-radius: 999px;
  background: #E2E6EE;
  overflow: hidden;
}
.fl-reading-bar i {
  display: block;
  width: 6%;
  height: 100%;
  border-radius: 999px;
  background: #BD591D;
}

.fl-dock {
  position: absolute;
  left: calc(-4 * var(--pt, 0.684px));
  right: calc(-4 * var(--pt, 0.684px));
  bottom: calc(22 * var(--pt, 0.684px));
  height: calc(56 * var(--pt, 0.684px));
  padding: calc(5 * var(--pt, 0.684px)) calc(12 * var(--pt, 0.684px)) calc(5 * var(--pt, 0.684px)) calc(5 * var(--pt, 0.684px));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(20, 29, 45, 0.08);
  box-shadow: 0 calc(8 * var(--pt, 0.684px)) calc(24 * var(--pt, 0.684px)) rgba(20, 29, 45, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #4E586B;
}
.fl-tab {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(2 * var(--pt, 0.684px));
  padding: 0 calc(8 * var(--pt, 0.684px));
  height: calc(46 * var(--pt, 0.684px));
  border-radius: 999px;
}
.fl-tab svg {
  width: calc(17 * var(--pt, 0.684px));
  height: calc(17 * var(--pt, 0.684px));
}
.fl-tab small,
.fl-scroll-col small {
  font-size: calc(10 * var(--pt, 0.684px));
  font-weight: 500;
  line-height: 1.1;
}
.fl-tab.is-on {
  min-width: calc(64 * var(--pt, 0.684px));
  background: #172133;
  color: #FFFFFF;
}
.fl-tab.is-on small {
  font-weight: 650;
}
.fl-scroll-col {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: calc(2 * var(--pt, 0.684px));
  margin-top: calc(-14 * var(--pt, 0.684px));
  color: #7E4D31;
}
.fl-orb {
  width: calc(48 * var(--pt, 0.684px));
  height: calc(48 * var(--pt, 0.684px));
  border-radius: 50%;
  background: #BD591D;
  border: calc(2.5 * var(--pt, 0.684px)) solid #FFFFFF;
  display: grid;
  place-items: center;
  box-shadow: 0 calc(4 * var(--pt, 0.684px)) calc(12 * var(--pt, 0.684px)) rgba(189, 89, 29, 0.34);
}
.fl-orb svg {
  width: calc(21 * var(--pt, 0.684px));
  height: calc(21 * var(--pt, 0.684px));
}

/* ============================================================
   CARD 5: QUICK QUESTION (Vintage Globe + Outdoor Hobby)
   ============================================================ */
.fr-card--question {
  background: #D3924E;
  color: #1F1409;
}
.fq-top-art {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 218px;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 84%, transparent 100%);
}
.fq-body {
  position: relative;
  z-index: 3;
  padding-top: 192px;
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.fq-who {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
}
.fq-who img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  background: #F6EFE2;
}
.fq-who span {
  font-size: 9.5px;
  font-weight: 550;
  color: rgba(31, 20, 9, 0.78);
}
.fq-body .fq-q-head {
  display: block;
  margin: 0 0 11px;
  font-size: 16.5px;
  font-weight: 780;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: #1C1208;
}
.fq-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fq-pill {
  padding: 7px 12px;
  border-radius: 999px;
  background: #EADAC2;
  border: 1px solid rgba(31, 20, 9, 0.08);
  font-size: 10px;
  font-weight: 600;
  color: #1F1409;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), transform 0.14s var(--ease);
}
.fq-pill--dashed {
  background: rgba(234, 218, 194, 0.25);
  border: 1px dashed rgba(31, 20, 9, 0.36);
}
.fq-pill.is-picked {
  background: #1F1409;
  border-color: #1F1409;
  border-style: solid;
  color: #FAF3E8;
}
.fq-skip-row {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.fq-skip {
  padding: 6.5px 13px;
  border-radius: 999px;
  background: rgba(234, 218, 194, 0.78);
  border: 1px solid rgba(31, 20, 9, 0.16);
  font-size: 9.5px;
  font-weight: 650;
  color: #1F1409;
}
.fq-skip.is-picked {
  background: #1F1409;
  color: #FAF3E8;
}

/* ============================================================
   AUTHENTIC MARCI ROOMS SCREEN (Ported 1:1 from marci-fe MessagesScreen)
   ============================================================ */
.rooms-screen {
  position: absolute;
  inset: 0;
  z-index: 11;
  padding: calc(12 * var(--pt, 0.684px)) calc(16 * var(--pt, 0.684px)) calc(94 * var(--pt, 0.684px));
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(125% 52% at 0% 8%, rgba(248, 224, 190, 0.56) 0%, rgba(254, 252, 248, 0) 64%),
    radial-gradient(90% 45% at 100% 34%, rgba(246, 227, 200, 0.32) 0%, rgba(254, 252, 248, 0) 65%),
    #FEFCF8;
  color: #1E1E1E;
  border-radius: 35px;
  overflow: hidden;
  overflow: clip;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.rooms-screen.is-shown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.rm-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(2 * var(--pt, 0.684px)) calc(8 * var(--pt, 0.684px)) calc(6 * var(--pt, 0.684px));
  font-size: calc(15 * var(--pt, 0.684px));
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #19140F;
}

.rm-header-block {
  margin-top: calc(15 * var(--pt, 0.684px));
  padding: 0 calc(6 * var(--pt, 0.684px));
}
.rm-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(10 * var(--pt, 0.684px));
}
.rm-title-row .rm-h {
  display: block;
  margin: 0;
  font-size: calc(30 * var(--pt, 0.684px));
  font-weight: 400;
  line-height: calc(33 * var(--pt, 0.684px));
  letter-spacing: calc(-0.75 * var(--pt, 0.684px));
  color: #1E1E1E;
}
.rm-search {
  width: calc(42 * var(--pt, 0.684px));
  height: calc(42 * var(--pt, 0.684px));
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 calc(3 * var(--pt, 0.684px)) calc(12 * var(--pt, 0.684px)) rgba(120, 60, 10, 0.07);
  display: grid;
  place-items: center;
  color: #1E1E1E;
  flex-shrink: 0;
}
.rm-search svg {
  width: calc(18 * var(--pt, 0.684px));
  height: calc(18 * var(--pt, 0.684px));
}
.rm-subtitle {
  margin: calc(4 * var(--pt, 0.684px)) 0 0;
  font-size: calc(13.5 * var(--pt, 0.684px));
  line-height: calc(18 * var(--pt, 0.684px));
  font-weight: 400;
  letter-spacing: calc(-0.27 * var(--pt, 0.684px));
  color: #9E9E9E;
}

.rm-eyebrow {
  display: flex;
  align-items: center;
  gap: calc(7 * var(--pt, 0.684px));
  margin-top: calc(18 * var(--pt, 0.684px));
  padding-left: calc(6 * var(--pt, 0.684px));
}
.rm-eyebrow span {
  font-size: calc(11 * var(--pt, 0.684px));
  font-weight: 500;
  letter-spacing: calc(1.32 * var(--pt, 0.684px));
  color: #A6A19A;
}
.rm-ai-pill {
  height: calc(15 * var(--pt, 0.684px));
  padding: 0 calc(5.5 * var(--pt, 0.684px));
  border-radius: 999px;
  background: #1E1E1E;
  color: #FFFFFF;
  font-style: normal;
  font-size: calc(8.5 * var(--pt, 0.684px));
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rm-eyebrow--friends {
  margin-top: calc(15 * var(--pt, 0.684px));
  margin-bottom: calc(12 * var(--pt, 0.684px));
}

.rm-crew-rail {
  margin: calc(9 * var(--pt, 0.684px)) calc(-16 * var(--pt, 0.684px)) 0;
  padding: calc(4 * var(--pt, 0.684px)) calc(20 * var(--pt, 0.684px));
  display: flex;
  align-items: flex-start;
  gap: calc(8 * var(--pt, 0.684px));
  overflow-x: auto;
  scrollbar-width: none;
}
.rm-crew-rail::-webkit-scrollbar {
  display: none;
}

.rm-crew {
  width: calc(84 * var(--pt, 0.684px));
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(6 * var(--pt, 0.684px));
  text-align: center;
  border-radius: calc(16 * var(--pt, 0.684px));
  transition: transform 0.18s var(--ease-spring);
}
.rm-crew:hover,
.rm-crew.is-picked {
  transform: translateY(-2px);
}
.rm-crew-face {
  width: calc(72 * var(--pt, 0.684px));
  height: calc(72 * var(--pt, 0.684px));
  border-radius: 50%;
  padding: calc(2.5 * var(--pt, 0.684px));
  background: #FFFFFF;
  box-shadow: 0 calc(2 * var(--pt, 0.684px)) calc(6 * var(--pt, 0.684px)) rgba(120, 60, 10, 0.12);
  display: block;
}
.rm-crew.is-picked .rm-crew-face {
  box-shadow: 0 calc(4 * var(--pt, 0.684px)) calc(12 * var(--pt, 0.684px)) rgba(228, 120, 10, 0.24), 0 0 0 1.5px #E8862B;
}
.rm-crew-face img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.rm-crew b {
  display: block;
  max-width: calc(80 * var(--pt, 0.684px));
  font-size: calc(12 * var(--pt, 0.684px));
  line-height: calc(16 * var(--pt, 0.684px));
  font-weight: 500;
  color: #1E1E1E;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rm-crew small {
  display: block;
  margin-top: calc(-4 * var(--pt, 0.684px));
  font-size: calc(10.5 * var(--pt, 0.684px));
  line-height: calc(14 * var(--pt, 0.684px));
  font-weight: 400;
  color: #9E9E9E;
}

.rm-card {
  border-radius: calc(26 * var(--pt, 0.684px));
  background: #FFFFFF;
  box-shadow: 0 calc(10 * var(--pt, 0.684px)) calc(30 * var(--pt, 0.684px)) rgba(120, 60, 10, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rm-divider {
  height: 1px;
  background: #F2EFEA;
  margin-left: calc(80 * var(--pt, 0.684px));
}

.rm-row {
  position: relative;
  width: 100%;
  min-height: calc(66 * var(--pt, 0.684px));
  padding: calc(10.5 * var(--pt, 0.684px)) calc(16 * var(--pt, 0.684px));
  display: flex;
  align-items: center;
  gap: calc(14 * var(--pt, 0.684px));
  text-align: left;
  background: #FFFFFF;
  transition: background 0.16s var(--ease);
}
.rm-row:hover,
.rm-row.is-picked {
  background: #FAF5EC;
}

/* Exact RoomFaceCluster (50pt slot, 2pt white rings) */
.rm-cluster {
  position: relative;
  width: calc(50 * var(--pt, 0.684px));
  height: calc(50 * var(--pt, 0.684px));
  flex-shrink: 0;
}
.rc-ring {
  position: absolute;
  padding: calc(2 * var(--pt, 0.684px));
  border-radius: 50%;
  background: #FFFFFF;
  display: block;
}
.rc-ring img,
.rc-init {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.rc-init {
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: 600;
}
.rc-init--pink {
  background: #FCE6EC;
  color: #BE3B64;
}
.rc-init--blue {
  background: #1481C8;
  color: #FFFFFF;
}

/* 2-face corner-to-corner (each = 34pt) */
.rm-cluster--2 .rc-ring {
  width: calc(34 * var(--pt, 0.684px));
  height: calc(34 * var(--pt, 0.684px));
}
.rm-cluster--2 .rc-init {
  font-size: calc(13 * var(--pt, 0.684px));
}
.rc-2-tl {
  left: 0;
  top: 0;
}
.rc-2-br {
  right: 0;
  bottom: 0;
}

/* 3-face cluster (each = 30pt: 2 top side-by-side + 1 centered below) */
.rm-cluster--3 .rc-ring {
  width: calc(30 * var(--pt, 0.684px));
  height: calc(30 * var(--pt, 0.684px));
}
.rm-cluster--3 .rc-init {
  font-size: calc(11.5 * var(--pt, 0.684px));
}
.rc-3-tl {
  left: 0;
  top: 0;
}
.rc-3-tr {
  right: 0;
  top: 0;
}
.rc-3-bc {
  left: calc(10 * var(--pt, 0.684px));
  bottom: 0;
}

.rm-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: calc(2 * var(--pt, 0.684px));
}
.rm-txt b {
  display: block;
  font-size: calc(16 * var(--pt, 0.684px));
  line-height: calc(20 * var(--pt, 0.684px));
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #1E1E1E;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rm-txt small {
  display: block;
  font-size: calc(13 * var(--pt, 0.684px));
  line-height: calc(17 * var(--pt, 0.684px));
  font-weight: 400;
  color: #9E9E9E;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rm-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}
.rm-meta time {
  font-size: calc(12 * var(--pt, 0.684px));
  line-height: calc(16 * var(--pt, 0.684px));
  font-weight: 400;
  color: #ABA69E;
}

.rm-more-pill {
  align-self: center;
  margin-top: calc(12 * var(--pt, 0.684px));
  height: calc(33 * var(--pt, 0.684px));
  padding: 0 calc(16 * var(--pt, 0.684px));
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: 0 calc(2 * var(--pt, 0.684px)) calc(8 * var(--pt, 0.684px)) rgba(120, 60, 10, 0.05);
  display: inline-flex;
  align-items: center;
  gap: calc(5 * var(--pt, 0.684px));
  font-size: calc(13.5 * var(--pt, 0.684px));
  font-weight: 500;
  color: #1E1E1E;
}
.rm-more-pill svg {
  width: calc(14 * var(--pt, 0.684px));
  height: calc(14 * var(--pt, 0.684px));
  color: #9E9E9E;
  transition: transform 0.2s var(--ease);
}
.rm-more-pill.is-expanded svg {
  transform: rotate(180deg);
}

.rm-fab {
  position: absolute;
  right: calc(18 * var(--pt, 0.684px));
  bottom: calc(95 * var(--pt, 0.684px));
  width: calc(54 * var(--pt, 0.684px));
  height: calc(54 * var(--pt, 0.684px));
  border-radius: 50%;
  background: #E4953C;
  color: #1F1408;
  box-shadow: 0 calc(8 * var(--pt, 0.684px)) calc(18 * var(--pt, 0.684px)) rgba(228, 149, 60, 0.36);
  display: grid;
  place-items: center;
  z-index: 6;
}
.rm-fab > svg {
  width: 44%;
  height: 44%;
}

/* ============================================================
   EXACT MARCI PILL BAR (Ported 1:1 from marci-fe PILL_BAR)
   239pt pill · 62pt height · 72pt rising MarciLoopBadge · 25pt bottom inset
   ============================================================ */
.marci-pill-bar-host {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(25 * var(--pt, 0.684px));
  height: calc(74 * var(--pt, 0.684px));
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 8;
}

.mpb-frame {
  position: relative;
  width: calc(239 * var(--pt, 0.684px));
  height: calc(74 * var(--pt, 0.684px));
  pointer-events: auto;
}

.mpb-pill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(62 * var(--pt, 0.684px));
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 calc(14 * var(--pt, 0.684px)) calc(15 * var(--pt, 0.684px)) rgba(80, 40, 10, 0.22);
}

.mpb-tab {
  position: absolute;
  bottom: 0;
  width: calc(67.5 * var(--pt, 0.684px));
  height: calc(62 * var(--pt, 0.684px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(2 * var(--pt, 0.684px));
}
.mpb-tab--home {
  left: calc(8 * var(--pt, 0.684px));
}
.mpb-tab--rooms {
  left: calc(163.5 * var(--pt, 0.684px));
}

.mpb-ico-wrap {
  position: relative;
  width: calc(22 * var(--pt, 0.684px));
  height: calc(22 * var(--pt, 0.684px));
  display: flex;
  align-items: center;
  justify-content: center;
}
.mpb-ico-wrap > svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mpb-badge {
  position: absolute;
  top: calc(-7.5 * var(--pt, 0.684px));
  right: calc(-11.5 * var(--pt, 0.684px));
  min-width: calc(18 * var(--pt, 0.684px));
  height: calc(18 * var(--pt, 0.684px));
  padding: 0 calc(4 * var(--pt, 0.684px));
  border-radius: 999px;
  background: #1E1E1E;
  color: #FFFFFF;
  border: 1px solid #FFFFFF;
  font-size: calc(10 * var(--pt, 0.684px));
  line-height: 1;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mpb-label {
  font-size: calc(10 * var(--pt, 0.684px));
  line-height: calc(13 * var(--pt, 0.684px));
  font-weight: 450;
  color: #6E6A64;
  letter-spacing: -0.01em;
}
.mpb-tab.is-active .mpb-label {
  font-weight: 700;
  color: #1E1E1E;
}

.mpb-marci {
  position: absolute;
  left: calc(83.5 * var(--pt, 0.684px));
  bottom: calc(2 * var(--pt, 0.684px));
  width: calc(72 * var(--pt, 0.684px));
  height: calc(72 * var(--pt, 0.684px));
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #EDEBE8;
  box-shadow: 0 calc(12 * var(--pt, 0.684px)) calc(13 * var(--pt, 0.684px)) rgba(80, 40, 10, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mpb-marci > svg {
  width: 56%;
  height: auto;
  display: block;
}

/* Side-Snapped Coach Module */
.coach-dock {
  position: absolute;
  right: -176px;
  bottom: 44px;
  width: 224px;
  z-index: 16;
  opacity: 0;
  transform: translateX(14px) scale(0.92);
  transition: opacity 0.28s var(--ease), transform 0.34s var(--ease-spring);
  pointer-events: none;
}
.coach-dock.is-open { opacity: 1; transform: translateX(0) scale(1); }

.cd-side-lug {
  position: absolute;
  left: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 24px;
  border-radius: 5px 0 0 5px;
  background: linear-gradient(180deg, #FFE09A 0%, #FAAE30 55%, #9D5B04 100%);
  box-shadow: 0 3px 0 #0B0A08;
}

.cd-body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 13px;
  background: linear-gradient(180deg, #1E1C19 0%, #141210 100%);
  border: 1px solid rgba(253, 194, 87, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 0 #090807, 0 22px 44px -10px rgba(0, 0, 0, 0.88);
}
.cd-av { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; border: 1.5px solid var(--marigold-1); flex-shrink: 0; }
.cd-text { min-width: 0; flex: 1; }
.cd-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 3px; }
.cd-top b { font-size: 12px; font-weight: 700; color: var(--marigold-1); }
.cd-wave { display: inline-flex; align-items: center; gap: 2px; height: 10px; }
.cd-wave i { width: 2px; border-radius: 2px; background: var(--marigold-1); animation: wavePulse 1.1s ease-in-out infinite alternate; }
.cd-wave i:nth-child(1) { height: 4px; animation-delay: 0s; }
.cd-wave i:nth-child(2) { height: 9px; animation-delay: 0.15s; }
.cd-wave i:nth-child(3) { height: 6px; animation-delay: 0.3s; }
.cd-wave i:nth-child(4) { height: 10px; animation-delay: 0.45s; }
.cd-wave i:nth-child(5) { height: 5px; animation-delay: 0.6s; }
@keyframes wavePulse { 0% { transform: scaleY(0.55); } 100% { transform: scaleY(1.1); } }
.cd-text p { margin: 0; font-size: 11.5px; line-height: 1.38; color: var(--ink); }

/* ============================================================
   12 REAL, TACTILE 3D LEGO PIECES
   ============================================================ */
.brick-field {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
}

.lego-piece {
  position: absolute;
  left: 0;
  top: 0;
  width: 122px;
  height: 122px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: pointer;
  pointer-events: none;
  will-change: transform, opacity;
  transform-origin: center center;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.72));
}
.stage[data-phase="hero"] .lego-piece,
.stage[data-phase="sandbox"] .lego-piece {
  touch-action: none;
  pointer-events: auto;
}
.lego-piece.is-dragging {
  cursor: grabbing;
  z-index: 38 !important;
  filter: drop-shadow(0 26px 38px rgba(0, 0, 0, 0.88));
}
.lego-piece.is-magnet-near {
  filter: drop-shadow(0 0 22px rgba(253, 194, 87, 0.62)) drop-shadow(0 18px 26px rgba(0, 0, 0, 0.72));
}
.lego-piece.is-sandbox-ready:hover {
  filter: drop-shadow(0 0 18px rgba(253, 194, 87, 0.42)) drop-shadow(0 18px 26px rgba(0, 0, 0, 0.72));
}
.lego-piece.is-hidden-under-screen {
  pointer-events: none;
}

.piece-svg {
  position: absolute;
  left: -18px;
  top: -18px;
  width: 158px;
  height: 166px;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.piece-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 15px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  color: #F7F6F2;
}
.lego-piece[data-ink="dark"] .piece-inner { color: #191612; }
.lego-piece[data-ink="gold"] .piece-inner { color: #FDC257; }

.piece-inner > b {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-top: 2px;
  white-space: nowrap;
}
.piece-inner > small {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.15;
  opacity: 0.78;
  white-space: nowrap;
}

.p-tile {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.24);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.34), 0 1px 0 rgba(255, 255, 255, 0.18);
}
.p-tile img { width: 100%; height: 100%; object-fit: cover; }
.p-tile--light { background: #FFFFFF; padding: 6px; }
.p-tile--light img { object-fit: contain; }
.p-tile--white { background: #FFFFFF; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16); }
.p-tile--cal { background: #FFFFFF; color: #1B56DB; border-top: 7px solid #D94436; }
.p-tile--cal b { font-size: 15px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.p-tile--cam { background: rgba(255, 255, 255, 0.13); color: #F7F6F2; }
.p-tile--granola { background: #E4F5DC; }
.p-tile--rose { background: rgba(255, 198, 224, 0.16); color: #FFD3E6; }
.p-tile--violet { background: rgba(196, 190, 255, 0.16); color: #DDD9FF; }

.p-people { display: inline-flex; align-items: center; height: 36px; }
.p-people img,
.p-people i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #F5A623;
  object-fit: cover;
  margin-left: -8px;
}
.p-people img:first-child { margin-left: 0; }
.p-people i {
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  background: #231400;
  color: #FDC257;
}

.p-char {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.36);
}

/* ============================================================
   COPY OVERLAYS
   ============================================================ */
.copy-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.scene-copy {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.28s var(--ease), transform 0.34s var(--ease-spring), visibility 0.28s var(--ease);
  pointer-events: none;
}
.scene-copy.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scene-copy a,
.scene-copy button {
  pointer-events: auto;
}

.scene-copy--center {
  left: 50%;
  top: 50%;
  width: min(630px, calc(100vw - 40px));
  transform: translate(-50%, calc(-50% + 16px));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.scene-copy--center.is-active {
  transform: translate(-50%, -50%);
}

.hero-mascot-stud {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hms-studs { display: flex; gap: 16px; margin-bottom: -1px; }
.hms-studs i {
  width: 20px;
  height: 8px;
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(90deg, #FFE29E 0%, #FAAE30 50%, #AD6A04 100%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.55);
}
.hms-box {
  width: 78px;
  height: 78px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #3A2916 0%, #19130D 100%);
  border: 2px solid #FAAE30;
  box-shadow: 0 6px 0 #9D5F04, 0 22px 46px -8px rgba(228, 120, 10, 0.52);
}
.hms-box img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transform: scale(1.08); }

.display-title {
  margin: 0 0 24px;
  font-size: clamp(2.15rem, 4.3vw, 3.4rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.t-ink { display: block; color: var(--ink); }
.display-title .t-lo {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.0rem, 1.55vw, 1.18rem);
  font-weight: 450;
  line-height: 1.42;
  letter-spacing: -0.015em;
  color: var(--lo);
  max-width: 48ch;
  margin-inline: auto;
  text-wrap: balance;
}

.hero-cue {
  margin: 16px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--lo);
}
.cue-magnet-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--marigold-1);
  box-shadow: 0 0 10px rgba(253, 194, 87, 0.85);
  animation: cuePulse 2.2s ease-in-out infinite;
}
@keyframes cuePulse {
  0%, 100% { transform: scale(0.85); opacity: 0.65; }
  50% { transform: scale(1.22); opacity: 1; }
}

/* Left-Side Editorial Captions */
.scene-copy--side {
  left: clamp(24px, 5vw, 80px);
  top: 50%;
  width: min(390px, 36vw);
  transform: translateY(calc(-50% + 16px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.scene-copy--side.is-active {
  transform: translateY(-50%);
}

.scene-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--marigold-1);
  letter-spacing: -0.01em;
}

.scene-title {
  margin: 0 0 18px;
  font-size: clamp(1.65rem, 2.75vw, 2.3rem);
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: -0.034em;
}
.scene-title .t-lo {
  display: block;
  margin-top: 10px;
  font-size: clamp(0.96rem, 1.26vw, 1.08rem);
  font-weight: 450;
  line-height: 1.48;
  letter-spacing: -0.012em;
  color: var(--lo);
}

.sandbox-live-note {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(253, 194, 87, 0.08);
  border: 1px solid rgba(253, 194, 87, 0.28);
  font-size: 12.5px;
  line-height: 1.42;
  color: var(--marigold-1);
  font-weight: 550;
}

/* Unified Dark Formula Chips */
.formula-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
}

.f-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 9px;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 3px 0 #09090C;
}
.f-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--dot, #FDC257); flex-shrink: 0; }
.f-plus { font-size: 12px; font-weight: 600; color: var(--muted); }
.step-hint { font-size: 12.5px; font-weight: 500; color: var(--marigold-1); }

/* Feed Card Selector Pills */
.feed-step-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.fp-pill {
  padding: 5.5px 11px;
  border-radius: 999px;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.fp-pill:hover { border-color: rgba(255, 255, 255, 0.28); color: var(--ink); }
.fp-pill.is-on {
  background: rgba(253, 194, 87, 0.15);
  border-color: rgba(253, 194, 87, 0.55);
  color: var(--marigold-1);
}

.dead-subs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; max-width: 560px; }
.dead-subs span { padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.09); font-size: 12px; color: #857F77; }
.dead-subs s { text-decoration-color: rgba(253, 194, 87, 0.55); }

/* ============================================================
   FINALE COLOPHON BAR
   ============================================================ */
.colophon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  padding: 16px clamp(18px, 3.6vw, 40px);
  background: linear-gradient(to top, rgba(7, 7, 9, 0.95) 0%, rgba(7, 7, 9, 0.65) 70%, transparent 100%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease);
  pointer-events: none;
}
.colophon.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; font-size: 12.5px; color: var(--lo); }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.foot-links a { transition: color 0.2s var(--ease); }
.foot-links a:hover { color: var(--ink); }
.foot-soc { display: inline-flex; align-items: center; }

/* ============================================================
   RESPONSIVE · TABLET & MOBILE
   ============================================================ */
@media (max-width: 1180px) {
  .coach-dock { right: -110px; bottom: 24px; width: 214px; }
  .hero-pair-preview { width: 130px; height: 196px; }
}

@media (max-width: 860px) {
  .hero-pair-preview { display: none; }
  .top-link { display: none; }
  .cta-nav-dock { display: none; }

  .topbar {
    padding: 12px 16px;
    background: linear-gradient(to bottom, rgba(7, 7, 9, 0.72) 0%, transparent 100%);
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
  }
  body:not([data-phase="hero"]) .topbar {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
  }

  .scene-rail { right: 5px; gap: 7px; transition: opacity 0.2s var(--ease); }
  body[data-phase="sandbox"] .scene-rail { opacity: 0; pointer-events: none; }
  .rail-dot span { display: none; }

  .fr-card { padding: 8px 11px 50px; }
  .fw-top-art { height: 144px; }
  .fw-quote .fw-q-head { font-size: 13.5px; }
  .fn-photo { min-height: 92px; }
  .fn-story-body .fn-s-head { font-size: 11.5px; }
  .fg-wrap { margin: 5px -8px 4px; gap: 5px; }
  .fg-tap-btn { height: 30px; font-size: 10px; }
  .fc-bubble p { font-size: 9.5px; line-height: 1.3; }
  .fc-reply { padding: 4.5px 8px; font-size: 8.5px; }
  .fq-top-art { height: 162px; }
  .fq-body .fq-q-head { font-size: 13.5px; margin-bottom: 8px; }
  .fq-pill { padding: 5.5px 9px; font-size: 9px; }

  .scene-copy--center {
    width: min(560px, calc(100vw - 44px));
  }
  .hero-cue {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px 8px;
    font-size: 12px;
  }

  .scene-copy--side {
    left: 50%;
    top: 12px;
    width: min(440px, calc(100vw - 32px));
    transform: translate(-50%, 8px);
    align-items: center;
    text-align: center;
  }
  .scene-copy--side.is-active { transform: translate(-50%, 0); }
  .scene-kicker { margin-bottom: 2px; font-size: 10.5px; }
  .scene-title { margin-bottom: 6px; font-size: clamp(1.12rem, 4.35vw, 1.34rem); line-height: 1.13; }
  .scene-title .t-lo { margin-top: 3px; font-size: 11px; line-height: 1.3; }
  .sandbox-live-note { display: none; }

  .formula-row {
    justify-content: center;
    gap: 4px;
    margin-bottom: 0;
  }
  .f-chip {
    gap: 4.5px;
    padding: 3.5px 7.5px;
    border-radius: 7px;
    font-size: 10.5px;
  }
  .f-chip i {
    width: 5.5px;
    height: 5.5px;
  }
  .f-plus {
    font-size: 10px;
  }
  .step-hint {
    display: none;
  }

  .feed-step-pills {
    justify-content: center;
    gap: 4px;
    margin-bottom: 0;
  }
  .fp-pill {
    padding: 3.5px 8px;
    font-size: 10.5px;
  }

  .stage[data-phase="blocks"] .bp-label {
    bottom: 14px;
    font-size: 10.5px;
    padding: 4px 11px;
  }
  .stage[data-phase="sandbox"] .bp-label {
    bottom: -34px;
    font-size: 10.5px;
    padding: 4px 11px;
  }

  .sandbox-underbar {
    bottom: -44px;
  }
  .su-make-btn {
    padding: 8.5px 16px;
    font-size: 12px;
  }
  .su-clear-btn {
    padding: 8.5px 13px;
    font-size: 11px;
  }

  .coach-dock {
    right: auto;
    left: 50%;
    bottom: -10px;
    width: 234px;
    transform: translate(-50%, 10px) scale(0.92);
  }
  .coach-dock.is-open { transform: translate(-50%, 0) scale(0.95); }
  .cd-side-lug { display: none; }

  .scene-copy--finale { top: 45%; }
  .dead-subs { gap: 5px; margin-bottom: 12px; }
  .dead-subs span { font-size: 11px; padding: 4px 9px; }

  .foot-row { justify-content: center; text-align: center; font-size: 11px; gap: 6px 14px; }
  .foot-links { justify-content: center; gap: 8px 12px; }
}

@media (max-width: 480px) {
  .display-title { font-size: 1.9rem; }
  .display-title .t-lo { font-size: 0.93rem; }
  .hero-mascot-stud { margin-bottom: 12px; }
  .hms-box { width: 66px; height: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cd-wave i,
  .fg-bird,
  .snap-burst.is-pop { animation: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
