:root {
    --primary-bg: #121318;
    --secondary-bg: #1a1c23;
    --surface-card: #21242d;
    --surface-border: #2f3340;
    --primary-text: #f1f3f9;
    --secondary-text: #9ba1b6;
    --muted-text: #676d82;
    --accent-primary: #7c3aed;
    --accent-hover: #6d28d9;
    --accent-light: #a78bfa;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out, box-shadow 0.3s ease-in-out;
}

button:active {
    transform: scale(0.98);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: inherit;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
}

#cookieConsentModal {
    display: block;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
    }

    h2 {
        font-size: clamp(1.5rem, 4vw, 1.875rem);
    }

    h3 {
        font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    }

    h4 {
        font-size: 1.125rem;
    }

    h5 {
        font-size: 1rem;
    }

    a[href^="mailto:"],
    a[href^="tel:"],
    .break-word-mobile {
        overflow-wrap: break-word;
        word-break: break-all;
    }
}

/* ===== site_header ===== */
html {
    scroll-behavior: smooth;
}

#site-header {
    background-color: #121318;
    border-color: #2f3340;
}

.mobile-menu-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.mobile-menu-drawer.open {
    max-height: 380px;
}

/* ===== hero_showcase ===== */
#hero {
    overflow: hidden;
}

#hero a,
#hero button {
    touch-action: manipulation;
}

/* ===== about_store ===== */
#about {
    overflow: hidden;
    background-color: var(--primary-bg);
    color: var(--primary-text);
}

#about .js-about-card {
    will-change: transform, border-color;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

#about .js-about-card:hover {
    transform: translateY(-3px);
}

/* ===== shop_categories ===== */
#categories {
    overflow: hidden;
    width: 100%;
    hyphens: auto;
}

#categories h2,
#categories h3 {
    line-height: 1.25;
}

/* ===== product_catalog ===== */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#catalog select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ba1b6'%3e%3cpath d='M12 16L6 10H18L12 16Z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 14px;
    padding-right: 2rem;
}

/* ===== games_by_genre ===== */
#genres {
    overflow: hidden;
    width: 100%;
    background-color: var(--primary-bg, #121318);
}

#genres .js-genre-card {
    background-color: var(--surface-card, #21242d);
    border-color: var(--surface-border, #2f3340);
}

#genres .js-genre-card:hover {
    border-color: var(--accent-primary, #7c3aed);
}

/* ===== new_releases ===== */
#new-arrivals {
    overflow: hidden;
    hyphens: auto;
}

#new-arrivals .js-filter-btn.active {
    background-color: #7c3aed;
    border-color: #7c3aed;
    color: #ffffff;
}

#new-arrivals .js-filter-btn.active i {
    color: #ffffff;
}

#new-arrivals .js-release-card {
    min-height: 100%;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

#new-arrivals .js-release-card:hover {
    transform: translateY(-2px);
}

/* ===== gaming_interests ===== */
#curations {
    overflow: hidden;
}

/* ===== workspace_accessories ===== */
#setup-gear {
    overflow: hidden;
}

#gear-modal:not(.hidden) {
    display: flex;
}

/* ===== spec_comparison ===== */
#comparison {
    overflow: hidden;
    hyphens: auto;
}

#comparison table {
    width: 100%;
    border-spacing: 0;
}

#comparison th,
#comparison td {
    vertical-align: middle;
}

#comparison .scrollbar-thin::-webkit-scrollbar {
    height: 6px;
}

#comparison .scrollbar-thin::-webkit-scrollbar-track {
    background: #121318;
    border-radius: 3px;
}

#comparison .scrollbar-thin::-webkit-scrollbar-thumb {
    background: #2f3340;
    border-radius: 3px;
}

#comparison .scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

/* ===== how_it_works ===== */
#process {
    overflow: hidden;
}

#process .js-process-tab {
    outline: none;
}

#process .js-process-tab.active {
    background-color: #7c3aed;
    color: #f1f3f9;
}

#process .js-process-tab:not(.active) {
    background-color: transparent;
    color: #9ba1b6;
}

#process .js-process-panel {
    width: 100%;
}

/* ===== buyer_reviews ===== */
#reviews {
    overflow: hidden;
}

#reviews .max-w-7xl {
    width: 100%;
}

/* ===== frequently_asked_questions ===== */
#faq {
    overflow: hidden;
}

#faq .js-faq-content {
    max-height: 0;
}

#faq .is-active .js-faq-content {
    max-height: 240px;
}

#faq .is-active .js-faq-icon {
    transform: rotate(180deg);
    color: var(--accent-light);
}

#faq .is-active {
    border-color: var(--accent-primary);
}

/* ===== order_and_inquiry_form ===== */
#contact {
    overflow: hidden;
}

#contact input::placeholder,
#contact textarea::placeholder {
    color: #676d82;
}

#contact select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ba1b6'%3e%3cpath d='M12 16L6 10H18L12 16Z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

/* ===== footer ===== */
#site-footer {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

#site-footer a {
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}