/* ==========================================================================
   SquigglyFrog.com — design system (v2: cinematic / art-first)
   Dark stage, full-bleed key art, condensed uppercase display type, thin lines,
   sharp corners. One hand-written stylesheet, no build step.
   Sections: tokens · fonts/base · type · layout · buttons/chips · header · hero
             · ticker · showcase & cards · dice · news · studio · footer
             · game page · games filters · blog/post/prose · static pages
             · lightbox · motion · utilities
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  --bg:        #0E1611;
  --bg-2:      #131D16;
  --bg-3:      #1A261E;
  --bg-4:      #22312A;
  --line:      rgba(255, 255, 255, .09);
  --line-2:    rgba(255, 255, 255, .18);
  --text:      #F2EFE6;
  --text-2:    #CDD2C8;
  --muted:     #8F9A91;
  --ink:       #0B120E;

  --sun:       #FFD400;
  --sun-2:     #FFE14D;
  --sun-deep:  #C9A600;
  --frog:      #4CC24A;
  --frog-2:    #7BE070;
  --frog-deep: #1F7A3A;
  --pond:      #37C6D9;
  --berry:     #FF5A7A;
  --grape:     #9B7BFF;

  --header-bg: rgba(247, 244, 236, .94);
  --header-ink: #10190F;

  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-brand:   "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body:    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    ui-monospace, "Cascadia Mono", Menlo, monospace;

  --radius-sm: 3px;
  --radius:    6px;
  --shadow:    0 20px 50px rgba(0, 0, 0, .45);
  --glow:      0 0 0 1px var(--accent), 0 14px 40px color-mix(in srgb, var(--accent) 35%, transparent);

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --t-fast: .18s;
  --t: .35s;

  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --header-h: 88px;

  --accent: var(--sun);
}

/* ---------- 2. Fonts & base --------------------------------------------- */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/anton-latin.woff2") format("woff2"); }
/* STUDIOS tile letters (the studio's own logo face) */
@font-face { font-family: "Chopin Light"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/chopin-light.woff2") format("woff2"); }
@font-face {
  font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("../fonts/unbounded-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("../fonts/unbounded-latin-ext-var.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); background: var(--bg); }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.04rem; line-height: 1.6;
  color: var(--text); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img, picture, video, svg { max-width: 100%; height: auto; display: block; }
picture img { width: 100%; }
a { color: var(--sun); text-decoration: none; }
a:hover { color: var(--sun-2); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
::selection { background: var(--sun); color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--sun); color: var(--ink); padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { top: 1rem; }

/* ---------- 3. Type ------------------------------------------------------ */
h1, h2, h3, .display {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .01em; line-height: .95; margin: 0 0 .5em; text-wrap: balance;
}
h1 { font-size: clamp(3rem, 7.5vw, 6.4rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1; }
h4 { font-family: var(--font-brand); font-weight: 700; font-size: .95rem; margin: 0 0 .5em; }
p { margin: 0 0 1.1em; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--text-2); max-width: 58ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .9rem;
  font-family: var(--font-brand); font-weight: 600; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sun);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--sun); }
.eyebrow.no-line::before { display: none; }
.hl { color: var(--sun); }
.hl-block { background: var(--sun); color: var(--ink); padding: 0 .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl-frog { color: var(--frog-2); }
.outline { color: transparent; -webkit-text-stroke: 1.5px currentColor; }
.squiggle { display: block; width: 90px; height: 10px; color: var(--frog); margin: .1rem 0 1.2rem; overflow: visible; opacity: .9; }
.squiggle path { stroke-dasharray: 260; stroke-dashoffset: 0; }
.js .squiggle[data-reveal] path { stroke-dashoffset: 260; transition: stroke-dashoffset 1s var(--ease-out) .1s; }
.js .squiggle[data-reveal].in path { stroke-dashoffset: 0; }

/* ---------- 4. Layout ---------------------------------------------------- */
.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.container-narrow { width: min(780px, 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section-tight { padding-block: calc(var(--section) * .6); }
.section-line { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem); flex-wrap: wrap; }
.section-head h2 { margin-bottom: .2em; max-width: 20ch; }
.section-head .lede { margin: 0; }
.section-head-copy { flex: 1 1 420px; }
.section-head-action { flex: 0 0 auto; padding-bottom: .3rem; }
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.flow > * + * { margin-top: 1rem; }

/* ---------- 5. Buttons & chips ------------------------------------------ */
.btn {
  --btn-bg: var(--sun); --btn-fg: var(--ink); --btn-bd: var(--sun);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.35rem; border-radius: var(--radius-sm); border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-brand); font-weight: 600; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  cursor: pointer; white-space: nowrap; transition: transform var(--t-fast) var(--ease-out), background var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.btn:hover { --btn-bg: var(--sun-2); --btn-bd: var(--sun-2); color: var(--ink); transform: translateY(-1px); box-shadow: 0 10px 30px rgba(255, 212, 0, .2); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 17px; height: 17px; transition: transform var(--t-fast) var(--ease-out); }
.btn:hover .ico-arrow { transform: translateX(3px); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: rgba(255, 255, 255, .35); }
.btn-ghost:hover { --btn-bg: rgba(255, 255, 255, .08); --btn-bd: var(--text); color: var(--text); box-shadow: none; }
.btn-frog { --btn-bg: var(--frog); --btn-bd: var(--frog); }
.btn-frog:hover { --btn-bg: var(--frog-2); --btn-bd: var(--frog-2); box-shadow: 0 10px 30px rgba(76, 194, 74, .25); }
.btn-dark { --btn-bg: var(--header-ink); --btn-fg: var(--sun); --btn-bd: var(--header-ink); }
.btn-dark:hover { --btn-bg: #1c2a1c; --btn-bd: #1c2a1c; color: var(--sun); box-shadow: none; }
.btn-sm { padding: .62rem 1rem; font-size: .68rem; }
.btn-lg { padding: 1.05rem 1.7rem; font-size: .84rem; }
.btn-link { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-brand); font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.btn-link .ico { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease-out); }
.btn-link:hover { color: var(--sun); }
.btn-link:hover .ico { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

.chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .34rem .6rem; border-radius: var(--radius-sm);
  font-family: var(--font-brand); font-weight: 600; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1;
  background: rgba(255, 255, 255, .1); color: var(--text); backdrop-filter: blur(6px); white-space: nowrap;
}
.chip-status { background: var(--frog); color: var(--ink); }
.chip-status[data-status="beta"] { background: var(--sun); }
.chip-status[data-status="coming_soon"] { background: var(--pond); }
.chip-status[data-status="in_development"] { background: var(--grape); }
.chip-status[data-status="on_hold"], .chip-status[data-status="retired"] { background: var(--muted); }
.chip-platform { background: var(--text); color: var(--ink); }
.chip-platform .ico { width: 13px; height: 13px; }
.chip-soft { background: rgba(255, 255, 255, .08); color: var(--text-2); letter-spacing: .06em; }
a.chip-soft:hover { background: rgba(255, 255, 255, .16); color: var(--text); }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- 6. Header (light bar over the dark stage) ------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--header-bg); color: var(--header-ink);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, .06); transition: box-shadow var(--t);
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; color: var(--header-ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-word { font-family: var(--font-brand); font-weight: 800; font-size: 1.55rem; letter-spacing: -.02em; text-transform: uppercase; color: var(--header-ink); line-height: 1; }
.brand-word b { color: var(--frog-deep); font-weight: 800; }
.brand-tiles { display: flex; justify-content: center; gap: 3px; margin-top: 5px; }
.brand-tiles i {
  flex: 0 0 24px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-style: normal;
  font-family: "Chopin Light", var(--font-brand); font-weight: 300; font-size: 1.05rem; line-height: 1; padding-top: .08em;
  background: var(--sun); border: 1.5px solid var(--frog-deep); border-radius: 2px; color: var(--ink);
  -webkit-text-stroke: .3px var(--ink);   /* Chopin Light only ships one weight; this thickens it a hair */
}
.footer-brand .brand-tiles i { border-color: transparent; }
@media (max-width: 480px) { .brand-word { font-size: 1.35rem; } .brand-tiles i { flex-basis: 18px; width: 18px; height: 18px; font-size: .8rem; } }
.footer-brand .brand-word { color: var(--text); }
.footer-brand .brand-word b { color: var(--frog-2); }

.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .1rem; }
.site-nav li a {
  position: relative; display: inline-block; padding: .6rem .85rem; color: var(--header-ink);
  font-family: var(--font-brand); font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
}
.site-nav li a::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px; background: var(--frog); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease-out); }
.site-nav li a:hover::after, .site-nav li a.is-active::after { transform: scaleX(1); }
.site-nav li a.is-active { color: var(--frog-deep); }
.site-nav .btn-dark { color: var(--sun); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1.5px solid var(--header-ink); background: transparent; color: var(--header-ink); cursor: pointer; place-items: center; }
.nav-toggle .ico { width: 22px; height: 22px; }
.nav-toggle .ico-close { display: none; }
@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  /* The header's backdrop-filter makes it the containing block for fixed descendants, which would shrink a
     position:fixed panel to the header's own height. Anchor the panel to the header instead and size it from the viewport. */
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 40; flex-direction: column; align-items: stretch; gap: 1.5rem;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 1.5rem var(--gutter) 3rem; background: #F7F4EC; color: var(--header-ink);   /* solid: nothing from the page shows through the open menu */
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity var(--t), transform var(--t) var(--ease-out);
  }
  body.nav-open .site-nav { transform: none; opacity: 1; pointer-events: auto; }
  body.nav-open .nav-toggle .ico-menu { display: none; }
  body.nav-open .nav-toggle .ico-close { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a { display: block; font-size: 1.1rem; padding: .9rem 0; border-bottom: 1px solid rgba(0, 0, 0, .1); }
  .site-nav li a::after { display: none; }
  .site-nav .btn { align-self: flex-start; }
}

/* ---------- 7. Hero (full-bleed key art, slow crossfade) ---------------- */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: var(--bg-2); }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: heroFade var(--hero-cycle, 18s) linear infinite; transform: scale(1.04); }
.hero-slide:nth-child(2) { animation-delay: calc(var(--hero-cycle, 18s) / 3); }
.hero-slide:nth-child(3) { animation-delay: calc(var(--hero-cycle, 18s) / 3 * 2); }
.hero-slide:only-child { animation: none; opacity: 1; }
@keyframes heroFade { 0% { opacity: 0; transform: scale(1.08); } 5% { opacity: 1; } 34% { opacity: 1; } 40% { opacity: 0; transform: scale(1.0); } 100% { opacity: 0; } }
.hero-overlay { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14, 22, 17, .94) 0%, rgba(14, 22, 17, .72) 38%, rgba(14, 22, 17, .28) 70%, rgba(14, 22, 17, .35) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(14, 22, 17, .55) 22%, rgba(14, 22, 17, 0) 55%),
    linear-gradient(180deg, rgba(14, 22, 17, .35), transparent 30%);
}
.hero-content { position: relative; padding-top: clamp(4rem, 12vh, 8rem); padding-bottom: clamp(2rem, 5vh, 3rem); max-width: 760px; }
.hero-content h1 { margin-bottom: .35em; text-shadow: 0 6px 30px rgba(0, 0, 0, .35); }
.hero-content .lede { color: var(--text); text-shadow: 0 2px 12px rgba(0, 0, 0, .5); margin-bottom: 1.6rem; max-width: 52ch; }
.hero-foot { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; padding-bottom: clamp(1.5rem, 4vh, 2.5rem); flex-wrap: wrap; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.hero-stats li { display: flex; flex-direction: column; padding: .2rem 1.6rem; border-right: 1px solid var(--line-2); }
.hero-stats b { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; line-height: 1; color: var(--sun); letter-spacing: .02em; }
.hero-stats span { font-size: .66rem; color: var(--text-2); text-transform: uppercase; letter-spacing: .14em; margin-top: .3rem; font-weight: 600; }
.hero-now { display: flex; align-items: center; gap: .9rem; padding: .6rem .8rem .6rem .6rem; background: rgba(14, 22, 17, .6); border: 1px solid var(--line-2); border-radius: var(--radius); backdrop-filter: blur(10px); color: var(--text); max-width: 340px; transition: border-color var(--t-fast), background var(--t-fast); }
.hero-now:hover { border-color: var(--sun); background: rgba(14, 22, 17, .8); color: var(--text); }
.hero-now img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; flex: 0 0 auto; }
.hero-now span { display: block; }
.hero-now .lbl { font-family: var(--font-brand); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sun); font-weight: 600; margin-bottom: .2rem; }
.hero-now .ttl { font-family: var(--font-display); text-transform: uppercase; font-size: 1.15rem; line-height: 1; letter-spacing: .02em; }
.hero-now .ico { width: 18px; height: 18px; margin-left: auto; flex: 0 0 auto; opacity: .7; }
@media (max-width: 640px) {
  .hero { min-height: min(78vh, 680px); }
  .hero .eyebrow { font-size: clamp(.42rem, 2.1vw, .56rem); letter-spacing: .08em; white-space: nowrap; }
  .hero .eyebrow::before { width: 14px; flex: 0 0 14px; }
  .hero-overlay { background: linear-gradient(0deg, var(--bg) 0%, rgba(14, 22, 17, .85) 35%, rgba(14, 22, 17, .45) 70%, rgba(14, 22, 17, .3) 100%); }
  .hero-slide { background-position: 60% center; }
  .hero-stats li { padding: .2rem 1rem; }
  .hero-stats b { font-size: 1.5rem; }
  .hero-now { max-width: 100%; width: 100%; }
}

/* ---------- 8. Ticker (kept: the angled yellow tape) --------------------- */
.ticker {
  --ticker-bg: var(--sun); position: relative; z-index: 2; background: var(--ticker-bg); color: var(--ink);
  overflow: hidden; transform: rotate(-1.4deg) scale(1.03); margin-block: 0 1.5rem; box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase;
}
.ticker-track { display: flex; width: max-content; animation: ticker 50s linear infinite; will-change: transform; transform: translateZ(0); backface-visibility: hidden; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 1.2rem; padding: .65rem 1.2rem .65rem 0; white-space: nowrap; }
.ticker-item a { color: inherit; }
.ticker-item a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.ticker-item .ico { width: 18px; height: 18px; }
.ticker-item i { font-style: normal; color: var(--frog-deep); font-size: .8rem; }
@keyframes ticker { to { transform: translateX(var(--ticker-shift, -50%)); } }   /* shift distance (px) is set per-track by JS: exactly one set's measured width, however many copies it took to fill the viewport */

/* dev-log band: same angle as the ticker, wide post tiles drifting past */
.post-ticker { position: relative; z-index: 1; width: 100%; transform: rotate(-1.4deg); margin-block: .6rem 1.5rem; padding-block: .8rem; overflow: hidden; }
.post-ticker-track { display: flex; width: max-content; animation: ticker 75s linear infinite; will-change: transform; transform: translateZ(0); backface-visibility: hidden; }
.post-ticker:hover .post-ticker-track, .post-ticker:focus-within .post-ticker-track { animation-play-state: paused; }
.post-tile { --accent: var(--sun); position: relative; display: block; flex: 0 0 auto; width: clamp(300px, 32vw, 460px); aspect-ratio: 16 / 7; margin-right: .9rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); color: var(--text); isolation: isolate; transition: transform var(--t) var(--ease-out), box-shadow var(--t), border-color var(--t); }
.post-tile:hover { transform: translateY(-3px); box-shadow: var(--glow); border-color: transparent; color: var(--text); }
.post-tile-bg { position: absolute; inset: 0; z-index: -1; }
.post-tile-bg picture, .post-tile-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.post-tile:hover .post-tile-bg img { transform: scale(1.05); }
.post-tile-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 22, 17, .1) 20%, rgba(14, 22, 17, .92) 100%); }
.post-tile-placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, #1F7A3A, var(--bg-2)); }
.post-tile .chip-new { position: absolute; left: 10px; top: 10px; background: var(--sun); color: var(--ink); padding: .4rem .65rem; font-size: .62rem; letter-spacing: .16em; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.post-tile .chip-new::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #FF3B30; box-shadow: 0 0 6px 1px #FF3B30; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.post-tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: .8rem 1rem .95rem; }
.post-tile-body .post-meta { font-size: .54rem; }
.post-tile-body strong { display: block; margin-top: .3rem; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.15rem, 1.7vw, 1.55rem); line-height: .95; letter-spacing: .02em; text-shadow: 0 3px 14px rgba(0, 0, 0, .5); }
@media (max-width: 640px) { .post-tile { width: 78vw; } }

/* ---------- 9. Showcase panels & cards (art first) ----------------------- */
.game-card {
  --accent: var(--sun);
  position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--bg-3);
  aspect-ratio: 16 / 10; color: var(--text); border: 1px solid var(--line); isolation: isolate;
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out), border-color var(--t);
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: transparent; color: var(--text); }
.game-card-tall { aspect-ratio: 4 / 5; }
.game-card-art { position: absolute; inset: 0; z-index: -1; }
.game-card-art picture, .game-card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.game-card:hover .game-card-art img { transform: scale(1.06); }
.game-card-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 22, 17, .1) 0%, rgba(14, 22, 17, .05) 40%, rgba(14, 22, 17, .82) 78%, rgba(14, 22, 17, .95) 100%); }
.game-card-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 45%, var(--bg)), var(--bg-2)); }
.game-card-placeholder span { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.4rem); color: rgba(255, 255, 255, .25); text-align: center; padding: 1rem; letter-spacing: .04em; }
.game-card .chip { position: absolute; left: 14px; top: 14px; }
.game-card .chip-platform { left: auto; right: 14px; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.game-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.game-card-genre { font-family: var(--font-brand); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sun); font-weight: 600; }
.game-card-body h3 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2.1rem); text-shadow: 0 4px 20px rgba(0, 0, 0, .5); }
.game-card-tall .game-card-body h3 { font-size: clamp(1.8rem, 2.8vw, 2.6rem); }
.game-card-tagline { margin: 0; color: var(--text-2); font-size: .9rem; max-width: 34ch; }
.game-card-meta { display: flex; align-items: center; gap: .8rem; margin-top: .3rem; font-size: .72rem; color: var(--text-2); }
.game-card-meta .price { font-family: var(--font-brand); font-weight: 700; color: var(--ink); background: var(--sun); padding: .2rem .45rem; border-radius: var(--radius-sm); font-size: .66rem; }
.game-card-meta .more { margin-left: auto; display: inline-flex; align-items: center; gap: .3rem; font-family: var(--font-brand); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; opacity: 0; transform: translateX(-6px); transition: opacity var(--t), transform var(--t) var(--ease-out); }
.game-card:hover .game-card-meta .more { opacity: 1; transform: none; }
.game-card-meta .more .ico { width: 14px; height: 14px; }
.showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 1.5vw, 1.2rem); }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; } .game-card-tall { aspect-ratio: 16 / 10; } }

/* small art tiles: "in the works" row, more games, roll result */
.tile-row { display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .2rem .1rem 1rem; scrollbar-width: thin; scrollbar-color: var(--bg-4) transparent; }
.tile-row > * { flex: 0 0 min(280px, 76vw); min-width: 0; scroll-snap-align: start; }
.art-tile { --accent: var(--sun); position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); color: var(--text); isolation: isolate; transition: transform var(--t) var(--ease-out), box-shadow var(--t), border-color var(--t); }
.art-tile:hover { transform: translateY(-3px); box-shadow: var(--glow); border-color: transparent; color: var(--text); }
.art-tile-bg { position: absolute; inset: 0; z-index: -1; }
.art-tile-bg picture, .art-tile-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.art-tile:hover .art-tile-bg img { transform: scale(1.06); }
.art-tile-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 22, 17, .05) 30%, rgba(14, 22, 17, .9) 100%); }
.art-tile .chip { position: absolute; left: 10px; top: 10px; }
.art-tile .chip-platform { left: auto; right: 10px; font-size: .54rem; }
.art-tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: .8rem .9rem .9rem; }
.art-tile-body strong { display: block; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.25rem; line-height: 1; letter-spacing: .02em; }
.art-tile-body span { display: block; font-size: .78rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .2rem; }
.art-tile-placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 45%, var(--bg)), var(--bg-2)); }

/* list rows (games in sidebars) */
.mini-game { --accent: var(--sun); display: flex; gap: .8rem; align-items: center; padding: .55rem; border-radius: var(--radius); background: var(--bg-3); border: 1px solid var(--line); color: var(--text); transition: border-color var(--t-fast), background var(--t-fast); }
.mini-game:hover { border-color: var(--accent); background: var(--bg-4); color: var(--text); }
.mini-game-thumb { width: 64px; height: 64px; flex: 0 0 auto; border-radius: var(--radius-sm); overflow: hidden; background: var(--accent); display: grid; place-items: center; font-family: var(--font-display); color: var(--ink); font-size: 1.4rem; }
.mini-game-thumb img, .mini-game-thumb picture { width: 100%; height: 100%; object-fit: cover; }
.mini-game-body { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; }
.mini-game-body .chip-row { gap: .3rem; }
.mini-game-body .chip { font-size: .52rem; padding: .28rem .45rem; }
.mini-game-body strong { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.05rem; line-height: 1; letter-spacing: .02em; }
.mini-game-body span:last-child { font-size: .76rem; color: var(--muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.upcoming-strip { margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.6rem; border-top: 1px solid var(--line); }
.upcoming-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.upcoming-head h3 { margin: 0; display: flex; align-items: center; gap: .6rem; font-size: 1.5rem; }
.upcoming-head h3 .ico { width: 20px; height: 20px; color: var(--sun); }

/* ---------- 10. Dice roller ---------------------------------------------- */
.roll-band { position: relative; overflow: hidden; background: var(--bg-2); border-block: 1px solid var(--line); }
.roll-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 15% 50%, rgba(76, 194, 74, .18), transparent 60%), radial-gradient(40% 100% at 90% 30%, rgba(255, 212, 0, .14), transparent 60%); pointer-events: none; }
.roll-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); }
.roll-copy h2 { margin-bottom: .3em; }
.roll-copy p { color: var(--text-2); max-width: 46ch; }
.roll-stage { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.5rem); flex-wrap: wrap; }
.die { --size: 100px; width: var(--size); height: var(--size); background: none; border: 0; padding: 0; cursor: pointer; perspective: 700px; position: relative; flex: 0 0 auto; }
.die-cube { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(-18deg) rotateY(24deg); transition: transform 1.4s cubic-bezier(.34, 1.56, .64, 1); }
.die.is-rolling .die-cube { transition: transform 1.4s cubic-bezier(.2, .9, .3, 1.15); }
.face { position: absolute; inset: 0; background: #F6F3EA; border-radius: 10px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 15%; gap: 6%; backface-visibility: hidden; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .08); }
.face b { display: block; border-radius: 50%; background: var(--ink); }
.face b.off { visibility: hidden; }
.f1 { transform: rotateY(0deg) translateZ(calc(var(--size) / 2)); }
.f6 { transform: rotateY(180deg) translateZ(calc(var(--size) / 2)); }
.f3 { transform: rotateY(90deg) translateZ(calc(var(--size) / 2)); }
.f4 { transform: rotateY(-90deg) translateZ(calc(var(--size) / 2)); }
.f5 { transform: rotateX(90deg) translateZ(calc(var(--size) / 2)); }
.f2 { transform: rotateX(-90deg) translateZ(calc(var(--size) / 2)); }
.die:hover .die-cube { transform: rotateX(-24deg) rotateY(38deg); }
.die:focus-visible { outline-offset: 10px; }
.roll-hint { font-family: var(--font-brand); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sun); margin-top: 2.2rem; text-align: center; font-weight: 600; }
.roll-result { flex: 1 1 280px; min-height: 100px; }
.roll-result .mini-game { animation: pop .5s cubic-bezier(.34, 1.56, .64, 1); }
.roll-result-empty { color: var(--muted); font-style: italic; margin: 0; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 720px) {
  .roll-inner { grid-template-columns: 1fr; }
  .roll-stage { flex-direction: column; align-items: center; text-align: center; }
  .roll-stage > div:first-child { display: flex; flex-direction: column; align-items: center; }
  .roll-result { width: 100%; flex-basis: auto; }
  .roll-result .mini-game { text-align: left; }
}

/* ---------- 11. Dev log (home) ------------------------------------------ */
.news-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); align-items: stretch; }
.post-feature { --accent: var(--sun); position: relative; display: block; border-radius: var(--radius); overflow: hidden; min-height: 440px; background: var(--bg-3); border: 1px solid var(--line); color: var(--text); isolation: isolate; transition: transform var(--t) var(--ease-out), box-shadow var(--t), border-color var(--t); }
.post-feature:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: transparent; color: var(--text); }
.post-feature-img { position: absolute; inset: 0; z-index: -1; }
.post-feature-img picture, .post-feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.post-feature:hover .post-feature-img img { transform: scale(1.05); }
.post-feature-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 22, 17, .15) 0%, rgba(14, 22, 17, .2) 35%, rgba(14, 22, 17, .92) 75%); }
.post-feature .chip { position: absolute; left: 16px; top: 16px; }
.post-feature-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; gap: .5rem; }
.post-feature-body h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin: 0; }
.post-feature-body p { color: var(--text-2); margin: 0; max-width: 56ch; }
.post-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; align-items: center; padding: .9rem 0; color: var(--text); }
.post-list a:hover h3 { color: var(--sun); }
.post-list-img { aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-3); }
.post-list-img img, .post-list-img picture { width: 100%; height: 100%; object-fit: cover; }
.post-list h3 { font-size: 1.25rem; margin: .25rem 0 0; transition: color var(--t-fast); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; font-family: var(--font-brand); font-size: .58rem; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.post-meta time { color: var(--sun); }
.post-meta a { color: var(--text-2); }
.post-meta a:hover { color: var(--sun); }
.post-meta .dot::before { content: "•"; }
.news-side { display: flex; flex-direction: column; }
.news-side .btn-row { margin-top: auto; padding-top: 1.4rem; }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } .post-feature { min-height: 380px; } }

/* ---------- 12. Studio (home) ------------------------------------------ */
.studio { position: relative; overflow: hidden; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.studio-copy .lede + .lede { margin-top: -.4rem; }
.collage { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: .7rem; transform: rotate(-2deg); }
.collage-item { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); }
.collage-item img, .collage-item picture { width: 100%; height: 100%; object-fit: cover; }
.collage-item:nth-child(2) { transform: translateY(1.6rem); }
.collage-item:nth-child(3) { transform: translateY(-.4rem); }
.collage-item:nth-child(4) { transform: translateY(1.2rem); }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0; margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillar { position: relative; padding: 1.8rem 1.4rem 1.8rem 0; border-right: 1px solid var(--line); margin-right: 1.4rem; }
.pillar:last-child { border-right: 0; margin-right: 0; }
.pillar-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--pillar, var(--sun)); color: var(--ink); margin-bottom: 1rem; }
.pillar-icon .ico { width: 22px; height: 22px; }
.pillar h3 { margin-bottom: .4rem; font-size: 1.4rem; }
.pillar p { margin: 0; color: var(--text-2); font-size: .92rem; }
.pillar-num { position: absolute; right: 1.2rem; top: 1.4rem; font-family: var(--font-display); color: var(--bg-4); font-size: 2rem; line-height: 1; }
@media (max-width: 860px) { .studio-grid { grid-template-columns: 1fr; } .pillar { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); } .pillar:last-child { border-bottom: 0; } }

/* ---------- 13. Footer --------------------------------------------------- */
.site-footer { position: relative; margin-top: var(--section); color: var(--text); }
.footer-cta { position: relative; overflow: hidden; background: linear-gradient(100deg, #17482A 0%, #1F7A3A 45%, #2E9E3F 100%); border-block: 1px solid var(--line-2); }
.footer-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 100% at 85% 30%, rgba(255, 212, 0, .25), transparent 60%); pointer-events: none; }
.cta-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); min-height: 300px; }
.cta-copy h2 { font-size: clamp(2.6rem, 6vw, 5rem); margin-bottom: .3em; color: var(--text); }
.cta-copy h2 .outline { color: var(--sun); -webkit-text-stroke: 0; }
.cta-copy p { max-width: 46ch; margin-bottom: 1.4rem; font-size: 1.05rem; color: rgba(255, 255, 255, .85); }
.cta-char { position: absolute; right: 0; bottom: -6%; width: clamp(170px, 24vw, 300px); filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .45)); pointer-events: none; animation: bob 6s ease-in-out infinite; }
.cta-char img { width: 100%; height: auto; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
.footer-main-wrap { background: #0A100C; padding-top: clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.footer-main { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand p { color: var(--text-2); margin-top: 1.2rem; max-width: 34ch; font-size: .95rem; }
.footer-brand .small a { color: var(--muted); }
.footer-brand .small a:hover { color: var(--sun); }
.footer-col h3 { font-family: var(--font-brand); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sun); margin-bottom: 1rem; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { color: var(--text); display: inline-flex; align-items: center; gap: .55rem; }
.footer-col a:hover { color: var(--sun); }
.footer-col .ico { width: 17px; height: 17px; opacity: .8; }
.footer-col li > span { display: inline-flex; align-items: center; gap: .55rem; color: var(--text-2); }
.social-list svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { position: relative; border-top: 1px solid var(--line); padding: 1.3rem 0 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; font-size: .8rem; color: var(--muted); }
.footer-bottom a { color: inherit; }
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 720px) { .cta-card { grid-template-columns: 1fr; padding-bottom: 7rem; } .cta-char { width: 160px; bottom: -3%; } }
@media (max-width: 520px) { .footer-main { grid-template-columns: 1fr; } }

/* ---------- 14. Game page ---------------------------------------------- */
.game-hero { position: relative; min-height: min(70vh, 640px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.game-hero-bg { position: absolute; inset: 0; z-index: -2; background: var(--bg-2) center / cover no-repeat; transform: scale(1.03); }
.game-hero-bg picture, .game-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.game-hero-overlay { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(14, 22, 17, .9) 0%, rgba(14, 22, 17, .6) 45%, rgba(14, 22, 17, .2) 100%),
  linear-gradient(0deg, var(--bg) 0%, rgba(14, 22, 17, .6) 25%, rgba(14, 22, 17, 0) 60%); }
.game-hero-inner { position: relative; padding-block: clamp(3rem, 8vh, 5rem) clamp(2rem, 4vh, 3rem); }   /* full container width so long titles stay on one line */
.game-title-row { display: flex; align-items: center; gap: clamp(.8rem, 1.5vw, 1.4rem); margin: .6rem 0 .5rem; }
.game-icon { width: clamp(72px, 7.2vw, 116px); height: clamp(72px, 7.2vw, 116px); border-radius: var(--radius); object-fit: cover; flex: 0 0 auto; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }   /* sized to the title; no border */
.game-title-row h1 { margin: 0; font-size: clamp(2.6rem, 6vw, 5.2rem); text-shadow: 0 6px 30px rgba(0, 0, 0, .4); }
.game-logo { max-height: 170px; width: auto; margin: .6rem 0 .8rem; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5)); }
.game-tagline { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--text); margin-bottom: 1.2rem; max-width: 60ch; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.game-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 1.2rem 0 1.6rem; border-left: 1px solid var(--line-2); }
.fact { padding: .1rem 1.4rem; border-right: 1px solid var(--line-2); }
.fact span { display: block; font-family: var(--font-brand); font-size: .56rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); font-weight: 600; margin-bottom: .2rem; }
.fact strong { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .02em; }
.game-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.game-features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: .6rem .9rem; }
.game-features li { position: relative; padding: .7rem .8rem .7rem 2.4rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .95rem; color: var(--text-2); }
.game-features li::before { content: ""; position: absolute; left: .8rem; top: .95rem; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B120E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); background-size: 70%; background-position: center; background-repeat: no-repeat; }
.sticky-side { position: sticky; top: calc(var(--header-h) + 1.2rem); }
.side-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.side-card h3 { font-size: 1.15rem; margin-bottom: .9rem; letter-spacing: .04em; }
.side-card + .side-card { margin-top: 1rem; }
.glance { margin: 0; display: grid; gap: .55rem; }
.glance > div { display: grid; grid-template-columns: 82px 1fr; gap: .6rem; align-items: baseline; font-size: .92rem; }
.glance dt { font-family: var(--font-brand); font-size: .56rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.glance dd { margin: 0; color: var(--text-2); }
.glance dd a { display: inline-flex; align-items: center; gap: .3rem; }
.trailer { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.trailer video, .trailer iframe { width: 100%; height: 100%; display: block; border: 0; }
.trailer video { object-fit: cover; background: #000; }
.yt-facade { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text); background: #000; }
.yt-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: transform .8s var(--ease-out), opacity var(--t); }
.yt-facade:hover img { transform: scale(1.04); opacity: 1; }
.play-badge { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .6rem; background: var(--sun); color: var(--ink); border-radius: var(--radius-sm); padding: .8rem 1.3rem .8rem 1rem; font-family: var(--font-brand); font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; transition: transform var(--t-fast); }
.yt-facade:hover .play-badge, .video-facade:hover .play-badge { transform: scale(1.05); }
.play-badge .ico { width: 18px; height: 18px; }
.video-facade { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; background: center / cover no-repeat var(--bg-2); border: 0; padding: 0; }
.video-facade::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 22, 17, .7), rgba(14, 22, 17, .15)); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: .9rem; }
.shot { display: block; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); aspect-ratio: 16 / 9; transition: transform var(--t) var(--ease-out), box-shadow var(--t), border-color var(--t); }
.shot:hover { transform: translateY(-3px); box-shadow: var(--glow); border-color: transparent; }
.shot img, .shot picture { width: 100%; height: 100%; object-fit: cover; }
.shot::after { content: "⤢"; position: absolute; right: 10px; bottom: 8px; width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--sun); display: grid; place-items: center; font-size: 1rem; color: var(--ink); opacity: 0; transition: opacity var(--t); }
.shot:hover::after { opacity: 1; }
.game-section { margin-top: clamp(2.2rem, 4vw, 3.2rem); }
.game-section > h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin-bottom: .8rem; }
.related-posts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.related-posts li { border-bottom: 1px solid var(--line); }
.related-posts li:last-child { border-bottom: 0; }
.related-posts a { display: block; padding: .7rem 0; color: var(--text); }
.related-posts a:hover strong { color: var(--sun); }
.related-posts strong { display: block; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .02em; margin-top: .2rem; transition: color var(--t-fast); }
@media (max-width: 900px) { .game-body { grid-template-columns: 1fr; } .sticky-side { position: static; } .game-hero { min-height: 60vh; } }

/* games page filters */
.filters { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 2rem; }
.filter-set { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.filter-label { font-family: var(--font-brand); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; min-width: 4.5rem; }
.filter small { font-weight: 600; opacity: .6; margin-left: .2rem; }
.filter { border: 1px solid var(--line-2); background: transparent; color: var(--text-2); border-radius: var(--radius-sm); padding: .5rem .9rem; font-family: var(--font-brand); font-weight: 600; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.filter:hover { border-color: var(--text); color: var(--text); }
.filter[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.filter-count { display: none; color: var(--muted); font-style: italic; margin: -1rem 0 1.5rem; }
.filter-count.show { display: block; }
.game-card.is-hidden { display: none; }

/* ---------- 15. Blog / post / prose ------------------------------------ */
.page-head { padding-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(70% 120% at 100% 0%, rgba(76, 194, 74, .12), transparent 60%); }
.page-head h1 { margin-bottom: .25em; }
.page-head .lede { margin-bottom: 0; }
.page-head-deco { position: absolute; right: -3%; top: -10%; width: 30vw; max-width: 420px; opacity: .1; pointer-events: none; }
.page-head-deco img { width: 100%; height: auto; }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.blog-side { position: sticky; top: calc(var(--header-h) + 1.2rem); display: flex; flex-direction: column; gap: 1rem; }
.side-block { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.side-block h3 { font-family: var(--font-brand); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: .8rem; color: var(--sun); font-weight: 600; }
.side-block ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; }
.side-block a { display: flex; justify-content: space-between; align-items: center; gap: .6rem; color: var(--text-2); padding: .35rem .5rem; margin: 0 -.5rem; border-radius: var(--radius-sm); font-size: .92rem; }
.side-block a:hover, .side-block a.is-active { background: rgba(255, 255, 255, .06); color: var(--text); }
.side-block a small { color: var(--muted); font-variant-numeric: tabular-nums; }
.side-block .btn { display: inline-flex; justify-content: center; margin: 0; color: var(--btn-fg); }
.side-block .btn:hover { background: var(--sun-2); color: var(--ink); }
.side-block .year-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.side-block .year-list a { margin: 0; padding: .3rem .7rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-family: var(--font-brand); font-size: .64rem; font-weight: 600; }
.post-card { --accent: var(--sun); display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform var(--t) var(--ease-out), box-shadow var(--t), border-color var(--t); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: transparent; }
.post-card > a { display: flex; flex-direction: column; color: inherit; height: 100%; }
.post-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-3); }
.post-card-img img, .post-card-img picture { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-card-body h3 { margin: 0; font-size: 1.5rem; }
.post-card-body p { margin: 0; color: var(--text-2); font-size: .92rem; }
.post-card-more { margin-top: auto; padding-top: .5rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .8rem; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: transparent; font-family: var(--font-brand); font-weight: 600; font-size: .7rem; color: var(--text); }
.pagination a:hover { border-color: var(--sun); color: var(--sun); }
.pagination .is-current { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.pagination .disabled { opacity: .35; }
@media (max-width: 900px) { .blog-layout { grid-template-columns: 1fr; } .blog-side { position: static; } }

.post-head { padding-block: clamp(3rem, 7vw, 5rem) 1.5rem; }
.post-head h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); margin: .6rem 0 .8rem; max-width: 24ch; }
.post-head .post-meta { font-size: .62rem; }
.post-hero-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); aspect-ratio: 16 / 8; margin-bottom: clamp(2rem, 4vw, 3rem); }
.post-hero-img img, .post-hero-img picture { width: 100%; height: 100%; object-fit: cover; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.post-aside { position: sticky; top: calc(var(--header-h) + 1.2rem); display: flex; flex-direction: column; gap: 1rem; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.post-nav a { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); color: var(--text); transition: border-color var(--t-fast); }
.post-nav a:hover { border-color: var(--sun); }
.post-nav a span { font-family: var(--font-brand); font-size: .56rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }
.post-nav a strong { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.1rem; letter-spacing: .02em; }
.post-nav .next { text-align: right; align-items: flex-end; }
.post-nav .ico { width: 13px; height: 13px; }
@media (max-width: 900px) { .post-layout { grid-template-columns: 1fr; } .post-aside { position: static; } }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } }

.prose { font-size: 1.06rem; line-height: 1.75; color: var(--text-2); }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose > h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin-top: 1.8em; color: var(--text); }
.prose > h3 { font-size: 1.45rem; margin-top: 1.5em; color: var(--text); }
.prose > h4, .prose > h5, .prose > h6 { font-family: var(--font-brand); font-size: .95rem; margin-top: 1.4em; margin-bottom: .4em; color: var(--text); }
.prose > h2 + *, .prose > h3 + *, .prose > h4 + * { margin-top: .6em; }
.prose p { margin-bottom: 0; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--sun); }
.prose a { color: var(--sun); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 212, 0, .4); }
.prose a:hover { text-decoration-color: var(--sun); }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); margin: .4em 0; }
.prose figure { margin: 1.6em 0; }
.prose figure.video { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.prose figure.video video, .prose figure.video iframe { width: 100%; height: 100%; display: block; border: 0; }
.prose figure.video .yt { display: grid; place-items: center; height: 100%; }
.prose blockquote { margin: 1.4em 0; padding: 1em 1.4em; border-left: 3px solid var(--sun); background: var(--bg-2); border-radius: 0 var(--radius) var(--radius) 0; color: var(--text); }
.prose hr { margin: 2em 0; }
.prose code { font-family: var(--font-mono); font-size: .92em; background: var(--bg-3); padding: .1em .4em; border-radius: var(--radius-sm); color: var(--text); }
.prose pre { background: #060A08; color: var(--text); padding: 1.1em 1.3em; border-radius: var(--radius); overflow-x: auto; font-size: .92em; border: 1px solid var(--line); }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95em; }
.prose th, .prose td { border: 1px solid var(--line-2); padding: .5em .7em; text-align: left; }
.prose-narrow { max-width: 68ch; }

/* ---------- 16. Static pages ------------------------------------------- */
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-photo { position: sticky; top: calc(var(--header-h) + 1.2rem); }
.about-photo img, .about-photo picture { border-radius: var(--radius); border: 1px solid var(--line-2); }
.about-photo figcaption { margin-top: .8rem; font-size: .8rem; color: var(--muted); text-align: center; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.6rem; }
.about-stats div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .9rem; }
.about-stats b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; color: var(--sun); line-height: 1; }
.about-stats span { font-family: var(--font-brand); font-size: .56rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
@media (max-width: 860px) { .about-layout { grid-template-columns: 1fr; } .about-photo { position: static; max-width: 320px; } }

.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: .5rem; }
.faq-item { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color var(--t-fast); }
.faq-item:hover, .faq-item[open] { border-color: var(--line-2); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; font-family: var(--font-display); text-transform: uppercase; font-size: 1.15rem; letter-spacing: .02em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { width: 20px; height: 20px; flex: 0 0 auto; transition: transform var(--t) var(--ease-out); color: var(--sun); }
.faq-item[open] summary .ico { transform: rotate(180deg); }
.faq-answer { padding: 0 1.2rem 1.2rem; color: var(--text-2); font-size: .98rem; }
.contact-card .big-mail { font-family: var(--font-brand); font-weight: 700; font-size: .85rem; overflow-wrap: anywhere; color: var(--sun); }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } }

.legal-note { background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--sun); border-radius: var(--radius); padding: .9rem 1.1rem; font-size: .9rem; display: flex; gap: .6rem; align-items: flex-start; color: var(--text-2); }
.legal-note .ico { width: 18px; height: 18px; flex: 0 0 auto; margin-top: .15rem; color: var(--sun); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.contact-tile { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: .6rem; }
.contact-tile h2 { font-size: 1.7rem; margin: 0; }
.contact-tile p { margin: 0; color: var(--text-2); }
.contact-tile .btn { align-self: flex-start; margin-top: .6rem; }

.notfound { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.notfound .die { margin: 1rem auto 4rem; --size: 110px; display: block; }
.notfound .die-cube { transform: rotateX(-20deg) rotateY(30deg); }
.notfound h1 { font-size: clamp(3rem, 9vw, 7rem); }
.notfound p { max-width: 46ch; margin-inline: auto; }
.notfound .btn-row { justify-content: center; margin-top: 1.6rem; }

/* ---------- 17. Lightbox ------------------------------------------------ */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(6, 10, 8, .94); backdrop-filter: blur(6px); }
.lightbox-inner { position: fixed; inset: 0; display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); }
.lightbox figure { margin: 0; max-width: min(1400px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.lightbox img { max-height: calc(100vh - 8rem); width: auto; max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line-2); object-fit: contain; }
.lightbox figcaption { color: var(--text-2); font-family: var(--font-brand); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.lb-btn { position: fixed; z-index: 2; width: 48px; height: 48px; border-radius: var(--radius-sm); border: 0; background: var(--sun); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: transform var(--t-fast); }
.lb-btn:hover { transform: scale(1.06); }
.lb-btn .ico { width: 22px; height: 22px; }
.lb-close { right: 1.2rem; top: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.06); }
.lb-counter { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); color: var(--text-2); font-family: var(--font-brand); font-size: .66rem; letter-spacing: .14em; }

/* ---------- 18. Motion --------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--delay, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="left"] { transform: translateX(-24px); }
.js [data-reveal="right"] { transform: translateX(24px); }
.js [data-reveal="pop"] { transform: scale(.96); }
.js .grid > [data-reveal]:nth-child(2), .js .showcase > [data-reveal]:nth-child(2) { --delay: .08s; }
.js .grid > [data-reveal]:nth-child(3), .js .showcase > [data-reveal]:nth-child(3) { --delay: .16s; }
.js .grid > [data-reveal]:nth-child(4) { --delay: .24s; }
.js .grid > [data-reveal]:nth-child(5) { --delay: .32s; }
.js .grid > [data-reveal]:nth-child(6) { --delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ticker-track, .post-ticker-track { animation: none; }
  .post-tile .chip-new::before { animation: none; }
  .hero-slide { animation: none; opacity: 0; }
  .hero-slide:first-child { opacity: 1; }
}

/* ---------- 19. Utilities ------------------------------------------------ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.ico { width: 1.1em; height: 1.1em; vertical-align: -.15em; }
.nowrap { white-space: nowrap; }
