/* BarutLive Dice — site renk paleti */
.dice-embed {
  --theme-primary: var(--primary-accent);
  --theme-secondary: var(--primary);
  --theme-dark: color-mix(in srgb, var(--primary) 55%, #000 45%);
  --theme-rgb: var(--primary-accent-rgb);
  --panel-bg: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(var(--primary-rgb), 0.2);
  --text-muted: rgba(160, 190, 220, 0.7);
  --control-height: 44px;
  width: 100%;
  color: #e8f4ff;
  font-family: 'Sora', system-ui, sans-serif;
  user-select: none;
}

.dice-embed .is-hidden { display: none !important; }
.dice-coin-ico { font-size: 0.85rem; margin-left: 2px; }

.dice-layout {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  width: 100%;
}

.dice-sidebar {
  width: 33.333%;
  flex: 0 0 33.333%;
}

.dice-controls {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(var(--bg-dark-rgb), 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dice-bet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.dice-bet-label, .dice-balance-text {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.dice-balance-value {
  color: var(--theme-primary);
  font-weight: 700;
}

.dice-bet-group {
  display: flex;
  min-height: var(--control-height);
  background: var(--panel-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dice-bet-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
}

.dice-bet-input {
  width: 100%;
  background: transparent;
  min-height: var(--control-height);
  padding: 0.65rem 2rem 0.65rem 0.75rem;
  outline: 0;
  color: #fff;
  border: 0;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
}

.dice-bet-icon {
  position: absolute;
  right: 0.65rem;
  pointer-events: none;
  opacity: 0.85;
}

.dice-bet-multiplier {
  background: rgba(255, 255, 255, 0.04);
  padding: 0 1rem;
  min-height: var(--control-height);
  border: 0;
  border-left: 1px solid var(--panel-border);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.dice-bet-multiplier:hover { background: rgba(var(--primary-rgb), 0.12); }

.dice-btn-bet {
  width: 100%;
  min-height: var(--control-height);
  padding: 0.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #021018;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  background: var(--theme-btn-gradient);
  box-shadow: 0 6px 22px var(--theme-btn-shadow);
  transition: transform 0.15s, box-shadow 0.2s;
}

.dice-btn-bet:hover:not(:disabled) {
  color: #fff;
  box-shadow: 0 8px 28px rgba(var(--theme-rgb), 0.35);
}

.dice-btn-bet:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dice-game-col {
  width: 66.666%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dice-history {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}

.dice-history::-webkit-scrollbar { display: none; }

.dice-history-chip {
  flex-shrink: 0;
  min-width: 48px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.dice-history-chip.win {
  background: #16a34a;
  color: #fff;
}

.dice-history-chip.lose {
  background: #dc2626;
  color: #fff;
}

.dice-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--panel-bg);
  border-radius: 10px;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dice-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 72px;
}

.dice-stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
}

.dice-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.dice-slider-area {
  padding: 1rem 1.25rem;
  background: var(--panel-bg);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.dice-slider-wrap {
  position: relative;
  width: 100%;
  height: 28px;
  display: flex;
  align-items: center;
}

.dice-slider-track {
  position: absolute;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #16a34a;
}

.dice-slider-fill {
  position: absolute;
  height: 6px;
  border-radius: 3px;
  background: #dc2626;
  transition: width 0.15s;
}

.dice-slider-input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 20;
  margin: 0;
}

.dice-slider-thumb {
  position: absolute;
  width: 24px;
  height: 24px;
  background: rgb(var(--surface-raised-rgb));
  border: 2px solid rgba(var(--theme-rgb), 0.55);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  pointer-events: none;
  z-index: 10;
  transition: left 0.15s;
  border-radius: 6px;
}

.dice-slider-thumb-line {
  width: 10px;
  height: 2px;
  background: rgba(var(--theme-rgb), 0.6);
  border-radius: 1px;
}

.dice-result-indicator {
  position: absolute;
  top: -42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: left 0.15s;
  z-index: 15;
  transform: translateX(-50%);
  pointer-events: none;
}

.dice-result-indicator.animating {
  transition: left 1.5s ease-in-out;
}

.dice-result-badge {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--theme-rgb), 0.12);
  border: 1px solid rgba(var(--theme-rgb), 0.35);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  font-size: 1.05rem;
  font-weight: 800;
}

.dice-result-badge.win { color: #4ade80; }
.dice-result-badge.lose { color: #f87171; }

@keyframes diceSpin {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.dice-result-badge.dice-spinning {
  animation: diceSpin 0.28s ease infinite;
}

@media (max-width: 768px) {
  .dice-layout { flex-direction: column; }
  .dice-sidebar { width: 100%; flex: 0 0 auto; order: 2; }
  .dice-game-col { width: 100%; order: 1; }
  .dice-stats-row { padding: 0.75rem; flex-wrap: wrap; justify-content: center; }
}