/* ============================================================================
   CSS Variables & Reset
   ============================================================================ */
:root {
  /* Color Palette */
  --bg-dark: #0a0e27;
  --bg-medium: #151b3d;
  --bg-light: #1f2747;
  --bg-card: #252d52;

  --text-primary: #e8eaf6;
  --text-secondary: #b8bfdf;
  --muted: #7881a1;

  --accent-1: #ff6b9d;
  --accent-2: #c44569;
  --accent-3: #ffa07a;
  --accent-4: #f39c12;
  --accent-5: #f8b500;
  --accent-6: #00d2ff;
  --accent-7: #3867d6;
  --accent-8: #8e44ad;

  --success: #26de81;
  --warning: #fed330;
  --error: #fc5c65;

  --glow-primary: rgba(255, 107, 157, 0.4);
  --glow-success: rgba(38, 222, 129, 0.4);
  --glow-error: rgba(252, 92, 101, 0.4);
  --glow-blue: rgba(0, 210, 255, 0.4);

  /* Typography */
  --font-primary: "Lexend", sans-serif;
  --font-mono: "Space Mono", monospace;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

body {
  font-family: var(--font-primary);
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================================
   Header
   ============================================================================ */
.app-header {
  background: linear-gradient(
    135deg,
    rgba(21, 27, 61, 0.95) 0%,
    rgba(37, 45, 82, 0.95) 100%
  );
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--accent-1);
  padding: var(--spacing-md) var(--spacing-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.limit-badge {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-6), var(--accent-7));
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  box-shadow: 0 0 20px var(--glow-blue);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 20px var(--glow-blue);
  }
  50% {
    box-shadow: 0 0 30px var(--glow-blue);
  }
}

.game-title {
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px var(--glow-primary);
  letter-spacing: -1px;
}

.help-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-6);
  color: var(--accent-6);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--glow-blue);
}

.help-btn:hover {
  background: var(--accent-6);
  color: var(--bg-dark);
  box-shadow: 0 0 25px var(--glow-blue);
  transform: scale(1.1);
}

.record-display {
  display: flex;
  gap: var(--spacing-md);
}

.record-score {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-family: var(--font-mono);
  background: var(--bg-card);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 2px solid var(--accent-6);
  box-shadow: 0 0 15px var(--glow-blue);
}

.record-label {
  font-size: 12px;
  color: var(--muted);
}

.record-value {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent-6);
  text-shadow: 0 0 10px var(--accent-6);
  min-width: 35px;
  text-align: center;
}

.tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-1);
  text-shadow: 0 0 10px var(--accent-1);
  text-align: center;
  margin-top: 4px;
}

/* ============================================================================
   Overlays & Cards
   ============================================================================ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--spacing-lg);
  overflow-y: auto;
}

.overlay.visible {
  display: flex;
}

.card {
  background: linear-gradient(
    135deg,
    rgba(37, 45, 82, 0.95) 0%,
    rgba(31, 39, 71, 0.95) 100%
  );
  border: 2px solid var(--accent-1);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  max-width: 900px;
  width: 100%;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px var(--glow-primary);
  animation: slideIn 0.4s ease-out;
}

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

.card h2 {
  font-size: 36px;
  font-weight: 900;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(135deg, var(--accent-1), var(--accent-5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-6);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

/* ============================================================================
   Instructions
   ============================================================================ */
.instructions-content {
  max-height: 50vh;
  overflow-y: auto;
  padding-right: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.instructions-content::-webkit-scrollbar {
  width: 8px;
}

.instructions-content::-webkit-scrollbar-track {
  background: var(--bg-medium);
  border-radius: var(--radius-sm);
}

.instructions-content::-webkit-scrollbar-thumb {
  background: var(--accent-1);
  border-radius: var(--radius-sm);
}

.instructions-content p,
.instructions-content li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.instructions-content ul,
.instructions-content ol {
  padding-left: var(--spacing-lg);
}

.instructions-content strong {
  color: var(--text-primary);
  font-weight: 700;
}

.countdown {
  background: var(--bg-dark);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-5);
  margin-bottom: var(--spacing-lg);
  border: 2px solid var(--accent-5);
}

.countdown span {
  font-size: 32px;
  font-family: var(--font-mono);
}

/* ============================================================================
   Buttons
   ============================================================================ */
button {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: white;
  box-shadow: 0 4px 15px var(--glow-primary);
}

.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--glow-primary);
}

.primary:active:not(:disabled) {
  transform: translateY(0);
}

.chip {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid var(--accent-6);
}

.chip:hover:not(:disabled) {
  background: var(--bg-light);
  border-color: var(--accent-1);
}

/* ============================================================================
   Setup Form
   ============================================================================ */
.setup form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.setup label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  display: block;
}

.setup input[type="text"],
.setup select {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-family: var(--font-primary);
  background: var(--bg-dark);
  color: var(--text-primary);
  border: 2px solid var(--bg-light);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.setup input[type="text"]:focus,
.setup select:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 20px var(--glow-primary);
}

/* ============================================================================
   Game Container
   ============================================================================ */
.game-container {
  display: none;
  padding: var(--spacing-lg);
  max-width: 1600px;
  margin: 0 auto;
  gap: var(--spacing-lg);
}

.game-container.active {
  display: grid;
  grid-template-columns: 1fr 400px;
  grid-template-rows: 1fr;
}

/* ============================================================================
   Right Sidebar
   ============================================================================ */
.right-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  max-height: 100%;
  overflow-y: auto;
}

.right-sidebar::-webkit-scrollbar {
  width: 8px;
}

.right-sidebar::-webkit-scrollbar-track {
  background: var(--bg-medium);
  border-radius: var(--radius-sm);
}

.right-sidebar::-webkit-scrollbar-thumb {
  background: var(--accent-6);
  border-radius: var(--radius-sm);
}

/* ============================================================================
   Round Panel
   ============================================================================ */
.round-panel {
  background: linear-gradient(
    135deg,
    rgba(37, 45, 82, 0.95) 0%,
    rgba(31, 39, 71, 0.95) 100%
  );
  border: 2px solid var(--accent-6);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.2);
}

.round-labels {
  display: flex;
  justify-content: space-around;
  gap: var(--spacing-md);
}

.round-values {
  display: flex;
  justify-content: space-around;
  gap: var(--spacing-md);
}

.round-info,
.score-info,
.questions-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.round-label,
.score-label,
.questions-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.round-value,
.score-value,
.questions-value {
  font-size: 24px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--accent-6);
  text-shadow: 0 0 15px var(--accent-6);
}

/* ============================================================================
   Visualization Area
   ============================================================================ */
.viz-container {
  background: var(--bg-dark);
  border: 3px solid var(--accent-1);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 30px var(--glow-primary);
  position: relative;
  overflow: hidden;
  min-height: 700px;
  height: 100%;
}

.viz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.viz-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-6);
  font-family: var(--font-mono);
}

.zoom-controls {
  display: flex;
  gap: 4px;
}

.zoom-btn {
  background: var(--bg-card);
  border: 1px solid var(--accent-6);
  color: var(--accent-3);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.zoom-btn:hover {
  background: var(--accent-6);
  color: var(--text-primary);
  border-color: var(--accent-3);
  transform: scale(1.05);
}

.zoom-btn:active {
  transform: scale(0.95);
}

.zoom-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.canvas-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 550px;
}

#vectorCanvas {
  width: 100%;
  height: 100%;
  min-height: 550px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.3);
}

/* ============================================================================
   Question Panel
   ============================================================================ */
.question-panel {
  background: linear-gradient(
    135deg,
    rgba(37, 45, 82, 0.95) 0%,
    rgba(31, 39, 71, 0.95) 100%
  );
  border: 2px solid var(--accent-6);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.2);
}

.question-panel h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--accent-1);
  text-align: center;
  margin: 0;
}

/* ============================================================================
   History Panel
   ============================================================================ */
.history-panel {
  background: linear-gradient(
    135deg,
    rgba(37, 45, 82, 0.95) 0%,
    rgba(31, 39, 71, 0.95) 100%
  );
  border: 2px solid var(--accent-6);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.2);
}

.history-panel h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--accent-1);
  text-align: center;
  margin: 0;
}

.history-content {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  max-height: 180px;
}

.history-content::-webkit-scrollbar {
  width: 6px;
}

.history-content::-webkit-scrollbar-track {
  background: var(--bg-medium);
  border-radius: var(--radius-sm);
}

.history-content::-webkit-scrollbar-thumb {
  background: var(--accent-6);
  border-radius: var(--radius-sm);
}

.history-item {
  background: var(--bg-dark);
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--bg-light);
}

.history-question {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-5);
  margin-bottom: 4px;
}

.history-answer {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
}

.history-answer.above {
  color: var(--accent-3);
}

.history-answer.below {
  color: var(--accent-6);
}

.history-answer.on {
  color: var(--success);
}

.history-empty {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: var(--spacing-md);
}

.question-type-selector {
  display: flex;
  gap: var(--spacing-md);
  background: var(--bg-dark);
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
}

.type-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  background: var(--bg-medium);
  color: var(--text-secondary);
  border: 2px solid var(--bg-light);
  transition: all 0.3s ease;
}

.type-btn.active {
  background: linear-gradient(135deg, var(--accent-6), var(--accent-7));
  color: white;
  border-color: var(--accent-6);
  box-shadow: 0 0 20px var(--glow-blue);
}

.type-btn:hover:not(.active) {
  border-color: var(--accent-6);
  color: var(--text-primary);
}

.question-form {
  display: none;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.question-form.active {
  display: flex;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.polynomial-inputs {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.coeff-input-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--bg-dark);
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  border: 2px solid var(--bg-light);
}

.coeff-label {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-6);
  min-width: 50px;
  font-weight: 700;
}

.coeff-input {
  flex: 1;
  padding: 8px 10px;
  font-size: 14px;
  font-family: var(--font-mono);
  background: var(--bg-medium);
  color: var(--text-primary);
  border: 2px solid var(--bg-light);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.coeff-input:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 15px var(--glow-primary);
}

.polynomial-preview {
  background: var(--bg-dark);
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  border: 2px solid var(--accent-5);
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent-5);
  text-align: center;
  font-weight: 700;
  text-shadow: 0 0 10px var(--accent-5);
}

.coord-inputs {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.coord-input {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  font-family: var(--font-mono);
  background: var(--bg-dark);
  color: var(--text-primary);
  border: 2px solid var(--bg-light);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  text-align: center;
}

.coord-input-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.coord-label {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-6);
  min-width: 20px;
  font-weight: 700;
}

.coord-input:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 20px var(--glow-primary);
}

.action-btn {
  padding: 10px 20px;
  font-size: 14px;
}

/* ============================================================================
   Answer Overlay
   ============================================================================ */
.answer-card {
  max-width: 600px;
}

.answer-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  align-items: center;
}

.answer-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent-6);
  width: 100%;
}

.answer-stats {
  display: flex;
  gap: var(--spacing-xl);
  justify-content: center;
  width: 100%;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
}

.stat-value {
  font-size: 32px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--accent-6);
  text-shadow: 0 0 15px var(--accent-6);
}

/* ============================================================================
   Round Complete Overlay
   ============================================================================ */
.complete-card {
  max-width: 700px;
}

.complete-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  align-items: center;
}

.vector-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  background: var(--bg-dark);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  border: 3px solid var(--success);
  box-shadow: 0 0 30px var(--glow-success);
  width: 100%;
}

.vector-label {
  font-size: 18px;
  color: var(--muted);
  text-transform: uppercase;
}

.vector-value {
  font-size: 48px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--success);
  text-shadow: 0 0 20px var(--glow-success);
}

.complete-stats {
  display: flex;
  gap: var(--spacing-xl);
  justify-content: center;
  width: 100%;
}

.stat-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  background: var(--bg-dark);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent-6);
  flex: 1;
}

.stat-large .stat-value {
  font-size: 42px;
}

/* ============================================================================
   Game Complete Overlay
   ============================================================================ */
.results {
  max-width: 800px;
}

.final-stats {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.final-record {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  background: var(--bg-dark);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  border: 3px solid var(--accent-5);
  box-shadow: 0 0 30px rgba(248, 181, 0, 0.4);
}

.final-label {
  font-size: 20px;
  color: var(--muted);
  text-transform: uppercase;
}

.final-value {
  font-size: 64px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--accent-5);
  text-shadow: 0 0 25px var(--accent-5);
  animation: pulse 2s ease-in-out infinite;
}

.level-info {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  font-size: 18px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.level-info span {
  color: var(--accent-6);
  font-weight: 900;
}

.leaderboard-section {
  background: var(--bg-dark);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent-6);
  margin-bottom: var(--spacing-lg);
}

.leaderboard-section h3 {
  text-align: center;
  margin: 0 0 var(--spacing-lg) 0;
  color: var(--accent-6);
}

.leaderboard {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  max-height: 300px;
  overflow-y: auto;
}

.leaderboard::-webkit-scrollbar {
  width: 8px;
}

.leaderboard::-webkit-scrollbar-track {
  background: var(--bg-medium);
  border-radius: var(--radius-sm);
}

.leaderboard::-webkit-scrollbar-thumb {
  background: var(--accent-6);
  border-radius: var(--radius-sm);
}

.leaderboard-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  background: var(--bg-medium);
  border-radius: var(--radius-md);
  border: 2px solid var(--bg-light);
  transition: all 0.3s ease;
}

.leaderboard-entry.current {
  border-color: var(--accent-1);
  box-shadow: 0 0 20px var(--glow-primary);
}

.leaderboard-rank {
  font-size: 20px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--accent-5);
  min-width: 40px;
}

.leaderboard-name {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.leaderboard-score {
  font-size: 24px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--accent-6);
}

.results-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
}

/* ============================================================================
   Responsive Design
   ============================================================================ */
@media (max-width: 1024px) {
  .game-container.active {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .right-sidebar {
    order: -1;
  }

  .game-title {
    font-size: 36px;
  }

  .limit-badge {
    font-size: 18px;
    padding: 6px 12px;
  }

  .canvas-wrapper {
    min-height: 400px;
  }

  #vectorCanvas {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .app-header {
    padding: var(--spacing-md);
  }

  .title-wrap {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .game-title {
    font-size: 28px;
  }

  .question-type-selector {
    flex-direction: column;
  }

  .canvas-wrapper {
    min-height: 300px;
  }

  #vectorCanvas {
    height: 300px;
  }
}
