/* ============================================
   FAQ PAGE STYLES
   Matches invitation/private-hire design
   ============================================ */

/* Font Faces - Reuse from invitation */
@font-face {
    font-family: 'ASM';
    src: url('../../invitation/font/ASM-Regular.woff2') format('woff2'),
         url('../../invitation/font/ASM-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'ASM';
    src: url('../../invitation/font/ASM-Bold.woff2') format('woff2'),
         url('../../invitation/font/ASM-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

/* CSS Variables */
:root {
    --color-primary: #F3AB0E;
    --color-bg: #0a0a0a;
    --color-text: #ffffff;
    --color-text-muted: rgba(255,255,255,0.6);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'ASM', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   VIDEO BACKGROUND
   ============================================ */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Hide browser default video controls and play button (Safari fix) */
.video-bg video::-webkit-media-controls {
    display: none !important;
    -webkit-appearance: none;
}
.video-bg video::-webkit-media-controls-panel {
    display: none !important;
    -webkit-appearance: none;
}
.video-bg video::-webkit-media-controls-play-button {
    display: none !important;
    -webkit-appearance: none;
}
.video-bg video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}
.video-bg video::-webkit-media-controls-enclosure {
    display: none !important;
}
.video-bg video::-webkit-media-controls-overlay-play-button {
    display: none !important;
    -webkit-appearance: none;
}
.video-bg video::-webkit-media-controls-overlay-enclosure {
    display: none !important;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: relative;
    z-index: 1000;
}

.navbar-brand img {
    /* Match invitation page - let HTML width attribute control size */
}

.nav-link {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary) !important;
}

.dropdown-menu-dark {
    background: rgba(0,0,0,0.95);
    border: 1px solid rgba(255,255,255,0.1);
}

.dropdown-item:hover {
    background: var(--color-primary);
    color: #000;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.98);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 30px;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-nav {
    text-align: center;
}

.mobile-menu-section {
    margin-bottom: 24px;
}

.mobile-menu-label {
    display: block;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    opacity: 0.9;
}

.mobile-menu-link {
    display: block;
    width: 100%;
    text-align: center;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: rgba(255,255,255,0.08);
    color: var(--color-primary);
}

.mobile-menu-divider {
    width: 60px;
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 24px auto;
}

.mobile-menu-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 32px;
    background: var(--color-primary);
    color: #000;
    font-weight: 700;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: #fff;
    transform: translateY(-2px);
}

/* ============================================
   SCROLLING LOGO BANNER
   ============================================ */
.logo-band {
    background: rgba(0,0,0,0.95);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    z-index: 100;
    transition: all 0.3s ease;
}

.logo-band.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.logo-band-placeholder {
    display: none;
}

.logo-band-placeholder.active {
    display: block;
}

.logo-marquee {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.logo-marquee img {
    height: 24px;
    width: auto;
    opacity: 0.8;
}

.banner-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-primary);
    white-space: nowrap;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    position: relative;
    z-index: 10;
    padding: 60px 0 100px;
    min-height: calc(100vh - 200px);
}

.faq-title {
    font-family: 'ASM', sans-serif;
    font-size: clamp(42px, 8vw, 72px);
    font-weight: 700;
    letter-spacing: 8px;
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 60px;
    text-transform: uppercase;
    text-shadow: 0 2px 40px rgba(243, 171, 14, 0.2);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.faq-item:first-child {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: none;
    border: none;
    color: var(--color-text);
    font-family: 'ASM', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-question span {
    flex: 1;
    padding-right: 20px;
}

.faq-question i {
    font-size: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question {
    color: var(--color-primary);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 0 24px 0;
}

.faq-answer p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer h4 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-primary);
    margin: 20px 0 10px;
    text-transform: uppercase;
}

.faq-answer h4:first-child {
    margin-top: 0;
}

.faq-answer ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.faq-answer ul li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-muted);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.faq-answer ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.faq-answer .hours-list li::before {
    content: '';
}

.faq-answer .hours-list li {
    padding-left: 0;
}

.faq-answer a {
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.faq-answer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.faq-answer strong {
    color: var(--color-text);
    font-weight: 700;
}

.faq-answer em {
    font-style: italic;
    opacity: 0.7;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    position: relative;
    z-index: 10;
    background: rgba(0,0,0,0.9);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content p {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0;
}

.footer-content a {
    color: var(--color-primary);
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .faq-section {
        padding: 40px 0 80px;
    }
    
    .faq-title {
        margin-bottom: 40px;
    }
    
    .faq-accordion {
        padding: 0 16px;
    }
    
    .faq-question {
        padding: 20px 0;
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .faq-answer p,
    .faq-answer ul li {
        font-size: 14px;
    }
    
    .logo-marquee {
        gap: 24px;
    }
    
    .logo-marquee img {
        height: 18px;
    }
    
    .banner-text {
        font-size: 10px;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .faq-title {
        font-size: 42px;
    }
    
    .faq-question {
        font-size: 13px;
    }
}

/* ============================================
   SNAKE GAME - HOUSE PARTY BRANDED
   ============================================ */
.faq-item--game .faq-question i {
    font-size: 18px;
    color: var(--color-primary);
}

.game-container {
    background: #0a0a0a;
    border-radius: 16px;
    padding: 20px;
    min-height: 520px;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 40px rgba(243, 171, 14, 0.15), inset 0 0 80px rgba(0, 0, 0, 0.6);
}

/* Party Runner subtle scanline overlay */
.game-container.party-runner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.06) 0px,
        rgba(0, 0, 0, 0.06) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 10;
}

.game-screen {
    width: 100%;
    max-width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
    padding: 16px 0;
}

.game-screen.hidden {
    display: none;
}

/* Game Over Screen - compact and polished */
.game-over {
    padding: 20px 16px !important;
    max-width: 340px;
    margin: 0 auto;
}

/* Intro Screen - Full Container */
.game-intro {
    width: 100%;
    height: 100%;
    min-height: 400px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.game-intro::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 10px;
    box-shadow: 
        inset 0 0 60px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(243, 171, 14, 0.15);
}

#introCanvas {
    width: 100%;
    height: 100%;
    min-height: 350px;
    max-height: 450px;
    border-radius: 10px;
    border: none;
    display: block;
    object-fit: contain;
}

/* Menu Screen - Party Runner */
.menu-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.logo-cup {
    font-size: 28px;
    animation: cupBounce 0.6s ease-in-out infinite alternate;
}

.logo-cup:last-child {
    animation-delay: 0.3s;
}

@keyframes cupBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

.game-logo {
    font-family: 'ASM', 'Courier New', monospace;
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 4px;
    color: var(--color-primary);
    text-shadow: 0 0 25px rgba(243, 171, 14, 0.6), 0 0 50px rgba(243, 171, 14, 0.3);
    animation: goldPulse 2s ease-in-out infinite;
}

@keyframes goldPulse {
    0%, 100% { text-shadow: 0 0 25px rgba(243, 171, 14, 0.6), 0 0 50px rgba(243, 171, 14, 0.3); }
    50% { text-shadow: 0 0 35px rgba(243, 171, 14, 0.8), 0 0 70px rgba(243, 171, 14, 0.5); }
}

.game-subtitle {
    font-family: 'ASM', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 6px;
    letter-spacing: 2px;
}

.menu-high-score {
    font-family: 'ASM', sans-serif;
    font-size: 13px;
    color: var(--color-primary);
    margin: 0 0 20px;
    letter-spacing: 2px;
    opacity: 0.9;
}

.game-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.btn-play {
    background: var(--color-primary);
    border: none;
    color: #000;
    font-family: 'ASM', sans-serif;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
    padding: 14px 36px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(243, 171, 14, 0.4);
}

.btn-play:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(243, 171, 14, 0.6);
}

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

.controls-hint {
    font-family: 'ASM', sans-serif;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    margin-top: 16px;
}

.game-over-buttons button,
.game-back-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-family: 'ASM', sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.5px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 110px;
    border-radius: 6px;
}

.game-over-buttons button:hover,
.game-back-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #000;
}

.game-over-buttons button:first-child {
    background: rgba(243, 171, 14, 0.15);
    border-color: rgba(243, 171, 14, 0.4);
    color: var(--color-primary);
}

.game-leaderboard-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-family: 'ASM', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    padding: 12px 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.game-leaderboard-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Game HUD - Party Runner */
.game-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin-bottom: 8px;
    font-family: 'ASM', sans-serif;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    border: 1px solid rgba(243, 171, 14, 0.3);
}

.hud-left, .hud-center, .hud-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hud-label {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

.hud-value {
    font-size: 14px;
    font-weight: bold;
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(243, 171, 14, 0.5);
    min-width: 35px;
}

.hud-center {
    justify-content: center;
}

.cups-icon {
    font-size: 14px;
}

.hud-cups {
    font-size: 12px;
    font-weight: bold;
    color: #ff6b6b;
}

#gameHigh {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Canvas Wrapper - 2:1 aspect ratio for runner */
.canvas-wrapper {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 2 / 1;
    position: relative;
    flex: 1;
    min-height: 200px;
}

#gameCanvas {
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    border-radius: 8px;
    touch-action: none;
    display: block;
    border: 2px solid rgba(243, 171, 14, 0.3);
}

/* Screen shake animation */
.canvas-wrapper.shake {
    animation: screenShake 0.3s ease-out;
}

@keyframes screenShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* Touch ripple effect */
@keyframes touchRippleAnim {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Toast slide animations */
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Touch Controls - Party Runner Jump Button */
.game-controls {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-bottom: 8px;
    width: 100%;
    max-width: 100%;
}

/* Always show jump button on game play screen */
.game-play .game-controls {
    display: flex;
}

@media (max-width: 768px), (pointer: coarse) {
    .game-controls {
        display: flex;
    }
}

.jump-btn {
    width: 100%;
    max-width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, rgba(243, 171, 14, 0.2), rgba(243, 171, 14, 0.1));
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-family: 'ASM', sans-serif;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 3px;
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.1s ease;
    box-shadow: 0 0 20px rgba(243, 171, 14, 0.25);
}

.jump-btn:active {
    background: var(--color-primary);
    color: #000;
    transform: scale(0.98);
}

.jump-icon {
    font-size: 16px;
}

/* Legacy touch button styles */
.touch-btn {
    width: 60px;
    height: 60px;
    background: rgba(243, 171, 14, 0.1);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 20px;
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s ease;
    box-shadow: 0 0 12px rgba(243, 171, 14, 0.2);
}

.touch-btn:active {
    background: var(--color-primary);
    color: #000;
    box-shadow: 0 0 30px rgba(243, 171, 14, 0.6);
    transform: scale(0.95);
}

.touch-row {
    display: flex;
    gap: 72px;
}

/* Game Actions */
.game-actions {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.game-action-btn {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-action-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Game Over & Pause - Party Runner */
.game-over h2,
.game-pause h2 {
    font-family: 'ASM', sans-serif;
    font-size: clamp(20px, 5vw, 28px);
    font-weight: bold;
    letter-spacing: 4px;
    color: #ff4444;
    margin: 0 0 6px;
    text-shadow: 0 0 25px rgba(255, 68, 68, 0.5);
}

.game-pause h2 {
    color: var(--color-primary);
    text-shadow: 0 0 25px rgba(243, 171, 14, 0.5);
}

.pause-subtitle {
    font-family: 'ASM', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 20px;
}

/* Score display - Party Runner */
.score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 16px 0 12px;
}

.final-score-big {
    font-family: 'ASM', sans-serif;
    font-size: clamp(48px, 12vw, 64px);
    font-weight: bold;
    color: var(--color-primary);
    text-shadow: 0 0 40px rgba(243, 171, 14, 0.7);
    line-height: 1;
    letter-spacing: 2px;
}

.score-label {
    font-family: 'ASM', sans-serif;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 3px;
    margin-top: 2px;
    text-transform: uppercase;
}

/* Legacy score display */
.final-score {
    font-family: 'ASM', sans-serif;
    font-size: 20px;
    color: #fff;
    margin: 0 0 20px;
}

.final-score span {
    color: var(--color-primary);
    font-size: 28px;
}

/* Game stats - Party Runner pill style */
.game-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    font-family: 'ASM', sans-serif;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    letter-spacing: 1px;
}

.stat-pill span {
    color: var(--color-primary);
    font-weight: bold;
}

.game-stats span {
    color: var(--color-primary);
}

/* Death prompt - funny message on game over */
.death-prompt {
    font-family: 'ASM', sans-serif;
    font-size: clamp(11px, 2.5vw, 13px);
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    text-align: center;
    letter-spacing: 1.5px;
    font-style: italic;
}

@keyframes deathShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px) rotate(-1deg); }
    40% { transform: translateX(5px) rotate(1deg); }
    60% { transform: translateX(-3px) rotate(-0.5deg); }
    80% { transform: translateX(3px) rotate(0.5deg); }
}

.high-score-entry {
    margin: 16px 0 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.save-prompt {
    font-family: 'ASM', sans-serif;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.new-high {
    font-family: 'ASM', sans-serif;
    font-size: 16px;
    color: var(--color-primary);
    margin: 0 0 16px;
    animation: goldBlink 0.8s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(243, 171, 14, 0.6);
}

@keyframes goldBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.name-input-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.high-score-entry input {
    background: rgba(243, 171, 14, 0.08);
    border: 1px solid rgba(243, 171, 14, 0.4);
    color: var(--color-primary);
    font-family: 'ASM', sans-serif;
    font-size: 14px;
    text-align: center;
    text-transform: uppercase;
    padding: 10px 14px;
    width: 130px;
    border-radius: 6px;
    outline: none;
}

.high-score-entry input:focus {
    box-shadow: 0 0 20px rgba(243, 171, 14, 0.4);
}

.high-score-entry input::placeholder {
    color: rgba(243, 171, 14, 0.4);
    text-transform: uppercase;
}

.high-score-entry button {
    background: var(--color-primary);
    border: none;
    color: #000;
    font-family: 'ASM', sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 11px 20px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.high-score-entry button:hover {
    background: #fff;
    box-shadow: 0 0 20px rgba(243, 171, 14, 0.5);
}

.high-score-entry button:disabled {
    background: #444;
    cursor: not-allowed;
    box-shadow: none;
}

.high-score-entry button.saved {
    background: #4ade80;
    color: #000;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
    animation: savedPulse 0.3s ease;
}

@keyframes savedPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.game-over-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

/* Leaderboard */
.game-leaderboard h2 {
    font-family: 'ASM', sans-serif;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 4px;
    color: var(--color-primary);
    margin: 0 0 28px;
    text-shadow: 0 0 20px rgba(243, 171, 14, 0.4);
}

.leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    width: 100%;
    max-width: 300px;
}

.leaderboard-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(243, 171, 14, 0.15);
    font-family: 'ASM', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: background 0.2s ease;
}

.leaderboard-list li:hover {
    background: rgba(243, 171, 14, 0.05);
}

.leaderboard-list li:nth-child(1) {
    color: var(--color-primary);
    font-weight: bold;
}

.leaderboard-list li:nth-child(2) {
    color: rgba(255, 255, 255, 0.8);
}

.leaderboard-list li:nth-child(3) {
    color: rgba(255, 255, 255, 0.7);
}

.leaderboard-list .rank {
    width: 30px;
    text-align: left;
}

.leaderboard-list .name {
    flex: 1;
    text-align: left;
}

.leaderboard-list .score {
    text-align: right;
    color: var(--color-primary);
}

.leaderboard-empty {
    font-family: 'ASM', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    padding: 24px;
}

/* Skip intro hint */
.skip-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'ASM', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .game-container {
        padding: 12px;
        min-height: 400px;
        border-radius: 12px;
    }
    
    .game-intro {
        min-height: 300px;
    }
    
    #introCanvas {
        min-height: 280px;
    }
    
    .game-logo {
        font-size: 28px;
        letter-spacing: 2px;
    }
    
    .game-subtitle {
        font-size: 10px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .game-container {
        padding: 10px;
        min-height: 360px;
        border-radius: 10px;
    }
    
    .game-intro {
        min-height: 260px;
    }
    
    #introCanvas {
        min-height: 240px;
        max-height: 320px;
    }
    
    .game-screen {
        padding: 10px 0;
    }
    
    .game-logo {
        font-size: 24px;
        letter-spacing: 2px;
    }
    
    .btn-play {
        padding: 14px 32px;
        font-size: 14px;
    }
    
    .game-hud {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .touch-btn {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
    
    .touch-row {
        gap: 48px;
    }
    
    .game-over h2,
    .game-pause h2 {
        font-size: 24px;
    }
    
    .final-score span {
        font-size: 24px;
    }
    
    .game-over {
        padding: 16px 12px !important;
        max-width: 300px;
    }
    
    .jump-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
}

/* ============================================
   NO-VIDEO VARIANT (Option B)
   Add class 'no-video' to body for cleaner header
   ============================================ */
body.no-video .video-bg {
    display: none;
}

body.no-video {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

body.no-video .faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: radial-gradient(ellipse at top, rgba(243,171,14,0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* ============================================
   BOTTOM SCROLLING BANNER
   ============================================ */
.logo-band-bottom {
    /* Inherits from .logo-band - matches top banner */
}

/* ============================================
   TITLE POSITION SWITCHER
   ============================================ */
.title-switcher {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9998;
}

.title-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-toggle:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #000;
}

.title-panel {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 180px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.title-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.title-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.title-panel-header span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-primary);
}

.title-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.title-options {
    padding: 8px;
}

.title-option {
    width: 100%;
    display: block;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
}

.title-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.title-option.active {
    background: rgba(243, 171, 14, 0.15);
    color: var(--color-primary);
}

/* ============================================
   TITLE POSITION VARIANTS
   ============================================ */

/* Center Position - Title aligned with House Party logo */
body.title-center .faq-title {
    position: fixed;
    top: 38px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    font-size: 20px;
    margin: 0;
    letter-spacing: 3px;
    white-space: nowrap;
    line-height: 1;
}

body.title-center .faq-section {
    padding-top: 60px;
}

/* Overlay Position - Title over video */
body.title-overlay .faq-title {
    position: absolute;
    top: 50vh;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    font-size: clamp(48px, 12vw, 120px);
    margin: 0;
    letter-spacing: 12px;
    text-shadow: 0 4px 60px rgba(0, 0, 0, 0.8);
}

body.title-overlay .faq-section {
    padding-top: 60vh;
}

/* Compact Position - Smaller title */
body.title-compact .faq-title {
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 30px;
    letter-spacing: 4px;
}

body.title-compact .faq-section {
    padding-top: 40px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .title-switcher {
        bottom: 16px;
        left: 16px;
    }
    
    .title-toggle {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    
    /* Center title - keep in header on mobile too */
    body.title-center .faq-title {
        position: fixed;
        top: 32px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 14px;
        letter-spacing: 2px;
        margin: 0;
        line-height: 1;
    }
    
    body.title-center .faq-section {
        padding-top: 40px;
    }
    
    /* Other positions revert to default on mobile */
    body.title-overlay .faq-title,
    body.title-compact .faq-title {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        font-size: clamp(36px, 8vw, 48px);
        margin-bottom: 40px;
    }
    
    body.title-overlay .faq-section,
    body.title-compact .faq-section {
        padding-top: 40px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    body.title-center .faq-title {
        font-size: 12px;
        letter-spacing: 1px;
        top: 30px;
    }
}

/* ============================================
   KART RACER GAME STYLES
   ============================================ */

.kart-game-wrapper {
    text-align: center;
    padding: 20px 0;
}

.game-intro-text {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.game-hint {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    margin-top: 15px;
}

.game-kart-trigger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    color: #fff;
    padding: 18px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    font-family: inherit;
}

.game-kart-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.game-kart-trigger:active {
    transform: translateY(0);
}

.game-kart-trigger .kart-icon {
    font-size: 28px;
}
