/* ============ GUESS THE MUSIC — GTM ============ */
:root {
  --accent: #8b5cf6;
  --accent-2: #ec4899;
  --accent-3: #22d3ee;
  --bg: #0a0a14;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f4f4f8;
  --text-dim: rgba(244, 244, 248, 0.55);
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --radius: 20px;
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

button { font-family: inherit; cursor: pointer; }

/* ============ BACKGROUND ============ */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: drift 24s ease-in-out infinite alternate;
}
.blob-1 {
  width: 45vw; height: 45vw;
  background: var(--accent);
  top: -15%; left: -10%;
}
.blob-2 {
  width: 40vw; height: 40vw;
  background: var(--accent-2);
  bottom: -20%; right: -10%;
  animation-delay: -8s;
}
.blob-3 {
  width: 30vw; height: 30vw;
  background: var(--accent-3);
  top: 40%; left: 55%;
  opacity: 0.18;
  animation-delay: -16s;
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(6vw, -4vh) scale(1.15); }
  100% { transform: translate(-4vw, 5vh) scale(0.95); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
}

/* floating notes */
.note {
  position: absolute;
  bottom: -8vh;
  font-size: 22px;
  opacity: 0;
  animation: float-up linear forwards;
  user-select: none;
}
@keyframes float-up {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.35; }
  90%  { opacity: 0.15; }
  100% { transform: translateY(-110vh) rotate(38deg); opacity: 0; }
}

/* ============ HEADER ============ */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 20px 8px;
}

.brand { display: flex; align-items: center; gap: 16px; }

.logo {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 60%, var(--accent-3));
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.45);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo:hover { transform: scale(1.08) rotate(-4deg); }

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.5px;
  color: #fff;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.logo-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  opacity: 0.4;
}
.logo-bars i {
  width: 6px;
  background: #fff;
  border-radius: 3px;
  animation: eq-bounce 1.1s ease-in-out infinite;
}
.logo-bars i:nth-child(1) { height: 40%; animation-delay: 0s; }
.logo-bars i:nth-child(2) { height: 70%; animation-delay: 0.18s; }
.logo-bars i:nth-child(3) { height: 55%; animation-delay: 0.36s; }
.logo-bars i:nth-child(4) { height: 80%; animation-delay: 0.54s; }

@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

.brand-name h1 {
  font-family: var(--font-display);
  font-size: clamp(18px, 3.4vw, 26px);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.1;
}
.brand-name h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.header-nav { display: flex; gap: 10px; align-items: center; }

.ui-lang {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  transition: border-color 0.25s ease;
}
.ui-lang:hover { border-color: var(--accent); }
.ui-lang .globe { font-size: 16px; }
.ui-lang select {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.ui-lang select option { background: #14141f; color: var(--text); }

.icon-btn {
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}
.icon-btn:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

/* ============ MAIN ============ */
.main {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-dim);
  margin-bottom: 12px;
  text-align: center;
}

/* ============ LANGUAGE PILLS ============ */
.lang-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.lang-pill {
  --pill: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lang-pill .flag { font-size: 17px; }
.lang-pill:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: var(--pill);
  color: var(--text);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--pill) 35%, transparent);
}
.lang-pill.active {
  background: color-mix(in srgb, var(--pill) 22%, transparent);
  border-color: var(--pill);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--pill), 0 8px 28px color-mix(in srgb, var(--pill) 40%, transparent);
}
.lang-pill.active .flag { animation: flag-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }

.soon-chip {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--yellow) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--yellow) 45%, transparent);
  color: var(--yellow);
}

@keyframes flag-pop {
  0% { transform: scale(0.4) rotate(-20deg); }
  100% { transform: scale(1) rotate(0); }
}

/* ============ GAME CARD ============ */
.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: visible;
}
.game-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 50%, transparent), transparent 40%, transparent 60%, color-mix(in srgb, var(--accent-2) 35%, transparent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.game-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.round-badge { display: flex; flex-direction: column; }
.round-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--text-dim);
}
.round-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.category-badge {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  animation: badge-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes badge-in {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ============ PLAYER ============ */
.player {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
}

.play-btn {
  position: relative;
  width: 92px; height: 92px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 10px 36px color-mix(in srgb, var(--accent) 55%, transparent);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.play-btn:hover { transform: scale(1.07); }
.play-btn:active { transform: scale(0.96); }

.play-btn svg {
  width: 38px; height: 38px;
  fill: #fff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}
.play-btn .icon-pause { display: none; }
.play-btn.playing .icon-play { display: none; }
.play-btn.playing .icon-pause { display: block; }

.play-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  animation: ring-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
.ring-2 { animation-delay: 1.1s; }
@keyframes ring-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.65); opacity: 0; }
}

.player-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* equalizer */
.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 44px;
}
.equalizer i {
  flex: 1;
  min-width: 3px;
  height: 12%;
  border-radius: 3px;
  background: linear-gradient(to top, var(--accent), var(--accent-2));
  opacity: 0.35;
  transition: height 0.35s ease, opacity 0.35s ease;
}
.equalizer.on i {
  opacity: 1;
  animation: eq-dance 0.55s ease-in-out infinite alternate;
}
@keyframes eq-dance {
  from { height: 15%; }
  to { height: 100%; }
}

.progress-track {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.stage-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}
.stage-info #stageTime { color: var(--text); }
.stage-hint { color: var(--text-dim); }

/* ============ STAGES ============ */
.stages {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}
.stage {
  padding: 10px 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: default;
}
.stage.active {
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--accent) 35%, transparent);
  animation: stage-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stage.done {
  color: var(--text-dim);
  text-decoration: line-through;
  opacity: 0.5;
}
@keyframes stage-pop {
  from { transform: scale(0.85); }
  to { transform: scale(1); }
}

/* ============ GUESS AREA ============ */
.guess-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 16px;
  width: 20px; height: 20px;
  fill: var(--text-dim);
  pointer-events: none;
}
#guessInput {
  width: 100%;
  padding: 16px 18px 16px 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
#guessInput::placeholder { color: var(--text-dim); }
#guessInput:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #14141f;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  z-index: 30;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown {
  max-height: 264px;
  overflow-y: auto;
}
.dropdown-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  transition: background 0.15s ease;
}
.dropdown-item:hover {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.di-artist {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  text-transform: uppercase;
}
.di-title {
  font-size: 14.5px;
  font-weight: 600;
}
.dropdown-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  color: var(--text-dim);
  font-size: 14px;
}
.dropdown-empty .big { font-size: 26px; }

.guess-actions {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 14px 26px;
  border-radius: 14px;
  border: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #fff;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-skip {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.btn-skip:hover {
  border-color: var(--yellow);
  box-shadow: 0 6px 22px rgba(234, 179, 8, 0.25);
  transform: translateY(-2px);
}
.skip-gain {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--yellow);
  margin-left: 4px;
}

.btn-guess {
  flex: 1.4;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 26px color-mix(in srgb, var(--accent) 40%, transparent);
}
.btn-guess:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 34px color-mix(in srgb, var(--accent) 55%, transparent);
}
.btn-guess:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* ============ ATTEMPTS ============ */
.attempts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.attempt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: transparent;
  font-size: 14px;
  color: var(--text-dim);
  transition: all 0.3s ease;
}
.attempt-no {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.attempt.filled {
  border-style: solid;
  animation: attempt-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.attempt.skipped {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
}
.attempt.wrong {
  border-color: color-mix(in srgb, var(--red) 50%, transparent);
  background: color-mix(in srgb, var(--red) 8%, transparent);
  color: var(--red);
}
.attempt.artist {
  border-color: color-mix(in srgb, var(--yellow) 50%, transparent);
  background: color-mix(in srgb, var(--yellow) 8%, transparent);
  color: var(--yellow);
}
.attempt.correct {
  border-color: color-mix(in srgb, var(--green) 60%, transparent);
  background: color-mix(in srgb, var(--green) 12%, transparent);
  color: var(--green);
  box-shadow: 0 0 20px color-mix(in srgb, var(--green) 25%, transparent);
}
@keyframes attempt-in {
  from { transform: translateX(-14px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============ RESULT CARD ============ */
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 28px;
  text-align: center;
  backdrop-filter: blur(20px);
  animation: card-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.result-emoji { font-size: 56px; margin-bottom: 14px; animation: bounce 1.4s ease infinite; }
.result-card h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 10px;
}
.result-card p { color: var(--text-dim); margin-bottom: 24px; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes card-in {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ============ STATS STRIP ============ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 10px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.stat:hover { transform: translateY(-3px); border-color: var(--accent); }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* ============ MODALS ============ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 5, 12, 0.7);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fade-in 0.25s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  background: #12121d;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 34px 30px;
  animation: modal-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modal-in {
  from { transform: scale(0.85) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal h2 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 20px;
}
.modal-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 20px; }
.modal .btn { width: 100%; margin-top: 8px; }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  transition: all 0.2s ease;
}
.modal-close:hover { background: var(--surface-2); transform: rotate(90deg); }

.howto-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}
.howto-list li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(244,244,248,0.85);
}
.howto-list li span { font-size: 20px; flex-shrink: 0; }

.legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 14px;
}
.legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.dot {
  width: 14px; height: 14px;
  border-radius: 5px;
  flex-shrink: 0;
}
.dot-green { background: var(--green); box-shadow: 0 0 12px var(--green); }
.dot-yellow { background: var(--yellow); box-shadow: 0 0 12px var(--yellow); }
.dot-red { background: var(--red); box-shadow: 0 0 12px var(--red); }

/* stats distribution */
.dist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.dist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
}
.dist-bar {
  height: 26px;
  width: var(--w);
  min-width: 26px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 9px;
  font-size: 12px;
  color: #fff;
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 14px 24px;
  border-radius: 14px;
  background: #1a1a28;
  border: 1px solid var(--accent);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 24px color-mix(in srgb, var(--accent) 30%, transparent);
  animation: toast-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 90vw;
  text-align: center;
}
@keyframes toast-in {
  from { transform: translate(-50%, 16px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}
.toast.out { animation: toast-out 0.3s ease forwards; }
@keyframes toast-out {
  to { transform: translate(-50%, 16px); opacity: 0; }
}

/* ============ FOOTER ============ */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: var(--text-dim);
}
.footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer a:hover { color: var(--accent); }

/* ============ REVEAL ANIMATION ============ */
.reveal {
  animation: reveal-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.reveal:nth-child(2) { animation-delay: 0.12s; }
.reveal:nth-child(3) { animation-delay: 0.24s; }
@keyframes reveal-up {
  from { transform: translateY(26px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  .player { flex-direction: column; }
  .player-right { width: 100%; }
  .stages { grid-template-columns: repeat(3, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .guess-actions { flex-direction: column; }
  .brand-name h1 { font-size: 17px; }
  .logo { width: 54px; height: 54px; }
  .logo-text { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
