* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Unbounded', sans-serif;
    background: linear-gradient(180deg, #000000 0%, #000C30 100%);
    background-attachment: fixed;
    min-height: 100vh;
    min-height: 100dvh;
    color: #ffffff;
    overflow-x: hidden;
    user-select: none;
}

/* ── Site header (desktop) ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background-color: #0E1350;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 2100;
}

.logo-link { display: flex; align-items: center; }
.site-logo { height: 36px; width: auto; }
.nav-menu { display: flex; align-items: center; }

.dropdown { position: relative; }
.dropdown-button {
    background: transparent;
    border: none;
    color: #2FFFFC;
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    padding: 8px 16px;
    transition: opacity 0.2s ease;
}
.dropdown-button:hover { opacity: 0.8; }

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #0E1350;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: visible;
    padding-top: 4px;
}
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 14px;
}
.dropdown:hover .dropdown-content { display: block; }

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #2FFFFC;
    text-decoration: none;
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 400;
    transition: background 0.2s ease;
}
.dropdown-item:hover { background: rgba(47, 255, 252, 0.1); }
.dropdown-item.active { background: rgba(47, 255, 252, 0.15); }

.nav-link {
    color: #2FFFFC;
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    padding: 8px 16px;
    transition: opacity 0.2s ease;
}
.nav-link:hover { opacity: 0.8; }

/* ── Hamburger / side-menu (mobile) ── */
.title-row {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hamburger-button {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #2FFFFC;
    border-radius: 2px;
}

.side-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2500;
}
.side-menu-overlay.open { display: block; }

.side-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #0E1350;
    z-index: 3000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}
.side-menu.open { right: 0; }

.side-menu-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    line-height: 1;
}
.side-menu-close:hover { opacity: 1; }

.side-menu-logo {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    margin-top: 8px;
}
.side-menu-logo .site-logo { height: 32px; }

.side-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.side-menu-link {
    color: #2FFFFC;
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 8px;
    transition: background 0.2s ease;
}
.side-menu-link:hover,
.side-menu-link.active { background: rgba(47, 255, 252, 0.1); }

@media (max-width: 768px) {
    .site-header { display: none; }
    .hamburger-button { display: flex; }
}

/* ── Container ── */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    max-width: 700px;
    margin: 0 auto;
    padding: 16px;
    padding-top: 72px;
}

header {
    text-align: center;
    padding: 8px 0;
    width: 100%;
}

.title {
    font-size: 2rem;
    font-weight: 900;
    color: #2FFFFC;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(47, 255, 252, 0.3);
    line-height: 1;
}

.title-logo {
    height: 40px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 0 12px rgba(47, 255, 252, 0.4));
}

@media (max-width: 768px) {
    .container { padding-top: 8px; }
    header { padding: 4px 0; }
}

/* ── HUD: timer + score ── */
.hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 520px;
    margin: 12px auto 8px;
    padding: 0 4px;
}

.hud-timer,
.hud-score {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.hud-timer span,
.hud-score span {
    color: #2FFFFC;
    font-weight: 700;
}

.hud-timer.warning span {
    color: #ff4444;
    animation: pulse-red 0.5s ease-in-out infinite alternate;
}

@keyframes pulse-red {
    from { opacity: 1; }
    to   { opacity: 0.5; }
}

/* ── Game board ── */
.game-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.board-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.board-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2FFFFC;
    border: none;
    border-radius: 16px;
    padding: 20px 60px;
    color: #000000;
    font-family: 'Unbounded', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(47, 255, 252, 0.6);
    letter-spacing: 2px;
}

.board-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 50px rgba(47, 255, 252, 0.9);
}

.board-play-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.board-container {
    position: relative;
    display: flex;
    border: 2px solid rgba(47, 255, 252, 0.3);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    width: 100%;
}

.board-half {
    display: grid;
    padding: 14px;
    gap: 6px;
    flex: 1;
    place-items: center;
}

.board-divider {
    width: 2px;
    background: rgba(47, 255, 252, 0.5);
    flex-shrink: 0;
}

/* ── Circle cells ── */
.tri-cell {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.1s ease;
    border-radius: 50%;
}

.tri-cell:active {
    transform: scale(0.92);
}

.tri-cell .circle-shape {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: all 0.2s ease;
}

/* Small / inactive circle — dark teal */
.tri-cell.inactive .circle-shape {
    background: #082C3D;
    box-shadow: none;
    transform: scale(0.45);
}

/* Big / active circle — flat color with outer glow */
.tri-cell.active .circle-shape {
    background: #2FFFFC;
    transform: scale(0.8);
    box-shadow:
        0 0 10px 3px rgba(47, 255, 252, 0.5),
        0 0 24px 6px rgba(47, 255, 252, 0.25),
        0 0 40px 10px rgba(47, 255, 252, 0.1);
}

/* Correct flash */
.board-container.correct-flash {
    animation: flash-correct 0.35s ease;
}

@keyframes flash-correct {
    0%   { box-shadow: 0 0 0 0 rgba(47, 255, 252, 0); }
    50%  { box-shadow: 0 0 30px 8px rgba(47, 255, 252, 0.5); }
    100% { box-shadow: 0 0 0 0 rgba(47, 255, 252, 0); }
}

/* Wrong flash */
.board-container.wrong-flash {
    animation: flash-wrong 0.35s ease;
}

@keyframes flash-wrong {
    0%   { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0); }
    50%  { box-shadow: 0 0 30px 8px rgba(255, 68, 68, 0.5); }
    100% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0); }
}

/* ── Start / End overlays ── */
.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.overlay.show { display: flex; }

.overlay-content {
    text-align: center;
    padding: 40px 32px;
    background: linear-gradient(135deg, #111133 0%, #1a1a40 100%);
    border-radius: 16px;
    border: 2px solid rgba(47, 255, 252, 0.4);
    box-shadow: 0 0 40px rgba(47, 255, 252, 0.15);
    max-width: 380px;
    width: 90%;
}

.overlay-content h2 {
    font-size: 1.8rem;
    font-weight: 900;
    color: #2FFFFC;
    margin-bottom: 12px;
}

.overlay-content .subtitle {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    line-height: 1.6;
}

.overlay-content .iq-intro {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

.overlay-content .iq-score {
    font-size: 3.5rem;
    font-weight: 900;
    color: #2FFFFC;
    margin: 16px 0 4px;
    text-shadow: 0 0 30px rgba(47, 255, 252, 0.4);
}

.overlay-content .iq-label {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.overlay-content .solved-count {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.overlay-content .solved-count span {
    color: #2FFFFC;
    font-weight: 700;
}

/* ── Personal Best Banner ── */
.personal-best-banner {
    display: none;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    color: #000000;
    font-size: 1rem;
    font-weight: 900;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 16px 0;
    text-align: center;
    animation: pulse-glow 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.personal-best-banner.show {
    display: block;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
    50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(255, 215, 0, 0.9); }
}

/* ── Name Entry ── */
.name-entry {
    width: 100%;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.name-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.name-input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #2FFFFC;
    border-radius: 8px;
    padding: 12px 16px;
    color: #2FFFFC;
    font-family: 'Unbounded', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    width: 100%;
    max-width: 200px;
    transition: all 0.2s ease;
}

.name-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(47, 255, 252, 0.4);
}

.name-input::placeholder {
    color: rgba(47, 255, 252, 0.4);
}

/* ── IQ Progress Tracker ── */
.iq-tracker {
    width: 100%;
    margin: 20px 0 24px;
}

.iq-tracker-tier-name {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #2FFFFC;
    margin-bottom: 12px;
    min-height: 20px;
    transition: opacity 0.4s ease;
}

.iq-tracker-bar {
    position: relative;
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    overflow: visible;
}

.iq-tracker-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg,
        #1a3a4a 0%,
        #0d6b6e 20%,
        #15a89e 40%,
        #2FFFFC 60%,
        #7fffff 80%,
        #d0ffff 100%
    );
    transition: width 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 0%;
}

.iq-tracker-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2FFFFC;
    border: 3px solid #ffffff;
    box-shadow:
        0 0 8px 2px rgba(47, 255, 252, 0.6),
        0 0 20px 4px rgba(47, 255, 252, 0.25);
    transition: left 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    left: 0%;
    z-index: 2;
}

.iq-tracker-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 0;
}

.iq-tracker-labels span {
    font-size: 0.6rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    line-height: 1.3;
}

.overlay-btn {
    background: transparent;
    border: 2px solid #2FFFFC;
    border-radius: 10px;
    padding: 14px 40px;
    color: #2FFFFC;
    font-family: 'Unbounded', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    display: block;
    margin: 0 auto;
}

.overlay-btn:hover {
    transform: translateY(-3px);
    background: rgba(47, 255, 252, 0.1);
}

.overlay-btn:active {
    transform: translateY(0);
}

/* ── Countdown overlay ── */
.countdown-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2500;
}

.countdown-overlay.show { display: flex; }

.countdown-number {
    font-size: 6rem;
    font-weight: 900;
    color: #2FFFFC;
    text-shadow: 0 0 40px rgba(47, 255, 252, 0.6);
    animation: countdown-pulse 1s ease-in-out;
}

@keyframes countdown-pulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ── Help button ── */
.help-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    border: 3px solid #FFFFFF;
    color: #FFFFFF;
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.2s ease, background 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.help-button:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .help-button {
        bottom: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* ── Help overlay ── */
.help-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.help-overlay.show { display: flex; }

.help-content {
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    margin: 20px;
    background: linear-gradient(135deg, #111133 0%, #1a1a40 100%);
    border-radius: 16px;
    border: 2px solid rgba(47, 255, 252, 0.4);
    box-shadow: 0 0 40px rgba(47, 255, 252, 0.15);
    position: relative;
}

.help-howto-img {
    width: 70%;
    max-width: 260px;
    height: auto;
    border-radius: 12px;
    margin: 8px auto 20px;
    display: block;
}

.help-content h2 {
    font-size: 1.5rem;
    color: #2FFFFC;
    margin-bottom: 12px;
    margin-top: 20px;
}

.help-content h2:first-of-type { margin-top: 0; }

.help-content p {
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.help-content ul {
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.8;
    padding-left: 20px;
    margin-bottom: 16px;
}

.help-content li { margin-bottom: 8px; }
.help-content strong { color: #2FFFFC; }

.help-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #FFFFFF;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.help-close:hover { opacity: 1; }

/* ── Leaderboard ── */
.leaderboard-section {
    width: 100%;
    max-width: 600px;
    margin: 40px auto 32px;
    padding: 0 16px;
}

/* Your Best badge */
.your-best-badge {
    text-align: center;
    margin-bottom: 16px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(47, 255, 252, 0.08), rgba(47, 255, 252, 0.03));
    border: 1px solid rgba(47, 255, 252, 0.25);
    border-radius: 10px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.your-best-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.your-best-score {
    font-size: 1.4rem;
    font-weight: 900;
    color: #2FFFFC;
    text-shadow: 0 0 12px rgba(47, 255, 252, 0.4);
}

/* Tabs */
.lb-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 0;
}
.lb-tab {
    flex: 1;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(47, 255, 252, 0.2);
    border-bottom: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Unbounded', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.lb-tab:first-child {
    border-radius: 12px 0 0 0;
    border-right: none;
}
.lb-tab:last-child {
    border-radius: 0 12px 0 0;
    border-left: none;
}
.lb-tab.active {
    background: rgba(47, 255, 252, 0.08);
    color: #2FFFFC;
    border-color: rgba(47, 255, 252, 0.3);
}
.lb-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
}

/* Leaderboard container */
.leaderboard-container {
    background: linear-gradient(135deg, rgba(17, 17, 51, 0.6) 0%, rgba(26, 26, 64, 0.6) 100%);
    border: 2px solid rgba(47, 255, 252, 0.3);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 0;
    max-height: 520px;
    overflow-y: auto;
}

/* Table */
.iq-lb-table {
    width: 100%;
    border-collapse: collapse;
}
.iq-lb-table thead th {
    position: sticky;
    top: 0;
    background: rgba(14, 19, 80, 0.95);
    padding: 12px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(47, 255, 252, 0.15);
    z-index: 1;
}
.iq-lb-table tbody tr {
    border-bottom: 1px solid rgba(47, 255, 252, 0.06);
    transition: background 0.2s ease;
}
.iq-lb-table tbody tr:last-child {
    border-bottom: none;
}
.iq-lb-table tbody tr:hover {
    background: rgba(47, 255, 252, 0.04);
}

/* Highlight current player's row */
.iq-lb-table tbody tr.iq-lb-highlight {
    background: rgba(47, 255, 252, 0.08);
}
.iq-lb-table tbody tr.iq-lb-highlight:hover {
    background: rgba(47, 255, 252, 0.12);
}

/* Table cells */
.iq-lb-rank {
    width: 44px;
    text-align: center;
    padding: 10px 6px 10px 12px;
    font-size: 1rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.6);
}
.iq-lb-rank.iq-lb-rank-1 { color: #FFD700; }
.iq-lb-rank.iq-lb-rank-2 { color: #C0C0C0; }
.iq-lb-rank.iq-lb-rank-3 { color: #CD7F32; }

.iq-lb-name {
    text-align: left;
    padding: 10px 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
}
.iq-lb-iq {
    width: 70px;
    text-align: center;
    padding: 10px 8px;
    font-size: 1rem;
    font-weight: 900;
    color: #2FFFFC;
}
.iq-lb-solved {
    width: 70px;
    text-align: center;
    padding: 10px 12px 10px 8px;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
}
.iq-lb-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    padding: 32px 16px;
    font-size: 0.9rem;
}
.iq-lb-empty-msg {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    padding: 16px;
    font-size: 0.9rem;
}

/* Submit hint & status */
.iq-submit-hint {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    margin: -4px 0 4px;
}
.iq-submit-status {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    min-height: 20px;
    margin-top: 4px;
}
.iq-submit-status.success {
    color: #2FFFFC;
}
.iq-submit-status.error {
    color: #ff6b6b;
}

.about-howto-img {
    width: 50%;
    max-width: 280px;
    height: auto;
    border-radius: 14px;
    margin: 0 auto 28px;
    display: block;
    filter: drop-shadow(0 4px 20px rgba(47, 255, 252, 0.2));
}

/* ── Game Description & FAQ ── */
.game-description,
.faq-section {
    width: 100%;
    max-width: 800px;
    margin: 60px auto 40px;
    padding: 0 16px;
}

.game-description h2,
.faq-section h2 {
    font-size: 1.8rem;
    font-weight: 900;
    color: #2FFFFC;
    margin-bottom: 24px;
    text-shadow: 0 0 15px rgba(47, 255, 252, 0.3);
}

.game-description h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2FFFFC;
    margin-top: 32px;
    margin-bottom: 16px;
}

.game-description p,
.faq-item p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

.game-description ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.game-description ul li {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.game-description ul li::before {
    content: "▸";
    color: #2FFFFC;
    font-weight: 900;
    position: absolute;
    left: 0;
}

.game-description ul li strong {
    color: #2FFFFC;
    font-weight: 700;
}

.faq-item {
    margin-bottom: 32px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border-left: 4px solid #2FFFFC;
}

.faq-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.faq-item p {
    margin-bottom: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .board-play-btn {
        font-size: 1.4rem;
        padding: 16px 48px;
    }

    .game-description h2,
    .faq-section h2 {
        font-size: 1.5rem;
    }

    .game-description h3 {
        font-size: 1.1rem;
    }

    .game-description p,
    .faq-item p,
    .game-description ul li {
        font-size: 0.95rem;
    }

    .faq-item {
        padding: 16px;
    }

    .faq-item h3 {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .title-logo { height: 32px; }
    .hud { max-width: 100%; }
    .board-wrapper { max-width: 100%; }

    .board-play-btn {
        font-size: 1.2rem;
        padding: 12px 36px;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .container { padding: 8px; padding-top: 64px; }
    header { padding: 2px 0; }
    .title-logo { height: 24px; }
    .board-wrapper { max-width: 400px; }
}

/* Related Articles section */
.blog-section {
    max-width: 720px;
    margin: 48px auto 0;
    padding: 0 20px;
}
.blog-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #29FBCD;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Unbounded', sans-serif;
}
.blog-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.blog-link-card {
    display: block;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.blog-link-card:hover {
    border-color: rgba(41, 251, 205, 0.3);
    background: rgba(41, 251, 205, 0.05);
}
.blog-link-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #29FBCD;
    margin-bottom: 4px;
    font-family: 'Unbounded', sans-serif;
}
.blog-link-excerpt {
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    font-family: 'Unbounded', sans-serif;
}
