body {
  font-family: Arial, sans-serif;
  background:#0b0b0b;
  padding-bottom: 70px;
  color:#fff;
  display:flex;
  justify-content:center;
  align-items:center;
  height:100vh;
}

.game-box {
  background:#111;
  border-radius:14px;
  padding:25px;
  width:100%;
  max-width: 520px;
  text-align:center;
  box-shadow:0 0 20px rgba(0,255,170,.15);
}

h2 {
  margin-bottom:10px;
}

.balance {
  margin:10px 0;
  font-weight:bold;
  color:#00ffae;
}

input {
  width:100%;
  padding:10px;
  border-radius:8px;
  border:none;
  outline:none;
  margin:10px 0;
  text-align:center;
  box-sizing:border-box;
}
.input-prefix {
  display:flex;
  align-items:center;
  background:#0b0b0b;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.15);
  overflow:hidden;
}
.input-prefix span {
  padding:0 12px;
  font-size:14px;
  font-weight:bold;
  color:#00ffae;
  background:#111;
  border-right:1px solid rgba(255,255,255,.1);
  white-space:nowrap;
}
.input-prefix input {
  border:none;
  background:transparent;
  color:#fff;
  padding:12px;
  width:100%;
  font-size:16px;
  outline:none;
  text-align:center;
}
.input-prefix:focus-within {
  border-color:#00ffae;
  box-shadow:0 0 10px rgba(0,255,174,.4);
}

.bet-quick {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.bet-quick button {
  padding: 6px;
  font-size: 13px;
  border-radius: 6px;
  background: #222;
  color: #ddd;
  border: 1px solid #333;
  cursor: pointer;
}
.bet-quick button:hover {
  background: #333;
}
.bet-quick .max {
  background: #ff9800;
  color: #000;
  font-weight: bold;
}

button {
  width:100%;
  padding:12px;
  border:none;
  border-radius:10px;
  background:#00ffae;
  color:#000;
  font-weight:bold;
  cursor:pointer;
}

button:disabled {
  background:#555;
  cursor:not-allowed;
}

.result {
  margin-top:15px;
  font-weight:bold;
}

.win { color:#00ffae; }
.lose { color:#ff4d4d; }

.back {
  margin-top:15px;
  display:block;
  color:#aaa;
  text-decoration:none;
  font-size:13px;
}

.roll-anim {
  animation: flicker 0.08s infinite;
}

@keyframes flicker {
  0%   { opacity: 1; }
  50%  { opacity: .6; }
  100% { opacity: 1; }
}
