:root {
    --playvistahq-primary: #2D6BFF;
    --playvistahq-secondary: #1E3A8A;
    --playvistahq-accent: #F4B942;
    --playvistahq-bg: #0A1022;
    --playvistahq-surface: #131F3F;
    --playvistahq-text: #EEF4FF;
    --playvistahq-text-dim: #B5C2DE;
    --playvistahq-font-heading: 'Merriweather', sans-serif;
    --playvistahq-font-body: 'Open Sans', sans-serif;
    --playvistahq-radius: 8px;
    --playvistahq-transition: 0.3s ease;
}

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

body.playvistahq_body {
    font-family: var(--playvistahq-font-body);
    background-color: var(--playvistahq-bg);
    color: var(--playvistahq-text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

.playvistahq_h1 { font-size: 2.5rem; line-height: 1.2; }
.playvistahq_h2 { font-size: 2rem; }
.playvistahq_h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; color: var(--playvistahq-text-dim); }
a { color: var(--playvistahq-primary); text-decoration: none; transition: color var(--playvistahq-transition); }
a:hover { color: var(--playvistahq-accent); }

.playvistahq_container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.playvistahq_text-center { text-align: center; }
.playvistahq_mb-sm { margin-bottom: 0.5rem; }
.playvistahq_mb-md { margin-bottom: 1rem; }
.playvistahq_mb-lg { margin-bottom: 2rem; }
.playvistahq_mb-xl { margin-bottom: 3rem; }
.playvistahq_mt-sm { margin-top: 0.5rem; }
.playvistahq_mt-md { margin-top: 1rem; }
.playvistahq_mt-lg { margin-top: 2rem; }
.playvistahq_p-lg { padding: 2rem; }
.playvistahq_w-full { width: 100%; }
.playvistahq_bg-surface { background-color: var(--playvistahq-surface); }

.playvistahq_btn {
    display: inline-block;
    padding: 10px 24px;
    font-family: var(--playvistahq-font-heading);
    font-weight: 700;
    text-align: center;
    border-radius: var(--playvistahq-radius);
    cursor: pointer;
    transition: all var(--playvistahq-transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.playvistahq_btn-primary {
    background-color: var(--playvistahq-primary);
    color: #fff;
}
.playvistahq_btn-primary:hover {
    background-color: #1a51d1;
    transform: translateY(-2px);
}
.playvistahq_btn-secondary {
    background-color: transparent;
    color: var(--playvistahq-accent);
    border: 2px solid var(--playvistahq-accent);
}
.playvistahq_btn-secondary:hover {
    background-color: var(--playvistahq-accent);
    color: var(--playvistahq-bg);
}
.playvistahq_btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}
.playvistahq_btn-spin {
    background-color: var(--playvistahq-accent);
    color: var(--playvistahq-bg);
    font-size: 1.2rem;
    padding: 12px 0;
    width: 100%;
    box-shadow: 0 4px 0 #c28b22;
}
.playvistahq_btn-spin:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #c28b22;
}
.playvistahq_btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.playvistahq_header {
    background-color: var(--playvistahq-secondary);
    border-bottom: 2px solid var(--playvistahq-accent);
    position: sticky;
    top: 0;
    z-index: 100;
}
.playvistahq_header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.playvistahq_logo {
    font-family: var(--playvistahq-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--playvistahq-accent);
}
.playvistahq_nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
}
.playvistahq_nav-list a {
    color: var(--playvistahq-text);
    font-weight: 700;
}
.playvistahq_nav-list a:hover { color: var(--playvistahq-accent); }
.playvistahq_header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.playvistahq_wallet-compact {
    background-color: var(--playvistahq-surface);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--playvistahq-accent);
    font-weight: bold;
    color: var(--playvistahq-accent);
    display: flex;
    align-items: center;
    gap: 6px;
}
.playvistahq_nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.playvistahq_nav-toggle-icon, .playvistahq_nav-toggle-icon::before, .playvistahq_nav-toggle-icon::after {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--playvistahq-text);
    transition: 0.3s;
}
.playvistahq_nav-toggle-icon::before { content: ''; transform: translateY(-6px); }
.playvistahq_nav-toggle-icon::after { content: ''; transform: translateY(4px); }

.playvistahq_age-strip {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 8px 0;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
}

.playvistahq_section {
    padding: 60px 0;
}

.playvistahq_hero-dashboard {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    border-bottom: 4px solid var(--playvistahq-accent);
}
.playvistahq_hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(10,16,34,0.9) 0%, rgba(30,58,138,0.7) 100%);
}
.playvistahq_hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}
.playvistahq_hero-text { flex: 1; max-width: 600px; }
.playvistahq_hero-text .playvistahq_h1 { font-size: 3.5rem; text-shadow: 0 4px 10px rgba(0,0,0,0.5); margin-bottom: 20px; }
.playvistahq_hero-sub { font-size: 1.2rem; margin-bottom: 30px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); color: #fff; }
.playvistahq_hero-metrics {
    flex: 0 0 300px;
}
.playvistahq_metric-card {
    background: rgba(19, 31, 63, 0.8);
    border: 1px solid var(--playvistahq-accent);
    padding: 20px;
    border-radius: var(--playvistahq-radius);
    text-align: center;
    backdrop-filter: blur(5px);
}
.playvistahq_metric-title { display: block; font-size: 0.9rem; color: var(--playvistahq-text-dim); text-transform: uppercase; }
.playvistahq_metric-value { display: block; font-size: 2.5rem; font-weight: 700; color: var(--playvistahq-accent); margin-top: 10px; }
.playvistahq_hero-ticker {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    padding: 10px 0;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.playvistahq_ticker-track {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    animation: ticker 20s linear infinite;
    color: var(--playvistahq-accent);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
}
@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.playvistahq_split-layout {
    display: flex;
    gap: 40px;
    align-items: center;
}
.playvistahq_split-text { flex: 1; }
.playvistahq_split-image { flex: 1; }
.playvistahq_img-responsive {
    width: 100%;
    height: auto;
    border-radius: var(--playvistahq-radius);
    border: 2px solid var(--playvistahq-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.playvistahq_ranks-grid, .playvistahq_winner-grid, .playvistahq_pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.playvistahq_rank-card, .playvistahq_pillar-card {
    background-color: var(--playvistahq-surface);
    padding: 25px;
    border-radius: var(--playvistahq-radius);
    border-top: 4px solid var(--playvistahq-primary);
    transition: transform var(--playvistahq-transition);
}
.playvistahq_rank-card:hover { transform: translateY(-5px); }
.playvistahq_rank-reward {
    margin-top: 15px;
    font-weight: bold;
    color: var(--playvistahq-accent);
    background: rgba(244, 185, 66, 0.1);
    padding: 8px;
    border-radius: 4px;
    text-align: center;
}
.playvistahq_winner-card {
    background: linear-gradient(135deg, var(--playvistahq-surface) 0%, var(--playvistahq-secondary) 100%);
    padding: 20px;
    border-radius: var(--playvistahq-radius);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.playvistahq_winner-card strong { color: var(--playvistahq-accent); font-size: 1.2rem; margin-bottom: 5px; }

.playvistahq_fair-play-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}
.playvistahq_fair-play-list li {
    background-color: var(--playvistahq-surface);
    margin-bottom: 10px;
    padding: 15px 20px;
    border-left: 4px solid var(--playvistahq-primary);
    border-radius: 0 var(--playvistahq-radius) var(--playvistahq-radius) 0;
}

.playvistahq_location-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}
.playvistahq_tab-btn {
    background: transparent;
    border: 1px solid var(--playvistahq-text-dim);
    color: var(--playvistahq-text-dim);
    padding: 10px 20px;
    cursor: pointer;
    font-family: var(--playvistahq-font-heading);
    transition: all 0.2s;
}
.playvistahq_tab-btn.is-active {
    background: var(--playvistahq-primary);
    color: #fff;
    border-color: var(--playvistahq-primary);
}
.playvistahq_tab-content {
    display: none;
    background-color: var(--playvistahq-bg);
    padding: 30px;
    border-radius: var(--playvistahq-radius);
    border: 1px solid rgba(255,255,255,0.1);
}
.playvistahq_tab-content.is-active { display: block; }

.playvistahq_faq-rail-layout {
    display: flex;
    gap: 40px;
}
.playvistahq_faq-main { flex: 1; }
.playvistahq_faq-rail { flex: 1; }
.playvistahq_accordion { margin-bottom: 10px; }
.playvistahq_accordion-btn {
    width: 100%;
    text-align: left;
    padding: 15px;
    background-color: var(--playvistahq-surface);
    border: none;
    color: var(--playvistahq-text);
    font-weight: bold;
    cursor: pointer;
    border-radius: var(--playvistahq-radius);
    display: flex;
    justify-content: space-between;
}
.playvistahq_accordion-btn::after { content: '+'; color: var(--playvistahq-accent); }
.playvistahq_accordion-btn[aria-expanded="true"]::after { content: '-'; }
.playvistahq_accordion-content {
    display: none;
    padding: 15px;
    background-color: rgba(19, 31, 63, 0.5);
    border-radius: 0 0 var(--playvistahq-radius) var(--playvistahq-radius);
}

.playvistahq_page-header {
    padding: 60px 0 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--playvistahq-secondary) 0%, var(--playvistahq-bg) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.playvistahq_form-group { margin-bottom: 20px; }
.playvistahq_form label { display: block; margin-bottom: 8px; color: var(--playvistahq-text-dim); }
.playvistahq_form input, .playvistahq_form textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--playvistahq-bg);
    border: 1px solid var(--playvistahq-secondary);
    color: var(--playvistahq-text);
    border-radius: 4px;
}
.playvistahq_form input:focus, .playvistahq_form textarea:focus {
    outline: none;
    border-color: var(--playvistahq-primary);
}

.playvistahq_legal-grid { display: flex; gap: 40px; }
.playvistahq_legal-sidebar { flex: 0 0 250px; }
.playvistahq_legal-toc {
    list-style: none;
    position: sticky;
    top: 100px;
    background: var(--playvistahq-surface);
    padding: 20px;
    border-radius: var(--playvistahq-radius);
}
.playvistahq_legal-toc li { margin-bottom: 10px; }
.playvistahq_legal-toc a { color: var(--playvistahq-text-dim); font-size: 0.9rem; }
.playvistahq_legal-toc a:hover { color: var(--playvistahq-primary); }
.playvistahq_legal-body { flex: 1; }
.playvistahq_legal-body h2 { margin-top: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }

.playvistahq_game-module {
    background-color: var(--playvistahq-bg);
    border: 2px solid var(--playvistahq-secondary);
    border-radius: var(--playvistahq-radius);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.playvistahq_slot-machine {
    background: #000;
    padding: 20px;
    border-radius: 10px;
    border: 4px solid #8b6b22;
    position: relative;
    margin-bottom: 20px;
}
.playvistahq_slot-reels {
    display: flex;
    justify-content: center;
    gap: 10px;
    background: #111;
    padding: 10px;
    border-radius: 5px;
}
.playvistahq_slot-reel {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}
.playvistahq_slot-symbol-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}
.playvistahq_payline {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    height: 4px;
    background: rgba(45, 107, 255, 0.7);
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(45, 107, 255, 0.9);
    z-index: 2;
    pointer-events: none;
}
.playvistahq_wheel-machine {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
}
.playvistahq_wheel-board-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.playvistahq_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(--playvistahq-accent);
    z-index: 10;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
}

.playvistahq_game-controls {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    background: var(--playvistahq-surface);
    padding: 15px;
    border-radius: 8px;
}
.playvistahq_bet-selector {
    flex: 1;
}
.playvistahq_bet-selector label {
    display: block;
    font-size: 0.85rem;
    color: var(--playvistahq-text-dim);
    margin-bottom: 5px;
}
.playvistahq_select {
    width: 100%;
    padding: 10px;
    background: var(--playvistahq-bg);
    border: 1px solid var(--playvistahq-primary);
    color: #fff;
    border-radius: 4px;
}
.playvistahq_game-status {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    min-height: 50px;
}
.playvistahq_game-balance-mirror, .playvistahq_game-history {
    text-align: center;
    font-size: 0.9rem;
    color: var(--playvistahq-text-dim);
    margin-top: 10px;
}

.playvistahq_lobby-layout-featured-split {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 40px 20px;
}
.playvistahq_lobby-featured {
    flex: 2;
}
.playvistahq_lobby-featured .playvistahq_slot-reel {
    width: 140px;
    height: 140px;
}
.playvistahq_lobby-featured .playvistahq_slot-symbol-img {
    width: 110px;
    height: 110px;
}
.playvistahq_lobby-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.playvistahq_shop-kiosk {
    background: linear-gradient(135deg, #1E3A8A 0%, #0A1022 100%);
    border: 2px solid var(--playvistahq-accent);
    padding: 20px;
    border-radius: var(--playvistahq-radius);
    text-align: center;
}

.playvistahq_footer {
    background-color: var(--playvistahq-bg);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 60px 0 20px;
    font-size: 0.9rem;
}
.playvistahq_footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}
.playvistahq_footer-title {
    font-size: 1.1rem;
    color: var(--playvistahq-text);
    margin-bottom: 15px;
}
.playvistahq_footer-links {
    list-style: none;
}
.playvistahq_footer-links li { margin-bottom: 8px; }
.playvistahq_partner-logos {
    display: flex;
    gap: 15px;
    align-items: center;
}
.playvistahq_partner-link {
    display: inline-block;
    background: #fff;
    padding: 5px;
    border-radius: 4px;
}
.playvistahq_partner-dark-bg {
    background: #222;
}
.playvistahq_partner-link img {
    height: 30px;
    width: auto;
    display: block;
}
.playvistahq_footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: var(--playvistahq-text-dim);
    font-size: 0.8rem;
    position: relative;
}
.playvistahq_easter-egg {
    position: absolute;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    cursor: pointer;
    transition: opacity 0.3s;
}
.playvistahq_easter-egg:hover { opacity: 1; }

.playvistahq_modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.playvistahq_modal.is-open { display: flex; }
.playvistahq_modal-content {
    background: var(--playvistahq-surface);
    padding: 40px;
    border-radius: var(--playvistahq-radius);
    width: 100%;
    max-width: 500px;
    position: relative;
    border: 1px solid var(--playvistahq-primary);
}
.playvistahq_modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--playvistahq-text-dim);
    font-size: 1.5rem;
    cursor: pointer;
}
.playvistahq_shop-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.playvistahq_toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--playvistahq-primary);
    color: #fff;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transform: translateY(150%);
    transition: transform 0.3s ease;
    z-index: 2000;
    font-weight: bold;
}
.playvistahq_toast.show { transform: translateY(0); }

@media (max-width: 1024px) {
    .playvistahq_ranks-grid, .playvistahq_winner-grid, .playvistahq_pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .playvistahq_footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .playvistahq_lobby-layout-featured-split {
        flex-direction: column;
    }
    .playvistahq_lobby-side {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .playvistahq_nav-toggle { display: block; }
    .playvistahq_nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--playvistahq-secondary);
        border-bottom: 2px solid var(--playvistahq-accent);
    }
    .playvistahq_nav.is-open { display: block; }
    .playvistahq_nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    .playvistahq_header-actions {
        display: none;
    }
    .playvistahq_hero-content {
        flex-direction: column;
        text-align: center;
    }
    .playvistahq_hero-text .playvistahq_h1 { font-size: 2.5rem; }
    .playvistahq_split-layout, .playvistahq_faq-rail-layout, .playvistahq_legal-grid {
        flex-direction: column;
    }
    .playvistahq_ranks-grid, .playvistahq_winner-grid, .playvistahq_pillars-grid {
        grid-template-columns: 1fr;
    }
    .playvistahq_footer-grid {
        grid-template-columns: 1fr;
    }
    .playvistahq_legal-sidebar {
        display: none;
    }
    .playvistahq_game-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .playvistahq_slot-reel {
        width: 70px;
        height: 70px;
    }
    .playvistahq_slot-symbol-img {
        width: 50px;
        height: 50px;
    }
    .playvistahq_lobby-featured .playvistahq_slot-reel {
        width: 80px;
        height: 80px;
    }
    .playvistahq_lobby-featured .playvistahq_slot-symbol-img {
        width: 60px;
        height: 60px;
    }
    .playvistahq_wheel-machine {
        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;
}
