/* ============================================================
   Popi2091 — site styles
   One dark studio look; each game adds its own accent colour
   and logo lettering through the .t-… classes.
   ============================================================ */

@font-face { font-family: "Archivo"; src: url("fonts/archivo-variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Lilita One"; src: url("fonts/lilita-one-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Patrick Hand"; src: url("fonts/patrick-hand-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Bowlby One SC"; src: url("fonts/bowlby-one-sc-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Big Shoulders Stencil"; src: url("fonts/big-shoulders-stencil-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --ink: #121019;
  --ink-2: #1a1723;
  --ink-3: #25212f;
  --line: rgba(255, 255, 255, .1);
  --text: #f3f0ea;
  --muted: #aaa5b9;
  --gold: #ffc53d;
  --accent: var(--gold);
  --on-accent: #1a1404;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 68px;
  --radius: 14px;
}
.t-grandma { --accent: #e9b250; --on-accent: #1f1503; }
.t-cromazo { --accent: #ee3338; --on-accent: #ffffff; }
.t-s100    { --accent: #a8b8ff; --on-accent: #0c1030; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 300; background: var(--text); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { left: 1rem; top: 1rem; }
.muted { color: var(--muted); }
.px { image-rendering: pixelated; }

h2, .h2 { font-weight: 800; font-stretch: 116%; font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.08; letter-spacing: -.02em; }
h3, .h3 { font-weight: 700; font-stretch: 108%; font-size: 1.15rem; line-height: 1.25; letter-spacing: -.01em; }

/* ---------- buttons, pills, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .7rem 1.4rem;
  font-weight: 700; font-stretch: 106%; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer;
  border-radius: 10px; border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px var(--accent); }
.btn:active { transform: none; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .28); color: var(--text); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--text); box-shadow: none; }
.btn--sm { min-height: 40px; padding: .45rem 1rem; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .32rem .8rem; border-radius: 999px; font-size: .88rem; font-weight: 600;
  background: rgba(18, 16, 25, .6); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.pill::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font-size: .82rem; font-weight: 600; padding: .2rem .6rem; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--text); }

/* ---------- game logo lettering ---------- */
.logo { margin: 0; font-weight: 400; text-wrap: balance; }
.logo--grandma { font-family: "Lilita One", var(--font); color: #f1e3c0; font-size: clamp(3rem, 7.4vw, 6.4rem); line-height: .92;
  text-shadow: 0 .045em 0 #6b4a22, 0 .09em 0 #2a1b0c, 0 .16em .4em rgba(0, 0, 0, .6); }
.logo--cromazo { font-family: "Bowlby One SC", var(--font); color: #fff1cf; font-size: clamp(2.9rem, 8vw, 6.8rem); line-height: 1; letter-spacing: .01em;
  transform: rotate(-3deg) skewX(-7deg); transform-origin: 0 100%; text-shadow: .05em .06em 0 #e5252a, .09em .11em 0 #0d0b10; }
.logo--s100 { font-family: "Big Shoulders Stencil", var(--font); font-weight: 800; text-transform: uppercase; color: #e9edff; font-size: clamp(3.2rem, 8.4vw, 7.4rem); line-height: .86;
  text-shadow: 0 .035em 0 #1a1f52, 0 .07em 0 #0a0d24, 0 .14em .4em rgba(0, 0, 0, .6); }
.logo--s100 b { font-weight: 800; color: #ffb84d; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: linear-gradient(180deg, rgba(18, 16, 25, .85), rgba(18, 16, 25, 0)); transition: background-color .25s ease, box-shadow .25s ease; }
.site-header.is-solid { background: rgba(18, 16, 25, .9); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-size: 1.3rem; font-stretch: 120%; letter-spacing: -.02em; line-height: 1; }
.wordmark svg { width: 30px; height: 30px; flex: none; }
.wordmark b { font-weight: 800; }
.wordmark__t span { font-weight: 300; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: clamp(.9rem, 2.2vw, 1.9rem); margin-left: auto; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 600; font-stretch: 104%; font-size: .97rem; color: var(--text); opacity: .82; padding: .4rem 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover { opacity: 1; border-bottom-color: var(--gold); }
.lang { cursor: pointer; background: transparent; border: 1px solid rgba(255, 255, 255, .3); border-radius: 8px; min-width: 44px; height: 36px; font-weight: 700; font-size: .85rem; letter-spacing: .04em; }
.lang:hover { border-color: var(--text); }
.site-header .btn { --accent: var(--gold); --on-accent: #1a1404; }

/* ---------- home hero (featured games) ---------- */
.hero { position: relative; height: clamp(600px, 92vh, 880px); overflow: hidden; background: #000; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 9s linear; }
.slide.is-active .slide__bg { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(18, 16, 25, .5) 0, transparent 22%, transparent 55%, var(--ink) 100%),
  linear-gradient(90deg, rgba(18, 16, 25, .78) 0, rgba(18, 16, 25, .35) 42%, transparent 68%); }
.slide__content { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(118px, 17vh, 160px); margin-inline: auto; }
.slide__content > * { max-width: 620px; }
.slide__content .pill { margin-bottom: 1.25rem; }
.slide__content .logo { margin-bottom: 1.4rem; }
.slide__pitch { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.45; max-width: 34ch; margin-bottom: 1.75rem; text-shadow: 0 1px 12px rgba(0, 0, 0, .7); }
.slide.is-active .slide__content > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.slide.is-active .slide__content > :nth-child(2) { animation-delay: .08s; }
.slide.is-active .slide__content > :nth-child(3) { animation-delay: .16s; }
.slide.is-active .slide__content > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.hero__tabs { position: absolute; z-index: 2; left: 0; right: 0; bottom: 26px; margin-inline: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.6rem, 2vw, 1.5rem); }
.hero__tab { position: relative; text-align: left; cursor: pointer; background: none; border: 0; padding: 14px 0 0; opacity: .6; transition: opacity .2s ease; }
.hero__tab:hover, .hero__tab.is-active { opacity: 1; }
.hero__tab::before, .hero__tab i { content: ""; position: absolute; left: 0; top: 0; height: 3px; border-radius: 2px; }
.hero__tab::before { width: 100%; background: rgba(255, 255, 255, .25); }
.hero__tab i { width: 0; background: var(--accent); }
.hero__tab.is-active i { width: 100%; }
.hero.is-auto .hero__tab.is-active i { animation: fill var(--dwell, 9s) linear both; }
.hero.is-paused .hero__tab.is-active i { animation-play-state: paused; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
.hero__tabname { display: block; font-weight: 700; font-stretch: 108%; font-size: 1rem; line-height: 1.2; }
.hero__tabmeta { display: block; font-size: .85rem; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 2rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section__head p { color: var(--muted); max-width: 46ch; }

/* play cards */
.playgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.playcard { display: block; text-decoration: none; border-radius: var(--radius); background: var(--ink-2); overflow: hidden; border: 1px solid var(--line); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.playcard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent) 60%, transparent); }
.playcard__art { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.playcard__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.playcard:hover .playcard__art img { transform: scale(1.05); }
.playcard__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(18, 16, 25, .65)); }
.playbtn { position: absolute; z-index: 1; right: 18px; bottom: 18px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: transform .25s ease; }
.playbtn svg { width: 26px; height: 26px; margin-left: 4px; }
.playcard:hover .playbtn { transform: scale(1.1); }
.playcard__body { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem 1.25rem; }
.playcard__title { display: block; font-weight: 800; font-stretch: 112%; font-size: 1.3rem; letter-spacing: -.01em; line-height: 1.2; }
.playcard__tag { display: block; color: var(--muted); font-size: .97rem; line-height: 1.4; margin-top: .15rem; }
.playcard .chips { flex: none; }

/* feature block */
.feature { position: relative; }
.feature::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 90% at 85% 50%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%); }
.feature__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature .pill { margin-bottom: 1.1rem; }
.feature h2 { margin-bottom: 1rem; }
.feature p.lead { color: var(--muted); font-size: 1.1rem; max-width: 46ch; margin-bottom: 1.4rem; }
.ticks { display: grid; gap: .7rem; margin-bottom: 1.9rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20Zm4.7-12.3-5.6 6.2-3.3-3.2 1.4-1.4 1.8 1.8 4.2-4.7 1.5 1.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20Zm4.7-12.3-5.6 6.2-3.3-3.2 1.4-1.4 1.8 1.8 4.2-4.7 1.5 1.3Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.feature__art { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px #000; aspect-ratio: 16 / 9; }
.feature__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.feature__art:hover img { transform: scale(1.04); }

/* news */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.news article { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.news time { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .4rem; }
.news h3 { margin-bottom: .5rem; }
.news p { color: var(--muted); font-size: .98rem; }
.news a { display: inline-block; margin-top: .8rem; font-weight: 700; color: var(--gold); }

/* about */
.about { background: var(--ink-2); border-block: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); }
.about h2 { margin-bottom: 1.1rem; }
.about p { color: var(--muted); max-width: 58ch; }
.about p + p { margin-top: .9em; }
.contact { background: var(--ink-3); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); align-self: start; }
.contact h3 { margin-bottom: .5rem; }
.contact .actions { margin-top: 1.2rem; }
.contact .mail + .actions { margin-top: 0; }
.contact .mail { display: block; margin: .9rem 0 1.2rem; font-weight: 700; font-size: 1.05rem; color: var(--text); overflow-wrap: anywhere; }

/* ---------- game pages ---------- */
.ghero { position: relative; min-height: clamp(460px, 68vh, 640px); display: flex; align-items: flex-end; overflow: hidden; background: #000; }
.ghero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ghero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(18, 16, 25, .55) 0, transparent 26%, transparent 45%, var(--ink) 100%),
  linear-gradient(90deg, rgba(18, 16, 25, .8) 0, rgba(18, 16, 25, .35) 45%, transparent 72%); }
.ghero .wrap { position: relative; z-index: 1; padding-bottom: clamp(1.5rem, 4vw, 3rem); padding-top: calc(var(--header-h) + 2rem); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { text-decoration: none; color: var(--text); opacity: .85; }
.crumbs a:hover { text-decoration: underline; }
.ghero .logo { margin-bottom: 1.1rem; }
.ghero__pitch { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 38ch; line-height: 1.45; margin-bottom: 1.1rem; text-shadow: 0 1px 12px rgba(0, 0, 0, .7); }
.ghero .chips { margin-bottom: 1.5rem; }
.ghero .chip { background: rgba(18, 16, 25, .6); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px); }

/* the player */
.theater { padding-block: clamp(2rem, 5vw, 3.5rem); }
.theater__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1.2rem; margin-bottom: 1.2rem; }
.player { --maxh: clamp(340px, calc(100vh - 300px), 780px); --r: 1.7778; --ratio: 16 / 9; background: #08070c; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.player__bar { display: none; }
.player__screen { display: grid; place-items: center; padding: clamp(.5rem, 2vw, 1.25rem); background:
  radial-gradient(80% 120% at 50% 0, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), #08070c; }
.player__frame { position: relative; width: min(100%, calc(var(--maxh) * 1.7778)); aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px -30px #000; }
.player.is-playing .player__frame { width: min(100%, calc(var(--maxh) * var(--r))); aspect-ratio: var(--ratio); }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player__start { position: absolute; inset: 0; width: 100%; cursor: pointer; border: 0; display: grid; place-content: center; justify-items: center; gap: 1rem;
  background: linear-gradient(180deg, rgba(8, 7, 12, .1), rgba(8, 7, 12, .55)); color: #fff; font-weight: 800; font-stretch: 112%; font-size: 1.25rem; text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.player__start .playbtn { position: static; width: clamp(76px, 10vw, 108px); height: clamp(76px, 10vw, 108px); transition: transform .2s ease, box-shadow .2s ease; }
.player__start .playbtn svg { width: 40%; height: 40%; margin-left: 7%; }
.player__start:hover .playbtn { transform: scale(1.08); box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 25%, transparent), 0 10px 30px rgba(0, 0, 0, .5); }
.player.is-playing .player__poster, .player.is-playing .player__start, .player.is-off .player__start { display: none; }
.player__msg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem; text-align: center; padding: 1.5rem; background: rgba(8, 7, 12, .78); }
.player__msg p { max-width: 46ch; }
.player__msg code { background: rgba(255, 255, 255, .12); padding: .1em .4em; border-radius: 4px; font-size: .92em; }
.player__tools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .8rem clamp(.8rem, 2vw, 1.25rem); border-top: 1px solid var(--line); }
.player__hint { margin-right: auto; color: var(--muted); font-size: .92rem; }
.tool { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .4rem .9rem; cursor: pointer; text-decoration: none;
  background: rgba(255, 255, 255, .07); border: 1px solid transparent; border-radius: 8px; font-weight: 600; font-size: .92rem; }
.tool:hover { border-color: rgba(255, 255, 255, .35); }
.tool:disabled { opacity: .4; cursor: default; border-color: transparent; }
.tool svg { width: 1.05em; height: 1.05em; }
/* full-screen play */
.player.is-immersive { position: fixed; inset: 0; z-index: 200; border: 0; border-radius: 0; display: flex; flex-direction: column; background: #000; }
.player.is-immersive .player__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 44px; padding: 0 .5rem 0 1rem; background: #0e0c14; font-weight: 700; font-size: .95rem; flex: none; }
.player.is-immersive .player__screen { flex: 1; min-height: 0; padding: 0; background: #000; }
.player.is-immersive .player__frame { border-radius: 0; box-shadow: none; width: min(100vw, calc((100vh - 44px) * var(--r))); max-height: 100%; }
.player.is-immersive.is-fill .player__frame { width: 100%; height: 100%; aspect-ratio: auto; }
.player.is-immersive .player__tools { display: none; }

/* store-page body */
.gbody { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem); }
.gmain > section + section { margin-top: clamp(2.5rem, 6vw, 4rem); }
.gmain h2 { margin-bottom: 1.1rem; }
.prose p { max-width: 66ch; color: #dcd8e4; }
.prose p + p { margin-top: 1em; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.features li { background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem 1.2rem; border-top: 3px solid var(--accent); }
.features h3 { margin-bottom: .35rem; }
.features p { color: var(--muted); font-size: .97rem; line-height: 1.5; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s ease; }
.gallery button:hover img { transform: scale(1.04); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.video button { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; background: rgba(8, 7, 12, .3); color: #fff; display: grid; place-content: center; justify-items: center; gap: .8rem; font-weight: 800; font-size: 1.1rem; }
.video .playbtn { position: static; }
.steam-widget { width: 100%; max-width: 646px; height: 190px; border: 0; display: block; }
.note { color: var(--muted); font-size: .93rem; margin-top: .7rem; }

.side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1.25rem; }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.card > img { border-radius: 8px; margin-bottom: 1.1rem; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card .actions { flex-direction: column; margin-bottom: 1.2rem; }
.card .actions .btn { width: 100%; }
.card h3 { margin-bottom: .8rem; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; font-size: .96rem; }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 600; text-align: right; }
.keys { display: grid; gap: .55rem; font-size: .95rem; }
.keys div { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.keys dt { color: var(--muted); }
.keys dd { font-weight: 600; text-align: right; }
kbd { font: 600 .82em var(--font); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-bottom-width: 2px; border-radius: 5px; padding: .08em .42em; white-space: nowrap; }

.more { border-top: 1px solid var(--line); }
.more .playcard__body { padding: .9rem 1.1rem 1rem; }
.more .playcard__title { font-size: 1.1rem; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1500px, 94vw); }
.lightbox::backdrop { background: rgba(5, 4, 8, .9); }
.lightbox img { max-height: 84vh; width: auto; border-radius: 8px; }
.lightbox form { text-align: right; margin-bottom: .5rem; }

/* ---------- text pages (press, privacy, 404) ---------- */
.doc { padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem)); padding-bottom: clamp(3rem, 8vw, 6rem); }
.doc h1 { font-weight: 800; font-stretch: 118%; font-size: clamp(2.3rem, 5.5vw, 4rem); line-height: 1; letter-spacing: -.03em; margin-bottom: 1rem; }
.doc .lead { color: var(--muted); font-size: 1.2rem; max-width: 52ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.doc h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin: 2.6rem 0 .9rem; }
.doc .prose p, .doc .prose li { max-width: 68ch; }
.doc .prose a { color: var(--gold); }
.sheet { display: grid; grid-template-columns: max-content 1fr; gap: .7rem 2rem; padding: 1.5rem; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); max-width: 640px; }
.sheet dt { color: var(--muted); }
.sheet dd { font-weight: 600; overflow-wrap: anywhere; }
.presskit { display: grid; gap: 1.25rem; }
.pk { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.5rem; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; align-items: start; }
.pk img { border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.pk h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.pk p { color: #dcd8e4; max-width: 62ch; margin-bottom: .9rem; }
.pk .chips { margin-bottom: 1rem; }
.pk .links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-weight: 700; }
.pk .links a { color: var(--accent); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; font-size: .96rem; }
.footgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footgrid p { color: var(--muted); max-width: 34ch; margin-top: .9rem; }
.footgrid h3 { font-size: .95rem; color: var(--muted); font-weight: 600; margin-bottom: .8rem; }
.footgrid ul { display: grid; gap: .5rem; }
.footgrid a { text-decoration: none; }
.footgrid a:hover { text-decoration: underline; text-underline-offset: .25em; }
.footbase { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

/* ---------- in development ---------- */
.btn--soon { background: rgba(255, 255, 255, .06); border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--text); backdrop-filter: blur(6px); }
.btn--soon:hover { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.soon-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: soon 1.8s ease-out infinite; flex: none; }
@keyframes soon { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 80%, 100% { box-shadow: 0 0 0 .55rem transparent; } }
.t-grandma .pill::before { animation: soon 1.8s ease-out infinite; }

.devgrid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 1.75rem); align-items: start; }
.locked { position: relative; width: 100%; min-width: 0; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.locked__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.75); }
.locked::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 8, 12, .92) 0, rgba(10, 8, 12, .55) 48%, rgba(10, 8, 12, .1) 80%); }
.locked__blink { position: absolute; z-index: 1; left: 50%; top: 64.5%; width: 7%; height: 3.4%; transform: translate(-50%, -50%); border-radius: 50%; background: #050403; opacity: 0; animation: blink 6s steps(1) infinite; }
@keyframes blink { 0%, 61%, 63.5%, 66%, 100% { opacity: 0; } 61.5%, 64%, 66.5%, 67% { opacity: 1; } }
.locked__msg { position: absolute; z-index: 2; left: clamp(1rem, 4vw, 2.5rem); top: 50%; transform: translateY(-50%); max-width: min(46%, 380px); }
.locked__msg .pill { margin-bottom: 1rem; }
.locked__msg h3 { font-weight: 800; font-stretch: 116%; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.05; letter-spacing: -.02em; margin-bottom: .6rem; }
.locked__msg > p:not(.pill) { color: #dcd8e4; margin-bottom: 1.1rem; }
.devtrack { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 2.5vw, 1.6rem); }
.devtrack h3 { margin-bottom: .9rem; }
.devbar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.devbar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, #fff 0%), var(--accent));
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 60%, transparent); transition: width 1.2s cubic-bezier(.2, .7, .2, 1); }
.devcount { color: var(--muted); font-size: .92rem; margin: .55rem 0 1.1rem; }
.milestones { list-style: none; padding: 0; margin: 0; display: grid; gap: .15rem; counter-reset: none; }
.ms { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0 .55rem 1.75rem; border-top: 1px solid var(--line); font-size: .97rem; }
.ms:first-child { border-top: 0; }
.ms::before { content: ""; position: absolute; left: 0; top: .78rem; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .28); box-sizing: border-box; }
.ms--done::before { border: 0; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20Zm4.7-12.3-5.6 6.2-3.3-3.2 1.4-1.4 1.8 1.8 4.2-4.7 1.5 1.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20Zm4.7-12.3-5.6 6.2-3.3-3.2 1.4-1.4 1.8 1.8 4.2-4.7 1.5 1.3Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ms--now::before { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 35%, transparent 40%); animation: soon 1.8s ease-out infinite; }
.ms--next .ms__t { color: var(--muted); }
.ms__s { flex: none; font-size: .8rem; font-weight: 700; color: var(--muted); }
.ms--done .ms__s, .ms--now .ms__s { color: var(--accent); }
.minitrack { max-width: 420px; margin: -.6rem 0 1.6rem; }
.minitrack .devcount { margin-bottom: 0; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .gbody { grid-template-columns: 1fr; }
  .side { position: static; grid-row: 1; }
  .card > img { display: none; }
  .feature__grid, .about__grid, .devgrid { grid-template-columns: 1fr; }
  .feature__art { order: -1; }
  .pk { grid-template-columns: 1fr; }
  .footgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .nav-hide { display: none; }
  .playgrid, .features { grid-template-columns: 1fr; }
  .hero { height: clamp(580px, 88vh, 720px); }
  .slide__bg { height: 64%; }
  .slide::after { background: linear-gradient(180deg, rgba(18, 16, 25, .55) 0, transparent 16%, transparent 30%, var(--ink) 63%); }
  .ghero::after { background: linear-gradient(180deg, rgba(18, 16, 25, .55) 0, transparent 20%, rgba(18, 16, 25, .5) 48%, var(--ink) 92%); }
  .slide__content { bottom: 104px; }
  .hero__tabmeta { display: none; }
  .hero__tabname { font-size: .82rem; }
  .hero__tabs { bottom: 18px; }
  .playcard__body { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .locked { aspect-ratio: auto; min-height: 340px; }
  .locked::after { background: linear-gradient(180deg, rgba(10, 8, 12, .2) 0, rgba(10, 8, 12, .92) 62%); }
  .locked__msg { top: auto; bottom: 1.2rem; transform: none; max-width: none; right: 1rem; }
  .locked__blink { display: none; }
  .player__hint { width: 100%; }
  .wordmark { font-size: 1.12rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
