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

:root {
  --bg-dark: #0a0a1a;
  --bg-card: rgba(15, 15, 40, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(20, 20, 55, 0.55);
  --accent-1: #6c5ce7;
  --accent-2: #a855f7;
  --accent-3: #f59e0b;
  --accent-4: #10b981;
  --accent-red: #ef4444;
  --text-primary: #f0f0ff;
  --text-secondary: rgba(220, 220, 255, 0.65);
  --text-muted: rgba(200, 200, 240, 0.4);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-glow: 0 0 60px rgba(108, 92, 231, 0.15);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

h1,
h2,
h3 {
  font-family: 'Outfit', sans-serif;
}

#particles-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(108, 92, 231, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
    var(--bg-dark);
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-glow);
}

.glass-bar {
  background: rgba(15, 15, 45, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(16px);
}

#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.screen {
  display: none;
  animation: fadeSlideIn 0.5s ease forwards;
}

.screen.active {
  display: flex;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.akinator-theme {
  flex-direction: column;
  min-height: 100vh;
  background: url('bg.png') no-repeat center center;
  background-size: 100% 100%;
  position: relative;
}

.landing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 4vh;
  padding-bottom: 6vh;
}

.landing-genie-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: -0.5rem;
}

.landing-genie {
  height: 52vh;
  max-height: 460px;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

.speech-bubble {
  position: absolute;
  background: transparent;
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1rem 1.5rem 1.35rem 1.2rem;
  border-radius: 0;
  max-width: 240px;
  min-width: 200px;
  min-height: 88px;
  line-height: 1.35;
  z-index: 3;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  text-shadow: none;
}

.speech-bubble::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('bubble.png') no-repeat center;
  background-size: 100% 100%;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
  z-index: -1;
}

.speech-left {
  right: calc(50% + 60px);
  bottom: 65%;
}

.speech-right {
  left: calc(50% + 60px);
  bottom: 50%;
}

.speech-right::before {
  transform: scaleX(-1);
}

.landing-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.landing-ipl-text {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #ffdd02;
  letter-spacing: 6px;
  text-shadow:
    0 0 20px rgba(245, 159, 11, 0.948),
    0 3px 0 #b7850a,
    0 6px 12px rgba(0, 0, 0, 0.5);
  margin-bottom: -0.5rem;
}

.landing-logo {
  width: min(520px, 20vw);
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6));
}

.landing-action-row {
  width: 100%;
  background: linear-gradient(180deg, #1a6b2a 0%, #0e4a1a 100%);
  border-top: 3px solid #2ecc71;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1rem 2rem;
  position: relative;
}

.landing-settings {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  cursor: pointer;
  font-size: 0.75rem;
  gap: 0.3rem;
  transition: transform 0.2s;
}

.landing-settings:hover {
  transform: scale(1.1);
}

.settings-cricket-ball {
  width: 42px;
  height: 42px;
  background: radial-gradient(circle at 35% 35%, #e74c3c, #8e1a0e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.scoreboard-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.scoreboard-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, #1e3d1e 0%, #0a240a 100%);
  border: 2px solid #4caf50;
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.scoreboard-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(76, 175, 80, 0.5);
}

.scoreboard-btn-secondary {
  background: linear-gradient(180deg, #1a3045 0%, #0a1c2e 100%);
  border-color: #38bdf8;
}

.scoreboard-btn-secondary:hover {
  box-shadow: 0 6px 30px rgba(56, 189, 248, 0.55);
}

.scoreboard-btn-secondary .score-play {
  font-size: 1.25rem;
  letter-spacing: 2px;
}

#search-db-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  animation: fadeSlideIn 0.3s ease forwards;
}

#search-db-modal.open {
  display: flex;
}

.sdb-card {
  background: linear-gradient(180deg, rgba(245, 248, 252, 0.98), rgba(225, 233, 244, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(31, 61, 82, 0.08);
  width: min(520px, 92vw);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sdb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(31, 61, 82, 0.12);
  flex-shrink: 0;
}

.sdb-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1f3d52;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sdb-close {
  background: transparent;
  border: none;
  color: rgba(31, 61, 82, 0.45);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.sdb-close:hover {
  color: #1f3d52;
  background: rgba(31, 61, 82, 0.08);
}

.sdb-search-wrap {
  padding: 1rem 1.5rem 0.75rem;
  flex-shrink: 0;
}

.sdb-input {
  width: 100%;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(31, 61, 82, 0.18);
  border-radius: 10px;
  color: #1f3d52;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 0.7rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sdb-input::placeholder { color: rgba(31, 61, 82, 0.35); }

.sdb-input:focus {
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.sdb-results {
  flex: 1;
  overflow-y: auto;
  padding: 0.25rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sdb-results::-webkit-scrollbar { width: 4px; }
.sdb-results::-webkit-scrollbar-track { background: transparent; }
.sdb-results::-webkit-scrollbar-thumb { background: rgba(31, 61, 82, 0.2); border-radius: 4px; }

.sdb-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(31, 61, 82, 0.1);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  transition: background 0.18s;
}

.sdb-player-row:hover {
  background: rgba(255,255,255,0.85);
  border-color: rgba(108, 92, 231, 0.25);
}

.sdb-player-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1f3d52;
}

.sdb-player-meta {
  font-size: 0.78rem;
  color: #5b6c7c;
  margin-top: 0.15rem;
}

.sdb-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  white-space: nowrap;
}

.sdb-badge-in {
  background: rgba(16,185,129,0.18);
  color: #34d399;
  border: 1px solid rgba(16,185,129,0.3);
}

.sdb-badge-out {
  background: rgba(239,68,68,0.15);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.25);
}

.sdb-empty {
  text-align: center;
  color: #7a8a98;
  font-size: 0.9rem;
  padding: 2rem 0;
}

.sdb-count {
  font-size: 0.72rem;
  color: #7a8a98;
  text-align: right;
  padding: 0 1.5rem 0.5rem;
  flex-shrink: 0;
}

.sdb-player-row {
  cursor: pointer;
}

.sdb-player-row.expanded {
  background: rgba(108, 92, 231, 0.08);
  border-color: rgba(108, 92, 231, 0.25);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.sdb-detail-panel {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(31, 61, 82, 0.12);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 0.9rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  animation: fadeSlideIn 0.22s ease forwards;
}

.sdb-detail-panel[hidden] {
  display: none;
}

.sdb-detail-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sdb-detail-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6c5ce7;
}

.sdb-attr-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.sdb-attr-chip {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(31, 61, 82, 0.12);
  border-radius: 6px;
  padding: 0.22rem 0.55rem;
  font-size: 0.76rem;
}

.sdb-attr-key {
  color: #7a8a98;
  font-size: 0.68rem;
}

.sdb-attr-key::after { content: ':'; }

.sdb-attr-val {
  color: #1f3d52;
  font-weight: 600;
}

.sdb-qa-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #7a8a98;
  font-size: 0.65rem;
  margin-left: 0.3rem;
}

.sdb-qa-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sdb-qa-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.4rem 0.7rem;
  border-radius: 7px;
  border-left: 3px solid transparent;
  font-size: 0.79rem;
}

.sdb-qa-match    { background: rgba(16,185,129,0.1);  border-left-color: #34d399; }
.sdb-qa-mismatch { background: rgba(239,68,68,0.11);  border-left-color: #f87171; }
.sdb-qa-unsure   { background: rgba(245,158,11,0.08); border-left-color: #fbbf24; }

.sdb-qa-q {
  flex: 1;
  color: #2b3a4a;
  line-height: 1.35;
}

.sdb-qa-answers {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  font-size: 0.74rem;
}

.sdb-qa-user    { color: #7a8a98; }
.sdb-qa-correct { color: #1f3d52; font-weight: 600; }

.sdb-qa-icon { font-weight: 700; font-size: 0.88rem; min-width: 14px; text-align: center; }
.sdb-qa-match    .sdb-qa-icon { color: #34d399; }
.sdb-qa-mismatch .sdb-qa-icon { color: #f87171; }
.sdb-qa-unsure   .sdb-qa-icon { color: #fbbf24; }

.sdb-qa-no-session {
  font-size: 0.78rem;
  color: #7a8a98;
  font-style: italic;
  padding: 0.3rem 0;
}

.score-digit {
  font-family: 'Outfit', monospace;
  font-size: 1.6rem;
  font-weight: 900;
  color: #f1c40f;
  background: #0a1a0a;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  min-width: 36px;
  text-align: center;
  border: 1px solid #2e7d32;
}

.score-sep {
  font-size: 1.4rem;
  color: #fff;
  font-weight: 700;
}

.score-play {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  padding: 0 0.5rem;
}

.score-icon {
  font-size: 1.4rem;
}

.scoreboard-stats {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}

.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.store-btn-dark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #111;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.4rem 0.9rem;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
  min-width: 130px;
}

.store-btn-dark:hover {
  background: #222;
  transform: scale(1.04);
}

.store-top {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
}

.store-main {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.landing-footer {
  background: #0d1f2d;
  color: #fff;
  width: 100%;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.fsoc-icon {
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  transition: background 0.2s;
}

.fsoc-icon:hover {
  background: rgba(255, 255, 255, 0.25);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  text-align: center;
  padding: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  background: #07111a;
}

.landing-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 7%;
}

.landing-play-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 3.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  border-radius: 60px;
  cursor: pointer;
  box-shadow: 0 6px 40px rgba(245, 158, 11, 0.6), 0 0 0 4px rgba(245, 158, 11, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: playPulse 2s ease-in-out infinite;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.landing-play-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 10px 55px rgba(245, 158, 11, 0.8), 0 0 0 6px rgba(245, 158, 11, 0.3);
}

.play-triangle {
  font-size: 1.4rem;
}

@keyframes playPulse {

  0%,
  100% {
    box-shadow: 0 6px 40px rgba(245, 158, 11, 0.6), 0 0 0 4px rgba(245, 158, 11, 0.25);
  }

  50% {
    box-shadow: 0 6px 55px rgba(245, 158, 11, 0.9), 0 0 0 8px rgba(245, 158, 11, 0.35);
  }
}

.landing-player-count {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  font-family: 'Inter', sans-serif;
}

.akinator-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding-top: 5vh;
}

.genie-container {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.genie-img {
  max-height: 45vh;
  object-fit: contain;
  display: block;
}

.tooltip {
  position: absolute;
  background: rgba(40, 40, 45, 0.9);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-width: 250px;
}

.tooltip p {
  margin: 0 0 0.5rem 0;
}

.tooltip p:last-child {
  margin: 0;
}

.tooltip::after {
  content: '';
  position: absolute;
  border-style: solid;
}

.tooltip-left {
  top: 30%;
  right: 100%;
  margin-right: 15px;
}

.tooltip-left::after {
  top: 50%;
  left: 100%;
  margin-top: -10px;
  border-width: 10px 0 10px 15px;
  border-color: transparent transparent transparent rgba(40, 40, 45, 0.9);
}

.tooltip-right {
  top: 50%;
  left: 100%;
  margin-left: 15px;
}

.tooltip-right::after {
  top: 20%;
  right: 100%;
  margin-top: -10px;
  border-width: 10px 15px 10px 0;
  border-color: transparent rgba(40, 40, 45, 0.9) transparent transparent;
}

.akinator-logo {
  max-width: 80%;
  width: 400px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.action-area {
  width: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.settings-btn {
  position: absolute;
  left: 15%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  cursor: pointer;
}

.coin-icon {
  background: #f1c40f;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-size: 1.2rem;
}

.settings-btn span {
  font-size: 0.8rem;
}

.app-buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.store-btn {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  transition: transform 0.2s;
}

.store-btn:hover {
  transform: scale(1.05);
}

.store-btn span {
  font-size: 0.6rem;
  text-transform: uppercase;
}

.store-btn strong {
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}

.play-btn {
  background: transparent;
  color: #fff;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, color 0.2s;
}

.play-btn:hover {
  transform: scale(1.1);
  color: #f1c40f;
}

.play-btn .dots {
  font-size: 1rem;
  color: #aaa;
}

.stats-text {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.site-footer {
  background: #1a2f40;
  color: #fff;
  width: 100%;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: bold;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.3);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #aaa;
}

.copyright {
  text-align: center;
  padding: 0.75rem;
  background: #122230;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

#screen-question {
  min-height: 100vh;
  padding: 2.5rem 1.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url('bg.png') no-repeat center center;
  background-size: 100% 100%;
}

.question-layout {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px) 1fr;
  column-gap: 0.4rem;
  max-width: 1200px;
  width: min(1200px, 95vw);
  margin: 0 auto;
  align-items: center;
}

.question-genie {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  grid-column: 1;
  padding-right: 0;
  transform: translateX(30px);
}

.question-genie-img {
  width: min(360px, 38vw);
  max-width: 360px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.question-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: stretch;
  grid-column: 2;
  justify-self: center;
  width: 100%;
  transform: translateX(-36px);
}

.question-bubble {
  position: relative;
  padding: 1.5rem 2.2rem 1.8rem 3.2rem;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #1f2a38;
  font-weight: 600;
  gap: 0.65rem;
  transform: translate(0, -14px);
}

.question-bubble::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('bubble.png') no-repeat center;
  background-size: 100% 100%;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.2));
  transform: scaleX(-1);
  z-index: -1;
}

.question-badge {
  position: absolute;
  left: 50%;
  top: -70px;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  background: #fff;
  border: 2px solid #e3e8ef;
  border-radius: 50%;
  color: #1f2a38;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.question-badge::after {
  content: none;
}

.badge-number {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.badge-dot {
  display: none;
}

.question-text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
  width: 100%;
  max-width: 360px;
}

.question-category {
  margin: 0.08rem 0 0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  color: #1f3d52;
  text-transform: uppercase;
  letter-spacing: 0.45px;
}

.question-why-wrap {
  margin-top: 0.14rem;
}

.question-why-title {
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: #4f6579;
}

.question-why {
  margin-top: 0.12rem;
  font-size: 0.61rem;
  line-height: 1.2;
  color: #2f4458;
}

.answer-panel {
  background: linear-gradient(180deg, rgba(245, 248, 252, 0.96), rgba(225, 233, 244, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  padding: 0.5rem 0;
}

.answer-panel .btn-answer {
  display: block;
  width: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #2b3a4a;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: center;
  transition: background 0.2s ease;
}

.answer-panel .btn-answer + .btn-answer {
  border-top: 1px solid rgba(29, 45, 64, 0.12);
}

.answer-panel .btn-answer:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.7);
}

.answer-panel .btn-answer:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.answer-panel .answer-icon {
  display: none;
}

/* ── Live Confidence Tracker (right sidebar) ───────────────────────── */
.live-tracker {
  grid-column: 3;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: linear-gradient(180deg, rgba(245, 248, 252, 0.96), rgba(225, 233, 244, 0.96));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  max-width: 260px;
  width: 100%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  animation: trackerSlideIn 0.5s ease-out;
}

@keyframes trackerSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Confidence header */
.tracker-confidence {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tracker-conf-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.tracker-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #5b6c7c;
}

.tracker-conf-pct {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #f59e0b;
  transition: color 0.5s ease;
}

.tracker-conf-pct.conf-low    { color: #ef4444; }
.tracker-conf-pct.conf-mid    { color: #f59e0b; }
.tracker-conf-pct.conf-high   { color: #10b981; }

.tracker-conf-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(31, 61, 82, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.tracker-conf-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
  background-size: 300% 100%;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tracker-conf-bar-fill.conf-low  { background-position: 0% 0; }
.tracker-conf-bar-fill.conf-mid  { background-position: 50% 0; }
.tracker-conf-bar-fill.conf-high { background-position: 100% 0; }

/* Pool size */
.tracker-pool {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.6rem;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  border: 1px solid rgba(31, 61, 82, 0.12);
}

.tracker-pool-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #6c5ce7;
}

/* Section titles */
.tracker-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #5b6c7c;
  margin-bottom: 0.3rem;
}

/* Candidate rows */
.tracker-candidates .candidates-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.candidate-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.3s ease, transform 0.3s ease;
  animation: candidateFadeIn 0.4s ease-out;
}

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

.candidate-row.top-1 {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.candidate-rank {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  background: rgba(31, 61, 82, 0.1);
  color: #5b6c7c;
  flex-shrink: 0;
}

.candidate-row.top-1 .candidate-rank {
  background: #f59e0b;
  color: #000;
}

.candidate-info {
  flex: 1;
  min-width: 0;
}

.candidate-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1f3d52;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.candidate-role {
  font-size: 0.6rem;
  color: #7a8a98;
}

.candidate-bar-track {
  width: 40px;
  height: 4px;
  background: rgba(31, 61, 82, 0.1);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.candidate-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.candidate-row.top-1 .candidate-bar-fill {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.candidate-row:not(.top-1) .candidate-bar-fill {
  background: linear-gradient(90deg, #6366f1, #a78bfa);
}

.candidate-pct {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #3a4c60;
  width: 32px;
  text-align: right;
  flex-shrink: 0;
}

.candidate-row.top-1 .candidate-pct {
  color: #fbbf24;
}

/* History log */
.tracker-history {
  max-height: 140px;
  overflow-y: auto;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.history-item {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  color: #4a5b6a;
  padding: 0.3rem 0.5rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  border-left: 2px solid #6366f1;
}

.history-answer {
  font-weight: 700;
  color: #d97706;
  text-transform: uppercase;
}

/* Responsive: hide tracker on small screens, show below question */
@media (max-width: 900px) {
  .live-tracker {
    grid-column: 1 / -1;
    max-width: 100%;
    margin-top: 1rem;
  }
}

#screen-guess {
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  background: url('bg.png') no-repeat center center;
  background-size: 100% 100%;
}

.guess-layout {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 560px);
  gap: 2.5rem;
  align-items: center;
  width: min(1100px, 95vw);
  margin: 0 auto;
}

.guess-genie {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.guess-genie-img {
  width: min(320px, 32vw);
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.35));
}

.guess-panel {
  background: rgba(222, 232, 247, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.guess-panel-header {
  background: #1f3d52;
  color: #fff;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.guess-panel-body {
  padding: 1.5rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.guess-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;
}

.guess-media {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(31, 61, 82, 0.12);
  border-radius: 10px;
  padding: 1.25rem;
  transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease, box-shadow 0.45s ease;
}

.guess-panel-body.reveal-pending .guess-info,
.guess-panel-body.reveal-pending .guess-media {
  opacity: 0.02;
  transform: scale(0.95);
  filter: blur(7px);
  pointer-events: none;
}

.guess-panel-body.reveal-ready .guess-info,
.guess-panel-body.reveal-ready .guess-media {
  animation: revealCardIn 0.58s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.guess-panel-body.reveal-ready .guess-media {
  box-shadow: 0 0 0 1px rgba(63, 191, 255, 0.2), 0 10px 22px rgba(31, 61, 82, 0.18);
}

@keyframes revealCardIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

.guess-reveal-status {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: radial-gradient(circle at 50% 35%, rgba(76, 125, 159, 0.22), rgba(31, 61, 82, 0.06));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 3;
}

.guess-reveal-status.active {
  opacity: 1;
}

.guess-reveal-spinner {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid rgba(31, 61, 82, 0.22);
  border-top-color: #1f3d52;
  animation: revealSpin 0.9s linear infinite;
}

@keyframes revealSpin {
  to {
    transform: rotate(360deg);
  }
}

.guess-reveal-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1f3d52;
  text-align: center;
  letter-spacing: 0.2px;
}

.reveal-dots span {
  display: inline-block;
  animation: revealDotPulse 1.1s infinite;
}

.reveal-dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.reveal-dots span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes revealDotPulse {
  0%, 20%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-1px); }
}

.guess-emblem {
  width: min(280px, 80%);
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(31, 61, 82, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.guess-emblem-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.35s ease, transform 0.35s ease;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.guess-image-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translate(-50%, 6px);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.guess-emblem.loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0.08) 100%);
  background-size: 200% 100%;
  animation: guessImageShimmer 1.2s ease-in-out infinite;
}

.guess-emblem.loaded .guess-emblem-img {
  opacity: 1;
  transform: scale(1);
}

.guess-emblem.no-image .guess-image-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes guessImageShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.guess-card {
  text-align: center;
  padding: 3rem 2.5rem;
  max-width: 520px;
  width: 100%;
}

.guess-orb-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.guess-orb .orb-inner {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at 35% 35%, var(--accent-3), #f97316);
  box-shadow: 0 0 50px rgba(245, 158, 11, 0.5);
}

.guess-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #3a4c60;
  margin: 0;
}

.guess-player-name {
  font-family: 'Outfit';
  font-size: 1.8rem;
  font-weight: 800;
  color: #1f3d52;
  margin: 0;
}

.guess-nickname {
  font-size: 0.95rem;
  color: #5b6c7c;
  font-style: italic;
  margin: 0;
}

.guess-confidence-badge {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(22, 163, 74, 0.12);
  color: #1f6a45;
  border: 1px solid rgba(22, 163, 74, 0.25);
  margin: 0.2rem 0 0;
}

.guess-confidence-badge.conf-low {
  background: rgba(220, 38, 38, 0.12);
  color: #9f1239;
  border-color: rgba(220, 38, 38, 0.25);
}

.guess-confidence-badge.conf-mid {
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.28);
}

.guess-confidence-badge.conf-high {
  background: rgba(22, 163, 74, 0.12);
  color: #1f6a45;
  border-color: rgba(22, 163, 74, 0.25);
}

.guess-confidence-track {
  width: min(320px, 92%);
  height: 8px;
  border-radius: 99px;
  background: rgba(31, 61, 82, 0.1);
  overflow: hidden;
  border: 1px solid rgba(31, 61, 82, 0.12);
}

.guess-confidence-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
  transition: width 0.95s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
}

.guess-confidence-fill.conf-low {
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.34));
}

.guess-confidence-fill.conf-mid {
  filter: drop-shadow(0 0 7px rgba(245, 158, 11, 0.34));
}

.guess-confidence-fill.conf-high {
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
}

.guess-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 0;
}

.guess-media .detail-chip {
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(31, 61, 82, 0.15);
  color: #2b3a4a;
}

.detail-chip {
  padding: 0.3rem 0.75rem;
  border-radius: 16px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.guess-prompt {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.4rem 0 0;
  color: #3a4c60;
}

.guess-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.guess-actions button {
  border: none;
  border-radius: 999px;
  padding: 0.35rem 1.4rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  color: #fff;
  background: #1f3d52;
  transition: background 0.2s ease, transform 0.2s ease;
}

.guess-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.guess-actions button:hover {
  transform: translateY(-1px);
  background: #244861;
}

.btn-correct-yes {
  background: #1f3d52;
  box-shadow: none;
}

.btn-correct-no {
  background: #5a6876;
}

#screen-success,
#screen-wrong {
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  background: url('bg.png') no-repeat center center;
  background-size: 100% 100%;
}

.result-card {
  text-align: center;
  padding: 3rem 2.5rem;
  max-width: 520px;
  width: 100%;
}

.celebration {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 1s ease infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.result-heading {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.success-card .result-heading {
  color: var(--accent-4);
}

.wrong-card .result-heading {
  color: var(--accent-3);
}

.result-message,
.result-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.wrong-search-input {
  width: 100%;
  max-width: 360px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: var(--transition);
  margin-bottom: 1rem;
}

.wrong-search-input:focus {
  border-color: var(--accent-2);
}

.wrong-player-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 1rem;
  width: 100%;
}

.wrong-player-btn {
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.wrong-player-btn:hover {
  background: rgba(108, 92, 231, 0.12);
  color: var(--text-primary);
}

.wrong-player-btn.selected {
  border-color: var(--accent-2);
  background: rgba(108, 92, 231, 0.15);
  color: var(--text-primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .question-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .question-genie {
    grid-column: 1;
    justify-content: center;
    transform: translateX(0);
  }

  .question-content {
    grid-column: 1;
    justify-self: center;
    transform: translateX(0);
    width: min(520px, 92vw);
  }

  .question-genie-img {
    width: min(240px, 60vw);
  }

  .question-bubble {
    padding: 1.1rem 1.6rem 1.4rem 2.4rem;
    min-height: 120px;
    transform: translate(0, -6px);
  }

  .question-badge {
    top: -14px;
  }

  .answer-panel {
    max-width: 520px;
    margin: 0 auto 0.5rem;
  }

  .candidates-panel {
    max-height: 300px;
  }

  .answer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .title-main {
    font-size: 2.2rem;
  }

  .guess-player-name {
    font-size: 1.8rem;
  }
}

@media (max-width: 520px) {
  #screen-question {
    padding: 1.75rem 1rem;
  }

  .question-genie-img {
    width: min(200px, 58vw);
  }

  .question-bubble {
    padding: 0.95rem 1.2rem 1.2rem 2rem;
    min-height: 105px;
  }

  .question-text {
    font-size: 0.95rem;
  }

  .question-category {
    font-size: 0.58rem;
  }

  .question-why-title {
    font-size: 0.53rem;
  }

  .question-why {
    font-size: 0.58rem;
    line-height: 1.18;
  }

  .answer-panel .btn-answer {
    font-size: 0.9rem;
    padding: 0.65rem 0.9rem;
  }

  .question-badge {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 900px) {
  .landing-main {
    padding-top: 2vh;
    padding-bottom: 4vh;
  }

  .guess-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .guess-genie {
    justify-content: center;
  }

  .guess-genie-img {
    width: min(240px, 60vw);
  }

  .guess-panel {
    width: min(560px, 92vw);
  }

  .landing-genie {
    height: 46vh;
    max-height: 380px;
  }

  .landing-logo {
    width: min(380px, 60vw);
  }

  .landing-action-row {
    padding: 0.9rem 1.25rem;
  }
}

@media (max-width: 520px) {
  .guess-panel-body {
    padding: 1.1rem 1.2rem 1.4rem;
  }

  .guess-reveal-text {
    font-size: 0.9rem;
  }

  .guess-player-name {
    font-size: 1.5rem;
  }

  .guess-emblem {
    width: min(220px, 86%);
  }

  .guess-actions button {
    font-size: 0.8rem;
    padding: 0.3rem 1.1rem;
  }
}

@media (max-width: 600px) {
  .landing-genie {
    height: 42vh;
    max-height: 320px;
  }

  .speech-bubble {
    font-size: 0.55rem;
    padding: 0.8rem 1.1rem 1.1rem 0.95rem;
    max-width: 180px;
    min-width: 160px;
    min-height: 74px;
  }

  .speech-left {
    right: calc(50% + 40px);
    bottom: 62%;
  }

  .speech-right {
    left: calc(50% + 40px);
    bottom: 48%;
  }

  .landing-ipl-text {
    font-size: clamp(3rem, 11vw, 4.2rem);
    letter-spacing: 4px;
  }

  .landing-logo {
    width: min(320px, 70vw);
  }

  .landing-action-row {
    padding: 0.75rem 0.9rem;
  }

  .scoreboard-btn {
    padding: 0.4rem 0.8rem;
    gap: 0.35rem;
  }

  .score-digit {
    font-size: 1.2rem;
    min-width: 28px;
    padding: 0.05rem 0.35rem;
  }

  .score-sep {
    font-size: 1.1rem;
  }

  .score-play {
    font-size: 1.2rem;
    letter-spacing: 2px;
  }

  .score-icon {
    font-size: 1.1rem;
  }
}

@media (max-width: 420px) {
  .landing-genie {
    height: 38vh;
    max-height: 280px;
  }

  .speech-left {
    right: calc(50% + 32px);
  }

  .speech-right {
    left: calc(50% + 32px);
  }

  .landing-logo {
    width: min(280px, 76vw);
  }
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}
