/* ============================================================================
   Color Dice Betting Game - Game Room Styles
   3D Dice CSS Transforms, Circular Countdown, Betting Cards, Live Ticker
   ============================================================================ */

/* Circular Timer Container */
.timer-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
}

.timer-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.timer-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
}

.timer-circle-progress {
  fill: none;
  stroke: var(--neon-cyan);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
}

.timer-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.timer-seconds {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

.timer-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* 3D Dice — compact premium cube */
.dice-stage {
  --dice-size: 72px;
  --dice-depth: 36px;
  width: var(--dice-size);
  height: var(--dice-size);
  perspective: 480px;
  margin: 12px auto 8px;
  position: relative;
}

.dice-stage::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 56px;
  height: 12px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0, 229, 255, 0.35) 0%, transparent 70%);
  filter: blur(4px);
  pointer-events: none;
}

.dice-cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-22deg) rotateY(32deg);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.dice-face {
  position: absolute;
  width: var(--dice-size);
  height: var(--dice-size);
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.18),
    inset 0 -10px 22px rgba(0, 0, 0, 0.35),
    0 6px 16px rgba(0, 0, 0, 0.45);
  backface-visibility: hidden;
}

.dice-face small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0.9;
  text-transform: uppercase;
}

.face-front  { transform: rotateY(0deg) translateZ(var(--dice-depth)); background: linear-gradient(145deg, #ff5a84 0%, #ff3366 45%, #b3003b 100%); }
.face-back   { transform: rotateY(180deg) translateZ(var(--dice-depth)); background: linear-gradient(145deg, #5dffb0 0%, #00ff88 45%, #009952 100%); }
.face-right  { transform: rotateY(90deg) translateZ(var(--dice-depth)); background: linear-gradient(145deg, #6bb6ff 0%, #3399ff 45%, #005ce6 100%); }
.face-left   { transform: rotateY(-90deg) translateZ(var(--dice-depth)); background: linear-gradient(145deg, #ff5a84 0%, #ff3366 45%, #b3003b 100%); }
.face-top    { transform: rotateX(90deg) translateZ(var(--dice-depth)); background: linear-gradient(145deg, #5dffb0 0%, #00ff88 45%, #009952 100%); }
.face-bottom { transform: rotateX(-90deg) translateZ(var(--dice-depth)); background: linear-gradient(145deg, #6bb6ff 0%, #3399ff 45%, #005ce6 100%); }

@keyframes diceIdleFloat {
  0%, 100% { transform: rotateX(-22deg) rotateY(32deg) translateY(0); }
  50% { transform: rotateX(-18deg) rotateY(40deg) translateY(-4px); }
}

@keyframes rollingSpin {
  0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  100% { transform: rotateX(720deg) rotateY(1080deg) rotateZ(360deg); }
}

.dice-idle {
  animation: diceIdleFloat 3.2s ease-in-out infinite;
}

.dice-rolling {
  animation: rollingSpin 0.14s infinite linear;
  transition: none;
}

.dice-result-red {
  filter: drop-shadow(0 0 14px rgba(255, 51, 102, 0.85));
}
.dice-result-green {
  filter: drop-shadow(0 0 14px rgba(0, 255, 136, 0.85));
}
.dice-result-blue {
  filter: drop-shadow(0 0 14px rgba(51, 153, 255, 0.85));
}

.dice-result-label {
  min-height: 22px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.dice-result-label.is-win-red { color: var(--neon-red); text-shadow: 0 0 12px rgba(255, 51, 102, 0.5); }
.dice-result-label.is-win-green { color: var(--neon-green); text-shadow: 0 0 12px rgba(0, 255, 136, 0.5); }
.dice-result-label.is-win-blue { color: var(--neon-blue); text-shadow: 0 0 12px rgba(51, 153, 255, 0.5); }


/* Color Betting Cards */
.color-bet-card {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.color-bet-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
}

.card-red::before { background: var(--neon-red); }
.card-green::before { background: var(--neon-green); }
.card-blue::before { background: var(--neon-blue); }

.color-bet-card:hover {
  transform: translateY(-4px);
}

.card-red.active, .card-red:hover {
  border-color: var(--neon-red);
  box-shadow: var(--shadow-glow-red);
  background: rgba(255, 51, 102, 0.08);
}

.card-green.active, .card-green:hover {
  border-color: var(--neon-green);
  box-shadow: var(--shadow-glow-green);
  background: rgba(0, 255, 136, 0.08);
}

.card-blue.active, .card-blue:hover {
  border-color: var(--neon-blue);
  box-shadow: var(--shadow-glow-blue);
  background: rgba(51, 153, 255, 0.08);
}

.multiplier-tag {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  margin-top: 8px;
}
.color-red-text { color: var(--neon-red); }
.color-green-text { color: var(--neon-green); }
.color-blue-text { color: var(--neon-blue); }

/* Quick Bet Chips */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-btn:hover, .chip-btn.active {
  background: var(--neon-cyan);
  color: #060911;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

/* Live Result Horizontal Strip */
.result-strip-wrapper {
  overflow-x: auto;
  white-space: nowrap;
  padding: 12px 0;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  margin-right: 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glass);
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
