/* Merged CSS from app-style.txt and app.css */
/* ── 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: 1;
  }

  100% {
    transform: translateY(110vh) scale(1.15) translate(-2%, -1%) rotate(180deg);
    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 {
  padding: 0.5rem 0.8rem;
        font-size: 1.2rem;
        min-height: 48px;
}

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;
      padding-bottom: 5rem; /* Rúm fyrir bottom nav á mobile */
      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-shell {
  position: relative;
      width: 100%;
      padding: 2.25rem 1.4rem 1.6rem;
      border: 1px solid rgba(212, 175, 55, 0.25);
      border-radius: 28px;
      background:
        radial-gradient(circle at top, rgba(212, 175, 55, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(34, 18, 30, 0.92), rgba(10, 11, 16, 0.94));
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
      overflow: hidden;
      isolation: isolate;
}

.hero-shell::before {
  content: '';
      position: absolute;
      inset: auto auto -80px -60px;
      width: 220px;
      height: 220px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(139, 0, 0, 0.22), transparent 70%);
      z-index: -1;
}

.hero-shell::after {
  content: '';
      position: absolute;
      inset: 18px 18px auto auto;
      width: 140px;
      height: 140px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent 72%);
      z-index: -1;
}

.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;
}

.hero-facts {
  display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.55rem;
      margin: 0 0 1.5rem;
}

.hero-fact {
  display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.38rem 0.75rem;
      border-radius: 999px;
      border: 1px solid rgba(212, 175, 55, 0.2);
      background: rgba(255, 255, 255, 0.04);
      color: var(--rose);
      font-size: 0.82rem;
}

.hero-fact strong {
  color: var(--cream);
      font-weight: 700;
}

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

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

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

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

.hero-actions {
  display: flex;
      justify-content: center;
      gap: 0.75rem;
      flex-wrap: wrap;
      margin-top: 1.5rem;
}

/* ── 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;
}

.birthday-announcement-card h3 {
  color: var(--gold);
      font-size: 1.1rem;
      margin-bottom: 0.6rem;
}

.birthday-announcement-card p {
  color: var(--cream);
      font-size: 0.93rem;
      line-height: 1.55;
      margin-bottom: 0.75rem;
}

.birthday-theme-refs {
  display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.6rem;
}

.birthday-theme-refs .ref-item {
  border: 1px solid var(--glass-border);
      border-radius: 0.7rem;
      overflow: hidden;
      background: rgba(0,0,0,0.25);
      min-height: 110px;
      display: flex;
      align-items: center;
      justify-content: center;
}

.birthday-theme-refs .ref-item img {
  width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center top;
      display: block;
}

/* ── 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;
}

to {
  opacity: 1;
}


    #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: 50;
      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;
}


    .hype-smoke-anim {
  animation: smoke-pulse 2s ease-in-out infinite;
      transform-origin: bottom center;
}


    #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);
}


    #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);
}



    .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;
}

.hero-actions .btn {
  width: 100%;
}

}

    /* ══════════════════════════════════════════════
       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 {
  display: none !important;
}

body.screen-mode #ai-hype-container {
  bottom: 24px;
      right: 24px;
      z-index: 50;
}

body.screen-mode #ai-hype-bubble {
  width: 320px;
      font-size: 1rem;
}

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.has-poster {
  position: relative;
      width: 100%;
      max-width: none;
      min-height: calc(100vh - 90px);
      justify-content: flex-end;
      padding: 4rem 2rem 3rem;
      background-position: center 20%;
      background-repeat: no-repeat;
      background-size: cover;
      overflow: hidden;
}

#screen-welcome.has-poster::before {
  content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(8, 9, 14, 0.25) 0%, rgba(8, 9, 14, 0.82) 72%, rgba(8, 9, 14, 0.94) 100%);
      z-index: 0;
}

#screen-welcome.has-poster > * {
  position: relative;
      z-index: 1;
      text-shadow: 0 2px 16px rgba(0,0,0,0.75);
}

.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;
}

/* Screensaver photo layout: center + faded old/new side echoes */
    #screen-screensaver {
  position: relative;
      overflow: hidden;
      isolation: isolate;
      background: #0a0b10;
}

.screen-photo-bg {
  position: absolute;
      inset: 0;
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center 8%;
      animation: kenBurns 12s ease-in-out infinite alternate;
      opacity: 0;
      transition: opacity 2s ease;
      z-index: 1;
}

.screen-photo-bg::before,
    .screen-photo-bg::after {
  content: '';
      position: absolute;
      top: 7%;
      width: 40%;
      height: 86%;
      background-image: inherit;
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center 8%;
      opacity: 0;
      transition: opacity 1.6s ease;
      filter: grayscale(0.35) saturate(0.75) blur(0.8px);
      pointer-events: none;
}

.screen-photo-bg::before {
  left: 0;
      transform: translateX(-42%) scale(0.95);
}

.screen-photo-bg::after {
  right: 0;
      transform: translateX(42%) scale(0.95);
}

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

.screen-photo-bg.active::before,
    .screen-photo-bg.active::after {
  opacity: 0.28;
}

.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;
}



    .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-layout {
  display: grid;
      grid-template-columns: minmax(0, 1fr) 320px;
      gap: 1.5rem;
      width: 100%;
      align-items: stretch;
}

.screen-quiz-main {
  min-width: 0;
}

.screen-live-sidebar {
  order: -1;
}

.screen-live-sidebar-card {
  height: 100%;
      background: rgba(10, 11, 16, 0.78);
      border: 1px solid var(--glass-border);
      border-radius: 1.2rem;
      padding: 1rem;
      box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.screen-live-sidebar-card h3 {
  color: var(--gold);
      font-size: 1.2rem;
      margin-bottom: 0.9rem;
      text-align: left;
}

#screen-live-board {
  display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
}

.screen-live-board-row {
  display: grid;
      grid-template-columns: 34px 44px minmax(0, 1fr) auto;
      gap: 0.55rem;
      align-items: center;
      padding: 0.45rem 0.55rem;
      border-radius: 0.9rem;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(212, 175, 55, 0.12);
      text-align: left;
}

.screen-live-board-rank {
  color: var(--gold);
      font-family: 'Cinzel', serif;
      font-size: 0.95rem;
      text-align: center;
}

.screen-live-board-avatar,
    .screen-lb-avatar {
  width: 44px;
      height: 44px;
      border-radius: 0.9rem;
      background: rgba(255,255,255,0.07);
      background-size: cover;
      background-position: center;
      border: 1px solid rgba(212, 175, 55, 0.25);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      overflow: hidden;
      flex-shrink: 0;
}

.screen-live-board-name {
  color: var(--cream);
      font-size: 0.95rem;
      font-weight: 700;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
}

.screen-live-board-points {
  color: var(--gold);
      font-weight: 700;
      font-size: 0.9rem;
}

.screen-result-winner {
  margin-top: 1.2rem;
      padding: 0.9rem 1rem;
      border-radius: 1rem;
      border: 1px solid rgba(212, 175, 55, 0.4);
      background: rgba(212, 175, 55, 0.12);
      color: var(--cream);
      font-size: 1.05rem;
}

.screen-submissions-list {
  display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.75rem;
      margin-top: 1.15rem;
}

.screen-submission-card {
  text-align: left;
      padding: 0.85rem;
      border-radius: 1rem;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.08);
}

.screen-submission-card.correct {
  border-color: rgba(212, 175, 55, 0.45);
      box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.16);
}

.screen-submission-head {
  display: flex;
      align-items: center;
      gap: 0.65rem;
      margin-bottom: 0.55rem;
}

.screen-submission-meta {
  min-width: 0;
}

.screen-submission-name {
  color: var(--cream);
      font-weight: 700;
      font-size: 0.92rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
}

.screen-submission-time {
  color: var(--rose);
      font-size: 0.76rem;
}

.screen-submission-answer {
  color: var(--cream);
      font-size: 0.95rem;
      line-height: 1.35;
}

.screen-submission-points {
  color: var(--gold);
      font-size: 0.82rem;
      margin-top: 0.45rem;
      font-weight: 700;
}

.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 .screen-lb-avatar {
  margin-right: 1rem;
}

.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;
}

.game-selfie-modal {
  position: fixed;
      inset: 0;
      z-index: 600;
      background: rgba(0, 0, 0, 0.82);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      backdrop-filter: blur(12px);
}

.game-selfie-card {
  position: relative;
      width: min(100%, 420px);
      background: rgba(10, 11, 16, 0.96);
      border: 1px solid var(--glass-border);
      border-radius: 1.4rem;
      padding: 1.1rem;
      text-align: center;
      box-shadow: 0 26px 60px rgba(0, 0, 0, 0.35);
}

.game-selfie-card h3 {
  color: var(--gold); margin-bottom: 0.45rem;
}

.game-selfie-preview {
  position: relative;
      margin-top: 1rem;
      border-radius: 1.2rem;
      overflow: hidden;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(212, 175, 55, 0.16);
      aspect-ratio: 1 / 1;
}

.game-selfie-preview video {
  width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1);
}

.game-selfie-countdown {
  position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 5rem;
      font-family: 'Cinzel', serif;
      text-shadow: 0 0 24px rgba(0,0,0,0.55);
      background: linear-gradient(to bottom, rgba(0,0,0,0.12), rgba(0,0,0,0.3));
}

.game-selfie-strip {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.9rem; min-height: 92px;
}

.game-selfie-strip img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 0.9rem; border: 1px solid rgba(212,175,55,0.22); transform: scaleX(-1);
}

.game-selfie-actions {
  display: flex; gap: 0.65rem; margin-top: 1rem;
}

.game-selfie-actions .btn {
  flex: 1;
}

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



    @media (max-width: 980px) {
  .screen-quiz-layout {
        grid-template-columns: 1fr;
}

}

    .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:hover,
    .host-tab .card.host-panel:hover {
  transform: translateY(-2px);
      border-color: rgba(212, 175, 55, 0.42);
      box-shadow: 0 18px 34px rgba(0,0,0,0.22);
}

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

.host-panel-heading {
  display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.8rem;
      margin-bottom: 0.8rem;
}

.host-panel-tools {
  display: flex;
      align-items: center;
      gap: 0.45rem;
      flex-shrink: 0;
}

.host-collapse-btn,
    .host-guide-dot {
  width: 32px;
      height: 32px;
      border-radius: 999px;
      border: 1px solid rgba(212, 175, 55, 0.35);
      background: rgba(212, 175, 55, 0.08);
      color: var(--gold);
      cursor: pointer;
      position: relative;
      transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
      font-weight: 700;
      font-family: 'Cinzel', serif;
}

.host-collapse-btn:hover,
    .host-guide-dot:hover {
  transform: translateY(-1px) scale(1.04);
      background: rgba(212, 175, 55, 0.18);
      border-color: rgba(212, 175, 55, 0.6);
}

.host-guide-tooltip {
  position: absolute;
      top: calc(100% + 10px);
      right: 0;
      width: 260px;
      padding: 0.7rem 0.8rem;
      border-radius: 0.9rem;
      background: rgba(10, 11, 16, 0.94);
      border: 1px solid rgba(212, 175, 55, 0.38);
      color: var(--cream);
      font-family: 'Playfair Display', serif;
      font-size: 0.8rem;
      line-height: 1.4;
      text-align: left;
      box-shadow: 0 18px 40px rgba(0,0,0,0.35);
      opacity: 0;
      pointer-events: none;
      transform: translateY(-8px) scale(0.96);
      transition: opacity 0.18s ease, transform 0.18s ease;
      z-index: 30;
}

.host-guide-dot:hover .host-guide-tooltip {
  opacity: 1;
      transform: translateY(0) scale(1);
}

.host-panel-body {
  display: block;
}

.host-panel.collapsed .host-panel-body {
  display: none;
}

.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;
}



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



/* ═══════════════════════════════════════════
   Bottom Nav Bar — subtle tab bar
   ═══════════════════════════════════════════ */
body {
  padding-bottom: 5rem;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-evenly;
  gap: 0;
  padding: 0.5rem 0.5rem 0.8rem;
  background: rgba(11, 18, 32, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.bottom-nav-item {
  display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.15rem;
      padding: 0.35rem 0.5rem;
      color: var(--rose);
      opacity: 0.5;
      cursor: pointer;
      transition: opacity 0.2s, color 0.2s;
      min-height: 44px;
      min-width: 44px;
      justify-content: center;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  opacity: 1;
}

.bottom-nav-item.active .bnav-icon {
  color: var(--accent);
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.5));
}

.bottom-nav-item.active .bnav-label {
  color: var(--accent);
}

.bnav-icon {
  width: 22px; height: 22px;
}

.bnav-label {
  font-size: 0.65rem; letter-spacing: 0.03em; text-transform: uppercase; font-family: 'Cinzel', serif;
}



/* Hide navigation bars when karaoke player is active */
body.karaoke-mode-active #main-nav,
body.karaoke-mode-active #bottom-nav {
  display: none !important;
}

/* Accessibility: visually hidden but available to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Accessibility: minimum touch targets on mobile */
@media (max-width: 768px) {
  button,
  a[role="button"],
  [role="button"] {
    min-height: 44px;
    min-width: 44px;
}

body.theme-fancy-imperfect {
  --bg: #1a0b0b;
      --bg-glow: radial-gradient(circle at 20% 10%, rgba(212, 175, 55, 0.15) 0%, rgba(26, 11, 11, 0.96) 52%, #1a0b0b 100%);
      --crimson: #800020; /* Burgundy */
      --gold: #d4af37;    /* Metallic Gold */
      --rose: #c5a059;    /* Muted Gold/Tan */
      --cream: #f5f5dc;   /* Beige/Cream */
      --purple: #4a0404;
      --pink-mist: rgba(212, 175, 55, 0.2);
      --glass: rgba(212, 175, 55, 0.03);
      --glass-border: rgba(212, 175, 55, 0.25);
}

body.theme-midnight-spark {
  /* Uses default root variables */
}

/* ── Bottom Navigation (mobile) ──────────────── */
    .bottom-nav {
  display: none; /* Falið á desktop — sýnist via media query */
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 200;
      background: rgba(10, 11, 16, 0.95);
      backdrop-filter: blur(16px);
      border-top: 1px solid var(--glass-border);
      padding: 0.4rem 0;
      justify-content: space-around;
      padding-bottom: env(safe-area-inset-bottom, 0.4rem);
}

.bottom-nav-item.active {
  opacity: 1;
      color: var(--gold);
}

/* ── Top Navigation (desktop) ────────────────── */
    nav#main-nav, 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;
}

}

    @keyframes lamp-glow {
  from { filter: drop-shadow(0 0 5px var(--gold)); transform: scale(1); }
  to { filter: drop-shadow(0 0 15px var(--gold)); transform: scale(1.05); }
}

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;
}

/* 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;
}



    /* ── Game Selfie Modal ──────────────────────────── */
    .game-selfie-modal {
  position: fixed;
      inset: 0;
      z-index: 600;
      background: rgba(0, 0, 0, 0.82);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      backdrop-filter: blur(12px);
}

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

/* Bottom nav sýnilegt á mobile */
      .bottom-nav {
  display: flex !important;
}

nav button .text {
  display: none;
}

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

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



    /* ── Karaoke Fullscreen ────────────────────────── */
    #karaoke-player:fullscreen,
    #karaoke-player:-webkit-full-screen,
    #karaoke-player:-moz-full-screen {
  background: #050505 !important;
      display: flex !important;
      flex-direction: column;
      padding: 1.5rem;
      overflow-y: auto;
      box-sizing: border-box;
}

#karaoke-player:fullscreen > div:first-child,
    #karaoke-player:-webkit-full-screen > div:first-child,
    #karaoke-player:-moz-full-screen > div:first-child {
  /* controls row stays compact */
      flex-shrink: 0;
}

#karaoke-player:fullscreen .card,
    #karaoke-player:-webkit-full-screen .card,
    #karaoke-player:-moz-full-screen .card {
  flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
}

#karaoke-player:fullscreen #karaoke-lyrics,
    #karaoke-player:-webkit-full-screen #karaoke-lyrics,
    #karaoke-player:-moz-full-screen #karaoke-lyrics {
  font-size: 2.4rem !important;
      line-height: 1.9 !important;
      max-height: none !important;
      flex: 1;
      overflow-y: auto;
}

#karaoke-player:fullscreen #karaoke-visualizer,
    #karaoke-player:-webkit-full-screen #karaoke-visualizer,
    #karaoke-player:-moz-full-screen #karaoke-visualizer {
  height: 70px !important;
}

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

      50% {
        opacity: 0.5;
      }

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

@keyframes slideIn {
      from { opacity: 0; transform: translateX(-10px); }
      to { opacity: 1; transform: translateX(0); }
    }

@keyframes hype-float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-12px); }
    }

@keyframes smoke-pulse {
      0%, 100% { transform: scale(1) skewX(0deg); opacity: 0.8; }
      50% { transform: scale(1.05) skewX(2deg); opacity: 1; }
    }

@keyframes bubblePop {
      from { transform: scale(0) translateY(20px); opacity: 0; }
      to { transform: scale(1) translateY(0); opacity: 1; }
    }

@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);
      }
    }

@media (max-width: 480px) {
      .hero-shell {
        padding: 1.8rem 1rem 1.35rem;
        border-radius: 22px;
      }

      .countdown {
        gap: 0.75rem;
      }

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

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

      .hero-actions .btn {
        width: 100%;
      }
    }

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

      100% {
        transform: scale(1.08) translate(-1.2%, -0.8%);
      }
    }

@keyframes pulse {

      0%,
      100% {
        opacity: 0.6;
      }

      50% {
        opacity: 1;
      }
    }

@media (max-width: 980px) {
      .screen-quiz-layout {
        grid-template-columns: 1fr;
      }

      .screen-live-sidebar {
        order: -1;
      }

      #screen-live-board {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

@keyframes fadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

@media (max-width: 768px) {
      /* Hide top nav on mobile — bottom-nav handles all sections */
      nav#main-nav {
        display: none;
      }
    }

@media (min-width: 769px) {
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
}

@media (max-width: 768px) {
  button,
  a[role="button"],
  [role="button"] {
    min-height: 44px;
    min-width: 44px;
  }
}

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

      50% {
        opacity: 0.5;
      }

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

@keyframes slideIn {
      from { opacity: 0; transform: translateX(-10px); }
      to { opacity: 1; transform: translateX(0); }
    }

@keyframes hype-float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-12px); }
    }

@keyframes smoke-pulse {
      0%, 100% { transform: scale(1) skewX(0deg); opacity: 0.8; }
      50% { transform: scale(1.05) skewX(2deg); opacity: 1; }
    }

@keyframes bubblePop {
      from { transform: scale(0) translateY(20px); opacity: 0; }
      to { transform: scale(1) translateY(0); opacity: 1; }
    }

@keyframes lamp-glow {
      from { filter: drop-shadow(0 0 5px var(--gold)); transform: scale(1); }
      to { filter: drop-shadow(0 0 20px var(--gold)); transform: scale(1.1); }
    }

@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);
      }
    }

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

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

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

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

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

@keyframes pulse {

      0%,
      100% {
        opacity: 0.6;
      }

      50% {
        opacity: 1;
      }
    }

@keyframes fadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

@media (max-width: 768px) {
      /* Top nav handling on mobile */
      nav#main-nav {
        display: flex !important;
      }

      /* Bottom nav is completely removed */
      .bottom-nav {
        display: none !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;
      }
    }

