@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', 'Segoe UI', sans-serif;
  background: #000;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.container {
  position: relative;
  z-index: 1;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(10px);
  width: 95%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4),
                  0 0 60px rgba(184, 102, 255, 0.3);
  border: 1px solid #00d4ff;
  overflow: hidden;
  text-align: center;
  padding: 20px 15px;
  margin: 20px auto;
  animation: pulse 3s infinite alternate;
}

@keyframes pulse {
  0% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.5); }
  100% { box-shadow: 0 0 40px rgba(184, 102, 255, 0.7), 0 0 60px rgba(0, 212, 255, 0.5); }
}

.blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  background: radial-gradient(circle at center, #00d4ff, #b86bff);
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(20px);
  mix-blend-mode: screen;
}

.blob:nth-child(1) { width: 150px; height: 150px; left: 10%; top: 20%; animation: drift 18s infinite ease-in-out alternate; }
.blob:nth-child(2) { width: 200px; height: 200px; left: 70%; top: 10%; animation: drift 22s infinite ease-in-out alternate-reverse; }
.blob:nth-child(3) { width: 120px; height: 120px; left: 5%; top: 70%; animation: drift 20s infinite ease-in-out alternate; }
.blob:nth-child(4) { width: 180px; height: 180px; left: 80%; top: 60%; animation: drift 24s infinite ease-in-out alternate-reverse; }
.blob:nth-child(5) { width: 100px; height: 100px; left: 50%; top: 50%; animation: drift 16s infinite ease-in-out alternate; }

@keyframes drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(40px, 30px) rotate(180deg); }
}

.logo {
  margin: 15px auto 10px;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.8));
}

h1, h2 {
  margin: 10px 0;
  font-size: 24px;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

p {
  color: #aaa;
  font-size: 13px;
  margin: 5px 0;
}

.disclaimer {
  font-size: 11px;
  color: #777;
  margin: 10px 0 15px;
}

.balance {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #b86bff;
  color: #00d4ff;
  font-weight: bold;
  font-size: 18px;
  padding: 12px;
  margin: 10px 5%;
  width: 90%;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(184, 102, 255, 0.4) inset;
  text-align: center;
}

.bet-selector {
  margin: 15px 5%;
  text-align: center;
}

.bet-selector label {
  display: block;
  margin-bottom: 10px;
  color: #00d4ff;
  font-size: 14px;
}

.bet-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.bet-btn {
  padding: 10px;
  background: rgba(0, 0, 30, 0.6);
  border: 1px solid #00d4ff;
  color: #00d4ff;
  border-radius: 8px;
  font-size: 14px;
  min-width: 50px;
}

.bet-btn:hover, .bet-btn.active {
  background: linear-gradient(145deg, #008855, #00aa66);
  color: white;
}

.current-bet {
  margin: 10px 0;
  font-size: 16px;
  color: #fff;
}

.game-controls {
  display: flex;
  justify-content: space-between;
  margin: 15px 5%;
  width: 90%;
  flex-wrap: wrap;
  gap: 10px;
}

.game-controls button {
  flex: 1;
  min-width: 30%;
  padding: 14px;
  font-size: 14px;
}

.info-panel {
  margin: 15px 5%;
  padding: 12px;
  background: rgba(0, 0, 30, 0.5);
  border: 1px solid #00d4ff;
  border-radius: 10px;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
}

.info-panel h3 {
  margin-bottom: 8px;
  color: #00d4ff;
}

#message {
  margin: 15px 0;
  min-height: 20px;
  font-weight: bold;
  color: #FFD700;
  font-size: 15px;
}

.free-spins {
  margin: 10px 0;
  font-size: 13px;
  color: #00d4ff;
}

.bet-history {
  margin: 15px 5%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #b86bff;
  border-radius: 10px;
  font-size: 12px;
  max-height: 120px;
  overflow-y: auto;
  color: #aaa;
}

.bet-history h3 {
  color: #b86bff;
  margin-bottom: 8px;
  text-align: center;
}

.bet-item {
  display: flex;
  justify-content: space-between;
  margin: 4px 0;
  padding: 4px;
  border-bottom: 1px dotted #333;
}

.bet-item:last-child {
  border-bottom: none;
}

.bet-win {
  color: #00ff88;
}

.bet-loss {
  color: #ff6b6b;
}

.nav {
  margin-top: 20px;
}

.nav button {
  width: 100%;
  font-size: 15px;
  padding: 14px;
}

button {
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(145deg, #0a0a2a, #1a1a4a);
  color: #00d4ff;
  border: 1px solid #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
  padding: 14px;
  margin: 8px 5%;
  width: 90%;
}

.btn-primary:hover {
  background: linear-gradient(145deg, #1a1a4a, #2a2a6a);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

.btn-claim {
  background: linear-gradient(145deg, #8b4000, #c06000);
  color: #ffdd88;
  border: 1px solid #ff9900;
  box-shadow: 0 0 10px rgba(255, 150, 0, 0.4);
  padding: 14px;
  margin: 8px 5%;
  width: 90%;
}

.btn-claim:hover {
  background: linear-gradient(145deg, #c06000, #e07000);
  box-shadow: 0 0 15px rgba(255, 150, 0, 0.6);
}

.btn-back {
  background: #555;
  color: #ccc;
  padding: 14px;
  margin: 8px 5%;
  width: 90%;
}

.btn-back:hover {
  background: #666;
}

.game-tile {
  background: rgba(0, 0, 30, 0.4);
  margin: 12px 5%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #00d4ff;
  color: #00d4ff;
  text-transform: uppercase;
  font-size: 15px;
}

.game-tile:hover {
  background: rgba(0, 50, 100, 0.3);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.hidden {
  display: none;
}

@media (min-width: 600px) {
  .container { width: 90%; padding: 30px 20px; }
  .game-controls { width: 80%; margin: 15px 10%; }
  .btn-primary, .btn-claim, .btn-back { width: 80%; margin: 15px 10%; }
  .game-tile { margin: 15px 10%; }
  h1, h2 { font-size: 28px; }
  .balance { font-size: 20px; }
  .bet-btn { font-size: 16px; }
  .bet-grid { gap: 10px; }
}