/* ---------------------------------
   Main styles for the "Charlie the Spades Champion" site.
   --------------------------------- */

/*
  Contribution Comment Structure:
  Please use the following structure for all comments:
  Purpose description (1-2 lines), date (optional), author (optional)
  Example:
  Handles button colors for wins reveal section
  - 2024-06-04, Contributor: YourName
*/

/* --------------
   SECTION: LUXURY CARD LOUNGE PALETTE
   - CSS custom properties for the dark luxury gold/black theme
   -------------- */
:root {
  --accent: #d4af37;           /* gold — primary accent */
  --accent-light: #e8c547;     /* light gold — highlights and hover states */
  --accent-dark: #b8941e;      /* deep gold — for hover darkening */
  --dark-bg: #1a1a1a;          /* rich dark charcoal — section backgrounds */
  --dark-bg-deep: #0d0d0d;     /* near-black — deepest backgrounds */
  --nav-footer-bg: #0f0f0f;    /* very dark — nav and footer */
  --tips-bg: #1e1c18;          /* muted warm dark — tips box background */
  --quip-text: #c9a227;        /* muted gold — quip text */
  --body-bg: #121212;          /* near-black charcoal — main body background */
  --gold-glow: rgba(212, 175, 55, 0.3); /* gold glow for shadows and borders */
  --text-cream: #f5f0e8;       /* warm cream — primary body text */
  --text-muted: #b0a898;       /* muted warm gray — secondary text */
}

/* --------------
   SECTION: PAGE LAYOUT
   - General body/layout rules
   -------------- */
/* Dark luxury background for the entire site. */
body { background: var(--body-bg); }

/* Base reset and typography for the whole page. */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Raleway', 'Segoe UI', sans-serif;
  color: var(--text-cream);
  line-height: 1.6;
}

/* All headings use elegant serif font. */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

/* --------------
   SECTION: SKIP LINK
   - Accessibility skip-to-content link
   -------------- */
/* Hidden skip link that appears on focus for keyboard users. */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: var(--dark-bg-deep);
  padding: 0.5rem 1rem;
  z-index: 1000;
  font-weight: bold;
}

.skip-link:focus {
  top: 0;
}

/* --------------
   SECTION: NAVIGATION
   - Top navigation bar
   -------------- */
/* Dark nav bar with gold underline accent. */
nav {
  background: var(--nav-footer-bg);
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--gold-glow);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Gold-accented logo text with subtle glow. */
.nav-logo {
  color: var(--accent);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px var(--gold-glow);
}

/* Horizontal nav link list. */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-cream);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--accent);
}

/* --------------
   SECTION: HERO
   - Large hero banner with headline, tagline, and stats
   -------------- */
/* Full-width dark hero with layered luxury background and gold glow. */
.hero {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.15) 0%, transparent 60%),
    linear-gradient(135deg, var(--dark-bg-deep) 0%, #1a1510 50%, var(--dark-bg-deep) 100%);
  color: #f0f0f0;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Subtle grain texture overlay for visual depth. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(rgba(255,255,255,0.03) 0% 25%, transparent 0% 50%) 0 0 / 4px 4px;
  pointer-events: none;
  z-index: 0;
}

/* Ensure hero content sits above the texture layer. */
.hero > * {
  position: relative;
  z-index: 1;
}

/* Large bold headline with gold glow. */
.hero-headline {
  font-size: 2.75rem;
  font-weight: 900;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
  text-shadow: 0 0 40px rgba(212,175,55,0.4), 0 2px 4px rgba(0,0,0,0.5);
}

/* Subtitle with cream color and decorative spade flanks. */
.hero-tagline {
  font-size: 1.3rem;
  color: var(--text-cream);
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.hero-tagline::before {
  content: "♠  ";
  color: var(--accent);
  opacity: 0.6;
}

.hero-tagline::after {
  content: "  ♠";
  color: var(--accent);
  opacity: 0.6;
}

/* Horizontal row of stat boxes. */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

/* Individual stat item — glass-morphism luxury card. */
.stat {
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  min-width: 140px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(212,175,55,0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover lift effect on stat cards. */
.stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), inset 0 1px 0 rgba(212,175,55,0.15), 0 0 20px rgba(212,175,55,0.1);
}

/* Large stat number with gold glow. */
.stat-number {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(212,175,55,0.3);
}

/* Stat label — muted cream/gold, uppercase tracking. */
.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* --------------
   SECTION: BIO
   - "Meet Charlie" biography section
   -------------- */
/* Centered readable-width bio area with dark luxury background. */
.bio {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  text-align: center;
  background: #1e1e1e;
}

.bio h2 {
  font-size: 2rem;
  color: var(--accent);
  font-family: 'Playfair Display', Georgia, serif;
  margin-bottom: 1.25rem;
  text-shadow: 0 0 20px rgba(212,175,55,0.3);
}

.bio h2::after {
  content: " ♠";
  color: var(--accent);
  opacity: 0.6;
}

/* Bio paragraph with comfortable reading typography. */
.bio p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-cream);
  text-align: left;
  margin-bottom: 1.5rem;
  border-left: 3px solid rgba(212,175,55,0.2);
  padding-left: 1.25rem;
}

.bio p:first-letter {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Playfair Display', Georgia, serif;
}

/* --------------
   SECTION: BIO PORTRAITS
   - Portrait gallery in bio section
   -------------- */
/* Flexbox row for portrait images. */
.bio-portraits {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* Individual portrait figure. */
.portrait {
  max-width: 280px;
  text-align: center;
}

/* Circular portrait images with gold border frame and placeholder gradient. */
.portrait img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 20px rgba(212,175,55,0.2);
  background: radial-gradient(circle at 40% 40%, #3a3020, #1a1a1a);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Subtle lift and glow on portrait hover. */
.portrait img:hover {
  box-shadow: 0 6px 28px rgba(212,175,55,0.35);
  transform: translateY(-2px);
}

/* Gold/cream italic caption under portraits. */
.portrait figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--accent);
  font-style: italic;
}

/* --------------
   SECTION: LEGACY STORIES
   - Luxury card styling for legacy story articles
   -------------- */
/* Each legacy story article as a luxury card with gold border. */
.legacy article {
  background: rgba(212,175,55,0.05);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  text-align: left;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Subtle gold glow on legacy card hover. */
.legacy article:hover {
  border-color: rgba(212,175,55,0.4);
  box-shadow: 0 2px 16px rgba(212,175,55,0.1);
}

/* Gold story titles in Playfair Display. */
.legacy article strong {
  color: var(--accent);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
}

/* Legacy story text inherits cream color from .bio p. */
.legacy article p {
  color: var(--text-cream);
  line-height: 1.8;
}

/* --------------
   SECTION: VICTORIES
   - "The Hall of Shame" epic victory cards
   -------------- */
/* Victories section with enhanced dark gradient background. */
.victories {
  background:
    linear-gradient(180deg, var(--dark-bg-deep) 0%, var(--dark-bg) 50%, var(--dark-bg-deep) 100%);
  color: #f0f0f0;
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.victories h2 {
  font-size: 2rem;
  color: var(--accent);
  font-family: 'Playfair Display', Georgia, serif;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(212,175,55,0.3);
}

/* Intro text below the victories heading — muted cream/gold. */
.victories-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* Container for victory card panels. */
.victory-cards {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Individual victory card panel — gold-tinted luxury card. */
.victory-card {
  background: rgba(212,175,55,0.05);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.victory-card:hover {
  border-color: rgba(212,175,55,0.6);
  box-shadow: 0 4px 24px rgba(212,175,55,0.15), 0 2px 12px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

/* Toggle button for expanding/collapsing a victory card. */
.victory-toggle {
  width: 100%;
  background: none;
  border: none;
  color: #f0f0f0;
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  transition: background 0.3s ease;
}

.victory-toggle:hover,
.victory-toggle:focus {
  background: rgba(212,175,55,0.1);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* Victory card title text — gold on hover. */
.victory-title {
  font-weight: 700;
  transition: color 0.3s ease;
}

.victory-toggle:hover .victory-title {
  color: var(--accent);
}

/* Plus/minus icon for toggle state. */
.toggle-icon {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 1rem;
}

/* Expanded content area inside a victory card — smooth accordion. */
.victory-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.25rem 0;
  text-align: left;
}

.victory-body.expanded {
  max-height: 500px;
  padding: 0 1.25rem 1.25rem;
}

.victory-body p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-cream);
  margin-bottom: 0.75rem;
}

/* Opponent reaction quote — gold left border with subtle gold background tint. */
.opponent-quote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: rgba(212,175,55,0.03);
  border-radius: 4px;
}

/* --------------
   SECTION: TESTIMONIALS
   - Funny quotes from defeated opponents
   -------------- */
/* Testimonials area with centered layout. */
.testimonials {
  padding: 3.5rem 1.5rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.testimonials h2 {
  font-size: 2rem;
  color: var(--accent);
  font-family: 'Playfair Display', Georgia, serif;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(212,175,55,0.3);
}

/* Display container for the active testimonial. */
.testimonial-display {
  margin-bottom: 1.5rem;
}

/* Blockquote styling for testimonials — dark glass-morphism with gold border. */
.testimonial-quote {
  background: rgba(255,255,255,0.05);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(212,175,55,0.1);
  text-align: left;
  transition: opacity 0.3s ease;
}

/* Fade-out state for testimonial shuffle crossfade. */
.testimonial-quote.testimonial-fading {
  opacity: 0;
}

.testimonial-quote p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-cream);
  margin-bottom: 0.75rem;
  font-style: italic;
}

/* Attribution line for testimonials — muted gold/cream. */
.testimonial-quote cite {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 600;
}

/* Shuffle button — gold border luxury button with hover glow fill. */
.shuffle-btn {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.shuffle-btn:hover,
.shuffle-btn:focus {
  background: var(--accent);
  color: var(--dark-bg-deep);
  box-shadow: 0 0 20px rgba(212,175,55,0.3);
}

/* --------------
   SECTION: IMAGES
   - Responsive image sections and gallery layout
   -------------- */
.image-section {
  padding: 3.5rem 1.5rem;
  text-align: center;
  background: var(--dark-bg);
}

.image-section h2 {
  font-size: 2rem;
  color: var(--accent);
  font-family: 'Playfair Display', Georgia, serif;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(212,175,55,0.3);
}

.image-section-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.image-section figure {
  flex: 1 1 250px;
  max-width: 100%;
  background: linear-gradient(135deg, var(--dark-bg), var(--dark-bg-deep));
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Lift and glow on gallery image hover. */
.image-section figure:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(212,175,55,0.15);
}

.image-section img {
  width: 100%;
  height: auto;
  min-height: 200px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(212,175,55,0.15), 0 2px 8px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, var(--dark-bg), var(--dark-bg-deep));
}

.image-section figcaption {
  margin-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--accent);
  font-style: italic;
}

/* Dark-background variant for images inside victories or dark sections. */
.victories .image-section,
.image-section--dark {
  background: var(--dark-bg);
  color: #f0f0f0;
}

.victories .image-section img,
.image-section--dark img {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.victories .image-section figcaption,
.image-section--dark figcaption {
  color: var(--accent-light);
}

/* --------------
   SECTION: FOOTER
   - Simple centered footer
   -------------- */
/* Dark footer with gold top border matching nav style. */
footer {
  background: var(--nav-footer-bg);
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--gold-glow);
}

footer p {
  margin-bottom: 0.5rem;
}

/* Decorative spade before footer text. */
footer p:first-child::before {
  content: "";
}

footer a {
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.2s, text-shadow 0.2s;
}

footer a:hover,
footer a:focus {
  color: var(--accent-light);
  text-shadow: 0 0 8px var(--gold-glow);
}

/* --------------
   SECTION: NAVIGATION ACTIVE STATE
   - Highlight for the currently active page link
   -------------- */
/* Gold underline and color for the active nav link. */
.nav-links a.nav-active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.15rem;
}

/* --------------
   SECTION: RULES PAGE HERO
   - Header banner for the rules page
   -------------- */
/* Dark hero with layered luxury background matching index hero. */
.rules-hero {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.15) 0%, transparent 60%),
    linear-gradient(135deg, var(--dark-bg-deep) 0%, #1a1510 50%, var(--dark-bg-deep) 100%);
  color: #f0f0f0;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Subtle grain texture overlay for rules hero. */
.rules-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(rgba(255,255,255,0.03) 0% 25%, transparent 0% 50%) 0 0 / 4px 4px;
  pointer-events: none;
  z-index: 0;
}

/* Ensure rules hero content sits above texture. */
.rules-hero > * {
  position: relative;
  z-index: 1;
}

/* Large gold title with text-shadow glow. */
.rules-hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  text-shadow: 0 0 40px rgba(212,175,55,0.4), 0 2px 4px rgba(0,0,0,0.5);
}

/* Cream italic subtitle. */
.rules-hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-cream);
  margin-bottom: 1rem;
  font-style: italic;
}

/* Muted cream intro paragraph. */
.rules-hero-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --------------
   SECTION: RULES CONTENT
   - Layout and typography for the rules page body
   -------------- */
/* Centered container for readable line length. */
.rules-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* Individual rules topic section with bottom spacing. */
.rules-section {
  margin-bottom: 2.5rem;
}

/* Section headings — gold with gold underline border. */
.rules-section h2 {
  font-size: 1.6rem;
  color: var(--accent);
  font-family: 'Playfair Display', Georgia, serif;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

/* Paragraph text within rules sections — cream on dark background. */
.rules-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-cream);
  margin-bottom: 1rem;
}

/* Well-spaced list items for easy scanning. */
.rules-list {
  list-style: none;
  padding: 0;
}

.rules-list li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-cream);
  padding: 0.5rem 0 0.5rem 1.25rem;
  position: relative;
}

/* Bold tags slightly brighter for emphasis. */
.rules-list li strong {
  color: #faf3e0;
}

/* Spade-themed bullet for unordered rules lists — gold. */
.rules-list li::before {
  content: "\2660";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Ordered list uses numbers instead of spade bullets — cream text. */
.rules-list-ordered {
  list-style: decimal;
  padding-left: 1.5rem;
  color: var(--text-cream);
}

.rules-list-ordered li::before {
  content: none;
}

.rules-list-ordered li {
  padding-left: 0.5rem;
}

/* Gold-colored numbers on ordered lists for luxury consistency. */
.rules-list-ordered li::marker {
  color: var(--accent);
  font-weight: 700;
}

/* Charlie-flavored quip text — gold italic. */
.rules-quip {
  font-style: italic;
  color: var(--quip-text);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* --------------
   SECTION: PRO TIPS BOX
   - Visually distinct box for Charlie's humorous tips
   -------------- */
/* Dark luxury tip box with gold border and subtle gold tint. */
.pro-tips-box {
  background: rgba(212,175,55,0.08);
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin-top: 0.5rem;
  box-shadow: 0 2px 16px rgba(212,175,55,0.1);
}

/* Header inside the tips box — gold, Playfair Display. */
.pro-tips-header {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  font-family: 'Playfair Display', Georgia, serif;
  text-align: center;
  margin-bottom: 1rem;
}

/* Tip list with comfortable spacing. */
.pro-tips-list {
  list-style: none;
  padding: 0;
}

.pro-tips-list li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-cream);
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
}

/* Bold tags slightly brighter for emphasis in tips. */
.pro-tips-list li strong {
  color: #faf3e0;
}

/* Gold spade bullet for tips. */
.pro-tips-list li::before {
  content: "\2660";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.1rem;
}

/* --------------
   SECTION: RULES CLOSING
   - CTA section at the bottom of the rules page
   -------------- */
/* Centered closing text with gold top border. */
.rules-closing {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--accent);
}

/* Call-to-action link — gold border luxury button with hover glow fill. */
.rules-cta {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  padding: 0.75rem 2rem;
  border: 2px solid var(--accent);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.rules-cta:hover,
.rules-cta:focus {
  background: var(--accent);
  color: var(--dark-bg-deep);
  box-shadow: 0 0 20px rgba(212,175,55,0.3);
}

/* --------------
   SECTION: DECORATIVE GOLD DIVIDER
   - Reusable gold line with centered spade symbol
   -------------- */
/* Thin gold divider with a centered ♠ — use between sections.
   Usage: <div class="section-divider">♠</div> */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 0;
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
  text-shadow: 0 0 15px rgba(212,175,55,0.3);
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  max-width: 200px;
  height: 0;
  border-top: 1px solid rgba(212,175,55,0.3);
}

/* --------------
   SECTION: ANIMATIONS
   - Keyframes and scroll-reveal utilities
   -------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes goldShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 5px rgba(212,175,55,0.2); }
  50% { box-shadow: 0 0 20px rgba(212,175,55,0.4); }
}

/* Scroll-reveal utility — starts hidden, revealed by IntersectionObserver. */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Animated gold gradient shimmer for hero headlines. */
.gold-shimmer {
  background: linear-gradient(90deg, var(--accent) 0%, #f0d060 25%, var(--accent) 50%, #f0d060 75%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 4s linear infinite;
}

/* --------------
   SECTION: RESPONSIVE
   - Mobile-first breakpoints
   -------------- */
/* Tablet adjustments. */
@media (max-width: 900px) {
  .stats-bar { gap: 1.5rem; }
  .stat { min-width: 120px; padding: 0.75rem 1rem; }
  .hero-headline { font-size: 2.25rem; }
  .bio-portraits { flex-direction: column; align-items: center; }
  .image-section-inner { gap: 1.5rem; }
}

/* Stack elements on small screens. */
@media (max-width: 600px) {
  .hero-headline {
    font-size: 1.75rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .stats-bar {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .stat {
    min-width: 200px;
  }

  .nav-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .testimonial-quote {
    padding: 1rem 1.25rem;
  }

  .rules-hero-title {
    font-size: 1.75rem;
  }

  .rules-hero-subtitle {
    font-size: 1.05rem;
  }

  .pro-tips-box {
    padding: 1rem 1.25rem;
  }

  .image-section-inner {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .image-section figure {
    flex: 1 1 100%;
  }

  .bio-portraits {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .portrait img {
    width: 160px;
    height: 160px;
  }

  .reveal {
    transform: translateY(15px);
  }
  .reveal.revealed {
    transform: translateY(0);
  }
}

/* --------------
   SECTION: ACCESSIBILITY
   - Reduced motion and focus styles
   -------------- */
/* Disable transitions and animations for users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .gold-shimmer {
    -webkit-text-fill-color: var(--accent) !important;
    background: none !important;
    animation: none !important;
  }
}

/* Visible gold focus indicator for keyboard navigation. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
