:root {
    color-scheme: dark;
    --game-bg: #03080f;
    --game-bg-soft: #07111c;
    --game-panel: #0a1521;
    --game-panel-2: #0d1927;
    --game-line: #24394a;
    --game-text: #f1f7fb;
    --game-muted: #a9b7c5;
    --game-cyan: #5ff5ed;
    --game-cyan-strong: #24d8d2;
    --game-purple: #c777ff;
    --game-blue: #7895ff;
    --game-amber: #ffb94d;
    --game-radius: 16px;
    --game-shadow: 0 22px 60px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 12% 10%, rgba(36,216,210,.06), transparent 24%), var(--game-bg); color: var(--game-text); font-family: Inter, "Segoe UI", system-ui, sans-serif; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--game-cyan); outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.games-shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.games-skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: .7rem 1rem; background: var(--game-cyan); color: #001012; transform: translateY(-150%); }
.games-skip-link:focus { transform: translateY(0); }

.games-header { position: sticky; top: 0; z-index: 50; background: rgba(2,8,15,.94); border-bottom: 1px solid var(--game-line); backdrop-filter: blur(14px); }
.games-nav { display: flex; align-items: center; min-height: 76px; }
.games-brand { display: inline-flex; align-items: center; width: 190px; height: 58px; margin-right: auto; text-decoration: none; }
.games-brand img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.games-menu { display: flex; align-items: stretch; gap: .6rem; }
.games-menu a { position: relative; padding: 1rem .72rem; color: #d6dee7; font-weight: 650; text-decoration: none; }
.games-menu a::after { content: ""; position: absolute; right: .7rem; bottom: .48rem; left: .7rem; height: 2px; background: var(--game-cyan); transform: scaleX(0); transition: transform .18s ease; }
.games-menu a:hover, .games-menu a.is-active { color: var(--game-cyan); }
.games-menu a:hover::after, .games-menu a.is-active::after { transform: scaleX(1); }
.games-menu-button { display: none; width: 44px; height: 40px; padding: 9px; background: transparent; border: 1px solid var(--game-line); border-radius: 8px; }
.games-menu-button span:not(.visually-hidden) { display: block; height: 2px; margin: 4px 0; background: var(--game-text); }

.games-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--game-line); background: radial-gradient(circle at 72% 42%, rgba(199,119,255,.19), transparent 32%), linear-gradient(112deg, #03111b, #02080f 52%, #0d0822); }
.games-hero::before { content: ""; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(95,245,237,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(95,245,237,.16) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(90deg, #000, transparent 62%); }
.games-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0,.85fr) minmax(520px,1.15fr); align-items: center; gap: clamp(2rem,5vw,5rem); min-height: 540px; padding-block: 3.5rem; }
.games-hero-copy { z-index: 1; max-width: 530px; }
.games-hero h1 { margin: 0; color: var(--game-cyan); font-family: Consolas, "Courier New", monospace; font-size: clamp(4.8rem,9vw,7.4rem); line-height: .9; letter-spacing: -.07em; text-shadow: 0 0 24px rgba(95,245,237,.2); }
.games-hero-lead { margin: 1.2rem 0 .75rem; color: #fff; font-size: clamp(1.35rem,2.2vw,1.9rem); font-weight: 750; line-height: 1.25; }
.games-hero-support { max-width: 500px; margin: 0 0 1.7rem; color: var(--game-muted); font-size: 1.06rem; }
.games-hero-visual { position: relative; aspect-ratio: 16/10; margin: 0; overflow: hidden; border: 1px solid rgba(199,119,255,.38); border-radius: 22px; box-shadow: var(--game-shadow), 0 0 45px rgba(199,119,255,.09); transform: rotate(1.2deg); }
.games-hero-visual::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 55px rgba(2,8,15,.5); pointer-events: none; }
.games-hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.games-button-row { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; }
.games-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.25rem; border: 1px solid; border-radius: 8px; font-size: .94rem; font-weight: 800; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
a.games-button:hover { transform: translateY(-2px); }
.games-button-primary { color: #001214; background: linear-gradient(135deg,#6ffaf1,#2bd6d3); border-color: var(--game-cyan); box-shadow: 0 10px 30px rgba(36,216,210,.14); }
.games-button-secondary { color: #f4edff; background: rgba(11,14,28,.72); border-color: rgba(199,119,255,.72); }
.games-button-secondary:hover { background: rgba(199,119,255,.1); }
.games-button-disabled { color: #8b99a6; background: rgba(12,20,29,.76); border-color: #344552; cursor: not-allowed; }

.games-section { padding-top: clamp(4.5rem,8vw,7rem); scroll-margin-top: 90px; }
.games-section-heading { margin-bottom: 1.25rem; }
.games-section-heading p, .games-section-kicker { margin: 0 0 .25rem; color: var(--game-cyan); font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.games-section-heading h2, .games-copy-section h2, .games-release h2 { margin: 0; font-size: clamp(2.1rem,4vw,3.2rem); line-height: 1.1; }

.games-feature-card { display: grid; grid-template-columns: minmax(420px,1.1fr) minmax(0,.9fr); overflow: hidden; background: linear-gradient(135deg,rgba(14,27,40,.97),rgba(7,15,24,.98)); border: 1px solid rgba(199,119,255,.34); border-radius: 22px; box-shadow: var(--game-shadow); }
.games-feature-media { min-height: 430px; margin: 0; overflow: hidden; }
.games-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.games-feature-copy { align-self: center; padding: clamp(2rem,5vw,4rem); }
.games-status-label { display: inline-flex; padding: .34rem .7rem; color: #e9c9ff; background: rgba(199,119,255,.12); border: 1px solid rgba(199,119,255,.44); border-radius: 999px; font-size: .74rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.games-feature-copy h3, .games-ascent-copy h3 { margin: .8rem 0 .25rem; font-size: clamp(2.4rem,5vw,4.2rem); line-height: 1; }
.games-genre, .games-detail-genre { margin: 0 0 1rem; color: var(--game-cyan); font-weight: 750; }
.games-feature-copy > p:not(.games-genre), .games-ascent-copy > p { color: var(--game-muted); font-size: 1.05rem; }
.games-feature-copy .games-button-row, .games-ascent-copy .games-button-row { margin-top: 1.5rem; }

.games-section-band { padding-bottom: clamp(4.5rem,8vw,7rem); background: linear-gradient(180deg,transparent,rgba(15,9,31,.44) 24%,rgba(9,12,24,.72) 76%,transparent); }
.games-ascent-card { position: relative; display: grid; grid-template-columns: minmax(0,.82fr) minmax(470px,1.18fr); min-height: 430px; overflow: hidden; background: #070c16; border: 1px solid rgba(120,149,255,.32); border-radius: 22px; box-shadow: var(--game-shadow); }
.games-ascent-copy { z-index: 1; align-self: center; padding: clamp(2rem,5vw,4.5rem); }
.games-status-purple { color: #d9b6ff; border-color: rgba(199,119,255,.42); }
.games-text-status { color: var(--game-muted); font-size: .88rem; font-weight: 700; }
.games-ascent-media { position: relative; margin: 0; }
.games-ascent-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#070c16 0%,transparent 32%); }
.games-ascent-media img { width: 100%; height: 100%; object-fit: cover; }

.games-project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
.games-project-card { overflow: hidden; background: linear-gradient(145deg,rgba(15,28,42,.97),rgba(7,16,26,.99)); border: 1px solid var(--game-line); border-radius: var(--game-radius); box-shadow: var(--game-shadow); transition: transform .2s ease,border-color .2s ease; }
.games-project-card:hover { transform: translateY(-4px); border-color: rgba(95,245,237,.5); }
.games-project-card.games-project-purple:hover { border-color: rgba(199,119,255,.5); }
.games-project-card figure { aspect-ratio: 2/1; margin: 0; overflow: hidden; }
.games-project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.games-project-card:hover img { transform: scale(1.025); }
.games-project-card > div { padding: 1.45rem 1.5rem 1.6rem; }
.games-project-tag { color: var(--game-cyan); font-size: .73rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.games-project-purple .games-project-tag { color: var(--game-purple); }
.games-project-card h3 { margin: .35rem 0 .55rem; font-size: 1.55rem; }
.games-project-card p { min-height: 3.2em; margin: 0 0 1rem; color: var(--game-muted); }
.games-card-status { color: #cbd6df; font-size: .87rem; font-weight: 750; }

.games-gallery-section { padding-bottom: clamp(4.5rem,8vw,7rem); }
.games-gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .85rem; }
.games-gallery figure { aspect-ratio: 16/10; margin: 0; overflow: hidden; background: var(--game-panel); border: 1px solid var(--game-line); border-radius: 10px; }
.games-gallery img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88); transition: transform .25s ease,filter .25s ease; }
.games-gallery figure:hover img { transform: scale(1.035); filter: saturate(1.08); }

.games-cta { padding: 4.5rem 0; background: radial-gradient(circle at 12% 100%,rgba(36,216,210,.13),transparent 30%),linear-gradient(120deg,#07141f,#0b0b1b); border-block: 1px solid var(--game-line); }
.games-cta .games-shell { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.games-cta h2 { margin: 0 0 .35rem; font-size: clamp(2rem,4vw,3.1rem); }
.games-cta p { max-width: 680px; margin: 0; color: var(--game-muted); }
.games-footer { color: var(--game-muted); border-top: 1px solid #172633; }
.games-footer .games-shell { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; }
.games-footer p { margin: 0; }
.games-footer a { color: var(--game-cyan); }

.games-detail-hero { padding: clamp(3rem,7vw,6rem) 0; background: radial-gradient(circle at 68% 28%,rgba(199,119,255,.2),transparent 31%),linear-gradient(120deg,#04101a,#090718); border-bottom: 1px solid var(--game-line); }
.games-detail-hero-grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(520px,1.2fr); align-items: center; gap: clamp(2.5rem,6vw,6rem); }
.games-detail-hero h1, .games-ascent-page h1 { margin: .8rem 0 .5rem; font-size: clamp(3.2rem,7vw,6.5rem); line-height: .93; letter-spacing: -.045em; }
.games-detail-hero-grid > div > p:not(.games-detail-genre), .games-ascent-page-grid > div > p { max-width: 600px; color: var(--game-muted); font-size: 1.08rem; }
.games-detail-hero .games-button-row { margin-top: 1.7rem; }
.games-detail-hero figure { aspect-ratio: 16/10; margin: 0; overflow: hidden; border: 1px solid rgba(199,119,255,.38); border-radius: 20px; box-shadow: var(--game-shadow); }
.games-detail-hero figure img { width: 100%; height: 100%; object-fit: cover; }
.games-copy-section { padding-top: clamp(4.5rem,8vw,7rem); }
.games-copy-section > div { max-width: 800px; }
.games-copy-section p:last-child, .games-release p { color: var(--game-muted); font-size: 1.08rem; }
.games-feature-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; padding: 0; margin: 0; list-style: none; counter-reset: features; }
.games-feature-list li { position: relative; min-height: 120px; padding: 1.5rem 1.4rem 1.4rem; background: linear-gradient(145deg,rgba(14,27,40,.92),rgba(7,15,24,.96)); border: 1px solid var(--game-line); border-radius: 12px; font-weight: 720; }
.games-feature-list li::before { counter-increment: features; content: "0" counter(features); display: block; margin-bottom: .75rem; color: var(--game-cyan); font-family: Consolas,monospace; font-size: .77rem; }
.games-detail-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.games-detail-gallery figure { aspect-ratio: 16/10; margin: 0; overflow: hidden; border: 1px solid var(--game-line); border-radius: 12px; }
.games-detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
.games-release { margin-top: clamp(4.5rem,8vw,7rem); padding: clamp(4rem,7vw,6rem) 0; background: linear-gradient(120deg,#07141e,#0b0c19); border-block: 1px solid var(--game-line); }
.games-release-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(3rem,8vw,8rem); }
.games-release .games-button { margin-top: .75rem; }

.games-ascent-page { min-height: calc(100vh - 151px); display: grid; align-items: center; padding: 4rem 0; background: radial-gradient(circle at 68% 42%,rgba(111,55,184,.25),transparent 34%),#030711; }
.games-ascent-page-grid { display: grid; grid-template-columns: minmax(0,.72fr) minmax(520px,1.28fr); align-items: center; gap: clamp(3rem,7vw,7rem); }
.games-ascent-page .games-button { margin-top: 1rem; }
.games-ascent-page figure { aspect-ratio: 16/10; margin: 0; overflow: hidden; border: 1px solid rgba(199,119,255,.35); border-radius: 20px; box-shadow: var(--game-shadow); }
.games-ascent-page figure img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 980px) {
    .games-hero-grid, .games-detail-hero-grid, .games-ascent-page-grid { grid-template-columns: 1fr; }
    .games-hero-copy { max-width: 720px; }
    .games-hero-visual, .games-detail-hero figure, .games-ascent-page figure { width: min(100%,760px); }
    .games-feature-card { grid-template-columns: 1fr; }
    .games-feature-media { min-height: 0; aspect-ratio: 16/9; }
    .games-ascent-card { grid-template-columns: 1fr; }
    .games-ascent-media { min-height: 360px; grid-row: 1; }
    .games-ascent-media::after { background: linear-gradient(0deg,#070c16 0%,transparent 35%); }
    .games-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .games-feature-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .games-cta .games-shell { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
    .games-shell { width: min(100% - 28px,1240px); }
    .games-nav { min-height: 64px; }
    .games-brand { width: 155px; height: 48px; }
    .games-menu-button { display: block; }
    .games-menu { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; gap: 0; padding: .6rem 1rem 1rem; background: rgba(2,8,15,.98); border-bottom: 1px solid var(--game-line); }
    .games-menu.is-open { display: flex; }
    .games-menu a { padding: .75rem; }
    .games-menu a::after { bottom: .2rem; transform-origin: left; }
    .games-hero-grid { min-height: auto; padding-block: 3rem; }
    .games-hero h1 { font-size: clamp(4rem,21vw,6rem); }
    .games-hero-visual { transform: none; }
    .games-button-row { align-items: stretch; flex-direction: column; }
    .games-button { width: 100%; }
    .games-feature-copy, .games-ascent-copy { padding: 1.6rem; }
    .games-feature-copy h3, .games-ascent-copy h3 { font-size: clamp(2.2rem,11vw,3.2rem); }
    .games-ascent-media { min-height: 260px; }
    .games-project-grid, .games-feature-list, .games-detail-gallery, .games-release-grid { grid-template-columns: 1fr; }
    .games-project-card p { min-height: 0; }
    .games-gallery { gap: .6rem; }
    .games-cta { padding: 3.5rem 0; }
    .games-detail-hero-grid, .games-ascent-page-grid { gap: 2.5rem; }
    .games-detail-hero h1, .games-ascent-page h1 { font-size: clamp(3rem,16vw,4.6rem); }
    .games-footer .games-shell { flex-direction: column; }
}

@media (max-width: 480px) {
    .games-gallery { grid-template-columns: 1fr; }
}

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