/* ============================================
   SAUTEED STANDUP — MULTI-THEME STYLESHEET
   ============================================ */

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


/* ============================================
   THEME 1: MICHELIN FINE DINING
   ============================================ */
[data-theme="fine-dining"] {
  --bg: #f7f4ed;
  --bg2: #eeebe0;
  --surface: #ffffff;
  --text: #1a1612;
  --text-muted: #6b6155;
  --accent: #8b6914;
  --accent2: #c8a951;
  --red: #7a1a1a;
  --blue: #1a2a5c;
  --border: #d4c9a8;
  --nav-bg: #0e0c09;
  --nav-text: #f7f4ed;
  --hero-bg: #0e0c09;
  --hero-text: #f7f4ed;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'EB Garamond', Georgia, serif;
  --font-label: 'Montserrat', sans-serif;
  --card-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 24px rgba(0,0,0,0.06);
}

[data-theme="fine-dining"] body {
  background-color: #f7f4ed;
  background-image:
    url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='0' width='3' height='3' fill='%23c8a951' fill-opacity='0.05'/%3E%3Crect x='3' y='3' width='3' height='3' fill='%23c8a951' fill-opacity='0.05'/%3E%3C/svg%3E");
}

[data-theme="fine-dining"] .hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(200,169,81,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 80% 100%, rgba(139,105,20,0.12) 0%, transparent 60%),
    #0e0c09;
}

[data-theme="fine-dining"] .hero::after {
  content: '✦  ──  ──  ✦  ──  ──  ✦';
  display: block;
  margin-top: 48px;
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  color: var(--accent2);
  opacity: 0.4;
}

[data-theme="fine-dining"] .show-card,
[data-theme="fine-dining"] .how-card,
[data-theme="fine-dining"] .stat-card {
  border-top: 2px solid var(--accent2);
}

[data-theme="fine-dining"] nav {
  border-bottom: 1px solid rgba(200,169,81,0.35);
}

/* ============================================
   THEME 2: SOUTHERN BBQ
   ============================================ */
[data-theme="bbq"] {
  --bg: #1e0f06;
  --bg2: #2e1a0a;
  --surface: #271408;
  --text: #f5e6c8;
  --text-muted: #c9a87a;
  --accent: #e85d04;
  --accent2: #f48c06;
  --red: #dc2f02;
  --blue: #4a7c99;
  --border: #3d2210;
  --nav-bg: #100806;
  --nav-text: #f5e6c8;
  --hero-bg: #100806;
  --hero-text: #f5e6c8;
  --font-display: 'Alfa Slab One', 'Rockwell', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-label: 'Oswald', sans-serif;
  --card-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

[data-theme="bbq"] body {
  background-color: #1e0f06;
  background-image:
    repeating-linear-gradient(90deg, transparent 0px, transparent 18px, rgba(232,93,4,0.025) 18px, rgba(232,93,4,0.025) 19px),
    repeating-linear-gradient(180deg, transparent 0px, transparent 40px, rgba(0,0,0,0.15) 40px, rgba(0,0,0,0.15) 41px);
}

[data-theme="bbq"] .hero {
  background:
    radial-gradient(ellipse 100% 60% at 50% 120%, rgba(232,93,4,0.4) 0%, rgba(220,47,2,0.2) 30%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(244,140,6,0.15) 0%, transparent 50%),
    linear-gradient(180deg, #0a0503 0%, #1a0b04 100%);
}

[data-theme="bbq"] .hero::before {
  background:
    radial-gradient(ellipse 30% 60% at 30% 0%, rgba(255,255,255,0.03) 0%, transparent 60%),
    radial-gradient(ellipse 20% 40% at 70% 10%, rgba(255,255,255,0.02) 0%, transparent 50%);
}

[data-theme="bbq"] .show-card,
[data-theme="bbq"] .how-card,
[data-theme="bbq"] .stat-card {
  border-left: 4px solid var(--accent);
  background: linear-gradient(135deg, #2e1a0a 0%, #231306 100%);
}

[data-theme="bbq"] nav {
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 2px 20px rgba(232,93,4,0.3);
}

/* ============================================
   THEME 3: CHICAGO DIVE BAR
   ============================================ */
[data-theme="dive-bar"] {
  --bg: #080808;
  --bg2: #111111;
  --surface: #141414;
  --text: #e8e0c8;
  --text-muted: #9a9088;
  --accent: #ff3d00;
  --accent2: #ffcc00;
  --red: #ff3d00;
  --blue: #00b4d8;
  --border: #222222;
  --nav-bg: #040404;
  --nav-text: #e8e0c8;
  --hero-bg: #040404;
  --hero-text: #e8e0c8;
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body: 'DM Mono', 'Courier New', monospace;
  --font-label: 'Bebas Neue', Impact, sans-serif;
  --card-shadow: 0 0 0 1px #1e1e1e, 0 4px 20px rgba(0,0,0,0.8);
}

[data-theme="dive-bar"] body {
  background-color: #080808;
  background-image:
    url("data:image/svg+xml,%3Csvg width='4' height='4' viewBox='0 0 4 4' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='0' width='1' height='1' fill='%23ffffff' fill-opacity='0.015'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23ffffff' fill-opacity='0.01'/%3E%3C/svg%3E");
}

[data-theme="dive-bar"] .hero {
  background:
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255,61,0,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 30% 30% at 20% 50%, rgba(0,180,216,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 30% 30% at 80% 50%, rgba(255,204,0,0.05) 0%, transparent 50%),
    #040404;
}

[data-theme="dive-bar"] .hero h1 {
  text-shadow:
    0 0 20px rgba(255,61,0,0.6),
    0 0 40px rgba(255,61,0,0.3),
    0 0 80px rgba(255,61,0,0.15);
  letter-spacing: 0.04em;
}

[data-theme="dive-bar"] .hero h1 em {
  text-shadow:
    0 0 20px rgba(255,204,0,0.9),
    0 0 40px rgba(255,204,0,0.4);
  color: var(--accent2);
}

[data-theme="dive-bar"] .hero-eyebrow {
  color: var(--accent2);
  text-shadow: 0 0 10px rgba(255,204,0,0.8);
  letter-spacing: 0.3em;
}

[data-theme="dive-bar"] .big-num,
[data-theme="dive-bar"] .hero-stat .num {
  text-shadow: 0 0 16px currentColor;
}

[data-theme="dive-bar"] .show-card,
[data-theme="dive-bar"] .how-card,
[data-theme="dive-bar"] .stat-card {
  background: #111111;
  border: 1px solid #1e1e1e;
}

[data-theme="dive-bar"] .show-card:hover {
  border-color: rgba(255,61,0,0.4);
  box-shadow: 0 0 24px rgba(255,61,0,0.12);
}

[data-theme="dive-bar"] nav {
  border-bottom: 1px solid rgba(255,61,0,0.35);
  box-shadow: 0 2px 30px rgba(255,61,0,0.1);
}

/* ============================================
   THEME 4: FAST FOOD
   ============================================ */
[data-theme="fast-food"] {
  --bg: #1a1a1a;
  --bg2: #222222;
  --surface: #272727;
  --text: #f2f2f2;
  --text-muted: #999999;
  --accent: #e63946;
  --accent2: #ffd60a;
  --red: #e63946;
  --blue: #60a0e0;
  --border: #363636;
  --nav-bg: #111111;
  --nav-text: #ffffff;
  --hero-bg: #b71c1c;
  --hero-text: #ffffff;
  --font-display: 'Boogaloo', Impact, sans-serif;
  --font-body: 'Nunito', Arial, sans-serif;
  --font-label: 'Boogaloo', Impact, sans-serif;
  --card-shadow: 0 3px 0 rgba(0,0,0,0.6), 0 5px 15px rgba(0,0,0,0.3);
  --card-hover: rgba(255,255,255,0.04);
}

[data-theme="fast-food"] body {
  background-color: #1a1a1a;
  background-image:
    radial-gradient(circle, rgba(230,57,70,0.07) 1px, transparent 1px);
  background-size: 20px 20px;
}

[data-theme="fast-food"] .hero {
  background: linear-gradient(180deg, #7f0000 0%, #b71c1c 55%, #c62828 100%);
  border-bottom: 6px solid #ffd60a;
}

[data-theme="fast-food"] .hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, #ffd60a 0px, #ffd60a 40px, #1a1a1a 40px, #1a1a1a 80px);
  pointer-events: none;
}

[data-theme="fast-food"] .show-card,
[data-theme="fast-food"] .how-card,
[data-theme="fast-food"] .stat-card {
  border-radius: 12px;
  border: 2px solid #363636;
  box-shadow: 0 4px 0 rgba(0,0,0,0.5), 0 6px 20px rgba(0,0,0,0.25);
}

[data-theme="fast-food"] nav {
  border-bottom: 4px solid #ffd60a;
}

[data-theme="fast-food"] .hero h1 {
  -webkit-text-stroke: 2px rgba(0,0,0,0.15);
}

/* ============================================
   THEME 5: NYC DELI
   ============================================ */
[data-theme="nyc-deli"] {
  --bg: #f4f2ee;
  --bg2: #e8e6e0;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #555555;
  --accent: #8a6800;
  --accent2: #e5302a;
  --red: #e5302a;
  --blue: #1a1a5c;
  --border: #d0ccc0;
  --nav-bg: #111111;
  --nav-text: #f4f2ee;
  --hero-bg: #111111;
  --hero-text: #f4f2ee;
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-label: 'Oswald', sans-serif;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.09);
}

[data-theme="nyc-deli"] body {
  background-color: #f4f2ee;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 22px, rgba(0,0,0,0.03) 22px, rgba(0,0,0,0.03) 23px);
}

[data-theme="nyc-deli"] .hero {
  background: #111111;
  border-bottom: 6px double #d4a017;
}

[data-theme="nyc-deli"] .show-card,
[data-theme="nyc-deli"] .how-card,
[data-theme="nyc-deli"] .stat-card {
  border: 1px solid var(--border);
  border-top: 3px solid #111;
}

[data-theme="nyc-deli"] nav {
  border-bottom: 4px solid #d4a017;
}

/* ============================================
   THEME 6: JAPANESE RAMEN BAR
   ============================================ */
[data-theme="ramen"] {
  --bg: #0a0808;
  --bg2: #120e0e;
  --surface: #161010;
  --text: #f0e8d8;
  --text-muted: #a08870;
  --accent: #c0392b;
  --accent2: #e67e22;
  --red: #c0392b;
  --blue: #2980b9;
  --border: #201818;
  --nav-bg: #060404;
  --nav-text: #f0e8d8;
  --hero-bg: #060404;
  --hero-text: #f0e8d8;
  --font-display: 'Noto Serif JP', Georgia, serif;
  --font-body: 'Noto Sans', sans-serif;
  --font-label: 'Noto Sans JP', sans-serif;
  --card-shadow: 0 4px 24px rgba(0,0,0,0.6);
}

[data-theme="ramen"] body {
  background-color: #0a0808;
  background-image:
    linear-gradient(rgba(192,57,43,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192,57,43,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

[data-theme="ramen"] .hero {
  background:
    radial-gradient(ellipse 50% 40% at 50% -5%, rgba(192,57,43,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(230,126,34,0.12) 0%, transparent 70%),
    #060404;
}

[data-theme="ramen"] .hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

[data-theme="ramen"] .show-card,
[data-theme="ramen"] .how-card,
[data-theme="ramen"] .stat-card {
  background: linear-gradient(135deg, #1a1212 0%, #120c0c 100%);
  border-left: 3px solid var(--accent);
  border-top: none;
  border-right: none;
  border-bottom: 1px solid var(--border);
}

[data-theme="ramen"] nav {
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 2px 20px rgba(192,57,43,0.2);
}

[data-theme="ramen"] .section {
  border-top: 1px solid rgba(192,57,43,0.15);
}

/* ============================================
   THEME 7: TACO TRUCK
   ============================================ */
[data-theme="taco-truck"] {
  --bg: #1a1208;
  --bg2: #231a08;
  --surface: #2c2210;
  --text: #f5e8c8;
  --text-muted: #b89a6a;
  --accent: #f4a020;
  --accent2: #e05c20;
  --red: #e05c20;
  --blue: #5a9fd4;
  --border: #3a2c15;
  --nav-bg: #0f0a04;
  --nav-text: #f5e8c8;
  --hero-bg: #1a1208;
  --hero-text: #f5e8c8;
  --font-display: 'Pacifico', cursive;
  --font-body: 'Nunito', sans-serif;
  --font-label: 'Oswald', sans-serif;
  --card-shadow: 0 4px 0 rgba(0,0,0,0.5), 0 6px 20px rgba(0,0,0,0.3);
  --card-hover: rgba(255,255,255,0.04);
}

[data-theme="taco-truck"] body {
  background-color: #1a1208;
  background-image:
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='20,4 36,20 20,36 4,20' fill='none' stroke='%23f4a020' stroke-width='0.8' stroke-opacity='0.12'/%3E%3C/svg%3E");
}

[data-theme="taco-truck"] .hero {
  background: linear-gradient(160deg, #0a0704 0%, #1a1208 55%, #2c1c0a 100%);
  border-bottom: 4px solid #f4a020;
}

[data-theme="taco-truck"] .show-card,
[data-theme="taco-truck"] .how-card,
[data-theme="taco-truck"] .stat-card {
  border-radius: 8px;
  border: 2px solid #3a2c15;
}

[data-theme="taco-truck"] .show-card:hover {
  border-color: var(--accent);
}

[data-theme="taco-truck"] nav {
  border-bottom: 4px solid #f4a020;
}

[data-theme="taco-truck"] .hero-eyebrow {
  background: rgba(244,160,32,0.15);
  display: inline-block;
  padding: 4px 16px;
  border-radius: 20px;
}

/* ============================================
   THEME 8: FRENCH BISTRO
   ============================================ */
[data-theme="french-bistro"] {
  --bg: #f6f1e9;
  --bg2: #ece5d8;
  --surface: #ffffff;
  --text: #2c2010;
  --text-muted: #7a6a58;
  --accent: #1a2a5c;
  --accent2: #c0392b;
  --red: #c0392b;
  --blue: #1a2a5c;
  --border: #d8cdb8;
  --nav-bg: #1a2a5c;
  --nav-text: #f6f1e9;
  --hero-bg: #1a2a5c;
  --hero-text: #f6f1e9;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-label: 'Josefin Sans', sans-serif;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

[data-theme="french-bistro"] body {
  background-color: #f6f1e9;
  background-image:
    url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='1.5' fill='%231a2a5c' fill-opacity='0.06'/%3E%3Crect x='0' y='0' width='24' height='24' fill='none' stroke='%231a2a5c' stroke-width='0.3' stroke-opacity='0.07'/%3E%3C/svg%3E");
}

[data-theme="french-bistro"] .hero {
  background:
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(192,57,43,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% 50%, rgba(192,57,43,0.06) 0%, transparent 60%),
    linear-gradient(180deg, #0f1a3a 0%, #1a2a5c 100%);
}

[data-theme="french-bistro"] .show-card,
[data-theme="french-bistro"] .how-card,
[data-theme="french-bistro"] .stat-card {
  border-top: 3px solid var(--accent);
}

[data-theme="french-bistro"] nav {
  border-bottom: 3px solid var(--accent2);
}

[data-theme="french-bistro"] .hero-eyebrow {
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.6);
}

[data-theme="french-bistro"] .section-eyebrow {
  color: var(--accent2);
}

/* ============================================
   THEME 9: CLASSIC STEAKHOUSE
   ============================================ */
[data-theme="steakhouse"] {
  --bg: #141a14;
  --bg2: #0e120e;
  --surface: #182018;
  --text: #e8dfc8;
  --text-muted: #8a8270;
  --accent: #c9a227;
  --accent2: #e8c547;
  --red: #8b1a1a;
  --blue: #1a3a5c;
  --border: #243024;
  --nav-bg: #0a0e0a;
  --nav-text: #e8dfc8;
  --hero-bg: #0a0e0a;
  --hero-text: #e8dfc8;
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Crimson Text', Georgia, serif;
  --font-label: 'Cinzel', Georgia, serif;
  --card-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

[data-theme="steakhouse"] body {
  background-color: #141a14;
  background-image:
    repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(201,162,39,0.025) 6px, rgba(201,162,39,0.025) 7px);
}

[data-theme="steakhouse"] .hero {
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(201,162,39,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0,0,0,0.3) 0%, transparent 100%),
    linear-gradient(180deg, #080c08 0%, #0f140f 100%);
}

[data-theme="steakhouse"] .hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), var(--accent), transparent);
  pointer-events: none;
}

[data-theme="steakhouse"] .show-card,
[data-theme="steakhouse"] .how-card,
[data-theme="steakhouse"] .stat-card {
  background: linear-gradient(135deg, #1e281e 0%, #141a14 100%);
  border: 1px solid #2a382a;
  border-top: 2px solid rgba(201,162,39,0.4);
}

[data-theme="steakhouse"] .show-card:hover {
  border-color: rgba(201,162,39,0.5);
  box-shadow: 0 4px 30px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,162,39,0.2);
}

[data-theme="steakhouse"] nav {
  border-bottom: 1px solid rgba(201,162,39,0.4);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

[data-theme="steakhouse"] .section { border-top: 1px solid #243024; }

[data-theme="steakhouse"] .hero h1 {
  letter-spacing: 0.06em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

[data-theme="steakhouse"] .hero-eyebrow::before { content: '— '; }
[data-theme="steakhouse"] .hero-eyebrow::after  { content: ' —'; }

/* ============================================
   THEME 10: PIZZA PARLOR
   ============================================ */
[data-theme="pizza-parlor"] {
  --bg: #fff8f0;
  --bg2: #ffeedd;
  --surface: #ffffff;
  --text: #2d1a0e;
  --text-muted: #7a5a4a;
  --accent: #c0392b;
  --accent2: #e67e22;
  --red: #c0392b;
  --blue: #1565c0;
  --border: #f5d5bb;
  --nav-bg: #2d1a0e;
  --nav-text: #fff8f0;
  --hero-bg: #2d1a0e;
  --hero-text: #fff8f0;
  --font-display: 'Righteous', sans-serif;
  --font-body: 'Raleway', sans-serif;
  --font-label: 'Righteous', sans-serif;
  --card-shadow: 0 3px 12px rgba(192,57,43,0.12);
}

[data-theme="pizza-parlor"] body {
  background-color: #fff8f0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 18px, rgba(192,57,43,0.06) 18px, rgba(192,57,43,0.06) 20px),
    repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(192,57,43,0.06) 18px, rgba(192,57,43,0.06) 20px);
}

[data-theme="pizza-parlor"] .hero {
  background:
    radial-gradient(ellipse 60% 50% at 50% 80%, rgba(230,126,34,0.15) 0%, transparent 60%),
    linear-gradient(180deg, #1e0e06 0%, #2d1a0e 100%);
  border-bottom: 6px solid var(--accent);
}

[data-theme="pizza-parlor"] .show-card,
[data-theme="pizza-parlor"] .how-card,
[data-theme="pizza-parlor"] .stat-card {
  border-top: 4px solid var(--accent);
  border-radius: 8px;
}

[data-theme="pizza-parlor"] nav {
  border-bottom: 4px solid var(--accent);
}

[data-theme="pizza-parlor"] .hero-eyebrow {
  background: rgba(255,255,255,0.12);
  display: inline-block;
  padding: 4px 16px;
  border-radius: 20px;
}

/* ============================================
   BASE LAYOUT & COMPONENTS
   ============================================ */

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  transition: background-color 0.6s ease, color 0.4s ease;
}

/* NAV */
nav {
  background: var(--nav-bg);
  color: var(--nav-text);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--accent);
  transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--nav-text);
  text-decoration: none;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: font-family 0.4s;
}

.nav-logo span { color: var(--accent); transition: color 0.4s; }

.nav-links { display: flex; gap: 0; list-style: none; }

.nav-links a {
  color: var(--nav-text);
  text-decoration: none;
  font-family: var(--font-label);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active { opacity: 1; color: var(--accent); }

.theme-badge {
  font-family: var(--font-label);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.38;
  color: var(--nav-text);
  max-width: 140px;
  text-align: right;
  line-height: 1.3;
}

/* HERO */
.hero {
  color: var(--hero-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 0 24px 72px;
  position: relative;
  /* overflow: visible so position:fixed child (#hero-logo-scroll) works */
  overflow: visible;
  transition: background 0.6s ease;
}

/* Home page hero only: push text below the fixed logo.
   Logo center at top:48vh. padding-top: 65vh overlaps slightly into the
   transparent bottom fringe of the logo — intentional.
   Uses flex-start so padding-top actually controls where the text begins. */
#page-home .hero {
  justify-content: flex-start;
  padding-top: 65vh;
  padding-bottom: 64px;
}

/* Home hero: allow h1 to be wider than the default 660px cap */
#page-home .hero-content {
  max-width: min(90vw, 1000px);
}

/* Home h1: single line on desktop — font sized to fit comfortably */
#page-home .hero h1 {
  white-space: nowrap;
  font-size: clamp(2.5rem, 5.5vw, 6rem);
}

/* Text content wrapper — sits above the fading logo in z-index */
.hero-content {
  position: relative;
  z-index: 6;
  width: 100%;
  max-width: 660px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
  position: relative;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.92;
  margin-bottom: 28px;
  font-weight: 700;
  position: relative;
}

.hero h1 em { font-style: italic; color: var(--accent); transition: color 0.4s; }

.hero-sub {
  font-size: 1.05rem;
  opacity: 0.7;
  max-width: 540px;
  margin: 0 auto 48px;
  line-height: 1.7;
  position: relative;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.hero-stat .num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  transition: color 0.4s, font-family 0.4s;
}

.hero-stat .label {
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-top: 6px;
}

/* SECTION */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  transition: border-color 0.4s;
}

.section-eyebrow {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 8px;
  transition: color 0.4s;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.1;
  transition: font-family 0.4s;
}

/* HOW IT WORKS */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.how-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, background 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.how-card:hover { transform: translateY(-4px); }

.how-card .step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.22;
  line-height: 1;
  margin-bottom: 12px;
  transition: color 0.4s;
}

.how-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 12px; }
.how-card p { font-size: 0.88rem; line-height: 1.65; opacity: 0.7; }

/* TEAM BADGES */
.team-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 2px;
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
}

.team-badge.red { background: var(--red); color: white; }
.team-badge.blue { background: var(--blue); color: white; }

/* SHOW CARDS */
.show-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.4s;
}

.show-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow), 0 12px 40px rgba(0,0,0,0.12);
}

.show-card .show-num {
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 6px;
}

.show-card .show-date {
  font-family: var(--font-label);
  font-size: 0.78rem;
  opacity: 0.6;
  margin-bottom: 16px;
}

.show-card .teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.team-block {
  padding: 12px;
  background: var(--bg);
  border-radius: 3px;
  border-left: 3px solid var(--border);
  transition: background 0.4s;
}

.team-block.blue-team { border-left-color: var(--blue); }
.team-block.red-team  { border-left-color: var(--red);  }
.team-block.loser     { opacity: 0.48; }

.team-block .comics { font-size: 0.78rem; font-weight: 600; margin-bottom: 5px; }
.team-block .dish   { font-size: 0.72rem; opacity: 0.68; font-style: italic; }

.show-card .secret-ing {
  font-family: var(--font-label);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 14px;
  color: var(--accent);
  transition: color 0.4s;
}

.show-card .judges-row { font-size: 0.7rem; opacity: 0.52; margin-top: 8px; }

/* SHOWS GRID */
.shows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* FILTERS */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; align-items: center; }

.filter-btn {
  padding: 7px 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: white; }

.filter-input {
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  border-radius: 2px;
  outline: none;
  flex: 1;
  min-width: 200px;
  transition: border-color 0.2s, background 0.4s;
}

.filter-input:focus { border-color: var(--accent); }

/* STATS CARDS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px 20px;
  border-radius: 4px;
  box-shadow: var(--card-shadow);
  text-align: center;
  border-top: 3px solid var(--accent);
  transition: background 0.4s, border-color 0.4s;
}

.stat-card .big-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  transition: color 0.4s, font-family 0.4s;
}

.stat-card .stat-label {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.52;
  margin-top: 10px;
}

/* BAR CHART */
.bar-chart { margin: 20px 0; }

.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }

.bar-label {
  font-size: 0.78rem;
  min-width: 140px;
  text-align: right;
  opacity: 0.82;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  flex: 1;
  background: var(--bg2);
  height: 26px;
  border-radius: 2px;
  overflow: hidden;
  transition: background 0.4s;
}

.bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  display: flex;
  align-items: center;
  padding-left: 8px;
  transition: background 0.4s;
  min-width: 30px;
}

.bar-val {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  white-space: nowrap;
}

/* WIN RATIO BAR */
.win-ratio-bar {
  background: var(--bg2);
  border-radius: 3px;
  overflow: hidden;
  height: 44px;
  display: flex;
  margin: 16px 0;
}

.win-ratio-blue {
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  transition: width 1s ease, background 0.4s;
}

.win-ratio-red {
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  flex: 1;
  transition: background 0.4s;
}

/* YEAR CHART */
.year-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
  padding: 0 4px;
}

.year-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.year-bar { width: 100%; background: var(--accent); border-radius: 2px 2px 0 0; min-height: 4px; transition: background 0.4s; }
.year-label { font-family: var(--font-label); font-size: 0.6rem; text-transform: uppercase; opacity: 0.52; }

/* DATA TABLE */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }

.data-table th {
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.52;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid var(--border);
}

.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:hover td { background: var(--bg2); }

/* ABOUT / COMIC CARDS */
.comic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 16px;
}

.comic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px 16px;
  text-align: center;
  border-radius: 4px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, background 0.4s, border-color 0.4s;
}

.comic-card:hover { transform: translateY(-2px); }

.comic-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  transition: background 0.4s, font-family 0.4s;
}

.comic-card .comic-name { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; }
.comic-card .comic-stats { font-family: var(--font-label); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.52; }
.comic-card .win-rate { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--accent); margin-top: 8px; transition: color 0.4s; }

/* PAGE TRANSITIONS */
.page { display: none; }
.page.active { display: block; animation: pageIn 0.35s ease; }

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

/* ─────────────────────────────────────────────
   GALLERY PAGE
   ───────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item {
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
  z-index: 1;
  position: relative;
}

.gallery-thumb {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* ── Lightbox ── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.6);
  display: block;
}

.lightbox-counter {
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
  font-family: var(--font-label);
  letter-spacing: 0.12em;
  margin-top: 12px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s ease;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-close {
  top: 20px;
  right: 24px;
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.4rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 900px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
@media (max-width: 380px)  { .gallery-grid { grid-template-columns: 1fr; } }

/* FOOTER */
footer {
  background: var(--nav-bg);
  color: var(--nav-text);
  padding: 48px 24px;
  text-align: center;
  border-top: 2px solid var(--accent);
  transition: background 0.6s ease, border-color 0.4s;
}

footer .footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 10px;
  transition: color 0.4s, font-family 0.4s;
}

footer p { opacity: 0.42; font-size: 0.78rem; font-family: var(--font-label); letter-spacing: 0.1em; margin-top: 6px; }

/* THEME SWITCHER */
.theme-switcher { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* Vibe name toast — mobile-only, shown by JS adding .visible / .fading */
.vibe-toast {
  display: none;
  background: rgba(0,0,0,0.82);
  color: #fff;
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
/* .visible and .fading are only meaningful at ≤768px; desktop keeps display:none */
@media (max-width: 768px) {
  .vibe-toast.visible { display: block; opacity: 1; }
  .vibe-toast.fading  { opacity: 0; }
}

.theme-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 20px;
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  transition: background 0.4s ease, transform 0.15s ease;
}

.theme-btn:hover { transform: scale(1.05); }
.theme-btn:active { transform: scale(0.97); }

/* PAGINATION */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }

.page-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-label);
  font-size: 0.75rem;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
}

.page-btn:hover,
.page-btn.active { background: var(--accent); border-color: var(--accent); color: white; }

/* INGREDIENT CLOUD */
.ingredient-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }

.ingredient-tag {
  padding: 5px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  transition: all 0.2s;
  cursor: default;
}

.ingredient-tag:hover { background: var(--accent); border-color: var(--accent); color: white; }

/* DASHBOARD TABS */
.dash-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 36px; }

.dash-tab {
  padding: 12px 22px;
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.dash-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.dash-tab:hover { color: var(--text); }

.dash-panel { display: none; }
.dash-panel.active { display: block; animation: pageIn 0.3s ease; }

/* RESPONSIVE */
@media (max-width: 700px) {
  .nav-links { display: none; }
  .hero { padding: 60px 16px 48px; }
  .hero h1 { font-size: 3rem; }
  .shows-grid { grid-template-columns: 1fr; }
  .show-card .teams { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  #dash-comedians > div,
  #dash-judges > div { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .dash-tab { padding: 10px 12px; font-size: 0.62rem; }
  /* Mobile: logo center at 48vh, padding overlaps slightly into logo fringe */
  #page-home .hero { padding-top: 52vh; padding-bottom: 48px; }
  /* Restore stacked h1 on mobile */
  #page-home .hero h1 { white-space: normal; font-size: clamp(2.2rem, 10vw, 4rem); }
  #page-home .hero-content { max-width: 100%; }
}

@media (max-width: 400px) {
  .how-grid { grid-template-columns: 1fr; }
  #page-home .hero { padding-top: 49vh; }
}

/* ============================================
   LOGO & PHOTO ADDITIONS
   ============================================ */

/* ---- Fixed hero scroll-logo ---- */
/* Sits OUTSIDE .page divs so position:fixed always resolves to the viewport —
   the pageIn animation's transform would otherwise create a containing block
   that breaks fixed positioning and inflates scroll height.
   Visibility controlled by JS (display:none on non-home pages).
   Width is set entirely by JS so it can grow from initial → 90vw on scroll.
   Shifted down to ~48% so it clears the next-show banner above and sits
   flush against the hero text below (no 5vh gap). */
.hero-logo-scroll {
  position: fixed;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Width intentionally omitted — JS sets and updates it */
  z-index: 5; /* below nav (100) but above hero bg */
  pointer-events: none;
  will-change: opacity, transform, width;
}

.hero-logo-scroll img {
  width: 100%;
  height: auto;
  display: block;
  /* Neon glow tuned to the logo's actual colors:
     inner core  → warm orange  (#f09000 — logo's secondary/stroke color)
     mid bloom   → cyan         (#80f0f0 — logo's dominant fill color)
     outer haze  → deep teal    (color-shifted ambient)
     Kept subtle — a suggestion of neon, not a beacon.                    */
  filter:
    drop-shadow(0 0 4px  rgba(255,160,60,0.65))
    drop-shadow(0 0 14px rgba(100,230,230,0.45))
    drop-shadow(0 0 38px rgba(40,195,195,0.22))
    drop-shadow(0 0 80px rgba(0,155,155,0.10))
    drop-shadow(0 8px 44px rgba(0,0,0,0.50));
  animation: neon-breathe 4s ease-in-out infinite;
}

/* Slow glow pulse — only animates filter intensity, not opacity
   (opacity is reserved for the JS flicker engine)              */
@keyframes neon-breathe {
  0%, 100% {
    filter:
      drop-shadow(0 0 4px  rgba(255,160,60,0.65))
      drop-shadow(0 0 14px rgba(100,230,230,0.45))
      drop-shadow(0 0 38px rgba(40,195,195,0.22))
      drop-shadow(0 0 80px rgba(0,155,155,0.10))
      drop-shadow(0 8px 44px rgba(0,0,0,0.50));
  }
  50% {
    filter:
      drop-shadow(0 0 6px  rgba(255,170,70,0.75))
      drop-shadow(0 0 20px rgba(120,240,240,0.55))
      drop-shadow(0 0 52px rgba(50,205,205,0.28))
      drop-shadow(0 0 100px rgba(0,165,165,0.14))
      drop-shadow(0 8px 44px rgba(0,0,0,0.50));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-scroll img { animation: none; }
}

/* ── Mobile / touch-device performance: kill expensive effects that cause stutter ──
   1. Banner images moved to absolutely-positioned pseudo-elements on mobile,
      avoiding the iOS bug where background-size:cover miscalculates on flex
      min-height containers and snaps to auto (showing the raw top-left corner).
   2. Animating filter:drop-shadow() is not accelerated on iOS — constant rasterize.
      Disable the neon-breathe animation and reduce to a single static shadow.    */
@media (pointer: coarse), (max-width: 768px) {

  /* Strip image off parent elements — image moves to pseudo-element below */
  .about-hero-banner,
  .shows-hero-banner,
  .gallery-hero-banner,
  .submit-hero-banner {
    background-image: none;
    isolation: isolate; /* create stacking context for z-index children */
  }

  /* ::before = image layer (behind the overlay div) */
  .about-hero-banner::before,
  .shows-hero-banner::before,
  .gallery-hero-banner::before,
  .submit-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    z-index: 0;
  }
  .about-hero-banner::before  { background-image: url('images/gallery/photo-064-web.jpg'); background-position: center 70%; }
  .shows-hero-banner::before  { background-image: url('images/gallery/photo-035-web.jpg'); background-position: center 70%; }
  .gallery-hero-banner::before{ background-image: url('images/gallery/photo-068-web.jpg'); background-position: center 90%; }
  .submit-hero-banner::before { background-image: url('images/gallery/photo-028-web.jpg'); background-position: center 50%; }

  /* Overlay div sits above image, text sits above overlay */
  .about-hero-overlay { z-index: 1; }
  .about-hero-text    { z-index: 2; }

  /* Stats hero: ::before is the overlay, use ::after for the image */
  .stats-hero {
    background-image: none;
    isolation: isolate;
  }
  .stats-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('images/gallery/photo-054-web.jpg');
    background-position: center 70%;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    z-index: 0;
  }
  .stats-hero::before { z-index: 1; } /* overlay above image */
  .stats-hero-inner   { z-index: 2; } /* content above overlay */

  .hero-logo-scroll img {
    animation: none;
    filter:
      drop-shadow(0 0 10px rgba(100,230,230,0.30))
      drop-shadow(0 8px 28px rgba(0,0,0,0.45));
  }
}

/* ---- Nav logo image ---- */
.nav-logo-img {
  height: 34px;
  width: 34px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
  display: inline-block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

/* ---- Footer logo image ---- */
.footer-logo-img {
  height: 28px;
  width: 28px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
  display: inline-block;
  opacity: 0.85;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3));
}

/* HOST CARD */
.host-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  max-width: 860px;
  margin: 40px auto 0;
  align-items: start;
}

.host-img-wrap {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}

.host-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.host-info {
  padding-top: 8px;
}

.host-info h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.host-handle {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.host-info p {
  line-height: 1.8;
  opacity: 0.82;
  font-size: 1rem;
}

/* PRODUCTION STAFF GRID */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.staff-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.staff-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.staff-img-wrap {
  width: 100%;
  overflow: hidden;
}

.staff-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.staff-info {
  padding: 16px 18px 18px;
}

.staff-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.staff-titles {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0;
  line-height: 1.6;
}

.staff-bio {
  font-size: 0.88rem;
  line-height: 1.75;
  opacity: 0.75;
}

/* PERSON PHOTO CARDS */
.comic-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  margin: 0 auto 14px;
  display: block;
  border: 2px solid var(--border);
}

/* SHOW CARD PERSON PHOTOS */
.person-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--border);
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

@media (max-width: 700px) {
  .host-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .host-img {
    height: 280px;
  }
}

/* ============================================================
   STATS PAGE
   ============================================================ */

/* ── About page photo banner ── */
.about-hero-banner {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-bg)
    url('images/gallery/photo-064-web.jpg') center 30% / cover no-repeat scroll;
}

.shows-hero-banner {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-bg)
    url('images/gallery/photo-035-web.jpg') center 50% / cover no-repeat scroll;
}

.gallery-hero-banner {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-bg)
    url('images/gallery/photo-068-web.jpg') center 60% / cover no-repeat scroll;
}

/* ── Submit page hero banner ── */
.submit-hero-banner {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-bg)
    url('images/gallery/photo-028-web.jpg') center 80% / cover no-repeat scroll;
}

/* ── Submit page content ── */
.submit-section {
  padding-top: 56px;
  padding-bottom: 72px;
  border: none;
}

.submit-intro {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.75;
  opacity: 0.78;
  max-width: 620px;
  margin: 0 auto 52px;
}

.submit-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
}

.submit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 40px 36px 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: var(--card-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.submit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow), 0 8px 32px rgba(0,0,0,0.18);
}

.submit-card-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  line-height: 1;
}

.submit-card-label {
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  opacity: 0.9;
}

.submit-card-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 16px;
}

.submit-card-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  opacity: 0.78;
  flex: 1;
  margin: 0 0 28px;
}

.submit-card-btn {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 4px;
  transition: opacity 0.15s, transform 0.15s;
  align-self: stretch;
  text-align: center;
}
.submit-card-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.submit-card-btn:active { transform: translateY(0); }

.submit-card-btn--comic {
  background: var(--accent);
  color: var(--nav-bg);
}
.submit-card-btn--judge {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

@media (max-width: 640px) {
  .submit-cards { grid-template-columns: 1fr; gap: 24px; }
  .submit-card  { padding: 32px 24px 28px; }
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.45) 60%,
    rgba(0,0,0,0.65) 100%);
}

.about-hero-text {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  padding: 72px 24px 52px;
}

/* All photo banners: force legibility against background image regardless of theme.
   .photo-hero-banner is added to all 4 banner divs in HTML. */
.photo-hero-banner .hero-eyebrow,
.stats-hero .hero-eyebrow {
  color: #fff;
  font-weight: 700;
  text-shadow:
    0 1px 4px rgba(0,0,0,0.9),
    0 2px 12px rgba(0,0,0,0.8),
    0 4px 24px rgba(0,0,0,0.6);
}
.photo-hero-banner .about-hero-text h1,
.stats-hero .stats-hero-title {
  color: #fff;
  text-shadow:
    0 2px 6px rgba(0,0,0,0.85),
    0 4px 20px rgba(0,0,0,0.65),
    0 8px 40px rgba(0,0,0,0.4);
}

/* ── Photo strip: horizontally scrollable carousel ── */
.photo-strip {
  height: 220px;
  overflow-x: auto;
  overflow-y: hidden;
  /* smooth momentum scrolling on iOS */
  -webkit-overflow-scrolling: touch;
  /* hide scrollbar visually but keep it functional */
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}
.photo-strip::-webkit-scrollbar { display: none; }
.photo-strip.strip-dragging { cursor: grabbing; }

/* Inner track: laid out as a horizontal flex row */
.photo-strip-track {
  display: flex;
  height: 100%;
  gap: 0;
}

.photo-strip-item {
  flex: 0 0 auto;
  width: 280px;   /* each photo tile width on desktop */
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.photo-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
  pointer-events: none; /* let drag events pass through */
}

.photo-strip-item:hover img {
  transform: scale(1.04);
}

.photo-strip-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.22);
  transition: background 0.3s ease;
  pointer-events: none;
}
.photo-strip-item:hover::after { background: rgba(0,0,0,0.05); }

@media (max-width: 700px) {
  .photo-strip { height: 160px; }
  .photo-strip-item { width: 180px; }
}

.stats-hero {
  position: relative;
  background: var(--hero-bg)
    url('images/gallery/photo-054-web.jpg') center 50% / cover no-repeat scroll;
  color: var(--hero-text);
  padding: 72px 24px 52px;
  text-align: center;
}
.stats-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.45) 60%,
    rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}
.stats-hero-inner {
  position: relative;
  z-index: 1;
}
.stats-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1;
  margin: 8px 0 16px;
}
.stats-hero-sub { opacity: 0.65; font-size: 1.1rem; }

/* Overview strip */
.overview-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
.overview-tile {
  padding: 28px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.overview-tile:last-child { border-right: none; }
.overview-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.overview-label {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 6px;
}

/* Stats body */
.stats-body { max-width: 1100px; margin: 0 auto; padding: 0 24px 80px; }

/* Section */
.stats-section {
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
  margin-top: 56px;
}
.stats-section:first-child { border-top: none; margin-top: 40px; }
.stats-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.stats-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
}
.stats-section-sub { opacity: 0.55; font-size: 0.9rem; margin-top: 4px; }
.stats-section-tabs { display: flex; gap: 4px; }
.stab {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
}
.stab.active, .stab:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── RED VS BLUE ── */
.rvb-layout {
  display: grid;
  grid-template-columns: 140px 1fr 140px;
  gap: 32px;
  align-items: center;
}
.rvb-team { text-align: center; }
.rvb-wins {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
}
.red-side .rvb-wins { color: var(--red, #e53e3e); }
.blue-side .rvb-wins { color: var(--blue, #3182ce); }
.rvb-label {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 4px;
}
.rvb-streak {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 8px;
  line-height: 1.4;
}
.rvb-bar {
  height: 20px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  margin-bottom: 8px;
  background: var(--border);
}
.rvb-bar-red { background: var(--red, #e53e3e); transition: width 0.8s ease; }
.rvb-bar-blue { background: var(--blue, #3182ce); transition: width 0.8s ease; flex: 1; }
.rvb-pcts {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.red-txt { color: var(--red, #e53e3e); }
.blue-txt { color: var(--blue, #3182ce); }

/* Year-by-year mini bars */
.rvb-year-bars {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 60px;
  margin-top: 8px;
}
.rvb-year-bar-wrap { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rvb-year-bar-r { background: var(--red, #e53e3e); border-radius: 2px 2px 0 0; opacity: 0.85; }
.rvb-year-bar-b { background: var(--blue, #3182ce); border-radius: 2px 2px 0 0; opacity: 0.85; }
.rvb-year-labels {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}
.rvb-year-label {
  flex: 1;
  text-align: center;
  font-size: 0.55rem;
  opacity: 0.5;
  font-family: var(--font-label);
}

/* ── SECRET INGREDIENT ── */
.ingredient-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.ingredient-crown { font-size: 1.8rem; }
.ingredient-hero-name {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
}
.ingredient-hero-count {
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
}
.ingredient-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ing-chip {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  cursor: default;
  transition: all 0.15s;
  position: relative;
}
.ing-chip:hover { border-color: var(--accent); color: var(--accent); }
.ing-chip .ing-count {
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  opacity: 0.55;
  margin-left: 6px;
}
.ing-chip.ing-has-wins { cursor: pointer; }

/* ── LEADERBOARD ── */
.leaderboard { display: flex; flex-direction: column; gap: 6px; }

.lb-row {
  display: grid;
  grid-template-columns: 36px 48px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--card-bg, transparent);
}
.lb-row:hover { border-color: var(--accent); background: var(--card-hover, rgba(0,0,0,0.03)); }
.lb-rank {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  opacity: 0.25;
  text-align: center;
}
.lb-rank.gold { opacity: 1; color: #d4a017; }
.lb-rank.silver { opacity: 1; color: #9aa5b1; }
.lb-rank.bronze { opacity: 1; color: #c87533; }
.lb-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--border);
}
.lb-avatar-initials {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.lb-info { min-width: 0; }
.lb-name {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-sub {
  font-size: 0.75rem;
  opacity: 0.55;
  margin-top: 2px;
}
.lb-record {
  text-align: right;
  white-space: nowrap;
}
.lb-record-main {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}
.lb-record-sub {
  font-size: 0.65rem;
  opacity: 0.5;
  font-family: var(--font-label);
  letter-spacing: 0.08em;
}

/* Team leaderboard rows */
.teams-leaderboard { display: flex; flex-direction: column; gap: 6px; }
.team-lb-row {
  display: grid;
  grid-template-columns: 36px 80px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}
.team-lb-row:hover { border-color: var(--accent); }
.team-avatars { display: flex; }
.team-avatars .lb-avatar,
.team-avatars .lb-avatar-initials {
  width: 36px; height: 36px; font-size: 0.8rem;
  margin-right: -8px;
  border: 2px solid var(--bg, #fff);
}
.team-avatars .lb-avatar-initials { background: var(--text-muted); }

/* Expand button */
.expand-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: none;
  color: var(--text-muted);
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
}
.expand-btn:hover { border-color: var(--accent); color: var(--accent); }
.expand-btn.open { color: var(--accent); border-style: solid; border-color: var(--accent); }

/* Expanded list */
.expanded-list { margin-top: 16px; }
.expanded-list.hidden { display: none; }
.expanded-search-row { margin-bottom: 16px; }
.expanded-search {
  width: 100%;
  max-width: 340px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg, transparent);
  color: var(--text);
  font-size: 0.9rem;
}
.expanded-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}
.expanded-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--card-bg, transparent);
}
.expanded-card:hover { border-color: var(--accent); }
.expanded-card .lb-avatar,
.expanded-card .lb-avatar-initials { width: 36px; height: 36px; font-size: 0.8rem; }
.expanded-card-info { min-width: 0; flex: 1; }
.expanded-card-name { font-weight: 600; font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.expanded-card-rec { font-size: 0.72rem; opacity: 0.55; }

/* ── FUN FACTS ── */
.fun-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.fun-fact-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.fun-fact-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.fun-fact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}
.fun-fact-card:hover::before { opacity: 1; }
.fun-fact-emoji { font-size: 2rem; margin-bottom: 12px; }
.fun-fact-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.fun-fact-body { font-size: 0.88rem; opacity: 0.7; line-height: 1.6; }
.fun-fact-cta { font-size: 0.72rem; color: var(--accent); font-family: var(--font-label); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 12px; }

/* ── PROFILE MODAL ── */
.profile-modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1600; /* above show-detail modal (1500) so profile always renders on top */
  padding: 24px;
  overflow-y: auto;
  backdrop-filter: blur(4px);
}
.profile-modal-bg.open { display: flex; align-items: flex-start; justify-content: center; padding-top: 60px; }
.profile-modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  position: relative;
  overflow: hidden;
  animation: modalIn 0.2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.profile-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.profile-close:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.profile-modal-inner { }

/* Profile card layouts */
.profile-photo-banner-wrap {
  width: 100%;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 320px;
  overflow: hidden;
}
.profile-photo-banner {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  object-position: center;
  display: block;
}
.profile-no-photo-banner {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark, #5a3a1a) 100%);
  opacity: 0.15;
}

/* ── Photo carousel ── */
.profile-carousel-wrap {
  position: relative;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  padding: 0;
}
.carousel-btn:hover { background: rgba(0,0,0,0.82); }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
.carousel-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
}
.profile-body { padding: 24px 28px 32px; }
.profile-name { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1.1; }
.profile-handle {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 4px;
}
.profile-handle a { color: inherit; text-decoration: none; }
.profile-handle a:hover { text-decoration: underline; }
.profile-restaurant {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 4px;
  font-style: italic;
}
.profile-record-strip {
  display: flex;
  gap: 0;
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.profile-record-cell {
  flex: 1;
  padding: 14px 8px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.profile-record-cell:last-child { border-right: none; }
.profile-record-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}
.profile-record-num.wins-num { color: #22a66a; }
.profile-record-num.losses-num { color: var(--red, #e53e3e); }
.profile-record-lbl {
  font-size: 0.62rem;
  font-family: var(--font-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-top: 4px;
}
.profile-bio-section { margin-top: 20px; }
.profile-bio-label {
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 8px;
}
.profile-bio {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.8;
}
.profile-bio-show {
  font-size: 0.7rem;
  font-family: var(--font-label);
  opacity: 0.4;
  margin-bottom: 2px;
}
.profile-bio + .profile-bio { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }

/* Fun fact drill-down modal content */
.ff-modal-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.ff-modal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.ff-modal-row:hover { border-color: var(--accent); }

/* ── TEAM PROFILE ── */
.team-profile-avatars {
  display: flex;
  padding: 28px 28px 0;
  gap: -12px;
}
.team-profile-avatars img,
.team-profile-avatars .lb-avatar-initials {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid var(--bg);
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
.team-profile-avatars img:last-child { margin-left: -16px; }

@media (max-width: 700px) {
  .overview-strip { grid-template-columns: repeat(2, 1fr); }
  .rvb-layout { grid-template-columns: 100px 1fr 100px; gap: 16px; }
  .rvb-wins { font-size: 2.5rem; }
  .lb-row { grid-template-columns: 28px 40px 1fr auto; }
  .team-lb-row { grid-template-columns: 28px 64px 1fr auto; }
  .fun-facts-grid { grid-template-columns: 1fr; }
}

/* ── INGREDIENT WIN/LOSS TOOLTIP ── */
.ing-chip-wins {
  display: inline-flex;
  gap: 4px;
  margin-left: 8px;
  font-size: 0.65rem;
}
.ing-w { color: #22a66a; }
.ing-l { color: var(--red, #e53e3e); }

/* ─────────────────────────────────────────────
   HOVER CARD
───────────────────────────────────────────── */
.hover-card {
  position: absolute;
  z-index: 9999;
  width: 220px;
  background: var(--card-bg, #1a1a1a);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.3);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(0.97);
  transition: opacity 0.15s ease, transform 0.15s ease;
  /* Always use light text — the card bg is always dark regardless of theme */
  color: #f0f0f0;
}
.hover-card.hc-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.hover-card.hc-above {
  transform-origin: bottom center;
}
.hc-photo-wrap {
  width: 100%;
  height: 120px;
  background: #111;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hc-photo {
  width: 100%;
  height: 120px;
  object-fit: contain;
  object-position: center top;
  display: block;
}
.hc-photo-initials {
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-muted, #888);
  letter-spacing: 0.05em;
  background: var(--surface, #222);
}
.hc-body {
  padding: 10px 12px 12px;
}
.hc-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
}
.hc-handle {
  font-size: 0.7rem;
  opacity: 0.5;
  margin-bottom: 6px;
  font-family: var(--font-label, monospace);
}
.hc-stats {
  display: flex;
  gap: 4px;
  margin: 8px 0 6px;
}
.hc-stat {
  flex: 1;
  background: rgba(255,255,255,0.07); /* hardcoded — always dark card context */
  border-radius: 6px;
  padding: 5px 4px;
  text-align: center;
}
.hc-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: #f0f0f0; /* hardcoded — always dark card context */
}
.hc-stat-num.wins  { color: #22a66a; }
.hc-stat-num.losses { color: #e05555; } /* hardcoded — var(--red) is too dark on light themes */
.hc-stat-lbl {
  display: block;
  font-size: 0.58rem;
  opacity: 0.55;
  color: #f0f0f0; /* hardcoded — always dark card context */
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-label, monospace);
}
.hc-cta {
  font-size: 0.65rem;
  opacity: 0.4;
  text-align: right;
  font-family: var(--font-label, monospace);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* ─────────────────────────────────────────────
   NAME CHIPS (hoverable name spans)
───────────────────────────────────────────── */
.name-chip {
  cursor: pointer;
  border-bottom: 1px dashed currentColor;
  opacity: 0.9;
  transition: opacity 0.1s, border-color 0.1s;
  display: inline;
}
.name-chip:hover {
  opacity: 1;
  border-bottom-style: solid;
}
.name-chip-comic:hover      { color: var(--accent); }
.name-chip-judge:hover      { color: var(--blue, #4a90d9); }
.name-chip-headliner:hover  { color: var(--accent2, #e0a020); }

/* ============================================
   HAMBURGER MENU
   ============================================ */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--nav-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV DRAWER ── */
.mobile-nav {
  display: none;
  overflow: hidden;
  max-height: 0;
  background: var(--nav-bg);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 2px solid var(--accent);
  transition: max-height 0.3s ease;
}

.mobile-nav.open { max-height: 420px; }

.mobile-nav-link {
  display: block;
  color: var(--nav-text);
  text-decoration: none;
  font-family: var(--font-label);
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  opacity: 0.75;
  cursor: pointer;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
}

.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover { opacity: 1; color: var(--accent); background: rgba(255,255,255,0.04); }
.mobile-nav-link.active { opacity: 1; color: var(--accent); }

/* ============================================
   RESPONSIVE — 768px (tablets & large phones)
   ============================================ */

@media (max-width: 768px) {

  /* NAV */
  .nav-links { display: none !important; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .theme-badge { display: none; }
  .nav-inner { padding: 0 20px; }

  /* Stack "Sautéed" and "Standup" vertically; scale logo image to fill nav height */
  .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .nav-logo-img {
    height: 56px;
    width: 56px;
    margin-right: 0;
  }
  .nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.0;
    font-size: 1.3rem;
    letter-spacing: 0.01em;
  }

  /* HERO */
  .hero { padding: 56px 20px 44px; }
  .hero-sub { font-size: 0.95rem; margin-bottom: 32px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }
  .hero-stat .num { font-size: 2.6rem; }
  .hero-stat .label { font-size: 0.6rem; }

  /* SECTIONS */
  .section { padding: 48px 0; }
  .container { padding: 0 20px; }
  .section-title { font-size: clamp(1.6rem, 5vw, 2.5rem); }

  /* HOW GRID */
  .how-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }

  /* SHOWS PAGE — search + year full-width, filter buttons share a row */
  .filter-bar { flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: stretch; }
  .filter-bar input.filter-input { min-width: 0; flex: 1 1 100%; order: 1; width: 100%; }
  .filter-bar .filter-btn { flex: 1; order: 2; }
  #year-filter { min-width: 0; flex: 1 1 100%; order: 3; width: 100% !important; }

  /* SHOW CARDS */
  .shows-grid { grid-template-columns: 1fr; }
  .show-card .teams { grid-template-columns: 1fr; }
  .show-card { padding: 20px; }

  /* STATS OVERVIEW STRIP */
  .overview-strip { grid-template-columns: repeat(2, 1fr); }
  .overview-tile { padding: 22px 12px; border-right: none; border-bottom: 1px solid var(--border); }
  .overview-tile:nth-child(odd) { border-right: 1px solid var(--border); }
  .overview-tile:nth-last-child(-n+2) { border-bottom: none; }

  /* RVB — compress side columns */
  .rvb-layout { grid-template-columns: 90px 1fr 90px; gap: 16px; }
  .rvb-wins { font-size: 2.6rem; }

  /* STATS SECTION HEADER */
  .stats-section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stats-section-tabs { flex-wrap: wrap; }
  .stats-body { padding: 0 20px 80px; }
  .stats-section { padding: 40px 0 0; margin-top: 40px; }

  /* LEADERBOARDS */
  .lb-row { grid-template-columns: 28px 40px 1fr auto; gap: 8px; padding: 8px 12px; }
  .team-lb-row { grid-template-columns: 28px 64px 1fr auto; gap: 8px; padding: 8px 12px; }

  /* EXPANDED LIST */
  .expanded-search { max-width: 100%; width: 100%; }
  .expanded-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

  /* PROFILE MODAL */
  .profile-modal-bg { padding: 16px; padding-top: 36px; }
  .profile-body { padding: 20px 20px 28px; }

  /* ABOUT HOST CARD */
  .host-card { grid-template-columns: 1fr; gap: 24px; }
  .host-img { height: 260px; }

  /* STAFF GRID */
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .staff-card { flex-direction: column; }

  /* FOOTER */
  footer { padding: 36px 20px; }
  .stats-hero { padding: 48px 20px 32px; }

  /* THEME SWITCHER */
  .theme-switcher { bottom: 16px; right: 16px; }
  .theme-btn { padding: 10px 14px; font-size: 0.62rem; }
}

/* ============================================
   RESPONSIVE — 600px (phones, portrait)
   ============================================ */

@media (max-width: 600px) {

  /* HERO */
  .hero { padding: 44px 16px 36px; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 4rem); }
  .hero-stats { gap: 16px; }
  .hero-stat .num { font-size: 2.2rem; }
  .hero-logo { width: min(240px, 72vw); }

  /* RVB — stack vertically */
  .rvb-layout {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }
  .rvb-team {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }
  .rvb-wins { font-size: 3.2rem; }
  .rvb-label { margin-top: 0; }
  .rvb-streak { margin-top: 0; font-size: 0.75rem; }
  .rvb-bar-wrap { order: 0; }

  /* OVERVIEW */
  .overview-num { font-size: clamp(1.5rem, 5vw, 2.2rem); }
  .overview-label { font-size: 0.6rem; }

  /* SHOW CARD */
  .show-card .show-num,
  .show-card .show-date { font-size: 0.7rem; }

  /* FUN FACTS */
  .fun-facts-grid { grid-template-columns: 1fr; }

  /* STATS SECTION TITLE */
  .stats-section-title { font-size: clamp(1.3rem, 5vw, 2rem); }

  /* COMIC GRID (about page) */
  .comic-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }

  /* SECTION TITLE */
  .section-title { font-size: clamp(1.4rem, 6vw, 2.2rem); }

  /* LEADERBOARD record text */
  .lb-record-main { font-size: 1.1rem; }
  .lb-name { font-size: 0.88rem; }
  .lb-sub { font-size: 0.68rem; }
  .lb-record-sub { font-size: 0.6rem; }

  /* INGREDIENT CHIPS */
  .ing-chip { font-size: 0.78rem; padding: 5px 10px; }

  /* SHOWS hero */
  #page-shows > div:first-child { padding: 40px 20px 28px; }
  #page-shows h1 { font-size: clamp(2rem, 8vw, 4rem) !important; }
}

/* ============================================
   RESPONSIVE — 480px (small phones)
   ============================================ */

@media (max-width: 480px) {

  /* NAV */
  .nav-inner { padding: 0 16px; }
  .nav-logo { font-size: 1.1rem; gap: 8px; }
  .nav-logo-img { height: 52px; width: 52px; }
  .nav-logo-text { font-size: 1.15rem; line-height: 1.0; }

  /* HERO */
  .hero { padding: 36px 16px 32px; }
  .hero h1 { font-size: clamp(1.9rem, 9vw, 3rem); }
  .hero-stats { gap: 10px; }
  .hero-stat .num { font-size: 1.8rem; }

  /* SECTIONS */
  .section { padding: 36px 0; }
  .container { padding: 0 16px; }

  /* OVERVIEW STRIP */
  .overview-tile { padding: 18px 10px; }
  .overview-num { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .overview-label { font-size: 0.58rem; letter-spacing: 0.08em; }

  /* FILTER BAR BUTTONS */
  .filter-btn { font-size: 0.65rem; padding: 8px 10px; }

  /* SHOW CARD */
  .show-card { padding: 16px; }
  .show-card .teams { gap: 8px; }

  /* STATS BODY */
  .stats-body { padding: 0 16px 72px; }

  /* PROFILE MODAL */
  .profile-modal-bg { padding: 8px; padding-top: 20px; }
  .profile-body { padding: 16px 16px 24px; }
  .profile-name { font-size: 1.55rem; }
  .profile-record-strip { flex-wrap: wrap; }
  .profile-record-cell { min-width: 25%; }
  .profile-record-num { font-size: 1.5rem; }
  .profile-record-lbl { font-size: 0.58rem; }

  /* ENSURE MIN READABLE FONT ON SMALL LABELS */
  .overview-label,
  .rvb-label,
  .lb-sub,
  .lb-record-sub,
  .show-card .show-num,
  .section-eyebrow,
  .stats-section-sub { font-size: max(0.62rem, 10px); }

  /* TEAM LB ROW */
  .team-lb-row { grid-template-columns: 28px 54px 1fr auto; }

  /* FUN FACT CARDS */
  .fun-fact-card { padding: 18px; }
  .fun-fact-emoji { font-size: 1.6rem; margin-bottom: 8px; }
  .fun-fact-title { font-size: 1.05rem; }
  .fun-fact-body { font-size: 0.83rem; }

  /* YEAR CHART LABELS */
  .rvb-year-label { font-size: 0.52rem; }

  /* INGREDIENT GRID */
  .ingredient-grid { gap: 6px; }

  /* STATS HERO */
  .stats-hero-title { font-size: clamp(2.4rem, 10vw, 5rem); }
  .stats-hero-sub { font-size: 0.9rem; }

  /* FOOTER */
  footer { padding: 28px 16px; }
  footer .footer-logo { font-size: 1.6rem; }
}

/* ============================================
   RESPONSIVE — 360px (extra-small phones)
   ============================================ */

@media (max-width: 360px) {

  .nav-logo { font-size: 0.95rem; }
  .nav-inner { padding: 0 12px; }

  .hero { padding: 28px 12px 28px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stat .num { font-size: 1.6rem; }
  .hero-stats { gap: 8px; }

  .container { padding: 0 12px; }
  .stats-body { padding: 0 12px 72px; }

  /* OVERVIEW: hide border-right trick, use 2-col still but tighter */
  .overview-tile { padding: 14px 8px; }
  .overview-num { font-size: 1.3rem; }

  /* LB ROW: hide avatar to save space */
  .lb-avatar, .lb-avatar-initials { display: none; }
  .lb-row { grid-template-columns: 24px 1fr auto; }

  /* PROFILE MODAL */
  .profile-modal-bg { padding: 4px; padding-top: 12px; }
  .profile-body { padding: 12px 12px 20px; }
  .profile-name { font-size: 1.3rem; }

  /* SHOW CARD */
  .show-card { padding: 12px; }

  .mobile-nav-link { padding: 14px 16px; font-size: 0.82rem; }

  .stats-section { padding: 28px 0 0; margin-top: 28px; }
}

/* ============================================================
   ACCESSIBILITY: CONTRAST FIXES
   Fixes invisible/low-contrast text across themes where
   --accent matches the nav-bg or hero-bg, and other issues.
   ============================================================ */

/* --- 1. Fine Dining: nav logo uses accent (#8b6914) on near-black nav ---
   accent2 (#c8a951) gives 8.6:1 contrast on the dark nav-bg           */
[data-theme="fine-dining"] .nav-logo span {
  color: var(--accent2);
}

/* --- 2. French Bistro: --nav-bg IS the accent color, so .nav-logo span
   and .nav-links a.active become invisible. Use --nav-text instead.
   (Fast Food + Taco Truck now have dark navs — accent pops naturally.) */
[data-theme="french-bistro"] .nav-logo span {
  color: var(--nav-text);
}

[data-theme="french-bistro"] .nav-links a.active {
  color: var(--nav-text);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-theme="french-bistro"] .mobile-nav-link.active,
[data-theme="french-bistro"] .mobile-nav-link:hover {
  color: var(--nav-text);
  background: rgba(255,255,255,0.12);
}

/* --- 3. Fast Food: hero-eyebrow uses --accent (red) on a dark-red hero.
   Use --hero-text at slight opacity for a subtle label feel.
   Taco Truck now has a dark hero — amber accent is legible directly.  */
[data-theme="fast-food"] .hero-eyebrow {
  color: var(--hero-text);
  opacity: 0.82;
}

/* --- 4. Fast Food: .hero h1 em uses --accent (red) on same-hue hero bg.
   Taco Truck dark hero → amber em is legible. French Bistro → gold.   */
[data-theme="fast-food"] .hero h1 em {
  color: #ffee88; /* bright butter-yellow: good contrast on dark red hero */
}

[data-theme="french-bistro"] .hero h1 em {
  color: #e8c547; /* warm gold: 10.2:1 on dark navy hero */
}

/* --- 5. Fast Food: .hero-stat .num uses --accent (red) on dark-red bg.
   Taco Truck + French Bistro dark heros handle this without overrides. */
[data-theme="fast-food"] .hero-stat .num,
[data-theme="french-bistro"] .hero-stat .num {
  color: var(--hero-text);
}

/* ═══════════════════════════════════════════════════════════════
   TICKETS BUTTON IN NAV
   ═══════════════════════════════════════════════════════════════ */
.nav-tickets-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--nav-bg);
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 3px;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
  flex-shrink: 0;
}
/* French Bistro: --accent === --nav-bg → button invisible.
   Fast Food + Taco Truck now have dark navs, accent buttons pop fine. */
[data-theme="french-bistro"] .nav-tickets-btn {
  background: var(--nav-text);
  color: var(--nav-bg);
}

.nav-tickets-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   NEXT SHOW BANNER
   ═══════════════════════════════════════════════════════════════ */
.next-show-banner {
  display: block;
  background: var(--accent);
  color: var(--nav-bg);
  text-align: center;
  font-family: var(--font-label);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 11px 24px;
  line-height: 1.4;
  transition: background 0.4s, color 0.4s, opacity 0.2s;
  cursor: pointer;
  position: relative;
  z-index: 99; /* just below nav */
}
.next-show-banner:hover { opacity: 0.88; }

/* Fast Food: --accent (#c0392b dark red) background + --nav-bg (#e63946 bright red)
   text → nearly invisible red-on-red. Use the theme's signature yellow stripe so
   the banner pops as a visual break between the red nav and red hero.          */
[data-theme="fast-food"] .next-show-banner {
  background: #ffd60a;
  color: #1a1a1a;
}

/* French Bistro: --accent === --nav-bg so text would be invisible.
   Taco Truck now has amber accent on dark bg — default text is legible. */
[data-theme="french-bistro"] .next-show-banner {
  color: var(--nav-text);
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE TICKETS BUTTON (inside mobile nav drawer)
   ═══════════════════════════════════════════════════════════════ */
.mobile-tickets-btn {
  display: block;
  background: var(--accent);
  color: var(--nav-bg);
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 14px 24px;
  margin: 8px 16px 16px;
  border-radius: 4px;
}

/* French Bistro: accent === nav-bg → flip to nav-text for legibility.
   Fast Food + Taco Truck dark navs make accent buttons work directly.  */
[data-theme="french-bistro"] .mobile-tickets-btn {
  background: var(--nav-text);
  color: var(--nav-bg);
}

/* French Bistro: accent === nav-bg → comic button text invisible without this fix. */
[data-theme="french-bistro"] .submit-card-btn--comic {
  background: var(--nav-text);
  color: var(--nav-bg);
}

/* ═══════════════════════════════════════════════════════════════
   READABILITY — Nav links bigger + general type bump
   ═══════════════════════════════════════════════════════════════ */
/* Nav links: bump from 0.74rem → 0.85rem, tighten spacing slightly */
.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 8px 14px;
}

/* Body copy baseline: was implicitly browser default 16px,
   ensure section text, labels, etc. land at a comfortable size */
body {
  font-size: 17px;
}

/* Section body paragraphs */
.section p,
.section li {
  font-size: 1rem;
  line-height: 1.75;
}

/* Show cards: episode number, date, team names */
.show-num {
  font-size: 0.78rem;
}
.show-date {
  font-size: 1rem;
}
.team-names {
  font-size: 0.95rem;
}

/* Stats labels in hero area */
.overview-label,
.stat-label,
.hc-stat-lbl {
  font-size: 0.72rem;
}

/* Footer */
footer p {
  font-size: 0.82rem;
}

/* ═══════════════════════════════════════════════════════════════
   SHOW CARD — clickable affordance
   ═══════════════════════════════════════════════════════════════ */
.show-card-clickable {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.show-card-clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.show-card-clickable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════════
   SHOW DETAIL MODAL
   ═══════════════════════════════════════════════════════════════ */
.show-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1500;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.show-modal-overlay.open { display: flex; }

.show-modal-card {
  background: var(--bg);
  color: var(--text);
  border-radius: 8px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 40px 36px 36px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  transition: background 0.4s, color 0.4s;
}

.show-modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  opacity: 0.5;
  padding: 4px 8px;
  transition: opacity 0.15s;
}
.show-modal-close:hover { opacity: 1; }

/* Header */
.smd-header {
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(128,128,128,0.2);
  padding-bottom: 20px;
}
.smd-episode {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 4px;
}
.smd-date {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.smd-ingredient {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 8px;
}
.smd-result {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  background: rgba(128,128,128,0.15);
}
.smd-result.smd-blue { background: rgba(59,130,246,0.15); color: var(--blue); }
.smd-result.smd-red  { background: rgba(239,68,68,0.15);  color: var(--red);  }

/* Teams grid */
.smd-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
.smd-team {
  background: rgba(128,128,128,0.06);
  border-radius: 6px;
  padding: 20px;
  border: 1px solid transparent;
}
.smd-team-winner {
  border-color: rgba(128,128,128,0.25);
  background: rgba(128,128,128,0.1);
}
.smd-team-blue.smd-team-winner { border-color: rgba(59,130,246,0.35); background: rgba(59,130,246,0.07); }
.smd-team-red.smd-team-winner  { border-color: rgba(239,68,68,0.35);  background: rgba(239,68,68,0.07);  }

.smd-team-label {
  font-family: var(--font-label);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 6px;
}
.smd-winner-label { opacity: 1; }

.smd-dish {
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.75;
  margin-bottom: 14px;
}

/* People grid */
.smd-people {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.smd-judges-row { margin-top: 4px; }

.smd-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 64px;
  max-width: 84px;
  text-align: center;
}
.smd-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(128,128,128,0.15);
  flex-shrink: 0;
  position: relative;
}
.smd-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.smd-avatar-interactive {
  cursor: pointer;
  transition: opacity 0.15s, box-shadow 0.15s;
}
.smd-avatar-interactive:hover {
  opacity: 0.85;
  box-shadow: 0 0 0 3px var(--accent);
}
.smd-initials {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.55;
}
.smd-name {
  font-size: 0.72rem;
  line-height: 1.3;
  word-break: break-word;
}
.smd-name .name-chip { font-size: 0.72rem; }

/* Section titles (Judges, Headliner) */
.smd-section { margin-top: 8px; }
.smd-section-title {
  font-family: var(--font-label);
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 12px;
}

/* Mobile stacking */
@media (max-width: 600px) {
  .show-modal-card { padding: 32px 20px 24px; }
  .smd-teams { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   LINEUP PREDICTOR
═══════════════════════════════════════════ */
.lineup-builder-section { }

.lineup-builder-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}

.lineup-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}

.lineup-team {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lineup-team-label {
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.lineup-vs {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-muted, var(--muted));
  opacity: 0.45;
  padding-top: 32px;
  text-align: center;
}

.lineup-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.88rem;
  font-family: var(--font-body);
  cursor: pointer;
  appearance: auto;
}

.lineup-select:focus {
  outline: none;
  border-color: var(--accent);
}

.lineup-ingredient-row {
  margin-bottom: 20px;
}

.lineup-ing-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.lineup-ing-optional {
  font-weight: 400;
  opacity: 0.5;
  font-size: 0.8rem;
}

.lineup-ing-select {
  max-width: 340px;
}

.lineup-predict-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: var(--nav-text, #fff);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
.lineup-predict-btn:hover { opacity: 0.85; }
.lineup-predict-btn:active { transform: scale(0.98); }

/* French Bistro predict button fix */
[data-theme="french-bistro"] .lineup-predict-btn {
  background: var(--nav-text);
  color: var(--nav-bg);
}

/* ── Result ── */
.lineup-result {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.lb-call {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.lb-prob-bar-wrap {
  display: flex;
  height: 32px;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 0 8px;
}

.lb-prob-bar-blue {
  background: var(--blue, #3182ce);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 12px;
  font-weight: 700;
  color: #fff;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: width 0.5s ease;
  min-width: 0;
}

.lb-prob-bar-red {
  background: var(--red, #e53e3e);
  height: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  font-weight: 700;
  color: #fff;
  font-size: 0.88rem;
  white-space: nowrap;
  min-width: 0;
}

.lb-prob-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.lb-confidence {
  font-size: 0.78rem;
  opacity: 0.6;
  margin-bottom: 16px;
  text-align: center;
}

.lb-comic-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.lb-comic-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
}

.lb-comic-stat-name {
  font-weight: 600;
  font-size: 0.84rem;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-comic-stat-record {
  font-size: 0.74rem;
  opacity: 0.6;
}

.lb-ing-note {
  background: var(--section-bg, var(--bg));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  opacity: 0.8;
  line-height: 1.5;
}

.lb-error {
  color: var(--red, #e53e3e);
  font-size: 0.88rem;
  padding: 8px 0;
}

/* ── Combobox (searchable comic picker) ── */
.lb-combo {
  position: relative;
  width: 100%;
}

.lb-combo-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #111;
  color: #fff;
  font-size: 0.88rem;
  font-family: var(--font-body);
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.lb-combo-input:focus {
  outline: none;
  border-color: var(--accent);
}

.lb-combo-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #111;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 300;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  padding: 4px;
}
.lb-combo-dropdown.open {
  display: block;
}

.lb-combo-item {
  padding: 8px 12px;
  font-size: 0.86rem;
  cursor: pointer;
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}
.lb-combo-item:hover {
  background: var(--accent);
  color: var(--nav-text, #fff);
}

.lb-combo-empty {
  padding: 10px 14px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
}

/* Non-clickable fun fact card */
.fun-fact-card.no-click {
  cursor: default;
}
.fun-fact-card.no-click .fun-fact-cta {
  display: none;
}

/* ── Lineup mobile ── */
@media (max-width: 620px) {
  .lineup-teams {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .lineup-vs {
    padding-top: 0;
    font-size: 1.1rem;
  }
  .lineup-ing-select { max-width: 100%; }
  .lb-comic-stats { grid-template-columns: 1fr; }
}
