/* Homepage styles for index.php */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--page-bg);
    min-height: 100vh;
    padding: 0;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Animated background particles */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--neon-green);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
    opacity: 0.18;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@media (prefers-reduced-motion: reduce) {
    .particle {
        animation: none;
    }
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 20px 40px;
    position: relative;
    z-index: 1;
}

/* Header Styles — open page title, not a content card */
.header {
    text-align: center;
    padding: 28px 12px 22px;
    margin-bottom: 28px;
    position: relative;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.7), transparent);
    border-radius: 999px;
}

.header h1 {
    font-size: 3.4rem;
    font-weight: 900;
    background: linear-gradient(103deg, #f9e29c 0%, #d4af37 35%, #a67c00 72%, #c6a34f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.header-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.date-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 50px;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Stats Dashboard */
.stats-dashboard {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    background:
        radial-gradient(circle at top center, rgba(249, 226, 156, 0.08), transparent 45%),
        linear-gradient(180deg, rgba(24, 24, 27, 0.96), rgba(8, 8, 8, 0.96));
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 24px;
    padding: 28px;
    backdrop-filter: blur(20px);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
}

.stat-box {
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Game Results Timeline */
.results-section {
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.94), rgba(10, 10, 10, 0.94));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px 20px;
    margin-bottom: 40px;
    backdrop-filter: blur(20px);
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.28);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 30px;
    background: linear-gradient(180deg, #f9e29c, #d4af37, #a67c00);
    border-radius: 2px;
}

.result-date-label {
    font-weight: 500;
    color: var(--text-secondary, rgba(148, 163, 184, 0.9));
}

.content-intro {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 22px;
    max-width: 720px;
}
.tips-section {
    background: linear-gradient(180deg, rgba(190, 18, 60, 0.16), rgba(9, 12, 20, 0.92));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 40px;
}
.tips-section h3 { font-size: 1.35rem; margin-bottom: 16px; color: var(--neon-green); }
.tips-section ul { margin: 0 0 12px 20px; color: var(--text-secondary); line-height: 1.7; }
.tips-section p { color: var(--text-secondary); margin-bottom: 12px; font-size: 0.98rem; line-height: 1.65; }
.faq-copy details + details { margin-top: 10px; }
.faq-copy summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.faq-copy details p { margin-bottom: 0; }

.games-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: none;
}

/* Month Chart (pivot table) */
.month-chart-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.month-chart-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(190, 18, 60, 0.24);
    color: var(--neon-green);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.month-chart-nav-btn:hover:not(.disabled) {
    border-color: var(--neon-green);
    background: rgba(212, 175, 55, 0.12);
}
.month-chart-nav-btn.disabled {
    opacity: 0.35;
    pointer-events: none;
    color: var(--text-secondary);
}
.month-chart-select {
    min-width: 160px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(12, 12, 12, 0.92);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}
.month-chart-select:focus {
    border-color: var(--neon-green);
}
.month-chart-game-filters {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: rgba(15, 15, 15, 0.75);
}
.month-chart-game-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.month-chart-game-filters-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}
.month-chart-filter-actions {
    display: flex;
    gap: 8px;
}
.month-chart-filter-action {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(190, 18, 60, 0.18);
    color: var(--neon-green);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.month-chart-filter-action:hover {
    border-color: var(--neon-green);
    background: rgba(212, 175, 55, 0.1);
}
.month-chart-game-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.month-chart-game-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 7px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(190, 18, 60, 0.12);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.month-chart-game-chip input {
    accent-color: var(--neon-green);
    cursor: pointer;
}
.month-chart-game-chip.active {
    border-color: var(--neon-green);
    background: rgba(212, 175, 55, 0.12);
    color: var(--neon-green);
}
.month-bucket-chart {
    margin: 0 0 20px;
    padding: 18px 16px 14px;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.9), rgba(8, 8, 10, 0.95));
}
.month-bucket-chart-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 14px;
}
.month-bucket-chart-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--neon-green);
    letter-spacing: 0.3px;
}
.month-bucket-chart-meta {
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.month-bucket-bars {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    min-height: 140px;
}
.month-bucket-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.month-bucket-bar-track {
    width: 100%;
    max-width: 56px;
    height: 110px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 10px 10px 4px 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.month-bucket-bar-fill {
    width: 100%;
    height: 0%;
    border-radius: 8px 8px 2px 2px;
    background: linear-gradient(180deg, #f9e29c, #d4af37 55%, #a67c00);
    transition: height 0.35s ease;
    min-height: 0;
}
.month-bucket-bar-item:nth-child(2) .month-bucket-bar-fill {
    background: linear-gradient(180deg, #fda4af, #e11d48 55%, #9f1239);
}
.month-bucket-bar-item:nth-child(3) .month-bucket-bar-fill {
    background: linear-gradient(180deg, #93c5fd, #3b82f6 55%, #1d4ed8);
}
.month-bucket-bar-item:nth-child(4) .month-bucket-bar-fill {
    background: linear-gradient(180deg, #86efac, #22c55e 55%, #15803d);
}
.month-bucket-bar-count {
    font-family: 'Courier New', monospace;
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1;
}
.month-bucket-bar-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
}
.month-bucket-bar-pct {
    font-size: 0.72rem;
    color: var(--text-secondary);
}
@media (max-width: 520px) {
    .month-bucket-bars {
        gap: 8px;
        min-height: 120px;
    }
    .month-bucket-bar-track {
        height: 90px;
        max-width: 44px;
    }
    .month-bucket-bar-label {
        font-size: 0.7rem;
    }
}
.month-chart-section .month-chart-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(12, 12, 12, 0.92);
}
.month-chart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.month-chart-table caption {
    caption-side: bottom;
    text-align: left;
    padding: 10px 12px 12px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}
.month-chart-table th,
.month-chart-table td {
    padding: 8px 10px;
    text-align: center;
    border: 1px solid var(--border-color);
}
.month-chart-table th {
    /*background: rgba(190, 18, 60, 0.4);*/
    color: var(--neon-green);
    font-weight: 700;
    white-space: nowrap;
}
.month-chart-table .col-date {
    min-width: 76px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}
/* Sticky first column (DATE) on horizontal scroll */
.month-chart-table thead th.col-date {
    position: sticky;
    left: 0;
    z-index: 4;
    background: black;
    color: var(--neon-green);
    box-shadow: 10px 0 14px rgba(0, 0, 0, 0.32);
    background-clip: padding-box;
}
.month-chart-table tbody th.col-date {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #0c0c0c;
    box-shadow: 10px 0 14px rgba(0, 0, 0, 0.28);
    background-clip: padding-box;
}
.month-chart-table tbody tr:nth-child(even) th.col-date {
    background: #181014;
}
.month-chart-table tbody tr:hover th.col-date {
    background: #24190b;
}
.month-chart-table tbody tr:nth-child(even):hover th.col-date {
    background: #24190b;
}
.month-chart-table tbody tr:nth-child(even) {
    background: rgba(190, 18, 60, 0.1);
}
.month-chart-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.06);
}
.month-chart-table td:first-child {
    font-weight: 600;
}

.game-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) auto 108px;
    align-items: center;
    gap: 12px 16px;
    width: 100%;
    padding: 14px 16px;
    background: radial-gradient(141.42% 141.42% at 100% 100%, #18181b 40%, #000000);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-row:hover {
    background: radial-gradient(141.42% 141.42% at 100% 100%, #222228 40%, #050505);
    border-color: rgba(212, 175, 55, 0.45);
}

body.home-glass .game-row:hover {
    transform: none;
}

.game-time {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.game-time-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-name-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.game-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.15;
}

.game-meta-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
}

.game-meta-inline .reactions--compact {
    flex-shrink: 0;
}

.game-meta-inline .result-prev {
    margin-left: auto;
    flex-shrink: 0;
}

.game-meta-inline .reactions--compact {
    gap: 4px;
    justify-content: flex-start;
}

.game-meta-inline .reactions--compact .reaction-btn {
    padding: 4px 7px;
    gap: 3px;
    font-size: 0.72rem;
    line-height: 1.1;
}

.game-meta-inline .reactions--compact .reaction-count {
    min-width: 14px;
    font-size: 0.7rem;
    font-weight: 800;
}

.result-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 5.5rem;
}

.result-number {
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    line-height: 1;
}

.result-number.declared {
    color: var(--neon-green);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.45);
    animation: glow 2s ease-in-out infinite alternate;
}

.result-pending {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    color: var(--neon-orange);
}

.result-prev {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.03);
    line-height: 1;
}

.result-prev-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.result-prev-number {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    font-weight: 800;
    color: #cbd5e1;
}

.result-prev.is-empty .result-prev-number {
    color: var(--text-secondary);
    font-weight: 600;
}

@keyframes glow {
    from { text-shadow: 0 0 18px rgba(212, 175, 55, 0.45); }
    to { text-shadow: 0 0 28px rgba(212, 175, 55, 0.72), 0 0 40px rgba(166, 124, 0, 0.3); }
}

.status-chip {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-declared {
    background: rgba(212, 175, 55, 0.14);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
}

.status-pending {
    background: rgba(238, 151, 40, 0.14);
    color: var(--neon-orange);
    border: 1px solid var(--neon-orange);
}

.time-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: right;
}

.time-info.declared {
    color: var(--neon-green);
}

.time-info.declared .game-row-status {
    font-weight: 700;
}

.time-info.pending {
    color: var(--neon-orange);
}
.countdown-timer {
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--neon-green);
}
.countdown-timer.countdown-expired {
    color: var(--neon-orange);
}

/* Ad Sections */
.nav-play-new {
    color: #050402 !important;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--gold-gradient-btn);
    font-weight: 800;
    transition: all 0.3s ease;
}
.nav-play-new:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}
.nav-alerts-btn {
    color: var(--neon-green);
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid var(--neon-green);
    border-radius: 999px;
}
.nav-alerts-btn:hover {
    color: #fff7e6;
}
.play-promo {
    margin: 8px 0 28px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(12, 12, 12, 0.92));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.play-promo-copy {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 220px;
}
.play-promo-badge {
    flex-shrink: 0;
    background: var(--gold-gradient-btn);
    color: #050402;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 5px 9px;
    border-radius: 999px;
}
.play-promo-copy strong {
    display: block;
    color: #f9e29c;
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.play-promo-copy span {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.45;
}
.play-promo-cta {
    display: inline-block;
    background: var(--gold-gradient-btn);
    color: #050402;
    text-decoration: none;
    font-weight: 800;
    padding: 10px 18px;
    border-radius: 999px;
    white-space: nowrap;
}
.play-promo-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}
.play-row-btn {
    display: inline-block;
    margin-top: 0;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--gold-gradient-btn);
    color: #050402 !important;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.play-row-btn:hover {
    box-shadow: 0 3px 12px rgba(212, 175, 55, 0.4);
}

.ad-section {
    margin: 40px 0;
}

.ad-disclosure {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.16);
    border: 1px solid rgba(212, 175, 55, 0.75);
    color: #f9e29c;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.ad-banner-horizontal {
    background: linear-gradient(135deg, rgba(190, 18, 60, 0.18), rgba(12, 12, 12, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.26);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ad-banner-horizontal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ad-banner-horizontal:hover {
    transform: scale(1.02);
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.ad-content {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.ad-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(103deg, #f9e29c, #d4af37 30%, #a67c00 70%, #c6a34f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: #432005;
    flex-shrink: 0;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.22);
}

.ad-text {
    flex: 1;
}

.ad-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(103deg, #f9e29c, #d4af37 30%, #a67c00 70%, #c6a34f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ad-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.ad-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ad-tag {
    padding: 4px 12px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--neon-green);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--neon-green);
    font-weight: 600;
}

.ad-cta {
    padding: 15px 35px;
    background: linear-gradient(103deg, #f9e29c, #d4af37 30%, #a67c00 70%, #c6a34f);
    border: none;
    border-radius: 999px;
    color: #000000;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.ad-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.28);
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.ad-card-modern {
    background: radial-gradient(141.42% 141.42% at 100% 100%, #18181b 40%, #000000);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ad-card-modern::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    transition: all 0.5s ease;
}

.ad-card-modern:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
}

.ad-card-modern:hover::after {
    top: -100%;
    right: -100%;
}

.ad-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.ad-card-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: linear-gradient(103deg, #f9e29c, #d4af37 30%, #a67c00 70%, #c6a34f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.3rem;
    color: #432005;
}

.ad-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ad-card-body {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.ad-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ad-bonus-badge {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--neon-green);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--neon-green);
    font-size: 1.1rem;
}

.ad-card-button {
    padding: 10px 20px;
    background: var(--neon-blue);
    border: none;
    border-radius: 999px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ad-card-button:hover {
    transform: scale(1.05);
}

/* Like / Dislike (Reactions) */
.reactions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.reaction-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--text-primary);
}

.reaction-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.reaction-count {
    font-weight: 800;
    color: var(--text-primary);
    min-width: 18px;
    text-align: right;
}

.reaction-btn.selected-like {
    border-color: rgba(212, 175, 55, 0.55);
    background: rgba(212, 175, 55, 0.10);
    color: #b9f6d5;
}

.reaction-btn.selected-dislike {
    border-color: rgba(239, 68, 68, 0.55);
    background: rgba(239, 68, 68, 0.10);
    color: #ffd1d1;
}

/* Responsive */
@media (min-width: 769px) {
    .result-today-label {
        display: none;
    }

    .result-display {
        align-items: center;
    }

    .result-number,
    .result-pending {
        text-align: center;
    }
}

@media (max-width: 1024px) {
    .game-name {
        font-size: 1.2rem;
    }

    .result-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }

    .game-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "time status"
            "name scores"
            "meta meta";
            gap: 8px 12px;
            text-align: left;
            padding: 14px 16px;
        width: 100%;
    }

    .game-name-col {
        display: contents;
    }

    .game-row:hover {
        transform: none;
    }

    .game-time {
        grid-area: time;
        font-size: 0.78rem;
    }

    .game-name {
        grid-area: name;
        font-size: 1.05rem;
        line-height: 1.2;
        letter-spacing: 0.5px;
    }

    .game-meta-inline {
        grid-area: meta;
        max-width: none;
        width: 100%;
    }

    .result-display {
        grid-area: scores;
    }

    .time-info {
        grid-area: status;
    }

    .result-display {
        align-items: flex-end;
        justify-self: end;
    }

    .result-number,
    .result-pending {
        align-self: flex-end;
    }

    .result-number {
        font-size: 2.5rem;
        text-align: right;
    }

    .result-pending {
        font-size: 1.85rem;
        text-align: right;
    }

    .time-info {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
        text-align: right;
        justify-self: end;
        font-size: 0.8rem;
    }

    .game-row-status {
        font-weight: 700;
        white-space: nowrap;
    }

    .time-info.declared .game-row-status {
        color: var(--neon-green);
    }

    .ad-banner-horizontal {
        flex-direction: column;
        text-align: center;
    }

    .play-promo {
        text-align: center;
        justify-content: center;
    }
    .play-promo-copy {
        flex-direction: column;
        align-items: center;
    }

    .ad-content {
        flex-direction: column;
    }

    .ads-grid {
        grid-template-columns: 1fr;
    }
}

:focus-visible {
    outline: 2px solid #fff7e6;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .auth-message {
        animation: none !important;
    }
}
    

.notification-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 4, 2, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.notification-popup.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-popup-content {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 32px 28px;
    max-width: 360px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease-out;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.popup-icon {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 16px;
}

.popup-title {
    font-size: 22px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 10px;
}

.popup-message {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.popup-actions {
    display: flex;
    gap: 12px;
}

.popup-btn {
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    flex: 1;
}

.popup-btn-primary {
    background: var(--gold-gradient-btn);
    color: #050402;
}

.popup-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.popup-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.popup-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

@media (max-width: 768px) {
    .notification-popup-content {
        padding: 28px 20px;
    }

    .popup-title {
        font-size: 20px;
    }

    .popup-message {
        font-size: 14px;
    }
}

/* Toast Notifications */
.notification-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(212, 175, 55, 0.2);
    z-index: 10001;
    min-width: 320px;
    max-width: 400px;
    transform: translateX(450px);
    transition: transform 0.3s ease-out;
}

.notification-toast.show {
    transform: translateX(0);
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.notification-toast-success .toast-icon {
    background: var(--gold-gradient-btn);
    color: #050402;
}

.notification-toast-error .toast-icon {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: #ffffff;
}

.toast-message {
    color: #e2e8f0;
    font-size: 15px;
    line-height: 1.5;
    flex: 1;
}

@media (max-width: 768px) {
    .notification-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        min-width: auto;
        max-width: none;
        transform: translateY(150px);
    }

    .notification-toast.show {
        transform: translateY(0);
    }

    .toast-message {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .notification-popup,
    .notification-popup-content {
        animation: none;
    }
    .notification-toast {
        transition: none;
    }
}
    

.latest-result-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: latestPopupFadeIn 0.3s ease-out;
}
.latest-result-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 4, 2, 0.95);
    backdrop-filter: blur(10px);
}
.latest-result-content {
    position: relative;
    z-index: 10001;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(190, 18, 60, 0.15));
    border: 2px solid var(--neon-green);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
    animation: latestPopupScaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.latest-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.latest-result-badge {
    background: var(--neon-green);
    color: #050402;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}
.latest-result-close {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}
.latest-result-close:hover {
    color: var(--neon-green);
}
.latest-result-game-name {
    font-size: 1.5rem;
    color: var(--neon-blue);
    font-weight: 700;
    margin-bottom: 20px;
}
.latest-result-number {
    font-size: 5rem;
    font-weight: 900;
    color: var(--neon-green);
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    margin-bottom: 15px;
    animation: latestNumberPulse 1s ease-in-out infinite;
}
.latest-result-time {
    color: var(--text-secondary);
    font-size: 1rem;
}
@keyframes latestPopupFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes latestPopupScaleIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes latestNumberPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.latest-result-popup.merging {
    animation: latestMergeToResults 1.5s ease-in-out forwards;
}
@keyframes latestMergeToResults {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.8) translateY(-100px); }
    100% { opacity: 0; transform: scale(0.3) translateY(-500px); }
}
@media (max-width: 768px) {
    .latest-result-content { padding: 30px 20px; }
    .latest-result-number { font-size: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .latest-result-popup,
    .latest-result-content,
    .latest-result-number,
    .latest-result-popup.merging {
        animation: none;
    }
}
