    /* ── Reset & Base ─────────────────────────────── */
    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    :root {
      --bg: #0b1220;
      --bg-glow: radial-gradient(circle at 20% 10%, rgba(45, 212, 191, 0.18) 0%, rgba(11, 18, 32, 0.94) 52%, #0b1220 100%);
      --crimson: #fb7185;
      --gold: #7dd3fc;
      --rose: #fda4af;
      --cream: #f8fafc;
      --purple: #2dd4bf;
      --pink-mist: rgba(125, 211, 252, 0.28);
      --glass: rgba(255, 255, 255, 0.05);
      --glass-border: rgba(125, 211, 252, 0.2);
      /* Karaoke Duo Colors */
      --singer1: #00bfff; /* Deep Sky Blue */
      --singer2: #ff69b4; /* Hot Pink */
      --duo: #ffd700;     /* Gold */
    }

    body {
      font-family: 'Playfair Display', Georgia, serif;
      background: var(--bg);
      background-image: var(--bg-glow);
      background-attachment: fixed;
      color: var(--cream);
      min-height: 100vh;
      overflow-x: hidden;
      line-height: 1.6;
    }

    h1,
    h2,
    h3,
    h4 {
      font-family: 'Cinzel', serif;
      font-weight: 700;
      letter-spacing: 0.05em;
    }

    a {
      color: var(--gold);
      text-decoration: none;
    }

    a:hover {
      text-decoration: underline;
    }

    /* ── Falling Rose Petals ──────────────────────── */
    .petal {
      position: fixed;
      top: -60px;
      z-index: 0;
      pointer-events: none;
      font-size: 1.6rem;
      opacity: 0.6;
      animation: fall linear infinite;
    }

    @keyframes fall {
      0% {
        transform: translateY(-60px) rotate(0deg);
        opacity: 0.7;
      }

      50% {
        opacity: 0.5;
      }

      100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
      }
    }

    /* ── Glitter Canvas ───────────────────────────── */
    #glitter-canvas {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
    }

    /* ── Navigation ───────────────────────────────── */
    nav {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(10, 11, 16, 0.9);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--glass-border);
      padding: 0.75rem 1rem;
      display: flex;
      justify-content: center;
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    nav button {
      font-family: 'Cinzel', serif;
      font-size: 0.75rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      background: transparent;
      color: var(--rose);
      border: 1px solid var(--glass-border);
      padding: 0.5rem 1rem;
      border-radius: 999px;
      cursor: pointer;
      transition: all 0.3s;
      min-height: 44px;
    }

    nav button:hover,
    nav button.active {
      background: var(--crimson);
      color: var(--cream);
      border-color: var(--crimson);
    }

    /* ── Main Content ─────────────────────────────── */
    main {
      position: relative;
      z-index: 10;
      max-width: 800px;
      margin: 0 auto;
      padding: 1rem;
      min-height: calc(100vh - 120px);
      display: flex;
      flex-direction: column;
    }

    .section {
      display: none;
      width: 100%;
      flex: 1;
      padding: 1rem 0;
    }

    .section.active {
      display: flex;
      flex-direction: column;
    }

    .container-center {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    .text-center { text-align: center; }
    .w-full { width: 100%; }
    .mb-1 { margin-bottom: 1rem; }
    .mb-2 { margin-bottom: 2rem; }

    /* ── Section Headers ──────────────────────────── */
    .section-header {
      text-align: center;
      margin-bottom: 2rem;
    }

    .section-header h2 {
      color: var(--gold);
      font-size: clamp(1.5rem, 5vw, 2.2rem);
      margin-bottom: 0.5rem;
    }

    .section-header p {
      color: var(--rose);
      font-size: 0.95rem;
      opacity: 0.8;
    }

    /* ── Hero Section ─────────────────────────────── */
    .hero {
      text-align: center;
      padding: 2rem 1rem;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .hero-crown {
      font-size: 4rem;
      margin-bottom: 1rem;
    }

    .hero h1 {
      font-size: clamp(2rem, 6vw, 3.5rem);
      color: var(--gold);
      text-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
      margin-bottom: 0.5rem;
    }

    .hero .subtitle {
      font-family: 'Playfair Display', serif;
      font-style: italic;
      font-size: clamp(1rem, 3vw, 1.4rem);
      color: var(--rose);
      margin-bottom: 1.5rem;
    }

    .hero .tagline {
      font-size: 0.9rem;
      color: var(--cream);
      opacity: 0.7;
      max-width: 500px;
      margin: 0 auto 2rem;
    }

    .countdown {
      display: flex;
      justify-content: center;
      gap: 1.5rem;
      flex-wrap: wrap;
      margin: 2rem 0;
    }

    .countdown-item {
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 12px;
      padding: 1rem 1.5rem;
      min-width: 80px;
      text-align: center;
    }

    .countdown-number {
      font-family: 'Cinzel', serif;
      font-size: 2rem;
      font-weight: 900;
      color: var(--gold);
      display: block;
    }

    .countdown-label {
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      color: var(--rose);
    }

    /* ── Cards ─────────────────────────────────────── */
    .card {
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 16px;
      padding: 1.5rem;
      margin-bottom: 1rem;
      transition: transform 0.2s, box-shadow 0.2s;
    }

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

    .card .emoji {
      font-size: 1.5rem;
      margin-right: 0.5rem;
    }

    .card .name {
      color: var(--gold);
      font-weight: 700;
    }

    .card .message {
      margin-top: 0.5rem;
    }

    .card .date {
      font-size: 0.75rem;
      color: var(--rose);
      opacity: 0.6;
      margin-top: 0.5rem;
    }

    /* ── Forms ─────────────────────────────────────── */
    .form-group {
      margin-bottom: 1rem;
    }

    .form-group label {
      display: block;
      font-family: 'Cinzel', serif;
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--gold);
      margin-bottom: 0.3rem;
    }

    input,
    textarea,
    select {
      width: 100%;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--glass-border);
      border-radius: 8px;
      padding: 0.75rem 1rem;
      color: var(--cream);
      font-family: 'Playfair Display', serif;
      font-size: 1rem;
      min-height: 44px;
      transition: border-color 0.3s;
    }

    input:focus,
    textarea:focus,
    select:focus {
      outline: none;
      border-color: var(--gold);
      box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    }

    textarea {
      min-height: 100px;
      resize: vertical;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-family: 'Cinzel', serif;
      font-size: 0.85rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      background: linear-gradient(135deg, var(--crimson), #a00020);
      color: var(--cream);
      border: 1px solid var(--gold);
      padding: 0.75rem 2rem;
      border-radius: 999px;
      cursor: pointer;
      transition: all 0.3s;
      min-height: 44px;
    }

    .btn:hover {
      background: linear-gradient(135deg, #a00020, var(--crimson));
      box-shadow: 0 4px 20px rgba(139, 0, 0, 0.4);
      transform: translateY(-1px);
    }

    .btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
    }

    .btn-gold {
      background: linear-gradient(135deg, var(--gold), #b8962e);
      color: var(--bg);
    }

    /* ── Emoji Picker ─────────────────────────────── */
    .emoji-picker {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
      margin-top: 0.5rem;
    }

    .emoji-picker button {
      font-size: 1.5rem;
      background: var(--glass);
      border: 2px solid transparent;
      border-radius: 8px;
      padding: 0.4rem 0.6rem;
      cursor: pointer;
      min-width: 44px;
      min-height: 44px;
      transition: all 0.2s;
    }

    .emoji-picker button.selected {
      border-color: var(--gold);
      background: rgba(212, 175, 55, 0.1);
    }

    /* ── Toast ─────────────────────────────────────── */
    .toast {
      position: fixed;
      bottom: 2rem;
      left: 50%;
      transform: translateX(-50%) translateY(100px);
      background: var(--crimson);
      color: var(--cream);
      padding: 0.75rem 1.5rem;
      border-radius: 999px;
      border: 1px solid var(--gold);
      font-family: 'Cinzel', serif;
      font-size: 0.85rem;
      z-index: 1000;
      opacity: 0;
      transition: transform 0.4s, opacity 0.4s;
    }

    .toast.show {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
    }

    /* ── Photo Grid ───────────────────────────────── */
    .photo-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 0.75rem;
    }

    .photo-card img {
      width: 100%;
      aspect-ratio: 1;
      object-fit: cover;
      border-radius: 12px;
      border: 1px solid var(--glass-border);
      transition: transform 0.3s;
    }

    .photo-card img:hover {
      transform: scale(1.05);
    }

    .photo-caption {
      margin-top: 0.35rem;
      color: var(--rose);
      font-size: 0.75rem;
      line-height: 1.25;
      text-align: center;
      min-height: 1.25rem;
    }

    /* ── Pinned Wish ──────────────────────────────── */
    .card.pinned {
      border-color: var(--gold);
      background: rgba(212, 175, 55, 0.05);
    }

    .card.pinned::before {
      content: '📌 ';
    }

    /* ── Footer ───────────────────────────────────── */
    footer {
      text-align: center;
      padding: 3rem 1rem;
      color: var(--rose);
      opacity: 0.5;
      font-size: 0.8rem;
      position: relative;
      z-index: 10;
    }

    footer a {
      color: var(--gold);
    }

    /* ── Quiz ─────────────────────────────────────── */
    .quiz-option {
      display: block;
      width: 100%;
      text-align: left;
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 12px;
      padding: 0.75rem 1rem;
      color: var(--cream);
      font-family: 'Playfair Display', serif;
      font-size: 0.95rem;
      cursor: pointer;
      margin-bottom: 0.5rem;
      transition: all 0.3s;
      min-height: 44px;
    }

    .quiz-option:hover {
      border-color: var(--gold);
      background: rgba(212, 175, 55, 0.08);
    }

    .quiz-option.correct {
      border-color: #2ecc71;
      background: rgba(46, 204, 113, 0.15);
      color: #2ecc71;
    }

    .quiz-option.wrong {
      border-color: var(--crimson);
      background: rgba(139, 0, 0, 0.15);
      color: #ff6b6b;
    }

    .quiz-option.reveal {
      border-color: #2ecc71;
      opacity: 0.5;
    }

    .quiz-score {
      display: flex;
      justify-content: center;
      gap: 2rem;
      margin: 1rem 0;
    }

    .quiz-score-item {
      text-align: center;
    }

    .quiz-score-item .value {
      font-family: 'Cinzel', serif;
      font-size: 1.5rem;
      font-weight: 900;
      color: var(--gold);
      display: block;
    }

    .quiz-score-item .label {
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--rose);
    }

    .streak-badge {
      display: inline-block;
      background: linear-gradient(135deg, var(--gold), #b8962e);
      color: var(--bg);
      font-family: 'Cinzel', serif;
      font-size: 0.75rem;
      padding: 0.3rem 0.8rem;
      border-radius: 999px;
      margin-top: 0.5rem;
    }

    .leaderboard-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.5rem 0;
      border-bottom: 1px solid var(--glass-border);
    }

    .leaderboard-row:last-child {
      border-bottom: none;
    }

    .leaderboard-rank {
      font-family: 'Cinzel', serif;
      color: var(--gold);
      width: 2rem;
    }

    .leaderboard-name {
      flex: 1;
    }

    .leaderboard-points {
      color: var(--gold);
      font-weight: 700;
    }

    /* ── Stories ──────────────────────────────────── */
    .story-card {
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 16px;
      padding: 1.5rem;
      margin-bottom: 1rem;
    }

    .story-card .story-author {
      color: var(--gold);
      font-weight: 700;
      font-size: 0.9rem;
    }

    .story-card .story-relationship {
      color: var(--rose);
      font-size: 0.8rem;
      font-style: italic;
    }

    .story-card .story-content {
      margin-top: 0.75rem;
      white-space: pre-wrap;
    }

    /* ── Karaoke ─────────────────────────────────── */
    .song-card {
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 16px;
      padding: 1.25rem;
      margin-bottom: 0.75rem;
      cursor: pointer;
      transition: all 0.3s;
    }

    /* ── Dashboard & Live Feed ───────────────────── */
    .live-item {
      animation: slideIn 0.3s ease-out;
    }
    @keyframes slideIn {
      from { opacity: 0; transform: translateX(-10px); }
      to { opacity: 1; transform: translateX(0); }
    }
    #section-dashboard .host-stat {
      background: rgba(212, 175, 55, 0.1);
      border: 1px solid rgba(212, 175, 55, 0.3);
    }

    /* ── AI Hype Orb ────────────────────────────────── */
    #ai-hype-container {
      position: fixed;
      bottom: 90px;
      right: 15px;
      z-index: 1000;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
      transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    #ai-hype-container:hover {
      transform: scale(1.1);
    }
    #ai-hype-container.active {
      transform: scale(1.08);
    }
    .hype-float {
      animation: hype-float 3s ease-in-out infinite;
    }
    @keyframes hype-float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-12px); }
    }
    .hype-smoke-anim {
      animation: smoke-pulse 2s ease-in-out infinite;
      transform-origin: bottom center;
    }
    @keyframes smoke-pulse {
      0%, 100% { transform: scale(1) skewX(0deg); opacity: 0.8; }
      50% { transform: scale(1.05) skewX(2deg); opacity: 1; }
    }
    #ai-hype-bubble {
      background: rgba(10, 11, 16, 0.82);
      color: var(--cream);
      padding: 0.85rem 0.95rem;
      border-radius: 0.9rem;
      width: 240px;
      font-size: 0.86rem;
      font-weight: 500;
      margin-bottom: 12px;
      box-shadow: 0 12px 30px rgba(0,0,0,0.45);
      border: 1px solid rgba(212, 175, 55, 0.55);
      position: relative;
      display: none;
      line-height: 1.4;
      letter-spacing: 0.01em;
      backdrop-filter: blur(8px);
      animation: bubblePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    @keyframes bubblePop {
      from { transform: scale(0) translateY(20px); opacity: 0; }
      to { transform: scale(1) translateY(0); opacity: 1; }
    }
    #ai-hype-bubble::after {
      content: '';
      position: absolute;
      bottom: -8px;
      right: 20px;
      width: 14px;
      height: 14px;
      background: rgba(10, 11, 16, 0.82);
      border-right: 1px solid rgba(212, 175, 55, 0.55);
      border-bottom: 1px solid rgba(212, 175, 55, 0.55);
      transform: rotate(45deg);
    }

    /* ── Toggles ─────────────────────────────────── */
    .toggle-switch {
      appearance: none;
      width: 40px;
      height: 20px;
      background: rgba(255,255,255,0.1);
      border-radius: 20px;
      position: relative;
      cursor: pointer;
      transition: all 0.3s;
      border: 1px solid var(--glass-border);
    }
    .toggle-switch::before {
      content: '';
      position: absolute;
      width: 16px;
      height: 16px;
      background: #fff;
      border-radius: 50%;
      top: 1px;
      left: 1px;
      transition: all 0.3s;
    }
    .toggle-switch:checked {
      background: var(--gold);
    }
    .toggle-switch:checked::before {
      left: 21px;
    }

    .song-card:hover {
      border-color: var(--gold);
      transform: translateY(-2px);
    }

    .song-title {
      color: var(--gold);
      font-weight: 700;
      font-size: 1.1rem;
    }

    .song-artist {
      color: var(--rose);
      font-size: 0.85rem;
    }

    .lyrics-display {
      background: rgba(0, 0, 0, 0.3);
      border: 1px solid var(--glass-border);
      border-radius: 12px;
      padding: 1.5rem;
      margin-top: 1rem;
      text-align: center;
      font-size: 1.1rem;
      line-height: 2;
      min-height: 200px;
      max-height: 60vh;
      overflow-y: auto;
      scroll-behavior: smooth;
      white-space: pre-wrap;
    }
    .lyrics-display span {
      display: inline;
    }

    /* ── Potion & Shop & Profile ──────────────────── */
    .cauldron-container {
      width: 200px;
      height: 200px;
      margin: 2rem auto;
      border-radius: 50%;
      background: radial-gradient(circle at center, var(--pink-mist) 0%, #111 70%);
      box-shadow: 0 0 40px var(--purple), inset 0 0 20px var(--gold);
      display: flex;
      align-items: center;
      justify-content: center;
      animation: bubble 3s infinite alternate;
      border: 4px solid var(--gold);
    }

    .cauldron {
      font-size: 5rem;
      text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    }

    @keyframes bubble {
      0% {
        box-shadow: 0 0 30px var(--purple), inset 0 0 10px var(--gold);
        transform: scale(0.98);
      }

      100% {
        box-shadow: 0 0 60px var(--pink-mist), inset 0 0 30px var(--gold);
        transform: scale(1.02);
      }
    }

    .ingredient-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
      margin-top: 2rem;
    }

    .ingredient-btn {
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 50%;
      width: 80px;
      height: 80px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
      cursor: pointer;
      transition: 0.3s;
    }

    .ingredient-btn:hover,
    .ingredient-btn.active {
      transform: scale(1.1);
      box-shadow: 0 0 20px var(--gold);
      border-color: var(--gold);
    }

    .artifact-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
      gap: 1rem;
    }

    .artifact-card {
      background: var(--glass);
      border: 1px solid var(--glass-border);
      text-align: center;
      padding: 1rem;
      border-radius: 12px;
      transition: 0.3s;
    }

    .artifact-card:hover {
      transform: translateY(-5px);
      border-color: var(--gold);
      box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
    }

    .artifact-icon {
      font-size: 3rem;
      margin-bottom: 0.5rem;
      text-shadow: 0 0 15px var(--gold);
    }

    .artifact-price {
      color: var(--gold);
      font-family: 'Cinzel';
      margin: 0.5rem 0;
    }

    .profile-header {
      text-align: center;
      margin-bottom: 2rem;
    }

    .profile-avatar {
      font-size: 4rem;
      width: 100px;
      height: 100px;
      line-height: 100px;
      border-radius: 50%;
      border: 3px solid var(--gold);
      box-shadow: 0 0 20px var(--gold);
      margin: 0 auto 1rem;
      background: var(--glass);
    }

    /* ── Responsive ───────────────────────────────── */
    @media (max-width: 480px) {
      .countdown {
        gap: 0.75rem;
      }

      .countdown-item {
        min-width: 65px;
        padding: 0.75rem 1rem;
      }

      .countdown-number {
        font-size: 1.5rem;
      }
    }

    /* ══════════════════════════════════════════════
       PARTY MODE — Screen, Game, Host
       ══════════════════════════════════════════════ */

    /* ── Screen Mode (fullscreen TV) ────────────── */
    body.screen-mode {
      overflow: hidden;
    }

    body.screen-mode header,
    body.screen-mode nav,
    body.screen-mode footer,
    body.screen-mode .petal,
    body.screen-mode #glitter-canvas,
    body.screen-mode #ai-hype-container {
      display: none !important;
    }

    body.screen-mode main {
      padding: 0;
      max-width: 100vw;
      width: 100vw;
      min-height: 100vh;
      margin: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--bg);
    }

    body.screen-mode .section {
      display: none !important;
    }

    body.screen-mode #section-screen {
      display: flex !important;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100vh;
    }

    #section-screen {
      min-height: 100vh;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }

    /* Karaoke on /screen should use full centered stage layout */
    body.screen-mode.screen-mode-karaoke main {
      display: flex;
      padding: 0;
      justify-content: center;
      align-items: center;
    }

    body.screen-mode.screen-mode-karaoke #section-screen {
      display: none !important;
    }

    body.screen-mode.screen-mode-karaoke #section-karaoke {
      display: flex !important;
      flex-direction: column;
      width: 100%;
      max-width: 1200px;
      min-height: 100vh;
      margin: 0 auto;
      padding: 4rem 2rem;
      justify-content: center;
    }

    body.screen-mode.screen-mode-karaoke #section-karaoke h2,
    body.screen-mode.screen-mode-karaoke #section-karaoke>p {
      text-align: center;
    }

    body.screen-mode.screen-mode-karaoke #karaoke-player {
      display: block !important;
    }

    body.screen-mode.screen-mode-karaoke #karaoke-back-btn,
    body.screen-mode.screen-mode-karaoke #karaoke-list,
    body.screen-mode.screen-mode-karaoke #no-songs,
    body.screen-mode.screen-mode-karaoke #karaoke-crowd-controls {
      display: none !important;
    }

    .screen-welcome {
      text-align: center;
      animation: fadeIn 2s ease;
    }

    .screen-welcome h1 {
      font-size: 4rem;
      color: var(--gold);
      margin-bottom: 0.5rem;
    }

    .screen-welcome .subtitle {
      font-size: 2rem;
      color: var(--rose);
    }

    .screen-welcome .age {
      font-size: 8rem;
      color: var(--crimson);
      font-family: 'Cinzel', serif;
    }

    /* Ken Burns photo rotation */
    .screen-photo-bg {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      animation: kenBurns 12s ease-in-out infinite alternate;
      opacity: 0;
      transition: opacity 2s ease;
    }

    .screen-photo-bg.active {
      opacity: 1;
    }

    .screen-photo-caption-bubble {
      position: absolute;
      top: 1.2rem;
      left: 50%;
      transform: translateX(-50%);
      max-width: min(78vw, 920px);
      padding: 0.65rem 1rem;
      border-radius: 999px;
      border: 1px solid rgba(212, 175, 55, 0.55);
      background: rgba(10, 11, 16, 0.7);
      color: var(--cream);
      font-size: 0.95rem;
      text-align: center;
      backdrop-filter: blur(6px);
      box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
      opacity: 0;
      transition: opacity 300ms ease;
      pointer-events: none;
      z-index: 3;
    }

    .screen-photo-caption-bubble.show {
      opacity: 1;
    }

    @keyframes kenBurns {
      0% {
        transform: scale(1) translate(0, 0);
      }

      100% {
        transform: scale(1.15) translate(-2%, -1%);
      }
    }

    .screen-ticker {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(transparent, rgba(10, 11, 16, 0.95));
      padding: 2rem 3rem;
    }

    .screen-ticker .wish-text {
      font-size: 1.8rem;
      color: var(--cream);
      text-align: center;
      animation: fadeIn 1s ease;
    }

    .screen-ticker .wish-from {
      font-size: 1.2rem;
      color: var(--gold);
      text-align: center;
      margin-top: 0.5rem;
    }

    /* Screen quiz display */
    .screen-quiz, .screen-leaderboard, .screen-welcome {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      width: 90vw;
      max-width: 1200px;
      flex: 1;
    }

    .screen-quiz .question {
      font-size: clamp(1.5rem, 4vw, 3rem);
      color: var(--cream);
      margin-bottom: 2rem;
    }

    .screen-quiz .options-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
      margin-bottom: 2rem;
      width: 100%;
    }

    .screen-quiz .option-box {
      padding: 2rem;
      font-size: clamp(1rem, 2vw, 1.8rem);
      border-radius: 1rem;
      font-family: 'Playfair Display', serif;
      font-weight: 700;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .screen-quiz .option-box:nth-child(1) {
      background: #c0392b;
      color: white;
    }

    .screen-quiz .option-box:nth-child(2) {
      background: #2980b9;
      color: white;
    }

    .screen-quiz .option-box:nth-child(3) {
      background: #f39c12;
      color: white;
    }

    .screen-quiz .option-box:nth-child(4) {
      background: #27ae60;
      color: white;
    }

    .screen-quiz .option-box.correct {
      outline: 6px solid var(--gold);
      transform: scale(1.05);
    }

    .screen-quiz .countdown-big {
      font-size: 5rem;
      color: var(--gold);
      font-family: 'Cinzel', serif;
    }

    .screen-quiz .player-count {
      font-size: 1.2rem;
      color: var(--rose);
      margin-top: 1rem;
    }

    /* Screen leaderboard */
    .screen-leaderboard h2 {
      font-size: 3rem;
      color: var(--gold);
      margin-bottom: 2rem;
    }

    #screen-lb-list {
      width: 100%;
      max-width: 900px;
      margin: 0 auto;
    }

    .screen-lb-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 2rem;
      margin-bottom: 0.75rem;
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 1rem;
      font-size: 1.5rem;
    }

    .screen-lb-row .rank {
      font-size: 2rem;
      width: 60px;
    }

    .screen-lb-row .name {
      flex: 1;
      text-align: left;
      margin-left: 1rem;
    }

    .screen-lb-row .points {
      color: var(--gold);
      font-weight: 700;
    }

    /* ── Game (player phone view) ───────────────── */
    #section-game .game-lobby {
      text-align: center;
    }

    #section-game .game-lobby h3 {
      color: var(--gold);
      font-size: 1.5rem;
      margin-bottom: 1rem;
    }

    #section-game .waiting-msg {
      color: var(--rose);
      animation: pulse 2s ease infinite;
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 0.6;
      }

      50% {
        opacity: 1;
      }
    }

    .game-answer-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.75rem;
      margin: 1rem 0;
    }

    .game-answer-btn {
      padding: 1.5rem 1rem;
      font-size: 1.1rem;
      border: none;
      border-radius: 1rem;
      font-family: 'Playfair Display', serif;
      font-weight: 700;
      cursor: pointer;
      min-height: 80px;
      transition: transform 0.15s, opacity 0.3s;
    }

    .game-answer-btn:active {
      transform: scale(0.95);
    }

    .game-answer-btn:nth-child(1) {
      background: #c0392b;
      color: white;
    }

    .game-answer-btn:nth-child(2) {
      background: #2980b9;
      color: white;
    }

    .game-answer-btn:nth-child(3) {
      background: #f39c12;
      color: white;
    }

    .game-answer-btn:nth-child(4) {
      background: #27ae60;
      color: white;
    }

    .game-answer-btn.selected {
      outline: 4px solid var(--gold);
      transform: scale(1.03);
    }

    .game-answer-btn.disabled {
      opacity: 0.5;
      pointer-events: none;
    }

    .game-timer {
      font-size: 3rem;
      text-align: center;
      color: var(--gold);
      font-family: 'Cinzel';
    }

    .game-result {
      text-align: center;
      padding: 2rem 0;
    }

    .game-result .points-earned {
      font-size: 2rem;
      color: var(--gold);
    }

    /* ── Host Dashboard ─────────────────────────── */
    body.host-mode header,
    body.host-mode .petal,
    body.host-mode #glitter-canvas {
      display: none !important;
    }

    body.host-mode nav {
      display: none !important;
    }

    body.host-mode main {
      padding-top: 1rem;
    }

    body.host-mode .section {
      display: none !important;
    }

    body.host-mode #section-host {
      display: block !important;
    }

    .host-header {
      text-align: center;
      padding: 1rem;
      border-bottom: 1px solid var(--glass-border);
      margin-bottom: 1rem;
    }

    .host-header h2 {
      color: var(--gold);
      font-size: 1.3rem;
    }

    .host-stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: 0.75rem;
      margin-bottom: 1.5rem;
    }

    .host-stat {
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 1rem;
      padding: 1rem;
      text-align: center;
    }

    .host-stat .number {
      font-size: 2rem;
      color: var(--gold);
      font-family: 'Cinzel';
    }

    .host-stat .label {
      font-size: 0.75rem;
      color: var(--rose);
    }

    .host-controls {
      margin-bottom: 1.5rem;
    }

    .host-controls h3 {
      color: var(--gold);
      font-size: 1rem;
      margin-bottom: 0.75rem;
    }

    .host-btn-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 0.75rem;
    }

    .host-btn {
      padding: 0.75rem 1.25rem;
      border: 1px solid var(--gold);
      background: transparent;
      color: var(--gold);
      border-radius: 0.75rem;
      font-family: 'Playfair Display', serif;
      cursor: pointer;
      font-size: 0.9rem;
      min-height: 44px;
      transition: all 0.2s;
    }

    .host-btn:hover {
      background: var(--gold);
      color: var(--bg);
    }

    .host-btn.active {
      background: var(--gold);
      color: var(--bg);
    }

    .host-btn.danger {
      border-color: var(--crimson);
      color: var(--crimson);
    }

    .host-btn.danger:hover {
      background: var(--crimson);
      color: white;
    }

    .host-login {
      text-align: center;
      padding: 3rem 1rem;
    }

    .host-login input {
      background: var(--glass);
      border: 1px solid var(--glass-border);
      color: var(--cream);
      padding: 0.75rem 1rem;
      border-radius: 0.75rem;
      font-size: 1rem;
      width: 100%;
      max-width: 300px;
      text-align: center;
      min-height: 44px;
    }

    /* ── Directions ──────────────────────────────── */
    .directions-card {
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 1rem;
      padding: 1.5rem;
      margin-bottom: 1rem;
    }

    .directions-card h3 {
      color: var(--gold);
      margin-bottom: 0.75rem;
      font-size: 1.1rem;
    }

    .directions-card .step {
      display: flex;
      gap: 0.75rem;
      margin-bottom: 0.75rem;
    }

    .directions-card .step-num {
      flex-shrink: 0;
      width: 32px;
      height: 32px;
      background: var(--crimson);
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-family: 'Cinzel';
    }

    .directions-warning {
      background: rgba(139, 0, 0, 0.2);
      border: 2px solid var(--crimson);
      border-radius: 1rem;
      padding: 1.25rem;
      text-align: center;
      margin-bottom: 1rem;
    }

    .directions-warning .icon {
      font-size: 2rem;
      margin-bottom: 0.5rem;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    nav button {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.3rem;
    }

    @media (max-width: 768px) {
      nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0px;
        white-space: nowrap;
        flex-wrap: nowrap !important;
      }

      nav button .text {
        display: none;
      }

      nav button.active .text {
        display: inline;
      }

      nav button {
        padding: 0.5rem 0.8rem;
        font-size: 1.2rem;
        min-height: 48px;
      }

      nav button.active {
        font-size: 0.85rem;
      }
    }
