:root {
    --primary: #6D5BFF;
    --secondary: #9333EA;
    --accent: #F5D48F;
    --background: #100C1F;
    --surface: #1F1A37;
    --text-primary: #F3EEFF;
    --text-secondary: #BEB3D8;
    --heading-font: 'Orbitron', sans-serif;
    --body-font: 'Rajdhani', sans-serif;
    --base-font-size: 16px;
    --line-height: 1.6;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--body-font);
    font-size: var(--base-font-size);
    line-height: var(--line-height);
    color: var(--text-primary);
    background-color: var(--background);
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
a { color: var(--accent); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--text-primary); }
img { max-width: 100%; height: auto; display: block; }
.betloophub_container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

.betloophub_btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-family: var(--heading-font);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: var(--primary);
    color: #fff;
    min-height: 44px;
}
.betloophub_btn:hover { background: var(--secondary); }
.betloophub_btn_secondary { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.betloophub_btn_secondary:hover { background: var(--accent); color: var(--background); }

.betloophub_gate {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(16, 12, 31, 0.95);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
}
.betloophub_gate_content {
    background: var(--surface);
    padding: 3rem; border-radius: 8px;
    text-align: center; max-width: 500px;
    border: 1px solid var(--primary);
}
.betloophub_gate.is-hidden { display: none; }

.betloophub_header {
    background: rgba(31, 26, 55, 0.95);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid var(--primary);
}
.betloophub_header_inner {
    display: flex; justify-content: space-between; align-items: center;
    height: 70px;
}
.betloophub_logo {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}
.betloophub_nav {
    display: flex; align-items: center; gap: 2rem;
}
.betloophub_nav_list {
    display: flex; gap: 1.5rem; list-style: none;
}
.betloophub_burger { display: none; background: transparent; border: none; cursor: pointer; padding: 10px; }
.betloophub_burger_line { display: block; width: 25px; height: 3px; background: var(--text-primary); margin: 5px 0; transition: 0.3s; }

.betloophub_hero_bg_image_overlay {
    position: relative;
    min-height: 80vh;
    display: flex; align-items: center;
    background-image: url('assets/images/quantum-loop-hero.webp');
    background-size: cover; background-position: center;
}
.betloophub_hero_bg_image_overlay::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(16, 12, 31, 0.9), rgba(16, 12, 31, 0.4));
}
.betloophub_hero_content {
    position: relative; z-index: 2;
    max-width: 600px;
}
.betloophub_hero_content h1 { font-size: 3.5rem; margin-bottom: 1rem; line-height: 1.1; }
.betloophub_hero_content p { font-size: 1.25rem; margin-bottom: 2rem; }
.betloophub_hero_actions { display: flex; gap: 1rem; }
.betloophub_legal_strip {
    display: inline-block;
    background: rgba(147, 51, 234, 0.3);
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-family: var(--heading-font);
}

.betloophub_section { padding: 5rem 0; }
.betloophub_section_title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; }
.betloophub_page_header {
    padding: 4rem 0; text-align: center; background: var(--surface);
    border-bottom: 1px solid var(--primary);
}
.betloophub_page_header h1 { font-size: 3rem; }

.betloophub_grid_2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.betloophub_card { background: var(--surface); padding: 2rem; border-radius: 8px; border: 1px solid rgba(109, 91, 255, 0.3); }
.betloophub_feature_card { background: var(--surface); border-radius: 8px; overflow: hidden; border: 1px solid var(--primary); }
.betloophub_feature_img { width: 100%; height: 200px; object-fit: cover; }
.betloophub_feature_card h3, .betloophub_feature_card p { padding: 1rem; }

.betloophub_accordion_item { margin-bottom: 1rem; border: 1px solid var(--primary); border-radius: 4px; }
.betloophub_accordion_trigger {
    width: 100%; padding: 1.5rem; text-align: left; background: var(--surface);
    color: var(--text-primary); font-family: var(--heading-font); font-size: 1.1rem;
    border: none; cursor: pointer; display: flex; justify-content: space-between;
}
.betloophub_accordion_trigger::after { content: '+'; }
.betloophub_accordion_trigger[aria-expanded="true"]::after { content: '-'; }
.betloophub_accordion_content { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: rgba(31, 26, 55, 0.5); }
.betloophub_accordion_trigger[aria-expanded="true"] + .betloophub_accordion_content { padding: 1.5rem; max-height: 500px; }

.betloophub_game_module {
    background: var(--surface);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin: 0 auto;
    max-width: 600px;
}
.betloophub_game_visual { margin: 1.5rem auto; position: relative; width: 250px; height: 250px; }
.betloophub_wheel_image { width: 100%; height: 100%; object-fit: contain; transition: transform 0.1s linear; }
.betloophub_wheel_pointer { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent; border-top: 25px solid var(--accent); z-index: 10; }

.betloophub_slot_board { display: flex; justify-content: center; gap: 10px; margin: 1.5rem 0; background: #000; padding: 20px; border-radius: 8px; border: 1px solid var(--accent); }
.betloophub_slot_reel { width: 80px; height: 80px; overflow: hidden; background: #111; border: 1px solid var(--primary); display: flex; align-items: center; justify-content: center; }
.betloophub_slot_reel img { width: 60px; height: 60px; object-fit: contain; }

.betloophub_game_controls { display: flex; flex-direction: column; gap: 1rem; align-items: center; margin-top: 1.5rem; }
.betloophub_bet_select { padding: 0.5rem; background: var(--background); color: var(--text-primary); border: 1px solid var(--primary); font-family: var(--body-font); width: 100%; max-width: 200px; }
.betloophub_game_result { font-family: var(--heading-font); color: var(--accent); min-height: 1.5em; }
.betloophub_game_history { font-size: 0.85rem; color: var(--text-secondary); }
.betloophub_balance_mirror { font-weight: bold; margin-bottom: 0.5rem; color: var(--accent); }

.betloophub_cta_center { text-align: center; margin-top: 2rem; }

.betloophub_lobby_masonry { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.betloophub_masonry_large { grid-column: 1 / -1; max-width: 800px; }
.betloophub_masonry_small { max-width: 100%; }

.betloophub_bottom_bar_wallet {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: rgba(31, 26, 55, 0.98);
    border-top: 2px solid var(--primary);
    padding: 0.75rem 0;
    z-index: 90;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.5);
}
.betloophub_wallet_inner { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; }
.betloophub_wallet_label { font-family: var(--heading-font); color: var(--text-secondary); }
.betloophub_wallet_amount { font-family: var(--heading-font); font-size: 1.25rem; font-weight: bold; color: var(--accent); }

.betloophub_footer { background: #080611; padding: 4rem 0 6rem 0; border-top: 1px solid var(--primary); font-size: 0.9rem; }
.betloophub_footer_grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.betloophub_footer h3 { color: var(--text-primary); font-size: 1.1rem; margin-bottom: 1.5rem; }
.betloophub_footer_links ul { list-style: none; }
.betloophub_footer_links li { margin-bottom: 0.5rem; }
.betloophub_footer_responsible p { color: var(--text-secondary); margin-bottom: 0.5rem; font-size: 0.8rem; }
.betloophub_footer_partners { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.betloophub_partner_link { display: inline-block; padding: 0.5rem; border-radius: 4px; }
.betloophub_partner_light { background: #ffffff; }
.betloophub_partner_dark { background: #1a1a1a; border: 1px solid #333; }
.betloophub_partner_link img { height: 40px; width: auto; }
.betloophub_footer_bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; color: var(--text-secondary); }

.betloophub_modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center; z-index: 1000; }
.betloophub_modal.is-active { display: flex; }
.betloophub_modal_content { background: var(--surface); padding: 2.5rem; border-radius: 8px; width: 90%; max-width: 400px; position: relative; border: 1px solid var(--primary); }
.betloophub_modal_close { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 1.5rem; color: var(--text-primary); cursor: pointer; }
.betloophub_form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.betloophub_input { padding: 0.8rem; background: var(--background); border: 1px solid var(--primary); color: var(--text-primary); border-radius: 4px; }

.betloophub_toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: var(--secondary); color: #fff; padding: 1rem 2rem; border-radius: 4px; z-index: 1000; font-weight: bold; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.betloophub_toast.is-visible { opacity: 1; }

.betloophub_text_content h2 { margin-top: 2rem; }
.betloophub_text_content p { margin-bottom: 1.5rem; }

.betloophub_achievements_list { display: flex; flex-direction: column; gap: 1rem; }
.betloophub_achievement_card { background: var(--surface); padding: 1rem; border-left: 4px solid var(--primary); }
.betloophub_achievement_card span { color: var(--accent); font-weight: bold; }

@media (max-width: 768px) {
    .betloophub_burger { display: block; }
    .betloophub_nav {
        position: absolute; top: 70px; left: 0; width: 100%; background: var(--surface);
        flex-direction: column; padding: 2rem; transform: translateY(-150%); transition: transform 0.3s ease-in-out;
        border-bottom: 1px solid var(--primary);
    }
    .betloophub_nav.is-open { transform: translateY(0); }
    .betloophub_nav_list { flex-direction: column; align-items: center; width: 100%; }
    .betloophub_hero_content h1 { font-size: 2.5rem; }
    .betloophub_hero_actions { flex-direction: column; }
    .betloophub_lobby_masonry { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
    .betloophub_hero_content h1 { font-size: 2rem; }
    .betloophub_slot_reel { width: 60px; height: 60px; }
    .betloophub_slot_reel img { width: 40px; height: 40px; }
    .betloophub_game_visual { width: 200px; height: 200px; }
}
/* 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;
}
