:root {
    color-scheme: dark;
    --background: #070608;
    --surface: #100d12;
    --surface-strong: #18121a;
    --border: #3b2d3d;
    --text: #eee6da;
    --muted: #b2a69e;
    --gold: #c6a15b;
    --gold-bright: #efd18d;
    --crimson: #741f2d;
    --violet: #4d2856;
    --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(circle at 15% -10%, rgba(77, 40, 86, .38), transparent 34rem), radial-gradient(circle at 90% 20%, rgba(116, 31, 45, .2), transparent 30rem), linear-gradient(180deg, #0b080d 0, var(--background) 65%); color: var(--text); font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; background: repeating-linear-gradient(125deg, transparent 0 96px, rgba(198, 161, 91, .025) 97px 98px); }
a { color: var(--gold); }
a:hover { color: var(--gold-bright); }
main { flex: 1; }

.site-header { width: 100%; min-height: 82px; padding: 16px max(24px, calc((100% - var(--max-width)) / 2)); display: flex; align-items: center; gap: 32px; background: rgba(8, 6, 10, .93); border-bottom: 1px solid rgba(198, 161, 91, .3); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 20; }
.brand { color: var(--text); text-decoration: none; line-height: .88; letter-spacing: .13em; font-family: Georgia, "Times New Roman", serif; font-weight: 900; font-size: 1.12rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.brand span, .brand strong { display: block; }
.brand strong { color: var(--gold); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav a:hover, .nav a.active { color: var(--text); }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--border); border-radius: 8px; padding: 9px 13px; color: var(--text); background: var(--surface); font: inherit; font-weight: 700; }

.hero { min-height: calc(100vh - 82px); padding: 96px 24px; display: grid; place-content: center; justify-items: center; text-align: center; position: relative; overflow: hidden; }
.hero-glow { position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(116, 31, 45, .22), rgba(77, 40, 86, .16) 48%, transparent 70%); filter: blur(62px); pointer-events: none; }
.hero::after { content: "✦  ◆  ✦"; margin-top: 38px; color: rgba(198, 161, 91, .58); letter-spacing: .65em; font-size: .72rem; }
.hero > *:not(.hero-glow) { position: relative; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: .8rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.hero h1, .page-hero h1, .legal-hero h1 { margin: 0; max-width: 980px; font-family: Georgia, "Times New Roman", serif; line-height: .98; letter-spacing: -.035em; }
.hero h1 { font-size: clamp(3.4rem, 8vw, 7.6rem); }
.hero h1 span { color: var(--gold-bright); text-shadow: 0 0 34px rgba(116, 31, 45, .42); }
.hero-copy { max-width: 720px; margin: 28px auto 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.actions { margin-top: 34px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.button { min-height: 50px; padding: 12px 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 9px; color: var(--text); text-decoration: none; font-weight: 900; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); color: var(--text); }
.button.primary { color: #170f11; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); box-shadow: 0 8px 30px rgba(116, 31, 45, .18); }
.button.primary:hover { background: linear-gradient(135deg, #f8dda0, #d5ae62); }
.button.secondary { background: var(--surface); border-color: var(--border); }
.button.secondary:hover { border-color: var(--gold); }
.release-note { margin-top: 28px; color: #7f8c81; font-size: .9rem; }

.page-hero, .legal-hero { padding: 92px max(24px, calc((100% - var(--max-width)) / 2)) 54px; border-bottom: 1px solid var(--border); }
.page-hero h1, .legal-hero h1 { font-size: clamp(3rem, 7vw, 6.5rem); }
.page-hero > p:last-child, .legal-hero > p:last-child { max-width: 760px; margin: 22px 0 0; color: var(--muted); font-size: 1.12rem; }
.page-hero.centered { text-align: center; }
.page-hero.centered > p:last-of-type { margin-left: auto; margin-right: auto; }
.content-section { width: min(var(--max-width), calc(100% - 48px)); margin: 0 auto; padding: 72px 0; }
.compact-section { padding-top: 44px; }
.narrow { max-width: 850px; }
.section-heading { margin-bottom: 30px; }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.6rem); }
.card-grid { display: grid; gap: 18px; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 28px; background: linear-gradient(145deg, rgba(29, 19, 31, .96), var(--surface)); border: 1px solid var(--border); border-radius: 14px; box-shadow: inset 0 1px 0 rgba(198, 161, 91, .06); }
.card h2, .card h3 { margin: 0 0 10px; color: var(--text); }
.card p { margin: 0; color: var(--muted); }
.games-grid { display: grid; gap: 22px; }
.game-icon-link { width: fit-content; display: block; border-radius: 24%; transition: transform .2s ease, filter .2s ease; }
.game-icon-link:hover { transform: translateY(-7px) scale(1.025); filter: brightness(1.08); }
.game-library-icon { width: clamp(180px, 25vw, 330px); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.game-card, .game-showcase { color: var(--text); text-decoration: none; background: linear-gradient(145deg, rgba(29, 19, 31, .96), var(--surface)); border: 1px solid var(--border); box-shadow: inset 0 1px 0 rgba(198, 161, 91, .06); transition: transform .18s ease, border-color .18s ease; }
.game-card { margin: 0 0 20px; padding: 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; border-radius: 16px; }
.game-showcase { padding: 30px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 34px; border-radius: 20px; }
.game-card:hover, .game-showcase:hover { color: var(--text); transform: translateY(-3px); border-color: var(--gold); }
.game-card h3, .game-showcase h2 { margin: 0 0 4px; font-family: Georgia, "Times New Roman", serif; }
.game-card h3 { font-size: 1.55rem; }
.game-showcase h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.game-card p, .game-showcase p { margin: 0; color: var(--muted); }
.app-icon { width: 86px; aspect-ratio: 1; display: block; object-fit: cover; border-radius: 22.5%; border: 1px solid rgba(198, 161, 91, .62); box-shadow: 0 10px 30px rgba(0, 0, 0, .46); }
.app-icon.large { width: clamp(140px, 18vw, 230px); }
.card-arrow { color: var(--gold); font-size: 1.8rem; }
.text-link { display: inline-block; margin-top: 18px; color: var(--gold); font-weight: 900; }
.game-hero { width: min(var(--max-width), calc(100% - 48px)); min-height: 620px; margin: 0 auto; padding: 76px 0; display: grid; grid-template-columns: minmax(250px, 390px) 1fr; align-items: center; gap: clamp(44px, 8vw, 100px); }
.game-hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.4rem, 7vw, 7rem); line-height: .96; }
.game-hero p:not(.eyebrow, .release-note) { max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.hero-icon { width: 100%; border-radius: 22.5%; }
.actions.left { justify-content: flex-start; }
.support-hero { min-height: 500px; }
.game-about h2 { margin: 0 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 5vw, 4rem); }
.status { display: inline-block; margin-bottom: 16px; padding: 5px 10px; border-radius: 999px; font-size: .75rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.status.available { color: #f3d999; background: rgba(116, 31, 45, .26); border: 1px solid rgba(198, 161, 91, .42); }
.status.planned { color: #d8b8df; background: rgba(77, 40, 86, .3); border: 1px solid rgba(151, 96, 164, .4); }
.notice, .contact-panel { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.notice h2, .contact-panel h2 { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.2rem); }
.notice p:last-child, .contact-panel p:last-child { max-width: 700px; margin: 0; color: var(--muted); }
.prose h2 { margin: 42px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); font-size: 1.06rem; }
.feature-project { padding: 34px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 42px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.feature-project h2 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 2.8rem; }
.feature-project p { color: var(--muted); }
.project-facts { display: grid; gap: 0; }
.project-facts p { margin: 0; padding: 12px 0; display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); }
.project-facts strong { color: var(--text); }
.timeline { border-left: 2px solid var(--crimson); }
.timeline article { padding: 0 0 44px 34px; position: relative; }
.timeline article::before { content: ""; width: 13px; height: 13px; border-radius: 50%; position: absolute; left: -8px; top: 7px; background: var(--gold); box-shadow: 0 0 0 6px var(--background), 0 0 18px rgba(116, 31, 45, .65); }
.timeline article:last-child { padding-bottom: 0; }
.timeline span { color: var(--gold); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.timeline h2 { margin: 4px 0; }
.timeline p { margin: 0; color: var(--muted); }

.legal-hero { padding-bottom: 38px; }
.legal-hero h1 { font-size: clamp(3rem, 6vw, 5.2rem); }
.legal-content { width: min(850px, calc(100% - 48px)); margin: 0 auto; padding: 54px 0 80px; }
.legal-content h2 { margin: 38px 0 8px; color: var(--text); font-size: 1.3rem; }
.legal-content h3 { margin: 28px 0 8px; color: var(--accent-soft); font-size: 1.05rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content ul { padding-left: 24px; }

.site-footer { width: 100%; padding: 24px max(24px, calc((100% - var(--max-width)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #070907; border-top: 1px solid var(--border); color: #7f8c81; font-size: .88rem; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover, .site-footer a.active { color: var(--text); }

@media (max-width: 760px) {
    .site-header { min-height: 72px; padding: 14px 20px; }
    .menu-toggle { display: block; }
    .nav { display: none; width: 100%; margin: 0; padding: 12px 0 4px; flex-direction: column; align-items: stretch; gap: 0; }
    .nav.open { display: flex; }
    .nav a { padding: 10px 4px; }
    .site-header:has(.nav.open) { flex-wrap: wrap; }
    .hero { min-height: calc(100vh - 72px); padding: 72px 22px; }
    .page-hero, .legal-hero { padding: 64px 24px 38px; }
    .content-section { width: min(100% - 32px, var(--max-width)); padding: 48px 0; }
    .card-grid.two, .card-grid.three, .feature-project { grid-template-columns: 1fr; }
    .game-showcase, .game-hero { grid-template-columns: 1fr; }
    .game-showcase { padding: 22px; gap: 22px; }
    .game-hero { width: min(100% - 32px, var(--max-width)); min-height: auto; padding: 54px 0; gap: 32px; }
    .hero-icon { width: min(70vw, 330px); }
    .notice, .contact-panel, .site-footer { align-items: flex-start; flex-direction: column; }
    .feature-project { gap: 20px; padding: 24px; }
    .project-facts p { flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
