/* CasinoOnlineRuleta - Dark Mode UI (no frameworks) */
:root {
  --bg: #0f172a;
  --panel: #111c33;
  --panel2: #0b1324;
  --glass: rgba(17, 28, 51, .72);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --muted2: #94a3b8;
  --green: #22c55e;
  --blue: #0ea5e9;
  --blue2: #0284c7;
  --border: rgba(148, 163, 184, .18);
  --shadow: 0 10px 35px rgba(0, 0, 0, .35);
  --radius: 18px;
  --radius2: 26px;
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(34, 197, 94, .16), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(14, 165, 233, .16), transparent 55%),
    linear-gradient(180deg, var(--bg), #070b15 70%);
  background-attachment: fixed;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-top: 64px;
}

a {
  color: inherit
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px
}

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  left: 16px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  z-index: 10000
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, .72);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none
}

.brand-text {
  font-size: 15px;
  letter-spacing: .2px
}

.brand-text b {
  font-weight: 800
}

.accent {
  color: var(--green)
}

.nav {
  display: flex;
  gap: 10px;
  align-items: center
}

.nav a {
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  border: 1px solid transparent;
}

.nav a:hover, nav a.active {
  color: var(--text);
  border-color: var(--border);
  background: rgba(17, 28, 51, .5)
}

.nav .pill {
  background: rgba(34, 197, 94, .14);
  border-color: rgba(34, 197, 94, .28);
  color: var(--text)
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(17, 28, 51, .55);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 10px;
  background: var(--muted);
  border-radius: 2px
}

.page {
  padding: 22px 0 40px
}

.page-hero {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(34, 197, 94, .12), rgba(14, 165, 233, .10));
  box-shadow: var(--shadow);
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
  align-items: center
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15
}

.lead {
  font-size: 16px
}

.hero-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(11, 19, 36, .55);
  padding: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}

.hero-img {
  opacity: .95
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(34, 197, 94, .95), rgba(14, 165, 233, .95));
  color: #06111f
}

.btn-primary:hover {
  filter: brightness(1.04)
}

.btn-secondary {
  background: rgba(14, 165, 233, .16);
  border-color: rgba(14, 165, 233, .28)
}

.btn-secondary:hover {
  background: rgba(14, 165, 233, .22)
}

.btn-ghost {
  background: rgba(17, 28, 51, .25);
  border-color: var(--border);
  color: var(--text)
}

.btn-ghost:hover {
  background: rgba(17, 28, 51, .42)
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(17, 28, 51, .45);
  color: var(--text);
  cursor: pointer;
}

.section {
  margin-top: 18px
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(17, 28, 51, .55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
}

.card-pad {
  padding: 16px
}

.card h2,
.card h3 {
  margin: 0 0 10px
}

.card h2 {
  font-size: 20px
}

.card h3 {
  font-size: 16px
}

.card-img {
  border: none;
}

.muted {
  color: var(--muted)
}

.small {
  font-size: 13px
}

.tiny {
  font-size: 12px
}

.kpi {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px
}

.kpi .pill {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(11, 19, 36, .55);
  color: var(--muted)
}

.pill-fixed {
  background: rgba(34, 197, 94, .14) !important;
  border-color: rgba(34, 197, 94, .28) !important;
  color: var(--text) !important
}

.list {
  margin: 0;
  padding-left: 18px
}

.list li {
  margin: 6px 0
}

.notice {
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(14, 165, 233, .28);
  background: rgba(14, 165, 233, .10);
}

.notice b {
  color: var(--text)
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(11, 19, 36, .55);
  color: var(--muted)
}

.badge i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green)
}

.table-wrap {
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(11, 19, 36, .55)
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px
}

th,
td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800
}

td {
  color: var(--text)
}

tr:hover td {
  background: rgba(17, 28, 51, .35)
}

.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(34, 197, 94, .14);
  border: 1px solid rgba(34, 197, 94, .28);
  font-weight: 900
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17, 28, 51, .45);
  padding: 12px 14px;
  margin: 10px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.faq summary::-webkit-details-marker {
  display: none
}

.faq .q {
  font-weight: 800
}

.faq .icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 19, 36, .55);
  color: var(--muted);
  flex: 0 0 auto;
}

.faq details[open] .icon {
  color: var(--text);
  border-color: rgba(14, 165, 233, .28);
  background: rgba(14, 165, 233, .12)
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(7, 11, 21, .6);
  padding: 22px 0 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 14px
}

.footer-brand {
  display: flex;
  gap: 10px;
  align-items: center
}

.footer-title {
  font-weight: 900
}

.footer-head {
  font-weight: 900;
  margin-bottom: 8px
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0
}

.footer-links li {
  margin: 6px 0
}

.footer-links a {
  color: var(--muted);
  text-decoration: none
}

.footer-links a:hover {
  color: var(--text)
}

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border)
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  z-index: 9999;
}

.cookie-card {
  max-width: var(--max);
  margin: 0 auto;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: rgba(11, 19, 36, .97);
  box-shadow: var(--shadow);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cookie-title {
  font-weight: 900
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.modal[hidden] {
  display: none
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55)
}

.modal-panel {
  position: relative;
  width: min(680px, calc(100% - 24px));
  margin: 10vh auto 0;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: rgba(11, 19, 36, .97);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid var(--border)
}

.modal-title {
  font-weight: 900
}

.modal-body {
  padding: 14px
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--border)
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17, 28, 51, .45);
  margin-bottom: 10px;
}

.toggle-title {
  font-weight: 900
}

/* switch */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px
}

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

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(148, 163, 184, .25);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: .2s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  top: 2px;
  background: #e2e8f0;
  border-radius: 999px;
  transition: .2s;
}

.switch input:checked+.slider {
  background: rgba(34, 197, 94, .35);
  border-color: rgba(34, 197, 94, .40);
}

.switch input:checked+.slider:before {
  transform: translateX(20px);
  background: #06111f
}

.switch input:disabled+.slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.form {
  display: grid;
  gap: 10px
}

.input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(11, 19, 36, .55);
  color: var(--text);
  outline: none;
}

textarea.input {
  min-height: 120px;
  resize: vertical
}

label {
  font-weight: 800
}

.helper {
  color: var(--muted2);
  font-size: 12px
}

.hr {
  height: 1px;
  background: var(--border);
  margin: 14px 0
}

@media (max-width: 980px) {
  table {
    min-width: 720px
  }
}

@media (max-width: 860px) {
  .page-hero-inner {
    grid-template-columns: 1fr
  }

  .footer-grid {
    grid-template-columns: 1fr
  }

  .grid-3 {
    grid-template-columns: 1fr
  }

  .grid-2 {
    grid-template-columns: 1fr
  }

  .nav-toggle {
    display: inline-block
  }

  .nav {
    position: fixed;
    top: 68px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    padding: 12px;
    border-radius: var(--radius2);
    background: rgba(11, 19, 36, .97);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav a {
    width: 100%
  }

  .nav.is-open {
    display: flex
  }

  .cookie-card {
    flex-direction: column;
    align-items: stretch
  }

  .cookie-actions {
    justify-content: flex-end
  }
}