/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222240;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-muted: #6a6a80;
    --accent: #7c5cff;
    --accent-light: #9b7fff;
    --accent-glow: rgba(124, 92, 255, 0.3);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(124, 92, 255, 0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Source Han Sans SC', 'Noto Sans CJK SC', 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.page {
    display: none;
    min-height: 100vh;
}
.page.active {
    display: block;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
img { max-width: 100%; display: block; }

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.logo-icon {
    font-size: 24px;
}

.logo-text {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo-highlight {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 24px;
    z-index: 99;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 4px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a:active {
    background: rgba(124, 92, 255, 0.1);
    color: var(--text-primary);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 60px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(124, 92, 255, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(92, 200, 255, 0.05) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-2%, -2%) scale(1.05); }
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-light);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(0) scale(0); }
    10% { opacity: 0.6; transform: scale(1); }
    90% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-100vh) scale(0.5); }
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.hero-title {
    margin-bottom: 24px;
}

.hero-line1 {
    display: block;
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 4px;
}

.hero-line2 {
    display: block;
    font-size: clamp(48px, 10vw, 80px);
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, var(--accent-light) 50%, #5cc8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: clamp(14px, 2.5vw, 18px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--accent) 0%, #5c8cff 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(124, 92, 255, 0.3);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 92, 255, 0.4);
}

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

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    animation: hintBounce 2s ease-in-out infinite;
}

@keyframes hintBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

/* ===== Games Section ===== */
.games-section {
    padding: 80px 24px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-title {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 900;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: clamp(14px, 2.5vw, 16px);
    color: var(--text-secondary);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.game-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card);
}

.game-card-bg {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    transition: opacity var(--transition);
}

.game-card:hover .game-card-bg {
    opacity: 0.25;
}

.game-card-content {
    position: relative;
    padding: 32px 28px;
    z-index: 1;
}

.game-card-emoji {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.game-card-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.game-card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 500;
}

.game-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.game-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.game-tag {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.game-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-card-count {
    font-size: 12px;
    color: var(--text-muted);
}

.game-card-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.game-card:hover .game-card-arrow {
    transform: translateX(4px);
}

.game-card-arrow svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-secondary);
    fill: none;
    stroke-width: 2;
}

/* ===== About Section ===== */
.about-section {
    padding: 80px 24px;
    border-top: 1px solid var(--border);
}

.about-content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.about-note {
    font-size: 13px !important;
    color: var(--text-muted) !important;
    font-style: italic;
}

/* ===== Footer ===== */
.footer {
    padding: 24px;
    text-align: center;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== Quiz Header ===== */
.header-quiz .header-inner {
    justify-content: space-between;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
}

.back-btn:hover {
    color: var(--text-primary);
}

.back-btn svg {
    flex-shrink: 0;
}

.quiz-game-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.quiz-progress-text {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== Quiz Container ===== */
.quiz-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 88px 24px 60px;
    min-height: 100vh;
}

/* ===== Quiz Intro ===== */
.quiz-intro {
    text-align: center;
    padding-top: 60px;
    animation: fadeInUp 0.6s ease;
}

.quiz-intro-icon {
    font-size: 72px;
    margin-bottom: 24px;
}

.quiz-intro-title {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 900;
    margin-bottom: 16px;
}

.quiz-intro-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.quiz-intro-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}

.meta-item {
    font-size: 14px;
    color: var(--text-muted);
}

.start-btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 48px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 24px rgba(124, 92, 255, 0.3);
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 92, 255, 0.4);
}

/* ===== Progress Bar ===== */
.progress-bar-wrap {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 0%;
}

/* ===== Question Card ===== */
.question-card {
    animation: fadeInUp 0.4s ease;
}

.question-number {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-text {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 32px;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.5;
    transition: var(--transition);
    cursor: pointer;
}

.option-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.option-btn:active {
    transform: translateX(2px);
}

.option-btn.selected {
    border-color: var(--accent);
    background: rgba(124, 92, 255, 0.1);
}

/* ===== Result ===== */
.quiz-result {
    padding-top: 10px;
    animation: fadeInUp 0.6s ease;
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card), 0 0 80px rgba(0,0,0,0.3);
    overflow: hidden;
}

.result-character-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 420px;
    overflow: hidden;
    background: var(--bg-secondary);
    background-image: radial-gradient(ellipse at center, rgba(255,255,255,0.03) 0%, transparent 70%);
}

.result-character-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.6s ease;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* For portrait-style images (OW, Valorant, Genshin gacha art), center differently */
.result-character-img-wrap[data-game="overwatch"] .result-character-img,
.result-character-img-wrap[data-game="valorant"] .result-character-img,
.result-character-img-wrap[data-game="genshin"] .result-character-img {
    object-position: center 15%;
}

/* For Apex icons which are smaller, contain instead of cover */
.result-character-img-wrap[data-game="apex"] .result-character-img {
    object-fit: contain;
    object-position: center center;
    padding: 20px;
}

.result-character-img-wrap:hover .result-character-img {
    transform: scale(1.04);
}

.result-character-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, var(--bg-card) 0%, rgba(26,26,46,0.6) 40%, transparent 100%);
    pointer-events: none;
}

/* Character name floated over image bottom */
.result-card-body {
    text-align: center;
    padding: 0 28px 40px;
    position: relative;
    margin-top: -48px;
    z-index: 2;
}

.result-match-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.result-character-name {
    font-size: clamp(30px, 7vw, 44px);
    font-weight: 900;
    margin-bottom: 6px;
    line-height: 1.2;
    text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.result-character-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    opacity: 0.85;
}

.result-personality {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.result-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    padding: 20px 24px;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.result-traits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.trait-tag {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.result-quote {
    font-size: 14px;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 32px;
    padding: 12px 20px;
    line-height: 1.8;
    border-left: 3px solid var(--border-hover);
    text-align: left;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255,255,255,0.015);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.result-quote::before {
    content: '"';
    font-size: 20px;
    vertical-align: -2px;
    margin-right: 2px;
    opacity: 0.5;
}

.result-quote::after {
    content: '"';
    font-size: 20px;
    vertical-align: -2px;
    margin-left: 2px;
    opacity: 0.5;
}

.result-quote:empty {
    display: none;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.btn-retry, .btn-home, .btn-share {
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-retry {
    background: linear-gradient(135deg, var(--accent), #5c8cff);
    color: #fff;
    box-shadow: 0 4px 16px rgba(124, 92, 255, 0.25);
}

.btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(124, 92, 255, 0.35);
}

.btn-share {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-share:hover {
    background: rgba(255, 255, 255, 0.14);
}

.btn-home {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-home:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Image loading fallback */
.result-character-img[src=""] {
    display: none;
}
.result-character-img-wrap:has(img[src=""]) {
    height: auto;
    padding: 40px 0 0;
    aspect-ratio: auto;
}
.result-character-img.img-error {
    display: none;
}
.result-character-img-wrap.no-image {
    height: auto;
    aspect-ratio: auto;
    padding: 48px 0 24px;
    text-align: center;
    font-size: 88px;
    background-image: radial-gradient(ellipse at center, rgba(255,255,255,0.04) 0%, transparent 60%);
}
.result-character-img-wrap.no-image .result-character-img-overlay {
    display: none;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

.game-card {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.game-card:nth-child(1) { animation-delay: 0.05s; }
.game-card:nth-child(2) { animation-delay: 0.1s; }
.game-card:nth-child(3) { animation-delay: 0.15s; }
.game-card:nth-child(4) { animation-delay: 0.2s; }
.game-card:nth-child(5) { animation-delay: 0.25s; }
.game-card:nth-child(6) { animation-delay: 0.3s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-inner {
        padding: 0 16px;
    }

    .hero {
        padding: 60px 20px 40px;
    }

    .hero-desc br {
        display: none;
    }

    .games-section {
        padding: 60px 16px 80px;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .game-card-content {
        padding: 24px 20px;
    }

    .game-card-emoji {
        font-size: 40px;
        margin-bottom: 12px;
    }

    .game-card-title {
        font-size: 20px;
    }

    .quiz-container {
        padding: 80px 16px 40px;
    }

    .quiz-intro {
        padding-top: 40px;
    }

    .quiz-intro-icon {
        font-size: 56px;
    }

    .result-card-body {
        padding: 0 16px 32px;
        margin-top: -40px;
    }

    .result-character-img-wrap {
        aspect-ratio: 16 / 9;
        max-height: 300px;
    }

    .result-desc {
        font-size: 14px;
        padding: 16px;
        line-height: 1.9;
    }

    .result-quote {
        padding: 10px 16px;
        font-size: 13px;
    }

    .result-actions {
        flex-direction: column;
    }

    .btn-retry, .btn-home, .btn-share {
        width: 100%;
    }

    .option-btn {
        padding: 14px 16px;
        font-size: 14px;
    }

    .about-section {
        padding: 60px 16px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .quiz-intro-meta {
        gap: 16px;
    }

    .hero-scroll-hint {
        bottom: 20px;
    }
}

@media (max-width: 380px) {
    .hero-line2 {
        font-size: 42px;
    }

    .hero-btn {
        padding: 12px 28px;
        font-size: 15px;
    }

    .start-btn {
        padding: 14px 36px;
        font-size: 16px;
    }

    .game-card-content {
        padding: 20px 16px;
    }

    .result-character-img-wrap {
        aspect-ratio: 16 / 8;
        max-height: 240px;
    }

    .result-card-body {
        margin-top: -32px;
    }
}

/* Landscape phone */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 24px 40px;
    }

    .hero-scroll-hint {
        display: none;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dark mode scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Touch feedback for mobile */
@media (hover: none) {
    .option-btn:active {
        background: var(--bg-card-hover);
        border-color: var(--accent);
        transform: scale(0.98);
    }

    .game-card:active {
        transform: scale(0.98);
    }

    .hero-btn:active {
        transform: scale(0.96);
    }
}

/* Safe area for notched phones */
@supports (padding-top: env(safe-area-inset-top)) {
    .header {
        padding-top: env(safe-area-inset-top);
    }
    .footer {
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }
}
