/* --- Soft Red & White Clicker Game Style --- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', 'Arial', sans-serif;
  background: linear-gradient(135deg, #ffeaea 0%, #ffe0e0 100%);
  min-height: 100vh;
  color: #8b0000;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f8d7da;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #dc143c, #b22222);
  border-radius: 10px;
  border: 2px solid #f8d7da;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #b22222, #8b0000);
}

.game-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 12px;
  height: 100vh;
  overflow-y: auto;
}

.game-header {
  text-align: center;
  margin-bottom: 32px;
  background: rgba(220, 20, 60, 0.1);
  padding: 28px 0 18px 0;
  border-radius: 18px;
  box-shadow: 0 0 32px rgba(220, 20, 60, 0.3);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(220, 20, 60, 0.2);
}

.game-header h1 {
  font-size: 3rem;
  margin-bottom: 12px;
  color: #dc143c;
  text-shadow: 0 0 16px rgba(220, 20, 60, 0.4);
  letter-spacing: 2px;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.stat {
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 12px 24px;
  box-shadow: 0 0 12px rgba(220, 20, 60, 0.2);
  border: 2px solid rgba(220, 20, 60, 0.3);
}

.stat-label {
  font-size: 1rem;
  color: #dc143c;
  opacity: 0.8;
  margin-bottom: 4px;
  text-shadow: 0 0 8px rgba(220, 20, 60, 0.3);
}

.stat span:last-child {
  font-size: 1.7rem;
  font-weight: bold;
  color: #8b0000;
  text-shadow: 0 0 8px rgba(220, 20, 60, 0.2);
}

.game-main {
  display: grid;
  grid-template-columns: 1fr 400px 1fr;
  gap: 36px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  height: calc(100vh - 200px);
}

.center-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.click-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.coke-bottle {
  cursor: pointer;
  transition: transform 0.1s ease;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
.coke-bottle:hover {
  transform: scale(1.05);
}
.coke-bottle:active {
  transform: scale(0.95);
}
.coke-can-image {
  width: 1400px;
  height: auto;
  max-height: 1800px;
  object-fit: contain;
  filter: drop-shadow(0 10px 40px rgba(220, 20, 60, 0.3));
  transition: filter 0.3s;
}
.coke-bottle:hover .coke-can-image {
  filter: drop-shadow(0 15px 60px rgba(220, 20, 60, 0.5)) brightness(1.1);
}

.click-indicator, .floating-number {
  position: absolute;
  pointer-events: none;
  font-size: 2rem;
  font-weight: bold;
  color: #dc143c;
  text-shadow: 0 0 8px rgba(220, 20, 60, 0.6);
  animation: floatUp 1s ease-out forwards;
  z-index: 1000;
}
@keyframes floatUp {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-100px); }
}

/* --- Soft Red Power-up Card --- */
.powerup-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 0 24px rgba(220, 20, 60, 0.3);
  padding: 18px 24px 20px 24px;
  margin-bottom: 24px;
  max-width: 340px;
  color: #8b0000;
  font-family: 'Orbitron', 'Arial', sans-serif;
  position: relative;
  border: 2px solid rgba(220, 20, 60, 0.2);
}
.powerup-title {
  color: #dc143c;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 2px;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(220, 20, 60, 0.3);
}
.powerup-desc {
  color: #666;
  font-size: 1rem;
  margin-bottom: 12px;
}
.powerup-price {
  color: #b22222;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 0 0 8px rgba(178, 34, 34, 0.3);
}
.powerup-buy-btn {
  background: linear-gradient(90deg, #dc143c, #b22222);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 38px;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 0 0 16px rgba(220, 20, 60, 0.3);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
  outline: none;
}
.powerup-buy-btn:hover:not(:disabled) {
  background: linear-gradient(90deg, #ff1744, #dc143c);
  transform: scale(1.07);
  box-shadow: 0 0 32px rgba(220, 20, 60, 0.5);
}
.powerup-buy-btn:disabled {
  background: #ccc;
  color: #999;
  cursor: not-allowed;
  box-shadow: none;
}

/* --- Shop Tabs --- */
.shop-category-tabs {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 32px auto 18px auto;
  max-width: 600px;
}
.shop-tab-btn {
  background: rgba(0,0,0,0.2);
  border: 2px solid #1aff00;
  color: #1aff00;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 10px;
  padding: 12px 38px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  outline: none;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.shop-tab-btn.active, .shop-tab-btn:focus {
  background: #1aff00;
  color: #222;
  border: 2px solid #1aff00;
}
.shop-tab-btn:hover:not(.active) {
  background: rgba(26,255,0,0.12);
  color: #fff;
}

/* --- Shop Container --- */
.shop-container {
  margin: 40px auto;
  max-width: 600px;
  background: rgba(0,255,255,0.10);
  border-radius: 16px;
  padding: 24px 18px;
  box-shadow: 0 8px 32px 0 #00ffe7a0;
}
.shop-category {
  margin-bottom: 32px;
}
.shop-category h3 {
  color: #00ffe7;
  margin-bottom: 12px;
  font-size: 1.3rem;
  letter-spacing: 1px;
  text-shadow: 0 0 8px #00ffe7a0;
}
.shop-upgrade {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,255,255,0.13);
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 10px 16px;
  box-shadow: 0 2px 8px #00ffe7a0;
}
.shop-upgrade-name {
  font-weight: bold;
  color: #fff;
  font-size: 1.1rem;
  text-shadow: 0 0 8px #00ffe7a0;
}
.shop-upgrade-cost {
  color: #00eaff;
  font-size: 1rem;
  margin-left: 12px;
  text-shadow: 0 0 8px #00eaff80;
}
.shop-upgrade-owned {
  color: #b3b3b3;
  font-size: 0.95rem;
  margin-left: 12px;
}
.shop-upgrade-btn {
  background: linear-gradient(90deg, #00ffe7, #00c3ff);
  color: #222;
  border: none;
  padding: 8px 22px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 2px 8px #00ffe7a0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.shop-upgrade-btn:disabled {
  background: #444;
  color: #aaa;
  cursor: not-allowed;
}
.shop-upgrade-btn:not(:disabled):hover {
  background: linear-gradient(90deg, #fff, #00ffe7);
  color: #00c3ff;
  transform: scale(1.05);
}

/* --- Achievements --- */
.achievements-panel {
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 24px rgba(220, 20, 60, 0.3);
  margin-top: 30px;
  backdrop-filter: blur(8px);
  border: 2px solid rgba(220, 20, 60, 0.2);
  max-height: 500px;
  overflow-y: auto;
}
.achievements-panel h3 {
  margin-bottom: 15px;
  text-align: center;
  color: #dc143c;
  text-shadow: 0 0 8px rgba(220, 20, 60, 0.3);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 0;
  border-radius: 10px;
  margin: -20px -20px 15px -20px;
  padding: 20px;
}
.achievements {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}
.achievement {
  background: rgba(220, 20, 60, 0.1);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 0 12px rgba(220, 20, 60, 0.2);
  border: 2px solid rgba(220, 20, 60, 0.2);
}
.achievement.unlocked {
  background: rgba(34, 139, 34, 0.2);
  border: 2px solid #228b22;
  color: #228b22;
  text-shadow: 0 0 8px rgba(34, 139, 34, 0.3);
}
.achievement-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
.achievement-title {
  font-weight: bold;
  margin-bottom: 5px;
  color: #8b0000;
}
.achievement-desc {
  font-size: 0.8rem;
  opacity: 0.8;
  color: #666;
}

/* --- Rebirth System --- */
.rebirth-info {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #dc143c;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(220, 20, 60, 0.3);
}
.rebirth-bar-container {
  margin: 15px auto 0 auto;
  max-width: 400px;
  text-align: center;
}
.rebirth-bar-bg {
  background: rgba(220, 20, 60, 0.2);
  border-radius: 10px;
  height: 18px;
  width: 100%;
  overflow: hidden;
  margin-bottom: 5px;
  border: 2px solid rgba(220, 20, 60, 0.3);
}
.rebirth-bar-fill {
  background: linear-gradient(90deg, #dc143c, #b22222);
  height: 100%;
  width: 0%;
  border-radius: 10px;
  transition: width 0.4s cubic-bezier(.4,2,.6,1);
}
#rebirth-bar-label {
  font-size: 0.95rem;
  color: #8b0000;
  opacity: 0.85;
}
.rebirth-btn {
  background: linear-gradient(90deg, #dc143c, #b22222);
  color: #fff;
  border: none;
  padding: 14px 38px;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 10px;
  box-shadow: 0 4px 16px rgba(220, 20, 60, 0.4);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}
.rebirth-btn:disabled {
  background: #ccc;
  color: #999;
  cursor: not-allowed;
  text-shadow: none;
  box-shadow: none;
}
.rebirth-btn:not(:disabled):hover {
  background: linear-gradient(90deg, #ff1744, #dc143c);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(220, 20, 60, 0.5);
}
.rebirth-system-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(220, 20, 60, 0.3);
  border-radius: 16px;
  margin: 32px auto 0 auto;
  max-width: 500px;
  padding: 28px 24px 24px 24px;
  box-shadow: 0 8px 32px rgba(220, 20, 60, 0.3);
  color: #8b0000;
  text-align: center;
  position: relative;
}
.rebirth-title {
  color: #dc143c;
  font-size: 1.6rem;
  margin-bottom: 18px;
  letter-spacing: 1px;
  font-weight: bold;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.rebirth-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 18px;
  gap: 10px;
}
.rebirth-stat {
  background: rgba(220, 20, 60, 0.1);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 1.1rem;
  color: #b22222;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(220, 20, 60, 0.2);
  border: 2px solid rgba(220, 20, 60, 0.2);
}

/* --- Popup Notification --- */
#popup-notification {
  position: fixed;
  bottom: 40px;
  left: 40px;
  background: #dc143c;
  color: #fff;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(220, 20, 60, 0.3);
  z-index: 10010;
  font-size: 1.1rem;
  font-weight: bold;
  opacity: 1;
  transition: opacity 0.3s;
  pointer-events: none;
}

/* --- Game Controls --- */
.game-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.save-load-btn, .reset-btn {
  background: linear-gradient(90deg, #dc143c, #b22222);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 12px rgba(220, 20, 60, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.save-load-btn:hover, .reset-btn:hover {
  background: linear-gradient(90deg, #ff1744, #dc143c);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(220, 20, 60, 0.5);
}

.reset-btn {
  background: linear-gradient(90deg, #8b0000, #dc143c);
  color: #fff;
}

.reset-btn:hover {
  background: linear-gradient(90deg, #dc143c, #ff1744);
}

/* --- Control Buttons --- */
.control-btn {
  background: linear-gradient(135deg, #2d3748, #4a5568);
  color: #00ff88;
  border: 2px solid #00ff88;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin: 0 5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.control-btn:hover {
  background: linear-gradient(135deg, #4a5568, #2d3748);
  color: #ffffff;
  border-color: #00ff88;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,255,136,0.3);
}

.control-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Specific button colors */
#save-btn {
  color: #00ff88;
  border-color: #00ff88;
}

#load-btn {
  color: #ffd700;
  border-color: #ffd700;
}

#load-btn:hover {
  box-shadow: 0 4px 8px rgba(255,215,0,0.3);
}

#reset-btn {
  color: #ff6b6b;
  border-color: #ff6b6b;
}

#reset-btn:hover {
  box-shadow: 0 4px 8px rgba(255,107,107,0.3);
}

#sound-btn {
  color: #64b5f6;
  border-color: #64b5f6;
}

#sound-btn:hover {
  box-shadow: 0 4px 8px rgba(100,181,246,0.3);
}

#theme-btn {
  color: #ab47bc;
  border-color: #ab47bc;
}

#theme-btn:hover {
  box-shadow: 0 4px 8px rgba(171,71,188,0.3);
}

#achievements-btn {
  color: #ffb74d;
  border-color: #ffb74d;
}

#achievements-btn:hover {
  box-shadow: 0 4px 8px rgba(255,183,77,0.3);
}

#gallery-btn {
  color: #4db6ac;
  border-color: #4db6ac;
}

#gallery-btn:hover {
  box-shadow: 0 4px 8px rgba(77,182,172,0.3);
}

#coke-shop-btn {
  color: #ff8a65;
  border-color: #ff8a65;
}

#coke-shop-btn:hover {
  box-shadow: 0 4px 8px rgba(255,138,101,0.3);
}

/* --- Modal Styles for Achievements and Gallery --- */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.achievement-item {
  background: white;
  border-radius: 10px;
  padding: 15px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
}

.achievement-item.unlocked {
  border-color: #4caf50;
  background: linear-gradient(135deg, #e8f5e8, #ffffff);
}

.achievement-item.locked {
  opacity: 0.6;
  filter: grayscale(50%);
}

.achievement-icon {
  font-size: 2.5rem;
  text-align: center;
  min-width: 60px;
}

.achievement-info {
  flex: 1;
}

.achievement-title {
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 5px;
}

.achievement-desc {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.achievement-status {
  font-size: 0.8rem;
  font-weight: bold;
}

.achievement-status:contains("Unlocked") {
  color: #4caf50;
}

.achievement-status:contains("Locked") {
  color: #999;
}

/* --- Gallery Styles --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.gallery-item {
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

.gallery-item.unlocked {
  border-color: #4caf50;
  background: linear-gradient(135deg, #e8f5e8, #ffffff);
}

.gallery-item.locked {
  opacity: 0.6;
  filter: grayscale(50%);
}

.gallery-image {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.gallery-image img {
  max-width: 80px;
  max-height: 100px;
  object-fit: contain;
}

.locked-image {
  font-size: 3rem;
  color: #ccc;
}

.gallery-name {
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.gallery-unlock {
  font-size: 0.8rem;
  color: #666;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
  .game-main {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 20px;
  }
  .game-header h1 {
    font-size: 2rem;
  }
  .coke-can-image {
    width: 180px;
    max-height: 280px;
  }
  .upgrades-panel {
    order: -1;
  }
}
@media (max-width: 600px) {
  .game-container {
    padding: 8px 2px;
  }
  .shop-container {
    padding: 10px 2px;
  }
  .powerup-card {
    max-width: 98vw;
    padding: 10px 4vw;
  }
}
@media (max-width: 1200px) {
  .game-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .achievements-panel,
  .upgrades-panel {
    grid-column: 1;
    max-height: 400px;
  }
  
  .center-column {
    order: -1;
  }
}

@media (max-width: 768px) {
  .game-header h1 {
    font-size: 2.5rem;
  }
  
  .stats {
    gap: 24px;
  }
  
  .coke-can-image {
    width: 200px;
  }
  
  .game-controls {
    flex-direction: column;
    align-items: center;
  }
}

/* --- Upgrades Panel --- */
.upgrades-panel {
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 24px rgba(220, 20, 60, 0.3);
  margin-top: 30px;
  backdrop-filter: blur(8px);
  border: 2px solid rgba(220, 20, 60, 0.2);
  max-height: 500px;
  overflow-y: auto;
}

.upgrades-panel h3 {
  margin-bottom: 15px;
  text-align: center;
  color: #dc143c;
  text-shadow: 0 0 8px rgba(220, 20, 60, 0.3);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 0;
  border-radius: 10px;
  margin: -20px -20px 15px -20px;
  padding: 20px;
}

.upgrade-category {
  margin-bottom: 20px;
}

.upgrade-category h4 {
  color: #b22222;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid rgba(220, 20, 60, 0.2);
  font-size: 1.1rem;
}

.upgrade-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(220, 20, 60, 0.1);
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(220, 20, 60, 0.2);
  border: 2px solid rgba(220, 20, 60, 0.2);
  transition: all 0.3s;
}

.upgrade-item:hover {
  background: rgba(220, 20, 60, 0.15);
  transform: translateY(-2px);
}

.upgrade-info {
  flex: 1;
}

.upgrade-name {
  font-weight: bold;
  color: #8b0000;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.upgrade-desc {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.upgrade-stats {
  display: flex;
  gap: 15px;
  align-items: center;
}

.upgrade-level {
  color: #dc143c;
  font-weight: bold;
  font-size: 0.9rem;
}

.upgrade-price {
  color: #b22222;
  font-weight: bold;
  font-size: 1rem;
  margin-right: 10px;
}

.upgrade-buy-btn {
  background: linear-gradient(90deg, #dc143c, #b22222);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
}

.upgrade-buy-btn:hover:not(:disabled) {
  background: linear-gradient(90deg, #ff1744, #dc143c);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
}

.upgrade-buy-btn:disabled {
  background: #ccc;
  color: #999;
  cursor: not-allowed;
}

/* --- Coke Shop Modal --- */
.coke-shop-btn {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  margin: 0 5px;
}

.coke-shop-btn:hover {
  background: linear-gradient(135deg, #ff8c42, #ff6b35);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: linear-gradient(135deg, #fff, #f8f9fa);
  margin: 5% auto;
  padding: 0;
  border-radius: 15px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  background: linear-gradient(135deg, #dc143c, #b22222);
  color: white;
  padding: 20px;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #ffcccb;
}

.modal-body {
  padding: 25px;
  max-height: 70vh;
  overflow-y: auto;
}

.coke-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.coke-can-item {
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
}

.coke-can-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.coke-can-item.selected {
  border-color: #dc143c;
  background: linear-gradient(135deg, #fff, #ffeaea);
}

.coke-can-item.locked {
  opacity: 0.6;
  filter: grayscale(50%);
}

.coke-can-image {
  width: 80px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 15px;
}

.coke-can-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #dc143c;
  margin-bottom: 8px;
}

.coke-can-price {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

.coke-can-perk {
  font-size: 0.8rem;
  color: #555;
  background: #f8f9fa;
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-style: italic;
}

.coke-can-button {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.coke-can-button:hover {
  background: linear-gradient(135deg, #20c997, #28a745);
  transform: translateY(-2px);
}

.coke-can-button:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
}

.coke-can-button.selected {
  background: linear-gradient(135deg, #dc143c, #b22222);
}

.coke-can-button.selected:hover {
  background: linear-gradient(135deg, #b22222, #dc143c);
}

.selected-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #dc143c;
  color: white;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

/* --- Volume Controls --- */
.volume-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45, 55, 72, 0.8);
  border: 2px solid #00ff88;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 5px;
}

.volume-label {
  color: #00ff88;
  font-size: 0.8rem;
  font-weight: bold;
  min-width: 45px;
}

.volume-slider {
  width: 80px;
  height: 4px;
  background: #2d3748;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #00ff88;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #00ff88;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.volume-display {
  color: #00ff88;
  font-size: 0.8rem;
  font-weight: bold;
  min-width: 35px;
  text-align: right;
}

/* Music button specific styling */
#music-btn {
  color: #ff6b9d;
  border-color: #ff6b9d;
}

#music-btn:hover {
  color: #ffffff;
  border-color: #ff6b9d;
  box-shadow: 0 4px 8px rgba(255, 107, 157, 0.3);
}
