:root {
    --rathole-primary: #E63956;
    --rathole-secondary: #8C1D3A;
    --rathole-accent: #FFB86B;
    --rathole-bg: #0D0D12;
    --rathole-surface: #1A1A24;
    --rathole-text-main: #FAF1F3;
    --rathole-text-muted: #C6B4BA;
    --rathole-font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --rathole-font-body: 'Courier Prime', monospace;
}

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

body.rathole_body {
    font-family: var(--rathole-font-body);
    background-color: var(--rathole-bg);
    color: var(--rathole-text-main);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

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

a {
    color: var(--rathole-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--rathole-primary);
}

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

.rathole_container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.rathole_bg_background { background-color: var(--rathole-bg); }
.rathole_bg_surface { background-color: var(--rathole-surface); }
.rathole_bg_accent { background-color: var(--rathole-accent); }
.rathole_bg_light { background-color: #ffffff; padding: 0.5rem; border-radius: 4px; }
.rathole_bg_dark { background-color: #111111; padding: 0.5rem; border-radius: 4px; }

.rathole_text_primary { color: var(--rathole-primary); }
.rathole_text_secondary { color: var(--rathole-text-muted); }
.rathole_text_accent { color: var(--rathole-accent); }
.rathole_text_dark { color: #000; }

.rathole_text_center { text-align: center; }
.rathole_font_heading { font-family: var(--rathole-font-heading); }
.rathole_font_bold { font-weight: 700; }
.rathole_text_small { font-size: 0.875rem; }

.rathole_mb_md { margin-bottom: 1.5rem; }
.rathole_mb_lg { margin-bottom: 3rem; }
.rathole_mt_md { margin-top: 1.5rem; }
.rathole_mt_lg { margin-top: 3rem; }
.rathole_p_md { padding: 1.5rem; }
.rathole_w_full { width: 100%; }

.rathole_flex_center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rathole_grid_2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.rathole_grid_3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.rathole_skip_link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--rathole-primary);
    color: #fff;
    padding: 8px;
    z-index: 1000;
}
.rathole_skip_link:focus {
    top: 0;
}

.rathole_age_strip {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    text-align: center;
    border-bottom: 1px solid var(--rathole-secondary);
}

.rathole_header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,184,107,0.2);
}

.rathole_header_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.rathole_logo a {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

@media(min-width: 768px) {
    .rathole_nav_list {
        display: flex;
    }
}

.rathole_nav_list a {
    color: var(--rathole-text-main);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.rathole_nav_list a.rathole_active,
.rathole_nav_list a:hover {
    color: var(--rathole-accent);
}

.rathole_burger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
}
@media(min-width: 768px) {
    .rathole_burger { display: none; }
}
.rathole_burger_line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--rathole-text-main);
    margin: 5px 0;
    transition: 0.3s;
}

.rathole_btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--rathole-font-body);
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 44px;
}

.rathole_btn:active {
    transform: scale(0.98);
}

.rathole_btn_primary {
    background-color: var(--rathole-primary);
    color: #fff;
    box-shadow: 0 4px 0 var(--rathole-secondary);
}

.rathole_btn_primary:hover {
    background-color: #f74563;
    color: #fff;
}

.rathole_btn_secondary {
    background-color: var(--rathole-surface);
    color: var(--rathole-accent);
    border: 1px solid var(--rathole-accent);
}

.rathole_btn_accent {
    background-color: var(--rathole-accent);
    color: var(--rathole-bg);
}

.rathole_btn_outline {
    background: transparent;
    border: 2px solid var(--rathole-primary);
    color: var(--rathole-text-main);
}

.rathole_hero {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

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

@media(min-width: 768px) {
    .rathole_hero_split {
        flex-direction: row;
    }
    .rathole_hero_content {
        flex: 1;
        padding-right: 2rem;
    }
    .rathole_hero_visual {
        flex: 1;
    }
}

.rathole_trust_badge {
    display: inline-block;
    background: rgba(255,184,107,0.1);
    color: var(--rathole-accent);
    padding: 4px 12px;
    border: 1px solid var(--rathole-accent);
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.rathole_hero_title {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}
@media(min-width: 768px) {
    .rathole_hero_title { font-size: 3.5rem; }
}

.rathole_hero_subtitle {
    font-size: 1.1rem;
    color: var(--rathole-text-muted);
    margin-bottom: 2rem;
}

.rathole_floating_card {
    padding: 1rem;
    border: 1px solid var(--rathole-secondary);
    box-shadow: 20px 20px 0 rgba(230,57,86,0.2);
    position: relative;
}

.rathole_hero_img {
    width: 100%;
    filter: sepia(0.3) contrast(1.2);
}

.rathole_section {
    padding: 4rem 0;
}

.rathole_list {
    list-style: inside square;
    color: var(--rathole-text-muted);
    margin: 1rem 0;
}

.rathole_list li {
    margin-bottom: 0.5rem;
}

.rathole_card {
    padding: 2rem;
    border-left: 4px solid var(--rathole-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.rathole_img_responsive {
    width: 100%;
    border: 2px solid var(--rathole-secondary);
}

.rathole_lobby_main {
    padding: 2rem 0;
}

.rathole_lobby_split {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
@media(min-width: 1024px) {
    .rathole_lobby_split {
        flex-direction: row;
    }
    .rathole_lobby_featured {
        flex: 2;
    }
    .rathole_lobby_sidebar {
        flex: 1;
    }
}

.rathole_game_wrapper {
    padding: 2rem;
    border: 1px solid var(--rathole-secondary);
}

.rathole_slot_machine {
    background: #000;
    padding: 20px;
    border: 4px solid #3a3a3a;
    border-radius: 8px;
}

.rathole_slot_board {
    display: flex;
    gap: 10px;
    justify-content: center;
    background: #111;
    padding: 20px;
    border: 2px inset #555;
    position: relative;
    overflow: hidden;
    height: 180px;
}

.rathole_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(--rathole-accent);
}

.rathole_reel {
    width: 100px;
    height: 140px;
    background: #222;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.rathole_reel img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.rathole_spinning .rathole_reel img {
    animation: reelBlur 0.1s infinite alternate;
}

@keyframes reelBlur {
    0% { transform: translateY(-10px); filter: blur(2px); }
    100% { transform: translateY(10px); filter: blur(2px); }
}

.rathole_slot_controls {
    margin-top: 20px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    border-top: 2px solid #333;
}
@media(min-width: 480px) {
    .rathole_slot_controls {
        flex-direction: row;
        justify-content: space-between;
    }
}

.rathole_input {
    background: var(--rathole-surface);
    color: var(--rathole-text-main);
    border: 1px solid var(--rathole-secondary);
    padding: 8px;
    font-family: var(--rathole-font-body);
}

.rathole_game_result {
    padding: 10px;
    background: #000;
    border: 1px solid var(--rathole-accent);
    color: var(--rathole-accent);
    text-align: center;
    min-width: 150px;
    font-weight: bold;
}

.rathole_wallet_terminal {
    padding: 2rem;
    border-top: 4px solid var(--rathole-accent);
}

.rathole_wallet_balance {
    background: var(--rathole-bg);
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
    border: 1px solid #333;
}

.rathole_balance_amount {
    font-size: 2rem;
}

.rathole_progress_bar {
    width: 100%;
    height: 10px;
    background: #333;
    margin: 10px 0;
    overflow: hidden;
}

.rathole_progress_fill {
    height: 100%;
    background: var(--rathole-primary);
    transition: width 0.3s ease;
}

.rathole_achievement_list {
    list-style: none;
    margin-top: 10px;
}

.rathole_achievement_list li {
    padding: 8px;
    background: #111;
    margin-bottom: 5px;
    border-left: 2px solid #555;
    opacity: 0.5;
}

.rathole_achievement_list li.rathole_achieved {
    opacity: 1;
    border-left-color: var(--rathole-accent);
    color: var(--rathole-accent);
}

.rathole_home_game_module {
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid var(--rathole-secondary);
    background: var(--rathole-bg);
}

.rathole_game_split {
    display: flex;
    flex-direction: column;
}
@media(min-width: 768px) {
    .rathole_game_split {
        flex-direction: row;
    }
}

.rathole_game_board_area {
    flex: 1;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #111;
}

.rathole_wheel_container {
    position: relative;
    width: 250px;
    height: 250px;
}

.rathole_wheel_pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--rathole-accent);
    font-size: 30px;
    z-index: 10;
    text-shadow: 0 2px 4px #000;
}

.rathole_wheel_img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--rathole-secondary);
    transition: transform 3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.rathole_game_controls_area {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media(min-width: 768px) {
    .rathole_game_controls_area {
        width: 300px;
        border-left: 1px solid #333;
    }
}

.rathole_wallet_display {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.rathole_history_list {
    list-style: none;
    display: flex;
    gap: 5px;
    margin-top: 5px;
}
.rathole_history_list li {
    background: #222;
    padding: 4px 8px;
    font-size: 0.8rem;
}

.rathole_page_header {
    padding: 3rem 0;
    border-bottom: 1px solid var(--rathole-secondary);
}

.rathole_policy_content h2 {
    margin-top: 2rem;
    color: var(--rathole-primary);
}

.rathole_form_group {
    margin-bottom: 1.5rem;
}

.rathole_form_group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--rathole-accent);
}

.rathole_form_group .rathole_input {
    width: 100%;
}

.rathole_accordion_btn {
    width: 100%;
    text-align: left;
    background: var(--rathole-surface);
    color: var(--rathole-text-main);
    padding: 1rem;
    border: 1px solid #333;
    cursor: pointer;
    font-family: var(--rathole-font-heading);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.rathole_accordion_content {
    display: none;
    padding: 1rem;
    background: var(--rathole-bg);
    border: 1px solid #333;
    border-top: none;
    margin-bottom: 15px;
}

.rathole_accordion_btn[aria-expanded="true"] + .rathole_accordion_content {
    display: block;
}

.rathole_footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid #333;
    margin-top: 4rem;
}

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

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

.rathole_footer_links {
    list-style: none;
}

.rathole_footer_links li {
    margin-bottom: 0.5rem;
}

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

.rathole_partner_link img {
    height: 40px;
    width: auto;
}

.rathole_footer_bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 2rem;
    font-size: 0.8rem;
    color: var(--rathole-text-muted);
}

.rathole_disclaimer_text {
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.rathole_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.rathole_modal.rathole_show {
    display: flex;
}

.rathole_modal_content {
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 1px solid var(--rathole-accent);
}

.rathole_modal_close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--rathole-text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.rathole_floating_disclaimer_btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--rathole-surface);
    color: var(--rathole-text-muted);
    border: 1px solid #333;
    padding: 8px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    z-index: 900;
}

.rathole_toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--rathole-primary);
    color: #fff;
    padding: 10px 20px;
    transition: bottom 0.3s;
    z-index: 2000;
    font-weight: bold;
}

.rathole_toast.rathole_show {
    bottom: 20px;
}

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