/* Import a modern font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
  --bg:#050816;
  --panel:#050b16;
  --panel-soft:#0b1220;
  --card:#020617;
  --ink:#e5e7eb;
  --muted:#9ca3af;

  --accent-teal:#22d3ee;     /* McLaren/Gulf-style teal */
  --accent-blue:#38bdf8;
  --accent-orange:#f97316;
  --accent-deep-orange:#ea580c;
  --accent-yellow:#fde047;
  --accent-red:#ef4444;
}

/* ===== BASE LAYOUT ===== */

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--ink);
}

.container {
  width: 95%;
  min-height: 100vh;
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* track-side neon glow */
  background:
    radial-gradient(circle at 0 0, rgba(34,211,238,0.85) 0, #0f172a 38%, #020617 80%);
  border-radius: 32px;
  box-shadow: 0 26px 60px rgba(3, 7, 18, 0.95);
}

/* Generic hidden helper */
.hidden {
  display: none !important;
}

/* Screen Setup */
.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* ---------- HOME / START SCREEN ---------- */

.home-screenn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 32px 40px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, var(--accent-teal) 0, #0ea5e9 35%, #020617 95%);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.95);
  position: relative;
  overflow: hidden;
}

.home-screenn::after {
  content: "";
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  height: 10px;
  width: 260px;
  background-image:
    repeating-linear-gradient(
      45deg,
      #f9fafb 0, #f9fafb 8px,
      #020617 8px, #020617 16px
    );
  border-radius: 999px;
  opacity: 0.9;
}

h1 {
  font-weight: 900;
  font-size: 4.4rem;
  margin-bottom: 18px;
  color: #f9fafb;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.home-screenn h1 span {
  /* turbo neon headline */
  background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange));
  -webkit-background-clip: text;
  color: transparent;
}

.tn {
  width: 55%;
  border-radius: 22px;
  margin-top: 4px;
  margin-bottom: 40px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.9);
}

/* Buttons */
.btn {
  padding: 10px 30px;
  font-size: 2.3rem;
  font-weight: 900;
  background: radial-gradient(circle at 30% 0%, var(--accent-yellow) 0, var(--accent-orange) 50%, var(--accent-deep-orange) 100%);
  color: #020617;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  margin: 10px 20px 10px;
  position: relative;
  box-shadow: 0 14px 30px rgba(6, 95, 140, 0.7);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(8, 47, 73, 0.95);
  filter: brightness(1.03);
}

#go-to-skill.btn {
  padding-inline: 70px;
}

/* ---------- SKILL SELECTION ---------- */

.skill-screen {
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
  width: 880px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 26px 40px 34px;
  border-radius: 28px;
  box-shadow: 0 26px 60px rgba(3, 7, 18, 0.9);
  color: var(--ink);
}

#skill-screen h1 {
  font-size: 3.4rem;
  margin-bottom: 6px;
  color: #f9fafb;
}

.skill-screen > p {
  margin-bottom: 18px;
  font-size: 1rem;
  color: #cbd5f5;
}

/* Two-column layout (we only use one column now, but keep styles) */
.skill-columns {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.skill-column {
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.35), rgba(15, 23, 42, 0.98));
  border-radius: 20px;
  padding: 18px 22px 18px;
  min-width: 260px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.55);
}

.skill-column h2 {
  margin: 0 0 6px;
  font-size: 1.7rem;
  color: #f9fafb;
}

.skill-subtitle {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--muted);
}

.skill-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-options label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.55);
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, opacity 0.12s ease, transform 0.1s ease;
}

.skill-options label:hover:not(.disabled):not(.skill-disabled) {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.55);
  transform: translateY(-1px);
}

.skill-options input[type="radio"] {
  accent-color: var(--accent-teal);
}

/* highlight the inner span when checked */
.skill-options input[type="radio"]:checked + span {
  font-weight: 700;
  color: #fefce8;
}

.skill-options label.disabled,
.skill-options label.skill-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- LEVEL SCREEN ---------- */

.level-screen {
  background: radial-gradient(circle at top, var(--panel-soft) 0, #020617 65%);
  color: var(--ink);
  padding: 26px 34px 34px;
  width: 640px;
  border-radius: 26px;
  box-shadow: 0 24px 50px rgba(3, 7, 18, 0.95);
}

.level-screen h1 {
  color: #f9fafb;
  font-size: 3.2rem;
  margin-bottom: 8px;
}

.level-screen p {
  margin-bottom: 18px;
  color: #cbd5f5;
}

.level-options {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 500;
  gap: 10px;
  margin-bottom: 12px;
}

.level-options label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.5);
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.level-options label:hover {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.5);
}

.level-options input[type="radio"] {
  accent-color: var(--accent-teal);
}

.level-options span {
  display: inline-block;
}

/* little neon gradient strip */
.level-badge {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-orange), var(--accent-red));
  opacity: 0.55;
}

.level-options label[data-level="easy"]   .level-badge { background-position: left; }
.level-options label[data-level="medium"] .level-badge { background-position: center; }
.level-options label[data-level="hard"]   .level-badge { background-position: right; }

/* ---------- PLAYER SELECTION – GARAGE SCREEN ---------- */

#player-selection {
  background: radial-gradient(circle at top, rgba(15,23,42,0.9), rgba(3,7,18,1));
  padding: 40px 0;
  border-radius: 24px;
}

.player-selection {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
  padding: 26px 34px 34px;
  border-radius: 28px;
  width: 880px;
  max-width: 100%;
  margin: 0 auto;
  box-shadow: 0 22px 50px rgba(3, 7, 18, 0.95);
  color: var(--ink);
}

#player-selection h1 {
  font-size: 3.2rem;
  margin-bottom: 4px;
  color: #f9fafb;
}

.player-subtitle {
  margin-top: 0;
  margin-bottom: 22px;
  font-size: 0.98rem;
  color: #cbd5f5;
}

.player-layout {
  display: flex;
  gap: 32px;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}

.runner-preview-wrapper {
  flex: 0 0 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.runner-preview {
  width: 320px;
  height: 220px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 80%, rgba(0, 0, 0, 0.7) 0, transparent 65%),
    linear-gradient(135deg, #020617, #111827);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  border: 2px solid rgba(148, 163, 184, 0.8);
}

.runner-preview svg {
  width: 110%;
  height: auto;
}

.runner-controls {
  min-width: 260px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  justify-content: flex-start;
  padding: 14px 18px 16px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.75);
  box-shadow: 0 18px 40px rgba(3, 7, 18, 0.9);
}

.color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1rem;
}

.color-row label {
  flex: 1;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
}

.color-row input[type="color"] {
  flex: 0 0 70px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid #e5e7eb33;
  padding: 0;
  background: #020617;
  cursor: pointer;
}

/* Countdown Screen */

.countdown-number {
  background: radial-gradient(circle at 50% 0, var(--accent-teal) 0, #e5f4ff 30%, #ffffff 70%);
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 26px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.9);
}

#countdown-screen {
  font-size: 7rem;
  font-weight: 800;
  margin-top: 50px;
  color: #020617;
}

/* ---------- GAME SCREEN ---------- */

.game-screen {
  padding: 24px 32px 32px;
  background-color: #f9fafb;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 1100px;
  max-width: 100%;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
}

#game-screen .instructions {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #020617;
}

/* Context clues question area (kept in case you ever add back) */
.context-question {
  max-width: 900px;
  margin-bottom: 10px;
  font-size: 1.02rem;
  text-align: left;
  color: #111827;
  line-height: 1.4;
}

.context-question #context-sentence {
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 1.3rem;
}

.context-question #context-word .underlined {
  text-decoration: underline;
  font-weight: 700;
  font-size: 1.1rem;
}

.audio-controls {
  margin-bottom: 8px;
}

.answer-buttons {
  margin-bottom: 12px;
}

.repeat_btn {
  font-size: 1.4rem !important;
  font-weight: 600;
}

.answer-btn {
  font-size: 1.3rem;
  margin: 0 15px;
  padding: 10px 26px;
  margin-top: 20px;
}

.repeat_btn{
  font-weight: 400 !important;
  font-size: 1.3rem !important;
}

/* Phonics answer buttons – bigger, chunkier text */
.answer-buttons .answer-btn.phonics-answer {
  font-size: 2.4rem !important;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Context clues answer buttons – more text-y, smaller */
.answer-buttons .answer-btn.context-answer {
  font-size: 1.2rem !important;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ---------- TRACK & CARS ---------- */

#track {
  position: relative;
  width: 100%;
  height: 280px;
  background: url('bg.jpg') no-repeat center bottom;
  background-size: cover;
  border-radius: 18px;
  overflow: hidden;
  margin-top: 20px;
  box-shadow: inset 0 0 18px rgba(15, 23, 42, 0.7);
}

.runner {
  position: absolute;
  width: 190px;
  height: 120px;
  transition: left 0.5s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Separate “lanes” by vertical offset */
#runner-player {
  bottom: 32px;
}

#runner-ai1 {
  bottom: 72px;
}

#runner-ai2 {
  bottom: 112px;
}

#runner-ai3 {
  bottom: 152px;
}

.runner svg {
  width: 100%;
  height: auto;
}

/* Player position glow – race-car neons */
.runner.player {
  transition: box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.runner.player.rank-1 {
  box-shadow: 0 0 0 4px rgba(253, 224, 71, 0.95);
  animation: rankPulse1 1.1s ease-in-out infinite;
}

.runner.player.rank-2 {
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.95);
  animation: rankPulse2 1.2s ease-in-out infinite;
}

.runner.player.rank-3 {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.95);
  animation: rankPulse3 1.3s ease-in-out infinite;
}

.runner.player.rank-4 {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.95);
  opacity: 0.9;
}

@keyframes rankPulse1 {
  0%   { transform: translateY(0); box-shadow: 0 0 0 2px rgba(253, 224, 71, 0.7); }
  50%  { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(253, 224, 71, 1); }
  100% { transform: translateY(0); box-shadow: 0 0 0 2px rgba(253, 224, 71, 0.7); }
}

@keyframes rankPulse2 {
  0%   { box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.6); }
  50%  { box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.98); }
  100% { box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.6); }
}

@keyframes rankPulse3 {
  0%   { box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.6); }
  50%  { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.98); }
  100% { box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.6); }
}

/* Finish Screen */

.finish-message {
  background: radial-gradient(circle at 50% 0, #e5f4ff 0, #ffffff 55%);
  height: 400px;
  width: 600px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 26px;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.95);
}

#finish-screen h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #020617;
}

#finish-screen p {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #020617;
}

/* ===== ANSWER STATE COLORS (OVERRIDE BASE ORANGE BUTTON) ===== */

.answer-btn.correct {
  background: linear-gradient(135deg, var(--accent-teal), #16a34a) !important;
  color: #f9fafb !important;
  box-shadow:
    0 0 0 2px rgba(34, 197, 94, 0.7),
    0 14px 30px rgba(34, 197, 94, 0.9);
  transform: translateY(-1px);
}

.answer-btn.wrong {
  background: linear-gradient(135deg, #f97373, var(--accent-red)) !important;
  color: #111827 !important;
  box-shadow:
    0 0 0 2px rgba(220, 38, 38, 0.7),
    0 14px 30px rgba(248, 113, 113, 0.9);
  transform: translateY(0);
}

.answer-btn.correct,
.answer-btn.wrong {
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease,
    color 0.1s ease;
}

/* ---------- SKILL SEARCH BAR ---------- */

.skill-search {
  width: 100%;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skill-search-inner {
  width: 100%;
  max-width: 640px;
  padding: 10px 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.35), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  box-shadow: 0 16px 35px rgba(3, 7, 18, 0.95);
}

.skill-search-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #a5b4fc;
  opacity: 0.9;
  text-align: left;
}

.skill-search-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.96rem;
  color: var(--ink);
}

.skill-search-input::placeholder {
  color: #6b7280;
  font-size: 0.9rem;
}

.skill-search-hint {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- SKILL COLUMN / GROUP LAYOUT ---------- */

.skill-column-header {
  margin-bottom: 10px;
}

.skill-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.skill-chip {
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, var(--accent-teal), var(--accent-blue));
  color: #ecfdf5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.skill-chip.chip-blue {
  background: radial-gradient(circle at 0 0, #0ea5e9, #0369a1);
}

.skill-chip.chip-purple {
  background: radial-gradient(circle at 0 0, #a855f7, #6d28d9);
}

.skill-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.7);
}

.-secondary{
  font-size: 1rem;
  display: none;
}

.skill-group-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.skill-tag {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.skill-group-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.skill-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.6);
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, opacity 0.12s ease, transform 0.1s ease;
}

.skill-item:hover:not(.skill-disabled) {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.6);
  transform: translateY(-1px);
}

.skill-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.skill-name {
  font-size: 0.98rem;
  color: var(--ink);
}

.skill-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.skill-grade-pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  margin-right: 4px;
  font-size: 0.75rem;
  background: radial-gradient(circle at 0 0, var(--accent-yellow), var(--accent-orange));
  color: #111827;
}

/* Yellow highlight for matched text */
.skill-highlight {
  background: var(--accent-yellow);
  color: #111827;
  padding: 0 2px;
  border-radius: 3px;
}

.skill-options.context-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.skill-options.context-grid .skill-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5rem 0.75rem;
}

/* Context-mode layouts (kept if you ever re-add comprehension) */

.context-layout {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin: 1rem 0 1.5rem;
}

.context-question {
  flex: 1;
  text-align: left;
}

.context-question p {
  margin: 0.25rem 0;
}

.context-gif-panel {
  width: 220px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.context-gif {
  max-width: 100%;
  max-height: 200px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.context-gif.show-gif {
  opacity: 1;
  transform: scale(1);
}

/* turn the main inner panel into a “context-mode” layout */
#game-screen.context-mode .game-screen {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#game-screen.context-mode .answer-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto 1.5rem auto;
}

#game-screen.context-mode .answer-btn {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  padding-left: 2rem;
}

#game-screen.context-mode #context-question {
  max-width: 720px;
  margin: 0 auto 0.5rem auto;
  text-align: left;
}

/* Stronger, clearer hero title just on the home screen */
.home-screenn h1 {
  position: relative;
  display: inline-block;
  padding: 12px 42px 18px;
  margin-bottom: 26px;

  /* keep your all-caps look but give it its own dark pill */
  border-radius: 999px;
  background: radial-gradient(
    circle at 50% 0,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.9)
  );
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.95);
}

/* Strong text shadow for contrast over the bright blue */
/* Stronger, clearer hero title just on the home screen */
.home-screenn h1 {
  position: relative;
  display: inline-block;
  padding: 16px 48px 20px;
  margin-bottom: 26px;

  border-radius: 999px;
  background: radial-gradient(
    circle at 50% 0,
    rgba(15, 23, 42, 0.98),
    rgba(15, 23, 42, 0.9)
  );
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.95);

  font-weight: 900;
  font-size: 3.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f9fafb;
  text-align: center;
}

/* Top line: TURBO READING */
.home-screenn h1 {
  line-height: 1.1;
}

/* Bottom line: SPEEDWAY! – bold orange, super clear */
.home-screenn h1 span {
  display: block;
  margin-top: 6px;
  font-size: 3.6rem;
  letter-spacing: 0.2em;
  color: #f97316; /* bright race-car orange */
}

/* Strong text shadow for both lines so they pop on the blue */
.home-screenn h1,
.home-screenn h1 span {
  text-shadow:
    0 3px 10px rgba(0, 0, 0, 0.75),
    0 0 20px rgba(0, 0, 0, 0.4);
}


/* ---------- MEDIA QUERIES ---------- */

/* Large Devices (max-width: 1024px) */
@media (max-width: 1024px) {
  h1 {
    font-size: 3.8rem;
  }

  .tn {
    width: 60%;
  }

  .btn {
    font-size: 2rem;
  }

  .runner-preview {
    width: 280px;
    height: 200px;
  }

  .game-screen {
    width: 930px;
  }

  #track {
    height: 260px;
  }

  .runner {
    width: 170px;
    height: 110px;
  }

  #runner-player { bottom: 28px; }
  #runner-ai1    { bottom: 64px; }
  #runner-ai2    { bottom: 100px; }
  #runner-ai3    { bottom: 136px; }

  .answer-btn {
    font-size: 2rem;
  }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
  .skill-screen {
    width: 640px;
  }

  .skill-columns {
    flex-direction: column;
    align-items: stretch;
  }

  .game-screen {
    width: 740px;
  }

  #track {
    height: 240px;
  }

  .player-layout {
    flex-direction: column;
    align-items: center;
  }

  .runner-preview-wrapper {
    order: 1;
  }

  .runner-controls {
    order: 2;
  }

  .runner {
    width: 150px;
    height: 100px;
  }

  #runner-player { bottom: 26px; }
  #runner-ai1    { bottom: 58px; }
  #runner-ai2    { bottom: 90px; }
  #runner-ai3    { bottom: 122px; }
}

/* Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
  h1 {
    font-size: 2.8rem;
  }

  .skill-screen {
    width: 400px;
    min-height: 520px;
  }

  .tn {
    width: 80%;
  }

  .player-selection {
    width: 420px;
  }

  .game-screen {
    width: 480px;
    padding: 18px 16px 24px;
  }

  #track {
    height: 220px;
  }

  .runner {
    width: 135px;
    height: 92px;
  }

  #runner-player { bottom: 24px; }
  #runner-ai1    { bottom: 52px; }
  #runner-ai2    { bottom: 80px; }
  #runner-ai3    { bottom: 108px; }

  .finish-message {
    height: 400px;
    width: 400px;
  }

  .instructions {
    font-size: 1rem;
  }

  .repeat_btn {
    font-size: 1.1rem !important;
  }

  .answer-btn {
    font-size: 1.8rem;
    padding: 8px 20px;
  }
}

/* Extra Small (max-width: 320px) */
@media (max-width: 320px) {
  .skill-screen {
    width: 260px;
    min-height: 560px;
  }

  #skill-screen h1 {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .skill-options {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  .skill-options label {
    font-size: 0.85rem;
  }

  .game-screen {
    width: 300px;
  }

  #track {
    height: 190px;
  }

  .runner {
    width: 110px;
    height: 85px;
  }

  #runner-player { bottom: 20px; }
  #runner-ai1    { bottom: 44px; }
  #runner-ai2    { bottom: 68px; }
  #runner-ai3    { bottom: 92px; }
}
