/* Complete redesign with Troll Taps inspired navigation */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap");

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

:root {
  /* Dark theme colors */
  --bg-primary: #0a0e1a;
  --bg-secondary: #141824;
  --bg-tertiary: #1e2330;

  /* Neon accent colors */
  --neon-cyan: #00f0ff;
  --neon-pink: #ff006e;
  --neon-purple: #8b5cf6;
  --neon-green: #00ff88;
  --neon-yellow: #ffeb3b;

  /* Text colors */
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #64748b;

  /* UI colors */
  --border: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(139, 92, 246, 0.3);
  --success: #00ff88;
  --danger: #ff006e;
  --warning: #ffeb3b;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.5);
  --glow-pink: 0 0 20px rgba(255, 0, 110, 0.5);
  --glow-purple: 0 0 20px rgba(139, 92, 246, 0.5);
}

body {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  /* Ensure body is scrollable */
  overflow-y: auto;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(255, 0, 110, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 20px;
}

/* Updated header layout with navigation on the right */
.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  position: relative;
  flex-wrap: wrap;
  gap: 24px;
}

.game-header h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  animation: glow-pulse 3s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Separate styling for emoji without gradient */
.game-header h1 .emoji {
  font-size: 48px;
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5));
}

/* Gradient only applied to text, not emoji */
.game-header h1 .title-text {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 50%, var(--neon-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

@keyframes glow-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

/* New pill-style navigation matching Troll Taps */
.nav-pills {
  display: flex;
  gap: 8px;
  background: rgba(30, 35, 48, 0.6);
  padding: 8px;
  border-radius: 50px;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.nav-pill {
  padding: 12px 24px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  font-family: "Space Grotesk", sans-serif;
}

.nav-pill:hover {
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.15);
}

.nav-pill.active {
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* New gradient button style for main CTA */
.btn-gradient {
  padding: 20px 60px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: "Space Grotesk", sans-serif;
  position: relative;
  overflow: hidden;
  max-width: 400px;
  width: 100%;
}

.btn-gradient::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-gradient:hover::before {
  left: 100%;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.6), var(--glow-purple);
}

.btn-gradient:active {
  transform: translateY(0);
}

.game-header p {
  color: var(--text-secondary);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Tabs Navigation */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  background: var(--bg-secondary);
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow-x: auto;
  box-shadow: var(--shadow-md);
}

.tab {
  padding: 14px 28px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  font-family: "Space Grotesk", sans-serif;
}

.tab:hover {
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.15);
}

.tab.active {
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(0, 240, 255, 0.2));
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.5);
}

/* Tab Content */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
  /* Allow tab content to expand and be scrollable */
  min-height: auto;
  overflow: visible;
}

.tab-content.active {
  display: block;
}

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

/* HUD */
.hud {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hud-item {
  background: var(--bg-secondary);
  padding: 20px 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
  min-width: 140px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.hud-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
  opacity: 0.6;
}

.hud-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--glow-purple);
  border-color: var(--border-glow);
}

.hud-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-family: "JetBrains Mono", monospace;
}

.hud-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: "JetBrains Mono", monospace;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Game Board */
.game-board {
  display: grid;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto 48px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  padding: 32px;
  background: var(--bg-secondary);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.game-board.shape-circle .pad {
  border-radius: 50%;
}

.game-board.shape-hex .pad {
  clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
}

.game-board.shape-oct .pad {
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.pad {
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: var(--shadow-md), inset 0 2px 4px rgba(0, 0, 0, 0.3);
  background: var(--pad-color, #666);
  /* Added color property to enable currentColor usage in shadows */
  color: var(--pad-color, #666);
}

.pad::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pad:hover:not(.disabled)::before {
  opacity: 1;
}

.pad:hover:not(.disabled) {
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 30px currentColor;
  border-color: rgba(255, 255, 255, 0.4);
}

.pad.active {
  /* Enhanced glow with even stronger brightness and multiple glow layers */
  transform: scale(1.2) translateY(-8px);
  filter: brightness(2.8) saturate(2) contrast(1.3);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.8), 0 0 50px var(--pad-color), 0 0 100px var(--pad-color), 0 0 150px
    var(--pad-color), 0 0 200px var(--pad-color), inset 0 0 40px rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 1);
  animation: padGlow 0.3s ease-in-out;
}

/* Stronger pulsing animation for more dramatic effect */
@keyframes padGlow {
  0%,
  100% {
    filter: brightness(2.8) saturate(2) contrast(1.3);
  }
  50% {
    filter: brightness(3.5) saturate(2.5) contrast(1.4);
  }
}

.pad.disabled {
  /* Reduced opacity and removed grayscale for better visibility during sequence */
  cursor: not-allowed;
  opacity: 0.7;
  filter: brightness(0.6);
}

/* Overlays */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 26, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(12px);
  animation: fadeIn 0.3s ease-in-out;
}

.overlay.hidden {
  display: none;
}

.overlay-content {
  background: var(--bg-secondary);
  padding: 48px;
  border-radius: 24px;
  border: 1px solid var(--border-glow);
  max-width: 540px;
  width: 90%;
  box-shadow: var(--shadow-lg), var(--glow-purple);
  position: relative;
  overflow: hidden;
}

.overlay-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
}

.overlay-content h2 {
  font-size: 36px;
  margin-bottom: 32px;
  text-align: center;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-primary);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 16px;
  font-family: "Space Grotesk", sans-serif;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--neon-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1), var(--glow-purple);
}

.form-group small {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

/* Buttons */
.btn {
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: "Space Grotesk", sans-serif;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.6), var(--glow-purple);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-tertiary);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--neon-purple);
  box-shadow: var(--shadow-md), var(--glow-purple);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #c70055);
  box-shadow: 0 4px 16px rgba(255, 0, 110, 0.4);
}

.btn-danger:hover {
  box-shadow: 0 8px 24px rgba(255, 0, 110, 0.6), var(--glow-pink);
}

/* Countdown */
.countdown {
  font-size: 160px;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: countdownPulse 1s ease-in-out;
  font-family: "JetBrains Mono", monospace;
  text-shadow: 0 0 60px rgba(139, 92, 246, 0.8);
}

@keyframes countdownPulse {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Highscore Table */
.highscore-table {
  background: var(--bg-secondary);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 32px;
  box-shadow: var(--shadow-lg);
}

.highscore-table h3 {
  padding: 24px 32px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(0, 240, 255, 0.1));
  border-bottom: 1px solid var(--border-glow);
  font-size: 24px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--bg-tertiary);
}

th {
  padding: 18px 24px;
  text-align: left;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-family: "JetBrains Mono", monospace;
}

td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  font-family: "Space Grotesk", sans-serif;
}

tbody tr {
  transition: all 0.2s ease;
}

tbody tr:hover {
  background: rgba(139, 92, 246, 0.08);
}

tbody tr:last-child td {
  border-bottom: none;
}

.rank {
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
  color: var(--neon-purple);
}

.rank-1 {
  color: var(--neon-yellow);
  text-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
}

.rank-2 {
  color: var(--text-secondary);
  text-shadow: 0 0 10px rgba(160, 174, 192, 0.3);
}

.rank-3 {
  color: #cd7f32;
  text-shadow: 0 0 10px rgba(205, 127, 50, 0.3);
}

/* Help Page */
.help-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-secondary);
  padding: 48px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.help-content h2 {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: 700;
}

.help-content h2:first-child {
  margin-top: 0;
}

.help-content h3 {
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 600;
}

.help-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 16px;
}

.help-content ul {
  list-style: none;
  padding-left: 0;
}

.help-content li {
  padding: 12px 0 12px 32px;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.7;
}

.help-content li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--neon-purple);
  font-size: 18px;
  font-weight: 700;
}

/* Admin Panel Inline Styles */
.admin-panel {
  max-width: 900px;
  margin: 0 auto;
}

.settings-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 32px;
}

.setting-card {
  background: var(--bg-secondary);
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.setting-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg), var(--glow-purple);
}

.setting-card h3 {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  font-size: 22px;
  font-weight: 700;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.setting-row:last-child {
  margin-bottom: 0;
}

.setting-row label {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 15px;
}

.setting-row input[type="number"],
.setting-row select {
  padding: 10px 16px;
  background: var(--bg-primary);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 15px;
  min-width: 140px;
  font-family: "Space Grotesk", sans-serif;
  transition: all 0.3s ease;
}

.setting-row input[type="number"]:focus,
.setting-row select:focus {
  outline: none;
  border-color: var(--neon-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.setting-row input[type="checkbox"] {
  width: 24px;
  height: 24px;
  cursor: pointer;
  accent-color: var(--neon-purple);
}

.button-group {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.button-group .btn {
  width: auto;
  flex: 1;
}

.status-message {
  padding: 20px 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: none;
  font-weight: 600;
  border: 2px solid;
}

.status-message.success {
  background: rgba(0, 255, 136, 0.1);
  border-color: var(--success);
  color: var(--success);
}

.status-message.error {
  background: rgba(255, 0, 110, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}

.qr-upload-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--border);
}

.qr-preview {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  text-align: center;
}

.qr-preview img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.file-input-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.file-input-wrapper input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Completed file-input-label rule and added remaining styles */
.file-input-label {
  display: block;
  padding: 12px 20px;
  background: rgba(139, 92, 246, 0.1);
  border: 2px solid var(--neon-purple);
  border-radius: 12px;
  color: var(--neon-purple);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.file-input-label:hover {
  background: rgba(139, 92, 246, 0.2);
}

.display-link {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(0, 240, 255, 0.1);
  border: 2px solid var(--neon-cyan);
  border-radius: 12px;
  color: var(--neon-cyan);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

.display-link:hover {
  background: rgba(0, 240, 255, 0.2);
  transform: translateY(-2px);
}

/* Weekly Highscores Container */
.weekly-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  /* Allow container to expand with content */
  min-height: auto;
  padding-bottom: 40px;
}

/* Added modal styles for score editing */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 26, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(12px);
  animation: fadeIn 0.3s ease-in-out;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--bg-secondary);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-glow);
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg), var(--glow-purple);
  position: relative;
  overflow: hidden;
}

.modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
}

.modal-content h3 {
  font-size: 28px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Responsive Styles for Tablet */
@media (max-width: 1024px) {
  .container {
    padding: 28px 18px;
  }

  .game-header h1 {
    font-size: 42px;
  }

  .game-header h1 .emoji {
    font-size: 42px;
  }

  .game-board {
    max-width: 600px;
    padding: 28px;
  }
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
  .container {
    padding: 24px 16px;
  }

  .game-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .game-header h1 {
    font-size: 36px;
  }

  .game-header h1 .emoji {
    font-size: 36px;
  }

  .nav-pills {
    width: 100%;
    justify-content: space-between;
  }

  .nav-pill {
    padding: 10px 16px;
    font-size: 14px;
    flex: 1;
    text-align: center;
  }

  .btn-gradient {
    padding: 18px 48px;
    font-size: 16px;
    max-width: 100%;
  }

  .hud {
    gap: 12px;
  }

  .hud-item {
    min-width: 110px;
    padding: 16px 24px;
  }

  .hud-value {
    font-size: 28px;
  }

  .game-board {
    gap: 16px;
    padding: 24px;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .countdown {
    font-size: 100px;
  }

  .overlay-content {
    padding: 32px 24px;
    width: 95%;
  }

  .overlay-content h2 {
    font-size: 28px;
  }

  .button-group {
    flex-direction: column;
  }

  .help-content {
    padding: 32px 24px;
  }

  .setting-card {
    padding: 24px 20px;
  }

  .setting-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .setting-row input[type="number"],
  .setting-row select {
    width: 100%;
  }

  table {
    font-size: 14px;
  }

  th,
  td {
    padding: 14px 12px;
  }

  th:nth-child(5),
  td:nth-child(5) {
    display: none;
  }

  /* Added modal responsive styles for mobile */
  .modal-content {
    padding: 32px 24px;
    width: 95%;
  }

  .modal-content h3 {
    font-size: 24px;
  }
}

/* Responsive Styles for Small Mobile */
@media (max-width: 480px) {
  .game-header h1 {
    font-size: 28px;
  }

  .game-header h1 .emoji {
    font-size: 28px;
  }

  .nav-pills {
    gap: 4px;
    padding: 6px;
  }

  .nav-pill {
    padding: 8px 10px;
    font-size: 12px;
  }

  .btn-gradient {
    padding: 16px 40px;
    font-size: 15px;
  }

  .hud {
    gap: 10px;
  }

  .hud-item {
    min-width: 90px;
    padding: 14px 18px;
  }

  .hud-label {
    font-size: 11px;
  }

  .hud-value {
    font-size: 24px;
  }

  .game-board {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 12px;
    padding: 20px;
  }

  .countdown {
    font-size: 80px;
  }

  .overlay-content {
    padding: 28px 20px;
  }

  .overlay-content h2 {
    font-size: 24px;
  }

  .form-group input {
    padding: 14px 18px;
    font-size: 15px;
  }

  .btn {
    padding: 14px 32px;
    font-size: 15px;
  }

  .help-content {
    padding: 28px 20px;
  }

  .help-content h2 {
    font-size: 26px;
  }

  .help-content h3 {
    font-size: 20px;
  }

  .help-content p,
  .help-content li {
    font-size: 15px;
  }

  .setting-card {
    padding: 20px 16px;
  }

  .setting-card h3 {
    font-size: 20px;
  }

  .setting-row label {
    font-size: 14px;
  }

  table {
    font-size: 13px;
  }

  th,
  td {
    padding: 12px 10px;
  }

  th:nth-child(4),
  td:nth-child(4) {
    display: none;
  }

  /* Added modal responsive styles for small mobile */
  .modal-content {
    padding: 28px 20px;
  }

  .modal-content h3 {
    font-size: 22px;
  }
}
