:root {
  --bg: #fff8fb;
  --soft-pink: #f9dce8;
  --blush: #f3b6cf;
  --accent: #e986ae;
  --berry: #8d3f61;
  --text: #2b2227;
  --paper: #fffdfd;
  --muted: #7a6670;
  --line: rgba(141, 63, 97, 0.12);
  --shadow: 0 18px 50px rgba(141, 63, 97, 0.08);
  --radius: 18px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", ui-sans-serif, sans-serif;
  --hand: "Caveat", cursive;
  --game: "Orbitron", "Share Tech Mono", ui-sans-serif, sans-serif;
  --game-mono: "Share Tech Mono", ui-monospace, monospace;
  --market: "IBM Plex Sans", "DM Sans", ui-sans-serif, sans-serif;
  --market-mono: "IBM Plex Mono", "Share Tech Mono", ui-monospace, monospace;
  --nav-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 10% -10%, #ffe8f1 0%, transparent 55%),
    radial-gradient(900px 600px at 100% 0%, #f7e4ee 0%, transparent 45%),
    linear-gradient(180deg, #fff8fb 0%, #fff5f9 40%, #fff8fb 100%);
  background-attachment: fixed;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  z-index: 0;
}

#app {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
}

#app.page-enter {
  animation: page-fade 0.35s ease both;
}

@keyframes page-fade {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #app.page-enter {
    animation: none;
  }
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--soft-pink);
  color: var(--berry);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- typography ---------- */
.serif {
  font-family: var(--serif);
}

.hand {
  font-family: var(--hand);
}

h1,
h2,
h3,
.display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ---------- shared UI ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition:
    transform 0.18s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--berry);
  color: #fffafc;
  box-shadow: 0 10px 28px rgba(141, 63, 97, 0.22);
}

.btn-primary:hover {
  background: #7a3454;
}

.btn-ghost {
  background: rgba(255, 253, 253, 0.72);
  border-color: var(--line);
  color: var(--berry);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--blush);
  background: #fff;
}

.btn-soft {
  background: var(--soft-pink);
  color: var(--berry);
}

.btn-soft:hover {
  background: var(--blush);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 253, 0.75);
  color: var(--text);
  transition:
    transform 0.18s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.chip:hover,
.chip.is-active {
  border-color: var(--accent);
  background: #fff;
  transform: translateY(-1px);
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 0.82rem;
}

.page {
  position: relative;
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 1.5rem) 0 7rem;
}

.page-narrow {
  width: min(720px, calc(100% - 2rem));
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(5.5rem + var(--safe-bottom));
  transform: translateX(-50%) translateY(12px);
  background: var(--paper);
  color: var(--berry);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  box-shadow: var(--shadow);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  font-size: 0.9rem;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- nav ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  background: rgba(255, 248, 251, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  z-index: 50;
  transition: border-color 0.2s ease;
}

.site-nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav-brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--berry);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a,
.nav-links button {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links button:hover,
.nav-links a.is-active {
  color: var(--berry);
  background: rgba(249, 220, 232, 0.55);
}

.nav-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.heart-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 253, 253, 0.9);
  border: 1px solid var(--line);
  color: var(--berry);
  font-size: 0.85rem;
  text-decoration: none;
}

.mobile-nav {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(0.75rem + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.15rem;
  padding: 0.45rem;
  border-radius: 22px;
  background: rgba(255, 253, 253, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 50;
  backdrop-filter: blur(16px);
}

.mobile-nav a,
.mobile-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.45rem 0.2rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.68rem;
}

.mobile-nav .nav-ico {
  font-size: 1rem;
  line-height: 1;
}

.mobile-nav a.is-active,
.mobile-nav button.is-active {
  color: var(--berry);
  background: var(--soft-pink);
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }

  .mobile-nav {
    display: none;
  }

  .page {
    padding-bottom: 4rem;
  }

  .toast {
    bottom: 2rem;
  }
}

/* ---------- invitation / 3d scene ---------- */
.scene-3d {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.scene-depth {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  transform-style: preserve-3d;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform 0.35s ease-out;
}

.orb-a {
  width: 280px;
  height: 280px;
  left: 8%;
  top: 18%;
  background: radial-gradient(circle, rgba(243, 182, 207, 0.55), transparent 70%);
  transform: translateZ(-120px);
}

.orb-b {
  width: 220px;
  height: 220px;
  right: 10%;
  bottom: 16%;
  background: radial-gradient(circle, rgba(233, 134, 174, 0.35), transparent 70%);
  transform: translateZ(-60px);
}

.orb-c {
  width: 140px;
  height: 140px;
  right: 28%;
  top: 12%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7), transparent 70%);
  transform: translateZ(40px);
}

.plane {
  position: absolute;
  border: 1px solid rgba(141, 63, 97, 0.08);
  border-radius: 28px;
  background: rgba(255, 253, 253, 0.25);
}

.plane-back {
  width: min(640px, 80vw);
  height: 320px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -54%) translateZ(-160px) rotateX(12deg);
}

.plane-mid {
  width: min(520px, 70vw);
  height: 260px;
  left: 50%;
  top: 50%;
  transform: translate(-48%, -48%) translateZ(-80px) rotateX(8deg) rotateY(-6deg);
}

.invite-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(249, 220, 232, 0.55), transparent 55%),
    radial-gradient(700px 420px at 90% 80%, rgba(243, 182, 207, 0.28), transparent 50%),
    linear-gradient(165deg, #1a1218 0%, #2b2227 42%, #4a2f3c 100%);
}

.invite-screen .invite-card,
.invite-screen .invite-hook,
.invite-screen .invite-kicker {
  color: #f8eef3;
}

.invite-stage {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}

.invite-card,
.invite-card-3d {
  width: min(520px, 100%);
  background: rgba(255, 253, 253, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 2rem 1.5rem 1.6rem;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-align: center;
  backdrop-filter: blur(18px);
  transform: translateZ(40px);
  animation: rise-in 0.7s ease both;
}

.invite-kicker {
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 1rem;
}

.invite-card h1 {
  font-size: clamp(1.55rem, 4.6vw, 2.25rem);
  margin: 0 0 1rem;
  color: #fff8fb;
  display: grid;
  gap: 0.45rem;
}

.invite-card h1 .line-soft {
  display: block;
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.78;
}

.invite-card h1 .line-hard {
  display: block;
  color: #ffe4ef;
}

.invite-hook {
  color: rgba(255, 240, 246, 0.78);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
}

.invite-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.invite-screen .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 240, 246, 0.75);
}

.invite-screen .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-3d {
  box-shadow:
    0 12px 28px rgba(141, 63, 97, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.25) inset;
  transform: translateZ(20px);
}

.invite-screen.is-exiting .invite-stage,
.mindset-screen.is-exiting .mindset-stage {
  animation: fold-away 0.55s ease forwards;
}

.particle-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
  animation: particle-fly 0.9s ease-out forwards;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fold-away {
  to {
    opacity: 0;
    transform: scale(0.92) translateY(-20px) translateZ(-40px);
    filter: blur(4px);
  }
}

@keyframes particle-fly {
  to {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

/* ---------- mindset still ---------- */
.mindset-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem 3rem;
  position: relative;
  overflow: hidden;
  background: #0d0a0c;
}

.film-letterbox {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#050405 0 7%, transparent 7% 93%, #050405 93%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
  z-index: 3;
}

.mindset-stage {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}

.still-frame {
  width: 100%;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #1b1418;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: translateZ(30px);
  position: relative;
}

.still-chrome {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 230, 238, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--sans);
}

.still-body {
  position: relative;
  padding: 1.6rem 1.25rem 1.8rem;
  min-height: 340px;
  display: grid;
  place-items: center;
  gap: 1.25rem;
  background:
    radial-gradient(600px 280px at 50% 20%, rgba(141, 63, 97, 0.35), transparent 60%),
    linear-gradient(160deg, #2a1c24 0%, #120e11 55%, #1a1218 100%);
}

.book-3d {
  width: min(340px, 86%);
  height: 160px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-18deg) rotateX(8deg);
  transition: transform 0.25s ease-out;
  margin-bottom: 0.5rem;
}

.book-cover {
  position: absolute;
  inset: 8% 42% 8% 8%;
  background: linear-gradient(145deg, #8d3f61, #5c2943);
  border-radius: 3px 0 0 3px;
  transform: translateZ(-8px);
  box-shadow: -8px 12px 24px rgba(0, 0, 0, 0.35);
}

.book-page {
  position: absolute;
  top: 6%;
  bottom: 6%;
  width: 46%;
  padding: 0.7rem 0.75rem;
  background: linear-gradient(180deg, #fffdfb, #f4ebe6);
  color: #2b2227;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.left-page {
  left: 4%;
  transform: rotateY(18deg) translateZ(4px);
  transform-origin: right center;
  border-radius: 2px 0 0 2px;
}

.right-page {
  right: 4%;
  transform: rotateY(-8deg) translateZ(10px);
  transform-origin: left center;
  border-radius: 0 2px 2px 0;
}

.page-num {
  margin: 0 0 0.45rem;
  font-size: 0.65rem;
  color: #8a7a80;
}

.page-print {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.78rem;
  line-height: 1.35;
}

.page-print.emphasis {
  font-style: italic;
  color: #8d3f61;
}

.still-quote {
  margin: 0;
  text-align: center;
  max-width: 34rem;
  color: #f8eef3;
}

.still-quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  line-height: 1.35;
}

.still-punch {
  margin-top: 0.45rem !important;
  color: #ffd0e0;
  font-size: clamp(1.25rem, 3.6vw, 1.8rem) !important;
}

.still-credit {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 230, 238, 0.45);
}

.still-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ---------- entrance ---------- */
.entrance {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem 6rem;
  text-align: center;
}

.entrance-card {
  background: rgba(255, 253, 253, 0.82);
  color: var(--text);
  border: 1px solid var(--line);
}

.entrance h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin: 0 0 1.25rem;
  color: var(--berry);
  animation: rise-in 0.7s ease both;
}

.entrance-paths {
  display: grid;
  gap: 0.65rem;
  width: min(360px, 100%);
  margin: 0 auto;
}

.entrance-paths .btn {
  width: 100%;
  animation: rise-in 0.6s ease both;
}

.entrance-paths .btn:nth-child(1) {
  animation-delay: 0.12s;
}
.entrance-paths .btn:nth-child(2) {
  animation-delay: 0.18s;
}
.entrance-paths .btn:nth-child(3) {
  animation-delay: 0.24s;
}
.entrance-paths .btn:nth-child(4) {
  animation-delay: 0.3s;
}

.greeting {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

/* ---------- clean home ---------- */
.home-clean {
  width: min(880px, calc(100% - 2rem));
  padding-top: calc(var(--nav-h) + 2.5rem);
}

.home-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.home-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-intro h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 6.5vw, 3.6rem);
  color: var(--berry);
  line-height: 1.08;
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
}

.home-lede {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.home-pillars {
  display: grid;
  gap: 1rem;
  perspective: 1000px;
}

@media (min-width: 760px) {
  .home-pillars {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }
}

.pillar {
  position: relative;
  display: grid;
  gap: 0.65rem;
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 253, 253, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  overflow: hidden;
}

.pillar-depth {
  position: absolute;
  inset: auto -20% -40% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 134, 174, 0.28), transparent 70%);
  transform: translateZ(-20px);
  pointer-events: none;
}

.pillar:hover {
  transform: translateY(-4px) rotateX(2deg);
  border-color: var(--blush);
  box-shadow: 0 24px 50px rgba(141, 63, 97, 0.12);
}

.pillar-num {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.pillar h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  color: var(--berry);
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.pillar-cta {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--berry);
  font-weight: 500;
}

.home-promise {
  text-align: center;
  margin: 2.5rem auto 1.5rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  color: var(--berry);
  line-height: 1.4;
  max-width: 28rem;
}

.home-secondary {
  justify-content: center;
}

.deck-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.question-card-3d {
  transform: perspective(900px) rotateX(2deg);
  transition: transform 0.25s ease;
}

.question-card-3d:hover {
  transform: perspective(900px) rotateX(0deg) translateY(-2px);
}

/* legacy home map kept for corners routes */
.home-hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

.home-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--berry);
  margin: 0.25rem 0 0.5rem;
}

.corner-map {
  position: relative;
  min-height: 70vh;
  margin: 0.5rem auto 2rem;
  width: min(980px, 100%);
}

.corner {
  position: absolute;
  width: min(240px, 72vw);
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(255, 253, 253, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  animation: float-y 6s ease-in-out infinite;
  text-decoration: none;
  color: inherit;
}

.corner:hover {
  transform: translateY(-4px) rotate(var(--rot, 0deg)) scale(1.02);
  border-color: var(--blush);
  box-shadow: 0 22px 48px rgba(141, 63, 97, 0.14);
}

.corner .emoji {
  font-size: 1.35rem;
  display: block;
  margin-bottom: 0.35rem;
}

.corner strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 550;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.corner span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.corner:nth-child(odd) {
  animation-duration: 7.2s;
}
.corner:nth-child(3n) {
  animation-duration: 5.6s;
  animation-delay: -1.5s;
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0) rotate(var(--rot, 0deg));
  }
  50% {
    transform: translateY(-8px) rotate(var(--rot, 0deg));
  }
}

.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ---------- stories / explore ---------- */
.section-head {
  margin-bottom: 1.5rem;
}

.section-head h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--berry);
  margin: 0 0 0.4rem;
}

.mood-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.75rem;
}

.story-list {
  display: grid;
  gap: 1rem;
}

.story-preview {
  display: grid;
  gap: 0.65rem;
  padding: 1.25rem 1.2rem;
  border-radius: 24px;
  background: rgba(255, 253, 253, 0.78);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.story-preview:hover {
  transform: translateY(-2px);
  border-color: var(--blush);
  box-shadow: var(--shadow);
}

.story-preview h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.tag {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(249, 220, 232, 0.55);
  color: var(--berry);
}

.question-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--berry);
}

/* ---------- article ---------- */
.article-shell {
  position: relative;
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 1.75rem) 0 7rem;
}

.article-kicker {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.article-shell h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  color: var(--berry);
  margin: 0 0 1rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.prose {
  font-size: 1.08rem;
  line-height: 1.8;
}

.prose p {
  margin: 0 0 1.35rem;
}

.prose .pull {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--berry);
  border-left: 2px solid var(--blush);
  padding-left: 1rem;
  margin: 1.75rem 0;
}

.reader-pause {
  margin: 2rem 0;
  padding: 1.25rem;
  border-radius: 22px;
  background: rgba(249, 220, 232, 0.28);
  border: 1px dashed var(--blush);
}

.reader-pause h3 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
}

.pause-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.annotation {
  margin: -0.5rem 0 1.5rem;
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--accent);
  transform: rotate(-1.5deg);
}

.constellation {
  position: relative;
  height: 140px;
  margin: 1.5rem 0 2rem;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 40%, rgba(233, 134, 174, 0.35), transparent 28%),
    radial-gradient(circle at 70% 30%, rgba(243, 182, 207, 0.4), transparent 25%),
    linear-gradient(180deg, #1f1520, #3a2433);
}

.constellation .star {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffe8f2;
  box-shadow: 0 0 8px #ffd0e4;
  animation: twinkle 2.8s ease-in-out infinite;
}

.constellation .prompt {
  position: absolute;
  inset: auto 1rem 1rem;
  color: #ffeef5;
  font-family: var(--serif);
  font-size: 1.1rem;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.4);
  }
}

.floating-react {
  position: sticky;
  bottom: 6.5rem;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  margin-top: -3rem;
}

.floating-react .btn {
  pointer-events: auto;
  box-shadow: var(--shadow);
}

@media (min-width: 860px) {
  .floating-react {
    bottom: 1.5rem;
  }
}

.think-alike,
.rabbit-hole {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.think-alike h2,
.rabbit-hole h2 {
  margin: 0 0 0.4rem;
  font-size: 1.8rem;
  color: var(--berry);
}

.path-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.path-grid a,
.path-grid button {
  text-align: left;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 253, 0.8);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    transform 0.18s ease;
}

.path-grid a:hover,
.path-grid button:hover {
  border-color: var(--blush);
  transform: translateX(3px);
}

.response-box {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
}

.response-box textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
  background: var(--paper);
  color: var(--text);
}

.saved-thoughts {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.saved-thought {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(249, 220, 232, 0.28);
  font-size: 0.95rem;
}

/* ---------- questions machine ---------- */
.machine {
  margin: 1.5rem auto;
  width: min(560px, 100%);
  padding: 2rem 1.4rem;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 253, 253, 0.95), rgba(249, 220, 232, 0.35));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}

.machine .question {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 4vw, 2rem);
  color: var(--berry);
  min-height: 4.5rem;
  display: grid;
  place-items: center;
  margin: 1rem 0 1.5rem;
}

.machine-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

/* ---------- about / secret / quiz ---------- */
.about-block {
  font-size: 1.08rem;
  line-height: 1.8;
}

.about-block p {
  margin: 0 0 1.25rem;
}

.closing-line {
  margin: 2.5rem 0 1.5rem;
  text-align: center;
}

.closing-line h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--berry);
  margin: 0 0 0.35rem;
}

.closing-line p {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0;
}

.secret-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.secret-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--berry);
}

.quiz-card {
  padding: 1.4rem;
  border-radius: 22px;
  background: rgba(255, 253, 253, 0.85);
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}

.quiz-card h3 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.quiz-options {
  display: grid;
  gap: 0.55rem;
}

.quiz-options button {
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.quiz-options button.is-selected,
.quiz-options button:hover {
  border-color: var(--accent);
  background: rgba(249, 220, 232, 0.4);
}

.surprise-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 248, 251, 0.92);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  z-index: 70;
  text-align: center;
  padding: 1.5rem;
}

.surprise-overlay h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--berry);
  margin: 0 0 0.5rem;
}

/* ---------- hearts ---------- */
.click-heart {
  position: absolute;
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 1.1rem;
  z-index: 5;
  opacity: 0.55;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  animation: float-y 5s ease-in-out infinite;
}

.click-heart:hover {
  opacity: 1;
  transform: scale(1.15);
}

.click-heart.is-popped {
  pointer-events: none;
  animation: heart-pop 0.55s ease forwards;
}

@keyframes heart-pop {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  40% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

#heart-trail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
}

.trail-heart {
  position: absolute;
  font-size: 0.75rem;
  color: var(--accent);
  animation: trail-fade 0.8s ease forwards;
}

@keyframes trail-fade {
  to {
    transform: translateY(-18px);
    opacity: 0;
  }
}

/* ---------- footer bits ---------- */
.settings-strip {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.loading-copy {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.4rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state h1 {
  color: var(--berry);
  font-size: clamp(2rem, 5vw, 3rem);
}

/* desktop corner positions */
@media (min-width: 760px) {
  .corner[data-i="0"] {
    left: 4%;
    top: 6%;
    --rot: -3deg;
  }
  .corner[data-i="1"] {
    right: 8%;
    top: 2%;
    --rot: 2deg;
  }
  .corner[data-i="2"] {
    left: 18%;
    top: 34%;
    --rot: -1deg;
  }
  .corner[data-i="3"] {
    right: 4%;
    top: 28%;
    --rot: 3deg;
  }
  .corner[data-i="4"] {
    left: 6%;
    top: 62%;
    --rot: 1deg;
  }
  .corner[data-i="5"] {
    right: 22%;
    top: 58%;
    --rot: -2deg;
  }
  .corner[data-i="6"] {
    left: 38%;
    top: 78%;
    --rot: 2deg;
  }
  .corner[data-i="7"] {
    right: 6%;
    top: 78%;
    --rot: -3deg;
  }
  .corner[data-i="8"] {
    left: 42%;
    top: 18%;
    --rot: 1deg;
  }
  .corner[data-i="9"] {
    left: 55%;
    top: 42%;
    --rot: -1deg;
  }
}

@media (max-width: 759px) {
  .corner-map {
    display: grid;
    gap: 0.85rem;
    min-height: auto;
  }

  .corner {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100%;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Question Cards app ===== */
.qc-shell { width: min(920px, calc(100% - 2rem)); margin: 0 auto; padding: calc(var(--nav-h) + 1.5rem) 0 7rem; }
.qc-progress { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }
.qc-step h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); color: var(--berry); margin: 0 0 0.5rem; }
.qc-step .lede { color: var(--muted); margin-bottom: 1.25rem; }
.choice-grid { display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .choice-grid.cols-2 { grid-template-columns: 1fr 1fr; } .choice-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.choice-card { text-align: left; padding: 1rem 1.05rem; border-radius: 18px; border: 1.5px solid var(--line); background: rgba(255,253,253,.88); cursor: pointer; transition: border-color .2s, transform .18s, box-shadow .2s, background .2s; }
.choice-card:hover, .choice-card:focus-visible { border-color: var(--blush); outline: none; box-shadow: var(--shadow); }
.choice-card.is-selected { border-color: var(--berry); background: rgba(249,220,232,.45); box-shadow: 0 0 0 1px var(--berry); }
.choice-card:disabled { opacity: .45; cursor: not-allowed; }
.choice-card strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--berry); margin-bottom: .25rem; }
.choice-card span { color: var(--muted); font-size: .9rem; }
.choice-ico { font-size: 1.25rem; display: block; margin-bottom: .35rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 1rem; }
.step-nav { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; align-items: center; }
.stepper { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line); border-radius: 999px; padding: .25rem; background: #fff; }
.stepper button { width: 44px; height: 44px; border-radius: 999px; font-size: 1.25rem; background: var(--soft-pink); color: var(--berry); }
.stepper button:disabled { opacity: .35; }
.stepper input { width: 3.2rem; text-align: center; border: none; font-size: 1.05rem; background: transparent; color: var(--text); }
.stepper .stepper-label { min-width: 7.5rem; text-align: center; font-size: .95rem; color: var(--berry); font-weight: 500; }
.optional-label { font-size: .85rem; color: var(--muted); margin: 1.25rem 0 .4rem; }
.result-card { min-height: 280px; display: grid; align-content: center; gap: .85rem; padding: 1.75rem 1.4rem; border-radius: 24px; background: rgba(255,253,253,.92); border: 1px solid var(--line); box-shadow: var(--shadow); touch-action: pan-y; }
.result-card h2 { margin: 0; font-size: clamp(1.45rem, 4vw, 2.1rem); color: var(--berry); line-height: 1.25; }
.result-follow { font-family: var(--serif); font-style: italic; color: var(--muted); margin: 0; }
.result-meta { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .82rem; color: var(--muted); }
.result-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.1rem; }
.bank-toolbar { display: grid; gap: .75rem; margin-bottom: 1rem; }
.bank-toolbar input, .bank-toolbar select { padding: .7rem .85rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.bank-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .65rem; margin: 1rem 0 1.25rem; }
.bank-stat { padding: .85rem; border-radius: 16px; background: rgba(255,253,253,.85); border: 1px solid var(--line); }
.bank-stat strong { display: block; font-size: 1.25rem; color: var(--berry); }
.bank-stat span { font-size: .75rem; color: var(--muted); }
.bank-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
table.bank-table { width: 100%; border-collapse: collapse; font-size: .82rem; min-width: 1100px; }
table.bank-table th, table.bank-table td { padding: .65rem .55rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.bank-table th { position: sticky; top: 0; background: #fff8fb; z-index: 1; }
.mobile-bank-card { display: none; padding: 1rem; border-bottom: 1px solid var(--line); }
@media (max-width: 800px) {
  table.bank-table { display: none; }
  .mobile-bank-card { display: block; }
}
.modal-backdrop { position: fixed; inset: 0; background: rgba(43,34,39,.45); z-index: 90; display: grid; place-items: end center; padding: 1rem; }
@media (min-width: 800px) { .modal-backdrop { place-items: center; } }
.modal { width: min(640px, 100%); max-height: 90dvh; overflow: auto; background: #fffdfd; border-radius: 20px; padding: 1.25rem; border: 1px solid var(--line); }
.modal h2 { margin-top: 0; color: var(--berry); }
.form-grid { display: grid; gap: .75rem; }
.form-grid label { display: grid; gap: .35rem; font-size: .88rem; }
.form-grid input, .form-grid textarea, .form-grid select { padding: .65rem .75rem; border-radius: 12px; border: 1px solid var(--line); font: inherit; }
.sr-live { position: absolute; left: -9999px; }
.is-loading { opacity: .65; pointer-events: none; }
.nav-links a.is-featured, .nav-links button.is-featured { background: var(--soft-pink); color: var(--berry); font-weight: 600; }

/* ---------- moving bumper ---------- */
.bumper-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(700px 420px at 50% 30%, rgba(141, 63, 97, 0.35), transparent 60%),
    linear-gradient(165deg, #0c090b 0%, #1a1218 50%, #2b1a22 100%);
  color: #f8eef3;
}

.bumper-track {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bumper-stripe {
  position: absolute;
  top: 18%;
  left: -40%;
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(233, 134, 174, 0.85), transparent);
  animation: bumper-sweep 2.4s ease-in-out both;
}

.bumper-stripe.alt {
  top: 78%;
  animation-delay: 0.35s;
  animation-name: bumper-sweep-rev;
}

.bumper-stage {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  text-align: center;
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  filter: blur(6px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    filter 0.7s ease;
}

.bumper-stage.is-ready {
  opacity: 1;
  transform: none;
  filter: none;
}

.bumper-kicker {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  opacity: 0.65;
  margin: 0 0 1rem;
}

.bumper-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: #ffd0e0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), rgba(141, 63, 97, 0.55));
  box-shadow: 0 0 40px rgba(233, 134, 174, 0.35);
  animation: bumper-pulse 2.2s ease-in-out infinite;
}

.bumper-title {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.55rem, 4.5vw, 2.35rem);
  line-height: 1.2;
  display: grid;
  gap: 0.35rem;
}

.bumper-title .accent {
  color: #ffd0e0;
}

.bumper-sub {
  margin: 0 0 1.5rem;
  color: rgba(255, 240, 246, 0.72);
  font-size: 0.98rem;
  line-height: 1.55;
}

.bumper-book {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin: 0 auto 1.75rem;
  perspective: 800px;
  max-width: 340px;
}

.bumper-page {
  flex: 1;
  min-height: 110px;
  padding: 0.7rem 0.75rem;
  background: linear-gradient(180deg, #fffdfb, #f4ebe6);
  color: #2b2227;
  border-radius: 3px;
  text-align: left;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  transform-origin: center;
  animation: bumper-page-in 1.1s ease both;
}

.bumper-page.left {
  transform: rotateY(12deg);
  animation-delay: 0.45s;
}

.bumper-page.right {
  transform: rotateY(-10deg);
  animation-delay: 0.65s;
}

.bumper-page span {
  display: block;
  font-size: 0.65rem;
  color: #8a7a80;
  margin-bottom: 0.35rem;
}

.bumper-page p {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.78rem;
  line-height: 1.35;
}

.bumper-cta {
  min-width: 160px;
  animation: rise-in 0.5s ease both;
}

.bumper-cta[hidden] {
  display: none !important;
}

@keyframes bumper-sweep {
  from { transform: translateX(0); opacity: 0; }
  20% { opacity: 1; }
  to { transform: translateX(120vw); opacity: 0; }
}

@keyframes bumper-sweep-rev {
  from { transform: translateX(120vw); opacity: 0; }
  20% { opacity: 1; }
  to { transform: translateX(-20vw); opacity: 0; }
}

@keyframes bumper-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes bumper-page-in {
  from { opacity: 0; transform: translateY(16px) rotateY(0); }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .bumper-stripe,
  .bumper-logo,
  .bumper-page {
    animation: none !important;
  }
  .bumper-stage {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .game-motif,
  .cards-motif span,
  .way-panel {
    animation: none !important;
  }
}

/* ---------- a11y focus ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nav-links a:focus-visible,
.mobile-nav a:focus-visible {
  outline-offset: 2px;
}

/* ---------- Home / About (interactive) ---------- */
.home-page {
  max-width: 960px;
}

.home-kicker {
  font-family: var(--hand);
  font-size: 1.4rem;
  color: var(--accent);
  margin: 0 0 0.65rem;
  position: relative;
  z-index: 1;
}

.home-hero-play {
  --mx: 0px;
  --my: 0px;
  position: relative;
  text-align: left;
  margin-bottom: 2.5rem;
  padding: 1.5rem 1.25rem 1.75rem;
  border-radius: 32px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 232, 241, 0.9), transparent 55%),
    radial-gradient(ellipse at 90% 30%, rgba(249, 220, 232, 0.55), transparent 50%),
    rgba(255, 253, 253, 0.72);
  border: 1px solid var(--line);
  overflow: hidden;
  animation: rise-in 0.55s ease both;
}

.hero-orbits {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.float-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.55;
  transform: translate(var(--mx), var(--my));
  transition: transform 0.4s ease-out;
}

.float-orb.o1 {
  width: 140px;
  height: 140px;
  left: -20px;
  top: 40%;
  background: radial-gradient(circle, rgba(243, 182, 207, 0.65), transparent 70%);
  animation: drift-a 9s ease-in-out infinite;
}

.float-orb.o2 {
  width: 100px;
  height: 100px;
  right: 8%;
  top: 12%;
  background: radial-gradient(circle, rgba(233, 134, 174, 0.35), transparent 70%);
  animation: drift-b 11s ease-in-out infinite;
}

.float-orb.o3 {
  width: 70px;
  height: 70px;
  right: 22%;
  bottom: 18%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 70%);
  animation: drift-a 7s ease-in-out infinite reverse;
}

.home-hero-play h1 {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4.6vw, 2.65rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--berry);
  margin: 0 0 0.85rem;
  max-width: 22ch;
}

.home-hero-simple {
  text-align: center;
  padding-bottom: 1.5rem;
}

.home-hero-simple h1 {
  max-width: 26ch;
  margin-left: auto;
  margin-right: auto;
}

.home-hero-simple .hero-lead {
  margin-left: auto;
  margin-right: auto;
}

/* Gossip-adjacent glam home */
.home-glam {
  max-width: 980px;
}

.home-hero-glam {
  position: relative;
  text-align: center;
  margin-bottom: 1.75rem;
  padding: 1.75rem 1.35rem 1.5rem;
  border-radius: 28px;
  border: 1px solid rgba(141, 63, 97, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 253, 253, 0.95), rgba(255, 240, 246, 0.88));
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(141, 63, 97, 0.08);
}

.home-hero-glam::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  top: 0.85rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a227, transparent);
  opacity: 0.7;
}

.hero-glam-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9a227;
  opacity: 0.55;
  animation: sparkle 2.8s ease-in-out infinite;
}

.spark.s1 { left: 12%; top: 28%; }
.spark.s2 { right: 14%; top: 22%; animation-delay: 0.6s; width: 4px; height: 4px; }
.spark.s3 { left: 22%; bottom: 18%; animation-delay: 1.1s; }
.spark.s4 { right: 20%; bottom: 24%; animation-delay: 1.7s; width: 5px; height: 5px; }

@keyframes sparkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1.25); }
}

.hero-glam-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.xoxo-stamp {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8d3f61;
  border: 1.5px solid rgba(201, 162, 39, 0.65);
  padding: 0.2rem 0.55rem;
  transform: rotate(-8deg);
  background: rgba(255, 252, 245, 0.9);
}

.home-hero-glam h1 {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 5vw, 2.85rem);
  font-weight: 500;
  line-height: 1.18;
  color: #2b2227;
  margin: 0 auto 0.65rem;
  max-width: 18ch;
}

.home-hero-glam .hero-lead {
  position: relative;
  margin: 0 auto 1.25rem;
  max-width: 32rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--berry);
}

.hero-chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1rem 0.7rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  border: 1.5px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 22px rgba(141, 63, 97, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-chip:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 28px rgba(141, 63, 97, 0.14);
  border-color: var(--blush);
}

.chip-ico {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  color: var(--berry);
  background: rgba(249, 220, 232, 0.75);
}

.chip-hang .chip-ico {
  background: rgba(233, 134, 174, 0.35);
}

.chip-text {
  display: grid;
  text-align: left;
  gap: 0.05rem;
}

.chip-text strong {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--berry);
  font-weight: 600;
}

.chip-text em {
  font-family: var(--hand);
  font-style: normal;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1;
}

.hero-scroll-hint {
  position: relative;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  animation: hint-bounce 1.8s ease-in-out infinite;
}

@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(3px); opacity: 1; }
}

.entry-duo {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.75rem;
}

@media (min-width: 700px) {
  .entry-duo {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.entry-card {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.55rem;
  padding: 1.75rem 1.25rem 1.5rem;
  border-radius: 28px;
  border: 1.5px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  min-height: 260px;
  align-content: center;
  overflow: hidden;
}

.entry-card::after {
  content: "";
  position: absolute;
  inset: auto 12% -40% 12%;
  height: 55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 134, 174, 0.22), transparent 70%);
  pointer-events: none;
  transition: transform 0.3s ease;
}

.entry-card:hover::after {
  transform: translateY(-12px) scale(1.1);
}

.entry-for {
  display: inline-block;
  font-family: var(--hand);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--berry);
  background: rgba(249, 220, 232, 0.75);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 0.15rem;
  border: 1px dashed rgba(141, 63, 97, 0.25);
}

.entry-games .entry-for {
  background: rgba(233, 134, 174, 0.32);
  color: #7a3454;
}

.entry-card:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: 0 22px 44px rgba(141, 63, 97, 0.14);
}

.entry-games:hover {
  transform: translateY(-6px) rotate(0.5deg);
}

.entry-icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin-bottom: 0.35rem;
  color: var(--berry);
  transition: transform 0.25s ease;
  position: relative;
  z-index: 1;
}

.entry-card:hover .entry-icon {
  transform: scale(1.1) rotate(-4deg);
}

.entry-stories {
  background: linear-gradient(165deg, #fffdfd, #f7ecf2);
}

.entry-stories .entry-icon {
  background: rgba(249, 220, 232, 0.65);
}

.entry-games {
  background: linear-gradient(165deg, #fff5fa, #f9dce8);
  border-color: rgba(233, 134, 174, 0.35);
}

.entry-games .entry-icon {
  background: rgba(233, 134, 174, 0.28);
}

.entry-card h2 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  margin: 0;
  color: var(--berry);
  font-weight: 550;
  position: relative;
  z-index: 1;
}

.entry-card p {
  margin: 0;
  max-width: 24ch;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.entry-go {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--berry);
  position: relative;
  z-index: 1;
  letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
  .spark,
  .hero-scroll-hint {
    animation: none !important;
  }
}

.home-soft-note {
  text-align: center;
  margin: 0 0 2.25rem;
}

.home-soft-note p {
  margin: 0 auto;
  max-width: 28rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-lead {
  position: relative;
  z-index: 1;
  margin: 0 0 1.25rem;
  max-width: 34rem;
  font-size: 1.05rem;
  color: var(--muted);
}

.thought-bubbles {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  margin-bottom: 0.85rem;
  min-height: 5.5rem;
  align-items: center;
}

.bubble {
  position: relative;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  border: 1.5px solid rgba(233, 134, 174, 0.35);
  background: rgba(255, 253, 253, 0.92);
  color: var(--berry);
  font-size: 0.92rem;
  box-shadow: 0 8px 22px rgba(141, 63, 97, 0.08);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  animation: bubble-float 5.5s ease-in-out infinite;
  cursor: pointer;
}

.bubble.b2 { animation-delay: -0.8s; font-family: var(--hand); font-size: 1.15rem; }
.bubble.b3 { animation-delay: -1.6s; }
.bubble.b4 { animation-delay: -2.4s; background: rgba(249, 220, 232, 0.65); }
.bubble.b5 { animation-delay: -3.2s; }

.bubble:hover,
.bubble.is-active {
  animation-play-state: paused;
  transform: translateY(-4px) scale(1.04);
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 14px 28px rgba(141, 63, 97, 0.14);
}

.bubble.is-active {
  background: var(--berry);
  color: #fffafc;
  border-color: var(--berry);
}

.bubble-reveal {
  position: relative;
  z-index: 1;
  min-height: 2.8rem;
  margin: 0 0 1.15rem;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  background: rgba(255, 248, 251, 0.85);
  border: 1px dashed rgba(233, 134, 174, 0.35);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--berry);
  line-height: 1.4;
  transition: background 0.25s ease;
}

.hero-ctas {
  position: relative;
  z-index: 1;
  justify-content: flex-start;
  margin-top: 0.25rem;
}

.btn-pulse {
  animation: soft-pulse 2.8s ease-in-out infinite;
}

.two-ways {
  display: grid;
  gap: 1rem;
  margin: 0 0 2.5rem;
}

@media (min-width: 720px) {
  .two-ways {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.way-panel {
  padding: 1.4rem 1.35rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  display: grid;
  gap: 0.55rem;
  align-content: start;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.way-link:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: var(--shadow);
  border-color: var(--blush);
}

.way-together.way-link:hover {
  transform: translateY(-4px) rotate(0.5deg);
}

.way-emoji {
  font-size: 1.35rem;
  opacity: 0.85;
}

.way-panel h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  margin: 0;
  color: var(--berry);
  font-weight: 550;
}

.way-panel p {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
}

.way-label {
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 !important;
}

.way-cta {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--berry);
}

.way-alone {
  background: linear-gradient(165deg, rgba(255, 253, 253, 0.95), rgba(247, 236, 242, 0.65));
}

.way-together {
  background: linear-gradient(165deg, rgba(255, 245, 250, 0.98), rgba(249, 220, 232, 0.7));
  border-color: rgba(233, 134, 174, 0.28);
}

.why-bubbles {
  margin: 0 0 2.5rem;
}

.why-head {
  margin-bottom: 1rem;
}

.why-head h2,
.slow-burn-stage h2 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2rem);
  color: var(--berry);
  margin: 0 0 0.35rem;
  font-weight: 550;
}

.idea-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}

.idea-bubble {
  text-align: left;
  max-width: 100%;
  padding: 0.95rem 1.15rem;
  border-radius: 22px 22px 22px 8px;
  border: 1.5px solid var(--line);
  background: rgba(255, 253, 253, 0.9);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(141, 63, 97, 0.06);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    max-width 0.25s ease;
  flex: 1 1 220px;
}

.idea-bubble:nth-child(2n) {
  border-radius: 22px 22px 8px 22px;
  background: rgba(255, 245, 250, 0.95);
}

.idea-bubble:nth-child(3n) {
  flex: 1 1 260px;
}

.idea-bubble:hover {
  transform: translateY(-3px);
  border-color: var(--blush);
}

.idea-bubble.is-open {
  border-color: var(--accent);
  background: #fff;
  box-shadow: var(--shadow);
}

.idea-q {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--berry);
  line-height: 1.3;
}

.idea-a {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.45;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  transition:
    max-height 0.3s ease,
    opacity 0.25s ease,
    margin 0.25s ease;
}

.idea-bubble.is-open .idea-a {
  max-height: 12rem;
  opacity: 1;
  margin-top: 0.65rem;
}

.slow-burn-stage {
  margin: 0 0 2.5rem;
  padding: 1.4rem 1.25rem;
  border-radius: 28px;
  background: linear-gradient(120deg, rgba(255, 253, 253, 0.9), rgba(249, 220, 232, 0.4));
  border: 1px solid var(--line);
}

.slow-burn-line {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--berry);
  margin: 0 0 1rem;
}

.connect-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.connect-pill {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 253, 253, 0.95);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--berry);
  animation: bubble-float 6s ease-in-out infinite;
}

.connect-pill:nth-child(2) { animation-delay: -1s; }
.connect-pill:nth-child(3) { animation-delay: -2s; }
.connect-pill:nth-child(4) { animation-delay: -3s; }

.connect-soft {
  margin: 0;
  max-width: 34rem;
}

.preview-section {
  margin: 0 0 2.75rem;
}

.section-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head-row h2,
.preview-section > h2 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2rem);
  color: var(--berry);
  margin: 0 0 0.5rem;
  font-weight: 550;
}

.games-mini-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
}

@media (min-width: 640px) {
  .games-mini-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.game-mini {
  position: relative;
  padding: 1.2rem 1.15rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 253, 0.85);
}

.game-mini-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-mini-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.mini-go {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--berry);
}

.undercover-mini .mini-go {
  color: #ffe8f1;
}

.game-mini h3 {
  font-family: var(--serif);
  margin: 0.35rem 0 0.45rem;
  font-size: 1.35rem;
  color: var(--berry);
}

.game-mini p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.undercover-mini {
  background: linear-gradient(150deg, #2a2430 0%, #3d2f3c 100%);
  border-color: transparent;
  color: #f7eef2;
}

.undercover-mini h3 {
  color: #ffe8f1;
}

.undercover-mini p {
  color: rgba(255, 245, 250, 0.78);
}

.cards-mini {
  background: linear-gradient(160deg, #fff9fb, #fde8f0);
}

.badge-soon {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(249, 220, 232, 0.75);
  color: var(--berry);
  margin: 0;
  width: fit-content;
}

.undercover-mini .badge-soon {
  background: rgba(255, 232, 241, 0.18);
  color: #ffe8f1;
}

@keyframes bubble-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes soft-pulse {
  0%,
  100% {
    box-shadow: 0 10px 28px rgba(141, 63, 97, 0.22);
  }
  50% {
    box-shadow: 0 12px 34px rgba(141, 63, 97, 0.38);
  }
}

@keyframes drift-a {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 12px -10px;
  }
}

@keyframes drift-b {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: -14px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bubble,
  .connect-pill,
  .float-orb,
  .btn-pulse {
    animation: none !important;
  }
}

/* ---------- Stories toolbar ---------- */
.stories-toolbar {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stories-toolbar input[type="search"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 253, 0.9);
  color: var(--text);
}

.stories-toolbar select {
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
}

.stories-toolbar .chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.story-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--muted);
  margin: -0.35rem 0 1.5rem;
}

.story-end {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.story-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-bottom: 1rem;
}

.pager-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.pager-links a {
  color: var(--berry);
  text-decoration: none;
}

.pager-links a:hover {
  text-decoration: underline;
}

/* ---------- Games page ---------- */
.games-page .section-head {
  max-width: 40rem;
}

.games-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .games-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.game-card {
  position: relative;
  display: grid;
  gap: 0.85rem;
  padding: 1.5rem 1.35rem 1.4rem;
  border-radius: 28px;
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.game-card h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  margin: 0;
  font-weight: 550;
}

.game-card > p {
  margin: 0;
  font-size: 1.02rem;
}

.game-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.game-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.badge-mode {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.badge-offline {
  color: #c9d4e8;
  background: rgba(120, 140, 180, 0.22);
  border-color: rgba(160, 180, 220, 0.35);
  font-family: var(--game);
}

.badge-online {
  color: #3d6b45;
  background: rgba(120, 190, 140, 0.28);
  border-color: rgba(90, 160, 110, 0.35);
  font-family: var(--serif);
  letter-spacing: 0.08em;
}

.game-undercover .badge-offline {
  color: #b8c8e8;
  background: rgba(90, 120, 180, 0.28);
  border-color: rgba(130, 170, 230, 0.4);
}

.game-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.game-meta strong {
  color: inherit;
  font-weight: 600;
}

.game-undercover {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 60, 90, 0.18), transparent 42%),
    linear-gradient(160deg, #0a0c10 0%, #16101a 40%, #1a1220 100%);
  color: #e8eef8;
  border: 1px solid rgba(120, 200, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4) inset, 0 20px 50px rgba(0, 0, 0, 0.35);
}

.uc-card-art {
  position: relative;
  margin: -0.15rem -0.15rem 0.85rem;
  border-radius: 20px 20px 8px 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0a0c10;
}

.uc-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: contrast(1.05) saturate(0.9);
}

.uc-card-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 3px,
    rgba(0, 220, 255, 0.04) 3px 4px
  );
  pointer-events: none;
  mix-blend-mode: screen;
}

.uc-card-scan::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(0, 200, 255, 0.12), transparent);
  animation: uc-scan 3.8s linear infinite;
}

@keyframes uc-scan {
  from { top: -30%; }
  to { top: 110%; }
}

.uc-classified-stamp {
  font-family: var(--game);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: rgba(255, 80, 90, 0.85);
  border: 1.5px solid rgba(255, 80, 90, 0.65);
  padding: 0.28rem 0.45rem;
  transform: rotate(6deg);
  opacity: 0.9;
}

.uc-card-icons {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
  color: rgba(120, 210, 255, 0.85);
}

.uc-ico {
  opacity: 0.9;
}

.uc-tagline {
  font-family: var(--game-mono) !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.04em;
  color: rgba(120, 210, 255, 0.9) !important;
  margin: 0 0 0.35rem !important;
  text-transform: uppercase;
}

.game-undercover h2 {
  color: #f4f8ff;
  font-family: var(--game);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  text-shadow: none;
}

.game-undercover > p,
.game-undercover .game-meta {
  color: rgba(230, 236, 248, 0.82);
  font-family: var(--game-mono);
  font-size: 0.88rem;
}

.game-undercover .badge-soon {
  background: rgba(0, 200, 120, 0.18);
  color: #9dffc8;
  font-family: var(--game);
  letter-spacing: 0.08em;
  font-size: 0.62rem;
}

.game-undercover .btn {
  justify-self: start;
  margin-top: 0.35rem;
}

.btn-uc-cta {
  justify-self: start;
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--game);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 1.45rem;
  min-width: 14rem;
  color: #061018 !important;
  background: linear-gradient(135deg, #7ef0ff 0%, #3ad0ff 40%, #ff4d6d 100%) !important;
  border: none !important;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 0 24px rgba(58, 208, 255, 0.45),
    0 10px 28px rgba(255, 77, 109, 0.25);
  transform: translateY(0);
  animation: uc-cta-pulse 2.4s ease-in-out infinite;
}

.uc-cta-ico {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.btn-uc-cta:hover {
  color: #02080c !important;
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    0 0 32px rgba(58, 208, 255, 0.65),
    0 14px 32px rgba(255, 77, 109, 0.35);
}

.btn-uc-cta:active {
  transform: translateY(1px);
}

@keyframes uc-cta-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.2) inset,
      0 0 24px rgba(58, 208, 255, 0.4),
      0 10px 28px rgba(255, 77, 109, 0.22);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.28) inset,
      0 0 36px rgba(58, 208, 255, 0.7),
      0 12px 32px rgba(255, 77, 109, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-uc-cta,
  .uc-card-scan::after {
    animation: none;
  }
}

.game-question-cards {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.9), transparent 45%),
    linear-gradient(165deg, #fff9fb 0%, #fde6ef 100%);
}

.game-question-cards h2 {
  color: var(--berry);
}

.game-motif {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.2rem;
  background: rgba(255, 232, 241, 0.12);
  animation: motif-pulse 3.2s ease-in-out infinite;
}

.cards-motif {
  position: relative;
  width: 2.6rem;
  height: 2.2rem;
  background: transparent;
  animation: none;
}

.cards-motif span {
  position: absolute;
  width: 1.35rem;
  height: 1.75rem;
  border-radius: 4px;
  border: 1.5px solid var(--blush);
  background: rgba(255, 253, 253, 0.9);
  animation: card-float 3.5s ease-in-out infinite;
}

.cards-motif span:nth-child(1) {
  left: 0;
  top: 0.15rem;
  transform: rotate(-8deg);
}
.cards-motif span:nth-child(2) {
  left: 0.55rem;
  top: 0;
  transform: rotate(2deg);
  animation-delay: 0.2s;
}
.cards-motif span:nth-child(3) {
  left: 1.1rem;
  top: 0.2rem;
  transform: rotate(10deg);
  animation-delay: 0.4s;
}

@keyframes motif-pulse {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes card-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -3px;
  }
}

.is-disabled-look {
  opacity: 0.72;
  cursor: not-allowed;
  pointer-events: auto;
}

.coming-soon-tip {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  animation: rise-in 0.3s ease both;
}

.game-undercover .coming-soon-tip {
  color: rgba(255, 245, 250, 0.7);
}

.sr-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ---------- Undercover ---------- */
.badge-live {
  background: rgba(120, 180, 120, 0.25) !important;
  color: #d8ffe0 !important;
}

.undercover-page {
  max-width: 640px;
}

.uc-back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.uc-back:hover {
  color: var(--berry);
}

.uc-kicker {
  font-family: var(--hand);
  font-size: 1.3rem;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.uc-head h1 {
  font-family: var(--game);
  color: var(--berry);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  margin: 0 0 0.45rem;
  font-weight: 650;
}

.uc-lang-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

@media (min-width: 560px) {
  .uc-lang-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.uc-lang-card {
  text-align: left;
  padding: 1.25rem;
  border-radius: 22px;
  border: 1.5px solid var(--line);
  background: rgba(255, 253, 253, 0.92);
  display: grid;
  gap: 0.35rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.uc-lang-card strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--berry);
}

.uc-lang-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.uc-lang-card.is-ready:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--blush);
}

.uc-lang-card.is-soon {
  opacity: 0.55;
  cursor: not-allowed;
}

.uc-pill {
  display: inline-block;
  width: fit-content;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.uc-pill.ready {
  background: rgba(120, 170, 120, 0.2);
  color: #3d6b45;
}

.uc-pill.soon {
  background: rgba(249, 220, 232, 0.7);
  color: var(--berry);
}

.uc-role-cards {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
}

.uc-role {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.uc-role h2 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.uc-role p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.uc-role.civilian {
  background: rgba(255, 253, 253, 0.9);
}

.uc-role.impostor {
  background: linear-gradient(145deg, #2a2430, #3d2f3c);
  color: #f8eef3;
  border-color: transparent;
}

.uc-role.impostor h2 {
  color: #ffe8f1;
}

.uc-role.impostor p {
  color: rgba(255, 245, 250, 0.78);
}

.uc-role.mrwhite {
  background: rgba(249, 220, 232, 0.45);
}

.uc-note {
  margin: 0 0 1.25rem;
}

.uc-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(255, 253, 253, 0.9);
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}

.uc-stepper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.uc-stepper strong {
  min-width: 1.5rem;
  text-align: center;
  font-size: 1.25rem;
  color: var(--berry);
}

.uc-stepper .btn {
  padding: 0.45rem 0.85rem;
  min-width: 44px;
}

.uc-names {
  display: grid;
  gap: 0.75rem;
}

.uc-name-field {
  display: grid;
  gap: 0.3rem;
}

.uc-name-field span {
  font-size: 0.82rem;
  color: var(--muted);
}

.uc-name-field input,
.uc-guess input {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.uc-player-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}

.uc-player-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.05rem;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: rgba(255, 253, 253, 0.95);
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.uc-player-btn strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--berry);
}

.uc-player-btn span {
  font-size: 0.82rem;
  color: var(--muted);
}

.uc-player-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--blush);
}

.uc-player-btn.is-seen:not(.is-ready) {
  border-color: var(--accent);
  background: #fff5fa;
}

.uc-player-btn.is-ready {
  opacity: 0.7;
  background: rgba(220, 245, 220, 0.45);
}

.uc-player-btn.danger strong {
  color: #6b2a45;
}

.uc-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(30, 18, 24, 0.72);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.uc-modal[hidden] {
  display: none !important;
}

.uc-modal-card {
  width: min(400px, 100%);
  padding: 1.5rem 1.25rem;
  border-radius: 24px;
  background: #fffdfd;
  text-align: center;
  box-shadow: var(--shadow);
}

.uc-card-role {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--muted);
}

.uc-modal-card h2 {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--berry);
  margin: 0.35rem 0 0.75rem;
}

.uc-word {
  letter-spacing: 0.02em;
}

.uc-out {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 253, 253, 0.85);
  border: 1px solid var(--line);
}

.uc-out h2 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--berry);
}

.uc-out ul,
.uc-reveal-all {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.uc-guess {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.uc-guess label {
  display: grid;
  gap: 0.35rem;
}

.uc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Undercover ops — solid dark, clear contrast (no glow wash) */
body.theme-undercover {
  background: #070a10 !important;
  background-image: none !important;
}

body.theme-undercover::before {
  opacity: 0.12;
}

body.theme-undercover .site-nav {
  background: rgba(7, 10, 16, 0.92);
  border-bottom: 1px solid rgba(90, 160, 220, 0.25);
}

body.theme-undercover .nav-brand,
body.theme-undercover .nav-links a.is-active {
  color: #7ef0ff;
}

body.theme-undercover .nav-links a {
  color: #b7c4d6;
}

body.theme-undercover .mobile-nav {
  background: rgba(12, 16, 24, 0.96);
  border-color: rgba(90, 160, 220, 0.3);
}

.undercover-ops {
  position: relative;
  color: #f2f5fa;
  background: transparent;
}

.uc-ops-bg {
  display: none;
}

.undercover-ops .uc-back {
  color: #7ef0ff;
  font-family: var(--game-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.undercover-ops .uc-back:hover {
  color: #c8f7ff;
}

.undercover-ops .uc-kicker {
  font-family: var(--game-mono);
  color: #3ad0ff;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  text-shadow: none;
}

.undercover-ops .uc-head h1 {
  font-family: var(--game);
  color: #ffffff !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: none !important;
  filter: none;
}

.undercover-ops .muted,
.undercover-ops .uc-mono,
.undercover-ops .uc-note,
.undercover-ops .tiny.muted {
  color: #b4c0d0 !important;
  font-family: var(--game-mono);
  text-shadow: none;
}

.undercover-ops .uc-lang-card,
.undercover-ops .uc-role,
.undercover-ops .uc-count,
.undercover-ops .uc-player-btn,
.undercover-ops .uc-name-field input,
.undercover-ops .uc-guess input,
.undercover-ops .uc-modal-card,
.undercover-ops .uc-out {
  background: #121826;
  border: 1.5px solid rgba(90, 180, 230, 0.45);
  color: #f2f5fa;
}

.undercover-ops .uc-lang-card strong,
.undercover-ops .uc-role h2,
.undercover-ops .uc-player-btn strong,
.undercover-ops .uc-out h2,
.undercover-ops .uc-modal-card h2,
.undercover-ops .uc-word {
  font-family: var(--game);
  color: #7ef0ff !important;
  text-shadow: none;
}

.undercover-ops .uc-lang-card p,
.undercover-ops .uc-role p,
.undercover-ops .uc-player-btn span {
  color: #c5d0de !important;
}

.undercover-ops .uc-lang-card.is-soon {
  background: #1a2030;
  opacity: 1;
}

.undercover-ops .uc-lang-card.is-soon strong {
  color: #9eb0c4 !important;
}

.undercover-ops .uc-lang-card.is-soon p {
  color: #8a9bb0 !important;
}

.undercover-ops .uc-pill.ready {
  background: #1f4d34;
  color: #9dffc8;
}

.undercover-ops .uc-pill.soon {
  background: #4a2a38;
  color: #ffc0d2;
}

.undercover-ops .uc-role.civilian {
  background: #141b28;
}

.undercover-ops .uc-role.impostor {
  background: linear-gradient(145deg, #1a0a10, #2a1018);
  border-color: rgba(255, 100, 120, 0.45);
}

.undercover-ops .uc-role.impostor h2 {
  color: #ff8fa3 !important;
}

.undercover-ops .uc-role.impostor p {
  color: #efc8d0 !important;
}

.undercover-ops .uc-role.mrwhite {
  background: #1a2230;
}

.undercover-ops .btn-primary {
  font-family: var(--game);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #2eb8e6, #e85a78);
  color: #061018 !important;
  border: none;
  box-shadow: none;
  text-shadow: none;
}

.undercover-ops .btn-soft,
.undercover-ops .btn-ghost {
  font-family: var(--game-mono);
  border-color: rgba(90, 180, 230, 0.5);
  color: #7ef0ff !important;
  background: #0e1520;
}

.undercover-ops .uc-modal {
  background: rgba(4, 8, 14, 0.92);
}

.undercover-ops .uc-name-field span {
  color: #b4c0d0;
}

.undercover-ops .uc-name-field input,
.undercover-ops .uc-guess input {
  color: #f2f5fa;
  background: #0e1520;
}

.badge-live {
  background: #1f4d34 !important;
  color: #9dffc8 !important;
}

/* Ready pages: keep muted text clearly readable */
.home-page .muted,
.stories-toolbar .muted,
.section-head .muted,
.story-preview .muted {
  color: #6a5560;
}

.home-hero-glam h1 {
  color: #2b2227;
  text-shadow: none;
}

.home-hero-glam .hero-lead {
  color: #8d3f61;
}

.games-page .section-head h1 {
  color: #8d3f61;
  text-shadow: none;
}

.games-page .muted {
  color: #6a5560;
}

.game-undercover > p,
.game-undercover .game-meta {
  color: rgba(240, 245, 255, 0.9);
}

.game-question-cards h2 {
  color: #8d3f61;
}

.game-question-cards > p,
.game-question-cards .game-meta {
  color: #5c4a52;
}

/* bumper loading */
.bumper-load {
  width: min(220px, 55vw);
  height: 3px;
  margin: 1.25rem auto 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.bumper-load-bar {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f3b6cf, #ffe8f1, #e986ae);
  animation: bumper-load 3.6s ease-in-out forwards;
}

.bumper-loading-label {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 245, 250, 0.65);
}

.bumper-unlock {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

@keyframes bumper-load {
  0% { width: 0%; }
  70% { width: 82%; }
  100% { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .bumper-load-bar {
    animation: none;
    width: 100%;
  }
}

/* ---------- Tic-Tac-Toe for Long Distance ---------- */
body.theme-ttt {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(243, 182, 207, 0.45), transparent 42%),
    radial-gradient(ellipse at 90% 20%, rgba(233, 134, 174, 0.28), transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(252, 238, 245, 0.9), transparent 50%),
    var(--bg, #fff8f5);
}

.ttt-page {
  position: relative;
  max-width: 740px;
  z-index: 1;
}

.ttt-aurora {
  position: absolute;
  inset: -2rem -1rem auto;
  height: 18rem;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 30% 40%, rgba(233, 134, 174, 0.35), transparent 55%),
    radial-gradient(circle at 75% 20%, rgba(201, 162, 39, 0.18), transparent 45%);
  filter: blur(8px);
  animation: ttt-aurora-drift 8s ease-in-out infinite alternate;
}

@keyframes ttt-aurora-drift {
  from { transform: translateY(0) scale(1); opacity: 0.85; }
  to { transform: translateY(12px) scale(1.05); opacity: 1; }
}

.ttt-hero,
.ttt-room-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.ttt-hero-art {
  position: relative;
  width: min(220px, 70vw);
  height: 120px;
  margin: 0 auto 1rem;
}

.ttt-orbit {
  position: absolute;
  inset: 10% 5%;
  border: 1.5px dashed rgba(184, 74, 106, 0.28);
  border-radius: 50%;
  animation: ttt-spin 18s linear infinite;
}

.ttt-orbit-2 {
  inset: 22% 18%;
  border-style: solid;
  border-color: rgba(233, 134, 174, 0.2);
  animation-duration: 12s;
  animation-direction: reverse;
}

@keyframes ttt-spin {
  to { transform: rotate(360deg); }
}

.ttt-float-mark,
.ttt-float-heart {
  position: absolute;
  font-size: 1.6rem;
  color: var(--berry);
  animation: ttt-float 3.2s ease-in-out infinite;
}

.ttt-float-mark.x { left: 12%; top: 28%; color: #8d3f61; }
.ttt-float-mark.o { right: 14%; top: 22%; color: #c9923a; animation-delay: 0.6s; }
.ttt-float-heart { left: 44%; top: 38%; color: var(--accent); animation-delay: 1.1s; width: 28px; }

@keyframes ttt-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.ttt-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--accent);
  margin: 0 0 0.4rem;
}

.ttt-hero h1,
.ttt-code-line {
  font-family: var(--serif);
  color: var(--berry);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin: 0 0 0.45rem;
}

.ttt-sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--berry);
  margin: 0;
  font-size: 1.15rem;
}

.ttt-entry-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 700px) {
  .ttt-entry-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ttt-door {
  display: grid;
  gap: 0.45rem;
  padding: 1.45rem 1.25rem;
  border-radius: 24px;
  border: 1.5px solid rgba(233, 134, 174, 0.35);
  background:
    linear-gradient(165deg, rgba(255, 253, 253, 0.95), rgba(252, 238, 245, 0.92));
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: 0 10px 28px rgba(141, 63, 97, 0.08);
}

.ttt-door:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(141, 63, 97, 0.14);
  border-color: var(--blush);
}

.ttt-door-start {
  background:
    radial-gradient(circle at 90% 10%, rgba(233, 134, 174, 0.28), transparent 45%),
    linear-gradient(165deg, #fff9fb, #f9dce8);
}

.ttt-door-ico {
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0.9;
}

.ttt-door-label {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--berry);
  font-weight: 550;
}

.ttt-door-hint {
  font-size: 0.92rem;
  color: var(--muted);
}

.ttt-join-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.ttt-join-form input {
  flex: 1;
  min-width: 8rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--berry);
  background: #fff;
}

.ttt-back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.ttt-back:hover {
  color: var(--berry);
}

.ttt-room-head {
  display: grid;
  gap: 1rem;
  text-align: left;
}

@media (min-width: 700px) {
  .ttt-room-head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.ttt-code {
  font-family: var(--serif);
  letter-spacing: 0.14em;
  font-size: clamp(1.9rem, 4.5vw, 2.55rem);
  color: var(--berry);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.6);
}

.ttt-code-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.ttt-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ttt-score {
  display: grid;
  grid-template-columns: repeat(3, minmax(4.5rem, 1fr));
  gap: 0.5rem;
  padding: 0.85rem;
  border-radius: 18px;
  background: linear-gradient(160deg, #fffdfd, #fdeef5);
  border: 1px solid rgba(233, 134, 174, 0.28);
  box-shadow: 0 8px 22px rgba(141, 63, 97, 0.06);
}

.ttt-score div {
  display: grid;
  gap: 0.2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.ttt-score span {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--berry);
}

.ttt-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.ttt-pill {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(249, 220, 232, 0.45);
  color: var(--muted);
  border: 1px solid var(--line);
  transition: background 0.2s ease, color 0.2s ease;
}

.ttt-pill.on {
  color: var(--berry);
  background: rgba(249, 220, 232, 0.95);
  border-color: var(--blush);
  box-shadow: 0 0 0 3px rgba(233, 134, 174, 0.15);
}

.ttt-lobby {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 1.75rem 1.2rem;
  border-radius: 24px;
  background: linear-gradient(165deg, #fffdfd, #fceef5);
  border: 1px solid rgba(233, 134, 174, 0.3);
  margin-bottom: 1rem;
  box-shadow: 0 12px 30px rgba(141, 63, 97, 0.08);
}

.ttt-lobby-pulse {
  position: absolute;
  width: 140px;
  height: 140px;
  left: 50%;
  top: -40px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 134, 174, 0.35), transparent 70%);
  animation: ttt-pulse 2.4s ease-in-out infinite;
}

@keyframes ttt-pulse {
  0%, 100% { opacity: 0.45; transform: translateX(-50%) scale(0.9); }
  50% { opacity: 0.9; transform: translateX(-50%) scale(1.1); }
}

.ttt-lobby-title {
  position: relative;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--berry);
  margin: 0 0 0.35rem;
}

.ttt-lobby-copy {
  position: relative;
  color: var(--muted);
  margin: 0 0 1rem;
}

.ttt-ready-btn {
  position: relative;
  min-width: 12rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(141, 63, 97, 0.18);
}

.ttt-turn {
  text-align: center;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--berry);
  margin: 0 auto 0.95rem;
  max-width: 22rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 253, 253, 0.75);
  border: 1px solid rgba(233, 134, 174, 0.25);
}

.ttt-turn.yours {
  background: linear-gradient(90deg, rgba(249, 220, 232, 0.95), rgba(255, 248, 250, 0.95));
  border-color: var(--blush);
  animation: ttt-turn-glow 1.6s ease-in-out infinite;
}

.ttt-turn.theirs {
  opacity: 0.85;
}

@keyframes ttt-turn-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233, 134, 174, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(233, 134, 174, 0.12); }
}

.ttt-board-wrap {
  padding: 0.85rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.85), transparent 55%),
    linear-gradient(165deg, #fff7fa, #f8d7e6);
  border: 1px solid rgba(233, 134, 174, 0.35);
  box-shadow: 0 16px 40px rgba(141, 63, 97, 0.12);
  max-width: 360px;
  margin: 0 auto 1.25rem;
}

.ttt-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  max-width: 320px;
  margin: 0 auto;
}

.ttt-cell {
  aspect-ratio: 1;
  border-radius: 20px;
  border: 1.5px solid rgba(233, 134, 174, 0.28);
  background: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.9rem, 6vw, 2.55rem);
  color: var(--berry);
  font-weight: 600;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ttt-cell span {
  display: inline-block;
  line-height: 1;
  animation: ttt-mark-in 0.28s ease both;
}

@keyframes ttt-mark-in {
  from { transform: scale(0.55); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.ttt-cell.is-x { color: #8d3f61; }
.ttt-cell.is-o { color: #c9923a; }

.ttt-cell.playable {
  cursor: pointer;
  background: #fff;
}

.ttt-cell.playable::after {
  content: "";
  position: absolute;
}

.ttt-cell:focus-visible {
  outline: 2px solid var(--berry, #b84a6a);
  outline-offset: 2px;
  z-index: 1;
}

.ttt-door:focus-visible,
.ttt-copy:focus-visible,
.ttt-join-form input:focus-visible {
  outline: 2px solid var(--berry, #b84a6a);
  outline-offset: 2px;
}

.ttt-cell:hover:not(:disabled) {
  transform: scale(1.05);
  border-color: var(--blush);
  background: #fff5f9;
  box-shadow: 0 8px 18px rgba(141, 63, 97, 0.12);
}

.ttt-cell:disabled {
  cursor: default;
  opacity: 1;
}

.ttt-cell.filled {
  background: linear-gradient(160deg, #fff9fb, #fde8f0);
}

.ttt-cell.win {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233, 134, 174, 0.35);
  animation: ttt-pop 0.4s ease;
  background: linear-gradient(160deg, #fff0f6, #f9c9dc);
}

@keyframes ttt-pop {
  0% { transform: scale(0.9); }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.ttt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.ttt-banner {
  text-align: center;
  color: #8d3f61;
  background: #fde8f0;
  padding: 0.75rem;
  border-radius: 12px;
}

.ttt-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(43, 34, 39, 0.48);
  backdrop-filter: blur(4px);
}

.ttt-modal-card {
  position: relative;
  width: min(400px, 100%);
  padding: 1.75rem 1.35rem 1.35rem;
  border-radius: 28px;
  background: linear-gradient(180deg, #fffdfd, #fff5f8);
  text-align: center;
  border: 1px solid rgba(233, 134, 174, 0.35);
  box-shadow: 0 24px 60px rgba(43, 34, 39, 0.28);
  overflow: hidden;
  animation: rise-in 0.4s ease both;
}

.ttt-modal-card.win {
  background: linear-gradient(180deg, #fffdfd, #fde8f0);
}

.ttt-modal-card h2 {
  font-family: var(--serif);
  color: var(--berry);
  margin: 0.5rem 0;
  font-size: 1.55rem;
}

.ttt-result-ico {
  color: var(--berry);
  display: grid;
  place-items: center;
  animation: ttt-float 2.4s ease-in-out infinite;
}

.ttt-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 1rem;
}

.ttt-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(233, 134, 174, 0.55) 0 3px, transparent 4px),
    radial-gradient(circle at 70% 30%, rgba(201, 162, 39, 0.55) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 70%, rgba(141, 63, 97, 0.4) 0 3px, transparent 4px),
    radial-gradient(circle at 80% 75%, rgba(243, 182, 207, 0.7) 0 2px, transparent 3px),
    radial-gradient(circle at 55% 15%, rgba(255, 210, 120, 0.55) 0 2px, transparent 3px);
  animation: confetti-fall 1.3s ease both;
}

@keyframes confetti-fall {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

.ttt-loading {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.3rem;
}

.game-ttt {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 0%, rgba(233, 134, 174, 0.35), transparent 42%),
    linear-gradient(165deg, #fff9fb 0%, #fde6ef 55%, #f8d0e0 100%);
  border-color: rgba(233, 134, 174, 0.4);
  box-shadow: 0 16px 40px rgba(141, 63, 97, 0.1);
}

.ttt-card-art {
  position: relative;
  margin: -0.15rem -0.15rem 0.9rem;
  border-radius: 20px 20px 10px 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.55), transparent 50%),
    linear-gradient(145deg, #f7c4d8, #e989b0 45%, #c45d82);
}

.ttt-card-board {
  position: absolute;
  inset: 14% 22%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  z-index: 1;
}

.ttt-card-board span {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
  font-size: clamp(0.95rem, 2.8vw, 1.25rem);
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(2px);
}

.ttt-card-board .ttt-mark-x { color: #5c2340; background: rgba(255, 255, 255, 0.72); }
.ttt-card-board .ttt-mark-o { color: #9a6b1f; background: rgba(255, 248, 230, 0.8); }
.ttt-card-board .ttt-mark-heart {
  color: #b84a6a;
  background: rgba(255, 255, 255, 0.85);
  animation: ttt-pulse 2s ease-in-out infinite;
}

.ttt-card-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(141, 63, 97, 0.18));
  pointer-events: none;
}

.ttt-card-glow::after {
  content: "";
  position: absolute;
  left: -20%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: ttt-shine 4.5s ease-in-out infinite;
}

@keyframes ttt-shine {
  0% { transform: translateX(0); opacity: 0; }
  20% { opacity: 1; }
  55% { transform: translateX(280%); opacity: 0.6; }
  100% { transform: translateX(320%); opacity: 0; }
}

.ttt-live-badge {
  color: #3d6b45 !important;
  background: rgba(120, 180, 120, 0.28) !important;
}

.ttt-love-stamp {
  font-family: var(--hand);
  font-size: 0.95rem;
  color: var(--berry);
  border: 1.5px solid rgba(184, 74, 106, 0.45);
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  transform: rotate(-8deg);
  opacity: 0.85;
}

.ttt-card-icons {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.4rem;
  color: var(--berry);
  opacity: 0.8;
}

.ttt-card-tagline {
  font-family: var(--serif) !important;
  font-style: italic;
  font-size: 1.05rem !important;
  color: var(--berry) !important;
  margin: 0 0 0.4rem !important;
}

.game-ttt h2 {
  color: var(--berry);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
}

.game-ttt .btn-ttt-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #9a4468, #b84a6a 50%, #c45d82);
  color: #fffafc !important;
  border: none;
  margin-top: 0.65rem;
  justify-self: start;
  padding: 0.85rem 1.2rem;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(141, 63, 97, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.ttt-cta-ico {
  font-size: 0.75rem;
  opacity: 0.95;
}

.game-ttt .btn-ttt-cta:hover {
  background: linear-gradient(135deg, #7a3454, #9a4468);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(141, 63, 97, 0.34);
  filter: brightness(1.03);
}

.game-ttt .btn-ttt-cta:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .ttt-aurora,
  .ttt-orbit,
  .ttt-float-mark,
  .ttt-float-heart,
  .ttt-lobby-pulse,
  .ttt-turn.yours,
  .ttt-card-glow::after,
  .ttt-card-board .ttt-mark-heart {
    animation: none !important;
  }
}


/* ---------- Virtual Stock Market (IDX / global terminal typography) ---------- */
body.theme-rsm {
  font-family: var(--market);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(0, 160, 100, 0.14), transparent 42%),
    radial-gradient(ellipse at 92% 8%, rgba(220, 40, 60, 0.1), transparent 38%),
    linear-gradient(180deg, #f4f7f5 0%, #eef3f0 100%);
  letter-spacing: 0.01em;
}

.rsm-page {
  position: relative;
  max-width: 720px;
  z-index: 1;
  font-family: var(--market);
}

.rsm-spark {
  position: absolute;
  inset: -1rem -1rem auto;
  height: 14rem;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 40% 40%, rgba(0, 150, 90, 0.18), transparent 55%);
  filter: blur(10px);
}

.rsm-hero,
.rsm-room-head {
  text-align: center;
  margin-bottom: 1.25rem;
}

.rsm-room-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.rsm-hero-stage {
  position: relative;
  width: min(260px, 78vw);
  height: 120px;
  margin: 0 auto 1rem;
}

.rsm-hero-ring {
  position: absolute;
  inset: 8% 12%;
  border: 1.5px solid rgba(0, 120, 80, 0.22);
  border-radius: 50%;
  animation: rsm-spin 16s linear infinite;
}

.rsm-hero-ring.r2 {
  inset: 22% 24%;
  animation-direction: reverse;
  animation-duration: 11s;
  border-color: rgba(200, 50, 70, 0.18);
}

@keyframes rsm-spin {
  to { transform: rotate(360deg); }
}

.rsm-hero-chart {
  position: absolute;
  inset: 28% 22% 22%;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 0.28rem;
}

.rsm-hero-chart i {
  flex: 1;
  border-radius: 3px 3px 1px 1px;
  background: #0a9f6a;
  animation: rsm-bar 1.1s ease both;
}

.rsm-hero-chart i:nth-child(1) { height: 28%; }
.rsm-hero-chart i:nth-child(2) { height: 42%; animation-delay: 0.05s; }
.rsm-hero-chart i:nth-child(3) { height: 35%; animation-delay: 0.1s; background: #d64545; }
.rsm-hero-chart i:nth-child(4) { height: 58%; animation-delay: 0.15s; }
.rsm-hero-chart i:nth-child(5) { height: 72%; animation-delay: 0.2s; }
.rsm-hero-chart i:nth-child(6) { height: 90%; animation-delay: 0.25s; background: #e6b84d; }

.rsm-hero-chip {
  position: absolute;
  font-family: var(--market-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.rsm-hero-chip.up {
  top: 10%;
  right: 4%;
  color: #067a4e;
  background: rgba(10, 159, 106, 0.15);
  border: 1px solid rgba(10, 159, 106, 0.35);
  animation: ttt-float 2.8s ease-in-out infinite;
}

.rsm-hero-chip.down {
  bottom: 8%;
  left: 2%;
  color: #b53030;
  background: rgba(214, 69, 69, 0.12);
  border: 1px solid rgba(214, 69, 69, 0.3);
  animation: ttt-float 2.8s ease-in-out infinite 0.6s;
}

.rsm-kicker {
  font-family: var(--market-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0a7a55;
  margin: 0 0 0.45rem;
}

.rsm-hero h1 {
  font-family: var(--market);
  font-weight: 700;
  color: #12352a;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.rsm-sub {
  font-family: var(--market);
  color: #4a6358;
  margin: 0;
  font-size: 0.98rem;
  font-weight: 400;
}

.rsm-entry-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 700px) {
  .rsm-entry-grid { grid-template-columns: 1fr 1fr; }
}

.rsm-card,
.rsm-panel {
  position: relative;
  background: #fff;
  border: 1px solid rgba(20, 80, 55, 0.14);
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 0 8px 28px rgba(18, 53, 42, 0.06);
  font-family: var(--market);
}

.rsm-card-badge {
  display: inline-block;
  font-family: var(--market-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0a7a55;
  background: rgba(10, 159, 106, 0.12);
  border: 1px solid rgba(10, 159, 106, 0.28);
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  margin-bottom: 0.55rem;
}

.rsm-card-badge.join {
  color: #1a4f8c;
  background: rgba(40, 110, 190, 0.1);
  border-color: rgba(40, 110, 190, 0.28);
}

.rsm-card-hint {
  margin: -0.35rem 0 0.65rem;
  font-size: 0.85rem;
  color: #6a7f74;
}

.rsm-card h2,
.rsm-panel h2 {
  font-family: var(--market);
  font-weight: 700;
  color: #12352a;
  margin: 0 0 0.75rem;
  letter-spacing: -0.015em;
}

.rsm-label {
  display: block;
  font-family: var(--market-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a7f74;
  margin: 0.55rem 0 0.25rem;
}

.rsm-card input,
.rsm-invest input[type="number"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(20, 80, 55, 0.2);
  font-family: var(--market-mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: #12352a;
  background: #f7faf8;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
}

.rsm-cta {
  margin-top: 0.9rem;
  width: 100%;
  justify-content: center;
  font-family: var(--market) !important;
  font-weight: 650 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem !important;
  border-radius: 8px !important;
}

.rsm-back {
  color: #6a7f74;
  text-decoration: none;
  font-size: 0.88rem;
  font-family: var(--market);
}

.rsm-back:hover { color: #0a7a55; }

.rsm-lobby-tip {
  font-family: var(--market);
  font-size: 0.92rem;
  color: #2a463a;
  line-height: 1.45;
  margin: 0 0 0.75rem;
}

.rsm-player-count {
  font-family: var(--market-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6a7f74;
  margin: 0 0 0.85rem;
}

.rsm-error-hint {
  margin: 0.55rem 0 0;
  text-align: center;
  font-family: var(--market);
  font-size: 0.88rem;
  color: #b53030;
  line-height: 1.4;
}

.rsm-brief-lead {
  font-family: var(--market);
  color: #4a6358;
  margin: 0 0 1rem;
  line-height: 1.45;
}

.rsm-howto {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.65rem;
  font-family: var(--market);
  font-size: 0.92rem;
  color: #12352a;
  line-height: 1.45;
}

.rsm-howto strong {
  font-weight: 650;
  color: #0a5c40;
}

.rsm-brief-loop {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #eefaf3;
  border: 1px solid rgba(10, 159, 106, 0.25);
  font-family: var(--market-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0a7a55;
}

.rsm-code {
  font-family: var(--market-mono);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 1.85rem;
  color: #12352a;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.rsm-code-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 0.75rem;
}

.rsm-players,
.rsm-lock-list,
.rsm-reveal-list {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0;
  display: grid;
  gap: 0.45rem;
  font-family: var(--market);
}

.rsm-players li,
.rsm-lock-list li,
.rsm-reveal-list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: #f7faf8;
  border: 1px solid rgba(20, 80, 55, 0.12);
  font-size: 0.92rem;
  font-weight: 500;
}

.rsm-lock-list li.locked {
  border-color: rgba(10, 159, 106, 0.4);
  background: rgba(10, 159, 106, 0.1);
}

.rsm-lock-list li.waiting { opacity: 0.85; }
.rsm-av { font-size: 1.15rem; }

.rsm-wait {
  text-align: center;
  color: #6a7f74;
  font-family: var(--market-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.rsm-round {
  font-family: var(--market-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6a7f74;
  margin: 0 0 0.5rem;
}

.rsm-ticker {
  font-family: var(--market-mono) !important;
  font-weight: 700 !important;
  font-size: clamp(1.85rem, 5vw, 2.7rem) !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  color: #12352a !important;
}

.rsm-price {
  font-family: var(--market-mono);
  font-size: 1.1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin: 0.25rem 0 0.75rem;
  color: #12352a;
}

.rsm-price strong {
  font-family: var(--market-mono);
  color: #0a7a55;
}

.rsm-headline {
  font-family: var(--market);
  font-style: normal;
  font-weight: 500;
  color: #2a463a;
  margin: 0 0 0.85rem;
  line-height: 1.45;
  border-left: 3px solid #0a9f6a;
  padding-left: 0.75rem;
}

.rsm-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-family: var(--market-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.rsm-portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin: 0.85rem 0;
}

.rsm-portfolio div {
  text-align: center;
  padding: 0.65rem 0.4rem;
  border-radius: 8px;
  background: #f7faf8;
  border: 1px solid rgba(20, 80, 55, 0.12);
}

.rsm-portfolio span {
  display: block;
  font-family: var(--market-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6a7f74;
}

.rsm-portfolio strong,
.rsm-nw-value {
  font-family: var(--market-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: #12352a;
  font-variant-numeric: tabular-nums;
}

.rsm-portfolio .nw {
  background: linear-gradient(160deg, #eefaf3, #dff5e9);
  border-color: rgba(10, 159, 106, 0.35);
}

.rsm-portfolio .nw strong,
.rsm-portfolio .nw .rsm-nw-value {
  color: #067a4e;
}

.rsm-signal.bull { background: linear-gradient(165deg, #f2fcf6, #e0f7ea); border-color: rgba(10, 159, 106, 0.28); }
.rsm-signal.bear { background: linear-gradient(165deg, #fff8f8, #fde8e8); border-color: rgba(214, 69, 69, 0.28); }

.rsm-choices { display: grid; gap: 0.65rem; margin: 1rem 0; }
@media (min-width: 560px) { .rsm-choices { grid-template-columns: 1fr 1fr; } }

.rsm-choice {
  display: grid;
  gap: 0.35rem;
  place-items: center;
  padding: 1.1rem;
  border-radius: 10px;
  border: 1.5px solid rgba(20, 80, 55, 0.2);
  background: #fff;
  cursor: pointer;
  color: inherit;
  font-family: var(--market);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rsm-choice strong {
  font-family: var(--market);
  font-weight: 650;
}

.rsm-choice:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(18, 53, 42, 0.1);
}

.rsm-choice span { font-size: 1.6rem; }

.rsm-invest input[type="range"] { width: 100%; margin: 0.65rem 0; }

.rsm-quicks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.rsm-quicks button {
  border-radius: 4px;
  border: 1px solid rgba(20, 80, 55, 0.22);
  background: #f7faf8;
  padding: 0.4rem 0.7rem;
  font-family: var(--market-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: #12352a;
}

.rsm-locked-msg {
  text-align: center;
  font-family: var(--market-mono);
  font-size: 0.9rem;
  color: #0a7a55;
  font-weight: 500;
}

.rsm-market-move { text-align: center; overflow: hidden; }
.rsm-market-move.up {
  background: linear-gradient(165deg, #f0fff6, #c9f5d8);
  animation: rsm-pop 0.45s ease;
}
.rsm-market-move.down {
  background: linear-gradient(165deg, #fff5f5, #ffd0d0);
  animation: rsm-shake 0.45s ease;
}
.rsm-market-move.huge.up { box-shadow: 0 0 0 4px rgba(10, 159, 106, 0.25); }
.rsm-market-move.huge.down { animation: rsm-shake 0.55s ease; }

@keyframes rsm-pop { from { transform: scale(0.96); } to { transform: scale(1); } }
@keyframes rsm-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.rsm-chart {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 0.35rem;
  height: 64px;
  margin: 0.5rem 0 1rem;
}

.rsm-chart span {
  width: 12px;
  border-radius: 3px 3px 1px 1px;
  background: currentColor;
  opacity: 0.8;
  animation: rsm-bar 0.8s ease both;
}

.rsm-market-move.up .rsm-chart { color: #0a9f6a; }
.rsm-market-move.down .rsm-chart { color: #d64545; }
.rsm-chart span:nth-child(1) { height: 30%; animation-delay: 0.05s; }
.rsm-chart span:nth-child(2) { height: 45%; animation-delay: 0.12s; }
.rsm-chart span:nth-child(3) { height: 38%; animation-delay: 0.18s; }
.rsm-chart span:nth-child(4) { height: 70%; animation-delay: 0.24s; }
.rsm-chart span:nth-child(5) { height: 92%; animation-delay: 0.3s; }

@keyframes rsm-bar {
  from { transform: scaleY(0.2); opacity: 0; }
  to { transform: scaleY(1); opacity: 0.8; }
}

.rsm-price-flow {
  font-family: var(--market-mono);
  font-size: 1.2rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rsm-pl {
  font-family: var(--market-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rsm-pl.pos { color: #067a4e; }
.rsm-pl.neg { color: #c44545; }

.rsm-decide {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.rsm-decide .btn {
  font-family: var(--market) !important;
  font-weight: 650 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem !important;
  border-radius: 8px !important;
  min-width: 7.5rem;
}

.rsm-final { position: relative; text-align: center; overflow: hidden; }

.rsm-board {
  list-style: none;
  padding: 0;
  margin: 1rem auto;
  max-width: 22rem;
  text-align: left;
  display: grid;
  gap: 0.45rem;
  font-family: var(--market);
}

.rsm-board li {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: #f7faf8;
  border: 1px solid rgba(20, 80, 55, 0.12);
  font-variant-numeric: tabular-nums;
}

.rsm-board strong { font-family: var(--market); }
.rsm-board li { font-family: var(--market-mono); font-size: 0.95rem; }

.rsm-winner {
  font-family: var(--market);
  font-weight: 700;
  font-size: 1.05rem;
  color: #12352a;
}

.rsm-awards { display: grid; gap: 0.55rem; margin: 1rem 0; }

.rsm-award {
  padding: 0.75rem;
  border-radius: 8px;
  background: #f7faf8;
  border: 1px solid rgba(20, 80, 55, 0.12);
  text-align: left;
  font-family: var(--market);
}

.rsm-award strong {
  font-family: var(--market-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.rsm-award span {
  display: block;
  color: #0a7a55;
  font-weight: 650;
  font-family: var(--market);
}

.rsm-award p {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: #6a7f74;
}

.rsm-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(10, 159, 106, 0.5) 0 3px, transparent 4px),
    radial-gradient(circle at 70% 30%, rgba(230, 184, 77, 0.55) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 70%, rgba(214, 69, 69, 0.4) 0 3px, transparent 4px);
  animation: confetti-fall 1.2s ease both;
}

.rsm-loading {
  text-align: center;
  padding: 3rem 1rem;
  font-family: var(--market-mono);
  color: #6a7f74;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.rsm-answers { margin-top: 1rem; text-align: left; font-family: var(--market); }
.rsm-answers h3 {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-family: var(--market-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a7a55;
}

.game-rsm {
  position: relative;
  overflow: hidden;
  font-family: var(--market);
  background:
    radial-gradient(circle at 90% 0%, rgba(10, 159, 106, 0.22), transparent 42%),
    linear-gradient(165deg, #f4faf7 0%, #e6f3ec 55%, #d8ebe1 100%);
  border-color: rgba(10, 120, 80, 0.28);
}

.rsm-card-art {
  position: relative;
  margin: -0.15rem -0.15rem 0.9rem;
  border-radius: 14px 14px 8px 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(145deg, #0b1f18 0%, #12352a 40%, #0a7a55 100%);
  display: grid;
  place-items: center;
}

.rsm-art-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.7;
}

.rsm-mini-chart {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  gap: 0.3rem;
  height: 48%;
}

.rsm-mini-chart i {
  display: block;
  width: 12px;
  border-radius: 2px 2px 0 0;
  background: rgba(255, 255, 255, 0.75);
}

.rsm-mini-chart i:nth-child(1) { height: 28%; }
.rsm-mini-chart i:nth-child(2) { height: 40%; }
.rsm-mini-chart i:nth-child(3) { height: 34%; background: rgba(214, 69, 69, 0.85); }
.rsm-mini-chart i:nth-child(4) { height: 62%; }
.rsm-mini-chart i:nth-child(5) { height: 78%; }
.rsm-mini-chart i:nth-child(6) { height: 55%; background: rgba(214, 69, 69, 0.7); }
.rsm-mini-chart i:nth-child(7) { height: 95%; background: #e6b84d; }

.rsm-sparkline {
  position: absolute;
  right: 10%;
  top: 18%;
  color: #7dffb5;
  opacity: 0.9;
  z-index: 1;
}

.rsm-float-chip {
  position: absolute;
  z-index: 2;
  font-family: var(--market-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  animation: ttt-float 3s ease-in-out infinite;
}

.rsm-float-chip.c1 { left: 8%; top: 18%; color: #7dffb5; }
.rsm-float-chip.c2 { right: 12%; top: 42%; animation-delay: 0.5s; }
.rsm-float-chip.c3 { left: 18%; bottom: 28%; color: #ff9a9a; animation-delay: 1s; }

.rsm-art-ticker {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--market-mono);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.28rem 0.7rem;
  border-radius: 4px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.rsm-art-ticker b { color: #7dffb5; }

.rsm-live-badge {
  color: #067a4e !important;
  background: rgba(10, 159, 106, 0.18) !important;
  font-family: var(--market-mono) !important;
  letter-spacing: 0.08em !important;
}

.rsm-stamp {
  font-family: var(--market-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #0a7a55;
  border: 1.5px solid rgba(10, 122, 85, 0.45);
  padding: 0.22rem 0.45rem;
  border-radius: 3px;
  transform: rotate(3deg);
}

.rsm-card-icons {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
  opacity: 0.85;
}

.rsm-card-tagline {
  font-family: var(--market) !important;
  font-style: normal !important;
  font-weight: 500;
  font-size: 0.95rem !important;
  color: #2a463a !important;
  margin: 0 0 0.4rem !important;
}

.game-rsm h2 {
  font-family: var(--market);
  font-weight: 700;
  color: #12352a;
  letter-spacing: -0.02em;
}

.game-rsm .game-meta,
.game-rsm > p {
  font-family: var(--market);
}

.btn-rsm-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
  font-family: var(--market);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  background: linear-gradient(135deg, #0a5c40, #0a9f6a);
  color: #f4fff9 !important;
  border: none;
  padding: 0.85rem 1.15rem;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(10, 92, 64, 0.28);
  overflow: hidden;
}

.rsm-cta-pulse {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  animation: ttt-shine 3.5s ease-in-out infinite;
}

.btn-rsm-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .rsm-market-move.up,
  .rsm-market-move.down,
  .rsm-chart span,
  .rsm-confetti,
  .rsm-hero-ring,
  .rsm-hero-chip,
  .rsm-float-chip,
  .rsm-cta-pulse,
  .rsm-hero-chart i {
    animation: none !important;
  }
}
