/* Pretty — cartoon candy sissy gallery theme */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Fredoka:wght@500;600;700&family=Nunito:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
  --bg-deep: #140818;
  --bg-mid: #221028;
  --bg-soft: #321438;
  --surface: rgba(255, 200, 220, 0.08);
  --surface-hover: rgba(255, 200, 220, 0.14);
  --border: rgba(255, 255, 255, 0.22);
  --border-strong: rgba(255, 120, 180, 0.55);
  --rose: #ff9fd0;
  --blush: #ffc8dd;
  --lavender: #e8c4ff;
  --plum: #b84fd4;
  --accent: #ff5cad;
  --hot-pink: #ff4fa8;
  --text: #fff5f9;
  --text-muted: rgba(255, 235, 245, 0.72);
  --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --candy-ring: rgba(255, 105, 180, 0.42);
  --candy-shadow: 0 8px 0 rgba(90, 20, 60, 0.38), 0 14px 32px rgba(0, 0, 0, 0.32);
  --candy-shadow-hover: 0 10px 0 rgba(90, 20, 60, 0.42), 0 18px 36px rgba(255, 80, 160, 0.22);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --max-width: 1280px;
  --header-h: 76px;
  --shimmer: linear-gradient(
    90deg,
    rgba(255, 160, 200, 0.06) 0%,
    rgba(255, 200, 220, 0.22) 50%,
    rgba(255, 160, 200, 0.06) 100%
  );

  /* Legacy tokens used by modals */
  --spacing-4: 0.25rem;
  --spacing-6: 0.375rem;
  --spacing-8: 0.5rem;
  --spacing-10: 0.625rem;
  --spacing-12: 0.75rem;
  --spacing-16: 1rem;
  --spacing-20: 1.25rem;
  --spacing-24: 1.5rem;
  --spacing-32: 2rem;
  --system-label: var(--text);
  --system-label-secondary: var(--text-muted);
  --system-label-tertiary: rgba(255, 235, 245, 0.5);
  --primary-purple: #c93d8f;
  --primary-pink: #ff6eb4;
  --secondary-purple: #9b5fae;
  --secondary-pink: #ff4fa8;
  --accent-pink: #ff8fb8;
  --tertiary-pink: #ffc8dd;
  --light-purple: #d9b8f0;
  --bg-card: linear-gradient(160deg, #3a1842 0%, #2a1230 100%);
  --text-caption1: 0.8125rem;
  --text-footnote: 0.9375rem;
  --text-subhead: 1.0625rem;
  --text-body: 1.0625rem;
  --text-title3: 1.1875rem;
  --text-title2: 1.4375rem;
  --text-title1: 1.875rem;
  --text-large-title: 2.125rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 120, 180, 0.16), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(200, 120, 255, 0.12), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(255, 80, 160, 0.1), transparent 40%),
    linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-mid) 45%, var(--bg-soft) 100%);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

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

/* Shimmer skeleton */
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton,
.skeleton-block {
  background: var(--shimmer);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255, 255, 255, 0.08);
}

/* Header — candy bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    linear-gradient(180deg, rgba(255, 110, 180, 0.12) 0%, rgba(20, 8, 24, 0.94) 100%);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 0 rgba(120, 20, 80, 0.28);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9375rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.logo-link {
  display: block;
  text-decoration: none;
  filter: drop-shadow(0 2px 6px rgba(255, 100, 180, 0.35));
  transition: transform 0.2s ease;
}

.logo-link:hover {
  transform: scale(1.03) rotate(-1deg);
}

.logo-image {
  height: 42px;
  width: auto;
}

.nav-desktop {
  display: none;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a,
.burger-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--blush);
  text-decoration: none;
  padding: 0.45rem 1.0625rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 160, 200, 0.35);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s;
}

.nav-desktop a:hover,
.burger-btn:hover {
  color: #b9136f;
  background: linear-gradient(180deg, #fff 0%, #ffe8f4 100%);
  border-color: #ff69b4;
  box-shadow: 0 3px 0 #d63384;
  transform: translateY(-2px);
}

.burger-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.65rem;
}

.burger-btn span {
  display: block;
  width: 20px;
  height: 3px;
  background: var(--blush);
  border-radius: 999px;
  transition: transform 0.25s, opacity 0.25s;
}

.burger-btn.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-btn.is-open span:nth-child(2) { opacity: 0; }
.burger-btn.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(20, 8, 24, 0.96);
  backdrop-filter: blur(12px);
  padding: calc(var(--header-h) + 2rem) 2rem 2rem;
}

.mobile-nav.is-open { display: block; }

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 0.9375rem 0;
  border-bottom: 2px dashed rgba(255, 160, 200, 0.25);
  text-shadow: 0 2px 0 rgba(120, 10, 70, 0.25);
}

.mobile-nav a:hover {
  color: var(--blush);
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .burger-btn { display: none; }
  .logo-image { height: 48px; }
}

/* Page layout */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.hero {
  text-align: center;
  padding: 2rem 0 1.5rem;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 0.75rem;
  text-shadow: 0 1px 0 rgba(120, 10, 70, 0.35);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  color: #fff;
  text-shadow:
    0 3px 0 #c9187a,
    0 6px 0 rgba(120, 10, 70, 0.35),
    0 0 24px rgba(255, 180, 220, 0.35);
}

.hero-sub {
  margin: 0 auto 0.5rem;
  max-width: 36rem;
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: var(--text-md);
  font-weight: 500;
  line-height: 1.65;
}

/* Sissy'O'Meter — hero focal point (stays hot pink vs muted site panels) */
.hero-meter {
  max-width: 26rem;
  width: 100%;
  margin: 1.5rem auto 0;
  padding: 0;
  position: relative;
  z-index: 3;
  transform: scale(1.02);
  filter:
    drop-shadow(0 0 28px rgba(255, 80, 160, 0.55))
    drop-shadow(0 18px 36px rgba(0, 0, 0, 0.35));
}

.hero-meter::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 36px;
  background: radial-gradient(circle, rgba(255, 120, 180, 0.35) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-meter-card {
  position: relative;
  padding: 1.15rem 1.25rem 1rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(160deg, #ff9ecf 0%, #ff6eb4 38%, #e84a9a 72%, #c93d8f 100%);
  border: 3px solid #fff;
  box-shadow:
    0 0 0 3px #ff4fa8,
    0 14px 0 rgba(180, 30, 110, 0.55),
    0 22px 40px rgba(255, 80, 160, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.45);
  overflow: visible;
}

.hero-meter-deco {
  position: absolute;
  pointer-events: none;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(120, 0, 60, 0.35));
}

.hero-meter-deco--spark {
  top: -0.35rem;
  left: 1rem;
  font-size: 1.35rem;
  color: #fff8fc;
  animation: meter-sparkle 2.2s ease-in-out infinite;
}

.hero-meter-deco--heart {
  top: 0.5rem;
  right: 1.1rem;
  font-size: 1.1rem;
  color: #ffe0ef;
  animation: meter-bob 2.8s ease-in-out infinite;
}

.hero-meter-deco--lip {
  bottom: -0.55rem;
  right: 1.35rem;
  font-size: 1.45rem;
  animation: meter-wiggle 3s ease-in-out infinite;
}

.hero-meter-head {
  margin-bottom: 0.65rem;
}

.hero-meter-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 0 rgba(140, 20, 80, 0.35);
}

.hero-meter-title {
  margin: 0;
  font-family: 'Fredoka', 'Nunito', system-ui, sans-serif;
  font-size: clamp(1.65rem, 5vw, 2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow:
    0 2px 0 #c9187a,
    0 4px 0 rgba(120, 10, 70, 0.35),
    0 0 18px rgba(255, 220, 240, 0.55);
}

.hero-meter-blog {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 240, 248, 0.92);
}

.hero-meter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 auto 0.75rem;
  padding: 0.45rem 1rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, #ffe8f4 100%);
  border: 2px solid #ff69b4;
  box-shadow:
    0 3px 0 #d63384,
    0 6px 16px rgba(0, 0, 0, 0.18);
  font-family: 'Fredoka', 'Nunito', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #b9136f;
  white-space: nowrap;
}

.hero-meter.is-ready .hero-meter-badge {
  animation: meter-badge-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-meter-emoji {
  font-size: 1.35rem;
  line-height: 1;
  display: inline-block;
}

.hero-meter.is-peak .hero-meter-emoji {
  animation: meter-wiggle 1.6s ease-in-out infinite;
}

.hero-meter-label-text {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hero-meter-track {
  position: relative;
  height: 26px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0 6px,
      rgba(255, 255, 255, 0) 6px 12px
    ),
    linear-gradient(180deg, #3a1230 0%, #1a0818 100%);
  border: 3px solid #fff;
  box-shadow:
    inset 0 3px 8px rgba(0, 0, 0, 0.45),
    0 2px 0 rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.hero-meter-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(180deg, #ffb8dc 0%, #ff5cad 45%, #ff2d8f 100%);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.55),
    inset 0 -4px 8px rgba(180, 20, 90, 0.35),
    0 0 16px rgba(255, 100, 180, 0.65);
  transition: width 1.1s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.hero-meter-shine {
  position: absolute;
  top: 3px;
  left: 8%;
  right: 12%;
  height: 38%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.hero-meter.is-loading .hero-meter-fill {
  width: 40% !important;
  animation: meter-pulse-loading 1.1s ease-in-out infinite;
}

.hero-meter.is-ready .hero-meter-fill {
  animation: meter-slosh 2.8s ease-in-out infinite;
}

.hero-meter.is-peak .hero-meter-fill {
  animation: meter-slosh 1.6s ease-in-out infinite, meter-glow-hot 1.2s ease-in-out infinite alternate;
}

.hero-meter-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', 'Nunito', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow:
    0 1px 0 #9c1458,
    0 2px 4px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 1;
}

.hero-meter-meta {
  margin: 0.55rem 0 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 245, 250, 0.95);
  text-align: center;
  text-shadow: 0 1px 0 rgba(120, 10, 70, 0.35);
}

.hero-meter-meta #sissy-meter-count {
  color: inherit;
}

/* Tier colours — bar + card tint shift as she gets sluttier */
.hero-meter[data-tier='0'] .hero-meter-fill {
  background: linear-gradient(180deg, #ddd0ff 0%, #a98cf5 45%, #7b5fd4 100%);
}

.hero-meter[data-tier='1'] .hero-meter-fill {
  background: linear-gradient(180deg, #ffd6eb 0%, #ff9fd0 45%, #ff6eb4 100%);
}

.hero-meter[data-tier='2'] .hero-meter-fill {
  background: linear-gradient(180deg, #ffc4e8 0%, #ff6eb4 40%, #ff3d9a 100%);
}

.hero-meter[data-tier='3'] .hero-meter-fill {
  background: linear-gradient(180deg, #ffb0df 0%, #ff4fa8 42%, #e6007a 100%);
}

.hero-meter[data-tier='4'] .hero-meter-fill {
  background: linear-gradient(180deg, #ff9a6e 0%, #ff4fa8 38%, #ff1744 100%);
}

.hero-meter[data-tier='5'] .hero-meter-fill {
  background: linear-gradient(180deg, #ff7eb8 0%, #d946ef 40%, #9333ea 100%);
}

.hero-meter[data-tier='6'] .hero-meter-card {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 240, 160, 0.45), transparent 38%),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(160deg, #ffd56a 0%, #ff9ecf 28%, #ff6eb4 55%, #e84a9a 100%);
  box-shadow:
    0 0 0 3px #ffd700,
    0 14px 0 rgba(180, 30, 110, 0.55),
    0 22px 40px rgba(255, 180, 80, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.45);
}

.hero-meter[data-tier='6'] .hero-meter-fill {
  background: linear-gradient(180deg, #fff3a0 0%, #ff6eb4 35%, #ff1744 70%, #c026d3 100%);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.65),
    0 0 22px rgba(255, 215, 0, 0.55);
}

@keyframes meter-sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
  50% { transform: scale(1.25) rotate(18deg); opacity: 1; }
}

@keyframes meter-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes meter-wiggle {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.08); }
}

@keyframes meter-badge-pop {
  0% { transform: scale(0.82); }
  100% { transform: scale(1); }
}

@keyframes meter-pulse-loading {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes meter-slosh {
  0%, 100% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.12) saturate(1.15); }
}

@keyframes meter-glow-hot {
  from {
    box-shadow:
      inset 0 3px 0 rgba(255, 255, 255, 0.55),
      0 0 14px rgba(255, 100, 180, 0.55);
  }
  to {
    box-shadow:
      inset 0 3px 0 rgba(255, 255, 255, 0.65),
      0 0 28px rgba(255, 200, 100, 0.75);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-meter-fill,
  .hero-meter-badge,
  .hero-meter-emoji,
  .hero-meter-deco {
    animation: none !important;
  }

  .hero-meter-fill {
    transition: width 0.35s ease;
  }
}

.gallery-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
  visibility: hidden;
}

.section {
  margin-bottom: 3rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0 0.15rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 700;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 0 rgba(120, 10, 70, 0.35);
}

.section-note {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--rose);
  margin: 0;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 160, 200, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.panel {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 160, 200, 0.08), transparent 40%),
    linear-gradient(165deg, rgba(58, 24, 66, 0.92) 0%, rgba(34, 16, 40, 0.96) 100%);
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow:
    0 0 0 2px var(--candy-ring),
    var(--candy-shadow);
}

/* Recently added */
.recent-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.recent-track::-webkit-scrollbar {
  height: 6px;
}

.recent-track::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--plum), var(--accent));
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.recent-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: linear-gradient(180deg, rgba(50, 20, 58, 0.95), rgba(34, 16, 40, 0.98));
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 5px 0 rgba(90, 20, 60, 0.32), 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.recent-card:hover {
  transform: translateY(-5px) rotate(-0.5deg);
  box-shadow: var(--candy-shadow-hover);
}

.recent-card .thumb {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-soft);
  border-bottom: 2px solid rgba(255, 160, 200, 0.2);
}

.recent-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-card .meta {
  padding: 0.65rem 0.75rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.recent-time {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--rose);
}

.recent-copy-btn {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid rgba(255, 160, 200, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: var(--rose);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.recent-copy-btn:hover {
  background: linear-gradient(180deg, #fff, #ffe8f4);
  color: #b9136f;
  border-color: #ff69b4;
  box-shadow: 0 2px 0 #d63384;
  transform: translateY(-1px);
}

.recent-skeleton {
  flex: 0 0 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.recent-skeleton .sk-img {
  aspect-ratio: 4 / 5;
}

.recent-skeleton .sk-line {
  height: 12px;
  margin: 0.75rem;
  width: 55%;
}

/* Most reacted */
.most-reacted-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .most-reacted-grid {
    grid-template-columns: 1fr;
  }
}

.rank-card,
.carousel-card {
  position: relative;
  cursor: pointer;
}

.rank-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: var(--bg-soft);
  box-shadow: 0 6px 0 rgba(90, 20, 60, 0.32), 0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--candy-shadow-hover);
}

.react-pill {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 232, 244, 0.92));
  border: 2px solid #ff69b4;
  color: #b9136f;
  box-shadow: 0 2px 0 #d63384;
  pointer-events: none;
}

.rank-card.rank-1 { grid-column: span 1; }
.rank-card .thumb { aspect-ratio: 3 / 4; }
.rank-card img { width: 100%; height: 100%; object-fit: cover; }

.rank-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6eb4, #e84a9a);
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 2px 0 rgba(120, 10, 70, 0.45);
}

.carousel-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.carousel-card {
  flex: 0 0 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 4px 0 rgba(90, 20, 60, 0.28);
  transition: transform 0.2s ease;
}

.carousel-card:hover {
  transform: translateY(-3px) rotate(1deg);
}

.carousel-card .thumb { aspect-ratio: 1; }
.carousel-card img { width: 100%; height: 100%; object-fit: cover; }

/* Main gallery — All Captions cards */
#gallery {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

#gallery > .masonry-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

.image-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 92% 4%, rgba(255, 160, 200, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(54, 22, 62, 0.96) 0%, rgba(30, 12, 36, 0.98) 100%);
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 105, 180, 0.22),
    0 6px 0 rgba(90, 20, 60, 0.34),
    0 10px 24px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.image-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 0 0 2px rgba(255, 105, 180, 0.38),
    var(--candy-shadow-hover);
}

.card-media {
  position: relative;
}

.image-card .thumb-link {
  display: block;
  overflow: hidden;
  background: var(--bg-soft);
}

.image-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
}

.image-card:hover img {
  transform: scale(1.02);
}

.image-card.is-multi .thumb-link {
  position: relative;
}

.multi-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6eb4, #e84a9a);
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 2px 0 rgba(120, 10, 70, 0.4);
}

/* Card footer — share + reactions */
.image-card .card-footer {
  padding: 0.55rem 0.65rem 0.65rem;
  background:
    linear-gradient(180deg, rgba(255, 160, 200, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-top: 2px dashed rgba(255, 160, 200, 0.22);
}

.image-card .card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.image-card .card-footer-row + .card-footer-row {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 160, 200, 0.12);
}

.image-card .card-row-label {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose);
  white-space: nowrap;
}

.image-card .card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  flex: 1;
}

.image-card .card-actions a,
.image-card .card-actions button {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid rgba(255, 160, 200, 0.38);
  background: rgba(255, 255, 255, 0.07);
  color: var(--blush);
  cursor: pointer;
  font-size: 1.0625rem;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.image-card .share-tumblr:hover {
  background: #36465d;
  border-color: #fff;
  color: #fff;
  box-shadow: 0 2px 0 #1f2937;
  transform: translateY(-2px);
}

.image-card .share-reddit:hover {
  background: #ff4500;
  border-color: #fff;
  color: #fff;
  box-shadow: 0 2px 0 #c2410c;
  transform: translateY(-2px);
}

.image-card .copy-btn .copy-done,
.image-card .copy-btn.is-copied .copy-icon,
.recent-copy-btn .copy-done,
.recent-copy-btn.is-copied .copy-icon {
  display: none;
}

.image-card .copy-btn.is-copied .copy-done,
.recent-copy-btn.is-copied .copy-done {
  display: inline;
}

.image-card .copy-btn:hover,
.recent-copy-btn:hover {
  background: linear-gradient(180deg, #fff, #ffe8f4);
  color: #b9136f;
  border-color: #ff69b4;
  box-shadow: 0 2px 0 #d63384;
  transform: translateY(-2px);
}

.image-card .copy-btn.is-copied,
.recent-copy-btn.is-copied {
  background: linear-gradient(180deg, #bbf7d0, #86efac);
  border-color: #22c55e;
  color: #166534;
  box-shadow: 0 2px 0 #15803d;
}

.image-card .copy-btn.is-error,
.recent-copy-btn.is-error {
  background: linear-gradient(180deg, #fecaca, #fca5a5);
  border-color: #ef4444;
  color: #991b1b;
}

.image-card .reactions-zone {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  flex: 1;
}

.image-card .emoji-reaction {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 2.35rem;
  justify-content: center;
  padding: 0.32rem 0.5rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 160, 200, 0.32);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.image-card .emoji-glyph {
  font-size: 1.0625rem;
  line-height: 1;
}

.image-card .emoji-reaction:hover,
.image-card .emoji-reaction.selected {
  border-color: #ff69b4;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 232, 244, 0.92));
  color: #b9136f;
  box-shadow: 0 2px 0 #d63384;
  transform: translateY(-1px);
}

.image-card .emoji-reaction.selected {
  background: linear-gradient(180deg, #ffb8dc, #ff6eb4);
  color: #fff;
  border-color: #fff;
  text-shadow: 0 1px 0 rgba(120, 10, 70, 0.35);
}

.image-card .emoji-count {
  font-size: var(--text-sm);
  min-width: 0.55rem;
  opacity: 0.95;
}

.image-card .emoji-reaction:not(.selected) .emoji-count:empty {
  display: none;
}

.gallery-skeleton-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-skeleton-card {
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.gallery-skeleton-card .sk-img {
  height: 180px;
}

.gallery-skeleton-card .sk-bar {
  height: 12px;
  margin: 0.55rem 0.65rem 0;
  border-radius: 999px;
}

.gallery-skeleton-card .sk-bar--short {
  width: 45%;
  margin-bottom: 0.65rem;
}

.load-status {
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--rose);
  padding: 1.5rem;
  text-shadow: 0 1px 0 rgba(120, 10, 70, 0.25);
}

.load-status.is-hidden {
  display: none;
}

/* Fade-in when content replaces skeleton */
.fade-in {
  animation: fadeIn 0.35s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton,
  .skeleton-block,
  .fade-in {
    animation: none;
  }
}

/* ── Modals & floating widgets (cartoon candy) ── */

.age-verification-overlay {
  background: rgba(20, 8, 24, 0.92) !important;
}

.age-verification-modal {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(160deg, #ff9ecf 0%, #ff6eb4 38%, #c93d8f 100%) !important;
  border: 3px solid #fff !important;
  border-radius: 28px !important;
  box-shadow:
    0 0 0 3px #ff4fa8,
    0 14px 0 rgba(180, 30, 110, 0.55),
    0 22px 40px rgba(255, 80, 160, 0.35) !important;
}

.age-verification-title {
  font-family: var(--font-display) !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
  text-shadow: 0 2px 0 #c9187a !important;
}

.age-verification-description,
.age-verification-warning p,
.age-verification-warning li {
  color: rgba(255, 245, 250, 0.92) !important;
}

.age-verification-warning {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 2px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 16px !important;
}

.age-verify-enter {
  font-family: var(--font-display) !important;
  background: linear-gradient(180deg, #fff, #e8fff0) !important;
  border: 2px solid #22c55e !important;
  color: #15803d !important;
  border-radius: 999px !important;
  box-shadow: 0 3px 0 #16a34a !important;
}

.age-verify-enter:hover,
.age-verify-enter:focus {
  color: #fff !important;
  background: linear-gradient(180deg, #4ade80, #22c55e) !important;
}

.age-verify-exit {
  font-family: var(--font-display) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 2px solid rgba(255, 255, 255, 0.45) !important;
  color: #fff !important;
  border-radius: 999px !important;
}

.newsletter-trigger {
  font-family: var(--font-display) !important;
  background: linear-gradient(160deg, #ff9ecf, #ff6eb4) !important;
  border: 3px solid #fff !important;
  box-shadow:
    0 0 0 2px #ff4fa8,
    0 8px 0 rgba(180, 30, 110, 0.45),
    0 12px 24px rgba(255, 80, 160, 0.35) !important;
}

.newsletter-trigger:hover:not(.morphing) {
  transform: translateY(-3px) scale(1.04) !important;
  background: linear-gradient(160deg, #ffb8dc, #ff4fa8) !important;
}

.newsletter-trigger.morphing {
  background: var(--bg-card) !important;
  border: 2px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow:
    0 0 0 2px var(--candy-ring),
    var(--candy-shadow) !important;
}

.newsletter-title {
  font-family: var(--font-display) !important;
  color: #fff !important;
  text-shadow: 0 2px 0 rgba(120, 10, 70, 0.35);
}

.newsletter-description {
  color: var(--text-muted) !important;
}

.newsletter-icon {
  background: linear-gradient(180deg, #ff6eb4, #e84a9a) !important;
  border: 2px solid #fff;
  box-shadow: 0 3px 0 rgba(120, 10, 70, 0.4);
}

#newsletter-email {
  border: 2px solid rgba(255, 160, 200, 0.35) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text) !important;
}

#newsletter-email:focus {
  border-color: #ff69b4 !important;
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.25) !important;
}

.newsletter-submit,
.newsletter-retry {
  font-family: var(--font-display) !important;
  background: linear-gradient(180deg, #ff6eb4, #e84a9a) !important;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  box-shadow: 0 3px 0 rgba(120, 10, 70, 0.45) !important;
}

.newsletter-submit:hover:not(:disabled),
.newsletter-retry:hover {
  transform: translateY(-2px) !important;
  background: linear-gradient(180deg, #ff8fc8, #ff4fa8) !important;
}

/* ── Play pages (Quiz + Wheel) ── */

.page-play .page--play {
  position: relative;
  max-width: 1100px;
  padding-bottom: 4rem;
}

.page-play .hero--play {
  padding: 1.75rem 0 1.25rem;
  text-align: center;
}

.page-play .hero-sub {
  max-width: 40rem;
}

.nav-quiz {
  background: linear-gradient(180deg, rgba(255, 110, 180, 0.2), rgba(255, 80, 160, 0.12));
  border-color: rgba(255, 160, 200, 0.5) !important;
}

.nav-wheel {
  background: linear-gradient(180deg, rgba(200, 120, 255, 0.18), rgba(255, 80, 160, 0.1));
  border-color: rgba(220, 160, 255, 0.45) !important;
}

/* Floating girly deco */
.play-floats {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.play-float {
  position: absolute;
  font-size: 1.25rem;
  opacity: 0.45;
  animation: play-float-drift 8s ease-in-out infinite;
}

.play-float--1 { top: 12%; left: 6%; animation-delay: 0s; }
.play-float--2 { top: 22%; right: 8%; animation-delay: 1.2s; font-size: 1rem; }
.play-float--3 { top: 48%; left: 4%; animation-delay: 2.4s; }
.play-float--4 { top: 62%; right: 5%; animation-delay: 0.8s; font-size: 1.4rem; }
.play-float--5 { bottom: 18%; left: 10%; animation-delay: 1.8s; }
.play-float--6 { bottom: 10%; right: 12%; animation-delay: 3s; font-size: 1.0625rem; }

@keyframes play-float-drift {
  0%, 100% { transform: translateY(0) rotate(-8deg) scale(1); opacity: 0.35; }
  50% { transform: translateY(-14px) rotate(10deg) scale(1.12); opacity: 0.7; }
}

/* Two-column layout */
.play-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 900px) {
  .play-layout {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 1.75rem;
  }
}

.play-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 899px) {
  .play-aside {
    order: 2;
  }

  .play-main {
    order: 1;
  }
}

.play-aside-card {
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 160, 200, 0.1), transparent 45%),
    linear-gradient(165deg, rgba(58, 24, 66, 0.92), rgba(34, 16, 40, 0.96));
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 1px var(--candy-ring), var(--candy-shadow);
}

.play-aside-card--pink {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(160deg, rgba(255, 158, 207, 0.35), rgba(58, 24, 66, 0.95));
}

.play-aside-card--soft {
  background: rgba(255, 200, 220, 0.06);
}

.play-aside-kicker {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
}

.play-stat-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.9375rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 2px dashed rgba(255, 160, 200, 0.35);
}

.play-stat-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 0 rgba(120, 10, 70, 0.35);
}

.play-stat-value.play-stat-pop {
  animation: play-stat-pop 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes play-stat-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); color: var(--blush); }
  100% { transform: scale(1); }
}

.play-stat-label {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.play-aside-note {
  margin: 0.65rem 0 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  text-align: center;
  color: var(--text-muted);
}

.play-tier-list,
.play-tip-list,
.play-lock-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.play-tier-list li,
.play-tip-list li,
.play-lock-list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(255, 160, 200, 0.12);
}

.play-tier-list li:last-child,
.play-tip-list li:last-child,
.play-lock-list li:last-child {
  border-bottom: 0;
}

.play-lock-list li.is-permanent {
  color: #ffd56a;
  font-weight: 600;
}

.play-main {
  min-width: 0;
}

.play-main--wheel {
  display: flex;
  justify-content: center;
}

.play-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.play-chip {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 160, 200, 0.28);
  color: var(--blush);
}

.play-card-deco {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
  animation: meter-bob 3s ease-in-out infinite;
}

.play-card-deco--spin {
  font-size: 2rem;
}

/* ── Quiz ── */

.quiz-wrap,
.wheel-wrap {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
}

.quiz-panel {
  display: none;
}

.quiz-panel.is-active {
  display: block;
  animation: play-panel-in 0.45s ease forwards;
}

@keyframes play-panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-card {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.14), transparent 42%),
    linear-gradient(165deg, rgba(58, 24, 66, 0.96) 0%, rgba(34, 16, 40, 0.98) 100%);
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 2px var(--candy-ring), var(--candy-shadow);
  text-align: center;
}

@media (min-width: 900px) {
  .quiz-card--hero,
  .quiz-card--question,
  .quiz-card--result {
    padding: 2.25rem 2rem 2rem;
  }

  .quiz-card--question {
    min-height: 22rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.quiz-card--result {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 240, 160, 0.22), transparent 38%),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(160deg, #ff9ecf 0%, #ff6eb4 38%, #c93d8f 100%);
  border: 3px solid #fff;
  box-shadow:
    0 0 0 3px #ff4fa8,
    0 14px 0 rgba(180, 30, 110, 0.55),
    0 22px 40px rgba(255, 80, 160, 0.35);
}

.quiz-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
}

.quiz-card--result .quiz-kicker {
  color: rgba(255, 245, 250, 0.9);
}

.quiz-card-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 0 rgba(120, 10, 70, 0.35);
}

.quiz-card-text {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: var(--text-md);
  line-height: 1.65;
}

.quiz-rules {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.quiz-rules li {
  padding: 0.4rem 0 0.4rem 1.35rem;
  position: relative;
}

.quiz-rules li::before {
  content: '♡';
  position: absolute;
  left: 0;
  color: var(--rose);
}

.quiz-progress-wrap {
  margin-bottom: 1.25rem;
}

.quiz-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.quiz-q-badge {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6eb4, #e84a9a);
  border: 2px solid #fff;
  color: #fff;
  box-shadow: 0 2px 0 rgba(120, 10, 70, 0.4);
}

.quiz-progress-track {
  height: 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6eb4, #ffc8dd, #ff6eb4);
  background-size: 200% 100%;
  animation: meter-slosh 2.5s ease-in-out infinite;
  transition: width 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.quiz-progress-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--rose);
}

.quiz-points-hint {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rose);
}

.quiz-question-wrap {
  margin-bottom: 1.5rem;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-question-wrap.quiz-question-pop {
  animation: quiz-question-pop 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes quiz-question-pop {
  0% { opacity: 0; transform: translateX(18px); }
  100% { opacity: 1; transform: translateX(0); }
}

.quiz-question {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.5vw, 1.65rem);
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  text-shadow: 0 1px 0 rgba(120, 10, 70, 0.3);
}

.quiz-answers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 520px) {
  .quiz-answers {
    flex-direction: row;
    justify-content: center;
  }
}

.quiz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.quiz-btn--xl {
  padding: 0.9375rem 1.5rem;
  font-size: 1rem;
}

.quiz-btn--block {
  width: 100%;
}

.quiz-btn--primary {
  background: linear-gradient(180deg, #ff6eb4, #e84a9a);
  border-color: #fff;
  color: #fff;
  box-shadow: 0 3px 0 rgba(120, 10, 70, 0.45);
  animation: quiz-btn-glow 2.5s ease-in-out infinite;
}

@keyframes quiz-btn-glow {
  0%, 100% { box-shadow: 0 3px 0 rgba(120, 10, 70, 0.45), 0 0 0 rgba(255, 100, 180, 0); }
  50% { box-shadow: 0 3px 0 rgba(120, 10, 70, 0.45), 0 0 18px rgba(255, 100, 180, 0.45); }
}

.quiz-btn--primary:hover {
  transform: translateY(-2px);
}

.quiz-btn--secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), #ffe8f4);
  border-color: #ff69b4;
  color: #b9136f;
  box-shadow: 0 3px 0 #d63384;
}

.quiz-btn--yes {
  flex: 1;
  background: linear-gradient(180deg, #fff, #ffe8f4);
  border-color: #ff69b4;
  color: #b9136f;
  box-shadow: 0 3px 0 #d63384;
}

.quiz-btn--no {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 160, 200, 0.35);
  color: var(--blush);
}

.quiz-btn--yes:hover,
.quiz-btn--no:hover,
.quiz-btn--secondary:hover {
  transform: translateY(-2px);
}

.quiz-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.quiz-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.quiz-score-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6.5rem;
  height: 6.5rem;
  margin: 0.5rem auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid #fff;
  box-shadow: 0 4px 0 rgba(120, 10, 70, 0.4);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #b9136f;
}

.quiz-score-label {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 245, 250, 0.9);
}

.quiz-result-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 0 #c9187a;
}

.quiz-result-emoji {
  margin: 0 0 0.65rem;
  font-size: 2.5rem;
  line-height: 1;
  animation: meter-wiggle 2.5s ease-in-out infinite;
}

.quiz-result-blurb {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.65;
  color: rgba(255, 245, 250, 0.92);
}

.quiz-result-meter {
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.35);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.quiz-result-meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #fff, #ffc8dd);
  transition: width 1s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.quiz-result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.quiz-results.quiz-pop .quiz-card--result {
  animation: quiz-pop-in 0.55s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes quiz-pop-in {
  0% { transform: scale(0.88); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.page-quiz .quiz-card--result .quiz-kicker,
.page-quiz .quiz-card--result .quiz-score-label,
.page-quiz .quiz-card--result .quiz-result-blurb {
  text-shadow: 0 1px 0 rgba(120, 10, 70, 0.25);
}

/* ── Chastity Wheel ── */

.page-wheel .page--play.is-showing-fate {
  padding-bottom: 2.5rem;
}

.page-wheel .hero--play.is-compact {
  padding: 1rem 0 0.5rem;
}

.page-wheel .hero--play.is-compact .hero-title {
  font-size: clamp(1.65rem, 5vw, 2.1rem);
}

.page-wheel .hero--play.is-compact .hero-sub,
.page-wheel .hero--play.is-compact .hero-eyebrow {
  display: none;
}

.wheel-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .wheel-shell {
    max-width: 42rem;
  }

  .wheel-shell.is-showing-result {
    max-width: 42rem;
  }

  .wheel-shell.is-showing-result .wheel-play {
    width: 100%;
    min-height: min(72vh, 40rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0 2rem;
  }

  .wheel-play.is-showing-result .wheel-result {
    display: flex;
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
  }
}

.wheel-shell.is-showing-result .wheel-disclaimer,
.wheel-shell.is-showing-result .wheel-meta {
  display: none;
}

@media (max-width: 899px) {
  .wheel-shell.is-showing-result .wheel-play {
    min-height: 0;
  }
}

.wheel-confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  overflow: hidden;
}

.wheel-confetti-piece {
  position: fixed;
  font-size: calc(1.1rem * var(--size, 1));
  line-height: 1;
  transform: translate(-50%, -50%);
  animation: wheel-confetti-burst 1.8s cubic-bezier(0.15, 0.85, 0.2, 1) forwards;
  will-change: transform, opacity;
}

@keyframes wheel-confetti-burst {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(var(--size, 1)) rotate(var(--rot));
  }
}

.wheel-wrap {
  text-align: center;
  width: 100%;
}

.wheel-play {
  position: relative;
  min-height: min(88vw, 22rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (min-width: 900px) {
  .wheel-play {
    min-height: 38rem;
    width: 100%;
  }

  .wheel-shell.is-showing-result .wheel-play {
    min-height: min(72vh, 40rem);
    padding: 1.5rem 0 2rem;
  }
}

.wheel-play.is-showing-result .wheel-stage {
  display: none;
}

.wheel-play.is-showing-result .wheel-result {
  display: flex;
  justify-content: center;
  width: 100%;
}

.wheel-disclaimer {
  margin: 0.85rem 0 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
}

.wheel-meta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 160, 200, 0.14);
}

.wheel-meta-label {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  text-align: center;
}

.wheel-legend-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem 0.65rem;
}

@media (min-width: 480px) {
  .wheel-legend-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.wheel-legend-grid li {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.3;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wheel-legend-grid li.is-permanent {
  color: #ffd56a;
  font-weight: 600;
}

.wheel-legend-grid .play-lock-emoji {
  margin-right: 0.2rem;
}

.wheel-meta-foot {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: var(--text-sm);
}

.wheel-meta-foot a {
  color: var(--rose);
  text-decoration: none;
}

.wheel-meta-foot a:hover {
  text-decoration: underline;
}

.wheel-stage {
  position: relative;
  width: min(92vw, 22rem);
  margin: 0 auto;
  padding-top: 1.25rem;
}

@media (min-width: 900px) {
  .wheel-stage {
    width: min(100%, 38rem);
  }
}

.wheel-result {
  display: none;
  margin: 0;
  width: 100%;
  animation: play-panel-in 0.4s ease forwards;
}

@media (min-width: 900px) {
  .page-wheel .page--play.is-showing-fate {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.wheel-glow {
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 120, 180, 0.4), transparent 70%);
  animation: wheel-glow-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes wheel-glow-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

.wheel-stage.is-spinning .wheel-glow {
  animation: wheel-glow-spin 0.55s ease-in-out infinite;
}

@keyframes wheel-glow-spin {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; transform: scale(1.1); }
}

.wheel-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
}

.wheel-pointer-bow {
  font-size: 1.5rem;
  line-height: 1;
  animation: meter-bob 2.5s ease-in-out infinite;
}

.wheel-pointer-needle {
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 18px solid #ff4fa8;
  filter: drop-shadow(0 2px 0 rgba(120, 10, 70, 0.5));
}

.wheel-outer {
  position: relative;
  width: min(92vw, 22rem);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(160deg, #ff9ecf, #ff6eb4, #c93d8f);
  border: 3px solid #fff;
  box-shadow:
    0 0 0 3px #ff4fa8,
    0 12px 0 rgba(120, 10, 70, 0.45),
    0 18px 40px rgba(255, 80, 160, 0.35);
}

@media (min-width: 900px) {
  .wheel-outer {
    width: min(100%, 38rem);
    padding: 0.65rem;
  }

  .wheel-pointer-bow {
    font-size: 1.75rem;
  }

  .wheel-pointer-needle {
    border-left-width: 13px;
    border-right-width: 13px;
    border-top-width: 22px;
  }
}

.wheel-outer.is-spinning {
  animation: wheel-outer-wobble 0.28s ease-in-out infinite;
}

@keyframes wheel-outer-wobble {
  0%, 100% { transform: rotate(-0.6deg); }
  50% { transform: rotate(0.6deg); }
}

.wheel-spinner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.15);
  transform: rotate(0deg);
  will-change: transform;
}

.wheel-shine {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.wheel-labels {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  --label-radius: 7.5rem;
}

.wheel-seg-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.75rem;
  margin-left: -1.375rem;
  display: block;
  text-align: center;
  line-height: 1;
  font-family: var(--font-display);
  color: #5a1040;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
  pointer-events: none;
  transform-origin: 50% 50%;
  transform:
    rotate(var(--mid))
    translateY(calc(-1 * var(--label-radius)))
    rotate(var(--flip));
}

.wheel-seg-label-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.06em;
}

.wheel-seg-line {
  display: block;
  font-size: clamp(0.5625rem, 1.45vw, 0.75rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.05;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .wheel-seg-label {
    width: 3.25rem;
    margin-left: -1.625rem;
  }

  .wheel-seg-line {
    font-size: clamp(0.6875rem, 0.85vw, 0.875rem);
  }
}

.wheel-seg-label.is-permanent .wheel-seg-line {
  color: #7a4a00;
  font-size: clamp(0.8125rem, 1.8vw, 1.0625rem);
}

.wheel-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 6.25rem;
  height: 6.25rem;
  border-radius: 50%;
  border: 3px solid #fff;
  background: linear-gradient(180deg, #ff8fc8, #c9187a);
  box-shadow:
    0 4px 0 rgba(90, 10, 50, 0.55),
    0 0 24px rgba(255, 100, 180, 0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  animation: wheel-hub-pulse 2.2s ease-in-out infinite;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

@keyframes wheel-hub-pulse {
  0%, 100% { box-shadow: 0 4px 0 rgba(90, 10, 50, 0.55), 0 0 18px rgba(255, 100, 180, 0.4); }
  50% { box-shadow: 0 4px 0 rgba(90, 10, 50, 0.55), 0 0 32px rgba(255, 200, 220, 0.65); }
}

.wheel-hub:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.08);
}

.wheel-hub:disabled {
  opacity: 0.85;
  cursor: wait;
  animation: none;
}

.wheel-hub-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.wheel-hub-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

@media (min-width: 900px) {
  .wheel-hub {
    width: 7.5rem;
    height: 7.5rem;
  }

  .wheel-hub-icon {
    font-size: 1.5rem;
  }

  .wheel-hub-text {
    font-size: 1.125rem;
  }
}

.wheel-result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
  margin-top: 0.25rem;
}

@media (min-width: 420px) {
  .wheel-result-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .wheel-result-actions .quiz-btn--compact {
    flex: 0 1 auto;
    min-width: 7.5rem;
  }
}

.quiz-btn--compact {
  padding: 0.55rem 1rem;
  font-size: var(--text-sm);
}

.wheel-spin-again {
  flex: 1 1 100%;
  margin: 0 0 0.15rem;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 245, 250, 0.65);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.wheel-spin-again:hover {
  color: #fff;
}

.wheel-spin-again[hidden] {
  display: none;
}

.wheel-result-card {
  padding: 1.65rem 1.35rem 1.35rem;
  border-radius: 24px;
  text-align: center;
  width: 100%;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 240, 160, 0.22), transparent 38%),
    linear-gradient(160deg, #ff9ecf 0%, #ff6eb4 38%, #c93d8f 100%);
  border: 3px solid #fff;
  box-shadow:
    0 0 0 3px #ff4fa8,
    0 12px 0 rgba(180, 30, 110, 0.5),
    0 18px 36px rgba(255, 80, 160, 0.32);
}

@media (min-width: 900px) {
  .wheel-result-card {
    padding: 3rem 2.75rem 2.5rem;
    border-radius: 32px;
    max-width: 40rem;
    margin: 0 auto;
  }

  .wheel-result-emoji {
    font-size: 4.5rem;
  }

  .wheel-result-time {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
  }

  .wheel-result-blurb {
    font-size: 1.4375rem;
    line-height: 1.65;
    max-width: 34rem;
    margin-bottom: 1.5rem;
  }

  .wheel-result-kicker {
    font-size: var(--text-md);
    margin-bottom: 0.5rem;
  }
}

.wheel-result-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 245, 250, 0.92);
}

.wheel-result-emoji {
  margin: 0;
  font-size: 3rem;
  line-height: 1.2;
  animation: meter-wiggle 2s ease-in-out infinite;
}

@media (min-width: 900px) {
  .wheel-result-emoji {
    font-size: 4.5rem;
  }
}

.wheel-result-time {
  margin: 0.25rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 3px 0 #c9187a;
}

@media (min-width: 900px) {
  .wheel-result-time {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
  }
}

.wheel-result-blurb {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255, 245, 250, 0.95);
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 900px) {
  .wheel-result-blurb {
    font-size: 1.4375rem;
    line-height: 1.65;
    max-width: 34rem;
    margin-bottom: 1.5rem;
  }
}

.wheel-result.wheel-result-pop .wheel-result-card {
  animation: quiz-pop-in 0.55s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
  .play-float,
  .quiz-btn--primary,
  .quiz-result-emoji,
  .wheel-glow,
  .wheel-hub,
  .wheel-pointer-bow,
  .wheel-result-emoji,
  .play-card-deco {
    animation: none !important;
  }

  .wheel-spinner {
    transition-duration: 0.01ms !important;
  }

  .wheel-outer.is-spinning,
  .wheel-stage.is-spinning .wheel-glow {
    animation: none;
  }

  .quiz-panel.is-active,
  .quiz-question-wrap.quiz-question-pop,
  .quiz-results.quiz-pop .quiz-card--result,
  .wheel-result.wheel-result-pop .wheel-result-card,
  .wheel-confetti-piece {
    animation: none;
  }
}
