:root {
  --wftm-primary: #E63956;
  --wftm-secondary: #8C1D3A;
  --wftm-accent: #FFB86B;
  --wftm-bg: #0D0D12;
  --wftm-surface: #1A1A24;
  --wftm-text-primary: #FAF1F3;
  --wftm-text-secondary: #C6B4BA;
  --wftm-font-heading: 'Playfair Display', sans-serif;
  --wftm-font-body: 'Lato', sans-serif;
  --wftm-radius: 8px;
  --wftm-transition: 0.3s ease;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--wftm-font-body);
  background-color: var(--wftm-bg);
  color: var(--wftm-text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--wftm-accent); text-decoration: none; transition: var(--wftm-transition); }
a:hover { color: var(--wftm-primary); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--wftm-font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.wftm_container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.wftm_text_center { text-align: center; }
.wftm_text_small { font-size: 0.875rem; color: var(--wftm-text-secondary); }
.wftm_bg_surface { background-color: var(--wftm-surface); border-radius: var(--wftm-radius); }
.wftm_p_l { padding: 2rem; }
.wftm_p_xl { padding: 3rem; }
.wftm_mt_s { margin-top: 1rem; }
.wftm_mt_m { margin-top: 2rem; }
.wftm_mt_l { margin-top: 3rem; }
.wftm_pb_wallet { padding-bottom: 80px; }
.wftm_h1 { font-size: 3rem; }
.wftm_h2 { font-size: 2.25rem; color: var(--wftm-accent); }
.wftm_h3 { font-size: 1.75rem; }
.wftm_h4 { font-size: 1.25rem; }
.wftm_btn {
  display: inline-block;
  padding: 10px 20px;
  font-family: var(--wftm-font-body);
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--wftm-transition);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}
.wftm_btn_primary {
  background-color: var(--wftm-primary);
  color: #fff;
}
.wftm_btn_primary:hover {
  background-color: #d12e49;
  transform: translateY(-2px);
}
.wftm_btn_secondary {
  background-color: var(--wftm-secondary);
  color: #fff;
}
.wftm_btn_secondary:hover {
  background-color: #71172f;
}
.wftm_btn_outline {
  background-color: transparent;
  color: var(--wftm-accent);
  border: 1px solid var(--wftm-accent);
}
.wftm_btn_outline:hover {
  background-color: var(--wftm-accent);
  color: var(--wftm-bg);
}
.wftm_btn_large { padding: 15px 30px; font-size: 1rem; }
.wftm_btn_full { width: 100%; }
.wftm_btn_spin {
  background: linear-gradient(135deg, var(--wftm-accent), #d49550);
  color: var(--wftm-bg);
  font-size: 1.1rem;
  padding: 12px 24px;
  border-radius: 25px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(255, 184, 107, 0.3);
}
.wftm_btn_spin:hover {
  background: linear-gradient(135deg, #d49550, var(--wftm-accent));
  transform: scale(1.02);
}
.wftm_btn_spin:disabled {
  background: #555;
  color: #aaa;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.wftm_header {
  background-color: var(--wftm-bg);
  border-bottom: 1px solid var(--wftm-surface);
  position: sticky;
  top: 0;
  z-index: 100;
}
.wftm_header_inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1280px;
  margin: 0 auto;
}
.wftm_logo a {
  font-family: var(--wftm-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wftm-accent);
  display: flex;
  align-items: center;
}
.wftm_logo a::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url('assets/images/game-slot-symbol-pocketwatch.webp') no-repeat center/contain;
  margin-right: 10px;
}
.wftm_nav_desktop ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
.wftm_nav_desktop a {
  color: var(--wftm-text-primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
}
.wftm_nav_desktop a:hover, .wftm_nav_desktop a.wftm_active {
  color: var(--wftm-accent);
}
.wftm_auth_controls {
  display: flex;
  gap: 10px;
}
.wftm_burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}
.wftm_burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--wftm-text-primary);
  position: absolute;
  left: 0;
  transition: 0.3s;
}
.wftm_burger span:nth-child(1) { top: 0; }
.wftm_burger span:nth-child(2) { top: 9px; }
.wftm_burger span:nth-child(3) { bottom: 0; }
.wftm_nav_mobile {
  display: none;
  background-color: var(--wftm-surface);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  border-bottom: 1px solid var(--wftm-secondary);
}
.wftm_nav_mobile.is-open { display: block; }
.wftm_nav_list_mobile {
  list-style: none;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.wftm_age_strip {
  background-color: var(--wftm-secondary);
  color: var(--wftm-text-primary);
  text-align: center;
  padding: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
@media (max-width: 768px) {
  .wftm_nav_desktop, .wftm_auth_controls { display: none; }
  .wftm_burger { display: block; }
}
.wftm_main { padding-bottom: 60px; }
.wftm_section { padding: 60px 0; }
.wftm_hero_split {
  display: flex;
  min-height: 70vh;
  background-color: var(--wftm-bg);
  border-bottom: 1px solid var(--wftm-surface);
}
.wftm_hero_command {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 5%;
  position: relative;
}
.wftm_hero_visual {
  flex: 1;
  position: relative;
  background-color: var(--wftm-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.wftm_hero_media_frame {
  border: 2px solid var(--wftm-secondary);
  padding: 10px;
  border-radius: var(--wftm-radius);
  background: var(--wftm-bg);
  max-width: 100%;
}
.wftm_hero_img {
  border-radius: 4px;
  display: block;
}
.wftm_badge_premium {
  display: inline-block;
  background-color: var(--wftm-secondary);
  color: var(--wftm-text-primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid var(--wftm-primary);
}
.wftm_hero_subtitle {
  font-size: 1.25rem;
  color: var(--wftm-text-secondary);
  margin-bottom: 15px;
}
.wftm_hero_desc {
  margin-bottom: 30px;
  max-width: 500px;
}
.wftm_hero_actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .wftm_hero_split { flex-direction: column; min-height: auto; }
  .wftm_hero_visual { padding: 20px; }
}
.wftm_page_header {
  padding: 80px 0 40px;
  background: linear-gradient(to bottom, var(--wftm-surface), var(--wftm-bg));
}
.wftm_subtitle {
  font-size: 1.2rem;
  color: var(--wftm-text-secondary);
}
.wftm_grid_3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.wftm_feature_card {
  background-color: var(--wftm-bg);
  padding: 25px;
  border-radius: var(--wftm-radius);
  border: 1px solid var(--wftm-surface);
  border-top: 3px solid var(--wftm-primary);
}
.wftm_split_block {
  display: flex;
  align-items: center;
  gap: 40px;
}
.wftm_split_reverse { flex-direction: row-reverse; }
.wftm_split_content { flex: 1; }
.wftm_split_media { flex: 1; }
@media (max-width: 768px) {
  .wftm_split_block, .wftm_split_reverse { flex-direction: column; }
}
.wftm_list_icon { list-style: none; margin-top: 20px; }
.wftm_list_icon li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}
.wftm_list_icon li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--wftm-accent);
  font-weight: bold;
}
.wftm_editorial_banner {
  background: linear-gradient(135deg, var(--wftm-surface), var(--wftm-secondary));
  padding: 40px;
  border-radius: var(--wftm-radius);
  text-align: center;
  border: 1px solid var(--wftm-primary);
}
.wftm_framed_image {
  border: 4px solid var(--wftm-surface);
  border-radius: var(--wftm-radius);
  overflow: hidden;
}
.wftm_legal_text h2 { color: var(--wftm-accent); margin-top: 30px; font-size: 1.5rem; }
.wftm_legal_text p { margin-bottom: 15px; color: var(--wftm-text-secondary); }
.wftm_accordion_item {
  border-bottom: 1px solid var(--wftm-surface);
  margin-bottom: 10px;
}
.wftm_accordion_trigger {
  width: 100%;
  text-align: left;
  padding: 15px;
  background: var(--wftm-surface);
  border: none;
  color: var(--wftm-text-primary);
  font-family: var(--wftm-font-heading);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  border-radius: 4px;
}
.wftm_accordion_trigger::after {
  content: '+';
  color: var(--wftm-accent);
}
.wftm_accordion_trigger[aria-expanded="true"]::after {
  content: '-';
}
.wftm_accordion_content {
  padding: 0 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.wftm_accordion_content p { padding: 15px 0; color: var(--wftm-text-secondary); }
.wftm_live_game_module {
  background-color: var(--wftm-bg);
  border: 2px solid var(--wftm-surface);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}
.wftm_live_game_module::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--wftm-primary), var(--wftm-accent));
}
.wftm_game_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--wftm-surface);
  padding-bottom: 10px;
}
.wftm_wallet_mirror {
  background: var(--wftm-surface);
  padding: 5px 15px;
  border-radius: 20px;
  font-family: monospace;
  color: var(--wftm-accent);
  font-weight: 700;
  border: 1px solid var(--wftm-secondary);
}
.wftm_home_game_container {
  max-width: 600px;
  margin: 0 auto;
}
.wftm_slot_board {
  display: flex;
  justify-content: center;
  gap: 10px;
  background: #111;
  padding: 20px;
  border-radius: 8px;
  border: 3px solid var(--wftm-surface);
  position: relative;
  margin-bottom: 20px;
}
.wftm_slot_payline {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 184, 107, 0.5);
  transform: translateY(-50%);
  z-index: 10;
  box-shadow: 0 0 10px var(--wftm-accent);
}
.wftm_slot_reel {
  width: 100px;
  height: 100px;
  background: #222;
  border: 2px solid #333;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.wftm_slot_reel img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: filter 0.1s;
}
.wftm_slot_reel.is-spinning img {
  filter: blur(4px) drop-shadow(0 0 5px var(--wftm-accent));
  animation: spinBlur 0.1s infinite alternate;
}
@keyframes spinBlur {
  0% { transform: translateY(-10px); }
  100% { transform: translateY(10px); }
}
.wftm_game_controls {
  display: flex;
  gap: 15px;
  align-items: flex-end;
  margin-bottom: 15px;
}
.wftm_bet_selector {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.wftm_bet_selector label {
  font-size: 0.8rem;
  color: var(--wftm-text-secondary);
  margin-bottom: 5px;
  text-transform: uppercase;
}
.wftm_bet_selector select {
  padding: 10px;
  background: var(--wftm-bg);
  color: var(--wftm-text-primary);
  border: 1px solid var(--wftm-surface);
  border-radius: 4px;
  font-family: var(--wftm-font-body);
  outline: none;
}
.wftm_game_status {
  text-align: center;
  padding: 10px;
  background: rgba(26, 26, 36, 0.8);
  border-radius: 4px;
  min-height: 44px;
  font-weight: 700;
  color: var(--wftm-text-primary);
}
.wftm_game_status.win { color: var(--wftm-accent); text-shadow: 0 0 5px rgba(255,184,107,0.5); }
.wftm_game_status.loss { color: var(--wftm-text-secondary); }
.wftm_game_history {
  margin-top: 15px;
  border-top: 1px dashed var(--wftm-surface);
  padding-top: 10px;
}
.wftm_game_history h4 {
  font-size: 0.85rem;
  color: var(--wftm-text-secondary);
  margin-bottom: 5px;
}
.wftm_game_history ul {
  list-style: none;
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
}
.wftm_game_history li {
  background: var(--wftm-surface);
  padding: 2px 8px;
  border-radius: 10px;
}
.wftm_game_history li.win { border-left: 2px solid var(--wftm-accent); }
.wftm_game_history li.loss { border-left: 2px solid var(--wftm-secondary); }
@media (max-width: 480px) {
  .wftm_slot_reel { width: 70px; height: 70px; }
  .wftm_game_controls { flex-direction: column; }
  .wftm_bet_selector, .wftm_btn_spin { width: 100%; }
}
.wftm_lobby_featured_split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}
@media (max-width: 900px) {
  .wftm_lobby_featured_split { grid-template-columns: 1fr; }
}
.wftm_wheel_board_container {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  aspect-ratio: 1/1;
}
.wftm_wheel_img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform-origin: center center;
  border: 4px solid var(--wftm-surface);
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
}
.wftm_wheel_pointer {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 30px solid var(--wftm-primary);
  z-index: 20;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.wftm_collapsible_drawer {
  margin: 40px auto;
  max-width: 800px;
  border: 1px solid var(--wftm-surface);
  border-radius: var(--wftm-radius);
  background: var(--wftm-bg);
}
.wftm_drawer_trigger {
  width: 100%;
  padding: 15px 20px;
  background: var(--wftm-surface);
  color: var(--wftm-text-secondary);
  border: none;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}
.wftm_drawer_content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 0.85rem;
  color: var(--wftm-text-secondary);
}
.wftm_drawer_content p { padding: 15px 0; }
.wftm_wallet_bottom_bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13, 13, 18, 0.95);
  border-top: 1px solid var(--wftm-surface);
  padding: 10px 0;
  z-index: 90;
  backdrop-filter: blur(5px);
}
.wftm_wallet_flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wftm_wallet_label {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wftm-text-secondary);
  font-size: 0.9rem;
}
.wftm_wallet_amount {
  font-family: monospace;
  font-size: 1.5rem;
  color: var(--wftm-accent);
  font-weight: 700;
  background: var(--wftm-surface);
  padding: 5px 20px;
  border-radius: 20px;
  border: 1px solid var(--wftm-secondary);
}
.wftm_footer {
  background-color: var(--wftm-surface);
  padding: 60px 0 20px;
  border-top: 3px solid var(--wftm-secondary);
}
.wftm_footer_inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.wftm_footer_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.wftm_footer p, .wftm_footer li { color: var(--wftm-text-secondary); font-size: 0.9rem; margin-bottom: 8px; }
.wftm_footer_links ul { list-style: none; }
.wftm_footer_links a { color: var(--wftm-text-secondary); }
.wftm_footer_links a:hover { color: var(--wftm-accent); }
.wftm_footer_disclaimer {
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
}
.wftm_footer_partners {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
  align-items: center;
  flex-wrap: wrap;
}
.wftm_partner_link {
  display: inline-block;
  padding: 10px;
  border-radius: 6px;
  transition: transform 0.2s;
}
.wftm_partner_link:hover { transform: scale(1.05); }
.wftm_partner_gamcare { background-color: #fff; }
.wftm_partner_aware { background-color: #222; border: 1px solid #444; }
.wftm_partner_link img { height: 40px; width: auto; }
.wftm_footer_copyright {
  text-align: center;
  color: var(--wftm-text-secondary);
  font-size: 0.8rem;
}
.wftm_modal_overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 200;
  backdrop-filter: blur(3px);
}
.wftm_modal_overlay.is-active { display: flex; }
.wftm_modal_box {
  background: var(--wftm-bg);
  border: 1px solid var(--wftm-surface);
  border-top: 4px solid var(--wftm-primary);
  padding: 30px;
  border-radius: var(--wftm-radius);
  width: 90%;
  max-width: 400px;
  position: relative;
}
.wftm_modal_close {
  position: absolute;
  top: 10px; right: 15px;
  background: none; border: none;
  color: var(--wftm-text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}
.wftm_form_group {
  margin-bottom: 15px;
}
.wftm_form_group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.85rem;
  color: var(--wftm-text-secondary);
}
.wftm_form_group input {
  width: 100%;
  padding: 10px;
  background: var(--wftm-surface);
  border: 1px solid #333;
  color: var(--wftm-text-primary);
  border-radius: 4px;
  font-family: var(--wftm-font-body);
}
.wftm_form_group input:focus {
  outline: none;
  border-color: var(--wftm-accent);
}
.wftm_toast_container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wftm_toast {
  background: var(--wftm-surface);
  border-left: 4px solid var(--wftm-accent);
  color: var(--wftm-text-primary);
  padding: 15px 20px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  font-size: 0.9rem;
  animation: slideIn 0.3s ease forwards;
  opacity: 0;
  transform: translateX(100%);
}
@keyframes slideIn {
  to { opacity: 1; transform: translateX(0); }
}
.wftm_easter_egg_container {
  display: inline-block;
  position: relative;
}
.wftm_egg_trigger {
  width: 60px;
  cursor: pointer;
  transition: transform 0.3s;
}
.wftm_egg_trigger:hover {
  transform: scale(1.1) rotate(5deg);
}

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