@font-face {
    font-family: 'SF Pro Display';
    src: url('../fonts/SF-Pro.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro Text';
    src: url('../fonts/SF-Pro.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-tertiary: #e8e8ed;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    --accent-color: #007AFF;
    --accent-hover: #0051D5;
    --border-color: #d2d2d7;
    --card-bg: #ffffff;
    --navbar-bg: rgba(255, 255, 255, 0.8);
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #1c1c1e;
    --bg-tertiary: #2c2c2e;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #8e8e93;
    --accent-color: #0A84FF;
    --accent-hover: #409CFF;
    --border-color: #38383a;
    --card-bg: #1c1c1e;
    --navbar-bg: rgba(28, 28, 30, 0.8);
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #000000;
}

body {
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

body.page-transition {
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

body.page-transition.page-ready {
    opacity: 1;
    transform: translateX(0);
}

body.page-transition.page-enter-from-right {
    transform: translateX(24px);
}

body.page-transition.page-enter-from-left {
    transform: translateX(-24px);
}

body.page-transition.page-exit-to-right {
    opacity: 0;
    transform: translateX(24px);
}

body.page-transition.page-exit-to-left {
    opacity: 0;
    transform: translateX(-24px);
}

[data-reduce-motion="true"] * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

[data-reduce-motion="true"] .feature-card:hover,
[data-reduce-motion="true"] .about-item:hover,
[data-reduce-motion="true"] .game-card:hover,
[data-reduce-motion="true"] .feature-card:hover .feature-icon,
[data-reduce-motion="true"] .feature-card:hover .feature-arrow,
[data-reduce-motion="true"] .about-item:hover .about-icon {
    transform: none !important;
}

[data-disable-blur="true"] .navbar,
[data-disable-blur="true"] .navbar.floating {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    box-shadow: none !important;
}

[data-disable-blur="true"] .feature-card,
[data-disable-blur="true"] .about-item,
[data-disable-blur="true"] .game-card,
[data-disable-blur="true"] .disclaimer {
    box-shadow: none !important;
}

[data-disable-blur="true"] .feature-icon,
[data-disable-blur="true"] .about-icon {
    filter: none !important;
}

[data-disable-blur="true"] .aurora__item {
    filter: none !important;
}

[data-disable-fancy="true"] .aurora {
    display: none;
}

[data-disable-fancy="true"] .scroll-indicator {
    animation: none !important;
}

[data-disable-fancy="true"] .feature-card::before,
[data-disable-fancy="true"] .about-item::before {
    display: none !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--navbar-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid transparent;
    border-bottom-color: var(--border-color);
    border-radius: 0;
    margin: 0;
    transition: margin 0.4s ease-in-out, top 0.4s ease-in-out, border-radius 0.4s ease-in-out, border-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out, background-color 0.4s ease-in-out;
}

.navbar.floating {
    top: 12px;
    margin: 0 max(12px, calc((100% - 1200px) / 2));
    border-radius: 16px;
    border-color: var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-hover);
}

[data-reduce-motion="true"] .navbar {
    transition: none;
}

@media (max-width: 1024px) {
    .navbar.floating {
        top: 0;
        margin: 0;
        border-radius: 0;
    }
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-logo {
    font-family: 'SF Pro Display', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    position: absolute;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo__img {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    flex-shrink: 0;
    object-fit: contain;
    display: none !important;
}

.nav-logo__text {
    display: inline-flex;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    justify-content: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 400;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 12px;
    margin-right: 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-toggle:hover {
    background: var(--bg-tertiary);
}

.nav-toggle__bar {
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    display: block;
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 900;
}

.nav-links a:hover {
    color: var(--text-primary);
    background-color: color-mix(in srgb, var(--bg-tertiary) 50%, transparent);
}

.nav-links a.active {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
    font-weight: 500;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: absolute;
    right: 20px;
}

.theme-toggle:hover {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="light"] .moon-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: block;
}

[data-theme="light"] .sun-icon {
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 140px);
}

.page-content {
    padding-top: 80px;
    padding-bottom: 40px;
}

.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 9999px; /* Apple pill button */
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease, opacity 0.2s ease;
}

.btn-primary:active {
    transform: scale(0.96);
    opacity: 0.8;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #ffffff;
}

.btn-secondary {
    display: inline-block;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 9999px;
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease, opacity 0.2s ease;
}

.btn-secondary:active {
    transform: scale(0.96);
    opacity: 0.8;
}

.btn-secondary:hover {
    background-color: color-mix(in srgb, var(--bg-tertiary) 80%, var(--text-primary));
}

.btn-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease;
}

.btn-filter:active {
    transform: scale(0.95);
}

.btn-filter:hover {
    background-color: color-mix(in srgb, var(--bg-tertiary) 85%, var(--text-primary));
}

.btn-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    transition: all 0.2s ease;
}

.btn-close:hover {
    background-color: var(--bg-secondary);
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.modal.is-open {
    display: flex;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal__content {
    position: relative;
    width: min(520px, 92vw);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 50px var(--shadow-hover);
    padding: 24px;
    z-index: 1;
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.modal__header h2 {
    font-size: 22px;
}

.modal__close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
}

.modal__close:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.modal__body {
    color: var(--text-secondary);
    font-size: 15px;
    display: grid;
    gap: 12px;
}

.modal__body strong {
    color: var(--text-primary);
}

.modal__actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.theme-selector {
    display: flex;
    gap: 12px;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background-color: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
}

.theme-option:hover {
    background-color: var(--bg-tertiary);
}

.theme-option.active {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 10px 20px color-mix(in srgb, var(--accent-color) 30%, transparent);
}

.color-selector {
    display: flex;
    gap: 12px;
}

.color-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px var(--bg-primary);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 31px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    border-radius: 31px;
    transition: all 0.3s ease;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 27px;
    width: 27px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-slider {
    background-color: var(--accent-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.hero {
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    animation: scroll-bounce 2s ease-in-out infinite;
    cursor: pointer;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
    50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

.content {
    text-align: center;
    width: 100%;
    margin-top: -55px;
}

.title {
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.title-prefix {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #fff;
}

.title-main {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    letter-spacing: clamp(-1.75px, -0.25vw, -3.5px);
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.1;
}

.subtitle {
    font-size: 24px;
    color: var(--text-secondary);
    font-weight: 400;
}

.aurora {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 120%;
    z-index: 2;
    mix-blend-mode: darken;
    pointer-events: none;
}

[data-theme="light"] .aurora {
    display: none;
}

.aurora__item {
    overflow: hidden;
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 37% 29% 27% 27% / 28% 25% 41% 37%;
    filter: blur(1rem);
    mix-blend-mode: overlay;
    opacity: 0.7;
}

[data-theme="light"] .aurora__item {
    opacity: 0.4;
}

.aurora__item:nth-of-type(1) {
    background-color: #00c2ff;
    top: -50%;
    animation: aurora-border 6s ease-in-out infinite,
        aurora-1 12s ease-in-out infinite alternate;
}

.aurora__item:nth-of-type(2) {
    background-color: #ffc640;
    right: 0;
    top: 0;
    animation: aurora-border 6s ease-in-out infinite,
        aurora-2 12s ease-in-out infinite alternate;
}

.aurora__item:nth-of-type(3) {
    background-color: #33ff8c;
    left: 0;
    bottom: 0;
    animation: aurora-border 6s ease-in-out infinite,
        aurora-3 8s ease-in-out infinite alternate;
}

.aurora__item:nth-of-type(4) {
    background-color: #e54cff;
    right: 0;
    bottom: -50%;
    animation: aurora-border 6s ease-in-out infinite,
        aurora-4 24s ease-in-out infinite alternate;
}

@keyframes aurora-1 {
    0% { top: 0; right: 0; }
    50% { top: 100%; right: 75%; }
    75% { top: 100%; right: 25%; }
    100% { top: 0; right: 0; }
}

@keyframes aurora-2 {
    0% { top: -50%; left: 0%; }
    60% { top: 100%; left: 75%; }
    85% { top: 100%; left: 25%; }
    100% { top: -50%; left: 0%; }
}

@keyframes aurora-3 {
    0% { bottom: 0; left: 0; }
    40% { bottom: 100%; left: 75%; }
    65% { bottom: 40%; left: 50%; }
    100% { bottom: 0; left: 0; }
}

@keyframes aurora-4 {
    0% { bottom: -50%; right: 0; }
    50% { bottom: 0%; right: 40%; }
    90% { bottom: 50%; right: 25%; }
    100% { bottom: -50%; right: 0; }
}

@keyframes aurora-border {
    0% { border-radius: 37% 29% 27% 27% / 28% 25% 41% 37%; }
    25% { border-radius: 47% 29% 39% 49% / 61% 19% 66% 26%; }
    50% { border-radius: 57% 23% 47% 72% / 63% 17% 66% 33%; }
    75% { border-radius: 28% 49% 29% 100% / 93% 20% 64% 25%; }
    100% { border-radius: 37% 29% 27% 27% / 28% 25% 41% 37%; }
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-secondary);
    font-weight: 400;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 80px;
    scroll-margin-top: 120px;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 24px 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px var(--shadow-hover);
    border-color: var(--accent-color);
    color: inherit;
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-card--horizontal {
    display: flex;
    align-items: center;
    gap: 20px;
}

.feature-card--horizontal .feature-icon {
    font-size: 100px;
    flex-shrink: 0;
    margin-bottom: 0;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-arrow {
    flex-shrink: 0;
    color: var(--text-tertiary);
    transition: all 0.3s ease;
    margin-left: auto;
}

.feature-card:hover .feature-arrow {
    color: var(--accent-color);
    transform: translateX(4px);
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.feature-text h2 {
    font-size: 26px;
    color: var(--text-primary);
    margin: 20px 0 0 0;
}

.feature-text p {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 15px;
}

.about {
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    border: none;
    margin-bottom: 40px;
}

.about h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about p {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 40px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.about-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 24px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px var(--shadow-hover);
    border-color: var(--accent-color);
}

.about-item:hover::before {
    opacity: 0.05;
}

.about-item > * {
    position: relative;
    z-index: 1;
}

.about-icon {
    font-size: 48px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.about-item:hover .about-icon {
    transform: scale(1.15);
}

.about-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.about-item p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.disclaimer {
    padding: 32px;
    background-color: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
    text-align: center;
}

.disclaimer h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.disclaimer p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    max-width: 900px;
    margin: 0 auto;
}

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

.games-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.games-title-section h1 {
    font-size: 48px;
    margin-bottom: 8px;
}

.games-subtitle {
    color: var(--text-secondary);
    font-size: 20px;
    margin-bottom: 0;
    position: relative;
}

.games-subtitle-text {
    display: inline-block;
    animation: textEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.games-subtitle-text.exit {
    animation: textExit 0.5s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes textEnter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes textExit {
    to {
        opacity: 0;
        transform: translateY(-12px) scale(0.95);
    }
}

.games-counter {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.games-counter__number {
    font-size: 56px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-color), #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: lining-nums;
    font-feature-settings: "tnum", "lnum";
    letter-spacing: -0.03em;
    line-height: 1;
    display: block;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent-color) 50%, transparent));
    }
    50% {
        filter: drop-shadow(0 0 16px color-mix(in srgb, var(--accent-color) 70%, transparent));
    }
}

.games-counter__label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.games-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.games-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.search-bar {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-tertiary);
    border: none;
    border-radius: 9999px;
    padding: 10px 18px;
    color: var(--text-secondary);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar:focus-within {
    background-color: var(--bg-secondary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color) 20%, transparent);
}

.search-bar input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 500;
}

.search-bar input::placeholder {
    color: var(--text-tertiary);
}

.filter-panel {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2000;
    padding: 24px;
}

.filter-panel.active {
    display: flex;
}

.filter-modal {
    width: min(640px, 100%);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 20px 60px var(--shadow-hover);
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 18px;
    padding: 20px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.filter-header h3 {
    font-size: 24px;
    margin: 0;
}

.filter-eyebrow {
    font-size: 12px;
    color: var(--text-tertiary);
    margin: 0 0 4px 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.filter-content {
    display: grid;
    gap: 20px;
}

.filter-group {
    display: grid;
    gap: 12px;
}

.filter-group__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-group__head h4 {
    font-size: 18px;
    margin: 0;
}

.filter-group__hint {
    font-size: 13px;
    color: var(--text-tertiary);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.filter-card__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.filter-option {
    display: grid;
    align-items: center;
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-secondary);
}

.filter-option input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
    background: var(--bg-primary);
}

.filter-option input:checked {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color) 18%, transparent);
}

.filter-option input:checked::before {
    content: '\2713';
    color: white;
    font-size: 12px;
    line-height: 1;
}

.filter-option:hover {
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 32px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 9999px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease;
}

.filter-chip:active {
    transform: scale(0.95);
}

.filter-chip:hover {
    background-color: color-mix(in srgb, var(--bg-tertiary) 80%, var(--text-primary));
}

.filter-chip--ghost {
    cursor: default;
    color: var(--text-tertiary);
}

.filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 4px;
}

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

.pagination {
    margin: 28px 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pagination button {
    min-width: 38px;
    height: 38px;
    border-radius: 9999px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease, opacity 0.2s ease;
}

.pagination button:active:not(:disabled) {
    transform: scale(0.92);
}

.pagination button:hover:not(.active):not(:disabled) {
    background-color: color-mix(in srgb, var(--bg-tertiary) 85%, var(--text-primary));
}

.pagination button.active {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent-color) 40%, transparent);
}

.pagination button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.game-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--border-color) 40%, transparent);
    padding: 16px 20px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--shadow) 20%, transparent);
}

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

.game-card:hover {
    transform: translateY(-2px) scale(1.01);
    border-color: color-mix(in srgb, var(--border-color) 80%, transparent);
    box-shadow: 0 12px 24px color-mix(in srgb, var(--shadow) 40%, transparent);
}

.game-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
}

.game-accent {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2), 0 2px 6px color-mix(in srgb, currentColor 20%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 20%, rgba(0,0,0,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.game-fav-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 0.9; }
}

.game-placeholder {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: rgba(0,0,0,0.8);
    text-shadow: 0 10px 30px rgba(0,0,0,0.25);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: opacity 0.2s ease;
    position: relative;
    z-index: 1;
}

.game-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 62px; /* Uniform height for 1 or 2 lines */
}

.game-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: -0.012em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.game-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.game-category-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: none;
}

.game-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.coming-soon-content {
    text-align: center;
    padding: 40px;
}

.coming-soon-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.coming-soon-content h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.coming-soon-content h2 {
    font-size: 32px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

.coming-soon-content p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 32px;
}

.settings-page h1 {
    font-size: 48px;
    margin-bottom: 8px;
}

.settings-subtitle {
    color: var(--text-secondary);
    font-size: 20px;
    margin-bottom: 40px;
}

.settings-section {
    background-color: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 24px;
}

.settings-section__head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.settings-section__head p {
    color: var(--text-secondary);
    font-size: 14px;
}

.settings-section h2 {
    font-size: 24px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info h3 {
    font-size: 17px;
    margin-bottom: 4px;
    font-weight: 500;
}

.setting-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

.setting-control {
    flex-shrink: 0;
}

.settings-select {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 15px;
    min-width: 120px;
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.settings-select--pill {
    border-radius: 12px;
    padding: 12px 14px;
    min-width: 160px;
}

.settings-actions {
    text-align: center;
    margin-top: 32px;
}

.settings-actions--card {
    text-align: left;
}

.settings-card--actions {
    background: var(--bg-secondary);
    border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
}

.settings-row--tight {
    padding: 16px 0;
}

.settings-version {
    margin-top: 18px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 13px;
}

.theme-selector--pill {
    display: inline-flex;
    padding: 6px;
    border-radius: 999px;
    background: var(--bg-tertiary);
    border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
    gap: 0;
}

.theme-selector--pill .theme-option {
    border-radius: 999px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    flex-direction: row;
    gap: 5px;
    flex-shrink: 0;
}

.theme-selector--pill .theme-option:hover {
    background: transparent;
    color: var(--text-primary);
}

.theme-selector--pill .theme-option svg {
    width: 16px;
    height: 16px;
}

.theme-selector--pill .theme-option.active {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 8px 16px color-mix(in srgb, var(--accent-color) 25%, transparent);
}

.color-selector--pill {
    display: inline-flex;
    padding: 6px;
    gap: 8px;
    border-radius: 999px;
    background: var(--bg-tertiary);
    border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
}

.color-selector--pill .color-option {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.color-selector--pill .color-option:hover {
    transform: scale(1.1);
}

.color-selector--pill .color-option.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px var(--accent-color), 0 4px 12px color-mix(in srgb, var(--accent-color) 40%, transparent);
}

.settings-input {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 15px;
    min-width: 220px;
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.settings-input--large {
    min-width: min(360px, 100%);
    padding: 12px 14px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg-secondary) 85%, var(--bg-primary));
}

.settings-caption {
    display: block;
    margin-top: 8px;
    color: var(--text-tertiary);
    font-size: 12px;
}

.settings-card {
    background: var(--bg-secondary);
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--border-color) 80%, transparent);
    padding: 8px 20px;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--shadow) 40%, transparent);
}

.settings-row {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(260px, 1.1fr);
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-label h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.settings-label p {
    font-size: 13px;
    color: var(--text-secondary);
}

.settings-section--disguise .setting-item {
    border-bottom: none;
    padding: 0;
}

.segment-control {
    display: inline-flex;
    align-items: stretch;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: var(--bg-tertiary);
    border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
}

.segment-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.segment-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segment-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.segment-option input:checked + span {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 10px 20px color-mix(in srgb, var(--accent-color) 30%, transparent);
}

.segment-option input:focus-visible + span {
    outline: 2px solid color-mix(in srgb, var(--accent-color) 50%, transparent);
    outline-offset: 2px;
}

.file-chip {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    cursor: pointer;
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    transition: all 0.2s ease;
}

.file-chip__cta {
    color: var(--accent-color);
    font-weight: 600;
}

.file-chip__name {
    color: var(--text-secondary);
}

.file-chip input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.file-chip:focus-within,
.file-chip:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--accent-color) 18%, transparent);
}

.game-play-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.game-title-section h1 {
    margin: 0;
    font-size: 2.5rem;
}

.game-actions {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    padding: 6px 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    border: none;
    background: color-mix(in srgb, var(--bg-tertiary) 60%, transparent);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--shadow) 40%, transparent);
}

.action-button:hover {
    transform: scale(1.05);
    background: color-mix(in srgb, var(--bg-tertiary) 80%, var(--text-primary) 5%);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--shadow) 50%, transparent);
}

.action-button:active {
    transform: scale(0.95);
}

.action-button__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.action-button--pill {
    width: auto;
    padding: 0 20px;
    gap: 8px;
}

.action-button--solid {
    background: var(--accent-color);
    color: white;
}

.action-button--solid:hover {
    background: color-mix(in srgb, var(--accent-color) 85%, white);
}

.action-button.is-active svg {
    fill: #F59E0B;
    stroke: #F59E0B;
    filter: drop-shadow(0 0 6px color-mix(in srgb, #F59E0B 40%, transparent));
}

.game-frame-container {
    position: relative;
    width: 100%;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.game-frame {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

.game-frame.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    border-radius: 0;
}

.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.fullscreen-overlay.active {
    display: block;
}

.game-servers {
    background: linear-gradient(145deg, var(--card-bg), var(--bg-secondary));
    padding: 1.75rem;
    border-radius: 18px;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 16px 40px var(--shadow-hover);
}

.game-servers h3 {
    margin: 0 0 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.game-servers .servers-hint {
    color: var(--text-secondary);
    margin: 0 0 18px 0;
    font-size: 14px;
}

.server-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.server-button {
    padding: 12px 14px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px var(--shadow);
}

.server-button:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-1px);
}

.server-button.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--accent-color) 30%, transparent);
}

.recommendations-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.recommendations-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .navbar {
        padding: 8px 0;
        margin: 10px 12px 0;
        border-radius: 16px;
        top: 12px;
        max-width: calc(100% - 24px);
        border-color: var(--border-color);
        box-shadow: 0 8px 32px var(--shadow-hover);
    }

    .nav-content {
        justify-content: center;
        padding: 0 12px;
        position: relative;
    }

    .nav-logo {
        position: absolute;
        left: 14px;
    }

    .nav-logo__img {
        display: block !important;
    }

    .nav-logo__text {
        display: none !important;
    }

    .nav-toggle {
        display: flex;
        margin: 0 auto;
        position: relative;
        z-index: 1200;
    }

    .theme-toggle {
        position: absolute;
        right: 14px;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 10px;
        right: 10px;
        width: auto;
        height: auto;
        max-height: 70vh;
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        background: linear-gradient(135deg, var(--card-bg), var(--bg-secondary));
        border: 1px solid var(--border-color);
        border-radius: 16px;
        box-shadow: 0 16px 32px var(--shadow-hover);
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
        transition: transform 0.25s ease, opacity 0.25s ease;
        pointer-events: none;
        z-index: 1150;
        overflow-y: auto;
    }

    body.nav-open .nav-links {
        opacity: 1;
        transform: translateY(8px) scale(1);
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        font-size: 16px;
        padding: 12px 14px;
        border-radius: 12px;
        border: 1px solid transparent;
    }

    .nav-links a.active,
    .nav-links a:hover {
        background: var(--bg-tertiary);
        border-color: var(--border-color);
    }

    body.nav-open .mobile-nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .hero {
        height: auto;
        padding: 120px 20px 80px;
    }

    .scroll-indicator {
        bottom: 18px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .filter-modal {
        width: 100%;
        max-height: 82vh;
        overflow-y: auto;
    }
}

@media (min-width: 1025px) {
    .nav-logo__img {
        display: none !important;
    }

    .nav-logo__text {
        display: inline-flex !important;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .title-main {
        font-size: clamp(2.6rem, 9vw, 3.6rem);
    }

    .subtitle {
        font-size: 18px;
        line-height: 1.4;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .feature-card--horizontal {
        flex-direction: column;
        text-align: center;
    }

    .feature-card--horizontal .feature-icon {
        margin: 0;
    }

    .feature-text {
        text-align: center;
        align-items: center;
    }

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

    .filter-panel {
        width: 100%;
        right: -100%;
    }

    .theme-selector {
        flex-direction: column;
    }

    .theme-option {
        flex-direction: row;
        justify-content: flex-start;
        width: 100%;
    }

    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .game-title-section h1 {
        font-size: 1.8rem;
    }

    .game-frame {
        height: 400px;
    }

    .game-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .game-actions {
        width: 100%;
    }

    .recommendations-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .games-controls {
        flex-direction: column;
    }

    .search-bar {
        width: 100%;
    }
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
