:root {
  --black: #08090a;
  --black-soft: #101214;
  --white: #f4f4f1;
  --soft-white: #c7c9c8;
  --grey: #85898a;
  --blue: #0b6d9f;
  --blue-bright: #37b4f2;
  --lime: #25eb7b;
  --line: rgba(255, 255, 255, .12);
  --shell: min(1280px, calc(100% - 84px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body { margin: 0; min-width: 0; overflow-x: hidden; color: var(--white); background: var(--black); font: 300 13px/1.45 "Space Grotesk", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button { font: inherit; }
[hidden] { display: none !important; }
.shell { width: var(--shell); min-width: 0; margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.site-header { position: absolute; z-index: 10; inset: 0 0 auto; }
.nav-wrap { height: 74px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.22); }
.brand { display: inline-flex; align-items: center; min-width: 0; gap: 0; color: var(--white); font-size: 16px; font-weight: 500; letter-spacing: -.05em; line-height: .8; white-space: nowrap; }
.brand-logo { width: 30px; height: auto; object-fit: contain; }
.brand span { display: none; }
.brand small { display: block; margin-top: 5px; color: #aeb1b1; font-size: 6px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; }
.site-navigation { display: flex; gap: clamp(24px, 4.1vw, 54px); margin: 0 auto; }
.site-navigation a, .nav-cta { color: #dde0de; font-size: 10px; transition: color .2s ease; }
.site-navigation a:hover, .nav-cta:hover { color: var(--blue-bright); }
.nav-cta { min-width: 120px; flex-shrink: 0; padding: 8px 13px; color: #dde0de; border: 1px solid rgba(255,255,255,.72); background: transparent; text-align: center; white-space: nowrap; cursor: pointer; }
.nav-cta span { margin-left: 9px; color: var(--blue-bright); font-size: 14px; }
.menu-toggle { display: none; border: 0; padding: 5px 0; background: transparent; }
.menu-toggle span { display: block; width: 22px; height: 1px; margin: 5px 0; background: var(--white); }

.store-dialog { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 16px; }
.store-dialog-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.store-dialog-card { position: relative; width: min(360px, 100%); padding: 25px; border: 1px solid rgba(255,255,255,.18); background: #101214; box-shadow: 0 20px 70px rgba(0,0,0,.45); }
.store-dialog-close { position: absolute; top: 8px; right: 12px; width: 28px; height: 28px; padding: 0; color: var(--soft-white); border: 0; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; }
.store-dialog-close:hover, .store-dialog-close:focus-visible { color: var(--white); outline: none; }
.store-dialog-kicker { margin: 0 0 7px; color: var(--blue-bright); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.store-dialog-card h2 { margin-bottom: 20px; font-size: 29px; }
.store-options { display: grid; gap: 10px; }
.store-option { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 11px; min-height: 58px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.025); transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.store-option:hover, .store-option:focus-visible { border-color: var(--blue-bright); background: rgba(55,180,242,.08); outline: none; transform: translateY(-1px); }
.store-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 8px; background: var(--white); }
.store-icon svg { width: 23px; height: 23px; }
.itch-icon { color: #f15a4a; }
.itch-icon svg { width: 25px; height: 25px; }
.store-option strong, .store-option small { display: block; }
.store-option strong { color: var(--white); font-size: 12px; font-weight: 500; }
.store-option small { margin-top: 3px; color: var(--grey); font-size: 9px; }


.hero { position: relative; min-height: 0; height: min(56.25vw, 900px); max-height: none; overflow: hidden; background: #09161a; isolation: isolate; }
.hero-media { position: absolute; z-index: -2; inset: 0; overflow: hidden; background: #09161a; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,10,13,.8), rgba(0,16,20,.3) 58%, rgba(0,8,11,.58)), linear-gradient(0deg, var(--black) 1%, rgba(5,10,12,.17) 56%); pointer-events: none; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.045); transition: opacity 1.2s ease, transform 7s ease; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.54) brightness(.73) contrast(1.12); }
.hero-content { position: absolute; right: 0; bottom: 90px; left: 0; }
.hero-controls { position: absolute; z-index: 3; right: 0; bottom: 25px; left: 0; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.hero-counter, .hero-control-buttons { pointer-events: auto; }
.hero-counter { display: inline-flex; align-items: baseline; gap: 5px; color: var(--white); font-size: 10px; letter-spacing: .1em; }
.hero-counter b { color: var(--blue-bright); font-weight: 500; }
.hero-counter i { color: rgba(255,255,255,.52); font-style: normal; }
.hero-control-buttons { display: flex; gap: 8px; }
.hero-control { position: relative; z-index: 1; width: 42px; height: 34px; padding: 0; color: var(--white); border: 1px solid rgba(255,255,255,.72); background: rgba(8,9,10,.42); font-size: 18px; line-height: 1; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.hero-control:active { transform: scale(.95); }
.hero-control:hover, .hero-control:focus-visible { color: var(--black); border-color: var(--white); background: var(--white); outline: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Space Grotesk", Arial, sans-serif; text-transform: uppercase; overflow-wrap: break-word; }
h1 { max-width: 730px; margin-bottom: 25px; font-size: clamp(48px, 5.3vw, 75px); font-weight: 500; line-height: .98; letter-spacing: -.025em; }
.hero-detail { display: block; }
.hero-detail p { max-width: 320px; margin: 0; color: #eceee9; font-size: 11px; line-height: 1.48; }
.button { display: inline-flex; align-items: center; justify-content: space-between; min-width: 135px; height: 36px; padding: 0 13px; border: 1px solid currentColor; font-size: 9px; font-weight: 400; letter-spacing: -.01em; transition: transform .2s ease, color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button span { margin-left: 18px; font-size: 15px; }
.button-light { color: #0b0c0d; background: var(--white); border-color: var(--white); }
.button-light:hover { color: var(--white); background: transparent; }
.button-outline { color: var(--white); border-color: rgba(255,255,255,.55); }
.button-outline:hover { color: var(--black); background: var(--white); border-color: var(--white); }

.section { position: relative; padding: 120px 0; }
.about { background: var(--black); }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(320px, .94fr); gap: clamp(50px, 9vw, 140px); align-items: center; }
.about-art, .about-copy, .news-intro, .news-card, .footer-intro, .footer-links { min-width: 0; }
.about-art { position: relative; height: 330px; overflow: hidden; }
.art-panel { width: 100%; height: 100%; margin: 0; overflow: hidden; }
.art-panel img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.84) brightness(.78); }
.about-copy { max-width: 520px; }
h2 { margin-bottom: 20px; font-size: clamp(34px, 3.3vw, 49px); font-weight: 500; line-height: .98; letter-spacing: -.025em; }
.about-copy > p { max-width: 480px; margin-bottom: 26px; color: var(--soft-white); font-size: 11px; line-height: 1.48; }
.stats { display: flex; gap: clamp(26px, 5.5vw, 74px); }
.stats div { min-width: 64px; }
.stats strong { display: block; font: 500 29px/.9 "Space Grotesk", Arial, sans-serif; }
.stats span { display: block; margin-top: 9px; color: var(--grey); font-size: 9px; line-height: 1.25; }

.games { padding-top: 56px; background: #0a0b0c; overflow: hidden; }
.games-shelf { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); grid-template-rows: repeat(2, 215px); gap: 20px; }
.shelf-intro { display: flex; align-items: start; justify-content: space-between; padding: 32px 0 0; }
.shelf-intro h2 { margin-bottom: 0; font-size: 35px; }
.game-tile { position: relative; display: block; overflow: hidden; background: #101417; }
.tile-tall { min-height: 215px; }
.tile-wide { min-height: 215px; }
.tile-empty { display: grid; height: 100%; min-height: 215px; place-items: center; color: rgba(255,255,255,.35); background: linear-gradient(135deg, #122832, #101417); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.game-tile img { height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.04); transition: transform .5s ease, filter .5s ease; }
.game-tile:hover img { transform: scale(1.055); filter: saturate(1); }
.tile-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 28%, rgba(3,5,7,.88) 100%); }
.tile-info { position: absolute; right: 15px; bottom: 12px; left: 15px; }
.tile-info h3 { margin-bottom: 10px; font-size: clamp(13.5px, 1.15vw, 18px); font-weight: 500; line-height: .86; letter-spacing: -.015em; }
.tile-info p { display: flex; justify-content: space-between; align-items: center; margin: 0; color: var(--soft-white); font: 400 10px/1 "Space Grotesk", Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.tile-info i { width: 6px; height: 6px; background: var(--lime); }
.tile-info i.status-red { background: #fa253d; }

.news { padding-top: 110px; padding-bottom: 115px; background: #0b0c0e; }
.news-layout { position: relative; display: grid; grid-template-columns: minmax(260px, 1.42fr) minmax(180px, .8fr) minmax(180px, .8fr); gap: 20px; align-items: start; }
.news-intro { padding-top: 35px; }
.news-intro h2 { max-width: 470px; margin-bottom: 18px; font-size: clamp(35px, 3.35vw, 50px); }
.news-intro p { max-width: 365px; margin-bottom: 29px; color: var(--soft-white); font-size: 11px; line-height: 1.48; }
.news-card { display: block; overflow: hidden; background: #141619; }
.news-card > img, .news-image-empty { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.news-card > img { filter: saturate(.76); }
.news-image-empty { display: grid; place-items: center; color: rgba(255,255,255,.36); background: linear-gradient(135deg, #122832, #101417); font-size: 11px; letter-spacing: .16em; }
.news-card-copy { min-height: 222px; padding: 11px 13px 14px; }
.news-card small { display: inline-block; margin-bottom: 10px; padding: 2px 6px; color: #cfd1d1; background: #25282a; font-size: 7px; }
.news-card h3 { margin-bottom: 9px; font-size: 13px; font-weight: 500; line-height: 1.3; letter-spacing: -.035em; text-transform: none; }
.news-card p { min-height: 49px; margin-bottom: 13px; color: var(--grey); font-size: 9px; line-height: 1.45; }
.news-card span { display: inline-block; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.2); color: var(--white); font-size: 9px; text-decoration: underline; text-underline-offset: 3px; }

.site-footer { position: relative; overflow: hidden; padding: 71px 0 27px; background: #000; }
.footer-layout { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 60px; padding-bottom: 57px; }
.footer-intro p { max-width: 220px; margin: 25px 0 15px; color: #c2c6c6; font-size: 12px; }
.mail-link { color: var(--blue-bright); font-size: 10px; }
.contact-link { display: block; margin-top: 8px; color: var(--blue-bright); font-size: 10px; }
.social-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; color: #c2c6c6; font-size: 10px; }
.social-link:hover { color: var(--white); }
.social-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(100px, 150px)); gap: clamp(28px, 6vw, 92px); }
.footer-links div { display: flex; flex-direction: column; gap: 8px; }
.footer-links h4 { margin: 0 0 6px; color: var(--white); font-size: 12px; font-weight: 500; }
.footer-links a { color: #a7abad; font-size: 9px; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); color: #8b9092; font-size: 8px; }
.footer-word { position: absolute; right: -7px; bottom: -45px; color: rgba(255,255,255,.035); font: 220px/.7 "Space Grotesk", Arial, sans-serif; letter-spacing: -.05em; pointer-events: none; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Standalone studio page */
.about-page { background: var(--black); }
.about-header { position: relative; background: var(--black); }
.about-single-page { min-height: calc(100vh - 74px); display: grid; align-items: center; }
.about-single { width: 100%; padding: clamp(45px, 7vh, 88px) 0; background: var(--black); }
.about-single-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(290px, .88fr); gap: clamp(45px, 8vw, 125px); align-items: center; }
.about-page-image { position: relative; margin: 0; overflow: hidden; background: #11191c; }
.about-page-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(0,0,0,.7)); pointer-events: none; }
.about-page-image img { aspect-ratio: 1.68; object-fit: cover; filter: saturate(.72) contrast(1.06); }
.about-page-image figcaption { position: absolute; z-index: 1; right: 17px; bottom: 14px; left: 17px; display: flex; justify-content: space-between; color: var(--white); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.about-single-copy { max-width: 470px; }
.about-single-label { margin: 0 0 22px; color: var(--blue-bright); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.about-single-copy p:not(.about-single-label) { margin: 0 0 18px; color: var(--soft-white); font-size: 12px; line-height: 1.65; }
.about-single-copy p:last-child { margin-bottom: 0; }
.about-single-copy strong { color: var(--white); font-weight: 500; }
.about-home-button { margin-top: 6px; }
.about-page-footer { padding: 17px 0; border-top: 1px solid var(--line); background: #000; color: #85898a; font-size: 9px; }
.about-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.about-footer-row .brand-logo { width: 24px; }
.about-footer-row > a:last-child { color: var(--soft-white); }
.about-footer-row > a:last-child span { margin-left: 7px; color: var(--blue-bright); }
.about-footer-row > a:last-child:hover { color: var(--white); }

@media (max-width: 760px) {
  .about-single-page { min-height: auto; }
  .about-single { padding: 48px 0 62px; }
  .about-single-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-single-copy { max-width: 560px; }
  .about-single-copy p:not(.about-single-label) { font-size: 11px; }
  .about-footer-row { flex-wrap: wrap; }
  .about-footer-row > a:last-child { margin-left: auto; }
}

@media (max-width: 900px) {
  :root { --shell: min(calc(100% - 84px), 720px); }
  .hero { min-height: 555px; height: 555px; max-height: none; }
  .hero-content { bottom: 96px; }
  h1 { margin-bottom: 19px; font-size: 41px; }
  .hero-detail { grid-template-columns: 160px 250px; justify-content: space-between; gap: 0; }
  .hero-detail p { font-size: 10px; }
  .about { padding: 36px 0 45px; }
  .about-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
  .about-art { height: 258px; }
  .about-copy h2 { margin-bottom: 15px; font-size: 34px; }
  .about-copy > p { margin-bottom: 18px; font-size: 10px; }
  .stats { gap: 29px; }
  .stats strong { font-size: 27px; }
  .stats span { margin-top: 6px; font-size: 8px; }
  .games { padding: 38px 0 67px; }
  .games-shelf { grid-template-columns: repeat(3, 190px); grid-template-rows: repeat(2, 215px); overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
  .games-shelf::-webkit-scrollbar { display: none; }
  .news { padding: 62px 0 72px; }
  .news-layout { grid-template-columns: minmax(250px, 1.2fr) minmax(170px, .8fr) minmax(170px, .8fr); overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
  .news-layout::-webkit-scrollbar { display: none; }
  .news-intro { padding-top: 16px; }
  .news-intro h2 { margin-bottom: 14px; font-size: 36px; }
  .news-intro p { margin-bottom: 21px; font-size: 10px; }
  .news-card > img { height: auto; }
  .news-card-copy { min-height: 177px; }
  .footer-links { gap: 34px; }
}

@media (max-width: 760px) {
  .about-layout { grid-template-columns: 1fr; gap: 38px; }
  .about-art { height: 280px; max-width: 560px; }
  .about-copy { max-width: 560px; }
  .games-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(190px, auto)); gap: 14px; overflow: visible; padding-bottom: 0; }
  .news-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; overflow: visible; padding-bottom: 0; }
  .news-intro { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 38px); }
  .nav-wrap { height: 65px; }
  .brand-logo { width: 26px; }
  .site-navigation { position: absolute; top: 65px; right: 0; left: 0; display: none; gap: 0; padding: 8px 19px 13px; border-bottom: 1px solid var(--line); background: rgba(8,9,10,.98); }
  .site-navigation.is-open { display: flex; flex-direction: column; }
  .site-navigation a { padding: 9px 0; }
  .menu-toggle { display: block; margin-left: auto; margin-right: 18px; }
  .nav-cta { min-width: auto; padding: 7px 9px; font-size: 9px; }
  .store-dialog-card { padding: 23px 18px; }
  .store-dialog-card h2 { font-size: 27px; }
  .hero { min-height: 660px; max-height: 800px; }
  .hero-slide img { object-position: 58% center; }
  .hero-content { bottom: 104px; }
  h1 { font-size: clamp(38px, 11vw, 55px); }
  .hero-detail { display: block; }
  .hero-detail p { max-width: 100%; margin-top: 21px; }
  .section { padding: 78px 0; }
  .about-layout { grid-template-columns: 1fr; gap: 49px; }
  .about-art { height: 260px; max-width: 480px; }
  .shelf-intro { display: block; padding-bottom: 24px; }
  .shelf-intro .button { margin-top: 22px; }
  h2 { font-size: clamp(30px, 8.8vw, 37px); }
  .about-copy > p { font-size: 10px; }
  .stats { gap: 20px; }
  .stats strong { font-size: 26px; }
  .games { padding-top: 32px; }
  .games-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, 190px); gap: 12px; margin-right: 0; overflow: visible; padding-bottom: 0; }
  .shelf-intro h2 { font-size: 32px; }
  .game-tile, .tile-tall, .tile-wide { min-height: 0; }
  .tile-info { right: 11px; bottom: 10px; left: 11px; }
  .tile-info h3 { font-size: clamp(10px, 3.5vw, 14.5px); }
  .tile-info p { font-size: 9px; }
  .news { padding-top: 67px; }
  .news-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; overflow: visible; padding-bottom: 0; }
  .news-intro { padding-top: 0; }
  .news-intro { grid-column: 1 / -1; }
  .news-intro h2 { font-size: clamp(29px, 8.5vw, 34px); }
  .news-card > img { height: auto; }
  .news-card-copy { min-height: 0; padding-bottom: 20px; }
  .footer-layout { display: block; padding-bottom: 43px; }
  .footer-links { margin-top: 36px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .footer-links div { min-width: 0; }
  .footer-links h4 { font-size: 10px; }
  .footer-links a { font-size: 8px; line-height: 1.35; overflow-wrap: anywhere; }
  .footer-bottom { display: block; line-height: 1.9; }
  .footer-bottom span:last-child { display: block; }
  .footer-word { font-size: 128px; bottom: -28px; }
}

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