﻿/* ═══════════════════════════════════════
   ROULETTE PAGE — BLAST CRMP
═══════════════════════════════════════ */

.rl-page {
  min-height: 100vh;
  padding: 96px 24px 64px;
}

.rl-wrap {
  max-width: 900px;
  margin: 0 auto;
}

/* ── HEAD ── */
.rl-head {
  text-align: center;
  margin-bottom: 40px;
  animation: fup .5s ease both;
}

.rl-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  background: rgba(245,197,24,.1);
  border: 1px solid rgba(245,197,24,.25);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  color: var(--y);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 16px;
}

.rl-head h1 {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: 10px;
}

.rl-head h1 em { color: var(--y); font-style: normal; }

.rl-head p {
  font-size: 14px;
  color: var(--txm);
  line-height: 1.7;
}

/* ── STATUS CARD ── */
.rl-status {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
  backdrop-filter: blur(20px);
  animation: fup .5s .05s ease both;
  flex-wrap: wrap;
}

.rl-status-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rl-av {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--y), #ff9f00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 900;
  color: #000;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(245,197,24,.25);
}

.rl-name { font-size: 15px; font-weight: 800; margin-bottom: 2px; }

.rl-bal { font-size: 13px; color: var(--txm); }
.rl-bal span { color: var(--y); font-weight: 700; }

.rl-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
}

.rl-online-badge.offline {
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.22);
  color: #22c55e;
}

.rl-online-badge.online {
  background: rgba(255,80,80,.1);
  border: 1px solid rgba(255,80,80,.22);
  color: #ff5050;
}

/* ── BLOCKED / NO AUTH ── */
.rl-blocked, .rl-noauth {
  border-radius: 18px;
  padding: 56px 32px;
  text-align: center;
  animation: fup .4s ease both;
}

.rl-blocked {
  background: rgba(255,80,80,.05);
  border: 1px solid rgba(255,80,80,.18);
}

.rl-noauth {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
}

.rl-blocked-icon, .rl-noauth-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.rl-blocked h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; color: #ff5050; }
.rl-noauth h3  { font-size: 20px; font-weight: 800; margin-bottom: 8px; }

.rl-blocked p, .rl-noauth p {
  font-size: 14px;
  color: var(--txm);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ── ROULETTE MAIN ── */
.rl-main { animation: fup .5s .1s ease both; }

/* ── TRACK ── */
.rl-track-outer {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.07);
  margin-bottom: 24px;
  height: 122px;
  /* GPU layer */
  will-change: transform;
}

/* Fade edges */
.rl-track-outer::before,
.rl-track-outer::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}

.rl-track-outer::before {
  left: 0;
  background: linear-gradient(90deg, rgba(8,8,8,1) 0%, rgba(8,8,8,.7) 50%, transparent 100%);
}

.rl-track-outer::after {
  right: 0;
  background: linear-gradient(-90deg, rgba(8,8,8,1) 0%, rgba(8,8,8,.7) 50%, transparent 100%);
}

/* Center marker */
.rl-marker {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: var(--y);
  z-index: 3;
  box-shadow: 0 0 10px var(--y), 0 0 20px rgba(245,197,24,.35);
}

.rl-marker::before,
.rl-marker::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
}

.rl-marker::before {
  top: 0;
  border-top: 9px solid var(--y);
}

.rl-marker::after {
  bottom: 0;
  border-bottom: 9px solid var(--y);
}

/* Track scroll */
.rl-track {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 6px;
  padding: 0 6px;
  will-change: transform;
}

/* Single item */
.rl-item {
  flex-shrink: 0;
  width: 110px;
  height: 104px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
  user-select: none;
}

/* Subtle inner glow */
.rl-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.06), transparent 60%);
  pointer-events: none;
}

.rl-item-mult {
  font-size: 20px;
  font-weight: 900;
  position: relative;
  z-index: 1;
  letter-spacing: -.02em;
}

.rl-item-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Winner highlight */
.rl-item.winner-glow {
  animation: winnerPulse .6s ease 3;
}

@keyframes winnerPulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* ── CONTROLS ── */
.rl-controls {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.rl-controls::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,197,24,.3), transparent);
}

.rl-controls-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.rl-bet-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--txm);
  text-transform: uppercase;
  letter-spacing: .12em;
  white-space: nowrap;
}

.rl-bet-input-wrap {
  position: relative;
  flex: 1;
  min-width: 140px;
}

.rl-bet-input-wrap span {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 800;
  color: var(--y);
  pointer-events: none;
}

.rl-bet-input {
  width: 100%;
  padding: 12px 14px 12px 32px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: var(--tx);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.rl-bet-input:focus {
  border-color: rgba(245,197,24,.4);
  box-shadow: 0 0 0 3px rgba(245,197,24,.07);
}

/* Quick bets */
.rl-quick {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.rl-qbtn {
  padding: 7px 13px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  color: var(--txm);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s ease;
}

.rl-qbtn:hover {
  border-color: rgba(245,197,24,.28);
  color: var(--y);
  background: rgba(245,197,24,.06);
}

/* Spin button */
.rl-spin-btn {
  width: 100%;
  padding: 15px;
  background: var(--y);
  color: #000;
  font-size: 15px;
  font-weight: 900;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: box-shadow .25s ease, background .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  position: relative;
  overflow: hidden;
}

.rl-spin-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.22) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

.rl-spin-btn:hover::after { opacity: 1; }
.rl-spin-btn:hover { box-shadow: 0 0 40px rgba(245,197,24,.45), 0 0 80px rgba(245,197,24,.12); }
.rl-spin-btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* ── RESULT ── */
.rl-result {
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: 12px;
  text-align: center;
  display: none;
  animation: fup .3s ease both;
}

.rl-result.win     { background: rgba(34,197,94,.08);  border: 1px solid rgba(34,197,94,.22);  display: block; }
.rl-result.lose    { background: rgba(255,80,80,.07);  border: 1px solid rgba(255,80,80,.2);   display: block; }
.rl-result.neutral { background: rgba(245,197,24,.07); border: 1px solid rgba(245,197,24,.2);  display: block; }

.rl-result-mult {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 4px;
}

.rl-result.win     .rl-result-mult { color: #22c55e; }
.rl-result.lose    .rl-result-mult { color: #ff5050; }
.rl-result.neutral .rl-result-mult { color: var(--y); }

.rl-result-text { font-size: 14px; color: var(--txm); }
.rl-result-text strong { color: var(--tx); }

/* ── HISTORY ── */
.rl-history {
  margin-top: 24px;
}

.rl-history h3 {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--txm);
  margin-bottom: 12px;
}

.rl-hist-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rl-hist-item {
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.04);
  cursor: default;
  transition: transform .15s ease;
}

.rl-hist-item:hover { transform: scale(1.08); }

.rl-hist-item.h-win  { color: #22c55e; border-color: rgba(34,197,94,.2);  background: rgba(34,197,94,.06); }
.rl-hist-item.h-lose { color: #ff5050; border-color: rgba(255,80,80,.2);  background: rgba(255,80,80,.06); }
.rl-hist-item.h-even { color: var(--y); border-color: rgba(245,197,24,.2); background: rgba(245,197,24,.06); }

/* ── PRIZES TABLE ── */
.rl-prizes {
  margin-top: 28px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  overflow: hidden;
}

.rl-prizes-head {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 10px;
  font-weight: 800;
  color: var(--txm);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.rl-prizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.rl-prize-cell {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  border-right: 1px solid rgba(255,255,255,.04);
  transition: background .2s ease;
}

.rl-prize-cell:hover { background: rgba(255,255,255,.03); }
.rl-prize-cell .pm { font-weight: 900; }
.rl-prize-cell .pw { font-size: 10px; color: var(--txm); font-weight: 600; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .rl-controls-top { flex-direction: column; align-items: stretch; }
  .rl-status { flex-direction: column; align-items: flex-start; }
  .rl-item { width: 90px; }
  .rl-track-outer::before,
  .rl-track-outer::after { width: 80px; }
}
