:root {
    --navy: #0E1F33;
    --midnight: #1C2E4A;
    --royal: #3E5FA8;
    --gold: #D4AF37;
    --off-white: #F7F6F2;
    --mist: #DADDE3;
    --ink: #152235;
    --muted: #647083;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(14, 31, 51, 0.12);
    --radius: 22px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    color: var(--ink);
    background: var(--off-white);
    line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.container.narrow { width: min(800px, calc(100% - 40px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; background: var(--gold); color: var(--navy); padding: 12px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 246, 242, 0.96); border-bottom: 1px solid rgba(28, 46, 74, 0.1); backdrop-filter: blur(14px); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand-link { width: 220px; height: 68px; overflow: hidden; display: flex; align-items: center; }
.brand-link img { width: 100%; height: 100%; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: var(--midnight); font-size: 0.93rem; font-weight: 600; position: relative; padding: 30px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 20px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s ease; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; border: 0; background: transparent; width: 42px; padding: 8px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--navy); margin: 6px 0; }

.hero { min-height: 680px; color: var(--off-white); background: linear-gradient(135deg, var(--navy), #122c49 56%, var(--midnight)); position: relative; overflow: hidden; display: grid; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 76% 22%, rgba(212,175,55,.14), transparent 28%); }
.hero-grid { position: relative; z-index: 3; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 90px; padding: 105px 0; }
.hero-copy { max-width: 720px; }
.eyebrow { margin: 0 0 14px; color: var(--gold); text-transform: uppercase; font-weight: 700; letter-spacing: .14em; font-size: .78rem; }
.eyebrow.dark { color: #9a771e; }
h1, h2, h3, .footer-brand { font-family: "Cinzel", Georgia, serif; line-height: 1.15; }
h1 { margin: 0; font-size: clamp(3rem, 6vw, 5.8rem); letter-spacing: -.035em; font-weight: 600; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 600; letter-spacing: -.025em; }
h3 { margin: 0; font-size: 1.35rem; }
.hero-lede { max-width: 660px; font-size: 1.18rem; color: rgba(247,246,242,.82); margin: 28px 0 0; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 0 22px; border-radius: 8px; font-weight: 700; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-gold { background: var(--gold); color: var(--navy); border: 1px solid var(--gold); }
.button-gold:hover { background: #e0bd4e; }
.button-ghost { color: var(--off-white); border: 1px solid rgba(247,246,242,.36); }
.button-ghost:hover { border-color: var(--gold); }
.hero-mark { justify-self: end; width: min(390px, 100%); text-align: center; position: relative; }
.hero-mark img { width: 100%; border-radius: 80px; box-shadow: 0 40px 80px rgba(0,0,0,.28); }
.hero-mark p { margin: 22px 0 0; font-family: "Cinzel", Georgia, serif; color: var(--mist); letter-spacing: .04em; }
.hero-landscape { position: absolute; inset: auto 0 0; z-index: 1; opacity: .56; pointer-events: none; }
.hero-landscape::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(14,31,51,.78), rgba(14,31,51,.12) 55%, rgba(14,31,51,.2)); }
.hero-landscape img { width: 100%; height: auto; }

.section { padding: 100px 0; }
.section-light { background: var(--off-white); }
.section-muted { background: #eef0f4; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; }
.text-link { color: var(--royal); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.text-link::after { content: "→"; transition: transform .2s; }
.text-link:hover::after { transform: translateX(4px); }
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 30px; }
.game-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(28,46,74,.08); }
.game-art { display: block; background: var(--navy); overflow: hidden; }
.game-art img { width: 100%; height: auto; }
.art-placeholder { min-height: 220px; display: grid; place-items: center; color: var(--gold); font-family: "Cinzel", serif; font-size: 5rem; }
.game-card-body { padding: 28px 30px 32px; }
.game-card-body h2, .game-card-body h3 { margin: 16px 0 12px; }
.game-card-body p { color: var(--muted); margin: 0 0 20px; }
.status-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .82rem; }
.status-badge { color: #7a5c08; background: rgba(212,175,55,.16); padding: 5px 9px; border-radius: 999px; font-weight: 700; }

.philosophy-section { background: var(--midnight); color: var(--off-white); position: relative; overflow: hidden; }
.philosophy-section::after { content: ""; position: absolute; right: -180px; top: -200px; width: 520px; height: 520px; border: 1px solid rgba(212,175,55,.18); border-radius: 50%; }
.philosophy-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; position: relative; z-index: 2; }
.principles { display: grid; gap: 18px; }
.principles article { padding: 24px 0 24px 78px; border-top: 1px solid rgba(247,246,242,.15); position: relative; }
.principles article:last-child { border-bottom: 1px solid rgba(247,246,242,.15); }
.principles article > span { position: absolute; left: 0; top: 27px; color: var(--gold); font-family: "Cinzel", serif; }
.principles h3 { margin-bottom: 8px; }
.principles p { color: rgba(247,246,242,.7); margin: 0; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { border-top: 3px solid var(--gold); padding: 28px; background: white; box-shadow: 0 14px 45px rgba(14,31,51,.08); }
.post-card h3 { margin: 18px 0 12px; }
.post-card p { color: var(--muted); }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.post-meta a, .post-meta span { color: var(--royal); }
.post-meta.light, .post-meta.light a { color: var(--gold); }
.empty-state { border: 1px dashed #aeb6c3; border-radius: var(--radius); padding: 42px; color: var(--muted); text-align: center; }

.page-hero { background: linear-gradient(135deg, var(--navy), var(--midnight)); color: var(--off-white); text-align: center; }
.page-hero.compact { padding: 105px 0 90px; }
.page-hero p:last-child { max-width: 700px; margin: 22px auto 0; color: rgba(247,246,242,.76); font-size: 1.1rem; }
.page-hero h1 { font-size: clamp(3rem, 6vw, 5rem); }

.game-detail-hero { padding: 90px 0; background: linear-gradient(145deg, #0b1b2e, var(--midnight)); color: var(--off-white); }
.game-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.game-detail-art img { width: 100%; border-radius: 24px; box-shadow: 0 34px 70px rgba(0,0,0,.28); }
.game-detail-copy h1 { font-size: clamp(3rem, 6vw, 5.2rem); }
.platform-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.platform-list span { border: 1px solid rgba(247,246,242,.22); border-radius: 999px; padding: 6px 12px; color: var(--mist); }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 80px; }
.prose { font-size: 1.04rem; color: #334056; }
.prose > *:first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3 { color: var(--navy); margin: 1.7em 0 .65em; }
.prose h1 { font-size: 2.3rem; }
.prose h2 { font-size: 1.8rem; }
.prose h3 { font-size: 1.35rem; }
.prose a { color: var(--royal); text-decoration: underline; }
.prose blockquote { border-left: 3px solid var(--gold); margin-left: 0; padding-left: 24px; color: var(--muted); }
.prose code { background: #e7eaf0; padding: 2px 5px; border-radius: 4px; }
.detail-aside { background: white; padding: 28px; border-radius: 18px; align-self: start; box-shadow: var(--shadow); }
dl { margin: 0; }
dl div { padding: 14px 0; border-top: 1px solid #e7eaf0; }
dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
dd { margin: 4px 0 0; font-weight: 700; }

.blog-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 70px; }
.category-panel { align-self: start; position: sticky; top: 115px; background: white; padding: 26px; border-radius: 18px; border: 1px solid rgba(28,46,74,.08); }
.category-panel h2 { font-size: 1.25rem; margin-bottom: 18px; }
.category-panel a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--muted); }
.category-panel a:hover, .category-panel a.active { background: rgba(62,95,168,.1); color: var(--royal); font-weight: 700; }
.post-list { display: grid; gap: 26px; }
.post-list-item { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 30px; background: white; padding: 26px; border-radius: 18px; border: 1px solid rgba(28,46,74,.08); }
.post-list-item > img { width: 100%; height: auto; align-self: start; border-radius: 12px; }
.post-list-item h2 { font-size: 1.7rem; margin: 14px 0 8px; }
.post-list-item p { color: var(--muted); }
.article-hero { background: linear-gradient(135deg, var(--navy), var(--midnight)); color: var(--off-white); padding: 105px 0 90px; }
.article-header-inner { max-width: 900px; }
.article-header-inner h1 { font-size: clamp(3rem, 7vw, 5.5rem); margin-top: 20px; }
.article-header-inner > p { font-size: 1.17rem; color: rgba(247,246,242,.75); max-width: 760px; }
.article-image { margin-top: -50px; position: relative; }
.article-image img { width: 100%; height: auto; border-radius: 24px; box-shadow: var(--shadow); }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 240px; gap: 90px; justify-content: center; }
.article-aside { border-left: 2px solid var(--gold); padding-left: 24px; align-self: start; display: grid; gap: 8px; }
.article-aside span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.article-aside .text-link { margin-top: 18px; }

.coming-soon { min-height: calc(100vh - 84px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 70px 20px; background: radial-gradient(circle at 50% 30%, #203b5d, var(--navy) 65%); color: var(--off-white); }
.coming-soon-mark { width: 165px; margin-bottom: 28px; }
.coming-soon-mark img { border-radius: 24px; box-shadow: 0 25px 60px rgba(0,0,0,.25); }
.coming-soon h1 { font-size: clamp(3rem, 7vw, 5.4rem); }
.coming-soon > p:not(.eyebrow) { color: rgba(247,246,242,.72); max-width: 580px; margin: 20px auto 0; }
.coming-soon .button { margin-top: 34px; }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.contact-copy { max-width: 420px; }
.contact-copy h2 { margin-bottom: 18px; }
.contact-copy p:last-child { color: var(--muted); }
.contact-form { background: var(--white); border: 1px solid rgba(28,46,74,.08); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; position: relative; }
.contact-form .field-group { display: grid; gap: 7px; }
.contact-form .field-group.wide { grid-column: 1 / -1; }
.contact-form label { font-weight: 700; color: var(--midnight); }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #cbd1dc; border-radius: 9px; padding: 12px 13px; color: var(--ink); background: #fff; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid rgba(62,95,168,.16); border-color: var(--royal); }
.contact-form .field-error { color: #a33f3f; font-size: .85rem; }
.form-actions-inline { grid-column: 1 / -1; display: flex; justify-content: flex-start; }
.form-actions-inline .button { border: 0; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-unavailable { text-align: left; background: var(--white); }

.flash-stack { padding-top: 16px; }
.flash { padding: 14px 18px; border-radius: 10px; background: white; border-left: 4px solid var(--royal); box-shadow: 0 8px 30px rgba(14,31,51,.08); }
.flash-error { border-color: #b54747; }
.flash-success { border-color: #3f7a54; }

.site-footer { background: #081727; color: rgba(247,246,242,.72); padding: 70px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr; gap: 60px; }
.footer-brand { color: var(--off-white); font-size: 1.45rem; letter-spacing: .06em; }
.footer-grid p { max-width: 380px; }
.footer-links, .footer-social { display: flex; flex-direction: column; gap: 10px; }
.footer-heading { color: var(--off-white); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.footer-social-icons { display: flex; flex-wrap: wrap; gap: 11px; }
.social-icon { width: 44px; height: 44px; border-radius: 13px; border: 1px solid rgba(247,246,242,.18); background: rgba(247,246,242,.06); color: rgba(247,246,242,.82); display: inline-flex; align-items: center; justify-content: center; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.social-icon:hover, .social-icon:focus-visible { color: var(--gold); border-color: rgba(212,175,55,.62); background: rgba(212,175,55,.12); transform: translateY(-2px); outline: none; }
.social-icon-svg { width: 22px; height: 22px; display: block; fill: currentColor; }
.social-icon-youtube .youtube-play { fill: #081727; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { margin-top: 54px; padding-top: 22px; border-top: 1px solid rgba(247,246,242,.12); display: flex; justify-content: space-between; gap: 20px; font-size: .82rem; }

@media (max-width: 980px) {
    .hero-grid, .philosophy-grid, .game-detail-grid, .content-layout, .article-layout, .contact-grid { grid-template-columns: 1fr; }
    .hero-mark { justify-self: start; width: 300px; }
    .post-grid { grid-template-columns: 1fr 1fr; }
    .blog-layout { grid-template-columns: 1fr; gap: 35px; }
    .category-panel { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
    .category-panel h2 { width: 100%; }
    .category-panel a { display: inline-block; }
    .detail-aside, .article-aside { max-width: 420px; }
}

@media (max-width: 760px) {
    .container { width: min(100% - 28px, var(--container)); }
    .header-inner { min-height: 64px; gap: 16px; }
    .brand-link { flex: 0 1 164px; width: min(164px, calc(100vw - 104px)); height: 52px; }
    .nav-toggle { display: block; flex: 0 0 42px; }
    .site-nav { position: absolute; left: 0; right: 0; top: 64px; background: var(--off-white); display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 22px; border-bottom: 1px solid rgba(28,46,74,.12); }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 14px 8px; }
    .site-nav a::after { bottom: 8px; right: auto; width: 40px; }
    .hero { min-height: calc(100svh - 64px); align-items: start; }
    .hero-grid { grid-template-columns: 1fr; align-items: start; gap: 28px; padding: 42px 0 96px; }
    .hero-copy { max-width: 36rem; }
    .hero .eyebrow { margin-bottom: 10px; font-size: .72rem; letter-spacing: .1em; }
    .hero h1 { font-size: 2.55rem; line-height: 1.08; letter-spacing: -.02em; }
    .hero-lede { margin-top: 20px; font-size: 1rem; line-height: 1.65; }
    .hero .button-row { gap: 12px; margin-top: 28px; }
    .hero-mark { justify-self: center; width: 100%; }
    .hero-mark img { display: none; }
    .hero-mark p { max-width: 22ch; margin: 0 auto; font-size: .95rem; line-height: 1.45; letter-spacing: .03em; }
    .hero-landscape { inset: 0; height: auto; min-height: 0; max-height: none; overflow: hidden; opacity: .42; }
    .hero-landscape::after { background: linear-gradient(to bottom, rgba(14,31,51,.9), rgba(14,31,51,.78) 56%, rgba(14,31,51,.42)); }
    .hero-landscape img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
    .section { padding: 76px 0; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .post-grid { grid-template-columns: 1fr; }
    .post-list-item { grid-template-columns: 1fr; }
    .contact-form { grid-template-columns: 1fr; padding: 24px; }
    .page-hero.compact { padding: 82px 0 70px; }
    .game-detail-hero { padding: 70px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
    .container { width: min(100% - 24px, var(--container)); }
    .hero-grid { gap: 24px; padding: 34px 0 88px; }
    .hero h1 { font-size: 2.18rem; }
    .hero-lede { font-size: .98rem; }
    .hero .button-row { flex-direction: column; }
    .hero .button { width: 100%; }
}

@media (max-width: 380px) {
    .brand-link { flex-basis: 148px; width: min(148px, calc(100vw - 96px)); }
    .hero-grid { gap: 20px; padding: 28px 0 66px; }
    .hero h1 { font-size: 2rem; }
    .hero-mark p { font-size: .88rem; }
    .hero-landscape { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
