/* ══════════════════════════════════════════════════════════════════════════════
   WINPLAY PREMIER LEAGUE (WPL) - PREMIUM GAME UI
   ══════════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Barlow+Condensed:ital,wght@0,700;0,800;1,700&display=swap');

:root {
    /* ── Core Colors (SaaS/Modern Vibe) ── */
    --wpl-bg: #f4f4f9;
    --wpl-surface: rgba(255, 255, 255, 0.85);
    --wpl-surface-alt: rgba(255, 255, 255, 0.95);
    --wpl-border: rgba(255, 255, 255, 0.4);
    --wpl-border-glow: rgba(245, 158, 11, 0.5);

    /* ── Text ── */
    --wpl-text: #0f172a;
    --wpl-text-muted: #64748b;
    --wpl-text-darker: #020617;

    /* ── Brand ── */
    --wpl-primary: #f59e0b;
    --wpl-primary-glow: #fbbf24;
    --wpl-accent: #f59e0b;
    --wpl-success: #10b981;
    --wpl-danger: #ef4444;

    /* ── Solid fills (no gradients) ── */
    --wpl-grad-main: var(--wpl-primary);
    --wpl-grad-dark: #0f172a;
    --wpl-grad-glass: rgba(255, 255, 255, 0.7);

    /* ── Effects ── */
    --wpl-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
    --wpl-shadow-glow: 0 0 20px rgba(245, 158, 11, 0.4);
    --wpl-radius-lg: 0;
    --wpl-radius-md: 0;
    --wpl-radius-sm: 0;

    /* ── Fonts ── */
    --wpl-font: 'Outfit', sans-serif;
    --wpl-heading: 'Barlow Condensed', sans-serif;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BASE & LAYOUT
   ───────────────────────────────────────────────────────────────────────────── */

.wpl-game-container {
    max-width: 100%;
    margin: 0;
    font-family: var(--wpl-font);
    color: var(--wpl-text);
    background: transparent;
    position: relative;
    padding: 0;
}

.wpl-game-container::before {
    display: none;
}

/* ── Content Wrapper ── */
.wpl-screen {
    display: none;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.wpl-screen.active {
    display: block;
}

/* Selection screen: break out of any WP container to span full viewport */
#wpl-screen-selection {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 2rem 3rem;
    background: #f0f0f0;
    box-sizing: border-box;
}

/* ── Typography ── */
.wpl-logo {
    font-family: var(--wpl-heading);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--wpl-text-darker);
}

.wpl-logo span {
    color: var(--wpl-accent);
}

.wpl-selection-title {
    font-family: var(--wpl-heading);
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--wpl-text-darker);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.wpl-selection-title span {
    color: var(--wpl-primary);
}

/* ── WPL HUB STYLES ── */
.wpl-hub-header {
    text-align: center;
    padding: 3rem 0;
    background: #0f172a;
    color: white;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.wpl-hub-title {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: -0.03em;
    color: #fff;
}

.wpl-hub-subtitle {
    font-size: 1.25rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.wpl-section-title-alt {
    font-family: var(--wpl-heading);
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin: 4rem 0 2rem;
    text-transform: uppercase;
    color: var(--wpl-text-darker);
}

.wpl-hiw-carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 0 60px;
    box-sizing: border-box;
}

.wpl-hiw-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding: 15px 0;
}

.wpl-hiw-carousel::-webkit-scrollbar {
    display: none;
}

.wpl-hiw-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    box-sizing: border-box;
}

.wpl-hiw-slide-content {
    background: #ffffff;
    padding: 3.5rem 3rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wpl-hiw-slide-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.12);
}

.wpl-hiw-step-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #fef3c7;
    color: #d97706;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.wpl-hiw-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wpl-hiw-slide-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--wpl-text-darker);
}

.wpl-hiw-slide-content p {
    color: var(--wpl-text-muted);
    line-height: 1.6;
    font-size: 1.05rem;
    margin: 0;
}

.wpl-hiw-arrow {
    position: absolute;
    top: calc(50% - 24px);
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.wpl-hiw-arrow svg {
    width: 22px;
    height: 22px;
}

.wpl-hiw-arrow:hover {
    background: var(--wpl-primary);
    color: #ffffff;
    border-color: var(--wpl-primary);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.wpl-hiw-prev {
    left: 0;
}

.wpl-hiw-next {
    right: 0;
}

@media (max-width: 640px) {
    .wpl-hiw-carousel-container {
        padding: 0 35px;
    }
    .wpl-hiw-arrow {
        width: 36px;
        height: 36px;
        top: calc(50% - 18px);
    }
    .wpl-hiw-arrow svg {
        width: 16px;
        height: 16px;
    }
    .wpl-hiw-slide-content {
        padding: 2.5rem 1.25rem;
    }
}

.wpl-prize-pools {
    max-width: 1000px;
    margin: 0 auto 5rem;
}

.wpl-pools-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.wpl-pool-card {
    background: white;
    padding: 3rem;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.wpl-pool-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--wpl-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.wpl-pool-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.wpl-pool-card p {
    color: var(--wpl-text-muted);
    font-size: 1.1rem;
}

.wpl-prize-carousel {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    margin: 20px 0 10px;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.wpl-prize-carousel::-webkit-scrollbar {
    display: none;
}

.wpl-carousel-slide {
    flex: 0 0 90%;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    background: #f4f4f4;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpl-carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Dots Styling */
.wpl-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.wpl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.wpl-dot.active {
    background: var(--wpl-primary);
    width: 24px;
    border-radius: 4px;
}

@media (min-width: 768px) {
    .wpl-carousel-slide {
        flex: 0 0 100%;
    }
}

.wpl-disclaimer {
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 1.5rem 2rem;
    color: #92400e;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 768px) {
    .wpl-hub-title {
        font-size: 2rem;
    }

    .wpl-hiw-grid,
    .wpl-pools-container {
        grid-template-columns: 1fr;
    }

    .wpl-hub-header {
        padding: 2rem 1rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   SELECTION SCREEN — BLOG-STYLE CONTEST CARDS
   ───────────────────────────────────────────────────────────────────────────── */

.wpl-contest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.wpl-no-contests {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--wpl-text-muted);
}

.wpl-no-contests h3 {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
    color: var(--wpl-text);
}

.wpl-contest-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--wpl-radius-md);
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.wpl-contest-card:hover {
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.12);
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.25);
}

/* ── Played / Completed contests ── */
.wpl-contest-card.wpl-played {
    filter: grayscale(100%);
    opacity: 0.6;
}

.wpl-contest-card.wpl-played:hover {
    filter: grayscale(70%);
    opacity: 0.8;
}

.wpl-played-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #374151;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: var(--wpl-font);
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    z-index: 2;
}

.wpl-card-banner {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 24px;
}

.wpl-card-banner img {
    max-width: 180px;
    max-height: 160px;
    object-fit: contain;
}

.wpl-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 18px 12px;
}

.wpl-card-title {
    font-family: var(--wpl-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--wpl-text-darker);
    margin: 0 0 10px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpl-card-meta {
    font-size: 0.85rem;
    color: var(--wpl-text-muted);
    margin: 2px 0;
    line-height: 1.5;
}

.wpl-card-desc {
    font-size: 0.85rem;
    color: var(--wpl-text-muted);
    margin: 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wpl-card-meta strong {
    color: var(--wpl-text);
    font-weight: 600;
}

.wpl-card-prize {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-top: 8px;
}

.wpl-btn-card-enter {
    display: block;
    text-align: center;
    background: var(--wpl-primary);
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.wpl-contest-card:hover .wpl-btn-card-enter {
    background: var(--wpl-primary-glow);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.wpl-contest-card.wpl-played .wpl-btn-card-enter {
    background: #6b7280;
}



/* ─────────────────────────────────────────────────────────────────────────────
   GAME HEADER
   ───────────────────────────────────────────────────────────────────────────── */

.wpl-game-header {
    background: var(--wpl-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--wpl-border);
    border-radius: var(--wpl-radius-lg);
    padding: 1.5rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--wpl-shadow-lg);
}

.wpl-timer-wrap {
    width: 64px;
    height: 64px;
    position: relative;
    flex-shrink: 0;
}

.wpl-timer-ring {
    transform: rotate(-90deg);
}

.wpl-timer-bg {
    fill: none;
    stroke: #f3f4f6;
    stroke-width: 4;
}

.wpl-timer-progress {
    fill: none;
    stroke: var(--wpl-accent);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s;
}

.wpl-timer-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--wpl-text-darker);
}

.wpl-score-info {
    flex-grow: 1;
}

.wpl-score-info span {
    font-size: 0.85rem;
    color: var(--wpl-text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.wpl-score-info strong {
    font-size: 1.4rem;
    display: block;
    color: var(--wpl-text-darker);
}

.wpl-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #f3f4f6;
}

.wpl-progress-fill {
    height: 100%;
    background: var(--wpl-accent);
    width: 0%;
    transition: width 0.5s ease;
}

/* ─────────────────────────────────────────────────────────────────────────────
   QUESTION INTERFACE
   ───────────────────────────────────────────────────────────────────────────── */

.wpl-question-card {
    background: var(--wpl-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--wpl-border);
    border-radius: var(--wpl-radius-lg);
    padding: 40px;
    text-align: center;
    box-shadow: var(--wpl-shadow-lg);
    margin-bottom: 30px;
}

.wpl-q-image {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    margin-bottom: 24px;
    border-radius: 8px;
}

.wpl-q-text {
    font-family: var(--wpl-heading);
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--wpl-text-darker);
    line-height: 1.2;
    margin-bottom: 30px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal;
}

@media (max-width: 600px) {
    .wpl-q-text {
        font-size: 1.4rem;
    }
}

/* ── Options ── */
.wpl-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wpl-option {
    background: var(--wpl-surface-alt);
    border: 2px solid transparent;
    border-radius: var(--wpl-radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    color: var(--wpl-text-darker);
    font-family: var(--wpl-font);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 600px) {
    .wpl-options {
        grid-template-columns: 1fr;
    }
}

.wpl-option:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    background: #ffffff;
}

.wpl-option.selected {
    border-color: var(--wpl-primary);
    background: #ffffff;
    box-shadow: var(--wpl-shadow-glow);
    transform: scale(1.02);
}

.wpl-option.selected .wpl-opt-letter {
    background: var(--wpl-primary);
    color: #ffffff;
}

.wpl-opt-letter {
    width: 28px;
    height: 28px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.wpl-option.correct {
    background: #ecfdf5 !important;
    border-color: #10b981 !important;
    color: #10b981 !important;
}

.wpl-option.wrong {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   LOBBY HEADER
   ───────────────────────────────────────────────────────────────────────────── */

.wpl-lobby-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.wpl-contest-tag {
    font-family: var(--wpl-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--wpl-text-darker);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.wpl-partner-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--wpl-text-muted);
    margin: 0 0 20px;
    font-weight: 600;
}

.wpl-sponsor-logo-large {
    max-width: 240px;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 24px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

.wpl-sponsor-name {
    font-size: 1.5rem;
    color: var(--wpl-text-darker);
}

.wpl-prize-stack {
    margin-top: 20px;
}

.wpl-prize-main {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--wpl-text-darker);
    margin: 0;
}

.wpl-prize-sub {
    font-family: var(--wpl-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--wpl-primary);
    margin: 8px 0 0;
    text-transform: uppercase;
    line-height: 1;
}

/* ─────────────────────────────────────────────────────────────────────────────
   LOBBY, RULES & SPONSORS
   ───────────────────────────────────────────────────────────────────────────── */

.wpl-lobby-row {
    display: flex;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
}

.wpl-lobby-row>.wpl-sponsor-banner,
.wpl-lobby-row>.wpl-rules {
    flex: 1;
    margin-bottom: 0;
}

.wpl-rules,
.wpl-sponsor-banner,
.wpl-result-card,
.wpl-ad-modal {
    background: #ffffff;
    border: 1px solid var(--wpl-border);
    border-radius: 0;
    padding: 48px;
    margin-bottom: 24px;
    box-shadow: var(--wpl-shadow-lg);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wpl-rules h3 {
    margin: 0 0 2rem 0;
    font-family: var(--wpl-heading);
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--wpl-text-darker);
}

.wpl-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 18px;
}

.wpl-lobby-header-desc {
    font-size: 1.2rem;
    color: var(--wpl-text-muted);
    margin-top: 10px;
    font-style: italic;
    opacity: 0.9;
}

.wpl-lobby-desc {
    margin: 1.5rem 0;
    line-height: 1.6;
    color: var(--wpl-text-muted);
    font-size: 1.05rem;
}

.wpl-rules li {
    display: flex;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--wpl-text-muted);
}

/* ─────────────────────────────────────────────────────────────────────────────
   AD & MODALS
   ───────────────────────────────────────────────────────────────────────────── */

.wpl-ad-header h2 {
    font-family: var(--wpl-heading);
    font-size: 2rem;
    color: var(--wpl-accent);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.wpl-rewarded-placeholder {
    height: 180px;
    background: #f9fafb;
    border: 1px dashed var(--wpl-border);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESULT SCREEN
   ───────────────────────────────────────────────────────────────────────────── */

.wpl-result-card {
    text-align: center;
}

.wpl-result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.wpl-score-breakdown {
    background: #f9fafb;
    padding: 24px;
    margin: 24px 0;
    border-radius: 0;
}

.wpl-score-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--wpl-border);
    color: var(--wpl-text-muted);
}

.wpl-total-row {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--wpl-text-darker);
    padding-top: 15px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────────────────────────────────────── */

.wpl-btn {
    font-family: var(--wpl-font);
    font-weight: 700;
    padding: 16px;
    font-size: 1rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.wpl-btn-primary {
    background: var(--wpl-primary);
    color: white;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.25);
    font-size: 1.1rem;
    padding: 16px;
}

.wpl-btn-primary:hover {
    background: var(--wpl-primary-glow);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

/* Explicit style for submit answer block */
#wpl-btn-submit {
    margin-top: 24px;
    width: 100%;
}

.wpl-btn-ghost {
    background: #f3f4f6;
    color: #374151;
    margin-top: 1rem;
    text-decoration: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   LOADING & SPINNER
   ───────────────────────────────────────────────────────────────────────────── */

.wpl-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.wpl-loading.hidden {
    display: none;
}

.wpl-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--wpl-primary);
    border-radius: 50%;
    animation: wpl-spin 0.8s linear infinite;
}

@keyframes wpl-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .wpl-contest-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .wpl-game-container {
        margin: 20px 15px;
    }

    .wpl-options {
        grid-template-columns: 1fr;
    }

    .wpl-contest-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
    }

    .wpl-lobby-row {
        flex-direction: column;
    }

    .wpl-contest-tag {
        font-size: 1.4rem;
    }

    .wpl-q-text {
        font-size: 1.3rem;
    }
}

/* ── Ad Placements (Section 6) ── */
.wpl-ad-container {
    margin: 100px 0;
    /* Enforce 100px buffer as per Section 6.1.3 */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.wpl-ad-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--wpl-text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.wpl-ad-placeholder {
    background: #e2e8f0;
    border: 2px dashed #cbd5e1;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 8px;
}

.wpl-ad-slot-a .wpl-ad-placeholder {
    width: 320px;
    height: 50px;
}

.wpl-ad-slot-c .wpl-ad-placeholder {
    width: 300px;
    height: 250px;
}

@media (max-width: 768px) {
    .wpl-ad-container {
        margin: 60px 0;
        /* Reduced but still significant buffer for mobile */
    }
}

/* ── Feedback Animations ── */
.wpl-score-float {
    position: fixed;
    color: var(--wpl-success);
    font-weight: 800;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 9999;
    animation: wplFloatUp 1s ease-out forwards;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes wplFloatUp {
    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }

    20% {
        transform: translate(-50%, -20px);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -80px);
        opacity: 0;
    }
}