* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Telegram Web App ve mobil için viewport fix */
html {
  height: 100%;
  height: -webkit-fill-available;
}

body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

:root {
  /* BETCIO Casino Theme */
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #FF6B00; /* Orange */
  --accent-color: #00D4FF; /* Cyan */
  --danger-color: #FF1744;
  --bg-color: #0a0e27; /* Dark Navy */
  --bg-gradient: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1528 100%);
  --card-bg: linear-gradient(145deg, #1a1f3a 0%, #252b4a 100%);
  --card-border: rgba(255, 215, 0, 0.3);
  --text-color: #ffffff;
  --text-secondary: #b8c5d6;
  --success-color: #00e676;
  --warning-color: #FFD700;
  --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FFA000 100%);
  --neon-glow: 0 0 10px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-color);
  height: 100vh;
  height: -webkit-fill-available;
  padding: 4px;
  overflow: hidden; /* Scroll YASAK - tek ekran */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Telegram Web App için özel ayarlar */
@media (max-height: 700px) {
  body {
    padding: 3px;
  }
}

/* Çok küçük ekranlar (iPhone SE, Android Telegram) */
@media (max-height: 600px) {
  body {
    padding: 2px;
  }
}

/* Android Telegram özel - Çok dar ekranlar */
@media (max-height: 680px) and (max-width: 450px) {
  body {
    padding: 3px;
  }
}

/* Casino animated background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 107, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 600px;
  width: 100%;
  height: 100vh;
  height: -webkit-fill-available;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 0;
}

/* Header */
.header {
  text-align: center;
  padding: 6px 8px;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), var(--neon-glow);
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Küçük ekranlar için header */
@media (max-height: 700px) {
  .header {
    padding: 5px 6px;
  }
}

@media (max-height: 600px) {
  .header {
    padding: 4px 6px;
  }
}

.header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.logo {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
  animation: logoGlow 2s ease-in-out infinite;
}

/* Küçük ekranlar için logo */
@media (max-height: 700px) {
  .logo {
    height: 28px;
  }
  
  .logo-container {
    gap: 6px;
    margin-bottom: 3px;
  }
}

@media (max-height: 600px) {
  .logo {
    height: 24px;
  }
  
  .logo-container {
    gap: 5px;
    margin-bottom: 2px;
  }
}

/* Android Telegram özel */
@media (max-height: 680px) and (max-width: 450px) {
  .logo {
    height: 26px;
  }
  
  .logo-container {
    gap: 6px;
    margin-bottom: 2px;
  }
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)); }
  50% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)); }
}

.header h1 {
  font-size: 1.2em;
  margin: 0;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  position: relative;
}

/* Küçük ekranlar için h1 */
@media (max-height: 700px) {
  .header h1 {
    font-size: 1.1em;
    letter-spacing: 1.5px;
  }
}

@media (max-height: 600px) {
  .header h1 {
    font-size: 1em;
    letter-spacing: 1px;
  }
}

/* Android Telegram özel */
@media (max-height: 680px) and (max-width: 450px) {
  .header h1 {
    font-size: 1.05em;
    letter-spacing: 1px;
  }
}

.subtitle {
  color: var(--text-color);
  font-size: 0.85em;
  margin-bottom: 4px;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

@media (max-height: 700px) {
  .subtitle {
    font-size: 0.8em;
    margin-bottom: 3px;
  }
}

@media (max-height: 680px) and (max-width: 450px) {
  .subtitle {
    font-size: 0.75em;
    margin-bottom: 2px;
  }
}

.daily-info {
  background: var(--gold-gradient);
  color: #0a0e27;
  font-size: 0.75em;
  font-weight: 700;
  margin-top: 4px;
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  position: relative;
  z-index: 1;
}

@media (max-height: 700px) {
  .daily-info {
    font-size: 0.7em;
    margin-top: 3px;
    padding: 3px 10px;
  }
}

@media (max-height: 680px) and (max-width: 450px) {
  .daily-info {
    font-size: 0.68em;
    margin-top: 2px;
    padding: 3px 8px;
  }
}

/* User Info */
.user-info {
  text-align: center;
  padding: 6px 8px;
  background: var(--card-bg);
  border-radius: 8px;
  font-size: 0.85em;
  flex-shrink: 0;
}

@media (max-height: 700px) {
  .user-info {
    padding: 5px 6px;
    font-size: 0.8em;
  }
}

@media (max-height: 680px) and (max-width: 450px) {
  .user-info {
    padding: 4px 6px;
    font-size: 0.75em;
  }
}

/* Game Container */
.game-container {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--card-border);
  border: 1px solid var(--card-border);
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  overflow: hidden;
}

/* Küçük ekranlar için container */
@media (max-height: 700px) {
  .game-container {
    padding: 6px 8px;
    border-radius: 10px;
  }
}

@media (max-height: 600px) {
  .game-container {
    padding: 5px 6px;
    border-radius: 8px;
  }
}

@media (max-height: 680px) and (max-width: 450px) {
  .game-container {
    padding: 6px 8px;
    border-radius: 10px;
  }
}

/* Timer Display */
.timer-display {
  text-align: center;
  margin: 4px 0;
}

/* Canvas - Kompakt görünüm */
#targetCanvas {
  display: block;
  margin: 6px auto !important;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  max-width: 100%;
  height: auto;
}

@media (max-height: 700px) {
  .timer-display {
    margin: 3px 0;
  }
  
  #targetCanvas {
    margin: 4px auto !important;
  }
}

@media (max-height: 600px) {
  .timer-display {
    margin: 2px 0;
  }
  
  #targetCanvas {
    margin: 3px auto !important;
  }
}

.timer-display .time {
  font-size: 2.2em;
  font-weight: bold;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  font-family: 'Courier New', monospace;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
  animation: timerPulse 1s ease-in-out infinite;
}

/* Küçük ekranlar için timer */
@media (max-height: 700px) {
  .timer-display .time {
    font-size: 1.9em;
  }
}

@media (max-height: 600px) {
  .timer-display .time {
    font-size: 1.6em;
  }
}

/* Android Telegram için daha küçük */
@media (max-height: 680px) and (max-width: 450px) {
  .timer-display .time {
    font-size: 1.7em;
  }
}

.timer-display .unit {
  display: block;
  color: var(--text-secondary);
  font-size: 0.8em;
  margin-top: 4px;
}

@media (max-height: 700px) {
  .timer-display .unit {
    font-size: 0.75em;
    margin-top: 3px;
  }
}

@media (max-height: 600px) {
  .timer-display .unit {
    font-size: 0.7em;
    margin-top: 2px;
  }
}

/* Progress Bar */
.progress-bar {
  position: relative;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin: 8px 0;
}

@media (max-height: 700px) {
  .progress-bar {
    height: 16px;
    margin: 6px 0;
  }
}

@media (max-height: 600px) {
  .progress-bar {
    height: 14px;
    margin: 5px 0;
  }
}

@media (max-height: 680px) and (max-width: 450px) {
  .progress-bar {
    height: 15px;
    margin: 5px 0;
  }
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FFD700, #FF6B00, #00D4FF);
  background-size: 200% 100%;
  animation: progressShine 2s linear infinite;
  transition: width 0.1s linear;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

@keyframes progressShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.target-marker {
  position: absolute;
  left: 100%;
  top: -35px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.target-label {
  background: var(--gold-gradient);
  color: #0a0e27;
  padding: 8px 15px;
  border-radius: 12px;
  font-size: 0.95em;
  font-weight: 900;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
  border: 2px solid rgba(255, 215, 0, 0.3);
}

/* Game Status */
.game-status {
  text-align: center;
  margin: 6px 0;
  font-size: 0.9em;
  color: var(--text-secondary);
  min-height: 22px;
}

@media (max-height: 700px) {
  .game-status {
    margin: 4px 0;
    font-size: 0.85em;
    min-height: 20px;
  }
}

@media (max-height: 600px) {
  .game-status {
    margin: 3px 0;
    font-size: 0.8em;
    min-height: 18px;
  }
}

/* Game Description - Kompakt açıklama */
.game-description {
  text-align: center;
  margin: 4px auto;
  padding: 6px 8px;
  max-width: 92%;
  font-size: 0.7em;
  line-height: 1.3;
  color: #b8c5d6;
  background: rgba(255, 215, 0, 0.05);
  border-left: 2px solid var(--primary-gold);
  border-radius: 6px;
  min-height: 40px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.game-description p {
  margin: 0;
}

/* Gizlendiğinde görünmez ama yer tutar */
.game-description.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-height: 700px) {
  .game-description {
    margin: 3px auto;
    padding: 5px 6px;
    font-size: 0.68em;
    line-height: 1.25;
    min-height: 36px;
  }
}

@media (max-height: 600px) {
  .game-description {
    margin: 2px auto;
    padding: 4px 6px;
    font-size: 0.65em;
    line-height: 1.2;
    min-height: 32px;
  }
}

/* Android Telegram için çok kompakt */
@media (max-height: 680px) and (max-width: 450px) {
  .game-status {
    margin: 3px 0;
    font-size: 0.8em;
    min-height: 18px;
  }
  
  .game-description {
    margin: 2px auto;
    padding: 4px 6px;
    font-size: 0.66em;
    line-height: 1.2;
    min-height: 34px;
  }
}

/* Game Button */
.game-button {
  width: 90px;
  height: 90px;
  margin: 6px auto;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: linear-gradient(145deg, #1a1f3a, #0d1120);
  box-shadow: 
    8px 8px 20px rgba(0, 0, 0, 0.5),
    -4px -4px 12px rgba(255, 215, 0, 0.1),
    inset 0 0 0 2px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Küçük ekranlar için buton */
@media (max-height: 700px) {
  .game-button {
    width: 80px;
    height: 80px;
    margin: 5px auto;
  }
}

@media (max-height: 600px) {
  .game-button {
    width: 70px;
    height: 70px;
    margin: 4px auto;
  }
}

@media (max-height: 680px) and (max-width: 450px) {
  .game-button {
    width: 75px;
    height: 75px;
    margin: 4px auto;
  }
}

.button-image {
  width: 75%;
  height: 75%;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 10px rgba(255, 215, 0, 0.3));
}

.game-button:hover {
  transform: translateY(-3px);
  box-shadow: 
    12px 12px 30px rgba(0, 0, 0, 0.6),
    -6px -6px 16px rgba(255, 215, 0, 0.15),
    inset 0 0 0 2px rgba(255, 215, 0, 0.5);
}

.game-button:hover .button-image {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 15px rgba(255, 215, 0, 0.5));
}

.game-button:active {
  transform: translateY(1px);
  box-shadow: 
    4px 4px 10px rgba(0, 0, 0, 0.4),
    -2px -2px 6px rgba(255, 215, 0, 0.1),
    inset 0 0 0 2px rgba(255, 215, 0, 0.4),
    inset 4px 4px 8px rgba(0, 0, 0, 0.3);
}

.game-button:active .button-image {
  transform: scale(0.92);
  filter: drop-shadow(0 2px 5px rgba(255, 215, 0, 0.4));
}

.game-button.running {
  animation: buttonPulseContainer 1.5s infinite;
}

.game-button.running .button-image {
  animation: buttonPulse 1.5s infinite;
}

@keyframes buttonPulseContainer {
  0%, 100% {
    box-shadow: 
      8px 8px 20px rgba(0, 0, 0, 0.5),
      -4px -4px 12px rgba(255, 215, 0, 0.1),
      inset 0 0 0 2px rgba(255, 215, 0, 0.3),
      0 0 20px rgba(255, 215, 0, 0.4);
  }
  50% {
    box-shadow: 
      12px 12px 30px rgba(0, 0, 0, 0.6),
      -6px -6px 16px rgba(255, 215, 0, 0.2),
      inset 0 0 0 3px rgba(255, 215, 0, 0.6),
      0 0 40px rgba(255, 215, 0, 0.8);
  }
}

@keyframes buttonPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 4px 10px rgba(255, 215, 0, 0.5));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 20px rgba(255, 215, 0, 0.8));
  }
}

/* Result Message */
.result-message {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: center;
  font-size: 0.9em;
  font-weight: bold;
  display: none;
}

@media (max-height: 700px) {
  .result-message {
    margin-top: 5px;
    padding: 6px 8px;
    font-size: 0.85em;
  }
}

@media (max-height: 600px) {
  .result-message {
    margin-top: 4px;
    padding: 5px 6px;
    font-size: 0.8em;
  }
}

.result-message.show {
  display: block;
}

.result-message.winner {
  background: var(--gold-gradient);
  color: #0a0e27;
  animation: celebrate 0.5s ease;
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.8);
  border: 2px solid rgba(255, 215, 0, 0.5);
}

.result-message.loser {
  background: rgba(214, 48, 49, 0.2);
  color: var(--danger-color);
  border: 2px solid var(--danger-color);
}

@keyframes celebrate {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.05) rotate(2deg); }
  75% { transform: scale(1.05) rotate(-2deg); }
}

/* Stats Container */
.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.stat-box {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--card-border);
  transition: all 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.stat-icon {
  font-size: 2em;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.stat-value {
  font-size: 2em;
  font-weight: bold;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.85em;
  color: var(--text-secondary);
}

/* Winners Section */
.winners-section {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--card-border);
}

.winners-section h2 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.8em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.betcio-promo {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 0, 0.1));
  border: 2px solid var(--card-border);
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  margin-bottom: 20px;
}

.betcio-promo p {
  margin: 0;
  font-size: 1.1em;
  color: var(--text-color);
}

.betcio-promo strong {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.2em;
  font-weight: 900;
}

.winners-list {
  max-height: 400px;
  overflow-y: auto;
}

.winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.winner-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.winner-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.winner-rank {
  font-size: 1.2em;
  font-weight: bold;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 30px;
}

.winner-name {
  font-weight: 500;
}

.winner-score {
  font-weight: bold;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.1em;
}

/* Footer */
.footer {
  margin-top: 30px;
  padding: 25px;
  background: var(--card-bg);
  border-radius: 20px;
  text-align: center;
  border: 2px solid var(--card-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 15px;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

.footer-brand {
  font-size: 1.8em;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.footer-text {
  color: var(--text-secondary);
  margin: 5px 0;
  font-size: 0.95em;
}

.loading {
  text-align: center;
  color: var(--text-secondary);
  padding: 20px;
}

/* Scrollbar */
.winners-list::-webkit-scrollbar {
  width: 8px;
}

.winners-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.winners-list::-webkit-scrollbar-thumb {
  background: var(--gold-gradient);
  border-radius: 10px;
}

/* ============================================ */
/* BAKIM MODU / OYUN KAPALI SAYFA STİLLERİ */
/* ============================================ */

.maintenance-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* Dinamik viewport - mobil için */
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1528 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 15px;
  overflow: hidden; /* Scroll engelle */
}

.maintenance-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 40%, rgba(255, 215, 0, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(255, 107, 0, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 60%);
  animation: maintenance-bg-pulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes maintenance-bg-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.maintenance-container {
  max-width: 600px;
  width: 100%;
  max-height: 92vh; /* Maksimum yükseklik */
  max-height: 92dvh; /* Dinamik viewport */
  overflow-y: auto; /* İçerik taşarsa scroll */
  background: linear-gradient(145deg, #1a1f3a 0%, #252b4a 100%);
  border-radius: 20px;
  padding: 25px 20px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(255, 215, 0, 0.1);
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Scroll bar styling */
.maintenance-container::-webkit-scrollbar {
  width: 6px;
}

.maintenance-container::-webkit-scrollbar-track {
  background: rgba(255, 215, 0, 0.1);
  border-radius: 10px;
}

.maintenance-container::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.3);
  border-radius: 10px;
}

.maintenance-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 215, 0, 0.5);
}

.maintenance-icon {
  position: relative;
  margin-bottom: 30px;
}

.maintenance-logo {
  max-width: 100px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
  animation: maintenance-logo-pulse 2s ease-in-out infinite;
}

@keyframes maintenance-logo-pulse {
  0%, 100% { 
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
  }
  50% { 
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.9));
  }
}

.gear-icon {
  font-size: 5em;
  display: inline-block;
  animation: maintenance-pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

@keyframes maintenance-pulse {
  0%, 100% { 
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
  }
  50% { 
    transform: scale(1.1);
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
  }
}

.sparkles {
  font-size: 2em;
  position: absolute;
  top: -10px;
  right: 50%;
  transform: translateX(50%);
  animation: sparkle-pulse 2s ease-in-out infinite;
}

@keyframes sparkle-pulse {
  0%, 100% { 
    opacity: 1; 
    transform: translateX(50%) scale(1);
  }
  50% { 
    opacity: 0.6; 
    transform: translateX(50%) scale(1.2);
  }
}

.maintenance-content {
  position: relative;
  z-index: 1;
}

.maintenance-title {
  font-size: 3em;
  background: linear-gradient(135deg, #FFD700 0%, #FFA000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
  font-weight: 900;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
  letter-spacing: 2px;
}

.maintenance-subtitle {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 30px;
  font-weight: 600;
}

.maintenance-message {
  margin-bottom: 40px;
}

.main-text {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 500;
}

.sub-text {
  font-size: 1.1em;
  color: #b8c5d6;
  line-height: 1.6;
}

.maintenance-features {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
  padding: 25px;
  background: rgba(255, 215, 0, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(26, 31, 58, 0.6);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: translateX(10px);
}

.feature-icon {
  font-size: 2em;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.feature-text {
  font-size: 1.1em;
  color: #ffffff;
  font-weight: 500;
}

.maintenance-timer {
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.timer-label {
  font-size: 1.2em;
  color: #00D4FF;
  margin-bottom: 15px;
  font-weight: 600;
}

.telegram-info {
  padding: 15px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.telegram-text {
  font-size: 1.1em;
  color: #FFD700;
  margin: 0;
  font-weight: 500;
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #FFD700, #FFA000);
  border-radius: 50%;
  animation: dot-bounce 1.4s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.dot:nth-child(1) {
  animation-delay: 0s;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dot-bounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.maintenance-footer {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.maintenance-footer p {
  font-size: 1.1em;
  color: #b8c5d6;
  margin-bottom: 8px;
}

.maintenance-footer strong {
  background: linear-gradient(135deg, #FFD700 0%, #FFA000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  font-size: 1.2em;
}

.footer-note {
  font-size: 0.95em;
  color: #7a8a9e;
  font-style: italic;
}

/* Oyun sayfası gizleme */
#gameContainer.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 600px) {
  .header h1 {
    font-size: 2em;
  }
  
  .timer-display .time {
    font-size: 4em;
  }
  
  .stats-container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .stat-value {
    font-size: 1.5em;
  }
  
  .stat-label {
    font-size: 0.75em;
  }

  .maintenance-container {
    padding: 40px 25px;
  }

  .maintenance-title {
    font-size: 2.2em;
  }

  .maintenance-subtitle {
    font-size: 1.2em;
  }

  .maintenance-logo {
    max-width: 75px;
  }

  .gear-icon {
    font-size: 4em;
  }

  .main-text {
    font-size: 1.1em;
  }

  .feature-text {
    font-size: 1em;
  }
}

/* ========================================
   BETCIO Username Modal
======================================== */

.username-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.username-modal-content {
  background: var(--card-bg);
  border-radius: 20px;
  border: 2px solid var(--card-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), var(--neon-glow);
  max-width: 450px;
  width: 100%;
  padding: 30px;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(50px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.username-header {
  text-align: center;
  margin-bottom: 25px;
}

.modal-logo {
  height: 60px;
  width: auto;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.username-header h2 {
  font-size: 1.5em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  font-weight: 900;
}

.username-body {
  margin-top: 20px;
}

.username-description {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 25px;
}

.username-input-group {
  margin-bottom: 20px;
}

.username-input-group label {
  display: block;
  color: var(--primary-color);
  font-size: 0.95em;
  font-weight: 600;
  margin-bottom: 10px;
}

.username-input-group input {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  color: var(--text-color);
  font-size: 1.1em;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  outline: none;
}

.username-input-group input:focus {
  border-color: var(--primary-color);
  background: rgba(255, 215, 0, 0.1);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.username-input-group input::placeholder {
  color: rgba(184, 197, 214, 0.5);
}

.username-note {
  background: rgba(255, 23, 68, 0.1);
  border: 1px solid rgba(255, 23, 68, 0.3);
  border-radius: 10px;
  padding: 12px 15px;
  margin-bottom: 25px;
  text-align: center;
}

.username-note p {
  color: #FF9800;
  font-size: 0.85em;
  margin: 5px 0;
  line-height: 1.6;
  word-spacing: 2px;
}

.username-submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--gold-gradient);
  color: #0a0e27;
  border: none;
  border-radius: 12px;
  font-size: 1.1em;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.username-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.username-submit-btn:active {
  transform: translateY(0);
}

.username-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-height: 700px) {
  .username-modal-content {
    padding: 20px;
  }
  
  .modal-logo {
    height: 45px;
  }
  
  .username-header h2 {
    font-size: 1.3em;
  }
  
  .username-description {
    font-size: 0.9em;
  }
}

/* EVENT GERİ SAYIM ANİMASYONLARI */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6), 0 0 60px rgba(255, 107, 0, 0.4);
  }
}

.countdown-container {
  animation: glow 3s ease-in-out infinite;
}

