/* Main Styles for Corn Dog Clicker */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  overflow: hidden;
  min-height: 100vh;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

h1 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  margin: 1rem 0;
  background: linear-gradient(45deg, #ffcc00, #ff9900, #ffcc00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 204, 0, 0.5);
  font-weight: bold;
}

/* Stats Container */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.main-stats, .secondary-stats {
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #ffcc00;
  border-radius: 15px;
  padding: 20px;
  -webkit-backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(255, 204, 0, 0.2);
}

.main-stats h3, .secondary-stats h3 {
  margin-top: 0;
  color: #ffcc00;
  font-size: 1.2rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.stat-label {
  color: #ccc;
  font-size: 0.9rem;
}

.stat-value {
  color: #ffcc00;
  font-weight: bold;
  font-size: 1.1rem;
}

#counter {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: #ffcc00;
  font-weight: bold;
}

#money {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: #4ade80;
  font-weight: bold;
}

#dps {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: #60a5fa;
  font-weight: bold;
}

/* Corn Dog Styles */
.corndog {
  position: absolute;
  font-size: 2.5rem;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  z-index: 10;
  transition: all 0.2s ease;
  filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.5));
  touch-action: none;
}

.corndog:hover {
  transform: scale(1.3);
  filter: drop-shadow(0 0 20px rgba(255, 204, 0, 0.8));
}

.golden-corndog {
  animation: goldPulse 1s infinite;
  filter: brightness(1.5) sepia(1) saturate(5) drop-shadow(0 0 20px gold);
}

@keyframes goldPulse {
  0% { transform: scale(1); filter: brightness(1.5) sepia(1) saturate(5) drop-shadow(0 0 20px gold); }
  50% { transform: scale(1.1); filter: brightness(2) sepia(1) saturate(6) drop-shadow(0 0 30px gold); }
  100% { transform: scale(1); filter: brightness(1.5) sepia(1) saturate(5) drop-shadow(0 0 20px gold); }
}

/* Floating Text */
.floating-text {
  position: absolute;
  font-size: 1.2rem;
  font-weight: bold;
  animation: floatUp 2s ease-out forwards;
  pointer-events: none;
  z-index: 100;
}

.floating-normal { color: #ffcc00; }
.floating-crit { color: #ff4444; font-size: 1.5rem; }
.floating-golden { color: gold; font-size: 1.8rem; }
.floating-damage { color: #ff6b6b; }
.floating-boss-reward { color: #4ade80; font-size: 2rem; }
.floating-achievement { color: #a855f7; font-size: 1.5rem; }
.floating-prestige { color: #fbbf24; font-size: 2rem; }
.floating-combo { color: #06b6d4; }

@keyframes floatUp {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-80px) scale(1.2); }
}

/* Shop Styles */
#shop {
  position: fixed;
  right: 20px;
  top: 20px;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #ffcc00;
  border-radius: 15px;
  padding: 20px;
  max-width: 350px;
  -webkit-backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(255, 204, 0, 0.3);
}

.shop-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
}

.tab-btn {
  background: rgba(255, 204, 0, 0.1);
  border: 1px solid #ffcc00;
  color: #ffcc00;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.8rem;
  flex: 1;
}

.tab-btn.active {
  background: #ffcc00;
  color: black;
  font-weight: bold;
}

.tab-btn:hover:not(.active) {
  background: rgba(255, 204, 0, 0.2);
}

.shop-content {
  display: none;
  max-height: 400px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

.upgrade {
  margin-bottom: 12px;
}

.upgrade button {
  width: 100%;
  background: linear-gradient(135deg, #ffcc00 0%, #ff9900 100%);
  border: none;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
}

.upgrade button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 204, 0, 0.4);
}

.upgrade button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(135deg, #666 0%, #444 100%);
}

.upgrade-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.upgrade-icon {
  font-size: 1.5rem;
}

.upgrade-name {
  font-size: 1.1rem;
  color: #000;
  font-weight: bold;
  flex: 1;
  text-align: left;
}

.upgrade-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.upgrade-desc {
  font-size: 0.9rem;
  color: #333;
}

.upgrade-cost {
  font-size: 1rem;
  color: #000;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
}

/* Boss Styles */
.boss {
  position: fixed;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  text-align: center;
  background: rgba(0, 0, 0, 0.9);
  border: 3px solid #ff4444;
  border-radius: 15px;
  padding: 20px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 40px rgba(255, 68, 68, 0.5);
  z-index: 50;
  touch-action: none;
}

.boss-name {
  color: #ff4444;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(255, 68, 68, 0.8);
}

.boss-health {
  width: 250px;
  height: 20px;
  background: #333;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 2px solid #666;
}

.health-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff0000, #ff4400);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.6);
}

.boss-image {
  font-size: 4rem;
  margin: 15px 0;
  animation: bossFloat 2s ease-in-out infinite;
}

@keyframes bossFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.boss-hp {
  color: #ffcc00;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Login Styles */
.login-container {
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #ffcc00;
  border-radius: 20px;
  padding: 40px;
  max-width: 400px;
  margin: 2rem auto;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(255, 204, 0, 0.3);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-form input {
  padding: 15px;
  border: 2px solid #ffcc00;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.2s;
}

.login-form input:focus {
  outline: none;
  border-color: #ff9900;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}

.login-form input::placeholder {
  color: rgba(255, 204, 0, 0.5);
}

.login-form button {
  background: linear-gradient(135deg, #ffcc00, #ff9900);
  border: none;
  padding: 15px;
  color: black;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.2rem;
  transition: all 0.2s;
  touch-action: manipulation;
}

.login-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 204, 0, 0.4);
}

/* Discord Login Styles */
.discord-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.discord-btn {
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
  border: none;
  padding: 16px 32px;
  color: white;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.3rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 280px;
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
  position: relative;
  overflow: hidden;
}

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

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

.discord-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(88, 101, 242, 0.5);
  background: linear-gradient(135deg, #4752C4 0%, #3C45A5 100%);
}

.discord-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.discord-btn:disabled {
  background: linear-gradient(135deg, #747F8D 0%, #5C6370 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 15px rgba(116, 127, 141, 0.3);
}

.discord-btn:disabled::before {
  display: none;
}

.discord-btn svg {
  flex-shrink: 0;
}

#reaper {
  max-width: min(400px, 80vw);
  height: auto;
  border: 3px solid #ff9900;
  border-radius: 15px;
  margin: 1rem auto;
  box-shadow: 0 0 30px rgba(255, 153, 0, 0.5);
  display: block;
}

/* Leaderboard Styles */
#leaderboard {
  position: fixed;
  left: 20px;
  top: 20px;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #ffcc00;
  border-radius: 15px;
  padding: 20px;
  max-width: 300px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(255, 204, 0, 0.3);
}

.leaderboard-header h3 {
  margin: 0 0 15px 0;
  color: #ffcc00;
  font-size: 1.2rem;
}

.leaderboard-entries {
  max-height: 350px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.leaderboard-entry {
  display: flex;
  align-items: center;
  padding: 12px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 204, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

.leaderboard-entry:hover {
  background: rgba(255, 204, 0, 0.1);
  border-color: rgba(255, 204, 0, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 204, 0, 0.2);
}

.leaderboard-entry.current-user {
  background: rgba(255, 204, 0, 0.15);
  border-color: rgba(255, 204, 0, 0.6);
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.3);
}

.entry-rank {
  font-size: 1.2rem;
  font-weight: bold;
  min-width: 40px;
  text-align: center;
  margin-right: 12px;
  color: #ffcc00;
}

.entry-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.entry-username {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
}

.entry-score {
  color: #4ade80;
  font-weight: bold;
  font-size: 0.9rem;
}

.prestige-badge {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
}

.you-badge {
  background: linear-gradient(135deg, #ffcc00, #ff9900);
  color: black;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
}

.rank {
  font-weight: bold;
  color: #ffcc00;
  min-width: 30px;
}

.username {
  flex: 1;
  text-align: left;
  margin: 0 10px;
  font-size: 0.9rem;
}

.score {
  font-weight: bold;
  color: #4ade80;
  font-size: 0.9rem;
}

.leaderboard-loading {
  text-align: center;
  padding: 30px;
  color: #ffcc00;
}

.leaderboard-loading .loading-spinner {
  margin: 0 auto 15px;
}

.leaderboard-error {
  text-align: center;
  padding: 20px;
  color: #ff6b6b;
}

.leaderboard-error .error-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.leaderboard-error .error-message {
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.retry-btn {
  background: linear-gradient(135deg, #ffcc00, #ff9900);
  border: none;
  color: black;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.retry-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 204, 0, 0.4);
}

.leaderboard-empty {
  text-align: center;
  padding: 30px;
  color: #888;
}

.leaderboard-empty .empty-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.leaderboard-empty .empty-message {
  font-size: 0.9rem;
  line-height: 1.4;
}

.leaderboard-update-info {
  text-align: center;
  padding: 10px;
  font-size: 0.7rem;
  color: #888;
  border-top: 1px solid rgba(255, 204, 0, 0.1);
  margin-top: 10px;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* Prestige Button */
.prestige-button {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  border: none;
  padding: 15px 30px;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 12px;
  cursor: pointer;
  margin: 20px;
  transition: all 0.3s;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  touch-action: manipulation;
}

.prestige-button:hover:not(:disabled) {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

.prestige-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(135deg, #666, #444);
}

.prestige-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prestige-icon {
  font-size: 1.5rem;
}

.prestige-text {
  font-size: 1.2rem;
}

.prestige-req {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Event Announcement */
.event-announcement {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.95);
  border: 3px solid #ffcc00;
  border-radius: 15px;
  padding: 30px;
  font-size: 1.8rem;
  font-weight: bold;
  animation: eventPulse 3s ease-in-out;
  z-index: 200;
  -webkit-backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 50px rgba(255, 204, 0, 0.5);
}

@keyframes eventPulse {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  10% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  90% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
}

/* Panel Controls */
.panel-hidden {
  display: none !important;
}

/* Toggle buttons removed in favor of panel toggle buttons */

.master-toggle {
  position: fixed;
  top: 10px;
  right: 50%;
  transform: translateX(50%);
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #ffcc00;
  color: #ffcc00;
  padding: 8px 16px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 1000;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
  touch-action: manipulation;
}

.master-toggle:hover {
  background: rgba(255, 204, 0, 0.1);
  transform: translateX(50%) scale(1.05);
}

/* Panel Toggle Buttons */
.panel-toggles {
  position: fixed;
  top: 60px;
  right: 50%;
  transform: translateX(50%);
  display: flex;
  gap: 10px;
  z-index: 1000;
}

.panel-toggle-btn {
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #ffcc00;
  color: #ffcc00;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
  touch-action: manipulation;
}

.panel-toggle-btn:hover {
  background: rgba(255, 204, 0, 0.1);
  transform: scale(1.05);
}

.panel-toggle-btn.active {
  background: #ffcc00;
  color: black;
}

/* Chat Styles */
.chat-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 350px;
  max-width: calc(100vw - 40px);
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #ffcc00;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(255, 204, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 400px;
  max-height: 50vh;
}

.chat-header {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 204, 0, 0.3);
  color: #ffcc00;
  font-weight: bold;
  font-size: 1.1rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 15px;
  touch-action: pan-y;
}

.chat-message {
  margin-bottom: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-message.own-message {
  background: rgba(255, 204, 0, 0.1);
  border-color: rgba(255, 204, 0, 0.3);
}



.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.message-header .username {
  font-weight: bold;
  color: #ffcc00;
  font-size: 0.9rem;
}

.message-header .timestamp {
  font-size: 0.7rem;
  color: #888;
}

.message-content {
  color: #fff;
  word-wrap: break-word;
  font-size: 0.9rem;
}

.chat-username {
  font-weight: bold;
  color: #ffcc00;
  font-size: 0.9rem;
}

.chat-count {
  float: right;
  color: #4ade80;
  font-size: 0.8rem;
}

.chat-text {
  margin-top: 5px;
  color: #fff;
  word-wrap: break-word;
  font-size: 0.9rem;
}

.chat-form {
  display: flex;
  padding: 15px;
  gap: 10px;
  border-top: 1px solid rgba(255, 204, 0, 0.3);
}

.chat-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ffcc00;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 8px;
  font-size: 0.9rem;
}

.chat-input:focus {
  outline: none;
}

.chat-error {
  background: rgba(255, 0, 0, 0.2);
  border: 1px solid rgba(255, 0, 0, 0.3);
  color: #ff6b6b;
  padding: 8px;
  margin: 5px 0;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
}

.chat-form.sending .chat-send {
  opacity: 0.7;
  cursor: wait;
}
  border-color: #ff9900;
  box-shadow: 0 0 5px rgba(255, 204, 0, 0.3);
}

.chat-send {
  background: #ffcc00;
  border: none;
  color: black;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  touch-action: manipulation;
}

.chat-send:hover {
  background: #ff9900;
  transform: scale(1.05);
}

/* Achievement Styles */
.achievement-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: 2px solid #ffcc00;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  animation: achievementSlide 4s ease-in-out forwards;
  box-shadow: 0 8px 32px rgba(251, 191, 36, 0.4);
  max-width: 300px;
}

@keyframes achievementSlide {
  0% { transform: translateX(100%); opacity: 0; }
  10% { transform: translateX(0); opacity: 1; }
  90% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

.achievement-icon {
  font-size: 2rem;
  color: #000;
}

.achievement-content {
  flex: 1;
  color: #000;
}

.achievement-title {
  font-weight: bold;
  font-size: 1.1rem;
}

.achievement-desc {
  font-size: 0.9rem;
  opacity: 0.8;
}

.achievement-reward {
  font-weight: bold;
  color: #15803d;
}

/* Settings Panel */
.settings-panel {
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #ffcc00;
  border-radius: 15px;
  padding: 20px;
  margin-top: 20px;
}

.settings-panel h3 {
  color: #ffcc00;
  margin-top: 0;
}

.settings-option {
  display: flex;
  align-items: center;
  margin: 10px 0;
  cursor: pointer;
}

.settings-option input[type="checkbox"] {
  margin-right: 10px;
  accent-color: #ffcc00;
  width: 18px;
  height: 18px;
}

.settings-option label {
  font-size: 0.9rem;
  color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  body {
    touch-action: pan-y;
  }
  
  h1 {
    font-size: 1.4rem;
    margin: 0.5rem 0;
  }
  
  #shop {
    position: fixed;
    bottom: 80px;
    right: 10px;
    left: 10px;
    top: auto;
    max-width: none;
    max-height: 35vh;
    padding: 15px;
  }
  
  #leaderboard {
    position: fixed;
    top: 60px;
    left: 10px;
    right: 10px;
    max-width: none;
    max-height: 25vh;
    padding: 15px;
  }
  
  .stats-container {
    margin: 10px;
    gap: 10px;
    position: relative;
    grid-template-columns: 1fr;
    max-height: 30vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .prestige-button {
    bottom: 10px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .corndog {
    font-size: 2.2rem;
  }
  
  .boss {
    max-width: 90vw;
    padding: 15px;
  }
  
  .boss-health {
    width: 200px;
  }
  
  .master-toggle {
    top: 5px;
    padding: 6px 12px;
    font-size: 1rem;
  }
  
  .panel-toggles {
    top: 40px;
    gap: 5px;
  }
  
  .panel-toggle-btn {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
  
  .toggle-button {
    width: 25px;
    height: 25px;
    font-size: 0.7rem;
  }
  
  .chat-container {
    bottom: 60px;
    right: 10px;
    left: 10px;
    width: auto;
    height: 300px;
  }
  
  #reaper {
    max-width: 60vw;
    margin: 0.5rem auto;
  }
  
  .upgrade button {
    padding: 12px;
  }
  
  .upgrade-icon {
    font-size: 1.2rem;
  }
  
  .upgrade-name {
    font-size: 0.9rem;
  }
  
  .upgrade-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .shop-content {
    max-height: 25vh;
  }
  
  .leaderboard-entries {
    max-height: 15vh;
  }
}

@media (max-width: 480px) {
  .stats-container {
    display: none; /* Hide stats on very small screens to save space */
  }
  
  .corndog {
    font-size: 2rem;
  }
  
  .floating-text {
    font-size: 1rem;
  }
  
  .boss {
    padding: 10px;
  }
  
  .boss-name {
    font-size: 1.2rem;
  }
  
  .boss-image {
    font-size: 3rem;
  }
}

/* Prevent text selection on game elements */
.corndog, .boss, button, .stat-value, .stat-label {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Improve touch targets */
button, .corndog, .boss, .tab-btn, .toggle-button {
  min-width: 44px;
  min-height: 44px;
}

/* Game area for better corn dog spawning */
#game-area {
  position: fixed;
  top: 100px;
  left: 0;
  right: 0;
  bottom: 100px;
  pointer-events: none;
}

/* Dark/Light Mode Toggle */
.theme-toggle {
  position: fixed;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #ffcc00;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.theme-toggle:hover {
  transform: scale(1.1);
  background: rgba(255, 204, 0, 0.2);
}

/* Light Theme Styles */
body.light-theme {
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0ff 50%, #d0d0ff 100%);
  color: #333;
}

body.light-theme .main-stats,
body.light-theme .secondary-stats,
body.light-theme #shop,
body.light-theme #leaderboard,
body.light-theme .chat-container,
body.light-theme .login-container,
body.light-theme .boss {
  background: rgba(255, 255, 255, 0.9);
  border-color: #ff9900;
  color: #333;
}

body.light-theme .stat-label {
  color: #555;
}

body.light-theme .chat-text {
  color: #333;
}

body.light-theme .chat-message {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .chat-message.own-message {
  background: rgba(255, 204, 0, 0.2);
}

body.light-theme .chat-input {
  background: rgba(255, 255, 255, 0.8);
  color: #333;
}

/* Sound Toggle */
.sound-toggle {
  position: fixed;
  top: 10px;
  left: 60px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #ffcc00;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.sound-toggle:hover {
  transform: scale(1.1);
  background: rgba(255, 204, 0, 0.2);
}

.sound-toggle.muted {
  opacity: 0.5;
}

/* Tutorial Overlay */
.tutorial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tutorial-content {
  background: rgba(0, 0, 0, 0.9);
  border: 3px solid #ffcc00;
  border-radius: 20px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 50px rgba(255, 204, 0, 0.5);
}

.tutorial-content h2 {
  color: #ffcc00;
  margin-top: 0;
}

.tutorial-content p {
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.6;
}

.tutorial-content button {
  background: linear-gradient(135deg, #ffcc00, #ff9900);
  border: none;
  padding: 12px 25px;
  color: black;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.tutorial-content button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 204, 0, 0.4);
}

.tutorial-step {
  display: none;
}

.tutorial-step.active {
  display: block;
}

.tutorial-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

/* Daily Reward */
.daily-reward {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.95);
  border: 3px solid #ffcc00;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  z-index: 2000;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 50px rgba(255, 204, 0, 0.5);
  max-width: 400px;
  width: 90%;
}

.daily-reward h2 {
  color: #ffcc00;
  margin-top: 0;
}

.daily-reward-icon {
  font-size: 4rem;
  margin: 20px 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.daily-reward-value {
  font-size: 1.5rem;
  color: #4ade80;
  font-weight: bold;
  margin-bottom: 20px;
}

.daily-reward button {
  background: linear-gradient(135deg, #ffcc00, #ff9900);
  border: none;
  padding: 12px 25px;
  color: black;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.daily-reward button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 204, 0, 0.4);
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 204, 0, 0.3);
  border-radius: 50%;
  border-top-color: #ffcc00;
  animation: spin 1s ease-in-out infinite;
}

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