:root {
  --bg-deep: #170F2E;
  --bg-panel: #241848;
  --bg-panel-2: #2F1F5C;
  --accent-pink: #FF4D6D;
  --accent-yellow: #FFC857;
  --accent-cyan: #4DD8E0;
  --accent-green: #4ADE80;
  --text-main: #F5F0FF;
  --text-muted: #B8A9DB;
  --font-display: 'Fredoka', sans-serif;
  --font-body: 'Manrope', sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  min-height: 100%;
  height: 100%;
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  overflow-y: auto;
  /* Hide scrollbar (fixes gray vertical line on mobile) */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 40px;
  overflow-x: hidden;
}
.brand { font-family: var(--font-display); font-size: 30px; font-weight: 600; text-align: center; margin-bottom: 24px; }
.brand__play { color: var(--accent-pink); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 6px; font-weight: 700; }
.field input {
  width: 100%;
  font-family: var(--font-display);
  font-size: 22px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid var(--bg-panel-2);
  background: var(--bg-panel);
  color: var(--text-main);
  letter-spacing: 2px;
  text-align: center;
}
.field input:focus { outline: none; border-color: var(--accent-yellow); }

.btn {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  padding: 16px;
  border-radius: 14px;
  border: none;
  background: var(--accent-pink);
  color: white;
  width: 100%;
}
.btn:disabled { opacity: 0.5; }
.btn--ghost { background: var(--bg-panel); color: var(--text-main); }

.error { color: var(--accent-pink); font-size: 14px; margin-top: 8px; min-height: 18px; text-align: center; }

.center-msg { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.center-msg__title { font-family: var(--font-display); font-size: 26px; }
.center-msg__sub { color: var(--text-muted); }

.mini-board { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 320px; }
.mini-board__row { display: flex; justify-content: space-between; background: var(--bg-panel); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.mini-board__row.me { border: 2px solid var(--accent-yellow); }

.question-progress { color: var(--text-muted); font-size: 13px; text-align: center; }
.question-text { font-family: var(--font-display); font-size: 24px; text-align: center; margin: 12px 0 20px; line-height: 1.3; }

.answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; flex: 1; }
.answer-tile {
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 700;
  color: #1B1030;
  padding: 18px 10px;
  min-height: 110px;
  border: none;
}
.answer-tile__shape { font-size: 28px; }
.answer-tile.shape-0 { background: var(--accent-pink); color: white; }
.answer-tile.shape-1 { background: var(--accent-yellow); }
.answer-tile.shape-2 { background: var(--accent-cyan); }
.answer-tile.shape-3 { background: var(--accent-green); }
.answer-tile:disabled { opacity: 0.4; }
.answer-tile.selected { outline: 4px solid white; }

.vote-list { display: flex; flex-direction: column; gap: 12px; }
.vote-btn {
  background: var(--bg-panel);
  border: 2px solid var(--bg-panel-2);
  border-radius: 14px;
  padding: 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}
.vote-btn.selected { border-color: var(--accent-yellow); background: var(--bg-panel-2); }

.result-badge { font-family: var(--font-display); font-size: 30px; margin-bottom: 6px; }
.result-badge.correct { color: var(--accent-green); }
.result-badge.wrong { color: var(--text-muted); }

.leaderboard { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.leaderboard__row { display: flex; align-items: center; gap: 12px; background: var(--bg-panel); border-radius: 12px; padding: 12px 16px; }
.leaderboard__row.me { border: 2px solid var(--accent-yellow); }
.leaderboard__rank { font-family: var(--font-display); width: 28px; color: var(--text-muted); }
.leaderboard__name { flex: 1; font-weight: 700; }
.leaderboard__score { font-family: var(--font-display); color: var(--accent-yellow); }

.selected-hint {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--accent-yellow);
  font-weight: 700;
}
.your-choice {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-align: center;
}
.your-choice strong {
  color: var(--text-main);
}

.correct-answer {
  font-size: 16px;
  color: var(--accent-green);
  margin-bottom: 14px;
  text-align: center;
  font-weight: 700;
}
.correct-answer strong {
  color: var(--text-main);
}
