/* Custom properties for a high-contrast premium sweet candy harbor palette */
:root {
    --bg-base: #ffeef2; /* Creamy Strawberry milkshake pink */
    --bg-surface: #ffffff; /* Solid white background for cards to maximize text readability */
    --border-color: #ff4081; /* Saturated strawberry pink border */
    --primary: #ff4081;
    --primary-glow: rgba(255, 64, 129, 0.25);
    --accent: #00cec9;
    --accent-glow: rgba(0, 206, 201, 0.2);
    --warning: #ffa500;
    --danger: #ff4757;
    --danger-glow: rgba(255, 71, 87, 0.3);
    --text-main: #2d1a22; /* Deep chocolate brown for maximum legibility */
    --text-muted: #6b4d57; /* Saturated dark mauve */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --shadow-premium: 0 10px 25px 0 rgba(255, 64, 129, 0.15), 0 2px 6px 0 rgba(255, 64, 129, 0.08);
}

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

body {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 182, 193, 0.45) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(135, 206, 250, 0.35) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(255, 240, 245, 0.95) 0px, var(--bg-base) 100%);
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Master wrapper */
.game-wrapper {
    width: 100%;
    max-width: 1300px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header UI */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-surface);
    border: 3px solid var(--border-color);
    border-radius: 24px;
    padding: 16px 28px;
    box-shadow: 0 8px 24px rgba(255, 64, 129, 0.12);
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo .emoji {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px var(--primary-glow));
    animation: anchor-float 3s ease-in-out infinite;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ff3b7b 30%, #ff85a7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text .subtext {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.stats-container {
    display: flex;
    gap: 16px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

/* Layout Main Content */
.game-main {
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    gap: 20px;
    align-items: start;
}

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

/* High Contrast Candy Box Panels */
.glass-card {
    background: var(--bg-surface);
    border: 3px solid var(--border-color); /* Thicker border for clear distinction */
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(255, 64, 129, 0.12);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.glass-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 182, 193, 0.2);
    padding-bottom: 10px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Rules List */
.rules-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rules-list li {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.rules-list li strong {
    color: var(--text-main);
}

.rules-list .bullet {
    background: var(--primary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Scaling Architecture card */
.scaling-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(17, 25, 40, 0.75) 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

.scale-header {
    margin-bottom: 12px;
}

.scale-badge {
    background: var(--accent);
    color: #0b0f19;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 6px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.scaling-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.tech-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tech-item strong {
    color: var(--text-main);
}

/* Central Canvas Area */
.canvas-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.55), 0 0 15px rgba(139, 92, 246, 0.25);
    border: 1px solid rgba(139, 92, 246, 0.15);
    background: #180d2b;
}

#gameCanvas {
    display: block;
    cursor: pointer;
    background: radial-gradient(circle at 50% 10%, #311847 0%, #180d2b 85%);
    touch-action: none; /* Prevents touch gestures from blocking taps */
    max-width: 100%;
    height: auto;
}

/* Overlay & Modals */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.overlay.hidden {
    display: none;
    pointer-events: none;
    opacity: 0;
}

.overlay-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-premium);
    animation: modal-enter 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.overlay-card h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.overlay-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.win-card {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.2);
}

.win-card h2 {
    color: var(--accent);
}

.win-card .trophy {
    font-size: 4rem;
    display: block;
    margin-bottom: 16px;
    animation: trophy-bounce 1s ease infinite alternate;
}

.gameover-card {
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.2);
}

.gameover-card h2 {
    color: var(--danger);
}

.gameover-card .skull {
    font-size: 4rem;
    display: block;
    margin-bottom: 16px;
    animation: pulse-glow 1.5s infinite alternate;
}

.overlay-stats {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.overlay-stats strong {
    color: var(--accent);
    font-weight: 800;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.primary-btn {
    background: var(--accent);
    color: #0b0f19;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.primary-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.danger-btn {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 14px var(--danger-glow);
}

.danger-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--danger-glow);
}

/* Boosters Container */
.boosters-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.booster-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    width: 100%;
}

.booster-btn:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.booster-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.b-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.booster-btn:hover:not(:disabled) .b-icon {
    background: var(--primary);
    color: white;
}

.b-text {
    display: flex;
    flex-direction: column;
}

.b-text strong {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 2px;
}

.b-text span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Audio Controller Card */
.audio-control {
    margin-top: 10px;
}

.sound-toggle-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.sound-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.sound-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.audio-tip {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
    text-align: center;
    margin-top: 6px;
    line-height: 1.3;
}

/* Footer Section */
.game-footer {
    text-align: center;
    padding: 10px 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.5px;
}

/* Keyframe Animations */
@keyframes anchor-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(-3deg); }
}

@keyframes trophy-bounce {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-8px) scale(1.05); }
}

@keyframes pulse-glow {
    0% { filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.4)); }
    100% { filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.8)); }
}

@keyframes modal-enter {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive design adjustments */
@media (max-width: 1200px) {
    .game-main {
        grid-template-columns: 1fr;
    }
    .side-panel {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .glass-card {
        flex: 1 1 300px;
    }
}

/* Gold UI and Booster pricing styles */
.gold-card {
    border-color: rgba(251, 189, 8, 0.2) !important;
    background: rgba(251, 189, 8, 0.03) !important;
}
.gold-card:hover {
    border-color: #fbbd08 !important;
    box-shadow: 0 4px 12px rgba(251, 189, 8, 0.25) !important;
}
.gold-card .stat-value {
    color: #fbbd08;
    text-shadow: 0 0 8px rgba(251, 189, 8, 0.3);
}
.price {
    color: #fbbd08;
    font-size: 0.8rem;
    font-weight: 800;
    margin-left: 4px;
}
.booster-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.01) !important;
    border-color: rgba(255, 255, 255, 0.03) !important;
}
.booster-btn:disabled .price {
    color: var(--text-muted);
}

/* Target Pattern Preview Panel styles */
.preview-canvas-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
}
#previewCanvas {
    background: #fffdf5; /* Warm creamy white chocolate */
    border: 3px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(255, 64, 129, 0.15);
    display: block;
}

/* Leaderboard Styling */
.leaderboard-container {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
.leaderboard-container::-webkit-scrollbar {
    width: 6px;
}
.leaderboard-container::-webkit-scrollbar-track {
    background: transparent;
}
.leaderboard-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}
.leaderboard-table th {
    color: var(--text-muted);
    font-weight: 600;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.leaderboard-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-main);
}
.leaderboard-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.leaderboard-table td.loading-msg {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
}
.rank-1 { color: #ffd700 !important; font-weight: 800; }
.rank-2 { color: #c0c0c0 !important; font-weight: 800; }
.rank-3 { color: #cd7f32 !important; font-weight: 800; }

/* Score Submission Form inside Game Over overlay */
.score-submit-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    width: 100%;
    max-width: 280px;
    align-items: center;
}
#player-name-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 182, 193, 0.4);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
}
#player-name-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}
#submit-score-btn {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
}
.status-msg {
    font-size: 0.8rem;
    margin-top: 4px;
    text-align: center;
}
.status-msg.success { color: var(--accent); }
.status-msg.error { color: var(--danger); }

/* User Profile Header */
.user-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 14px;
}

.user-profile-header .user-icon {
    font-size: 1.2rem;
}

.user-profile-header .user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-profile-header .username {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.user-profile-header .premium-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: #ffd700;
    background: linear-gradient(90deg, rgba(255,215,0,0.1) 0%, rgba(255,215,0,0.2) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 1px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    display: inline-block;
}

.user-profile-header .btn-logout {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.user-profile-header .btn-logout:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* Authentication Modal Overlay Customizations */
.auth-card {
    max-width: 420px;
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.2);
}

.auth-logo-emoji {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 12px;
    animation: anchor-float 4s ease-in-out infinite;
}

.input-group {
    text-align: left;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 182, 193, 0.4);
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.danger-msg {
    color: var(--danger);
    font-weight: 600;
}

.auth-toggle {
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-toggle a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.auth-toggle a:hover {
    color: #818cf8;
    text-decoration: underline;
}

/* Premium & Ads Card Buttons */
.premium-btn-gold {
    border-color: rgba(255, 215, 0, 0.2) !important;
}
.premium-btn-gold:hover {
    background: rgba(255, 215, 0, 0.08) !important;
    border-color: #ffd700 !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2) !important;
}
.premium-btn-gold:hover .b-icon {
    background: #ffd700 !important;
    color: #0b0f19 !important;
}

.ad-btn-blue {
    border-color: rgba(59, 130, 246, 0.2) !important;
}
.ad-btn-blue:hover {
    background: rgba(59, 130, 246, 0.08) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2) !important;
}
.ad-btn-blue:hover .b-icon {
    background: #3b82f6 !important;
    color: white !important;
}
.reward-tag {
    color: #fbbd08;
    font-weight: 800;
}

/* Cosmetic Marketplace Styles */
.marketplace-scroll {
    max-height: 250px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
    padding-right: 4px;
}
.marketplace-scroll::-webkit-scrollbar {
    width: 5px;
}
.marketplace-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.marketplace-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.market-loading {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 16px 0;
}

.market-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.market-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.market-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.market-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.market-item-price {
    font-size: 0.75rem;
    color: #fbbd08;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
}

.market-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.market-btn.buy {
    background: var(--accent);
    color: #0b0f19;
}
.market-btn.buy:hover {
    background: #059669;
}

.market-btn.equip {
    background: rgba(255, 102, 163, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}
.market-btn.equip:hover {
    background: var(--primary);
}

.market-btn.equipped {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    cursor: default;
}

/* Simulated Video Ad Overlay Customizations */
.ad-card {
    max-width: 480px;
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.25);
    padding: 30px;
}

.ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.ad-tag {
    font-size: 0.7rem;
    font-weight: 800;
    color: #3b82f6;
    letter-spacing: 1.5px;
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.ad-countdown {
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.ad-video-mock {
    background: radial-gradient(circle at 50% 50%, #172554 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.ad-play-icon {
    font-size: 3rem;
    animation: pulse-glow 1s infinite alternate;
}

.ad-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0 !important;
}

.ad-desc {
    font-size: 0.82rem !important;
    color: var(--text-muted);
    margin-bottom: 12px !important;
}

.ad-progress-bar {
    width: 80%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.ad-progress-fill {
    width: 0%;
    height: 100%;
    background: #3b82f6;
    transition: width 0.1s linear;
}

.ad-footer-text {
    font-size: 0.75rem !important;
    color: var(--text-muted);
    margin-bottom: 0 !important;
}

/* Full-Screen Overlay Overrides for Auth and Ad screens */
#auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: rgba(11, 15, 25, 0.9);
}

#ad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9998;
    background: rgba(11, 15, 25, 0.95);
}

.guest-btn {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-muted);
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 15px;
}
.guest-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-main);
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

