/* =================================================================
   FLOURISHING-THEATER.CSS
   Dedicated styles for flourishing.html scrollytelling.
   Three theaters: Compass, Fork, Ripple.
   All Safari-compatible: -webkit- prefixes, no flex gap, explicit colors.
   ================================================================= */

/* ========== FLOURISHING HERO ========== */

.fl-hero {
  background-color: #1a5c57;
  background: linear-gradient(135deg, #1a5c57 0%, #0f3d39 100%);
  color: white;
  padding: 6rem 2rem 4rem;
  text-align: center;
}

.fl-hero-content {
  max-width: 760px;
  margin: 0 auto;
}

.fl-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: white !important;
}

.fl-hero-master {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-style: italic;
  color: #d4a853 !important;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.fl-hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  margin: 0;
}

/* ========== CHAPTER LAYOUT ========== */

.fl-chapter {
  padding: 4rem 0;
}

.fl-chapter .container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
}

.fl-chapter-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1a5c57;
  margin-bottom: 0.5rem;
}

.fl-chapter-dark .fl-chapter-label {
  color: rgba(255,255,255,0.4) !important;
}

.fl-chapter-answer {
  font-size: 1rem;
  color: #666;
  margin: 0.25rem 0 2rem;
  max-width: 620px;
}

.fl-chapter-dark .fl-chapter-answer {
  color: rgba(255,255,255,0.7) !important;
}

/* ========== DARK CHAPTER SECTIONS ========== */

.fl-chapter-dark {
  background-color: #1a2a2a !important;
  color: #e8e3db !important;
}

.fl-chapter-dark h2,
.fl-chapter-dark h3 {
  color: white !important;
}

.fl-chapter-dark .prose p {
  color: rgba(255,255,255,0.85) !important;
}

/* ========== EXTRACTION LOOP VISUAL (Ch 1) ========== */

.fl-extraction-visual {
  margin: 2.5rem 0 1rem;
}

.fl-extraction-loop {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
}

.fl-loop-node {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  background: #faf7f2;
  border: 2px solid #e8e2d8;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  text-align: center;
  margin: 0.5rem;
  max-width: 160px;
  transition: all 0.3s ease;
}

.fl-loop-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.fl-loop-text {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2d2d2d;
  line-height: 1.3;
}

.fl-loop-arrow {
  font-size: 1.3rem;
  color: #c97b63;
  margin: 0 0.25rem;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.fl-loop-optimize { border-color: #1a5c57; }
.fl-loop-exploit { border-color: #c97b63; }
.fl-loop-extract { border-color: #a94442; }
.fl-loop-depend { border-color: #8b0000; background: #fef0ef; }

.fl-extraction-caption {
  font-size: 0.82rem;
  font-style: italic;
  color: #888;
  text-align: center;
  margin-top: 1rem;
}

@media (max-width: 700px) {
  .fl-extraction-loop {
    -webkit-flex-direction: column;
    flex-direction: column;
  }
  .fl-loop-arrow {
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
  }
}


/* =================================================================
   SCROLLYTELLING BASE LAYOUT
   Reusable pattern: sticky visual + scroll steps
   ================================================================= */

.fl-scrolly {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  position: relative;
}

.fl-scrolly-sticky {
  -webkit-flex: 0 0 420px;
  flex: 0 0 420px;
  position: -webkit-sticky;
  position: sticky;
  top: 80px;
  height: -webkit-fit-content;
  height: fit-content;
  max-height: calc(100vh - 120px);
  z-index: 10;
}

.fl-scrolly-steps {
  -webkit-flex: 1;
  flex: 1;
  padding-left: 3rem;
  min-height: 100vh;
}

.fl-scroll-step {
  min-height: 60vh;
  padding: 2rem 0;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}

.fl-step-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  opacity: 0.4;
}

.fl-scroll-step.is-active .fl-step-card {
  opacity: 1;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

.fl-chapter-dark .fl-step-card {
  background: #243535 !important;
  color: #e8e3db !important;
}

.fl-chapter-dark .fl-step-card h3 {
  color: #d4a853 !important;
}

.fl-chapter-dark .fl-step-card p {
  color: rgba(255,255,255,0.85) !important;
}

.fl-step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #1a5c57;
}

.fl-step-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #444;
  margin-bottom: 0.5rem;
}

.fl-step-card p:last-child {
  margin-bottom: 0;
}

.fl-step-tier {
  font-size: 0.72rem !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d4a853 !important;
  margin-bottom: 0.75rem !important;
}

/* Mobile: stack scrollytelling */
@media (max-width: 800px) {
  .fl-scrolly {
    -webkit-flex-direction: column;
    flex-direction: column;
  }
  .fl-scrolly-sticky {
    position: relative;
    top: auto;
    -webkit-flex: none;
    flex: none;
    width: 100%;
    max-height: 50vh;
    margin-bottom: 2rem;
  }
  .fl-scrolly-steps {
    padding-left: 0;
    min-height: auto;
  }
  .fl-scroll-step {
    min-height: 30vh;
  }
}


/* =================================================================
   COMPASS THEATER (Chapter 2)
   ================================================================= */

.fl-compass-visual {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 480px;
  margin: 0 auto;
}

.fl-compass-ring {
  position: relative;
  width: 100%;
  height: 100%;
}

.fl-compass-node {
  position: absolute;
  width: 120px;
  text-align: center;
  opacity: 0;
  -webkit-transform: scale(0.7);
  transform: scale(0.7);
  transition: all 0.5s ease;
}

.fl-compass-node.is-visible {
  opacity: 1;
  -webkit-transform: scale(1);
  transform: scale(1);
}

.fl-compass-node.is-highlighted {
  opacity: 1;
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

.fl-node-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #d4a853;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.fl-node-name {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: white;
  line-height: 1.3;
}

/* Tier-specific colors for nodes */
.fl-compass-node[data-tier="foundation"] .fl-node-num { color: #7ba390; }
.fl-compass-node[data-tier="meaning"] .fl-node-num { color: #d4a853; }
.fl-compass-node[data-tier="existential"] .fl-node-num { color: #c97b63; }

.fl-compass-center {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(212, 168, 83, 0.15);
  border: 2px solid rgba(212, 168, 83, 0.4);
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
}

.fl-compass-center-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d4a853;
  text-align: center;
  line-height: 1.3;
  padding: 0 0.35rem;
}

/* Node positions around a circle - spaced to avoid overlap */
.fl-compass-node[data-index="0"] { top: 2%;  left: 50%; margin-left: -60px; }
.fl-compass-node[data-index="1"] { top: 8%;  right: -4%; }
.fl-compass-node[data-index="2"] { top: 28%; right: -12%; }
.fl-compass-node[data-index="3"] { top: 50%; right: -8%; }
.fl-compass-node[data-index="4"] { top: 72%; right: 0%; }
.fl-compass-node[data-index="5"] { top: 88%; left: 50%; margin-left: -60px; }
.fl-compass-node[data-index="6"] { top: 72%; left: -4%; }
.fl-compass-node[data-index="7"] { top: 50%; left: -12%; }
.fl-compass-node[data-index="8"] { top: 28%; left: -4%; }


/* =================================================================
   FORK THEATER (Chapter 3)
   ================================================================= */

.fl-fork-visual {
  width: 100%;
  max-width: 420px;
}

.fl-fork-split {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.fl-fork-side {
  padding: 1.5rem;
  min-height: 140px;
  transition: all 0.5s ease;
}

.fl-fork-extraction {
  background: #3a1515 !important;
  color: #fce4ec !important;
}

.fl-fork-coherence {
  background: #0f3d39 !important;
  color: #e0f2f1 !important;
}

.fl-fork-header {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.fl-fork-extraction .fl-fork-header { color: #ef9a9a !important; }
.fl-fork-coherence .fl-fork-header { color: #80cbc4 !important; }

.fl-fork-label {
  font-size: 0.72rem !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem !important;
  opacity: 0.7;
}

.fl-fork-desc {
  font-size: 0.88rem !important;
  line-height: 1.55;
}

.fl-fork-extraction .fl-fork-desc { color: #fce4ec !important; }
.fl-fork-coherence .fl-fork-desc { color: #e0f2f1 !important; }

.fl-fork-divider {
  background: #0a1a1a !important;
  padding: 1.25rem 1.5rem;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  border-top: 3px solid #d4a853;
  border-bottom: 3px solid #d4a853;
}

.fl-fork-pattern-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #d4a853 !important;
  transition: all 0.35s ease;
  letter-spacing: -0.01em;
  text-align: center;
  line-height: 1.3;
}

.fl-fork-or {
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
}

.fl-fork-signal {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(212, 168, 83, 0.1);
  border-left: 3px solid #d4a853;
  border-radius: 0 6px 6px 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fl-fork-signal.is-visible {
  opacity: 1;
}

.fl-fork-signal-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #d4a853;
  margin-bottom: 0.25rem;
}

.fl-fork-signal-text {
  display: block;
  font-size: 0.82rem;
  color: #666;
  line-height: 1.5;
}


/* =================================================================
   TIERS STACK (Chapter 4)
   ================================================================= */

.fl-tiers-stack {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  margin: 0 -2rem;
}

.fl-tiers-stack > * + * { margin-top: 0; }

.fl-tier {
  padding: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.fl-tier:last-child {
  border-bottom: none;
}

.fl-tier-header {
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.fl-tier-name {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.fl-tier-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6) !important;
  margin: 0;
}

.fl-tier-cards {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
}

.fl-pattern-card {
  -webkit-flex: 1 1 240px;
  flex: 1 1 240px;
  margin: 0.5rem;
  padding: 1.25rem;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.fl-pattern-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(212,168,83,0.3);
}

.fl-pattern-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #d4a853 !important;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.fl-pattern-card h4 {
  font-size: 0.95rem;
  color: white !important;
  margin-bottom: 0.15rem;
}

.fl-pattern-aka {
  font-size: 0.7rem !important;
  font-style: italic;
  color: rgba(255,255,255,0.4) !important;
  margin-bottom: 0.75rem !important;
}

.fl-pattern-axis-pos {
  font-size: 0.8rem !important;
  color: #80cbc4 !important;
  line-height: 1.5;
  margin-bottom: 0.5rem !important;
  padding-left: 0.75rem;
  border-left: 2px solid #2e7d32;
}

.fl-pattern-axis-neg {
  font-size: 0.8rem !important;
  color: #ef9a9a !important;
  line-height: 1.5;
  margin-bottom: 0 !important;
  padding-left: 0.75rem;
  border-left: 2px solid #a94442;
}

/* Tier-specific accent for cards */
.fl-tier[data-tier="foundation"] .fl-pattern-num { color: #7ba390 !important; }
.fl-tier[data-tier="meaning"] .fl-pattern-num { color: #d4a853 !important; }
.fl-tier[data-tier="existential"] .fl-pattern-num { color: #c97b63 !important; }

.fl-tier[data-tier="foundation"] .fl-pattern-card { border-left: 3px solid #7ba390; }
.fl-tier[data-tier="meaning"] .fl-pattern-card { border-left: 3px solid #d4a853; }
.fl-tier[data-tier="existential"] .fl-pattern-card { border-left: 3px solid #c97b63; }

/* Clickable card behavior */
.fl-pattern-card {
  cursor: pointer;
}

.fl-card-hint {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.3) !important;
  margin-top: 0.75rem;
  transition: color 0.3s ease;
}

.fl-pattern-card:hover .fl-card-hint {
  color: rgba(255,255,255,0.6) !important;
}

.fl-pattern-card.is-expanded .fl-card-hint {
  display: none;
}

/* Expandable detail drawer */
.fl-card-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, margin-top 0.3s ease, opacity 0.4s ease;
  opacity: 0;
  margin-top: 0;
}

.fl-pattern-card.is-expanded .fl-card-detail {
  max-height: 600px;
  opacity: 1;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.fl-detail-row {
  margin-bottom: 0.65rem;
}

.fl-detail-row:last-child {
  margin-bottom: 0;
}

.fl-detail-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d4a853 !important;
  margin-bottom: 0.2rem;
}

.fl-detail-row p {
  font-size: 0.78rem !important;
  color: rgba(255,255,255,0.75) !important;
  line-height: 1.5;
  margin: 0;
}

/* Expanded card highlight */
.fl-pattern-card.is-expanded {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(212,168,83,0.5) !important;
}


/* =================================================================
   INTERPLAY GRID (Chapter 5)
   ================================================================= */

.fl-interplay-grid {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 2rem -0.5rem 0;
}

.fl-interplay-card {
  -webkit-flex: 1 1 300px;
  flex: 1 1 300px;
  margin: 0.5rem;
  padding: 1.25rem;
  background: #faf7f2;
  border-radius: 10px;
  border-left: 4px solid #c97b63;
}

.fl-interplay-card h4 {
  font-size: 0.88rem;
  color: #1a5c57;
  margin-bottom: 0.5rem;
}

.fl-interplay-card p {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.55;
  margin: 0;
}


/* =================================================================
   REINFORCEMENT CHAIN (Chapter 5 positive pole)
   ================================================================= */

.fl-reinforce-section {
  margin-top: 3rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, #0f3d39 0%, #1a5c57 100%);
  border-radius: 14px;
  color: white;
}

.fl-reinforce-title {
  font-size: 1.3rem;
  color: white !important;
  margin-bottom: 0.35rem;
}

.fl-reinforce-intro {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7) !important;
  margin-bottom: 2rem;
}

.fl-reinforce-chain {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
}

.fl-reinforce-chain > * + * {
  margin-top: 1rem;
}

.fl-reinforce-link {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  border-left: 3px solid #d4a853;
  transition: all 0.3s ease;
}

.fl-reinforce-link {
  cursor: pointer;
}

.fl-reinforce-link:hover {
  background: rgba(255,255,255,0.1);
}

.fl-reinforce-hint {
  display: block;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.35rem;
  -webkit-flex: 1 1 100%;
  flex: 1 1 100%;
}

.fl-reinforce-link.is-expanded .fl-reinforce-hint {
  display: none;
}

.fl-reinforce-detail {
  -webkit-flex: 1 1 100%;
  flex: 1 1 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.fl-reinforce-link.is-expanded .fl-reinforce-detail {
  max-height: 500px;
  opacity: 1;
  margin-top: 0.75rem;
}

.fl-reinforce-detail-row {
  margin-bottom: 0.65rem;
}

.fl-reinforce-detail-row:last-child {
  margin-bottom: 0;
}

.fl-reinforce-detail-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #d4a853;
  margin-bottom: 0.2rem;
}

.fl-reinforce-detail-text {
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.8) !important;
  margin: 0;
}

.fl-reinforce-from,
.fl-reinforce-to {
  font-size: 0.85rem;
  font-weight: 700;
  color: #d4a853 !important;
  white-space: nowrap;
}

.fl-reinforce-arrow {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.35);
  margin: 0 0.75rem;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.fl-reinforce-why {
  -webkit-flex: 1 1 100%;
  flex: 1 1 100%;
  font-size: 0.82rem !important;
  color: rgba(255,255,255,0.7) !important;
  line-height: 1.5;
  margin: 0.5rem 0 0 !important;
}

.fl-reinforce-summary {
  margin-top: 1.75rem !important;
  font-size: 1rem;
  font-weight: 700;
  color: #d4a853 !important;
  text-align: center;
}


/* =================================================================
   RIPPLE THEATER (Chapter 6)
   ================================================================= */

.fl-ripple-visual {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
  height: 360px;
}

.fl-ripple-rings {
  position: relative;
  width: 100%;
  height: 100%;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
}

.fl-ripple-ring {
  position: absolute;
  border-radius: 50%;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  opacity: 0.25;
  transition: all 0.6s ease;
  border: 2px solid transparent;
}

.fl-ripple-ring span {
  position: absolute;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fl-ripple-ring.is-active {
  opacity: 1;
}

.fl-ripple-ring.is-active span {
  opacity: 1;
}

.fl-ripple-inner {
  width: 120px;
  height: 120px;
  background: rgba(26, 92, 87, 0.3);
  border-color: #1a5c57;
  z-index: 3;
}

.fl-ripple-middle {
  width: 220px;
  height: 220px;
  background: rgba(212, 168, 83, 0.15);
  border-color: #d4a853;
  z-index: 2;
}

.fl-ripple-outer {
  width: 320px;
  height: 320px;
  background: rgba(201, 123, 99, 0.1);
  border-color: #c97b63;
  z-index: 1;
}

.fl-ripple-inner span {
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  color: white;
}

.fl-ripple-middle span {
  top: 12px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  color: #d4a853;
}

.fl-ripple-outer span {
  top: 10px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  color: #c97b63;
}

.fl-ripple-inner.is-active { background: rgba(26, 92, 87, 0.5); }
.fl-ripple-middle.is-active { background: rgba(212, 168, 83, 0.25); }
.fl-ripple-outer.is-active { background: rgba(201, 123, 99, 0.2); }

.fl-ripple-label {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-style: italic;
  color: rgba(255,255,255,0.6);
  transition: all 0.4s ease;
}


/* =================================================================
   CLOSING SCORECARD
   ================================================================= */

.fl-closing {
  padding: 4rem 0;
  background: #0f3d39 !important;
}

.fl-closing .container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
}

.fl-scorecard {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
}

.fl-scorecard-tile {
  -webkit-flex: 1 1 160px;
  flex: 1 1 160px;
  margin: 0.5rem;
  padding: 1.5rem 1rem;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.fl-scorecard-highlight {
  background: rgba(212,168,83,0.15) !important;
  border-color: rgba(212,168,83,0.4) !important;
}

.fl-scorecard-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: #d4a853 !important;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.fl-scorecard-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: white !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.fl-scorecard-desc {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55) !important;
  line-height: 1.4;
}

.fl-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.fl-cta .btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: #d4a853 !important;
  color: #1a2a2a !important;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.fl-cta .btn-primary:hover {
  background: #e0b964 !important;
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212,168,83,0.4);
}


/* =================================================================
   RESPONSIVE ADJUSTMENTS
   ================================================================= */

@media (max-width: 600px) {
  .fl-hero {
    padding: 4rem 1.25rem 3rem;
  }
  .fl-chapter {
    padding: 3rem 0;
  }
  .fl-tier-cards {
    -webkit-flex-direction: column;
    flex-direction: column;
  }
  .fl-pattern-card {
    -webkit-flex: 1 1 100%;
    flex: 1 1 100%;
  }
  .fl-interplay-grid {
    -webkit-flex-direction: column;
    flex-direction: column;
  }
  .fl-scorecard {
    -webkit-flex-direction: column;
    flex-direction: column;
  }
  .fl-scorecard-tile {
    -webkit-flex: 1 1 100%;
    flex: 1 1 100%;
  }
  .fl-compass-visual {
    height: 320px;
    max-width: 320px;
  }
  .fl-compass-node {
    width: 90px;
  }
  .fl-node-num { font-size: 1.1rem; }
  .fl-node-name { font-size: 0.58rem; }
  .fl-compass-center { width: 100px; height: 100px; }
  .fl-compass-center-label { font-size: 0.65rem; }
}
