:root {
  --rf-primary: #E63956;
  --rf-secondary: #8C1D3A;
  --rf-accent: #FFB86B;
  --rf-bg: #0D0D12;
  --rf-surface: #1A1A24;
  --rf-text-primary: #FAF1F3;
  --rf-text-secondary: #C6B4BA;
  --rf-font-head: 'Cinzel Decorative', sans-serif;
  --rf-font-body: 'Inter', sans-serif;
  --rf-transition: 0.3s ease-in-out;
}

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

body.riskflowgate_body {
  font-family: var(--rf-font-body);
  background-color: var(--rf-bg);
  color: var(--rf-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--rf-font-head);
  font-weight: 700;
  margin-bottom: 1rem;
}

a { color: var(--rf-accent); text-decoration: none; transition: var(--rf-transition); }
a:hover { color: var(--rf-primary); }

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

.riskflowgate_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--rf-font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--rf-transition);
  background: transparent;
  color: var(--rf-text-primary);
  min-height: 44px;
}

.riskflowgate_btn_primary {
  background-color: var(--rf-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(230, 57, 86, 0.4);
}
.riskflowgate_btn_primary:hover {
  background-color: var(--rf-secondary);
  box-shadow: 0 6px 20px rgba(230, 57, 86, 0.6);
}

.riskflowgate_btn_outline {
  border-color: var(--rf-primary);
  color: var(--rf-primary);
}
.riskflowgate_btn_outline:hover {
  background-color: var(--rf-primary);
  color: #fff;
}

.riskflowgate_btn_epic {
  background: linear-gradient(45deg, var(--rf-primary), var(--rf-accent));
  color: #000;
  font-size: 1.1rem;
  border: none;
  box-shadow: 0 0 20px rgba(255, 184, 107, 0.5);
}
.riskflowgate_btn_epic:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 184, 107, 0.8);
}

.riskflowgate_header {
  background-color: #0A0A0E;
  border-bottom: 2px solid var(--rf-secondary);
  position: sticky;
  top: 0;
  z-index: 100;
}

.riskflowgate_header_inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.riskflowgate_logo_img {
  height: 40px;
  display: block;
}

.riskflowgate_nav_list {
  display: flex;
  list-style: none;
  gap: 20px;
}

.riskflowgate_nav_link {
  color: var(--rf-text-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  position: relative;
}
.riskflowgate_nav_link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--rf-primary);
}

.riskflowgate_auth_controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.riskflowgate_mobile_toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
}
.riskflowgate_hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rf-text-primary);
  position: absolute;
  left: 10px;
  top: 21px;
  transition: var(--rf-transition);
}
.riskflowgate_hamburger::before, .riskflowgate_hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--rf-text-primary);
  left: 0;
  transition: var(--rf-transition);
}
.riskflowgate_hamburger::before { top: -8px; }
.riskflowgate_hamburger::after { top: 8px; }
.riskflowgate_mobile_toggle.is-open .riskflowgate_hamburger { background: transparent; }
.riskflowgate_mobile_toggle.is-open .riskflowgate_hamburger::before { transform: rotate(45deg); top: 0; }
.riskflowgate_mobile_toggle.is-open .riskflowgate_hamburger::after { transform: rotate(-45deg); top: 0; }

.riskflowgate_age_strip {
  background-color: var(--rf-primary);
  color: #fff;
  text-align: center;
  padding: 8px 15px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.riskflowgate_hero_gradient_solid {
  background: radial-gradient(circle at center, var(--rf-secondary) 0%, var(--rf-bg) 70%);
  padding: 100px 20px;
  text-align: center;
  border-bottom: 1px solid var(--rf-surface);
}

.riskflowgate_hero_content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.riskflowgate_hero_title {
  font-size: 4rem;
  line-height: 1.1;
  background: linear-gradient(45deg, var(--rf-primary), var(--rf-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.riskflowgate_hero_subtitle {
  font-size: 1.2rem;
  color: var(--rf-text-secondary);
  max-width: 600px;
}

.riskflowgate_hero_countdown_strip {
  background: rgba(26, 26, 36, 0.8);
  border: 1px solid var(--rf-primary);
  padding: 10px 20px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.riskflowgate_countdown_label {
  color: var(--rf-text-secondary);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.riskflowgate_countdown_value {
  font-family: monospace;
  font-size: 1.5rem;
  color: var(--rf-accent);
  font-weight: 700;
}

.riskflowgate_hero_proofs {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.riskflowgate_proof_card {
  background: var(--rf-surface);
  border-left: 3px solid var(--rf-primary);
  padding: 15px 20px;
  text-align: left;
  border-radius: 0 4px 4px 0;
}

.riskflowgate_proof_val {
  display: block;
  font-size: 1.3rem;
  font-family: var(--rf-font-head);
  color: var(--rf-accent);
}

.riskflowgate_proof_desc {
  font-size: 0.85rem;
  color: var(--rf-text-secondary);
}

.riskflowgate_section {
  padding: 80px 0;
  border-bottom: 1px solid var(--rf-surface);
}

.riskflowgate_section_title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 20px;
  color: var(--rf-text-primary);
}

.riskflowgate_section_desc {
  text-align: center;
  color: var(--rf-text-secondary);
  max-width: 600px;
  margin: 0 auto 50px auto;
}

.riskflowgate_faction_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.riskflowgate_faction_card {
  background: var(--rf-surface);
  padding: 40px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--rf-transition);
  cursor: pointer;
}

.riskflowgate_faction_card:hover {
  transform: translateY(-5px);
  border-color: var(--rf-primary);
}

.riskflowgate_faction_icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.riskflowgate_relic_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.riskflowgate_relic_item {
  background: linear-gradient(180deg, var(--rf-surface) 0%, var(--rf-bg) 100%);
  padding: 30px;
  border-top: 3px solid var(--rf-accent);
}

.riskflowgate_relic_title {
  color: var(--rf-accent);
  font-size: 1.2rem;
}

.riskflowgate_split_layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.riskflowgate_cover_img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid var(--rf-secondary);
}

.riskflowgate_checklist {
  list-style: none;
  margin: 20px 0 30px 0;
}

.riskflowgate_checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  color: var(--rf-text-secondary);
}

.riskflowgate_checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--rf-primary);
  font-weight: bold;
}

.riskflowgate_vip_tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.riskflowgate_tier {
  background: var(--rf-surface);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}

.riskflowgate_tier_highlight {
  border: 2px solid var(--rf-primary);
  transform: scale(1.05);
  background: linear-gradient(180deg, #2A1A20 0%, var(--rf-surface) 100%);
}

.riskflowgate_tier_name {
  font-family: var(--rf-font-head);
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--rf-accent);
}

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

.riskflowgate_faq_item {
  margin-bottom: 15px;
  background: var(--rf-surface);
  border-radius: 4px;
}

.riskflowgate_faq_trigger {
  width: 100%;
  text-align: left;
  padding: 20px;
  background: none;
  border: none;
  color: var(--rf-text-primary);
  font-weight: 700;
  font-family: var(--rf-font-body);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.riskflowgate_faq_trigger::after {
  content: '+';
  color: var(--rf-primary);
  font-size: 1.5rem;
}

.riskflowgate_faq_item.is-active .riskflowgate_faq_trigger::after {
  content: '-';
}

.riskflowgate_faq_content {
  display: none;
  padding: 0 20px 20px 20px;
  color: var(--rf-text-secondary);
}

.riskflowgate_faq_item.is-active .riskflowgate_faq_content {
  display: block;
}

.riskflowgate_page_header {
  background: var(--rf-surface);
  padding: 60px 0;
  text-align: center;
  border-bottom: 2px solid var(--rf-secondary);
}

.riskflowgate_page_title {
  font-size: 3rem;
  color: var(--rf-primary);
}

.riskflowgate_page_subtitle {
  color: var(--rf-text-secondary);
  font-size: 1.2rem;
}

.riskflowgate_content_section .riskflowgate_text_block,
.riskflowgate_legal_section .riskflowgate_legal_block {
  max-width: 900px;
  margin: 0 auto 40px auto;
  background: var(--rf-surface);
  padding: 40px;
  border-radius: 4px;
}

.riskflowgate_legal_block h2 {
  color: var(--rf-accent);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.riskflowgate_form_group {
  margin-bottom: 20px;
}

.riskflowgate_form_group label {
  display: block;
  margin-bottom: 8px;
  color: var(--rf-text-secondary);
}

.riskflowgate_form_group input, 
.riskflowgate_form_group textarea, 
.riskflowgate_form_group select {
  width: 100%;
  padding: 12px;
  background: var(--rf-bg);
  border: 1px solid var(--rf-secondary);
  color: var(--rf-text-primary);
  border-radius: 4px;
  font-family: var(--rf-font-body);
}

.riskflowgate_contact_card {
  background: var(--rf-surface);
  padding: 20px;
  margin-bottom: 20px;
  border-left: 4px solid var(--rf-accent);
}

.riskflowgate_lobby_section {
  padding: 40px 0;
}

.riskflowgate_game_module {
  background: var(--rf-surface);
  border: 1px solid var(--rf-secondary);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.riskflowgate_game_header {
  padding: 20px;
  background: #0A0A0E;
  text-align: center;
  border-bottom: 1px solid var(--rf-secondary);
  position: relative;
}

.riskflowgate_game_disclaimer {
  font-size: 0.8rem;
  color: var(--rf-text-secondary);
  text-transform: uppercase;
}

.riskflowgate_mutator_badge {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--rf-primary);
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 4px;
}

.riskflowgate_game_stage {
  display: grid;
  grid-template-columns: 2fr 1fr;
  background: radial-gradient(circle at center, #1A1A24 0%, #0D0D12 100%);
  padding: 40px;
  gap: 40px;
  align-items: center;
}

.riskflowgate_wheel_container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  aspect-ratio: 1/1;
}

.riskflowgate_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(--rf-primary);
  z-index: 10;
  filter: drop-shadow(0 0 10px var(--rf-primary));
}

.riskflowgate_wheel_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(230, 57, 86, 0.2);
  border: 4px solid #333;
  transition: transform 3.5s cubic-bezier(0.25, 0.1, 0.15, 1);
  transform-origin: center center;
}

.riskflowgate_game_sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.riskflowgate_history_panel, .riskflowgate_payout_hint {
  background: rgba(0,0,0,0.5);
  padding: 20px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
}

.riskflowgate_history_panel h3, .riskflowgate_payout_hint h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--rf-accent);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 5px;
}

.riskflowgate_history_list {
  list-style: none;
  font-size: 0.85rem;
}

.riskflowgate_history_list li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.riskflowgate_payout_hint ul {
  list-style: none;
  font-size: 0.85rem;
}

.riskflowgate_payout_hint li {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}

.riskflowgate_game_controls {
  padding: 20px;
  background: #0A0A0E;
  border-top: 1px solid var(--rf-secondary);
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.riskflowgate_bet_selector, .riskflowgate_symbol_selector {
  flex: 1;
  min-width: 200px;
}

.riskflowgate_bet_stepper {
  display: flex;
  height: 44px;
}

.riskflowgate_stepper_btn {
  width: 44px;
  background: var(--rf-surface);
  border: 1px solid var(--rf-secondary);
  color: var(--rf-text-primary);
  font-size: 1.2rem;
  cursor: pointer;
}

.riskflowgate_bet_input {
  flex: 1;
  text-align: center;
  background: var(--rf-bg);
  border: 1px solid var(--rf-secondary);
  border-left: none;
  border-right: none;
  color: var(--rf-text-primary);
  font-weight: bold;
  font-size: 1.1rem;
}

.riskflowgate_symbol_select {
  height: 44px;
}

.riskflowgate_spin_btn {
  height: 44px;
  min-width: 200px;
  flex: 1;
}

.riskflowgate_result_panel {
  text-align: center;
  padding: 15px;
  background: var(--rf-surface);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.riskflowgate_result_text {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--rf-accent);
}

.riskflowgate_footer {
  background: #050508;
  border-top: 3px solid var(--rf-secondary);
  padding: 60px 0 20px 0;
  font-size: 0.9rem;
}

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

.riskflowgate_footer_top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.riskflowgate_footer_logo {
  height: 50px;
  margin-bottom: 15px;
}

.riskflowgate_simulated_notice {
  color: var(--rf-primary);
  font-weight: 700;
}

.riskflowgate_footer h4 {
  color: var(--rf-text-primary);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.riskflowgate_footer ul {
  list-style: none;
}

.riskflowgate_footer li {
  margin-bottom: 10px;
}

.riskflowgate_footer li a {
  color: var(--rf-text-secondary);
}

.riskflowgate_footer li a:hover {
  color: var(--rf-primary);
}

.riskflowgate_footer_rg_block {
  background: var(--rf-surface);
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 30px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
}

.riskflowgate_footer_rg_text {
  color: var(--rf-text-secondary);
  margin-bottom: 15px;
  font-size: 0.85rem;
}

.riskflowgate_partner_links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.riskflowgate_partner_link {
  display: inline-block;
  padding: 8px 15px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  color: var(--rf-text-primary);
}

.riskflowgate_footer_bottom {
  text-align: center;
  color: var(--rf-text-secondary);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.riskflowgate_easter_egg_trigger {
  width: 30px;
  height: 30px;
  cursor: pointer;
  opacity: 0.5;
  transition: var(--rf-transition);
}
.riskflowgate_easter_egg_trigger:hover {
  opacity: 1;
  filter: drop-shadow(0 0 5px var(--rf-primary));
}

.riskflowgate_wallet_widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(26, 26, 36, 0.95);
  border: 2px solid var(--rf-accent);
  padding: 10px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.riskflowgate_wallet_icon {
  background: var(--rf-accent);
  color: #000;
  font-weight: 900;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.9rem;
}

.riskflowgate_wallet_balance {
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--rf-text-primary);
}

.riskflowgate_modal_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--rf-transition);
}

.riskflowgate_modal_overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.riskflowgate_modal_content {
  background: var(--rf-surface);
  border: 1px solid var(--rf-secondary);
  padding: 40px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  position: relative;
  transform: translateY(20px);
  transition: var(--rf-transition);
}

.riskflowgate_modal_overlay.is-active .riskflowgate_modal_content {
  transform: translateY(0);
}

.riskflowgate_modal_legal {
  max-width: 600px;
}

.riskflowgate_modal_close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: var(--rf-text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

.riskflowgate_modal_title {
  margin-bottom: 20px;
  color: var(--rf-primary);
}

.riskflowgate_modal_body p {
  margin-bottom: 15px;
}

.riskflowgate_toast_container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.riskflowgate_toast {
  background: var(--rf-surface);
  border-left: 4px solid var(--rf-primary);
  padding: 15px 20px;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  color: var(--rf-text-primary);
  font-weight: bold;
  animation: rfToastIn 0.3s ease-out forwards;
}

.riskflowgate_toast.success {
  border-left-color: #4CAF50;
}

@keyframes rfToastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 1024px) {
  .riskflowgate_footer_top {
    grid-template-columns: 1fr 1fr;
  }
  .riskflowgate_hero_title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .riskflowgate_nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--rf-bg);
    border-bottom: 2px solid var(--rf-secondary);
    padding: 20px;
  }
  .riskflowgate_nav.is-open {
    display: block;
  }
  .riskflowgate_nav_list {
    flex-direction: column;
    align-items: center;
  }
  .riskflowgate_mobile_toggle {
    display: block;
  }
  .riskflowgate_auth_controls > .riskflowgate_btn {
    display: none;
  }
  .riskflowgate_hero_proofs {
    flex-direction: column;
  }
  .riskflowgate_faction_grid, .riskflowgate_relic_grid, .riskflowgate_split_layout, .riskflowgate_vip_tiers {
    grid-template-columns: 1fr;
  }
  .riskflowgate_game_stage {
    grid-template-columns: 1fr;
  }
  .riskflowgate_mutator_badge {
    position: static;
    display: inline-block;
    margin-top: 10px;
    transform: none;
  }
  .riskflowgate_game_controls {
    flex-direction: column;
    align-items: stretch;
  }
  .riskflowgate_spin_btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .riskflowgate_hero_title {
    font-size: 2rem;
  }
  .riskflowgate_footer_top {
    grid-template-columns: 1fr;
  }
  .riskflowgate_wallet_widget {
    bottom: 10px;
    right: 10px;
    padding: 8px 12px;
  }
}
