/* ==========================================================================
   COLOR DICE - EXACT REPLICA STYLESHEET (CLEAN 1-PERSON MANAGER SETUP)
   Faithfully matching online-dice.com/roll-color-dice/
   - Marvin Webfont typography
   - bg-lg.png board game doodle wallpaper & light.png top glow
   - Beautiful Fullscreen Rolling Loader Screen with "GOOD LUCK!"
   - Solid colored dice with center white pip
   - Gold gradient 3D button
   - Centered layout (Streamers & Giveaway removed as requested)
   - Full Single-Admin, History, and Stats integration
   ========================================================================== */

/* Anti-Inspection: Disable selection & dragging */
*, *::before, *::after {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
}

input, textarea, select {
  -webkit-user-select: auto !important;
  -moz-user-select: auto !important;
  user-select: auto !important;
}

/* 1. Marvin Webfont Declaration */
@font-face {
  font-family: "Marvin";
  src: url("../fonts/Marvin-webfont.woff2") format("woff2"),
       url("../fonts/Marvin-webfont.woff") format("woff"),
       url("../fonts/Marvin-webfont.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* 2. Authentic DiceFont Declaration (Extracted from online-dice.com) */
@font-face {
  font-family: "dicefont";
  src: url("../fonts/dicefont.woff") format("woff"),
       url("../fonts/dicefont.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

[data-icon]:before,
[class^="df-"]:before,
[class*=" df-"]:before {
  display: inline-block;
  font-family: "dicefont" !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  line-height: 1;
  text-decoration: inherit;
  text-rendering: optimizeLegibility;
  text-transform: none;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

.df-solid-small-dot-d6-1:before { content: "\f189"; }
.df-solid-small-dot-d6-2:before { content: "\f18a"; }
.df-solid-small-dot-d6-3:before { content: "\f18b"; }
.df-solid-small-dot-d6-4:before { content: "\f18c"; }
.df-solid-small-dot-d6-5:before { content: "\f18d"; }
.df-solid-small-dot-d6-6:before { content: "\f18e"; }

.df-dot-d6-1:before { content: "\f13f"; }
.df-dot-d6-2:before { content: "\f140"; }
.df-dot-d6-3:before { content: "\f141"; }
.df-dot-d6-4:before { content: "\f142"; }
.df-dot-d6-5:before { content: "\f143"; }
.df-dot-d6-6:before { content: "\f18f"; }

.df-d4-1:before { content: "\f12d"; }
.df-d4-2:before { content: "\f12e"; }
.df-d4-3:before { content: "\f12f"; }
.df-d4-4:before { content: "\f130"; }

.df-d6-1:before { content: "\f131"; }
.df-d6-2:before { content: "\f132"; }
.df-d6-3:before { content: "\f133"; }
.df-d6-4:before { content: "\f134"; }
.df-d6-5:before { content: "\f135"; }
.df-d6-6:before { content: "\f136"; }

.df-d8-1:before { content: "\f137"; }
.df-d8-2:before { content: "\f138"; }
.df-d8-3:before { content: "\f139"; }
.df-d8-4:before { content: "\f13a"; }
.df-d8-5:before { content: "\f13b"; }
.df-d8-6:before { content: "\f13c"; }
.df-d8-7:before { content: "\f13d"; }
.df-d8-8:before { content: "\f13e"; }

.df-d10-0:before { content: "\f100"; }
.df-d10-1:before { content: "\f101"; }
.df-d10-2:before { content: "\f103"; }
.df-d10-3:before { content: "\f104"; }
.df-d10-4:before { content: "\f105"; }
.df-d10-5:before { content: "\f106"; }
.df-d10-6:before { content: "\f107"; }
.df-d10-7:before { content: "\f108"; }
.df-d10-8:before { content: "\f109"; }
.df-d10-9:before { content: "\f10a"; }
.df-d10-10:before { content: "\f102"; }

.df-d12-1:before { content: "\f10b"; }
.df-d12-2:before { content: "\f10f"; }
.df-d12-3:before { content: "\f110"; }
.df-d12-4:before { content: "\f111"; }
.df-d12-5:before { content: "\f112"; }
.df-d12-6:before { content: "\f113"; }
.df-d12-7:before { content: "\f114"; }
.df-d12-8:before { content: "\f115"; }
.df-d12-9:before { content: "\f116"; }
.df-d12-10:before { content: "\f10c"; }
.df-d12-11:before { content: "\f10d"; }
.df-d12-12:before { content: "\f10e"; }

.df-d20-1:before { content: "\f119"; }
.df-d20-2:before { content: "\f124"; }
.df-d20-3:before { content: "\f126"; }
.df-d20-4:before { content: "\f127"; }
.df-d20-5:before { content: "\f128"; }
.df-d20-6:before { content: "\f129"; }
.df-d20-7:before { content: "\f12a"; }
.df-d20-8:before { content: "\f12b"; }
.df-d20-9:before { content: "\f12c"; }
.df-d20-10:before { content: "\f11a"; }
.df-d20-11:before { content: "\f11b"; }
.df-d20-12:before { content: "\f11c"; }
.df-d20-13:before { content: "\f11d"; }
.df-d20-14:before { content: "\f11e"; }
.df-d20-15:before { content: "\f11f"; }
.df-d20-16:before { content: "\f120"; }
.df-d20-17:before { content: "\f121"; }
.df-d20-18:before { content: "\f122"; }
.df-d20-19:before { content: "\f123"; }
.df-d20-20:before { content: "\f125"; }

:root {
  --primary-blue: #0088ff;
  --bg-gradient-start: #f1f9ff;
  --bg-gradient-end: #0088ff;
  --card-bg: rgba(0, 136, 255, 0.72);
  --card-border: rgba(255, 255, 255, 0.5);

  /* The 6 Color Dice Colors */
  --color-red: #e53935;
  --color-orange: #ff9800;
  --color-yellow: #ffd700;
  --color-green: #2e7d32;
  --color-blue: #0088ff;
  --color-purple: #8e24aa;
}

/* 15 Authentic Theme Variations from online-dice.com */
body.theme-blue {
  --bg-gradient-start: #f1f9ff;
  --bg-gradient-end: #0088ff;
  --card-bg: rgba(0, 136, 255, 0.72);
}
body.theme-sab-blue {
  --bg-gradient-start: #e0f2fe;
  --bg-gradient-end: #0284c7;
  --card-bg: rgba(2, 132, 199, 0.75);
}
body.theme-green {
  --bg-gradient-start: #f0fff4;
  --bg-gradient-end: #1ea05a;
  --card-bg: rgba(28, 155, 87, 0.75);
}
body.theme-sab-green {
  --bg-gradient-start: #ecfdf5;
  --bg-gradient-end: #059669;
  --card-bg: rgba(5, 150, 105, 0.75);
}
body.theme-red {
  --bg-gradient-start: #fff0f0;
  --bg-gradient-end: #d93829;
  --card-bg: rgba(210, 45, 30, 0.75);
}
body.theme-sab-red {
  --bg-gradient-start: #fef2f2;
  --bg-gradient-end: #dc2626;
  --card-bg: rgba(220, 38, 38, 0.75);
}
body.theme-pink {
  --bg-gradient-start: #fff0f8;
  --bg-gradient-end: #e04595;
  --card-bg: rgba(215, 60, 145, 0.75);
}
body.theme-bw {
  --bg-gradient-start: #e8e8e8;
  --bg-gradient-end: #25282a;
  --card-bg: rgba(45, 48, 52, 0.85);
}
body.theme-sab-black {
  --bg-gradient-start: #334155;
  --bg-gradient-end: #0f172a;
  --card-bg: rgba(15, 23, 42, 0.85);
}
body.theme-heaven {
  --bg-gradient-start: #fffbeb;
  --bg-gradient-end: #38bdf8;
  --card-bg: rgba(56, 189, 248, 0.75);
}
body.theme-hell {
  --bg-gradient-start: #7f1d1d;
  --bg-gradient-end: #180505;
  --card-bg: rgba(153, 27, 27, 0.85);
}
body.theme-underwater {
  --bg-gradient-start: #064e3b;
  --bg-gradient-end: #082f49;
  --card-bg: rgba(8, 47, 73, 0.85);
}
body.theme-bronze {
  --bg-gradient-start: #fed7aa;
  --bg-gradient-end: #9a3412;
  --card-bg: rgba(154, 52, 18, 0.75);
}
body.theme-silver {
  --bg-gradient-start: #f1f5f9;
  --bg-gradient-end: #64748b;
  --card-bg: rgba(100, 116, 139, 0.75);
}
body.theme-gold {
  --bg-gradient-start: #fef08a;
  --bg-gradient-end: #ca8a04;
  --card-bg: rgba(202, 138, 4, 0.75);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  font-family: "Marvin", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #ffffff;
  background-color: var(--bg-gradient-end);
  background-image: radial-gradient(ellipse at 50% 15%, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 75%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* Light Glow Overlay at Top */
.light {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 380px;
  background-image: url("../images/light.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

/* Doodle Pattern Background Container */
#content {
  position: relative;
  z-index: 1;
  background-repeat: repeat;
  background-image: url("../images/bg-lg.png");
  background-size: 500px;
  min-height: 100vh;
  padding: 20px 10px 50px 10px;
}

/* Theme-Specific Panoramic Backgrounds (Matching online-dice.com exactly) */
body.theme-sab-blue #content,
body.theme-sab-green #content,
body.theme-sab-red #content,
body.theme-sab-black #content {
  background-image: url("../images/bg-sab.jpg") !important;
  background-size: cover !important;
  background-position: center bottom !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

body.theme-underwater #content {
  background-image: url("../images/bg-underwater.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

body.theme-hell #content {
  background-image: url("../images/bg-hell.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

body.theme-heaven #content {
  background-image: url("../images/bg-heaven.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

/* Theme Select Option Colors (Matching Screenshot 2 exactly) */
#theme-select option {
  background: #ffffff !important;
  font-family: Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 8px 12px !important;
}
#theme-select option[value="blue"] { color: #0088ff !important; }
#theme-select option[value="sab-blue"] { color: #0284c7 !important; }
#theme-select option[value="green"] { color: #10b981 !important; }
#theme-select option[value="sab-green"] { color: #059669 !important; }
#theme-select option[value="red"] { color: #ef4444 !important; }
#theme-select option[value="sab-red"] { color: #dc2626 !important; }
#theme-select option[value="pink"] { color: #ec4899 !important; }
#theme-select option[value="bw"] { color: #1e293b !important; }
#theme-select option[value="sab-black"] { color: #0f172a !important; }
#theme-select option[value="heaven"] { color: #d97706 !important; }
#theme-select option[value="hell"] { color: #b91c1c !important; }
#theme-select option[value="underwater"] { color: #0284c7 !important; }
#theme-select option[value="bronze"] { color: #cd7f32 !important; }
#theme-select option[value="silver"] { color: #94a3b8 !important; }
#theme-select option[value="gold"] { color: #eab308 !important; }

/* Fullscreen Rolling Loader Screen (Exactly as in reference image input_file_0.png) */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-gradient-end);
  background-image: radial-gradient(ellipse at 50% 20%, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 75%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-wrapper {
  width: 100%;
  height: 100%;
  background-repeat: repeat;
  background-image: url("../images/bg-lg.png");
  background-size: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-loader {
  text-align: center;
  cursor: default;
  pointer-events: none;
  width: calc(100% - 30px);
  max-width: 750px;
  padding: 20px;
}

.loader-title {
  font-family: "Marvin", Arial, sans-serif;
  font-size: 48px;
  color: #38bdf8;
  -webkit-text-stroke: 3.5px #ffffff;
  paint-order: stroke fill;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  text-transform: uppercase;
  animation: title-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes title-pulse {
  from { transform: scale(0.97); }
  to { transform: scale(1.03); }
}

.loader-dice-arena {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 96vw !important;
  margin: 0 auto !important;
  perspective: 900px !important;
}

/* Floating Top Utility Bar */
.top-utility-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto 10px auto;
  padding: 0 10px;
}

.util-btn {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  border-radius: 20px;
  padding: 5px 12px;
  font-family: "Marvin", Arial, sans-serif;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: all 0.15s ease;
}

.util-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}


/* Brand Header */
.brand-header-box {
  text-align: center;
  margin-bottom: 25px;
}

#logo {
  max-height: 70px;
  width: auto;
  filter: saturate(1.05) brightness(1.03);
}

#sub-title {
  font-family: "Marvin", Arial, sans-serif;
  font-size: 22px;
  color: #ffffff;
  text-shadow: -1px -1px 0 #0088ff, 1px -1px 0 #0088ff, -1px 1px 0 #0088ff, 3px 3px 0 #0088ff;
  letter-spacing: 0.06em;
  text-align: center;
  margin-top: 8px;
  text-transform: uppercase;
}

/* Centered Layout (Dedicated Clean 1-Manager Setup) */
.main-wrapper-centered {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 12px;
}

/* Card Styles */
.card {
  box-sizing: border-box;
}

.filled {
  background: var(--card-bg);
}

.more-rounded {
  border-radius: 20px;
  border: 5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 2px 2px 5px 1px rgba(0, 98, 183, 0.33);
}

/* Center Main Card (#dice-roll-box) */
#dice-roll-box {
  width: 100%;
  text-align: center;
  padding: 26px 20px;
  box-sizing: border-box;
  margin-bottom: 25px;
}

#sub-title2 {
  font-family: "Marvin", Arial, sans-serif;
  font-size: 28px;
  color: #ffffff;
  text-shadow: -1px -1px 0 #0088ff, 1px -1px 0 #0088ff, -1px 1px 0 #0088ff, 3px 3px 0 #0088ff;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}

/* Three Selects Row */
.selects-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

select.custom-select {
  font-family: "Marvin", Arial, sans-serif;
  font-size: 16px;
  color: #0088ff;
  background: #ffffff !important;
  border: 2px solid #0088ff;
  border-radius: 4px;
  padding: 6px 8px;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  outline: none;
  text-align: center;
}

/* Theme Select Active Accent Colors */
body.theme-blue #theme-select { color: #0088ff !important; border-color: #0088ff !important; }
body.theme-sab-blue #theme-select { color: #0284c7 !important; border-color: #0284c7 !important; }
body.theme-green #theme-select { color: #10b981 !important; border-color: #10b981 !important; }
body.theme-sab-green #theme-select { color: #059669 !important; border-color: #059669 !important; }
body.theme-red #theme-select { color: #ef4444 !important; border-color: #ef4444 !important; }
body.theme-sab-red #theme-select { color: #dc2626 !important; border-color: #dc2626 !important; }
body.theme-pink #theme-select { color: #ec4899 !important; border-color: #ec4899 !important; }
body.theme-bw #theme-select { color: #1e293b !important; border-color: #1e293b !important; }
body.theme-sab-black #theme-select { color: #0f172a !important; border-color: #0f172a !important; }
body.theme-heaven #theme-select { color: #d97706 !important; border-color: #d97706 !important; }
body.theme-hell #theme-select { color: #b91c1c !important; border-color: #b91c1c !important; }
body.theme-underwater #theme-select { color: #0284c7 !important; border-color: #0284c7 !important; }
body.theme-bronze #theme-select { color: #cd7f32 !important; border-color: #cd7f32 !important; }
body.theme-silver #theme-select { color: #94a3b8 !important; border-color: #94a3b8 !important; }
body.theme-gold #theme-select { color: #eab308 !important; border-color: #eab308 !important; }

/* Tabletop Arena */
.tabletop {
  margin: 10px 0 14px 0;
  padding: 14px 10px;
  background: none;
  text-align: center;
}

.dice-arena {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 90px;
}

/* THE DICE: Authentic online-dice.com dicefont implementation */
.dice-wrapper {
  display: inline-block;
  line-height: 1;
  position: relative;
  margin: 5px;
  vertical-align: middle;
  background: #ffffff !important;
  user-select: none;
  cursor: pointer;
  transition: transform 0.15s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.dice-wrapper:hover {
  transform: translateY(-2px) scale(1.05);
}

.rounded-dice {
  border-radius: 20px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0);
}

/* Authentic Size Variations */
.size-100 {
  font-size: 100px;
  width: 100px;
  height: 100px;
  border-radius: 20px;
}
.size-100 i {
  width: 100px;
  height: 100px;
  display: block;
}

.size-80 {
  font-size: 80px;
  width: 80px;
  height: 80px;
  border-radius: 16px;
}
.size-80 i {
  width: 80px;
  height: 80px;
  display: block;
}

.size-64 {
  font-size: 64px;
  width: 64px;
  height: 64px;
  border-radius: 13px;
}
.size-64 i {
  width: 64px;
  height: 64px;
  display: block;
}

.size-48 {
  font-size: 48px;
  width: 48px;
  height: 48px;
  border-radius: 10px;
}
.size-48 i {
  width: 48px;
  height: 48px;
  display: block;
}

.size-36 {
  font-size: 36px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.size-36 i {
  width: 36px;
  height: 36px;
  display: block;
}

.size-26 {
  font-size: 26px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
}
.size-26 i {
  width: 26px;
  height: 26px;
  display: block;
}

/* Shake / Roll Tumbling Animations (Exact from online-dice.com) */
@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

@keyframes dice-bounce-updown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.dice-wrapper i {
  animation: none !important;
}

.loader-dice-arena .dice-wrapper {
  animation: dice-bounce-updown 0.65s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
.loader-dice-arena .dice-wrapper:nth-child(2) { animation-delay: 0.07s; }
.loader-dice-arena .dice-wrapper:nth-child(3) { animation-delay: 0.14s; }
.loader-dice-arena .dice-wrapper:nth-child(4) { animation-delay: 0.21s; }
.loader-dice-arena .dice-wrapper:nth-child(5) { animation-delay: 0.28s; }
.loader-dice-arena .dice-wrapper:nth-child(6) { animation-delay: 0.35s; }

/* Game ID & Verify History (Matching Reference Photo Exactly) */
.game-id-container {
  margin: 12px auto 8px auto;
  text-align: center;
}

.game-id-code {
  font-family: "Marvin", Arial, sans-serif;
  font-size: 26px;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.25), 1px 1px 0 rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.25);
  margin-bottom: 6px;
  user-select: text;
}

.verify-history-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.92);
  padding: 5px 16px;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.verify-timer-icon {
  font-size: 15px;
  color: #334155;
  line-height: 1;
  display: inline-block;
}

.verify-history-link {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.15s ease;
}
.verify-history-link:hover {
  color: #1e40af;
}

/* Roll Button (Faithfully matched gold gradient & 3D styling) */
#roll-button {
  width: 100%;
  box-sizing: border-box;
  font-family: "Marvin", Arial, sans-serif;
  font-size: 24px;
  padding: 13px 0;
  margin: 12px 0 10px 0;
  letter-spacing: 0.03em;
  text-shadow: -1px -1px 0 #ca8a00, 1px -1px 0 #ca8a00, -1px 1px 0 #ca8a00, 2px 2px 0 #ca8a00;
  background: rgb(255, 215, 0);
  background-image: linear-gradient(to bottom, rgb(255, 235, 0) 0%, rgb(255, 215, 0) 51%, rgb(255, 244, 188) 100%);
  background-size: auto 200%;
  border-top: 3px solid #fff;
  border-right: 3px solid rgba(255, 255, 255, 0.85);
  border-bottom: 3px solid rgba(255, 255, 255, 0.85);
  border-left: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  transition: 0.1s;
}

#roll-button:hover {
  background-size: auto 200%;
  background-position: bottom center;
}

#roll-button:active {
  transform: translateY(2px);
}

#roll-button:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* Current Roll Summary Chips */
.current-summary-row {
  margin: 8px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.summary-chip {
  background: #ffffff;
  border-radius: 16px;
  padding: 2px 8px;
  font-size: 12px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  color: #333;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* Legend info */
.possible-colors-box {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  background: rgba(225, 225, 225, 0.3);
  border-radius: 4px;
  padding: 4px 6px;
  margin: 10px 0;
  text-transform: none;
}

/* History Link Toggle */
.history-toggle-link {
  font-family: Arial, sans-serif;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  display: inline-block;
  margin-top: 4px;
  color: #ffffff;
}
.history-toggle-link:hover {
  color: #ffe066;
}

/* Secondary Panels (History, Stats, Details) */
.details-container {
  max-width: 680px;
  margin: 10px auto 0 auto;
  padding: 0 10px;
}

.sub-card {
  background: var(--card-bg);
  border-radius: 20px;
  border: 5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 2px 2px 5px 1px rgba(0, 98, 183, 0.33);
  padding: 22px;
  margin-bottom: 20px;
}

.sub-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.sub-card-title {
  font-family: "Marvin", Arial, sans-serif;
  font-size: 20px;
}

.card-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}
.card-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Stats Box inside History */
.stats-banner {
  background: rgba(225, 225, 225, 0.25);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
  text-align: left;
}

.stats-badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.stats-badge {
  background: #ffffff;
  border-radius: 4px;
  padding: 2px 8px;
  margin: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  vertical-align: middle;
}

.stats-badge .dice-wrapper {
  margin: 0 !important;
  background: #ffffff !important;
  font-size: 16px !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  vertical-align: middle;
}

.stats-badge .dice-wrapper i {
  animation: none !important;
  width: 16px !important;
  height: 16px !important;
  display: block;
}

.table-stats {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 13px;
  text-align: left;
}

.table-stats th, .table-stats td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.table-stats th {
  background: rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

.history-list {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px;
  max-height: 350px;
  overflow-y: auto;
  text-align: left;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
  padding: 8px 4px;
  gap: 10px;
}

.history-item:last-child {
  border-bottom: none;
}

.mini-die-thumb {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.mini-die-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

.btn-sm {
  padding: 6px 14px;
  border-radius: 4px;
  font-family: "Marvin", Arial, sans-serif;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.4);
}

.btn-danger {
  background: #e74c3c;
  color: #fff;
}
.btn-danger:hover {
  background: #c0392b;
}

.btn-success {
  background: #2ecc71;
  color: #fff;
}
.btn-success:hover {
  background: #27ae60;
}

.btn-primary {
  background: #0088ff;
  color: #fff;
}
.btn-primary:hover {
  background: #0066cc;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff;
  color: #2c3e50;
  width: 100%;
  max-width: 620px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ecf0f1;
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.modal-title {
  font-family: "Marvin", Arial, sans-serif;
  font-size: 22px;
  color: #1a252f;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #95a5a6;
  cursor: pointer;
}
.modal-close:hover {
  color: #e74c3c;
}

/* Admin Weight Controls Form */
.admin-weight-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.weight-row {
  display: grid;
  grid-template-columns: 120px 1fr 70px 80px;
  align-items: center;
  gap: 10px;
  background: #f8f9fa;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.weight-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Marvin", Arial, sans-serif;
  font-size: 14px;
}

.weight-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.weight-slider {
  width: 100%;
  cursor: pointer;
  accent-color: #0088ff;
}

.weight-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.prob-calc-tag {
  font-size: 14px;
  font-weight: 800;
  color: #0088ff;
  text-align: right;
  font-family: monospace;
}

.prob-bar-container {
  height: 22px;
  border-radius: 11px;
  overflow: hidden;
  display: flex;
  width: 100%;
  background: #e9ecef;
  margin: 14px 0;
}

.prob-bar-segment {
  height: 100%;
  transition: width 0.2s ease;
}

.preset-btn-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.admin-alert-box {
  background: #e8f4fd;
  border-left: 4px solid #0088ff;
  padding: 10px 12px;
  font-size: 13px;
  color: #1a4f78;
  border-radius: 0 6px 6px 0;
  margin: 12px 0;
  line-height: 1.5;
  font-family: Arial, sans-serif;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #2c3e50;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toast.toast-success { background: #27ae60; }
.toast.toast-error { background: #e74c3c; }
.toast.toast-info { background: #2980b9; }

/* Responsive adjustments */
@media only screen and (max-width: 640px) {
  .selects-row {
    grid-template-columns: 1fr;
  }
  #logo {
    max-height: 50px;
  }
  #sub-title {
    font-size: 18px;
  }
  #sub-title2 {
    font-size: 22px;
  }
  .loader-title {
    font-size: 30px;
  }
  .weight-row {
    grid-template-columns: 90px 1fr 60px 50px;
  }
}

/* ==========================================================================
   GAME ID SEARCH & VERIFY MODAL STYLES (PROVABLY FAIR VERIFICATION)
   ========================================================================== */
.game-id-search-panel {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
  text-align: left;
}

.search-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.search-panel-label {
  font-family: "Marvin", Arial, sans-serif;
  font-size: 15px;
  color: #ffffff;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.search-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-input-wrapper input {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 2px solid #0088ff;
  border-radius: 8px;
  padding: 9px 36px 9px 12px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #1e293b;
  outline: none;
  transition: all 0.2s ease;
}

.search-input-wrapper input:focus {
  border-color: #ffd700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.35);
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: #e2e8f0;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  cursor: pointer;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.search-clear-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.btn-search-verify {
  font-family: "Marvin", Arial, sans-serif;
  font-size: 15px;
  background: rgb(255, 215, 0);
  background-image: linear-gradient(to bottom, #ffeb3b, #fbc02d);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  border: 2px solid #ffffff;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.15s ease;
}

.btn-search-verify:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.btn-search-verify:active {
  transform: translateY(1px);
}

.search-result-box {
  margin-top: 10px;
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.2s ease-out;
}

.search-result-box.found {
  border: 1px solid rgba(105, 240, 174, 0.6);
  background: rgba(16, 185, 129, 0.18);
}

.search-result-box.not-found {
  border: 1px solid rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.22);
}

/* Roll Item Header in History List */
.history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 4px;
}

.history-item-meta {
  font-family: Arial, sans-serif;
  font-size: 11px;
  opacity: 0.95;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.history-game-id-badge {
  font-family: monospace;
  font-size: 12px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.history-game-id-badge:hover {
  background: #ffd700;
  color: #1e293b;
}

.btn-detail-link {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #ffe066;
  text-decoration: underline;
  cursor: pointer;
  font-weight: bold;
}
.btn-detail-link:hover {
  color: #ffffff;
}

/* Verify Modal Styles */
.verify-modal-card {
  max-width: 580px !important;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 24px;
}

.verify-modal-search {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.verify-modal-search input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  outline: none;
}
.verify-modal-search input:focus {
  border-color: #0088ff;
  box-shadow: 0 0 0 2px rgba(0, 136, 255, 0.2);
}

.verify-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}

.verify-header-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.verify-id-title {
  font-family: "Marvin", Arial, sans-serif;
  font-size: 18px;
  color: #0f172a;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.verify-id-code {
  font-family: monospace;
  font-weight: 700;
  background: #e0f2fe;
  color: #0369a1;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 16px;
  border: 1px solid #bae6fd;
}

.copy-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  color: #334155;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.copy-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.badge-verified {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.verify-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: #475569;
  margin-bottom: 14px;
  background: #ffffff;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.verify-dice-area {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  margin-bottom: 14px;
  min-height: 80px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.verify-weights-snapshot {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 12px;
  border: 1px solid #e2e8f0;
  font-family: Arial, sans-serif;
  font-size: 12px;
}

.verify-weights-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 8px;
  text-align: center;
}

.verify-weight-pill {
  background: #ffffff;
  border-radius: 6px;
  padding: 5px 2px;
  border: 1px solid #e2e8f0;
  font-size: 11px;
}

/* ==========================================================================
   TOP STREAMERS & LIVE BROADCAST WIDGET (Exact Replica of online-dice.com)
   ========================================================================== */

/* Utility Button Live Indicator */
.util-btn-live {
  border-color: rgba(255, 68, 68, 0.6) !important;
}

.util-btn-live.active {
  background: rgba(239, 68, 68, 0.3) !important;
  border-color: #ef4444 !important;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* ==========================================================================
   AUTHENTIC 3-COLUMN DESKTOP & 1-COLUMN MOBILE LAYOUT (Matching online-dice.com)
   ========================================================================== */

/* Main 3-Column Layout */
.main-3col-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
}

.streamers-col-left,
.streamers-col-right {
  width: 290px;
  flex: 0 0 290px;
}

.main-game-col {
  width: 460px;
  flex: 0 0 460px;
  max-width: 100%;
}

/* Card Styling */
.streamers-sidebar-card {
  padding: 16px 12px;
  text-align: center;
}

.streamers-card-title {
  font-family: "Marvin", Arial, sans-serif;
  font-size: 20px;
  color: #ffffff;
  text-shadow: -1px -1px 0 #0088ff, 1px -1px 0 #0088ff, -1px 1px 0 #0088ff, 2px 2px 0 #0088ff;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  text-align: center;
}

.streamers-pill-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Streamer Capsule / Pill Item (Exact match to Screenshot 3) */
.streamer-pill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  padding: 7px 10px;
  cursor: pointer;
  transition: all 0.16s ease;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.streamer-pill-item:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.streamer-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.streamer-pill-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ffffff;
  display: block;
}

.live-sub-tag {
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  background: #dc2626;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 6px;
  border: 1px solid #ffffff;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-transform: capitalize;
  animation: pulse-live 1.6s infinite ease-in-out;
}

@keyframes pulse-live {
  0% {
    transform: translateX(-50%) scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0);
  }
  100% {
    transform: translateX(-50%) scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.streamer-pill-viewers {
  font-family: Arial, sans-serif;
  font-size: 10px;
  color: #4ade80;
  font-weight: 700;
  white-space: nowrap;
}

.streamer-pill-details {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.streamer-pill-top {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 1px;
}

.streamer-pill-name {
  font-family: Arial, sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: #ffffff;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

.streamer-verified-icon {
  background: #ffffff;
  color: #0284c7;
  font-size: 9px;
  font-weight: 900;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.streamer-pill-handle {
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Big Gold GO AGAIN Button (Screenshot 3) */
.btn-go-again {
  background: linear-gradient(180deg, #ffe066 0%, #f59e0b 100%) !important;
  color: #ffffff !important;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.4) !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
  border-radius: 12px !important;
  font-size: 26px !important;
  padding: 12px 20px !important;
  font-family: "Marvin", Arial, sans-serif !important;
  text-transform: uppercase !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  margin-top: 14px !important;
  margin-bottom: 10px !important;
}

.btn-go-again:hover {
  background: linear-gradient(180deg, #fff085 0%, #d97706 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3) !important;
}

.btn-go-again:active {
  transform: translateY(1px) !important;
}

/* Counter Box Container (Below GO AGAIN button in Screenshot 3) */
.counter-box-container {
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 10px;
}

.counter-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 6px;
}

.counter-btn-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.counter-step-btn {
  background: rgba(255, 255, 255, 0.28);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  font-family: "Marvin", Arial, sans-serif;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.counter-step-btn:hover {
  background: rgba(255, 255, 255, 0.45);
  border-color: #fff;
}

.counter-big-display {
  font-family: "Marvin", Arial, sans-serif;
  font-size: 42px;
  color: #ffffff;
  text-shadow: -1px -1px 0 #0088ff, 1px -1px 0 #0088ff, 2px 2px 0 #0088ff;
  line-height: 1;
}

.counter-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.streak-pill,
.users-online-pill {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 4px 12px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.green-dot {
  color: #22c55e;
  font-size: 13px;
}

/* Anti-Ban Section & Toggle (Screenshot 1) */
.anti-ban-section {
  text-align: center;
  margin-top: 14px;
  margin-bottom: 14px;
}

.possible-colors-box {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.winning-chances-row {
  margin-bottom: 10px;
}

.winning-chances-link {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: #ffffff;
  text-decoration: underline;
  opacity: 0.95;
  transition: opacity 0.15s;
}

.winning-chances-link:hover {
  opacity: 1;
}

.anti-ban-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  padding: 6px 18px;
}

.anti-ban-title {
  font-family: "Marvin", Arial, sans-serif;
  font-size: 16px;
  color: #ffffff;
  letter-spacing: 0.03em;
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  vertical-align: middle;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #475569;
  transition: .3s;
  border-radius: 24px;
  border: 1.5px solid #ffffff;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider-round {
  background-color: #22c55e;
}

input:checked + .slider-round:before {
  transform: translateX(20px);
}

/* Card Close Row & Button */
.card-close-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.round-close-btn {
  background: rgba(255, 255, 255, 0.3);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.round-close-btn:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Mobile Streamers Card & Scrollable Container (Matching online-dice.com exactly) */
.mobile-streamers-card {
  padding: 16px 14px;
  margin-top: 14px;
  display: none; /* Desktop hides it, mobile shows it */
}

.mobile-streamers-card .streamers-pill-list {
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.streamers-sidebar-card .streamers-pill-list {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

/* Custom Sleek Transparent Scrollbar */
.mobile-streamers-card .streamers-pill-list::-webkit-scrollbar,
.streamers-sidebar-card .streamers-pill-list::-webkit-scrollbar {
  width: 5px;
}

.mobile-streamers-card .streamers-pill-list::-webkit-scrollbar-track,
.streamers-sidebar-card .streamers-pill-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.mobile-streamers-card .streamers-pill-list::-webkit-scrollbar-thumb,
.streamers-sidebar-card .streamers-pill-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.45);
  border-radius: 8px;
}

.mobile-streamers-card .streamers-pill-list::-webkit-scrollbar-thumb:hover,
.streamers-sidebar-card .streamers-pill-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.75);
}

/* History Card Box (Screenshot 1) */
.history-card-box {
  padding: 18px 14px;
  margin-top: 14px;
}

.history-card-title {
  font-family: "Marvin", Arial, sans-serif;
  font-size: 22px;
  color: #ffffff;
  text-shadow: -1px -1px 0 #0088ff, 1px -1px 0 #0088ff, 2px 2px 0 #0088ff;
  letter-spacing: 0.03em;
  margin: 0;
}

.stats-summary-block {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  text-align: left;
}

.stats-block-heading {
  font-family: "Marvin", Arial, sans-serif;
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.stats-badges-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-rolls-wrapper {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 12px;
  max-height: 280px;
  overflow-y: auto;
  text-align: left;
}

/* History Roll Rows (Matching online-dice.com in Screenshot 1 exactly) */
.history-section-label {
  font-family: "Marvin", Arial, sans-serif;
  font-size: 15px;
  color: #ffffff;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.history-roll-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.history-roll-index {
  font-family: "Marvin", Arial, sans-serif;
  font-size: 17px;
  color: #ffffff;
  min-width: 24px;
}

.history-dice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.history-previous-section {
  border-top: 1px dashed rgba(255, 255, 255, 0.4);
  padding-top: 10px;
  margin-top: 10px;
}

/* INSTALL APP Card (Screenshot 2) */
.install-app-card {
  text-align: center;
  padding: 18px 14px;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
}

.btn-install-app {
  background: #ffffff;
  color: #0284c7;
  font-family: "Marvin", Arial, sans-serif;
  font-size: 20px;
  letter-spacing: 0.04em;
  padding: 10px 28px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: all 0.15s ease;
  display: block;
  margin: 0 auto 6px auto;
  max-width: 260px;
  width: 85%;
  text-transform: uppercase;
}

.btn-install-app:hover {
  background: #f0f9ff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.btn-install-app:active {
  transform: translateY(1px);
}

.install-app-sub {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: #ffffff;
  font-style: italic;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* White Rolling Dice matching Screenshot 2 (online-dice.com authentic replica) */
.loader-white-die {
  background: #ffffff !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  padding: 10px !important;
  width: 90px !important;
  height: 90px !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  border: none !important;
  animation: dice-bounce-updown 0.65s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite !important;
}

.loader-white-die .die-inner-face {
  width: 100% !important;
  height: 100% !important;
  background: #dfe3ea !important; /* Visible soft grey-blue surface matching Image 2 */
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

.loader-white-die .die-center-dot {
  width: 22px !important;
  height: 22px !important;
  background: #ffffff !important; /* Crisp pure white pip in center */
  border-radius: 50% !important;
  display: block !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16) !important;
}

.loader-dice-arena .loader-white-die:nth-child(1) { animation-delay: 0s !important; }
.loader-dice-arena .loader-white-die:nth-child(2) { animation-delay: 0.08s !important; }
.loader-dice-arena .loader-white-die:nth-child(3) { animation-delay: 0.16s !important; }
.loader-dice-arena .loader-white-die:nth-child(4) { animation-delay: 0.24s !important; }
.loader-dice-arena .loader-white-die:nth-child(5) { animation-delay: 0.32s !important; }
.loader-dice-arena .loader-white-die:nth-child(6) { animation-delay: 0.40s !important; }

@media (max-width: 480px) {
  .loader-dice-arena {
    gap: 10px !important;
  }
  .loader-white-die {
    width: 68px !important;
    height: 68px !important;
    border-radius: 14px !important;
    padding: 7px !important;
  }
  .loader-white-die .die-inner-face {
    border-radius: 9px !important;
  }
  .loader-white-die .die-center-dot {
    width: 16px !important;
    height: 16px !important;
  }
}

/* Info Cards (Screenshot 2) */
.info-card-box {
  padding: 18px 16px;
  margin-top: 14px;
  text-align: left;
}

.about-us-title {
  font-family: "Marvin", Arial, sans-serif;
  font-size: 24px;
  color: #ffffff;
  text-shadow: -1px -1px 0 #0088ff, 1px -1px 0 #0088ff, 2px 2px 0 #0088ff;
  margin-bottom: 8px;
}

.info-p-text {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #ffffff;
  line-height: 1.6;
  opacity: 0.95;
}

/* Dark Blue Footer (Screenshot 2) */
.official-footer {
  background: #002e4f;
  padding: 26px 14px 34px 14px;
  text-align: center;
  font-family: "Marvin", Arial, sans-serif;
  margin-top: 30px;
}

.footer-nav-row1 {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.footer-nav-row1 a,
.footer-nav-row2 a {
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.footer-nav-row1 a:hover,
.footer-nav-row2 a:hover {
  text-decoration: underline;
}

.footer-nav-row2 {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 13px;
}

.footer-lang-wrap {
  margin-bottom: 14px;
}

.footer-lang-select {
  background: #ffffff;
  color: #002e4f;
  font-family: "Marvin", Arial, sans-serif;
  font-size: 13px;
  font-weight: bold;
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  outline: none;
}

.footer-copy {
  font-family: "Marvin", Arial, sans-serif;
  font-size: 13px;
  color: #ffffff;
  opacity: 0.8;
  letter-spacing: 0.05em;
}

/* Stream Player Modal */
.stream-player-card {
  max-width: 960px !important;
  width: 95vw !important;
  padding: 0 !important;
  background: #0f172a !important;
  border-radius: 16px !important;
  border: 2px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7) !important;
  overflow: hidden;
}

.stream-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.stream-channel-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stream-modal-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #ef4444;
  object-fit: cover;
}

.stream-modal-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stream-modal-title {
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.verified-badge {
  background: #0284c7;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stream-modal-handle {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #94a3b8;
}

.stream-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stream-modal-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-badge-red {
  background: #dc2626;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.stream-viewers-count {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: #f1f5f9;
}

.stream-body-grid {
  display: grid;
  grid-template-columns: 1fr 310px;
  min-height: 460px;
  background: #0b0f19;
}

.stream-video-container {
  display: flex;
  flex-direction: column;
  background: #000000;
  border-right: 1px solid #1e293b;
}

.stream-video-feed {
  flex: 1;
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  overflow: hidden;
}

.stream-video-feed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.sim-stream-stage {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1e1b4b 0%, #030712 90%);
  padding: 20px;
  box-sizing: border-box;
}

.sim-stream-center-box {
  text-align: center;
  z-index: 2;
}

.sim-streamer-large-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid #ef4444;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.7);
  object-fit: cover;
  margin-bottom: 12px;
}

.sim-stream-live-tag {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.sim-stream-dice-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.sim-dice-pip {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.floating-heart {
  position: absolute;
  bottom: 20px;
  right: 25px;
  font-size: 24px;
  pointer-events: none;
  animation: float-up-fade 2.5s forwards ease-out;
}

@keyframes float-up-fade {
  0% { transform: translateY(0) scale(0.8); opacity: 1; }
  100% { transform: translateY(-160px) translateX(-30px) scale(1.3); opacity: 0; }
}

.stream-video-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #111827;
  border-top: 1px solid #1f2937;
}

.hud-stream-title {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 12px;
}

.stream-link-btn {
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  font-size: 12px !important;
  padding: 6px 14px !important;
}

.stream-chat-container {
  display: flex;
  flex-direction: column;
  background: #0f172a;
}

.stream-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
}

.chat-online-dot {
  color: #22c55e;
  font-size: 11px;
}

.stream-chat-messages {
  flex: 1;
  max-height: 340px;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: Arial, sans-serif;
  font-size: 12px;
}

.stream-chat-messages::-webkit-scrollbar {
  width: 4px;
}
.stream-chat-messages::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 2px;
}

.chat-msg-item {
  line-height: 1.4;
  word-break: break-word;
}

.chat-user-badge {
  font-weight: 700;
  margin-right: 6px;
}

.chat-text {
  color: #f1f5f9;
}

.stream-chat-input-row {
  display: flex;
  padding: 10px 12px;
  background: #1e293b;
  border-top: 1px solid #334155;
  gap: 8px;
}

.stream-chat-input-row input {
  flex: 1;
  padding: 8px 12px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 12px;
  outline: none;
}

.stream-chat-send-btn {
  background: #0284c7;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0 14px;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}

/* ==========================================================================
   MOBILE RESPONSIVE BEHAVIOR (Matches Screenshot 1 & 2 Perfectly)
   ========================================================================== */
@media (max-width: 959px) {
  .main-3col-layout {
    flex-direction: column;
    align-items: center;
    padding: 6px;
  }

  /* Desktop sidebars hide on mobile */
  .streamers-col-left,
  .streamers-col-right {
    display: none !important;
  }

  /* Main Game fills available mobile width */
  .main-game-col {
    width: 100%;
    max-width: 440px;
  }

  /* Mobile Streamers Card shows on mobile underneath game (Screenshot 1) */
  .mobile-streamers-card {
    display: block !important;
  }

  #dice-roll-box {
    padding: 20px 14px;
  }

  .counter-big-display {
    font-size: 36px;
  }

  .btn-go-again {
    font-size: 22px !important;
    padding: 10px 16px !important;
  }

  .stream-body-grid {
    grid-template-columns: 1fr;
  }
  .stream-chat-container {
    height: 240px;
  }
}


