:root {
  --polack-primary: #6D5BFF;
  --polack-secondary: #9333EA;
  --polack-accent: #F5D48F;
  --polack-background: #100C1F;
  --polack-surface: #1F1A37;
  --polack-text-primary: #F3EEFF;
  --polack-text-secondary: #BEB3D8;
  --polack-font-heading: 'Playfair Display', serif;
  --polack-font-body: 'Lato', sans-serif;
}

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

body.polack_body {
  font-family: var(--polack-font-body);
  background-color: var(--polack-background);
  color: var(--polack-text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.polack_container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Age Gate */
.polack_age_gate_overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(16, 12, 31, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.polack_age_gate_overlay.is-active {
  visibility: visible;
  opacity: 1;
}
.polack_age_gate_modal {
  background: var(--polack-surface);
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  border: 1px solid var(--polack-accent);
}
.polack_age_gate_title {
  font-family: var(--polack-font-heading);
  color: var(--polack-accent);
  margin-bottom: 20px;
}
.polack_age_gate_text {
  margin-bottom: 30px;
  color: var(--polack-text-secondary);
}

/* Header */
.polack_header {
  background: var(--polack-surface);
  border-bottom: 1px solid rgba(245, 212, 143, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.polack_header_inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.polack_logo_text {
  font-family: var(--polack-font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--polack-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.polack_nav_list {
  display: flex;
  list-style: none;
  gap: 30px;
}
.polack_nav_link {
  font-weight: 700;
  transition: color 0.3s;
}
.polack_nav_link:hover {
  color: var(--polack-accent);
}
.polack_header_auth {
  display: flex;
  gap: 15px;
  align-items: center;
}
.polack_btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-family: var(--polack-font-body);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
  text-align: center;
  display: inline-block;
}
.polack_btn:active {
  transform: scale(0.95);
}
.polack_btn_primary {
  background: linear-gradient(45deg, var(--polack-primary), var(--polack-secondary));
  color: #fff;
}
.polack_btn_primary:hover {
  background: linear-gradient(45deg, var(--polack-secondary), var(--polack-primary));
}
.polack_btn_secondary {
  background: transparent;
  border: 1px solid var(--polack-accent);
  color: var(--polack-accent);
}
.polack_btn_secondary:hover {
  background: rgba(245, 212, 143, 0.1);
}
.polack_full_width {
  width: 100%;
}

/* Burger */
.polack_burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}
.polack_burger_line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--polack-accent);
  transition: 0.3s;
}
.polack_burger_line:nth-child(1) { top: 0; }
.polack_burger_line:nth-child(2) { top: 9px; }
.polack_burger_line:nth-child(3) { top: 18px; }

/* Auth Modal */
.polack_auth_modal_overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
}
.polack_auth_modal_overlay.is-active {
  visibility: visible;
  opacity: 1;
}
.polack_auth_modal {
  background: var(--polack-surface);
  padding: 40px;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  position: relative;
}
.polack_auth_close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.polack_auth_title {
  font-family: var(--polack-font-heading);
  color: var(--polack-accent);
  margin-bottom: 20px;
  text-align: center;
}
.polack_input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 4px;
  font-family: var(--polack-font-body);
}

/* Main layout */
.polack_main {
  min-height: calc(100vh - 80px - 300px);
}
.polack_section {
  padding: 80px 0;
}
.polack_section_title {
  font-family: var(--polack-font-heading);
  font-size: 36px;
  color: var(--polack-accent);
  margin-bottom: 40px;
}
.polack_text_center { text-align: center; }
.polack_bg_surface { background-color: var(--polack-surface); }

/* Hero */
.polack_hero_solid_cards {
  background: linear-gradient(135deg, var(--polack-background) 0%, var(--polack-surface) 100%);
  padding: 100px 0 0 0;
  position: relative;
  overflow: hidden;
}
.polack_hero_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding-bottom: 80px;
}
.polack_hero_title {
  font-family: var(--polack-font-heading);
  font-size: 54px;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(to right, var(--polack-accent), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.polack_hero_subtitle {
  font-size: 18px;
  color: var(--polack-text-secondary);
  margin-bottom: 30px;
  max-width: 400px;
}
.polack_hero_cta { margin-bottom: 20px; }
.polack_hero_badge {
  display: inline-block;
  padding: 5px 10px;
  background: rgba(245, 212, 143, 0.1);
  border: 1px solid var(--polack-accent);
  border-radius: 20px;
  font-size: 12px;
  color: var(--polack-accent);
}
.polack_hero_visual {
  position: relative;
  height: 400px;
}
.polack_floating_card {
  position: absolute;
  width: 250px;
  height: 350px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  border: 2px solid var(--polack-accent);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.polack_card_1 {
  background-image: url('assets/images/hero-floating-posters.webp');
  top: 0;
  right: 50px;
  transform: rotate(5deg);
  z-index: 2;
  animation: float1 6s ease-in-out infinite;
}
.polack_card_2 {
  background-image: url('assets/images/bg-regiestudio.webp');
  top: 40px;
  right: 150px;
  transform: rotate(-10deg);
  z-index: 1;
  opacity: 0.7;
  animation: float2 8s ease-in-out infinite;
}
@keyframes float1 {
  0%, 100% { transform: translateY(0) rotate(5deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(-10deg); }
  50% { transform: translateY(-20px) rotate(-12deg); }
}
.polack_ticker_row {
  background: var(--polack-primary);
  padding: 15px 0;
  display: flex;
  justify-content: center;
  gap: 40px;
  overflow: hidden;
  white-space: nowrap;
}
.polack_ticker_item {
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

/* Live Game Home */
.polack_home_live_game_sec {
  text-align: center;
}
.polack_live_game_module {
  background: var(--polack-surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.polack_wallet_compact {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(245, 212, 143, 0.1);
  border: 1px solid var(--polack-accent);
  padding: 5px 15px;
  border-radius: 20px;
  color: var(--polack-accent);
  font-weight: 700;
}
.polack_slot_board {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
  background: #000;
  padding: 20px;
  border-radius: 8px;
  border: 4px solid #333;
}
.polack_reel {
  width: 120px;
  height: 120px;
  background: #fff;
  overflow: hidden;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.polack_reel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.polack_game_result {
  margin: 20px 0;
  font-size: 20px;
  font-family: var(--polack-font-heading);
  color: var(--polack-accent);
  min-height: 30px;
}
.polack_game_history {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.polack_history_item {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.polack_game_disclaimer {
  font-size: 12px;
  color: var(--polack-text-secondary);
  margin-bottom: 20px;
}

/* Blocks */
.polack_split_block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.polack_split_reverse {
  direction: rtl;
}
.polack_split_reverse > * {
  direction: ltr;
}
.polack_placeholder_media {
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(255,255,255,0.2);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--polack-text-secondary);
}
.polack_grid_3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.polack_feature_card {
  background: rgba(255,255,255,0.03);
  padding: 30px;
  border-radius: 8px;
  border-top: 2px solid var(--polack-primary);
}
.polack_feature_title {
  font-family: var(--polack-font-heading);
  color: #fff;
  margin-bottom: 15px;
}
.polack_text {
  color: var(--polack-text-secondary);
  margin-bottom: 15px;
}
.polack_list {
  list-style: none;
}
.polack_list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--polack-text-secondary);
}
.polack_list li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--polack-accent);
  font-size: 12px;
  top: 4px;
}
.polack_stat_counter {
  font-family: var(--polack-font-heading);
  font-size: 48px;
  color: var(--polack-accent);
  text-align: center;
  padding: 50px;
  background: rgba(255,255,255,0.02);
  border-radius: 50%;
  border: 1px solid rgba(245, 212, 143, 0.3);
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.polack_lore_module {
  margin-top: 30px;
}
.polack_lore_card {
  background: var(--polack-surface);
  border-radius: 8px;
  overflow: hidden;
  max-width: 400px;
  border: 1px solid rgba(255,255,255,0.1);
}
.polack_lore_img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.polack_lore_title {
  padding: 15px;
  font-family: var(--polack-font-heading);
  color: var(--polack-accent);
}
.polack_lore_desc {
  padding: 0 15px 15px;
  color: var(--polack-text-secondary);
  font-size: 14px;
}
.polack_combo_meter {
  width: 100%;
  height: 20px;
  background: rgba(0,0,0,0.5);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 20px;
}
.polack_combo_fill {
  height: 100%;
  width: 33%;
  background: linear-gradient(90deg, var(--polack-primary), var(--polack-accent));
}
.polack_location_rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
}
.polack_location_card {
  min-width: 250px;
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 8px;
}
.polack_loc_name {
  font-family: var(--polack-font-heading);
  color: var(--polack-accent);
  margin-bottom: 10px;
}
.polack_loc_desc {
  font-size: 14px;
  color: var(--polack-text-secondary);
}

/* Lobby Page */
.polack_lobby_layout {
  padding: 40px 0;
}
.polack_lobby_container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}
.polack_wallet_sidebar {
  background: var(--polack-surface);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  height: fit-content;
}
.polack_sidebar_title {
  font-family: var(--polack-font-heading);
  font-size: 20px;
  margin-bottom: 20px;
  color: #fff;
}
.polack_wallet_balance {
  font-size: 32px;
  font-family: var(--polack-font-heading);
  color: var(--polack-accent);
  margin-bottom: 10px;
}
.polack_sidebar_note {
  font-size: 12px;
  color: var(--polack-text-secondary);
  margin-bottom: 30px;
}
.polack_achievements_panel {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}
.polack_achv_title {
  font-size: 16px;
  margin-bottom: 15px;
}
.polack_achv_list {
  list-style: none;
  font-size: 14px;
  color: var(--polack-text-secondary);
}
.polack_game_card {
  background: var(--polack-surface);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
}
.polack_game_title {
  padding: 15px;
  font-family: var(--polack-font-heading);
  text-align: center;
  background: rgba(0,0,0,0.3);
}
.polack_game_preview {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.polack_slot_board_mini {
  width: 80px; height: 80px;
  background: #fff;
  border-radius: 4px;
}
.polack_wheel_preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

/* Active Game Area */
.polack_game_active_area {
  background: var(--polack-surface);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid rgba(245, 212, 143, 0.3);
  text-align: center;
}
.polack_active_game_title {
  font-family: var(--polack-font-heading);
  font-size: 32px;
  color: var(--polack-accent);
  margin: 20px 0;
}
.polack_game_board_container {
  margin: 30px auto;
  display: flex;
  justify-content: center;
  min-height: 200px;
}
.polack_game_controls_panel {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}
.polack_bet_select {
  padding: 10px 20px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  font-family: var(--polack-font-body);
}
.polack_spin_btn_large {
  font-size: 18px;
  padding: 10px 40px;
}
.polack_game_result_panel {
  font-size: 24px;
  font-family: var(--polack-font-heading);
  color: var(--polack-accent);
  margin: 20px 0;
  min-height: 40px;
}

/* Content Pages */
.polack_content_page {
  padding: 60px 20px;
  max-width: 800px;
}
.polack_page_title {
  font-family: var(--polack-font-heading);
  font-size: 42px;
  color: var(--polack-accent);
  margin-bottom: 40px;
  text-align: center;
}
.polack_content_section {
  margin-bottom: 40px;
}
.polack_h2 {
  font-family: var(--polack-font-heading);
  font-size: 28px;
  margin-bottom: 20px;
  color: #fff;
}
.polack_easter_egg_trigger {
  margin-top: 50px;
  text-align: center;
  cursor: pointer;
  opacity: 0.5;
  transition: 0.3s;
}
.polack_easter_egg_trigger:hover {
  opacity: 1;
}

/* Contact & FAQ */
.polack_grid_2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.polack_form {
  display: flex;
  flex-direction: column;
}
.polack_textarea {
  resize: vertical;
}
.polack_accordion {
  margin-bottom: 10px;
}
.polack_acc_btn {
  width: 100%;
  text-align: left;
  padding: 15px;
  background: var(--polack-surface);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  font-family: var(--polack-font-heading);
  font-size: 18px;
}
.polack_acc_content {
  display: none;
  padding: 15px;
  background: rgba(255,255,255,0.02);
  color: var(--polack-text-secondary);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: none;
}

/* Legal Pages */
.polack_legal_page {
  padding: 60px 20px;
  max-width: 900px;
}
.polack_legal_content h2 {
  font-family: var(--polack-font-heading);
  color: var(--polack-accent);
  margin: 30px 0 15px;
}
.polack_legal_content p {
  color: var(--polack-text-secondary);
  margin-bottom: 15px;
}
.polack_legal_content strong {
  color: #fff;
}

/* Footer */
.polack_footer {
  background: #08060f;
  padding: 60px 0 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.polack_footer_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}
.polack_footer_title {
  font-family: var(--polack-font-heading);
  color: var(--polack-accent);
  font-size: 16px;
  margin-bottom: 20px;
}
.polack_footer_text {
  color: var(--polack-text-secondary);
  font-size: 12px;
  margin-bottom: 10px;
}
.polack_footer_links {
  list-style: none;
}
.polack_footer_links li {
  margin-bottom: 10px;
}
.polack_footer_link {
  color: var(--polack-text-secondary);
  font-size: 14px;
  transition: color 0.3s;
}
.polack_footer_link:hover {
  color: #fff;
}
.polack_partner_logos {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.polack_partner_logo_link {
  display: block;
  padding: 10px;
  border-radius: 4px;
  width: 120px;
}
.polack_gamcare_bg {
  background-color: #fff;
}
.polack_begambleaware_bg {
  background-color: #1a1a1a;
}
.polack_footer_bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.polack_copyright {
  color: rgba(255,255,255,0.3);
  font-size: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
  .polack_lobby_container {
    grid-template-columns: 1fr;
  }
  .polack_wallet_sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .polack_nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--polack-surface);
    padding: 20px;
    border-bottom: 1px solid rgba(245, 212, 143, 0.2);
  }
  .polack_nav.is-open {
    display: block;
  }
  .polack_nav_list {
    flex-direction: column;
    text-align: center;
  }
  .polack_burger {
    display: block;
  }
  .polack_header_auth .polack_btn {
    display: none;
  }
  .polack_hero_grid, .polack_split_block, .polack_grid_3, .polack_grid_2, .polack_footer_grid {
    grid-template-columns: 1fr;
  }
  .polack_hero_visual {
    display: none;
  }
  .polack_ticker_row {
    flex-wrap: wrap;
  }
  .polack_stat_counter {
    width: 200px;
    height: 200px;
    font-size: 24px;
    padding: 20px;
  }
  .polack_slot_board {
    flex-wrap: wrap;
  }
  .polack_reel {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 360px) {
  .polack_logo_text {
    font-size: 18px;
  }
  .polack_hero_title {
    font-size: 36px;
  }
  .polack_reel {
    width: 60px;
    height: 60px;
  }
}

/* Game Animations */
@keyframes spinReel {
  0% { transform: translateY(0); }
  100% { transform: translateY(-200%); }
}
@keyframes spinWheel {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(1080deg); }
}

/* 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;
}
