*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --best-bg-1: #111118;
  --best-bg-2: #1a1a22;
  --best-card: #1e1e28;
  --best-accent: #60a5fa;
  --best-accent-2: #93c5fd;
  --best-text: #f0f4ff;
  --best-muted: #c9d5ee;
  --best-border: rgba(147, 197, 253, 0.3);
  --best-shadow: 0 0 12px rgba(96, 165, 250, 0.15);
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--best-text);
  background: linear-gradient(160deg, var(--best-bg-1), var(--best-bg-2));
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: -20% -25% auto -25%;
  height: 44vh;
  pointer-events: none;
  background: radial-gradient(circle at 50% 10%, rgba(147, 197, 253, 0.28), rgba(17, 17, 24, 0));
  opacity: 0.55;
  z-index: 0;
}

.best-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.best-container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

h1,
h2,
h3 {
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--best-text);
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--best-accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.best-section {
  padding: 3.5rem 0;
}

.best-section-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}

.best-header {
  position: sticky;
  top: 0;
  height: 72px;
  z-index: 200;
  background: rgba(17, 17, 24, 0.92);
  border-bottom: 1px solid rgba(147, 197, 253, 0.22);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.best-header.best-header-scrolled {
  background: rgba(17, 17, 24, 0.98);
  box-shadow: var(--best-shadow);
}

@media (max-width: 1100px) {
  .best-header {
    height: 68px;
  }
}

.best-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 1rem;
  position: relative;
  overflow: visible;
  min-height: 100%;
}

.best-brand-logo {
  display: inline-flex;
  align-items: center;
}

.best-brand-logo img {
  width: 220px;
  max-width: 100%;
  height: auto;
}

.best-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.best-nav a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: var(--best-accent-2);
  font-weight: 600;
}

.best-nav a:hover {
  background: rgba(96, 165, 250, 0.12);
  animation: bestSpark 0.9s ease-out;
}

.best-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--best-border);
  border-radius: 9px;
  background: transparent;
  color: var(--best-text);
  cursor: pointer;
}

.best-burger span {
  font-size: 1.2rem;
}

.best-nav-backdrop {
  display: none;
}

@media (min-width: 1101px) {
  .best-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    flex: 1;
    justify-content: flex-end;
  }

  .best-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.25rem;
  }

  .best-burger {
    display: none;
  }
}

@media (max-width: 1100px) {
  .best-burger {
    display: flex;
  }

  .best-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100dvh;
    z-index: 201;
    background: #111118;
    transform: translateX(calc(100% + 16px));
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
    overflow-y: auto;
    padding: 1.5rem 1rem;
    max-width: min(320px, 85vw) !important;
  }

  .best-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .best-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    max-width: unset !important;
    width: 100vw !important;
  }

  body.best-nav-open .best-nav {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0s;
  }

  body.best-nav-open .best-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.best-nav-open {
    overflow: hidden;
  }
}

body:not(.best-nav-open) .best-header {
  backdrop-filter: blur(8px);
}

body.best-nav-open .best-header {
  backdrop-filter: none;
}

.best-page > main,
.best-page > footer {
  position: relative;
  z-index: 1;
}

.best-cookie-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 250;
  background: #0f172a;
  border-bottom: 1px solid rgba(147, 197, 253, 0.3);
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
}

.best-cookie-banner p {
  margin: 0;
  color: #dbeafe;
  font-size: 0.95rem;
}

.best-cookie-banner[data-best-cookie-state="hidden"] {
  display: none;
}

.best-cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.best-cookie-actions button {
  border: 1px solid var(--best-border);
  background: #101828;
  color: var(--best-text);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  font-weight: 600;
}

.best-cookie-actions button:first-child {
  background: linear-gradient(120deg, var(--best-accent), var(--best-accent-2));
  color: #0b1220;
}

.best-cookie-banner[data-best-cookie-state="visible"] ~ * .best-header,
.best-cookie-banner[data-best-cookie-state="visible"] ~ .best-header {
  top: 66px;
}

@media (max-width: 550px) {
  .best-cookie-banner[data-best-cookie-state="visible"] ~ * .best-header,
  .best-cookie-banner[data-best-cookie-state="visible"] ~ .best-header {
    top: 74px;
  }
}

.best-hero {
  padding-top: 2.5rem;
  position: relative;
  overflow: hidden;
}

.best-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 10% 15%, rgba(147, 197, 253, 0.7), transparent 65%),
    radial-gradient(2px 2px at 22% 5%, rgba(147, 197, 253, 0.6), transparent 65%),
    radial-gradient(3px 3px at 35% 20%, rgba(147, 197, 253, 0.7), transparent 65%),
    radial-gradient(2px 2px at 52% 9%, rgba(147, 197, 253, 0.5), transparent 65%),
    radial-gradient(3px 3px at 67% 16%, rgba(147, 197, 253, 0.7), transparent 65%),
    radial-gradient(2px 2px at 85% 8%, rgba(147, 197, 253, 0.6), transparent 65%);
  animation: bestDiamondRain 12s linear infinite;
}

.best-hero-box {
  background: linear-gradient(170deg, rgba(30, 30, 40, 0.9), rgba(19, 20, 33, 0.95));
  border: 1px solid var(--best-border);
  box-shadow: var(--best-shadow);
  border-radius: 18px;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.best-hero-kicker {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  color: #bfdbfe;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.75rem;
}

.best-hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  margin-top: 0.55rem;
}

.best-hero-subline {
  font-style: italic;
  color: var(--best-muted);
  max-width: 72ch;
}

.best-hero-picks {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.best-hero-picks li {
  margin: 0.4rem 0;
  color: #deebff;
}

.best-meta-line {
  margin-top: 1rem;
  color: #bfdbfe;
  font-size: 0.95rem;
}

.best-payment-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 0.7rem;
  margin: 1rem 0;
}

.best-payment-item {
  background: var(--best-card);
  border: 1px solid var(--best-border);
  border-radius: 12px;
  padding: 0.8rem;
  text-align: center;
  font-weight: 600;
  box-shadow: var(--best-shadow);
}

.best-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
}

.best-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  background: #161824;
  border: 1px solid var(--best-border);
  border-radius: 14px;
  overflow: hidden;
}

.best-table-wrap th,
.best-table-wrap td {
  border-bottom: 1px solid rgba(147, 197, 253, 0.14);
  padding: 0.75rem 0.65rem;
  text-align: left;
  vertical-align: middle;
  color: var(--best-text);
  font-size: 0.95rem;
}

.best-table-wrap th {
  font-family: "Montserrat", Arial, sans-serif;
  color: #bfdbfe;
}

.best-logo-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 150px;
}

.best-logo-wrap {
  width: 92px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  border: 1px solid rgba(147, 197, 253, 0.25);
  border-radius: 8px;
  background: #1e1e28;
}

.best-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
}

.best-rating {
  color: #93c5fd;
  font-weight: 700;
  white-space: nowrap;
}

.best-badge {
  display: inline-flex;
  font-size: 0.78rem;
  color: #dbeafe;
  border: 1px solid var(--best-border);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  margin-bottom: 0.4rem;
  background: rgba(96, 165, 250, 0.1);
}

.best-disclaimer {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #b8c6e3;
}

.best-cta-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  border: 1px solid rgba(191, 219, 254, 0.5);
  padding: 0.5rem 0.9rem;
  color: #0f172a;
  font-weight: 700;
  background: linear-gradient(120deg, #60a5fa, #93c5fd);
  box-shadow: 0 0 9px rgba(147, 197, 253, 0.32);
}

.best-cta-btn:hover {
  text-decoration: none;
  animation: bestSpark 0.95s ease-out;
}

.best-method-box {
  background: var(--best-card);
  border: 1px solid var(--best-border);
  border-radius: 14px;
  box-shadow: var(--best-shadow);
  padding: 1.3rem;
}

.best-method-box table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.best-method-box th,
.best-method-box td {
  border-bottom: 1px solid rgba(147, 197, 253, 0.2);
  padding: 0.6rem;
}

.best-rg-box,
.best-about-grid article,
.best-faq-item,
.best-legal-box {
  background: var(--best-card);
  border: 1px solid var(--best-border);
  box-shadow: var(--best-shadow);
  border-radius: 14px;
  padding: 1rem 1rem 1.1rem;
}

.best-rg-badge {
  display: inline-flex;
  border: 1px solid #3b82f6;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  color: #bfdbfe;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.best-about-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.best-faq-item {
  margin-bottom: 0.85rem;
}

.best-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--best-text);
  font-size: 1rem;
  font-family: "Montserrat", Arial, sans-serif;
  cursor: pointer;
  padding: 0;
}

.best-faq-a {
  margin-top: 0.7rem;
  color: #d5def4;
}

.best-faq-item[data-best-faq-open="false"] .best-faq-a {
  display: none;
}

.best-faq-item[data-best-faq-open="true"] .best-faq-a {
  display: block;
}

.best-reading-time {
  margin: 0 0 1rem;
  color: #bfdbfe;
  font-weight: 600;
}

.best-footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(147, 197, 253, 0.2);
  background: #0d111a;
}

.best-footer-block {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(147, 197, 253, 0.15);
}

.best-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

.best-footer-links a,
.best-footer-links span {
  color: #dbeafe;
  font-size: 0.94rem;
}

.best-legal-main .best-section {
  padding-top: 2.2rem;
}

.best-age-box {
  color: #0f172a;
}

.best-age-box h2 {
  color: #0f172a;
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
}

.best-age-box p {
  color: #334155;
  margin: 0 0 1rem;
  line-height: 1.6;
}

.best-age-overlay button {
  width: 100%;
  margin-bottom: 0.6rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  padding: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.best-age-overlay button:first-of-type {
  background: linear-gradient(120deg, #60a5fa, #93c5fd);
  color: #0b1320;
}

.best-age-overlay button:last-of-type {
  background: #e2e8f0;
  color: #0f172a;
}

@keyframes bestSpark {
  0% {
    box-shadow: 0 0 0 rgba(147, 197, 253, 0);
    opacity: 0.95;
  }

  50% {
    box-shadow: 0 0 16px rgba(147, 197, 253, 0.55);
    opacity: 1;
  }

  100% {
    box-shadow: 0 0 0 rgba(147, 197, 253, 0);
    opacity: 1;
  }
}

@keyframes bestDiamondRain {
  0% {
    background-position:
      0 -10%,
      0 -5%,
      0 -8%,
      0 -4%,
      0 -6%,
      0 -7%;
  }

  100% {
    background-position:
      0 130%,
      0 115%,
      0 122%,
      0 116%,
      0 118%,
      0 124%;
  }
}

@media (max-width: 900px) {
  .best-about-grid {
    grid-template-columns: 1fr;
  }

  .best-payment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  h1 {
    font-size: clamp(1.6rem, 5vw, 2.4rem) !important;
  }

  h2 {
    font-size: clamp(1.2rem, 4vw, 1.8rem) !important;
  }

  h3 {
    font-size: clamp(1rem, 3.5vw, 1.3rem) !important;
  }

  .best-bonus-text,
  [class*="best-bonus"] {
    font-size: clamp(0.95rem, 2.5vw, 1.15rem) !important;
  }

  .best-hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.8rem) !important;
  }

  .best-card {
    padding: 16px !important;
  }
}

@media (max-width: 550px) {
  html,
  body {
    overflow-x: clip;
    max-width: 100%;
  }

  .best-page * {
    max-width: 100%;
  }

  .best-casino-list,
  .best-grid {
    grid-template-columns: 1fr !important;
    min-width: 0;
  }

  .best-casino-list > *,
  .best-grid > * {
    min-width: 0;
  }

  .best-card {
    flex-direction: column !important;
    min-width: 0;
    padding: 12px !important;
  }

  .best-card * {
    min-width: 0;
    max-width: 100%;
  }

  .best-logo-wrap {
    width: min(200px, 85%);
    min-height: 56px;
    margin: 0 auto 8px;
  }

  .best-cta-btn,
  .best-button,
  .best-age-box button,
  .best-age-box a,
  .best-cookie-actions button,
  .best-cookie-actions a {
    width: 100% !important;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: block;
  }

  .best-age-box,
  .best-cookie-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  h1 {
    font-size: clamp(1.25rem, 6vw, 2rem) !important;
  }

  h2 {
    font-size: clamp(1.1rem, 5vw, 1.6rem) !important;
  }

  h3 {
    font-size: clamp(0.95rem, 4vw, 1.2rem) !important;
  }

  .best-bonus-text,
  [class*="best-bonus"] {
    font-size: 0.95rem !important;
  }

  .best-card:hover {
    transform: none !important;
  }

  table {
    table-layout: auto;
    width: 100%;
    min-width: 0;
  }

  .best-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
  }

  .best-table-wrap table {
    min-width: max-content;
    width: max-content;
  }

  thead th {
    white-space: nowrap;
  }

  .best-payment-grid,
  [class*="best-payment"],
  [class*="best-method"] {
    grid-template-columns: 1fr !important;
    min-width: 0;
  }

  .best-header-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0 8px !important;
  }

  .best-brand-logo,
  .best-logo,
  [class*="best-brand"] {
    flex-shrink: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .best-burger {
    flex-shrink: 0 !important;
  }

  .best-nav {
    max-width: min(320px, 85vw) !important;
  }

  .best-nav-backdrop {
    max-width: unset !important;
    width: 100vw !important;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: clamp(1.1rem, 7vw, 1.5rem) !important;
  }

  h3 {
    font-size: clamp(0.9rem, 4vw, 1.1rem) !important;
  }

  .best-bonus-text,
  [class*="best-bonus"] {
    font-size: 0.85rem !important;
  }

  .best-card {
    padding: 10px !important;
  }
}
