/* ==========================================================================
 * PurityTestGame — Tactile Physical Party Card Deck & 10-Seat Velvet Table (v14)
 * Warm Ivory Cardstock (#FFFBF2) · Cozy Berry-Velvet Lounge · Zero Clutter
 * ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600 800;
  font-display: optional;
  src: url('/fonts/fraunces-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('/fonts/source-sans-3-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url('/fonts/source-sans-3-600.woff2') format('woff2');
}

:root {
  --paper: #FAF8F3;
  --cream: #FFFBF2;
  --cream-soft: #F3ECE0;
  --cream-line: #E5DAC6;
  --lounge: #1D1224;
  --lounge-deep: #140C1A;
  --ink: #23172B;
  --ink-soft: #594B63;
  --berry: #E53858;
  --berry-lip: #A61C37;
  --honey: #FFC845;
  --honey-lip: #C48A0E;
  --mint: #12B886;
  --mint-lip: #0B825E;
  --wa: #20B858;
  --wa-lip: #14833C;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Source Sans 3', system-ui, -apple-system, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Minimal Cozy Party Header (54px) */
.site-header {
  height: 54px;
  background: var(--lounge-deep);
  border-bottom: 1px solid rgba(255, 245, 235, 0.08);
  position: sticky;
  top: 0;
  z-index: 60;
}

.header-inner {
  max-width: 1060px;
  height: 100%;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #FFF9F2;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.2rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255, 249, 242, 0.78);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover, .nav-link[aria-current="page"] {
  background: rgba(255, 249, 242, 0.12);
  color: #FFF9F2;
}

@media (max-width: 520px) {
  .header-inner {
    padding: 0 10px;
    gap: 6px;
  }
  .brand-link {
    font-size: 1rem;
    gap: 5px;
  }
  .nav-link {
    padding: 4px 7px;
    font-size: 0.78rem;
  }
}

/* First-Screen Party Lounge Stage (`100svh` Locked, Zero Clutter) */
.cinema-stage {
  position: relative;
  min-height: calc(100svh - 54px);
  background:
    radial-gradient(circle at 50% 34%, #3D1D3B 0%, #221329 52%, #150C1B 100%);
  color: #FFF9F2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 16px 24px;
}

.deck-arena {
  width: 100%;
  max-width: 456px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.deck-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px;
  font-size: 0.9rem;
  color: rgba(255, 249, 242, 0.82);
}

.deck-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 249, 242, 0.14);
  overflow: hidden;
}

.deck-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--honey), var(--berry));
  transition: width 0.22s ease;
}

/* Physical 3-Layer Cream Playing Card Stack (`#FFFBF2`) */
.playing-deck-sheet {
  background: var(--cream);
  color: var(--ink);
  border-radius: 28px;
  border: 1.5px solid #EAE0CE;
  padding: 24px 24px 22px;
  box-shadow:
    0 6px 0 #F0E6D5,
    0 7px 0 #D4C5AE,
    0 13px 0 #E7DCC9,
    0 14px 0 #C4B39A,
    0 28px 54px rgba(8, 3, 14, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 330px;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

.playing-deck-sheet.is-dealing {
  transform: translateY(5px) scale(0.985);
}

.deck-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.topic-sticker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #FFE6EC;
  color: #C42042;
  font-weight: 700;
  font-size: 0.84rem;
  transform: rotate(-1.5deg);
}

.score-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--cream-soft);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
}

.deck-question-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px 6px;
}

.deck-question-h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.42rem, 3.4vw, 1.82rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

/* Chunky 3D Toy Buttons */
.deck-actions-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.deck-actions-three {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 8px;
}

.tactile-btn {
  appearance: none;
  border: none;
  border-radius: 16px;
  min-height: 56px;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 1.04rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  transition: transform 0.08s ease, filter 0.14s ease;
}

.tactile-btn:hover {
  filter: brightness(1.03);
}

.tactile-btn:active {
  transform: translateY(3px);
}

.tactile-btn.is-never {
  background: var(--cream-soft);
  color: #382A40;
  border: 1px solid #DFD3BF;
  box-shadow: 0 4px 0 #D2C3AC;
}
.tactile-btn.is-never:active { box-shadow: 0 1px 0 #D2C3AC; }

.tactile-btn.is-done, .btn-calculate, .btn-primary {
  background: var(--berry);
  color: #FFFFFF;
  border: none;
  border-radius: 16px;
  padding: 13px 20px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 4px 0 var(--berry-lip);
  touch-action: manipulation;
}
.tactile-btn.is-done:active, .btn-calculate:active, .btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--berry-lip);
}

.tactile-btn.is-wish {
  background: var(--honey);
  color: #291802;
  box-shadow: 0 4px 0 var(--honey-lip);
}
.tactile-btn.is-wish:active { box-shadow: 0 1px 0 var(--honey-lip); }

.tactile-btn.is-mint {
  background: var(--mint);
  color: #FFFFFF;
  box-shadow: 0 4px 0 var(--mint-lip);
}

.btn-wa {
  background: var(--wa);
  color: #FFFFFF;
  border: none;
  border-radius: 13px;
  padding: 10px 15px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--wa-lip);
}

.btn-secondary, .mode-btn {
  background: rgba(255, 249, 242, 0.1);
  color: #FFF9F2;
  border: 1px solid rgba(255, 249, 242, 0.22);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cream-panel .btn-secondary, .cream-panel .mode-btn, .party-modal-box .btn-secondary, .party-modal-box .mode-btn {
  background: var(--cream-soft);
  color: var(--ink);
  border-color: var(--cream-line);
}

.mode-btn.is-active {
  background: var(--berry);
  border-color: var(--berry);
  color: #FFFFFF;
}

.deck-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 0 4px;
}

.quiet-link {
  background: none;
  border: none;
  padding: 4px 6px;
  color: rgba(255, 249, 242, 0.72);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.quiet-link:hover {
  color: var(--honey);
}

.how-it-works-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 249, 242, 0.08);
  border: 1px solid rgba(255, 249, 242, 0.16);
  color: rgba(255, 249, 242, 0.76);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

/* ==========================================================================
 * Report & Compare Screen: Gefei-Style 2-Column Tabletop (`table-two-col`)
 * Left = 10-Seat Velvet Board | Right = Single Warm Cream Panel (#FFFBF2)
 * ========================================================================== */
.table-two-col {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(0, 390px);
  gap: 24px;
  align-items: start;
  justify-content: center;
}

@media (max-width: 980px) {
  .table-two-col {
    grid-template-columns: minmax(0, 640px);
  }
}

.single-center-col {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.cream-panel {
  background: var(--cream);
  color: var(--ink);
  border-radius: 24px;
  border: 1.5px solid #EAE0CE;
  padding: 22px;
  box-shadow: 0 6px 0 #E9DEC9, 0 20px 44px rgba(8, 3, 14, 0.45);
}

.cream-score-num {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--berry);
}

.cream-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--cream-line);
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 600;
}

.cream-input:focus {
  outline: 2px solid var(--berry);
  border-color: transparent;
}

/* 5-Layer CSS Velvet & Walnut 10-Seat Party Table */
.party-velvet-board {
  position: relative;
  overflow: hidden;
  border: 9px solid transparent;
  border-radius: 20px;
  padding: 14px;
  background:
    radial-gradient(rgba(255, 255, 255, 0.06) 0.7px, transparent 1px) 0 0 / 5px 5px padding-box,
    radial-gradient(circle at 50% 38%, #8C2138, #4D1020) padding-box,
    repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 8px) border-box,
    linear-gradient(135deg, #B57E38, #7A4A24 50%, #4A2A12) border-box;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), inset 0 3px 12px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Matte Champagne Foil Rim (Zero tacky yellow fill — dark espresso velvet + brushed champagne inlay) */
.party-velvet-board.is-gold-table {
  background:
    radial-gradient(rgba(246, 226, 179, 0.07) 0.7px, transparent 1px) 0 0 / 5px 5px padding-box,
    radial-gradient(circle at 50% 32%, #311B2F 0%, #180D1B 100%) padding-box,
    linear-gradient(135deg, #ECD49B 0%, #B78D3E 32%, #F7E8BE 50%, #8C6620 82%, #DFC17D 100%) border-box;
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(242, 214, 148, 0.35),
    inset 0 0 0 1px rgba(242, 214, 148, 0.48),
    inset 0 4px 16px rgba(0, 0, 0, 0.55);
}

@keyframes champagneFoilSweep {
  0%, 20% { transform: translateX(-135%) skewX(-22deg); }
  65%, 100% { transform: translateX(235%) skewX(-22deg); }
}

.party-velvet-board.is-gold-table::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 46%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 245, 214, 0.06) 38%,
    rgba(255, 248, 226, 0.14) 50%,
    rgba(255, 245, 214, 0.06) 62%,
    transparent 100%
  );
  animation: champagneFoilSweep 5.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .party-velvet-board.is-gold-table::after {
    animation: none;
    display: none;
  }
}

.party-board-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.party-bulbs-row {
  display: inline-flex;
  gap: 6px;
}

.party-bulb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.party-bulb.is-lit {
  background: var(--honey);
  box-shadow: 0 0 8px var(--honey);
}

.party-seat-counter {
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFF9F2;
}

.party-seats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

@media (max-width: 640px) {
  .party-seats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.party-seat {
  min-height: 116px;
  padding: 9px 10px;
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.party-seat.is-empty {
  border: 1.5px dashed rgba(255, 245, 230, 0.34);
  background: rgba(0, 0, 0, 0.2);
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(255, 249, 242, 0.6);
  font-size: 0.76rem;
  font-weight: 600;
}

.party-seat.is-filled {
  background: linear-gradient(165deg, #FFFDF8, #F2E7D3);
  color: var(--ink);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
}

.party-velvet-board.is-gold-table .party-seat.is-filled {
  background: linear-gradient(165deg, #FFFDF9, #F5EBDA);
  color: var(--ink);
  border: 1.5px solid #D5B062;
  box-shadow: 0 3px 0 #B68D3B, 0 8px 18px rgba(0, 0, 0, 0.36);
}

.party-velvet-board.is-gold-table .party-seat.is-empty {
  border-color: rgba(236, 208, 145, 0.42);
  color: rgba(247, 232, 190, 0.78);
}

.seat-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  font-size: 0.67rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink-soft);
}

.seat-avatar-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 4px 0 2px;
  white-space: nowrap;
}

.seat-sticker { font-size: 1.1rem; line-height: 1; }
.seat-score-num {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1;
}

.seat-player-name {
  font-weight: 700;
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seat-vibe-lbl, .seat-shared-lbl {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seat-rare-pill {
  margin-top: 3px;
  padding: 2px 5px;
  border-radius: 6px;
  background: #FFE8EE;
  color: #B81D3D;
  font-size: 0.65rem;
  font-weight: 700;
}

.seat-roast-note {
  margin-top: 4px;
  padding: 3px 6px;
  border-radius: 6px;
  background: #FFF1C9;
  color: #6B4705;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.25;
}

/* Scratch-Off Golden Foil */
.scratch-reveal-box {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
}

.scratch-cover-wrap {
  position: absolute;
  inset: 0;
  z-index: 15;
  transition: opacity 0.35s ease;
}
.scratch-cover-wrap.is-cleared {
  opacity: 0;
  pointer-events: none;
}
.scratch-cover-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}
.scratch-skip-btn {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  border: none;
  background: rgba(35, 23, 43, 0.82);
  color: #FFF9F2;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

/* Lightweight Party Modal Overlay (Story Poster / Cup Stack / Gold Unlock) */
.party-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(14, 8, 18, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.party-modal-backdrop.is-open {
  display: flex;
}

.party-modal-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90svh;
  overflow-y: auto;
  background: var(--cream);
  color: var(--ink);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #D8CBB6;
  background: #EAE0CE;
  color: #23172B;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.modal-close-btn:hover {
  background: var(--berry);
  border-color: var(--berry);
  color: #FFFFFF;
}

/* Sealed 10-Card Poker Hand & Chat Dare Preview Bubble */
.poker-hand-strip {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  margin: 12px 0;
}

.mini-hand-chip {
  height: 34px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}
.mini-hand-chip.is-guilty {
  background: var(--berry);
  color: #FFFFFF;
  box-shadow: 0 2px 0 var(--berry-lip);
}
.mini-hand-chip.is-innocent {
  background: var(--cream-soft);
  color: var(--ink-soft);
  border: 1px solid var(--cream-line);
}

.chat-dare-bubble {
  position: relative;
  padding: 12px 14px;
  border-radius: 16px 16px 4px 16px;
  background: #FFF1F4;
  border: 1.5px solid #F8C9D4;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.4;
  margin: 10px 0 12px;
  text-align: left;
}

.accusation-banner {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 200, 69, 0.14);
  border: 1px solid rgba(255, 200, 69, 0.42);
  color: #FFF9F2;
  font-size: 0.88rem;
}

.sticker-picker-row {
  display: inline-flex;
  gap: 6px;
}
.sticker-pick-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--cream-line);
  background: #FFFFFF;
  font-size: 1.15rem;
  cursor: pointer;
}
.sticker-pick-btn.is-active {
  border-color: var(--berry);
  background: #FFE8EE;
}

.roast-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}
.roast-chip-btn {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--cream-line);
  background: var(--cream-soft);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.sku-grid-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 12px 0;
}

.sku-choice-slab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--cream-line);
  background: #FFFFFF;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.sku-choice-slab.is-featured {
  border-color: var(--berry);
  background: #FFF5F7;
}
.sku-price-tag {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--berry);
}
.sku-anchor-strike {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-decoration: line-through;
  margin-left: 6px;
}

.cup-stack-canvas {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  cursor: pointer;
  touch-action: manipulation;
}

.poster-canvas-preview {
  width: 210px;
  height: auto;
  border-radius: 14px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

/* Below-the-Fold Warm Paper SEO Codex (`#how-it-works`) */
.archival-codex-section {
  background: var(--paper);
  color: var(--ink);
  padding: 56px 20px 64px;
}

.archival-codex-body {
  max-width: 780px;
  margin: 0 auto;
}

.archival-display-h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.18;
  margin: 0 0 22px;
  color: var(--ink);
}

.atlas-figure-frame {
  margin: 24px 0;
}
.atlas-figure-frame img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.editorial-prose h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 34px 0 12px;
  color: var(--ink);
}
.editorial-prose h3 {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  margin: 22px 0 8px;
}
.editorial-prose p, .editorial-prose li {
  font-size: 1.03rem;
  line-height: 1.7;
  color: #32273A;
}
.editorial-prose a {
  color: var(--berry);
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
  margin: 18px 0;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.data-table th, .data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--cream-line);
  text-align: left;
}
.data-table th {
  background: var(--cream-soft);
  font-weight: 700;
}

.breadcrumb-bar {
  padding: 0 0 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb-bar a { color: var(--berry); text-decoration: none; font-weight: 600; }

.cohort-select {
  padding: 7px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--cream-line);
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 600;
}

/* Zero-CLS Ad Slots (100% Hidden When adsEnabled = false) */
.ad-slot-rail, .ad-slot-mobile-anchor, .ad-slot-stage-break {
  display: none;
}
html[data-sim-ads="1"] .ad-slot-stage-break {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  margin: 24px 0;
  border-radius: 14px;
  background: var(--cream-soft);
  color: var(--ink-soft);
  font-size: 0.82rem;
}

/* ==========================================================================
 * Tactile Paid Craft #1: 3D Flipping Poker Cards for Friend Accusations
 * ========================================================================== */
.acc-showdown-tray {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 245, 230, 0.16);
}

.acc-tray-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: rgba(255, 249, 242, 0.88);
}

.acc-tray-badge {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #F6E2B3;
}

.acc-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.acc-flip-slot {
  perspective: 980px;
  min-height: 174px;
}

.acc-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 174px;
  transform-style: preserve-3d;
  transition: transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
}

.acc-flip-inner.is-facedown {
  transform: rotateY(180deg);
  cursor: pointer;
}

.acc-flip-inner.is-facedown:hover {
  transform: rotateY(180deg) translateY(-3px);
}

.acc-card-front,
.acc-card-back {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.acc-card-front {
  background: var(--cream);
  color: var(--ink);
  border: 1.5px solid #E5DAC4;
  box-shadow: 0 4px 0 #D8C9AE, 0 10px 22px rgba(0, 0, 0, 0.34);
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.party-velvet-board.is-gold-table .acc-card-front {
  border-color: #D5B062;
  box-shadow: 0 4px 0 #B68D3B, 0 10px 22px rgba(0, 0, 0, 0.4);
}

.acc-pip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--berry);
}

.acc-who-pill {
  padding: 2px 7px;
  border-radius: 999px;
  background: #FDECEF;
  color: #A61C37;
  font-size: 0.68rem;
  font-weight: 700;
  max-width: 112px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acc-quote-txt {
  font-family: var(--font-serif);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
  margin: 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.acc-foot-stamp {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-soft);
  border-top: 1px dashed var(--cream-line);
  padding-top: 5px;
}

.acc-card-back {
  transform: rotateY(180deg);
  background: #FFFBF2;
  padding: 5px;
  box-shadow: 0 4px 0 #D8C9AE, 0 10px 22px rgba(0, 0, 0, 0.38);
  display: flex;
}

.acc-back-filigree {
  position: relative;
  flex: 1;
  border-radius: 10px;
  background-color: #291224;
  border: 1px solid rgba(223, 188, 112, 0.65);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  overflow: hidden;
}

.acc-back-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.24;
  pointer-events: none;
}

.acc-back-crest {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(236, 206, 136, 0.72);
  background: radial-gradient(circle, #431E3A 0%, #1F0C1B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  color: #F5E1B0;
}

.acc-back-who {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  color: #FFF9F2;
}

.acc-back-cta {
  position: relative;
  z-index: 1;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ECCE88;
  letter-spacing: 0.03em;
}

/* ==========================================================================
 * Tactile Paid Craft #2: Embossed Wax-Sealed Stationery Envelopes (Couples)
 * ========================================================================== */
@keyframes stationeryUnfold {
  0% { opacity: 0.4; transform: perspective(700px) rotateX(-14deg) translateY(4px); }
  100% { opacity: 1; transform: perspective(700px) rotateX(0deg) translateY(0); }
}

.unsealed-wish-letter {
  position: relative;
  background: var(--cream);
  border-radius: 14px;
  border: 1px solid #D8BA73;
  box-shadow:
    inset 0 0 0 3px var(--cream),
    inset 0 0 0 4px rgba(216, 186, 115, 0.36),
    0 4px 12px rgba(35, 23, 43, 0.06);
  padding: 13px 16px;
  margin-bottom: 10px;
  animation: stationeryUnfold 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.unsealed-wish-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9A7220;
  margin-bottom: 5px;
}

.unsealed-wish-body {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.38;
  color: var(--ink);
}

.wax-sealed-envelope {
  position: relative;
  background: linear-gradient(180deg, #F6EFE2 0%, #ECE1CC 100%);
  border: 1.5px solid #DDD0B8;
  border-radius: 14px;
  padding: 26px 16px 14px;
  margin-bottom: 10px;
  text-align: center;
  box-shadow: 0 3px 0 #D8C9AE, 0 8px 18px rgba(35, 23, 43, 0.08);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.wax-sealed-envelope:hover {
  transform: translateY(-2px);
  border-color: #C9A458;
}

.wax-envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 62px;
  pointer-events: none;
  filter: drop-shadow(0 3px 4px rgba(35, 23, 43, 0.12));
}

.wax-seal-wrap {
  position: relative;
  z-index: 2;
  width: 50px;
  height: 50px;
  margin: 4px auto 6px;
  filter: drop-shadow(0 4px 6px rgba(42, 10, 20, 0.34));
  transition: transform 0.2s ease;
}

.wax-sealed-envelope:hover .wax-seal-wrap {
  transform: scale(1.05);
}

.wax-envelope-label {
  position: relative;
  z-index: 2;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5C4938;
}

.wax-envelope-sub {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* 4-Way Hub-and-Spoke Related Internal Link Mesh (Zero .card classes) */
.related-mesh-nav {
  margin-top: 38px;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--cream);
  border: 1.5px solid var(--cream-line);
}
.related-mesh-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--ink);
}
.related-mesh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}
.related-mesh-link {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--cream-line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.related-mesh-link:hover {
  border-color: var(--berry);
  color: var(--berry);
  transform: translateY(-1px);
}

.site-footer {
  background: var(--lounge-deep);
  color: rgba(255, 249, 242, 0.68);
  padding: 26px 20px;
  font-size: 0.86rem;
}
.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-links a {
  color: rgba(255, 249, 242, 0.72);
  text-decoration: none;
}
.footer-links a:hover { color: var(--honey); }
