:root {
    --bg-color: #0d0d12;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-primary: #00f0ff;
    --accent-secondary: #7000ff;
    --accent-glow: rgba(0, 240, 255, 0.4);
    --danger: #ff0055;

    --font-main: 'Outfit', sans-serif;

    --transition-speed: 0.3s;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Animation */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(80px);
    opacity: 0.6;
}

.globe {
    position: absolute;
    border-radius: 50%;
    animation: float 10s infinite ease-in-out alternate;
}

.globe-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    top: -100px;
    left: -100px;
    opacity: 0.4;
}

.globe-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
    opacity: 0.3;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

/* Container */
.app-container {
    width: 90%;
    max-width: 600px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.screen {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.screen.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.screen.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Typography */
h1.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.highlight {
    color: transparent;
    -webkit-text-stroke: 2px var(--accent-primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: 'Damn Near';
    position: absolute;
    top: 0;
    left: 0;
    color: var(--accent-primary);
    opacity: 0.5;
    filter: blur(5px);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 80%;
    font-weight: 300;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.5;
    margin-top: 30px;
}

/* Buttons */
button {
    cursor: pointer;
    font-family: var(--font-main);
    border: none;
    outline: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

button:active {
    transform: scale(0.95);
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1rem 3rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px -10px var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn:hover {
    box-shadow: 0 15px 40px -10px var(--accent-primary);
    transform: translateY(-2px);
}

.secondary-btn {
    background: transparent;
    border: 2px solid var(--text-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    margin-top: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.secondary-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

/* Quiz UI */
.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-primary);
    width: 0%;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--accent-primary);
    transition: width 0.4s ease;
}

.question-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 24px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.question-number {
    font-size: 0.9rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 700;
}

.question-text {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
    line-height: 1.3;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
    text-align: left;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-primary);
    transform: scaleY(0);
    transition: transform 0.2s ease;
    transform-origin: bottom;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.option-btn:hover::before {
    transform: scaleY(1);
}

/* Results UI */
.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 240, 255, 0.1), transparent);
    border: 4px solid var(--accent-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    margin: 2rem 0;
    box-shadow: 0 0 50px var(--accent-glow), inset 0 0 20px var(--accent-glow);
    text-shadow: 0 0 20px var(--accent-glow);
    position: relative;
}

.score-circle::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid var(--accent-secondary);
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

.result-heading {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.result-message {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 90%;
    margin-bottom: 1.5rem;
}

/* Ad Banners */
.ad-banner {
    width: 100%;
    max-width: 728px;
    /* Leaderboard standard */
    height: 90px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.ad-banner.bottom-ad {
    margin-top: 2rem;
    margin-bottom: 0;
}

/* Affiliate Box */
.affiliate-box {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--accent-primary);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    max-width: 100%;
    width: 100%;
}

.affiliate-box.hidden {
    display: none;
}

.affiliate-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.affiliate-link {
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid var(--accent-secondary);
    transition: all 0.2s ease;
}

.affiliate-link:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* Social Share */
.share-container {
    margin: 1.5rem 0;
    width: 100%;
}

.share-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.share-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.x-btn {
    background-color: #000;
    /* X brand color (or close to it) */
    border: 1px solid #333;
}

.fb-btn {
    background-color: #1877F2;
    /* Facebook brand color */
}

@media (max-width: 600px) {
    h1.hero-title {
        font-size: 2.5rem;
    }

    .question-card {
        padding: 1.5rem;
    }

    .question-text {
        font-size: 1.4rem;
    }
}

/* Buy Me a Coffee Button */
.bmc-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.9;
}

.bmc-button:hover {
    transform: translateY(-5px) scale(1.05);
    opacity: 1;
}

@media (max-width: 600px) {
    .bmc-button {
        bottom: 10px;
        right: 10px;
    }

    .bmc-button img {
        height: 35px !important;
        width: auto !important;
    }
}