@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;900&family=Quicksand:wght@400;600;700&family=Zen+Kaku+Gothic+New:wght@500;900&display=swap');

:root {
    --bg-color: #ffffff;
    --primary-pink: #ff7eb3;
    /* Softer, cute pink */
    --accent-blue: #7afcff;
    /* Pastel Cyan */
    --accent-purple: #c56cf0;
    /* Soft Purple */
    --text-main: #4a4a4a;
    --text-highlight: #ff6bae;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 126, 179, 0.3);
    --card-shadow: 0 10px 30px rgba(255, 126, 179, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #ffe6f2 0%, #f2e6ff 100%);
    color: var(--text-main);
    font-family: 'Quicksand', sans-serif;
    /* Rounder, cuter font */
    overflow-x: hidden;
    position: relative;
    /* Grid pattern removed as requested */
    min-height: 100vh;
}

/* Global Grid Texture */
/* Global Grid Texture */
.grid-bg {
    display: none;
}

.grid-highlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(255, 126, 179, 0.2) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 126, 179, 0.2) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(circle at var(--x, 50%) var(--y, 50%), black 0%, transparent 300px);
    -webkit-mask-image: radial-gradient(circle at var(--x, 50%) var(--y, 50%), black 0%, transparent 300px);
}

/* Dark Mode Grid Adjustments */
body.dark-mode .grid-bg {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

body.dark-mode .grid-highlight {
    background-image:
        linear-gradient(to right, rgba(255, 126, 179, 0.3) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 126, 179, 0.3) 1px, transparent 1px);
}

#games {
    scroll-margin-top: 100px;
    /* Offset for fixed header */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-pink);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header & Nav */
header {
    display: flex;
    justify-content: flex-start;
    gap: 50px;
    align-items: center;
    padding: 15px 50px;
    background: rgba(255, 255, 255, 0.85);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(45deg, var(--primary-pink), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary-pink);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.discord-header-link:hover img {
    transform: scale(1.15);
}

.discord-head.footer-social-link:hover svg {
    transform: scale(1.15);
}

/* Main Footer Illuminate Grid Effect */
.main-footer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ff7eb3 0%, #8b5cf6 100%) !important;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.main-footer:hover::before {
    opacity: 1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
}

/* Footer Nav Buttons */
.footer-nav-link {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-nav-link:hover {
    opacity: 1;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Scroll To Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: -80px;
    /* Hidden initially */
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-pink), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 126, 179, 0.4);
    z-index: 2000;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.scroll-top-btn.visible {
    bottom: 30px;
}

.scroll-top-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 126, 179, 0.6);
}

.scroll-top-btn svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.logo span {
    font-size: 0.9rem;
    color: var(--accent-purple);
    font-family: 'Zen Kaku Gothic New', sans-serif;
    background: #fff0f5;
    padding: 2px 8px;
    border-radius: 15px;
    border: 1px solid var(--primary-pink);
}

header nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

header nav a {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    padding: 8px 15px;
    border-radius: 20px;
}

header nav a:hover {
    background: linear-gradient(45deg, var(--primary-pink), var(--accent-purple));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 126, 179, 0.4);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    /* Fancy animated background removed */
    position: relative;
    padding-top: 0;
    /* Align center */
}

/* Decorative circles removed */

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--primary-pink), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.1));
}

.hero .jp-sub {
    font-size: 2rem;
    color: var(--accent-purple);
    font-family: 'Zen Kaku Gothic New', sans-serif;
    margin-bottom: 30px;
    letter-spacing: 5px;
    font-weight: 700;
}

.cta-button {
    padding: 15px 50px;
    background: var(--primary-pink);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1.2rem;
    font-family: 'Orbitron';
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-weight: 900;
}

.cta-button:hover {
    background: var(--accent-purple);
}

.faq-link-btn:hover {
    background: var(--accent-purple);
    transform: translateY(-2px);
}

/* Contact Page */
.contact-container {
    background: white;
    border: 2px solid rgba(255, 126, 179, 0.1);
}

/* Prices Page */
.prices-container {
    max-width: 800px;
    margin: 0 auto;
}

.price-category-card {
    margin-bottom: 50px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.price-category-title {
    color: var(--primary-pink);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.price-items-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #eee;
    padding-bottom: 15px;
}

.price-item:last-child {
    border-bottom: none;
}

.price-item-details {
    display: flex;
    flex-direction: column;
}

.price-item-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-main);
}

.price-item-subtitle {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
    margin-top: 4px;
}

.price-item-cost {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-purple);
    font-size: 1.1rem;
    white-space: nowrap;
}

/* --- Dark Mode Variables & Overrides --- */
body.dark-mode {
    --bg-color: #1a1a2e;
    /* Dark Purple/Navy */
    --text-main: #e0e0e0;
    --card-bg: #16213e;
    /* Darker Grey/Blue */
    --card-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
    /* Pure White Shadow for Dark Mode */
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

body.dark-mode header {
    background: rgba(26, 26, 46, 0.95);
    /* Semi-transparent dark bg */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dark Mode Specific Styles */
body.dark-mode .game-card,
body.dark-mode .price-category-card,
body.dark-mode .about-card,
body.dark-mode .contact-container,
/* Assuming contact container needs it */
body.dark-mode .content-container,
/* Generic container if used */
body.dark-mode .category-section {
    background: var(--card-bg) !important;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0px 15px rgba(255, 255, 255, 1);
    /* Smaller Pure White Glow */
    color: var(--text-main);
}

body.dark-mode .faq-item,
body.dark-mode .faq-item.active {
    background: var(--card-bg) !important;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: none !important;
    color: var(--text-main);
}

body.dark-mode .game-card:hover {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4) !important;
}

body.dark-mode .faq-question,
body.dark-mode .faq-answer {
    background: var(--card-bg) !important;
    color: var(--text-main) !important;
}

body.dark-mode .faq-question:hover {
    background: #1f2b4d !important;
}

body.dark-mode .faq-question h3 {
    color: white !important;
    /* Override black from previous step */
}

body.dark-mode .faq-answer p {
    color: white !important;
}

body.dark-mode .game-desc,
body.dark-mode .price-desc,
body.dark-mode p {
    color: white;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.1);
    /* Subtle white text shadow */
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
    /* White Text Drop Shadow */
}

body.dark-mode .main-footer {
    background: transparent;
    /* Keep footer transparent or distinct? */
    /* Footer text is already white, so it should be fine */
}

/* Ensure map container border matches dark mode */
body.dark-mode .map-container {
    border-color: #333;
}

/* Specific component overrides */
body.dark-mode .faq-toggle {
    color: white;
}

.location-section {
    background: linear-gradient(135deg, #fff5f9 0%, #fdf5ff 100%);
    padding: 80px 50px;
    position: relative;
}

body.dark-mode label {
    color: var(--accent-purple) !important;
}

body.dark-mode input,
body.dark-mode textarea {
    background: #0f1730 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

body.dark-mode input:focus,
body.dark-mode textarea:focus {
    border-color: var(--primary-pink) !important;
    background: #16213e !important;
}

body.dark-mode .location-section {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fix text colors staying white */
body.dark-mode .main-footer p,
body.dark-mode .main-footer a {
    color: white !important;
}

body.dark-mode .game-card:hover .game-desc,
body.dark-mode .hero-subtitle,
body.dark-mode .about-description,
body.dark-mode .maintenance-notice,
body.dark-mode .games-subtitle,
body.dark-mode .page-content p {
    color: white !important;
}

body.dark-mode .mini-visualizer .bar {
    background: rgba(255, 126, 179, 0.6) !important;
}

body.dark-mode .price-category-title {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .price-item {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .price-item-name {
    color: white;
}

body.dark-mode .price-item-subtitle {
    color: #ccc;
}

/* Featured Games Grid */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 80px 0 40px;
    color: var(--text-main);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '///';
    color: var(--primary-pink);
    margin-left: 10px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 10px 50px 40px;
    margin-top: 0;
}

/* Game Card Hover Effects */
.game-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: var(--card-shadow);
    transition: 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.game-card:hover {
    background: linear-gradient(180deg, var(--primary-pink), var(--accent-purple));
    box-shadow: 0 20px 40px rgba(197, 108, 240, 0.4);
    transform: translateY(-10px);
}

.card-media {
    position: relative;
    width: 100%;
    height: 480px;
    margin-bottom: 0px;
    border-radius: 0;
    overflow: hidden;
    background: #111;
    /* Dark background for the GIF to pop */
    display: flex;
    justify-content: center;
    align-items: center;
}

.cabinet-img {
    width: auto;
    max-width: 100%;
    height: 70%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    /* Make the cabinet appear slightly larger/closer */
    transition: transform 0.3s ease;
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.8));
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.game-card:hover .cabinet-img {
    transform: scale(1.1);
}

.game-card:hover .card-bg {
    opacity: 0.8;
}

.game-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 15px;
    font-size: 1.6rem;
    color: white;
    margin: 0;
    z-index: 3;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.game-desc {
    padding: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.game-card:hover .game-desc {
    color: white;
}

/* Mini Visualizer inside Card */
.mini-visualizer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    padding-bottom: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.game-card:hover .mini-visualizer {
    opacity: 1;
}

.mini-visualizer .bar {
    flex: 1;
    /* Take up available space evenly */
    background: rgba(255, 255, 255, 0.3);
    /* Less bright */
    border-radius: 4px 4px 0 0;
    animation: miniBounce 0.4s ease-out infinite;
    max-width: 8px;
    /* Constraint width */
    margin: 0 1px;
}

@keyframes miniBounce {
    0% {
        height: 4px;
    }

    5% {
        height: var(--target-height, 25px);
    }

    /* Slow decay */
    100% {
        height: 4px;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    background: white;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #888;
}

footer strong {
    color: var(--primary-pink);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    nav ul {
        display: none;
    }
}

/* Animation Classes */
.hero-anim {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1), transform 1s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.3s;
}

.hero-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

/* Blocky Visualizer Styles */
.visualizer-container {
    position: absolute;
    bottom: 10px;
    /* Raise 10px above bottom */
    left: 0;
    width: 100%;
    /* Anchor to full width of parent (hero) */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    height: 30vh;
    opacity: 0;
    transition: opacity 1s ease-in;
    z-index: 1;
    pointer-events: none;
    padding: 0 10px;
}

.bar {
    /* Dynamic width set by JS */
    width: var(--bar-size, 20px);

    /* 
       Gradient Strategy:
       1. Use a standard vertical CSS gradient for the colors (Pink -> Purple).
       2. Use 'mask-image' to create the transparent gaps between blocks.
       3. Use a fixed background-size height (e.g., 60vh) so color maps to absolute height.
          Short bars show only the bottom (Pink). Tall bars reach the top (Purple).
    */
    background: linear-gradient(to top,
            rgba(255, 105, 180, 0.5) 0%,
            var(--accent-purple) 100%);
    background-size: 100% 50vh;
    /* Gradient spans 50vh */
    background-position: bottom center;
    background-repeat: no-repeat;

    /* Mask creates the blocks */
    -webkit-mask-image: repeating-linear-gradient(to top,
            black 0px,
            black var(--bar-size),
            transparent var(--bar-size),
            transparent calc(var(--bar-size) + 4px));
    mask-image: repeating-linear-gradient(to top,
            black 0px,
            black var(--bar-size),
            transparent var(--bar-size),
            transparent calc(var(--bar-size) + 4px));

    border-radius: 0;
    height: 10%;

    /* Allow elevating the bar from the bottom */
    position: relative;
    bottom: var(--bottom-offset, 0px);

    /* Animation definition split to allow JS to control Duration */
    animation-name: equalizer;
    animation-timing-function: linear;
    /* Keyframes handle the easing now */
    animation-iteration-count: infinite;
}

@keyframes equalizer {
    0% {
        height: 10%;
        animation-timing-function: ease-out;
        /* Fast pop up */
    }

    15% {
        height: var(--target-height);
        /* Strong easing: High hang time, but smoother fall than before */
        animation-timing-function: cubic-bezier(0.75, 0.02, 0.85, 0.2);
    }

    100% {
        height: 10%;
    }
}

/* Fixing background-clip lint */
.some-selector {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Visualizer Mask Overlay */
.visualizer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    /* Sit on top of bars */
    pointer-events: none;
    /* Radial mask: Transparent center, White edges */
    background: radial-gradient(circle at 50% 100%, transparent 600px, #ffffff 601px);
}

/* Allow visualizer bars to overflow their container freely */
.visualizer-container {
    overflow: visible !important;
}

/* Ripple Effect */
@keyframes ripple {
    0% {
        transform: scaleY(1);
        filter: brightness(1);
    }

    50% {
        transform: scaleY(1.5);
        filter: brightness(3);
        background: white;
    }

    100% {
        transform: scaleY(1);
        filter: brightness(1);
    }
}

.bar.rippling {
    animation: ripple 0.3s ease-out !important;
    transform-origin: bottom;
}

/* Scrolling Bar Styles */
.scrolling-bar {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, var(--primary-pink), var(--accent-purple));
    padding: 35px 0;
    margin: 60px 0 40px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
    box-shadow: 0 5px 15px rgba(255, 126, 179, 0.4);
}

.scrolling-bar::before,
.scrolling-bar::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 6px;
    background: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 25px rgba(255, 255, 255, 0.8);
}

.scrolling-bar::before {
    top: 10px;
}

.scrolling-bar::after {
    bottom: 10px;
}

.scrolling-content {
    display: flex;
    animation: scrollText 20s linear infinite;
}

.scrolling-content span {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: transparent;
    /* Outline style */
    -webkit-text-stroke: 2px white;
    margin: 0 40px;
    letter-spacing: 5px;
    opacity: 0.9;
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.games-subtitle {
    text-align: center;
    width: 100%;
    max-width: none;
    margin: 0 auto 20px;
    font-size: 1.2rem;
    color: #666;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    padding: 0 20px;
    white-space: nowrap;
}

.page-content {
    padding-top: 120px;
    padding-left: 50px;
    padding-right: 50px;
    padding-bottom: 20px;
    min-height: 80vh;
}

.page-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(45deg, var(--primary-pink), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: center;
    color: var(--text-main);
}

/* FAQ Styles */
.faq-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background: #fcfcfc;
}

.faq-question h3 {
    color: #000;
    font-size: 1.2rem;
    margin: 0;
    flex: 1;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: bold;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: #fff;
    border-top: 1px solid transparent;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    text-align: left;
    font-weight: 600;
}

/* Active State */
.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--accent-purple);
}

.faq-item.active .faq-answer {
    padding: 20px 25px 25px;
    max-height: 500px;
    /* Arbitrary large height */
    border-top: 1px solid #f0f0f0;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   All styles below only apply to screens <= 768px
   Desktop view remains completely unchanged
   ============================================ */

/* Mobile Controls (Menu + Theme) - Hidden on Desktop */
.mobile-controls {
    display: none;
}

@media (max-width: 768px) {

    /* Header Adjustments */
    header {
        padding: 10px 15px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 1.4rem;
    }

    .logo-img {
        height: 28px;
    }

    /* Hide desktop nav, show hamburger */
    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    body.dark-mode header nav {
        background: rgba(26, 26, 46, 0.98);
    }

    header nav.mobile-active {
        display: block;
    }

    header nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    header nav ul li {
        width: 100%;
    }

    header nav a {
        display: block;
        padding: 15px 20px;
        border-radius: 0;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    body.dark-mode header nav a {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    header nav a:hover {
        transform: none;
        box-shadow: none;
    }

    /* Mobile Controls Container */
    .mobile-controls {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-left: auto;
        z-index: 1001;
    }

    /* Hamburger Button */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        margin: 0;
    }

    .mobile-menu-toggle span {
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-pink), var(--accent-purple));
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Hide header social icons on mobile */
    header>div[style*="margin-left: auto"] {
        display: none !important;
    }

    /* Hero Section */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 20px 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .jp-sub {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .hero-anim[style*="font-size: 1.2rem"] {
        font-size: 1rem !important;
        padding: 0 15px !important;
    }

    .cta-button {
        padding: 12px 35px;
        font-size: 1rem;
    }

    /* Visualizer - Visible on mobile but no elevation */
    .visualizer-container {
        display: flex;
        bottom: 0 !important;
        /* Force to bottom */
        padding-bottom: 0 !important;
        /* Remove any padding pushing it up */
        height: 30vh;
        /* Increased height for mobile */
        align-items: flex-end;
    }

    .bar {
        background-size: 100% 50vh;
        bottom: 0 !important;
        /* Force bars to ground */
        --bottom-offset: 0px !important;
        /* Override any JS offset */
    }

    /* Games Grid */
    .games-grid {
        padding: 10px 15px 40px;
        gap: 25px;
        grid-template-columns: 1fr;
    }

    .card-media {
        height: 350px;
    }

    .game-title {
        font-size: 1.3rem;
    }

    .games-subtitle {
        font-size: 0.95rem;
        white-space: normal;
        padding: 0 15px;
    }

    /* Scrolling Bar */
    .scrolling-bar {
        padding: 20px 0;
        margin: 40px 0 25px;
    }

    .scrolling-content span {
        font-size: 2rem;
        margin: 0 20px;
        -webkit-text-stroke: 1.5px white;
    }

    /* Location Section */
    .location-section {
        padding: 50px 20px;
    }

    .location-section>div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .location-section h2 {
        font-size: 1.6rem !important;
    }

    .location-section div[style*="height: 500px"] {
        height: 300px !important;
    }

    .location-section div[style*="grid-template-columns: 120px 1fr"] {
        grid-template-columns: 100px 1fr !important;
        font-size: 1rem !important;
    }

    /* Page Content */
    .page-content {
        padding: 100px 20px 20px;
    }

    .page-content h1 {
        font-size: 2rem;
    }

    /* Prices */
    .prices-container {
        padding: 0 15px;
    }

    .price-category-card {
        padding: 20px;
    }

    .price-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .price-item-cost {
        align-self: flex-end;
    }

    /* FAQ */
    .faq-question h3 {
        font-size: 1rem;
    }

    /* Footer */
    .main-footer {
        padding: 40px 0 !important;
    }

    .main-footer>div[style*="max-width: 1200px"] {
        padding: 0 20px !important;
    }

    .main-footer div[style*="display: flex"][style*="justify-content: space-between"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
        text-align: center !important;
    }

    .main-footer div[style*="display: flex"][style*="align-items: center"][style*="gap: 30px"] {
        flex-direction: column !important;
        align-items: center !important;
    }

    .main-footer div[style*="border-left: 1px solid"] {
        border-left: none !important;
        padding-left: 0 !important;
        align-items: center !important;
    }

    .main-footer div[style*="align-items: flex-end"][style*="text-align: right"] {
        align-items: center !important;
        text-align: center !important;
    }

    .main-footer nav ul {
        gap: 15px !important;
        font-size: 0.85rem !important;
    }

    .main-footer img[style*="height: 60px"] {
        height: 45px !important;
    }

    /* Scroll to top button */
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        right: 15px;
    }

    .scroll-top-btn.visible {
        bottom: 15px;
    }

    /* About Us page adjustments */
    .about-card {
        padding: 20px !important;
    }

    /* Contact page adjustments */
    .contact-container {
        padding: 20px !important;
        margin: 0 15px !important;
    }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .jp-sub {
        font-size: 1rem;
    }

    .card-media {
        height: 280px;
    }

    .scrolling-content span {
        font-size: 1.5rem;
        margin: 0 15px;
    }

    .page-content h1 {
        font-size: 1.6rem;
    }

    .main-footer nav ul {
        gap: 10px !important;
        font-size: 0.75rem !important;
    }
}