:root {
    --bg: #0a0a0a;
    --panel: #171717;
    --line: #262626;
    --text: #f5f5f5;
}

* {
    box-sizing: border-box;
    border-color: var(--line);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body::-webkit-scrollbar { width: 8px; }
body::-webkit-scrollbar-track { background: var(--bg); }
body::-webkit-scrollbar-thumb { background: #262626; border-radius: 999px; }
body::-webkit-scrollbar-thumb:hover { background: #404040; }

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { display: block; max-width: 100%; }

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.site-main { flex: 1; }
.container { width: min(100% - 48px, 1152px); margin-inline: auto; }
.narrow-container { width: min(100% - 48px, 896px); margin-inline: auto; }

.navbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    background: transparent;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.is-scrolled {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.nav-inner {
    width: min(100% - 48px, 1280px);
    margin-inline: auto;
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.025em;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.brand:hover { color: #d4d4d4; }

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

.nav-link {
    position: relative;
    color: #a3a3a3;
    font-size: 0.875rem;
    font-weight: 300;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1px;
    background: var(--text);
    transition: width 0.3s ease;
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.hero-section {
    min-height: 100vh;
    padding: 80px 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content { width: min(100%, 896px); }

.hero-content h1 {
    margin: 0 0 24px;
    font-size: clamp(3rem, 7vw, 4.5rem);
    line-height: 1.05;
    font-weight: 300;
    letter-spacing: 0;
}

.hero-content h1 span { color: #737373; }

.hero-copy {
    max-width: 672px;
    margin: 0 auto;
    color: #a3a3a3;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    line-height: 1.75;
    font-weight: 300;
}

.hero-meta {
    margin: 40px 0 0;
    color: #737373;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-meta a { transition: color 0.2s ease; }
.hero-meta a:hover { color: #a3a3a3; }

.hero-line {
    width: 1px;
    height: 96px;
    margin: 48px auto 0;
    background: linear-gradient(to bottom, #525252, transparent);
}

.games-section,
.about-section,
.contact-section {
    min-height: 100vh;
    padding: 96px 0;
    display: flex;
    align-items: center;
}

.section-heading { margin-bottom: 64px; }
.section-heading.centered { text-align: center; }

.section-heading h2 {
    margin: 0 0 16px;
    font-size: clamp(2.25rem, 4.8vw, 3rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: 0;
}

.section-heading p {
    margin: 0;
    color: #737373;
    font-weight: 300;
    font-size: 1.125rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
}

.game-card { height: 100%; }

.game-card a {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.game-card a:hover {
    border-color: #525252;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.game-art {
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-art::before,
.trailer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.08), transparent 34%);
    opacity: 0.8;
}

.gradient-indigo { background: linear-gradient(135deg, #312e81, #0f172a); }
.gradient-neutral { background: linear-gradient(135deg, #262626, #171717); }

.game-art h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    padding-inline: 16px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.75rem, 3vw, 1.875rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    text-align: center;
    transition: transform 0.5s ease;
}

.game-card a:hover .game-art h3 { transform: scale(1.05); }

.status-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    backdrop-filter: blur(12px);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.game-card-body {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-card-title {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.game-card-title h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.25;
}

.platforms { display: flex; gap: 12px; color: #737373; }
.platforms span { display: grid; place-items: center; transition: color 0.2s ease; }
.platforms span:hover { color: #d4d4d4; }

.game-card-body p {
    margin: 0 0 24px;
    color: #a3a3a3;
    font-weight: 300;
    line-height: 1.7;
    flex: 1;
}

.details-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #737373;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.details-link .icon { transition: transform 0.2s ease; }
.game-card a:hover .details-link { color: #e5e5e5; }
.game-card a:hover .details-link .icon { transform: translateX(4px); }

.about-copy {
    color: #a3a3a3;
    font-weight: 300;
    line-height: 1.75;
}

.about-copy .lead {
    margin: 0 0 48px;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
}

.founder {
    margin-bottom: 48px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(23, 23, 23, 0.6);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.founder-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #262626;
    border: 1px solid #404040;
    color: #737373;
}

.founder-name {
    margin: 0;
    color: #e5e5e5;
    font-size: 1.125rem;
    font-weight: 500;
}

.founder-role {
    margin: 3px 0 0;
    color: #737373;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.founder-bio { margin: 4px 0 0; color: #a3a3a3; font-size: 0.875rem; }

.principles {
    padding-top: 32px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.principles h3 {
    margin: 0 0 12px;
    color: #e5e5e5;
    font-size: 1.25rem;
    font-weight: 400;
}

.principles p { margin: 0; font-size: 0.875rem; line-height: 1.75; }

.contact-card {
    width: min(100%, 672px);
    margin: 0 auto;
    padding: 48px;
    text-align: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 24px;
    color: #a3a3a3;
}

.contact-card h3 { margin: 0 0 8px; font-size: 1.5rem; font-weight: 300; }
.contact-card p { margin: 0 0 32px; color: #a3a3a3; font-weight: 300; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button-outline {
    padding: 0 32px;
    background: transparent;
    border-color: #404040;
    color: #f5f5f5;
}

.button-outline:hover { background: #262626; }
.button-large { min-height: 56px; font-size: 1.125rem; }

.socials { margin-top: 64px; text-align: center; }

.socials h4 {
    margin: 0 0 32px;
    color: #737373;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.social-grid { display: flex; justify-content: center; gap: 32px; }

.social-item {
    opacity: 0.5;
    cursor: not-allowed;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.social-item span {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #a3a3a3;
}

.social-item small { color: #525252; font-size: 0.75rem; }

.footer {
    padding: 48px 24px;
    border-top: 1px solid var(--line);
}

.footer-inner {
    width: min(100%, 1280px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand p { margin: 0 0 4px; font-size: 1.5rem; font-weight: 300; }
.footer-brand span { display: block; color: #737373; font-size: 0.875rem; font-weight: 300; }
.footer-brand small { display: block; margin-top: 8px; color: #525252; font-size: 0.75rem; }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 32px;
    color: #737373;
    font-size: 0.875rem;
}

.footer-links a { transition: color 0.2s ease; }
.footer-links a:hover { color: #d4d4d4; }

.game-detail {
    min-height: 100vh;
    padding: 96px 0 80px;
    background: #0a0a0a;
}

.back-link {
    margin-bottom: 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a3a3a3;
    transition: color 0.2s ease;
}

.back-link .icon { transition: transform 0.2s ease; }
.back-link:hover { color: #fff; }
.back-link:hover .icon { transform: translateX(-4px); }

.detail-header { margin-bottom: 48px; }

.detail-title-row {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.detail-title-row h1 {
    margin: 0;
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: 0;
}

.detail-status {
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: #d4d4d4;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.detail-header > p {
    max-width: 768px;
    margin: 0;
    color: #a3a3a3;
    font-size: 1.25rem;
    line-height: 1.75;
    font-weight: 300;
}

.trailer {
    position: relative;
    aspect-ratio: 16 / 9;
    margin-bottom: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.trailer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
}

.trailer-content {
    position: relative;
    z-index: 1;
    padding: 24px;
    text-align: center;
}

.trailer-content button {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease;
}

.trailer:hover button { transform: scale(1.1); }

.trailer-content p {
    margin: 0;
    color: #a3a3a3;
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.trailer-content small {
    display: block;
    margin-top: 8px;
    color: #525252;
    font-size: 0.75rem;
    font-style: italic;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 64px;
    align-items: start;
}

.detail-main { display: grid; gap: 64px; }

.detail-section h2 {
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    font-size: 1.5rem;
    font-weight: 300;
}

.feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 16px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: #d4d4d4;
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.6;
}

.feature-list li span {
    width: 6px;
    height: 6px;
    margin-top: 12px;
    flex: 0 0 6px;
    border-radius: 999px;
    background: #737373;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.gallery-item {
    margin: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.5s ease, transform 0.7s ease;
}

.gallery-item:hover img { opacity: 1; transform: scale(1.1); }
.detail-sidebar { position: relative; }

.purchase-panel {
    position: sticky;
    top: 96px;
    padding: 32px;
    background: rgba(23, 23, 23, 0.5);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.purchase-panel > h3 {
    margin: 0 0 24px;
    font-size: 1.25rem;
    font-weight: 300;
}

.store-list { display: grid; gap: 12px; margin-bottom: 32px; }

.button-store {
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    justify-content: space-between;
    border-color: #404040;
    color: #f5f5f5;
    background: transparent;
}

.button-store:hover { background: #f5f5f5; color: #171717; }

.resources {
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.resources h3 {
    margin: 0 0 16px;
    color: #737373;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ghost-action {
    width: 100%;
    padding: 0;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    border: 0;
    background: transparent;
    color: #a3a3a3;
    cursor: pointer;
    transition: color 0.2s ease;
}

.ghost-action:hover { color: #fff; }

.not-found {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 96px 24px;
}

.not-found h1 { margin: 0; font-size: 1.5rem; font-weight: 300; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    width: min(360px, calc(100% - 48px));
    padding: 16px 18px;
    display: grid;
    gap: 4px;
    background: rgba(23, 23, 23, 0.96);
    border: 1px solid #404040;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    color: #f5f5f5;
    transform: translateY(24px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast strong { font-size: 0.95rem; font-weight: 500; }
.toast span { color: #a3a3a3; font-size: 0.875rem; }

.page-fade { animation: fadeIn 0.5s ease both; }

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease var(--reveal-delay, 0ms), transform 0.6s ease var(--reveal-delay, 0ms);
}

.reveal.is-visible,
.reveal-now {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
    .nav-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        width: 100%;
        gap: 18px;
        justify-content: space-between;
    }

    .hero-section { padding-top: 128px; }
    .games-grid, .principles, .detail-grid, .gallery-grid { grid-template-columns: 1fr; }

    .detail-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .purchase-panel { position: static; }

    .footer-inner {
        text-align: center;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .container,
    .narrow-container,
    .nav-inner {
        width: min(100% - 32px, 1280px);
    }

    .nav-links {
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .hero-content h1,
    .detail-title-row h1 {
        font-size: 2.75rem;
    }

    .hero-meta {
        letter-spacing: 0.12em;
        line-height: 1.7;
    }

    .games-section,
    .about-section,
    .contact-section {
        padding: 80px 0;
    }

    .game-card-body,
    .purchase-panel,
    .contact-card {
        padding: 24px;
    }

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

    .social-grid { gap: 18px; }
    .social-item span { width: 52px; height: 52px; }
}
