#app.game-mode { background: #07070E; }
#navbar.game-mode {
  background: rgba(7,7,14,0.97);
  border-top-color: rgba(255,255,255,0.07);
}
#navbar.game-mode .nav-item { color: rgba(255,255,255,0.25); }
#navbar.game-mode .nav-item.active { color: #00C8B8; }
#navbar.game-mode .nav-play { box-shadow: 0 4px 20px rgba(0,200,184,0.5); }

.game-page {
  min-height: 100%;
  background: #07070E;
  color: #EEEEF8;
  padding-bottom: 80px;
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 20px;
  background: linear-gradient(180deg, #0C0F1E 0%, transparent 100%);
  position: sticky;
  top: 0;
  z-index: 5;
}

.game-back {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
  transition: all 0.2s;
}
.game-back:hover { color: #fff; background: rgba(255,255,255,0.1); }

.game-jackpot-block {
  text-align: center;
  flex: 1;
}
.game-jp-lbl {
  font-size: 10px;
  font-weight: 800;
  color: rgba(0,200,184,0.6);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.game-jp-val {
  font-size: clamp(26px, 7vw, 38px);
  font-weight: 800;
  color: #00C8B8;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(0,200,184,0.4);
}
.game-jp-cur {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.25);
  margin-top: 2px;
}

.game-timer-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.game-timer {
  font-size: 22px;
  font-weight: 800;
  color: #EEEEF8;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 44px;
  text-align: right;
}
.game-timer.waiting { font-size: 14px; color: rgba(255,255,255,0.3); }
.game-timer.danger {
  color: #FF4466;
  text-shadow: 0 0 16px rgba(255,68,102,0.5);
  animation: pulse-danger 0.8s ease-in-out infinite;
}
@keyframes pulse-danger { 0%,100% { opacity:1 } 50% { opacity:0.6 } }

.timer-bar {
  width: 60px; height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.timer-bar-fill {
  height: 100%;
  background: #00C8B8;
  border-radius: 2px;
  transition: width 0.2s linear;
}
.game-timer.danger + .timer-bar .timer-bar-fill,
.danger ~ .timer-bar .timer-bar-fill { background: #FF4466; }
.game-pc-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.25); }

.game-grid-wrap {
  padding: 0 14px 16px;
}
.game-grid-hint {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin-bottom: 12px;
}
.game-grid-hint strong { color: #00C8B8; font-weight: 700; }

.num-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
}

.nc {
  aspect-ratio: 1;
  border-radius: 7px;
  background: #131320;
  border: 1.5px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
  flex-direction: column;
  gap: 1px;
  padding: 0;
}
.nc:hover:not(.nc-full) {
  border-color: rgba(0,200,184,0.4);
  color: #00C8B8;
}
.nc:active:not(.nc-full) { transform: scale(0.92); }

.nc-sel {
  background: rgba(0,200,184,0.12);
  border-color: #00C8B8;
  color: #00C8B8;
  box-shadow: 0 0 10px rgba(0,200,184,0.2);
}
.nc-bet {
  background: rgba(0,200,184,0.18);
  border-color: #00C8B8;
  color: #00C8B8;
  box-shadow: 0 0 14px rgba(0,200,184,0.3);
}
.nc-full {
  background: #0E0E18;
  border-color: transparent;
  color: rgba(255,255,255,0.15);
  cursor: not-allowed;
}
.nc-win {
  background: rgba(245,166,35,0.2);
  border-color: #F5A623;
  color: #F5A623;
  box-shadow: 0 0 20px rgba(245,166,35,0.4);
  animation: win-pulse 0.6s ease-in-out 3;
}
@keyframes win-pulse { 0%,100%{box-shadow:0 0 20px rgba(245,166,35,0.4)} 50%{box-shadow:0 0 36px rgba(245,166,35,0.8)} }

.nc-pip {
  font-size: 8px;
  font-weight: 800;
  color: rgba(0,200,184,0.7);
  line-height: 1;
  position: absolute;
  bottom: 2px;
  right: 3px;
}

.game-bet-wrap {
  padding: 0 20px 20px;
}

.bet-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bet-mise {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
}
.bet-mise-lbl { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.35); }
.bet-mise-val { font-size: 15px; font-weight: 800; color: #00C8B8; }

.btn-bet {
  width: 100%;
  padding: 17px;
  background: #00C8B8;
  color: #05120F;
  font-size: 16px;
  font-weight: 800;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(0,200,184,0.35);
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
}
.btn-bet:hover:not(:disabled) { background: #00DDD0; box-shadow: 0 6px 28px rgba(0,200,184,0.5); }
.btn-bet:active:not(:disabled) { transform: scale(0.98); }
.btn-bet:disabled {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.25);
  cursor: not-allowed;
  box-shadow: none;
}

.bet-warn {
  font-size: 12px;
  color: rgba(255,100,100,0.7);
  font-weight: 500;
  text-align: center;
}
.bet-warn a { color: #00C8B8; text-decoration: underline; cursor: pointer; }

.bet-confirmed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.bet-confirmed-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,200,184,0.1);
  border: 1px solid rgba(0,200,184,0.25);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #00C8B8;
}
.bet-confirmed-chip svg { flex-shrink: 0; }
.bet-confirmed-chip strong { color: #fff; font-weight: 800; }
.bet-change-hint { font-size: 12px; color: rgba(255,255,255,0.2); font-weight: 500; }
.btn-change {
  background: rgba(0,200,184,0.12);
  border: 1.5px solid rgba(0,200,184,0.3);
  border-radius: 12px;
  color: #00C8B8;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}
.btn-change:hover { background: rgba(0,200,184,0.2); }

.game-winners-wrap {
  padding: 0 20px;
}
.game-section-title {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.winners-scroll {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.winner-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.winner-row:last-child { border-bottom: none; }
.winner-av {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(0,200,184,0.12);
  border: 1px solid rgba(0,200,184,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #00C8B8;
  flex-shrink: 0;
}
.winner-name { flex: 1; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.5); }
.winner-amt { font-size: 13px; font-weight: 800; color: #F5A623; }
.winners-empty { font-size: 13px; color: rgba(255,255,255,0.2); font-weight: 500; padding: 20px 0; text-align: center; }

.result-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,5,14,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  flex-direction: column;
  gap: 0;
}
.result-overlay.overlay-win {
  background: rgba(0,10,8,0.97);
}
.spin-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.spin-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  text-align: center;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-win-msg {
  font-size: 16px;
  font-weight: 700;
  color: #00C8B8;
  text-align: center;
  line-height: 1.5;
}
.result-win-msg strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: #F5A623;
  margin-top: 6px;
  text-shadow: 0 0 30px rgba(245,166,35,0.6);
}
.spin-number {
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s, text-shadow 0.3s;
}
.spin-neutral { color: rgba(255,255,255,0.8); }
.spin-win {
  color: #F5A623;
  text-shadow: 0 0 60px rgba(245,166,35,0.6), 0 0 120px rgba(245,166,35,0.3);
  animation: win-big 0.5s ease-in-out 2;
}
@keyframes win-big { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08)} }

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

.game-balance-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 12px;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.game-balance-lbl {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.game-balance-val {
  font-size: 15px;
  font-weight: 800;
  color: #00C8B8;
  letter-spacing: -0.01em;
}

.game-bettors-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  margin-top: 4px;
  text-align: center;
  letter-spacing: 0.02em;
}
