/**
 * Styles for Flappy DODO game
 */

.flappy-dodo-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: 'Arial', sans-serif;
}

/* Menu Screen - Enhanced */
.menu-screen {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  max-width: 520px;
  width: 100%;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
  animation: menuFadeIn 0.4s ease;
}

@keyframes menuFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.game-title {
  font-family: 'Bangers', cursive;
  font-size: 54px;
  font-weight: 400;
  letter-spacing: 2px;
  margin: 0 0 10px 0;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(240, 147, 251, 0.5);
}

.game-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 30px 0;
}

.menu-section {
  margin: 30px 0;
}

.menu-section h3 {
  font-family: 'Bangers', cursive;
  color: white;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.button-group {
  display: flex;
  gap: 10px;
  justify-content: center;
}

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

.mode-button {
  flex: 1;
  min-height: 56px;
  padding: 16px 28px;
  font-size: 18px;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.mode-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

.mode-button:hover::before {
  left: 100%;
}

.mode-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.mode-button:active {
  transform: translateY(-1px);
}

.mode-button.selected {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
}

/* Melody selection buttons */
.melody-group {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 5px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Hide scrollbar but keep functionality */
.melody-group::-webkit-scrollbar {
  height: 6px;
}

.melody-group::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.melody-group::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 3px;
}

.melody-group::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2, #667eea);
}

.melody-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  font-size: 13px;
  font-weight: bold;
  border: 3px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0; /* Prevent buttons from shrinking in scroll container */
  min-width: 85px;
  max-width: 85px;
  height: 85px;
  white-space: normal; /* Allow text to wrap */
  text-align: center;
  line-height: 1.2;
  position: relative;
  overflow: visible;
}

.daily-challenge-banner {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
  color: white;
  font-size: 8px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.5);
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.melody-button .icon {
  font-size: 28px;
  line-height: 1;
}

.melody-button .text {
  font-size: 11px;
  line-height: 1.2;
}

.melody-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.melody-button.selected {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-color: white;
  transform: scale(1.05);
}

/* Synth selection buttons - 4 in a row! */
.synth-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 8px;
}

.synth-button {
  padding: 10px 8px;
  font-size: 14px;
  font-weight: bold;
  border: 3px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.synth-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.synth-button.selected {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  border-color: white;
  transform: scale(1.05);
}

.difficulty-button {
  min-height: 56px;
  padding: 16px 28px;
  font-size: 19px;
  font-weight: 700;
  border: none;
  color: white;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.difficulty-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.difficulty-button:hover::after {
  width: 300px;
  height: 300px;
}

.difficulty-button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.difficulty-button:active {
  transform: translateY(-2px) scale(0.98);
}

.difficulty-button.practice {
  background: linear-gradient(135deg, #4e54c8 0%, #8f94fb 100%);
}

.difficulty-button.easy {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.difficulty-button.hard {
  background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.difficulty-button.easy-60 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.difficulty-button.hard-60 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.difficulty-button:disabled {
  background: rgba(100, 100, 100, 0.3);
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.difficulty-button:disabled:hover {
  transform: none;
  box-shadow: none;
}

.practice-note {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.practice-quickstart-card {
  margin: 18px 0;
  padding: 16px;
  background: rgba(15, 52, 96, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  text-align: left;
}

.practice-quickstart-card h4 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #f6d365;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.practice-quickstart-card ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.practice-quickstart-card .quickstart-challenge {
  color: #9be7ff;
  font-weight: 600;
}

.practice-quickstart-card .quickstart-ability {
  color: #fdd694;
  font-weight: 600;
}

.practice-quickstart-card .quickstart-tip {
  color: rgba(255, 255, 255, 0.78);
}

.practice-note.practice-tip {
  color: rgba(255, 255, 255, 0.76);
}

.practice-note.practice-status {
  color: rgba(255, 255, 255, 0.58);
}

.practice-subleaderboard {
  margin-top: 10px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.practice-subleaderboard li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.practice-subleaderboard .name {
  font-weight: 600;
}

.practice-subleaderboard .score {
  font-weight: 700;
  color: #e6e8ff;
}

.unlock-hint {
  margin-top: 15px;
  padding: 12px;
  background: rgba(255, 215, 0, 0.15);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  color: #FFD700;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.high-score {
  margin: 20px 0;
  font-size: 24px;
  color: #f5576c;
  font-weight: bold;
}

.controls-hint {
  margin-top: 30px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.controls-hint p {
  margin: 5px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.back-button {
  margin-top: 16px;
  min-height: 50px;
  padding: 14px 32px;
  font-size: 17px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

.back-button:active {
  transform: translateY(0);
}

/* Game Over Overlay */
.game-over-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
  backdrop-filter: blur(5px);
  padding: 10px;
}

/* Game Over Screen - WITH SCROLLING! */
.game-over-screen {
  background: rgba(0, 0, 0, 0.9);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
  max-width: 700px;
  width: 100%;
  max-height: 95vh;
  text-align: center;
  border: 3px solid rgba(255, 255, 255, 0.2);
  animation: slideUp 0.4s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .game-over-screen {
    padding: 40px;
    width: 90%;
    max-height: 85vh;
  }
}

/* Custom scrollbar for game over screen and menu */
.game-over-screen::-webkit-scrollbar,
.menu-screen::-webkit-scrollbar {
  width: 10px;
}

.game-over-screen::-webkit-scrollbar-track,
.menu-screen::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.game-over-screen::-webkit-scrollbar-thumb,
.menu-screen::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 10px;
}

.game-over-screen::-webkit-scrollbar-thumb:hover,
.menu-screen::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2, #667eea);
}

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

.game-over-title {
  font-size: 36px;
  margin: 0 0 20px 0;
  color: white;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
  .game-over-title {
    font-size: 48px;
    margin: 0 0 30px 0;
  }
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 20px;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .stats-container {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
  }
}

@media (min-width: 768px) {
  .stats-container {
    padding: 25px;
    margin-bottom: 30px;
    gap: 30px;
  }
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.stat:last-child {
  border-bottom: none;
}

.stat-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .stat-label {
    font-size: 14px;
  }
}

.stat-value {
  color: #38ef7d;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

@media (min-width: 768px) {
  .stat-value {
    font-size: 40px;
  }
}

.new-high-score {
  margin-top: 20px;
  font-size: 28px;
  color: #f5576c;
  animation: pulse 1s infinite;
}

.melody-info {
  color: white;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  padding: 10px 16px;
  border-radius: 12px;
  margin-bottom: 15px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  word-wrap: break-word;
  box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
}

@media (min-width: 768px) {
  .melody-info {
    padding: 12px 20px;
    margin-bottom: 20px;
    font-size: 17px;
  }
}

.play-again-button {
  min-height: 60px;
  padding: 18px 40px;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border: none;
  color: white;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 100%;
  box-shadow: 0 8px 24px rgba(245, 87, 108, 0.4);
  position: relative;
  overflow: hidden;
}

.play-again-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.play-again-button:hover::before {
  width: 400px;
  height: 400px;
}

.play-again-button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px rgba(245, 87, 108, 0.6);
}

.play-again-button:active {
  transform: translateY(-2px) scale(0.98);
}

/* Modern Audio Playback */
.audio-playback-modern {
  margin: 15px 0;
  padding: 16px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .audio-playback-modern {
    margin: 20px 0;
    padding: 24px;
  }
}

.audio-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.audio-title {
  color: white;
  font-size: 17px;
  margin: 0;
  font-weight: 600;
  flex: 1;
  min-width: 0;
}

@media (min-width: 768px) {
  .audio-title {
    font-size: 20px;
  }
}

.synth-badge {
  font-size: 13px;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  color: white;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.audio-player-container {
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.modern-audio-player {
  width: 100%;
  height: 40px;
  border-radius: 8px;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (min-width: 480px) {
  .button-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

.download-btn,
.suno-upload-button {
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  text-align: center;
  flex: 1;
  min-width: 140px;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .download-btn,
  .suno-upload-button {
    padding: 14px 24px;
    font-size: 16px;
  }
}

.download-btn {
  background: linear-gradient(135deg, #11998e, #38ef7d);
  color: white;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 239, 125, 0.5);
}

.suno-upload-button {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.suno-upload-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(118, 75, 162, 0.5);
}

.suno-upload-button:disabled {
  background: rgba(100, 100, 100, 0.5);
  cursor: not-allowed;
  transform: none;
  opacity: 0.6;
}

.suno-options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

@media (min-width: 480px) {
  .suno-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

.option-box {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 768px) {
  .option-box {
    padding: 14px;
  }
}

.option-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 2px;
}

@media (min-width: 768px) {
  .option-label {
    font-size: 11px;
  }
}

.style-select,
.mode-select {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: white;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.style-select:hover,
.mode-select:hover {
  background-color: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
}

.style-select:focus,
.mode-select:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.6);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.checkbox-option:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
}

.checkbox-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #667eea;
}

.checkbox-option label {
  color: white;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  flex: 1;
  margin: 0;
}

.upload-info-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  text-align: center;
  margin-top: 8px;
  font-style: italic;
  word-wrap: break-word;
  padding: 0 10px;
}

/* Legacy audio playback (for compatibility) */
.audio-playback {
  margin: 20px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.download-button {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  border: none;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
}

.download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(56, 239, 125, 0.4);
}

/* Keyboard Hints */
.keyboard-hints {
  margin-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

.keyboard-hints p {
  margin: 5px 0;
}

.practice-banner {
  margin-top: 16px;
  padding: 10px 16px;
  background: rgba(78, 84, 200, 0.28);
  border: 1px solid rgba(143, 148, 251, 0.4);
  border-radius: 12px;
  color: #dce1ff;
  font-weight: 600;
  text-align: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 28px rgba(78, 84, 200, 0.25);
}

.practice-banner-tip {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: rgba(230, 232, 255, 0.85);
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

@keyframes scoreUpdate {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
    color: #38ef7d;
  }
  100% {
    transform: scale(1);
  }
}

/* Game Canvas Specific */
.game-canvas {
  animation: fadeIn 0.5s ease;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none; /* Prevent pull-to-refresh and zoom */
}

.game-canvas-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

/* Mobile Optimizations */
@media (max-width: 850px) {
  .flappy-dodo-container {
    padding: 10px;
    align-items: flex-start;
  }
  
  .menu-screen {
    padding: 30px 20px;
    max-width: 100%;
  }
  
  .game-title {
    font-size: 52px;
  }
  
  .game-subtitle {
    font-size: 18px;
  }
  
  .menu-section {
    margin: 20px 0;
  }
  
  .menu-section h3 {
    font-family: 'Bangers', cursive;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
  }
  
  .mode-button {
    padding: 12px 20px;
    font-size: 16px;
  }
  
  .melody-button {
    padding: 10px 15px;
    font-size: 14px;
    min-width: 90px;
  }
  
  .synth-group {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .synth-button {
    padding: 10px 6px;
    font-size: 13px;
  }
  
  .difficulty-button {
    padding: 12px 20px;
    font-size: 16px;
  }

  .practice-note {
    font-size: 13px;
  }

  .practice-banner {
    font-size: 14px;
    margin-top: 12px;
  }

  .practice-subleaderboard li {
    font-size: 12px;
    padding: 6px 10px;
  }

  .practice-banner-tip {
    font-size: 12px;
  }
  
  .controls-hint {
    padding: 12px;
    margin-top: 20px;
  }
  
  .controls-hint p {
    font-size: 13px;
  }
  
  .keyboard-hints p {
    font-size: 14px;
  }
}

@media (max-width: 750px) {
  .flappy-dodo-container {
    padding: 5px;
  }
  
  .menu-screen {
    padding: 25px 15px;
    border-radius: 15px;
  }
  
  .game-title {
    font-size: 42px;
    margin-bottom: 5px;
  }
  
  .game-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  .menu-section {
    margin: 15px 0;
  }
  
  .menu-section h3 {
    font-family: 'Bangers', cursive;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 10px;
  }
  
  .mode-button {
    padding: 10px 15px;
    font-size: 15px;
    border-width: 2px;
  }
  
  .melody-button {
    padding: 8px 12px;
    font-size: 13px;
    min-width: 80px;
    border-width: 2px;
  }
  
  .synth-button {
    font-size: 12px;
    padding: 8px 4px;
  }
  
  .difficulty-button {
    padding: 10px 15px;
    font-size: 15px;
  }
  
  .practice-note {
    font-size: 12px;
  }
  
  .practice-banner {
    font-size: 12px;
  }

  .practice-subleaderboard li {
    font-size: 11px;
  }

  .practice-banner-tip {
    font-size: 11px;
  }
  
  .controls-hint {
    padding: 10px;
    margin-top: 15px;
  }
  
  .controls-hint p {
    font-size: 12px;
    margin: 3px 0;
  }
  
  .back-button {
    padding: 10px 20px;
    font-size: 14px;
    margin-top: 15px;
  }
  
  .keyboard-hints {
    margin-top: 10px;
  }
  
  .keyboard-hints p {
    font-size: 13px;
    margin: 3px 0;
  }
}

@media (max-width: 650px) {
  .menu-screen {
    padding: 20px 12px;
  }
  
  .game-title {
    font-size: 36px;
  }
  
  .game-subtitle {
    font-size: 14px;
  }
  
  .menu-section h3 {
    font-size: 15px;
  }
  
  .button-group {
    gap: 8px;
  }
  
  .mode-button {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .melody-group {
    gap: 6px;
  }
  
  .melody-button {
    padding: 8px 10px;
    font-size: 12px;
    min-width: 70px;
  }
  
  .synth-button {
    font-size: 11px;
    padding: 8px 2px;
  }
  
  .difficulty-button {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .practice-note {
    font-size: 11px;
  }
  
  .practice-banner {
    font-size: 11px;
  }

  .practice-subleaderboard li {
    font-size: 10px;
  }

  .practice-banner-tip {
    font-size: 10px;
  }
  
  .unlock-hint {
    font-size: 12px;
    padding: 10px;
  }
  
  .controls-hint p {
    font-size: 11px;
  }
  
  .back-button {
    font-size: 13px;
  }
  
  .keyboard-hints p {
    font-size: 12px;
  }
}

/* Prevent mobile scrolling and zooming during gameplay */
body.flappy-playing {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Touch ripple effect for visual feedback */
@keyframes tapRipple {
  0% {
    transform: scale(0.5);
    opacity: 0.6;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Loading animations for Suno generation */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  margin: 20px 0;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.loading-dot {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.loading-text {
  color: white;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  animation: pulse 2s ease-in-out infinite;
}

.loading-subtext {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  text-align: center;
  max-width: 400px;
  line-height: 1.5;
}

.loading-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.loading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
  background-size: 200% 100%;
  animation: progressShimmer 2s linear infinite;
  border-radius: 10px;
}

@keyframes progressShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.music-notes-animation {
  display: flex;
  gap: 15px;
  font-size: 28px;
  margin: 10px 0;
}

.music-note {
  animation: float 2s ease-in-out infinite;
}

.music-note:nth-child(1) { animation-delay: 0s; }
.music-note:nth-child(2) { animation-delay: 0.3s; }
.music-note:nth-child(3) { animation-delay: 0.6s; }
.music-note:nth-child(4) { animation-delay: 0.9s; }

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-15px);
    opacity: 1;
  }
}

