:root {
  --bestlotto-primary: #2D6BFF;
  --bestlotto-secondary: #1E3A8A;
  --bestlotto-accent: #F4B942;
  --bestlotto-bg: #0A1022;
  --bestlotto-surface: #131F3F;
  --bestlotto-text-primary: #EEF4FF;
  --bestlotto-text-secondary: #B5C2DE;
  --bestlotto-font-heading: 'Playfair Display', sans-serif;
  --bestlotto-font-body: 'Inter', sans-serif;
  --bestlotto-radius: 8px;
  --bestlotto-transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--bestlotto-font-body);
  background-color: var(--bestlotto-bg);
  color: var(--bestlotto-text-primary);
  line-height: 1.6;
  padding-bottom: 60px; 
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: var(--bestlotto-font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

a {
  color: var(--bestlotto-primary);
  text-decoration: none;
  transition: var(--bestlotto-transition);
}

a:hover {
  color: var(--bestlotto-accent);
}

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

.bestlotto_container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.bestlotto_visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bestlotto_btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--bestlotto-font-body);
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--bestlotto-radius);
  cursor: pointer;
  transition: var(--bestlotto-transition);
  background: var(--bestlotto-surface);
  color: var(--bestlotto-text-primary);
}

.bestlotto_btn--primary {
  background: var(--bestlotto-primary);
  color: #fff;
}

.bestlotto_btn--primary:hover {
  background: var(--bestlotto-accent);
  color: var(--bestlotto-bg);
}

.bestlotto_btn--secondary {
  background: transparent;
  border: 1px solid var(--bestlotto-primary);
  color: var(--bestlotto-primary);
}

.bestlotto_btn--secondary:hover {
  background: var(--bestlotto-primary);
  color: #fff;
}

.bestlotto_btn--large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.bestlotto_btn--small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.bestlotto_btn--full {
  width: 100%;
}

.bestlotto_header {
  background: var(--bestlotto-secondary);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--bestlotto-surface);
}

.bestlotto_header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.bestlotto_logo-text {
  font-family: var(--bestlotto-font-heading);
  font-size: 1.5rem;
  color: var(--bestlotto-accent);
  font-weight: 700;
}

.bestlotto_nav-list {
  display: none;
  list-style: none;
  gap: 2rem;
}

.bestlotto_nav-list a {
  color: var(--bestlotto-text-primary);
  font-weight: 600;
}

.bestlotto_nav-list a:hover {
  color: var(--bestlotto-accent);
}

.bestlotto_burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.bestlotto_burger-line {
  width: 25px;
  height: 3px;
  background-color: var(--bestlotto-text-primary);
  transition: var(--bestlotto-transition);
}

.bestlotto_header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bestlotto_age-badge {
  background: var(--bestlotto-accent);
  color: var(--bestlotto-bg);
  font-weight: bold;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.bestlotto_btn--login, .bestlotto_btn--register {
  display: none;
}

@media (min-width: 768px) {
  .bestlotto_burger {
    display: none;
  }
  .bestlotto_nav-list {
    display: flex;
  }
  .bestlotto_btn--login, .bestlotto_btn--register {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  .bestlotto_btn--login {
    background: transparent;
    border: 1px solid var(--bestlotto-text-primary);
  }
  .bestlotto_btn--register {
    background: var(--bestlotto-primary);
  }
}

.bestlotto_main {
  flex: 1;
}

.bestlotto_hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.bestlotto_hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bestlotto-secondary) 0%, var(--bestlotto-bg) 100%);
  z-index: 0;
}

.bestlotto_hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(45,107,255,0.2) 0%, transparent 60%);
}

.bestlotto_hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.bestlotto_hero-title {
  font-size: 3rem;
  color: var(--bestlotto-accent);
  margin-bottom: 1.5rem;
}

.bestlotto_hero-subtitle {
  font-size: 1.2rem;
  color: var(--bestlotto-text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-inline: auto;
}

.bestlotto_hero-trust {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.bestlotto_hero-trust-badge {
  background: rgba(255,255,255,0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.2);
}

.bestlotto_section {
  padding: 4rem 0;
}

.bestlotto_section--alt {
  background-color: var(--bestlotto-surface);
}

.bestlotto_section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.bestlotto_section-title {
  font-size: 2.2rem;
  color: var(--bestlotto-accent);
}

.bestlotto_section-desc {
  color: var(--bestlotto-text-secondary);
}

.bestlotto_grid {
  display: grid;
  gap: 2rem;
}

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

@media (min-width: 768px) {
  .bestlotto_grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bestlotto_card {
  background: var(--bestlotto-bg);
  padding: 2rem;
  border-radius: var(--bestlotto-radius);
  border: 1px solid rgba(255,255,255,0.05);
}

.bestlotto_card-title {
  color: var(--bestlotto-primary);
}

.bestlotto_stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.bestlotto_stat-item {
  text-align: center;
  background: var(--bestlotto-surface);
  padding: 1.5rem;
  border-radius: var(--bestlotto-radius);
  min-width: 150px;
}

.bestlotto_stat-num {
  font-family: var(--bestlotto-font-heading);
  font-size: 2.5rem;
  color: var(--bestlotto-accent);
}

.bestlotto_split {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .bestlotto_split {
    flex-direction: row;
  }
  .bestlotto_split > * {
    flex: 1;
  }
}

.bestlotto_text-lead {
  font-size: 1.2rem;
  color: var(--bestlotto-text-secondary);
  margin-bottom: 1rem;
}

.bestlotto_framed {
  border: 4px solid var(--bestlotto-surface);
  border-radius: var(--bestlotto-radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.bestlotto_location-card {
  background-size: cover;
  background-position: center;
  border-radius: var(--bestlotto-radius);
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.bestlotto_location-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.bestlotto_location-card-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.bestlotto_ranks {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .bestlotto_ranks {
    flex-direction: row;
  }
  .bestlotto_rank-tier {
    flex: 1;
  }
}

.bestlotto_rank-tier {
  background: var(--bestlotto-bg);
  padding: 1.5rem;
  border-radius: var(--bestlotto-radius);
  border-top: 4px solid var(--bestlotto-accent);
}

.bestlotto_list {
  list-style: none;
}

.bestlotto_list li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.bestlotto_list li::before {
  content: '•';
  color: var(--bestlotto-primary);
  position: absolute;
  left: 0;
}

.bestlotto_faq-item {
  border-bottom: 1px solid var(--bestlotto-surface);
}

.bestlotto_faq-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--bestlotto-text-primary);
  font-family: var(--bestlotto-font-heading);
  font-size: 1.2rem;
  padding: 1.5rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.bestlotto_faq-content {
  display: none;
  padding-bottom: 1.5rem;
  color: var(--bestlotto-text-secondary);
}

.bestlotto_faq-content.is-open {
  display: block;
}

.bestlotto_page-content {
  padding: 4rem 0;
}

.bestlotto_page-title {
  font-size: 2.5rem;
  color: var(--bestlotto-accent);
  text-align: center;
  margin-bottom: 3rem;
}

.bestlotto_text-section {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.bestlotto_legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.bestlotto_legal-content h2 {
  margin-top: 2.5rem;
  color: var(--bestlotto-primary);
}

.bestlotto_legal-content p, .bestlotto_legal-content ul {
  margin-bottom: 1rem;
  color: var(--bestlotto-text-secondary);
}

.bestlotto_form-group {
  margin-bottom: 1.5rem;
}

.bestlotto_label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--bestlotto-text-secondary);
}

.bestlotto_input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--bestlotto-surface);
  background: var(--bestlotto-bg);
  color: var(--bestlotto-text-primary);
  border-radius: var(--bestlotto-radius);
}

.bestlotto_textarea {
  min-height: 150px;
  resize: vertical;
}

.bestlotto_contact-info {
  background: var(--bestlotto-surface);
  padding: 2rem;
  border-radius: var(--bestlotto-radius);
}

.bestlotto_footer {
  background: var(--bestlotto-secondary);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--bestlotto-surface);
}

.bestlotto_footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .bestlotto_footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bestlotto_footer-heading {
  color: var(--bestlotto-accent);
  margin-bottom: 1rem;
}

.bestlotto_footer-text, .bestlotto_footer-links a {
  color: var(--bestlotto-text-secondary);
  font-size: 0.9rem;
}

.bestlotto_footer-links {
  list-style: none;
}

.bestlotto_footer-links li {
  margin-bottom: 0.5rem;
}

.bestlotto_partner-logos {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  align-items: center;
}

.bestlotto_partner-link {
  display: inline-block;
  padding: 5px;
  border-radius: 4px;
}

.bestlotto_partner-link--gamcare {
  background: #fff;
}

.bestlotto_partner-link--aware {
  background: #111;
}

.bestlotto_partner-link img {
  height: 30px;
  width: auto;
}

.bestlotto_footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--bestlotto-text-secondary);
}

.bestlotto_footer-legal-text {
  margin-bottom: 1rem;
}

.bestlotto_wallet-status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 16, 34, 0.95);
  border-top: 1px solid var(--bestlotto-primary);
  padding: 0.8rem;
  z-index: 90;
  text-align: center;
  backdrop-filter: blur(5px);
}

.bestlotto_wallet-status-inner {
  display: inline-block;
  background: var(--bestlotto-surface);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--bestlotto-primary);
  font-family: var(--bestlotto-font-heading);
}

.bestlotto_wallet-status-val {
  color: var(--bestlotto-accent);
  font-size: 1.2rem;
  margin: 0 0.5rem;
}

.bestlotto_modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.bestlotto_modal.is-open {
  display: flex;
}

.bestlotto_modal-dialog {
  background: var(--bestlotto-bg);
  width: 100%;
  max-width: 400px;
  border-radius: var(--bestlotto-radius);
  border: 1px solid var(--bestlotto-primary);
  position: relative;
}

.bestlotto_modal-content {
  padding: 2rem;
}

.bestlotto_modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--bestlotto-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.bestlotto_modal-title {
  color: var(--bestlotto-accent);
  margin-bottom: 1.5rem;
  text-align: center;
}

.bestlotto_notification {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: var(--bestlotto-primary);
  color: #fff;
  padding: 1rem;
  border-radius: var(--bestlotto-radius);
  transform: translateY(150%);
  transition: var(--bestlotto-transition);
  z-index: 150;
  max-width: 300px;
}

.bestlotto_notification.is-visible {
  transform: translateY(0);
}

.bestlotto_game-module {
  background: var(--bestlotto-surface);
  border-radius: var(--bestlotto-radius);
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.bestlotto_game-board-wrapper {
  position: relative;
  background: #000;
  border-radius: var(--bestlotto-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bestlotto_game-board-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.bestlotto_slot-reels {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  width: 80%;
  height: 70%;
}

.bestlotto_slot-reel {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,175,55,0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bestlotto_slot-symbol {
  width: 100%;
  height: 33.33%;
  object-fit: contain;
  padding: 5px;
}

.bestlotto_slot-winline {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(244,185,66,0.5);
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
  display: none;
}

.bestlotto_slot-winline.is-visible {
  display: block;
}

.bestlotto_game-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0,0,0,0.3);
  border-radius: var(--bestlotto-radius);
}

.bestlotto_game-controls--stacked {
  flex-direction: column;
  align-items: stretch;
}

.bestlotto_game-bet {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bestlotto_game-bet-select {
  background: var(--bestlotto-bg);
  color: var(--bestlotto-text-primary);
  border: 1px solid var(--bestlotto-primary);
  padding: 0.5rem;
  border-radius: 4px;
}

.bestlotto_game-status {
  margin-top: 1rem;
  text-align: center;
  font-weight: bold;
  color: var(--bestlotto-accent);
  min-height: 1.5rem;
}

.bestlotto_game-history {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--bestlotto-text-secondary);
}

.bestlotto_game-balance-mirror {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--bestlotto-font-heading);
  border-top: 1px dashed rgba(255,255,255,0.2);
  padding-top: 0.5rem;
}

.bestlotto_home-game-link {
  text-align: center;
  margin-top: 2rem;
}

.bestlotto_lobby-layout--split {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .bestlotto_lobby-layout--split {
    flex-direction: row;
  }
  .bestlotto_lobby-featured {
    flex: 7;
  }
  .bestlotto_lobby-sidebar {
    flex: 3;
  }
}

.bestlotto_lobby-header {
  background-size: cover;
  background-position: center;
  padding: 4rem 0;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.bestlotto_lobby-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,16,34,0.7);
}

.bestlotto_lobby-header .bestlotto_container {
  position: relative;
  z-index: 1;
}

.bestlotto_lobby-title {
  color: var(--bestlotto-accent);
  font-size: 3rem;
}

.bestlotto_game-board-wrapper--wheel {
  aspect-ratio: 1/1;
  background: none;
}

.bestlotto_wheel-board {
  width: 90%;
  height: 90%;
  object-fit: contain;
  z-index: 1;
  transition: transform 3.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.bestlotto_wheel-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 20px solid var(--bestlotto-accent);
  z-index: 2;
}

.bestlotto_legal-drawer {
  position: fixed;
  bottom: 60px;
  left: 0;
  width: 100%;
  z-index: 80;
}

.bestlotto_legal-drawer-trigger {
  width: 100%;
  background: var(--bestlotto-surface);
  color: var(--bestlotto-text-secondary);
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.bestlotto_legal-drawer-content {
  background: var(--bestlotto-bg);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.bestlotto_legal-drawer-content.is-open {
  max-height: 200px;
  border-top: 1px solid var(--bestlotto-primary);
}

.bestlotto_legal-drawer-inner {
  padding: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--bestlotto-text-secondary);
}

.bestlotto_easter-egg-zone {
  text-align: center;
  margin-top: 4rem;
  padding-bottom: 2rem;
}

.bestlotto_easter-egg-img {
  width: 50px;
  opacity: 0.1;
  cursor: pointer;
  transition: opacity 0.3s;
  margin: 0 auto;
}

.bestlotto_easter-egg-img:hover {
  opacity: 0.5;
}

/* footer-logo-contrast-guard */
a[href*="begambleaware.org"] img,
a[href*="begambleaware.org"] picture,
a[href*="begambleaware.org"] .partner-logo,
img[src*="gambleaware"],
img[alt*="BeGambleAware" i],
img[alt*="GambleAware" i] {
  background: #111111 !important;
  padding: 0.45rem 0.7rem !important;
  border-radius: 0.7rem !important;
  box-sizing: border-box !important;
}

a[href*="gamcare.org"] img,
a[href*="gamcare.org"] picture,
a[href*="gamcare.org"] .partner-logo,
img[src*="gamcare"],
img[alt*="GamCare" i] {
  background: #ffffff !important;
  padding: 0.45rem 0.7rem !important;
  border-radius: 0.7rem !important;
  box-sizing: border-box !important;
}

a[href*="begambleaware.org"],
a[href*="gamcare.org"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
