/* site palette */
html:root {
    --bg: #F8F3ED;
    --surface: #FFFFFF;
    --surface-alt: #F6EFE8;
    --text: #1D1814;
    --text-muted: #72665A;
    --border: #E4DED8;
    --primary: #153BB6;
    --primary-hover: #113196;
    --on-primary: #FFFFFF;
    --primary-text: #153BB6;
    --accent: #1E2129;
    --on-accent: #FFFFFF;
    --accent-text: #1E2129;
    --dark-band: #1A140E;
    --on-dark: #FFFFFF;
    --on-dark-muted: #C3BDB6;
    --brand-btn-bg: #FFFFFF;
    --brand-btn-text: #1A140E;
    --section-alt-bg: linear-gradient(165deg, #E7E9EE 0%, #F1ECE6 50%, #F6EFE8 100%);
    --dark-band-bg: linear-gradient(165deg, #1A2233 0%, #161C27 50%, #1A140E 100%);
    --brand-band-bg: #153BB6;
    --hero-bg: linear-gradient(165deg, #F3F7FF 0%, #F9F2EB 50%, #F6EFE8 100%);
    --on-hero: #1D1814;
    --footer-bg: #F3EAE0;
    --on-footer: #1D1814;
    --on-footer-muted: #72665A;
}

/* /site palette */

:root {
    --bg: #F8F3ED;
    --surface: #FFFFFF;
    --surface-alt: #F6EFE8;
    --text: #1D1814;
    --text-muted: #72665A;
    --border: #E4DED8;
    --primary: #153BB6;
    --primary-hover: #113196;
    --on-primary: #FFFFFF;
    --primary-text: #153BB6;
    --accent: #1E2129;
    --on-accent: #FFFFFF;
    --accent-text: #1E2129;
    --dark-band: #1A140E;
    --on-dark: #FFFFFF;
    --on-dark-muted: #A8A8A8;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Mitr', sans-serif;
    font-weight: 400;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.text-muted {
    color: var(--text-muted) !important;
}

.vax-btn {
    background: var(--primary);
    color: var(--on-primary);
    padding: 12px 24px;
    border-radius: 2px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
}

.vax-btn:hover {
    background: var(--primary-hover);
}

.vax-btn-alt {
    border: 1px solid var(--primary-text);
    color: var(--primary-text);
    padding: 12px 24px;
    border-radius: 2px;
}

.vax-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    padding: 20px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.vax-card:hover {
    border-top-width: 8px;
    color: var(--primary);
}

.vax-media {
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 12px;
}

.vax-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vax-title {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.vax-section {
    padding: 40px 0;
}

.vax-section-dark {
    background: var(--dark-band);
    color: var(--on-dark);
}

.vax-on-dark {
    color: var(--on-dark);
}

/* site kit (fallback) */
.vax-eyebrow {
    display: inline-block;
    margin-bottom: .5rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary-text)
}

.vax-badge {
    display: inline-block;
    padding: .25em .75em;
    border-radius: 999px;
    background: var(--primary);
    color: var(--on-primary);
    font-size: .8rem;
    font-weight: 600
}

.vax-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--surface-alt);
    color: var(--primary-text);
    font-size: 1.4rem
}

.vax-section-alt {
    background: var(--section-alt-bg, var(--surface-alt));
    color: var(--text);
    padding: clamp(2.5rem, 6vw, 5rem) 0
}

.vax-section-brand {
    background: var(--brand-band-bg, var(--primary));
    color: var(--on-primary);
    padding: clamp(2.5rem, 6vw, 5rem) 0
}

.vax-section-brand h1,
.vax-section-brand h2,
.vax-section-brand h3,
.vax-section-brand h4,
.vax-section-brand p,
.vax-section-brand .vax-title,
.vax-section-brand .vax-eyebrow,
.vax-section-brand a:not(.vax-btn):not(.vax-btn-alt) {
    color: var(--on-primary)
}

.vax-section-brand .vax-btn {
    background: var(--brand-btn-bg, var(--on-primary));
    border-color: var(--brand-btn-bg, var(--on-primary));
    color: var(--brand-btn-text, var(--primary))
}

.vax-section-brand .vax-btn-alt {
    color: var(--on-primary);
    border-color: var(--on-primary)
}

.vax-section-brand .vax-card {
    background: var(--surface);
    color: var(--text)
}

.vax-section-brand .vax-card h1,
.vax-section-brand .vax-card h2,
.vax-section-brand .vax-card h3,
.vax-section-brand .vax-card h4,
.vax-section-brand .vax-card p {
    color: var(--text)
}

.vax-section-dark .vax-card,
.vax-on-dark .vax-card {
    background: var(--surface);
    color: var(--text)
}

.vax-section-dark .vax-card h1,
.vax-section-dark .vax-card h2,
.vax-section-dark .vax-card h3,
.vax-section-dark .vax-card h4,
.vax-section-dark .vax-card .vax-title,
.vax-section-dark .vax-card a:not(.vax-btn):not(.vax-btn-alt),
.vax-on-dark .vax-card h1,
.vax-on-dark .vax-card h2,
.vax-on-dark .vax-card h3,
.vax-on-dark .vax-card h4,
.vax-on-dark .vax-card .vax-title,
.vax-on-dark .vax-card a:not(.vax-btn):not(.vax-btn-alt) {
    color: var(--text)
}

.vax-section-dark .vax-card p,
.vax-section-dark .vax-card .vax-eyebrow,
.vax-on-dark .vax-card p,
.vax-on-dark .vax-card .vax-eyebrow {
    color: var(--text-muted)
}

.vax-section-dark .vax-card .vax-btn-alt,
.vax-on-dark .vax-card .vax-btn-alt {
    color: var(--primary-text);
    border-color: var(--primary)
}


/* ===== header ===== */
.vax-header a {
    font-weight: 500;
}

.vax-header a:hover {
    color: var(--primary-text);
}

#mobile-menu.active {
    display: flex;
}

/* ===== hero ===== */
.hero-container {
    position: relative;
    padding: 60px 20px;
    overflow: hidden;
    background: linear-gradient(165deg, #1A2233 0%, #161C27 50%, #1A140E 100%);
}

.hero-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 24px;
    md: font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--on-dark);
}

.hero-desc {
    font-size: 16px;
    md: font-size: 18px;
    color: var(--on-dark-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-image-frame {
    position: relative;
    border: 2px solid var(--primary);
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    aspect-ratio: 16/9;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    opacity: 0.5;
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100%);
    }
}

@media (max-width: 767px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 18px;
    }
}

/* ===== game_of_the_day ===== */
.vax-section {
    padding: 4rem 0;
}

.vax-card {
    transition: border-top-width 0.3s ease;
}

.vax-card:hover {
    border-top-width: 8px;
}

.vax-title {
    color: var(--text);
}

.vax-title a {
    color: var(--text);
}

.vax-title a:hover {
    color: var(--primary);
}

/* ===== all_games_grid ===== */
#games-grid .vax-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    padding: 0.5rem;
    text-align: center;
}

#games-grid .vax-card:hover h3 {
    color: var(--primary);
}

@media (max-width: 767px) {
    #games-grid .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== difficulty_rating ===== */
.vax-section .vax-card {
    border-top: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.vax-section .vax-card:hover {
    border-top-width: 8px;
    border-color: var(--primary);
}

.vax-section .vax-eyebrow {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.vax-section .vax-title {
    font-weight: 600;
    text-transform: uppercase;
}

/* ===== controls_and_rules ===== */
.vax-controls-rules-block .vax-card {
    transition: border-top-width 0.3s ease;
    border-top-color: var(--primary);
    box-shadow: 0 2px 4px rgba(29, 24, 20, 0.08);
    border-radius: 4px;
}

.vax-controls-rules-block .vax-card:hover {
    border-top-width: 8px;
}

.vax-controls-rules-block .vax-title {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== play_time ===== */
.play-time-block .vax-card {
    transition: border-top-width 0.3s ease, color 0.3s ease;
    box-shadow: 0 2px 4px rgba(29, 24, 20, 0.08);
    border-radius: 4px;
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
}

.play-time-block .vax-card:hover {
    border-top-width: 8px;
    color: var(--primary);
}

/* ===== poll_section ===== */
.vax-section-brand {
    background-color: var(--primary);
    color: var(--on-primary);
}

.vax-btn {
    background-color: var(--primary);
    color: var(--on-primary);
    padding: 12px 24px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.vax-btn:hover {
    background-color: var(--primary-hover);
}

.vax-card {
    border-top: 4px solid var(--primary);
    box-shadow: 0 2px 4px rgba(29, 24, 20, 0.08);
    transition: border-top-width 0.3s ease;
}

.vax-card:hover {
    border-top-width: 8px;
}

/* ===== footer ===== */
.fc-footer {
    position: relative;
    width: 100%;
    overflow-wrap: anywhere;
}

.fc-footer-links li a {
    text-decoration: none;
}

.fc-footer-link:focus-visible {
    outline: 2px solid var(--primary, #153BB6);
    outline-offset: 2px;
    border-radius: 2px;
}

@media (max-width: 767px) {
    .fc-footer .grid {
        grid-template-columns: 1fr;
    }
}

.vax-header a {
    font-weight: 500;
}

.vax-header a:hover {
    color: var(--primary-text);
}

#mobile-menu.active {
    display: flex;
}

.fc-footer {
    position: relative;
    width: 100%;
    overflow-wrap: anywhere;
}

.fc-footer-links li a {
    text-decoration: none;
}

.fc-footer-link:focus-visible {
    outline: 2px solid var(--primary, #153BB6);
    outline-offset: 2px;
    border-radius: 2px;
}

@media (max-width: 767px) {
    .fc-footer .grid {
        grid-template-columns: 1fr;
    }
}

.vax-card {
    border-radius: 4px;
    border-top: 4px solid var(--primary);
    box-shadow: 0 2px 4px rgba(29, 24, 20, 0.08);
    transition: all 0.3s ease;
}

.vax-card:hover {
    border-top-width: 8px;
    color: var(--primary);
}

#privacy-content { max-width: 100%; color: var(--text); overflow-wrap: anywhere; word-break: break-word; } #privacy-content h1 { font-size: 18px; line-height: 1.25; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text); margin-top: 0; margin-bottom: 1.25rem; hyphens: auto; } #privacy-content h2 { font-size: 16px; line-height: 1.25; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text); margin-top: 1.75rem; margin-bottom: 0.75rem; padding-left: 0.5rem; border-left: 3px solid var(--accent, var(--primary)); hyphens: auto; } #privacy-content h3 { font-size: 14px; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text); margin-top: 1.25rem; margin-bottom: 0.5rem; hyphens: auto; } #privacy-content h4 { font-size: 13px; line-height: 1.3; color: var(--text); margin-top: 1rem; margin-bottom: 0.5rem; } #privacy-content p { line-height: 1.6; color: var(--text); margin-top: 0; margin-bottom: 1rem; } #privacy-content strong { font-weight: 700; color: var(--text); } #privacy-content ul { list-style-type: disc; margin-top: 0.5rem; margin-bottom: 1rem; padding-left: 1.5rem; } #privacy-content ol { list-style-type: decimal; margin-top: 0.5rem; margin-bottom: 1rem; padding-left: 1.5rem; } #privacy-content li { line-height: 1.6; color: var(--text); margin-bottom: 0.375rem; } #privacy-content a { color: var(--primary-text); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s ease; } #privacy-content a:hover, #privacy-content a:focus { color: var(--primary-hover, var(--accent-text)); } @media (min-width: 768px) { #privacy-content h1 { font-size: 32px; margin-bottom: 1.5rem; } #privacy-content h2 { font-size: 24px; margin-top: 2.25rem; margin-bottom: 1rem; } #privacy-content h3 { font-size: 18px; margin-top: 1.75rem; margin-bottom: 0.75rem; } #privacy-content h4 { font-size: 15px; margin-top: 1.25rem; margin-bottom: 0.5rem; } #privacy-content p { line-height: 1.7; margin-bottom: 1.25rem; } #privacy-content ul, #privacy-content ol { margin-bottom: 1.25rem; padding-left: 1.75rem; } #privacy-content li { line-height: 1.7; margin-bottom: 0.5rem; } }

/* ===== PAGE: privacy ===== */
.policy-content { padding: 40px 20px; line-height: 1.6; color: var(--text); } .policy-content h1, .policy-content h2 { border-bottom: 2px solid var(--primary); padding-bottom: 8px; margin-bottom: 16px; } .policy-content p, .policy-content li { margin-bottom: 12px; } .policy-content ul { padding-left: 20px; } @media (min-width: 768px) { .policy-content { padding: 60px 40px; } }

/* ===== PAGE: terms ===== */
.policy-content { padding: 40px 20px; color: var(--text); line-height: 1.6; max-width: 800px; margin: 0 auto; } .policy-content h1 { font-size: 24px; color: var(--primary); margin-bottom: 24px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; } .policy-content h2 { font-size: 20px; color: var(--primary); margin: 32px 0 16px 0; border-left: 4px solid var(--primary); padding-left: 12px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; } .policy-content p { margin-bottom: 16px; color: var(--text); } .policy-content ul { list-style: disc; margin: 0 0 16px 24px; } .policy-content li { margin-bottom: 8px; } @media (max-width: 767px) { .policy-content h1 { font-size: 18px; } .policy-content h2 { font-size: 16px; } }

/* ===== PAGE: disclaimer ===== */
.policy-content { padding: 2rem; max-width: 800px; margin: 0 auto; line-height: 1.6; color: var(--text); } .policy-content h1 { font-size: 24px; color: var(--primary); margin-bottom: 2rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; } .policy-content h2 { font-size: 20px; color: var(--primary); margin: 1.5rem 0 1rem; border-left: 4px solid var(--primary); padding-left: 10px; } .policy-content p { margin-bottom: 1rem; color: var(--text-muted); } @media (max-width: 767px) { .policy-content { padding: 1rem; } .policy-content h1 { font-size: 18px; } .policy-content h2 { font-size: 16px; } }

/* ===== PAGE: about ===== */
.about-content .vax-card { transition: all 0.3s ease; } .about-content .vax-card:hover { border-top-width: 8px; box-shadow: 0 4px 12px rgba(29, 24, 20, 0.12); }

/* ===== PAGE: how-to-play ===== */
.guide-content .vax-card { transition: all 0.3s ease; } .guide-content .vax-card:hover { border-top-width: 8px; } .guide-content h3 { font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* ===== PAGE: achievements ===== */
.fc-achievements .fc-card-topbar {
  height: 4px;
  background-color: var(--primary);
  transition: height 0.25s ease;
}
.fc-achievements .vax-card:hover .fc-card-topbar {
  height: 8px;
}
.fc-achievements .vax-card:hover h3 {
  color: var(--primary);
}
.fc-achievements .fc-icon-mark {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
}
.fc-achievements .js-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}
@media (max-width: 767px) {
  .fc-achievements .js-achievement-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PAGE: support ===== */
.faq-content .vax-card { transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(29, 24, 20, 0.08); background: var(--surface); } .faq-content .vax-card:hover { border-top-width: 8px; } .faq-content h2 { color: var(--text); }

/* ===== PAGE: leaderboard ===== */
.leaderboard_table { background: var(--bg); } .leaderboard_table .vax-badge { background: var(--primary); color: var(--on-primary); padding: 2px 8px; border-radius: 2px; font-size: 0.85rem; } @media (max-width: 767px) { .leaderboard_table table, .leaderboard_table thead, .leaderboard_table tbody, .leaderboard_table th, .leaderboard_table td, .leaderboard_table tr { display: block; } .leaderboard_table thead { display: none; } .leaderboard_table td { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding: 12px; } .leaderboard_table td::before { content: attr(data-label); font-weight: 600; } }

/* ===== PAGE: contact ===== */
.contact-info-block .vax-card { border-top: 4px solid var(--primary); transition: all 0.3s ease; } .contact-info-block .vax-card:hover { border-top-width: 8px; } .contact-info-block .contact-map { border: 1px solid var(--border); }

/* ===== PAGE TEMPLATE: games ===== */
.vax-header a {
    font-weight: 500;
}

.vax-header a:hover {
    color: var(--primary-text, #153BB6);
}

#mobile-menu.active {
    display: flex;
}

.fc-card-item {
    border-top: 4px solid var(--primary, #153BB6);
    transition: border-top-width 0.2s ease, transform 0.2s ease;
}

.fc-card-item:hover {
    border-top-width: 8px;
}

.fc-card-item:hover h3 {
    color: var(--primary, #153BB6);
}

.fc-iframe-wrapper:fullscreen {
    width: 100vw;
    height: 100vh;
    background: #000;
}

.fc-iframe-wrapper:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    background: #000;
}

.fc-iframe-wrapper:fullscreen #js-exit-fullscreen-btn {
    display: inline-flex;
}

.fc-iframe-wrapper:-webkit-full-screen #js-exit-fullscreen-btn {
    display: inline-flex;
}

.fc-footer {
    position: relative;
    width: 100%;
    overflow-wrap: anywhere;
}

.fc-footer-links li a {
    text-decoration: none;
}

.fc-footer-link:focus-visible {
    outline: 2px solid var(--primary, #153BB6);
    outline-offset: 2px;
    border-radius: 2px;
}

@media (max-width: 767px) {
    .fc-footer .grid {
        grid-template-columns: 1fr;
    }
}

/* mobile-text-guard */
@media (max-width: 767px) {
  h1, h2, h3, h4, h5, h6, p, li, dt, dd, blockquote, figcaption, td, th, label {
    overflow-wrap: anywhere;
  }
  a, button, .btn {
    overflow-wrap: anywhere;
    white-space: normal;
  }
  img, video, iframe {
    max-width: 100%;
  }
}

/* ===== page hero (inner pages) ===== */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 20px;
    background:
        linear-gradient(90deg, rgba(16, 20, 30, 0.93) 0%, rgba(16, 20, 30, 0.75) 45%, rgba(16, 20, 30, 0.45) 100%),
        url('../banner-bg.png') center / cover no-repeat,
        linear-gradient(165deg, #1A2233 0%, #161C27 50%, #1A140E 100%);
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.page-hero-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #9DB4FF;
}

.page-hero-title {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--on-dark);
    max-width: 640px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.page-hero-title span {
    color: #9DB4FF;
}

.page-hero-desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #EDE8E3;
    max-width: 560px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

@media (max-width: 767px) {
    .page-hero {
        padding: 36px 16px;
        background:
            linear-gradient(90deg, rgba(16, 20, 30, 0.94) 0%, rgba(16, 20, 30, 0.78) 60%, rgba(16, 20, 30, 0.55) 100%),
            url('../banner-bg.png') center / cover no-repeat,
            linear-gradient(165deg, #1A2233 0%, #161C27 50%, #1A140E 100%);
    }

    .page-hero-title {
        font-size: 22px;
    }

    .page-hero-desc {
        font-size: 14px;
    }
}

/* ===== poll (index) ===== */
#poll-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(600px 300px at 15% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
        radial-gradient(700px 350px at 90% 100%, rgba(0, 0, 0, 0.22), transparent 60%),
        var(--brand-band-bg, var(--primary));
}

.poll-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--on-primary);
}

.poll-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poll-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.poll-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: rgba(21, 59, 182, 0.1);
    color: var(--primary);
    font-size: 22px;
}

.poll-meter {
    height: 6px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: var(--border);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.poll-meter.show {
    opacity: 1;
}

.poll-meter-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), #4A6FE3);
    transition: width 0.9s ease;
}

.poll-chosen {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.js-poll-btn[disabled] {
    opacity: 0.75;
    cursor: default;
}

/* poll buttons - framed look */
#poll-section .js-poll-btn {
    position: relative;
    background: transparent;
    border: 2px solid var(--primary);
    outline: 1px solid rgba(21, 59, 182, 0.4);
    outline-offset: 3px;
    color: var(--primary);
    letter-spacing: 0.08em;
}

#poll-section .js-poll-btn:hover:not([disabled]) {
    background: var(--primary);
    color: var(--on-primary);
    outline-color: var(--primary);
}

#poll-section .js-poll-btn[disabled] {
    opacity: 0.8;
    cursor: default;
}

/* ===== about page extras ===== */
.about-stat-num {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--on-dark);
    letter-spacing: 0.02em;
}

.about-stat-label {
    margin-top: 6px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--on-dark-muted);
}

.about-genre {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.about-genre i {
    color: var(--primary);
    font-size: 16px;
}

.about-genre:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(21, 59, 182, 0.12);
}

@media (max-width: 767px) {
    .about-stat-num {
        font-size: 26px;
    }
}

/* ===== difficulty cards (index) ===== */
.diff-media {
    position: relative;
    border-radius: 4px;
    border: 2px solid var(--primary);
    padding: 6px;
    background: rgba(21, 59, 182, 0.06);
}

.diff-img {
    border-radius: 2px;
    transition: transform 0.5s ease;
}

.vax-card:hover .diff-img {
    transform: scale(1.06);
}

.diff-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.diff-badge-easy {
    background: #2E9E5B;
}

.diff-badge-medium {
    background: #E08A00;
}

.diff-badge-hard {
    background: #C62828;
}

/* ===== guide page extras ===== */
.guide-step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.guide-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 20px;
    font-weight: 700;
}

.guide-step-head i {
    font-size: 30px;
    color: var(--primary);
    opacity: 0.85;
}

.guide-tips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.guide-tips li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
}

.guide-tips i {
    color: var(--primary);
    font-size: 18px;
    margin-top: 3px;
    flex-shrink: 0;
}

.guide-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guide-faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 4px;
    overflow: hidden;
}

.guide-faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.guide-faq-item summary::-webkit-details-marker {
    display: none;
}

.guide-faq-item summary::after {
    content: "+";
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.guide-faq-item[open] summary::after {
    transform: rotate(45deg);
}

.guide-faq-item[open] summary {
    border-bottom: 1px solid var(--border);
}

.guide-faq-item p {
    margin: 0;
    padding: 12px 18px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ===== leaderboard (top-players) ===== */
.lb-podium {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 20px;
    max-width: 860px;
    margin: 0 auto;
    align-items: end;
}

.lb-podium-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 20px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 4px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lb-podium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.lb-gold {
    border-top-color: #E6B93D;
    padding-top: 36px;
    box-shadow: 0 8px 24px rgba(230, 185, 61, 0.25);
    z-index: 1;
}

.lb-silver {
    border-top-color: #9AA5B1;
}

.lb-bronze {
    border-top-color: #B0763C;
}

.lb-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    color: #fff;
    margin-bottom: 4px;
}

.lb-gold .lb-medal { background: linear-gradient(145deg, #F2C94C, #C9962E); }
.lb-silver .lb-medal { background: linear-gradient(145deg, #B8C2CC, #7C8794); }
.lb-bronze .lb-medal { background: linear-gradient(145deg, #C98A4B, #8F5A28); }

.lb-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--surface-alt);
    border: 3px solid var(--primary);
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
}

.lb-gold .lb-avatar { border-color: #E6B93D; width: 72px; height: 72px; font-size: 30px; }

.lb-name {
    margin: 6px 0 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.lb-score {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.02em;
}

.lb-gold .lb-score { font-size: 28px; }

.lb-place {
    margin-top: 6px;
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--surface-alt);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.lb-gold .lb-place { background: rgba(230, 185, 61, 0.15); color: #A5761B; }

.lb-rank-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 8px;
    background: var(--surface-alt);
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
}

.lb-rank-chip.lb-top {
    background: var(--primary);
    color: var(--on-primary);
}

.lb-score-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
}

.lb-score-bar {
    height: 5px;
    border-radius: 999px;
    background: var(--surface-alt);
    overflow: hidden;
}

.lb-score-bar div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), #4A6FE3);
}

.lb-trend {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    font-weight: 700;
}

.lb-trend i { font-size: 18px; }
.lb-up { color: #2E9E5B; }
.lb-down { color: #C62828; }
.lb-same { color: var(--text-muted); }

@media (max-width: 767px) {
    .lb-podium {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
    }

    .lb-podium-card {
        padding: 18px 10px 14px;
    }

    .lb-avatar { width: 48px; height: 48px; font-size: 19px; }
    .lb-gold .lb-avatar { width: 56px; height: 56px; font-size: 24px; }
    .lb-name { font-size: 13px; }
    .lb-score { font-size: 17px; }
    .lb-gold .lb-score { font-size: 21px; }
    .lb-medal { width: 32px; height: 32px; font-size: 14px; }
    .lb-place { font-size: 10px; padding: 3px 10px; }
}

/* leaderboard table full-width fix */
.leaderboard_table table {
    min-width: 640px;
}

.leaderboard_table th,
.leaderboard_table td {
    white-space: nowrap;
}

.leaderboard_table th:nth-child(3),
.leaderboard_table td:nth-child(3) {
    width: 30%;
    min-width: 200px;
}

.lb-score-cell {
    min-width: 0;
}

/* CTA heading on dark band - keep light text */
.about-cta .vax-title {
    color: var(--on-dark);
}

/* leaderboard table -> stacked cards on mobile */
@media (max-width: 767px) {
    .leaderboard_table table {
        min-width: 0;
    }

    .leaderboard_table thead {
        display: none;
    }

    .leaderboard_table table,
    .leaderboard_table tbody,
    .leaderboard_table tr,
    .leaderboard_table td {
        display: block;
        width: 100%;
    }

    .leaderboard_table tr {
        padding: 12px 16px;
        border-bottom: 1px solid var(--border);
    }

    .leaderboard_table tr:last-child {
        border-bottom: none;
    }

    .leaderboard_table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 5px 0 !important;
        white-space: normal;
    }

    .leaderboard_table td::before {
        content: attr(data-th);
        flex-shrink: 0;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--text-muted);
    }

    .lb-score-cell {
        flex: 1;
        max-width: 200px;
    }
}

/* ===== play now button on game cards ===== */
.play-btn {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    margin-top: 14px;
    padding: 8px 18px;
    border: 2px solid var(--primary);
    outline: 1px solid rgba(21, 59, 182, 0.4);
    outline-offset: 2px;
    border-radius: 2px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.play-btn i {
    font-size: 14px;
    line-height: 1;
}

.vax-card:hover .play-btn {
    background: var(--primary);
    color: var(--on-primary);
}
