/* Direction A "Midnight Pro" (owner picked 2026-11-23, mockup design/mockups/2026-11-23-a.png).
   Loaded LAST, after the legacy theme files, and overrides them. Every colour comes from the
   per-site tokens written by src/lib/brand.ts: --bg/--band/--tint/--surface/--surface-2/--line/
   --text-dim are dark shades of the site's own hue; --accent ("R G B") is the logo colour.
   Rules: no stripe on any edge, selected tab = solid fill, section rhythm = full-bleed bands. */

:root {
  color-scheme: dark;
  --wrap: 1200px;
  --fade: var(--bg);
}

body,
button,
input,
select,
textarea {
  font-family: var(--font);
}
body {
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ---------- page frame: header column = content column ---------- */
.header-layout,
.header-layout[class] {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 20px;
}
.custom-btn-container.btn-type {
  background: rgb(var(--accent));
  color: var(--on-accent);
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  box-shadow: none;
}
.custom-btn-container .register-btn-text {
  color: var(--on-accent);
  font: 600 15px/1.2 var(--font);
  white-space: nowrap;
}
@media (max-width: 480px) {
  .custom-btn-container.btn-type {
    padding: 9px 14px;
  }
}
.lang-container {
  background: rgb(0 0 0 / 0.22);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 999px;
}

.site-main {
  background: var(--bg);
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 20px;
}
.page-flow > .hero,
.page-flow > .band {
  padding-block: 64px;
}
/* band rhythm after the hero: band -> tint -> bg -> band ... */
.page-flow > .band:nth-child(3n + 2) {
  background: var(--band);
  --fade: var(--band);
}
.page-flow > .band:nth-child(3n + 3) {
  background: var(--tint);
  --fade: var(--tint);
}
.page-flow > .band:nth-child(3n + 4) {
  background: var(--bg);
  --fade: var(--bg);
}
.page-flow .section + .section {
  margin-top: 36px;
}
@media (max-width: 700px) {
  .wrap {
    padding-inline: 16px;
  }
  .page-flow > .hero,
  .page-flow > .band {
    padding-block: 40px;
  }
  .page-flow .section + .section {
    margin-top: 28px;
  }
}

/* ---------- hero: H1 + intro left, login card right ---------- */
.page-flow > .hero {
  background:
    radial-gradient(55% 70% at 88% 18%, rgb(var(--accent) / 0.18), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, rgb(var(--accent) / 0.08), transparent 70%),
    var(--bg);
  padding-block: 56px 64px;
}
.hero-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 64px;
    align-items: center;
  }
  .hero-grid > .hero-head {
    grid-column: 1;
    grid-row: 1;
  }
  .hero-grid > .hero-login {
    grid-column: 2;
    grid-row: 1;
  }
  /* intro that the CMS placed after the login box (fun/games/group/network) */
  .hero-grid:has(> .hero-intro) {
    row-gap: 0;
  }
  .hero-grid:has(> .hero-intro) > .hero-login {
    grid-row: 1 / span 2;
  }
  .hero-grid:has(> .hero-intro) > .hero-head {
    align-self: end;
  }
  .hero-grid > .section.hero-intro {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin-top: 0;
  }
}
.hero-title {
  margin: 0 0 20px;
  font: 600 clamp(34px, 4.4vw, 56px) / 1.25 var(--font);
  color: #fff;
  text-align: left;
}
.hero .fold,
.hero .fold p {
  font-size: 17px;
}

/* ---------- headings and text ---------- */
.sec-head h2 {
  margin: 0 0 18px;
  font: 600 clamp(26px, 3vw, 36px) / 1.3 var(--font);
  color: #fff;
}
.page-flow h3 {
  font-family: var(--font);
}
.page-flow .fold,
.page-flow .fold[class*="text-"] {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
}
.page-flow .fold strong,
.page-flow .fold b {
  color: #fff;
}
.page-flow .fold a,
.page-flow .acc-body a {
  color: rgb(var(--accent));
}
.page-flow .text-gold,
.page-flow .text-style-1 {
  color: rgb(var(--accent));
}
/* CMS keyword highlight: was a fixed teal #2cd4c9 on every site */
.page-flow .text-style-1 {
  line-height: inherit;
}
.page-flow img {
  border-radius: 12px;
}
/* article pictures: shrink by % width and centre (team rule), never stretch to the
   full 1160px column; phones keep 100% */
.page-flow .fold img.w-full {
  display: block;
  width: 70%;
  max-width: 820px;
  height: auto;
  margin-inline: auto;
}
@media (max-width: 700px) {
  .page-flow .fold img.w-full {
    width: 100%;
  }
}
.hero-head > [data-component="Empty"] {
  display: none;
}
.page-flow table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}
.page-flow th,
.page-flow td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}
.page-flow th {
  background: var(--surface);
  color: #fff;
}
.page-flow hr {
  border: 0;
  height: 1px;
  background: var(--line);
}

/* sub-heading of UnfoldMidArrow: drop the old gold triangle */
.fold img[src*="icn-h3-indent"] {
  display: none;
}
.fold .ml-2.font-semibold.text-gold {
  margin-left: 0;
  font: 600 20px/1.4 var(--font);
}

/* ---------- read-more fold ---------- */
/* Fade the clamped text itself (mask), not an overlay painted in one colour: an
   overlay showed as a dark box over the hero glow and inside cards. */
.fold-fade {
  display: none;
}
.fold > div:has(> .fold-fade) {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 64px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 64px), transparent);
}
.fold-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 16px;
  padding: 6px 0;
  background: none;
  border: 0;
  color: rgb(var(--accent));
  font: 500 15px/1.4 var(--font);
  cursor: pointer;
}
.fold-btn:hover .fold-label,
.fold-btn:focus-visible .fold-label {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.fold-label::before {
  content: var(--fold-more);
}
.fold-btn.open .fold-label::before {
  content: var(--fold-less);
}
.fold-ico {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.fold-btn.open .fold-ico {
  transform: rotate(180deg);
}

/* ---------- accordions (UnfoldMid + UnfoldSmall): one look everywhere ---------- */
.acc,
.acc.acc-sm {
  margin: 0 0 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
}
.acc-sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.acc-sum::-webkit-details-marker {
  display: none;
}
.acc .acc-title {
  margin: 0;
  font: 500 17px/1.5 var(--font);
  color: #fff;
  text-align: left;
}
.acc-ico {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: rgb(var(--accent));
  transition: transform 0.2s;
}
.acc[open] > .acc-sum .acc-ico {
  transform: rotate(180deg);
}
.acc[open] > .acc-sum .acc-title {
  color: rgb(var(--accent));
}
.acc-sum:hover .acc-title {
  color: rgb(var(--accent-soft));
}
.acc-body,
.acc-body[class] {
  padding: 0 20px 18px;
  color: var(--text-dim);
  line-height: 1.8;
  text-align: left;
}
.acc-list {
  display: grid;
  column-gap: 12px;
}
.acc-list > div {
  margin: 0;
}
/* two columns only for a real list of questions (4+ items), not one item whose
   sub-list would sit in the left half with the right half empty */
@media (min-width: 1000px) {
  .h3group .acc-list:has(> div:nth-child(4)) {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ---------- horizontal tabs (Tabs.vue): segmented control ---------- */
.tabs-nav {
  gap: 4px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar {
  display: none;
}
.tabs-tab,
.tabs-tab[class] {
  flex: 0 0 auto;
  width: 150px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text-dim);
  font: 500 15px/1.45 var(--font);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tabs-tab:hover {
  color: #fff;
  background: var(--surface-2);
}
@media (min-width: 1000px) {
  .tabs-tab,
  .tabs-tab[class] {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
}

/* TabsRow: chip row */
.tabsrow-nav {
  gap: 8px;
  padding-bottom: 4px;
}
.tabsrow-nav > div {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font: 500 14px/1.45 var(--font);
}
@media (min-width: 1000px) {
  .tabsrow-nav {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* ---------- vertical tabs (TabsVerticle*) ---------- */
.tv {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tv-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: thin;
}
.tv-tab,
.tv-tab[class] {
  flex: 0 0 auto;
  width: 160px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: rgb(255 255 255 / 0.86);
  font: 500 15px/1.45 var(--font);
}
.tv-tab:hover {
  background: var(--surface-2);
}
.tv-body,
.tv-body[class] {
  min-width: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  --fade: var(--surface);
}
.tv-body .tv-body,
.tv-body .tv-tab {
  background: var(--surface-2);
}
.tv-body .tv-body {
  --fade: var(--surface-2);
}
.tv-body > h3 {
  margin: 0 0 10px;
  font: 600 24px/1.35 var(--font);
  color: rgb(var(--accent));
}
.tv-body .acc {
  background: var(--surface-2);
}
@media (min-width: 1000px) {
  .tv {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
  .tv-nav {
    flex-direction: column;
    overflow: visible;
    padding: 0;
  }
  .tv-tab,
  .tv-tab[class] {
    width: auto;
  }
  .tv-body,
  .tv-body[class] {
    padding: 28px;
  }
}

/* selected state for every tab kind: solid accent fill, dark ink, heavier weight */
.tabs-tab.tab-on,
.tabsrow-nav > div.tab-on,
.tv-tab.tab-on,
.page-flow .tab-on {
  background: rgb(var(--accent));
  border-color: transparent;
  color: var(--on-accent);
  font-weight: 600;
}
.page-flow .bg {
  background: var(--surface);
}

/* ---------- login card ---------- */
#section-login {
  margin: 0;
  max-width: none;
  scroll-margin-top: 96px;
}
#section-login .modal-content {
  margin: 0 auto;
  width: 100%;
  max-width: 420px;
  padding: 32px 28px 24px;
  border: 1px solid rgb(var(--accent) / 0.3);
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgb(var(--accent) / 0.12), transparent 55%),
    var(--surface);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.45);
  backdrop-filter: none;
}
@media (max-width: 700px) {
  #section-login .modal-content {
    padding: 26px 18px 20px;
  }
}
#section-login .logo-header {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
#section-login .login-form {
  padding: 8px 0 0;
}
#section-login .login-input-container {
  margin-bottom: 14px;
}
#section-login .login-field {
  min-height: 52px;
  margin: 0;
  padding: 0 48px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-image: none;
  border-radius: 12px;
  color: #fff;
  font: 400 16px/1.4 var(--font);
}
#section-login .login-field::placeholder {
  color: var(--text-dim);
  opacity: 0.75;
}
#section-login .login-field:focus {
  outline: 2px solid rgb(var(--accent) / 0.65);
  outline-offset: 1px;
}
#section-login .imgLeft,
#section-login .imgRight {
  top: 50%;
  transform: translateY(-50%);
  border-radius: 0;
}
#section-login .imgLeft {
  left: 16px;
  width: 20px;
  height: 20px;
}
#section-login .imgRight {
  right: 16px;
}
.page-flow .login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin: 6px 0 0;
  padding: 12px 20px;
  border: 0;
  border-radius: 12px;
  background: rgb(var(--accent));
  color: var(--on-accent);
  font: 600 17px/1.3 var(--font);
  box-shadow: 0 10px 28px rgb(var(--accent) / 0.25);
  cursor: pointer;
}
.page-flow .login-btn:hover {
  background: rgb(var(--accent-soft));
}
#section-login .login-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding: 0;
}
#section-login .join-now,
#section-login .forgot-pw {
  background: none;
  border: 0;
  padding: 4px 0;
  color: rgb(var(--accent));
  font: 500 15px/1.4 var(--font);
  cursor: pointer;
}
#section-login .join-now:hover,
#section-login .forgot-pw:hover {
  color: rgb(var(--accent-soft));
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- live score widget ---------- */
.page-flow .betting-widget {
  display: grid;
  gap: 14px 16px;
  margin-top: 8px;
  font-family: var(--font);
}
.page-flow .betting-widget .form-group {
  display: grid;
  gap: 6px;
  margin: 0;
}
.page-flow .betting-widget label {
  color: var(--text-dim);
  font-size: 14px;
}
.page-flow select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #fff;
  font: 400 16px/1.4 var(--font);
}
.page-flow .betting-widget .login-btn,
.page-flow .place-bet-btn {
  margin: 0;
  min-height: 50px;
  font-size: 16px;
}
.page-flow .place-bet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid rgb(var(--accent) / 0.6);
  border-radius: 12px;
  background: transparent;
  color: rgb(var(--accent));
  font: 600 16px/1.3 var(--font);
}
.page-flow .place-bet-btn:hover {
  background: rgb(var(--accent) / 0.12);
}
@media (min-width: 700px) {
  .page-flow .betting-widget {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- game cards (Mw -> GameBox / GameBoxMini / GameBoxGold / GameBoxBlack) ---------- */
.page-flow .card-container .card,
.page-flow .game-card {
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: none;
}
.page-flow .card-container .card:hover,
.page-flow .game-card:hover {
  background: var(--surface-2);
}
.page-flow .card-container .card img,
.page-flow .game-card img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 10px;
  border-radius: 10px;
}
.page-flow .card-title {
  color: #fff;
  font: 500 16px/1.4 var(--font);
}
.page-flow .more-games-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 240px;
  margin: 20px auto 0;
  padding: 12px 28px;
  border: 1px solid rgb(var(--accent) / 0.6);
  border-radius: 999px;
  background: transparent;
  color: rgb(var(--accent));
  font: 600 16px/1.3 var(--font);
}
.page-flow .more-games-button:hover {
  background: rgb(var(--accent) / 0.12);
}

/* ---------- payment card ---------- */
.page-flow .payment-card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.page-flow .payment-card__heading {
  margin: 0;
  color: #fff;
  font: 600 22px/1.35 var(--font);
}
.page-flow .payment-card__button {
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  background: rgb(var(--accent));
  color: var(--on-accent);
  font: 600 15px/1.3 var(--font);
  cursor: pointer;
}

/* ---------- footer ---------- */
.site-footer {
  background: linear-gradient(rgb(0 0 0 / 0.45), rgb(0 0 0 / 0.45)), var(--bg);
}
.site-footer-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px;
}
.site-footer-logo {
  width: auto;
  height: 34px;
}
.site-footer p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .fold-ico,
  .acc-ico {
    transition: none;
  }
}
