/* ============================================================
   Trinket Homepage — styles
   Pixel-faithful build of the 1920×6179 mockup (Trinket-Homepage.psd).
   Section backgrounds are baked from the PSD (static/bg-*.jpg = smooth
   gradients; static/pat-*.png = the real pixel pattern, Overlay blend).
   All geometry below is in design pixels, measured from the PSD.
   ============================================================ */

:root {
  --cream:   #FDFADF;
  --orange:  #FF8F00;   /* eyebrows, accents, gradient deep end */
  --amber:   #FFB901;   /* gradient bright end, badges */
  --brown:   #382920;
  --ink-dim:   rgba(253, 250, 223, 0.74);  /* dim cream body text on brown */
  --ink-dim-2: rgba(253, 250, 223, 0.60);

  /* shared amber button/surface fill: orange (left) → golden yellow (right).
     Use brightness() for hover/active highlights so there's one source. */
  --grad-amber: linear-gradient(90deg, #FF9001 0%, #FEBA00 100%);

  --font: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --hand: 'Caveat', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  min-width: 1920px;            /* desktop design width; js/script.js zooms it to fit */
  font-family: var(--font);
  background: var(--brown);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;             /* LOGIN pill + JOIN pill intentionally bleed past 1920 */
}

img { display: block; }
a { color: inherit; text-decoration: none; }

/* 1532px content column, centered (x:194→1726 at 1920) */
.container {
  width: 1532px;
  margin: 0 auto;
  position: relative;
}

/* 1920px design frame centered in the section — children are
   absolutely positioned at design coordinates */
.abs {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1920px;
  height: 100%;
  transform: translateX(-50%);
}

/* the real PSD pixel pattern, Overlay blend, per panel */
.hero::after, .ideas::after, .gallery::after, .how::after, .cta::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 1920px;
  height: 100%;
  background-repeat: no-repeat;
  background-position: top center;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
.hero::after    { background-image: url(/static/pat-hero.png); }
.ideas::after   { background-image: url(/static/pat-ideas.png); background-position-y: -4px; }
.gallery::after { background-image: url(/static/pat-gallery.png); background-position-y: -15px; }
.how::after     { background-image: url(/static/pat-how.png); }
.cta::after     { background-image: url(/static/pat-cta.png); }

/* content sits above the pattern overlay */
.container { z-index: 1; }
.hero .abs, .cta .abs, .gallery .abs { z-index: 1; }

/* ============================================================
   Shared atoms
   ============================================================ */
.eyebrow {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.045em;
  color: var(--orange);
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-weight: 900;
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--cream);
}
.accent { color: var(--orange); }

.section-sub {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-dim);
}

/* Banner shape: small arrow points sticking OUT of the left & right
   edges at mid-height (the PSD's "Shape 17" family). */
.banner {
  --point: 10px;
  clip-path: polygon(
    var(--point) 0,
    calc(100% - var(--point)) 0,
    calc(100% - var(--point)) calc(50% - var(--point)),
    100% 50%,
    calc(100% - var(--point)) calc(50% + var(--point)),
    calc(100% - var(--point)) 100%,
    var(--point) 100%,
    var(--point) calc(50% + var(--point)),
    0 50%,
    var(--point) calc(50% - var(--point))
  );
}

/* ============================================================
   Buttons — flat amber→orange vertical gradient, 65px tall
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 65px;
  padding: 0 38px;
  font-weight: 900;
  font-size: 17px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.985); transition-duration: .05s; }
.btn-primary {
  --point: 10px;
  position: relative;
  /* horizontal padding trimmed from 44px to absorb the wider 17px/900 label
     so the button keeps its previous footprint */
  padding: 0 34px;
  background: transparent;   /* the banner shape + fill live on ::before */
  color: var(--brown);
  /* The shape is on ::before so the BUTTON itself stays unclipped. CSS applies
     `filter` BEFORE `clip-path`, so a drop-shadow on a clipped element gets
     scissored away with the clip (that's why it was invisible). Here the filter
     reads the clipped ::before's silhouette and, since the button isn't clipped,
     the shadow renders in full. Layered: tight contact + soft ambient. */
  filter:
    drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5))
    drop-shadow(0 13px 10px rgba(0, 0, 0, 0.7));
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad-amber);
  clip-path: polygon(
    var(--point) 0,
    calc(100% - var(--point)) 0,
    calc(100% - var(--point)) calc(50% - var(--point)),
    100% 50%,
    calc(100% - var(--point)) calc(50% + var(--point)),
    calc(100% - var(--point)) 100%,
    var(--point) 100%,
    var(--point) calc(50% + var(--point)),
    0 50%,
    var(--point) calc(50% - var(--point))
  );
}
.btn-primary:hover {
  filter:
    brightness(1.08)
    drop-shadow(0 5px 6px rgba(0, 0, 0, 0.45))
    drop-shadow(0 18px 24px rgba(0, 0, 0, 0.62));
}
.btn-primary:active {
  filter:
    brightness(.96)
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4))
    drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55));
}

/* warm gray panel with an amber underline strip */
.btn-ghost {
  position: relative;
  background: #554B41;
  color: var(--cream);
  padding-bottom: 4px;
}
/* underline strip — a pseudo so it can carry the shared gradient
   (an inset box-shadow can only be a solid color) */
.btn-ghost::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--grad-amber);
}
.btn-ghost:hover { filter: brightness(1.1); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3); }

/* ============================================================
   Hero (header floats on top of it)
   ============================================================ */
.hero {
  position: relative;
  height: 1020px;
  background: #2B2019 url(/static/bg-hero.jpg) no-repeat top center;
  background-size: 1920px 1020px;
}
.hero .btn-primary { min-width: 254px; }

.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1920px;
  height: 0;                     /* transparent over the hero; children render */
  z-index: 60;
}
.brand { position: absolute; left: 64px; top: 48px; transition: top .2s ease; }
.brand-logo { height: 65px; width: auto; transition: height .2s ease; }
.main-nav {
  position: absolute;
  top: 52px;
  right: 28px;
  display: flex;
  gap: 2px;
  width: max-content;
  transition: top .2s ease;
}
.nav-pill { white-space: nowrap; flex-shrink: 0; }
.main-nav .nav-join { display: none; }
.nav-burger { display: none; }

/* stuck state: fixed dark bar, LOGIN swaps to JOIN THE WAITLIST */
.site-header.is-stuck {
  position: fixed;
  height: 84px;
  background: rgba(32, 23, 17, 0.97);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  animation: hdr-in .25s ease;
}
@keyframes hdr-in {
  from { transform: translate(-50%, -100%); }
  to   { transform: translate(-50%, 0); }
}
.site-header.is-stuck .brand { top: 17px; }
.site-header.is-stuck .brand-logo { height: 50px; }
.site-header.is-stuck .main-nav { top: 16px; }
.site-header.is-stuck .nav-login { display: none; }
.site-header.is-stuck .nav-join {
  /* Straight right edge with square corners; concave triangular notch carved
     into the left edge (matches the LOGIN pill). */
  --point: 10px;
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    0 100%,
    0 calc(50% + var(--point)),
    var(--point) 50%,
    0 calc(50% - var(--point))
  );
  display: inline-flex;
  width: auto;
  padding: 0 32px 6px;
  background: var(--grad-amber);
  color: var(--brown);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.18);
}
.site-header.is-stuck .nav-join:hover { filter: brightness(1.06); }
.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 23px 6px;
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(253, 250, 223, 0.10);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.22);
  transition: background .14s;
}
.nav-pill:hover { background: rgba(253,250,223,.17); }
.nav-login {
  /* Straight right edge with square corners; the left edge has a concave
     triangular notch carved INTO the button (the header shows through it). */
  --point: 10px;
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    0 100%,
    0 calc(50% + var(--point)),
    var(--point) 50%,
    0 calc(50% - var(--point))
  );
  width: 156px;
  background: var(--grad-amber);
  color: var(--brown);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.18);
}
/* re-assert the gradient on hover: .nav-pill:hover (0,2,0) otherwise outranks
   the base .nav-login background (0,1,0) and swaps in a translucent fill.
   This matches the JOIN button, whose fill is set at higher specificity. */
.nav-login:hover { background: var(--grad-amber); filter: brightness(1.06); }
.nav-pill { transition: background .14s, transform .14s; }
.nav-pill:active { transform: translateY(1px); }

.hero-title {
  position: absolute;
  left: 190px; top: 278px;
  margin: 0;
  font-weight: 900;
  font-size: 90px;
  line-height: 0.86;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  color: var(--cream);
}

.hero-sub {
  position: absolute;
  left: 193px; top: 545px;
  width: 640px;
  margin: 0;
  font-size: 19px;
  line-height: 1.4;
  color: rgba(253, 250, 223, 0.78);
}
.hero-actions {
  position: absolute;
  left: 193px; top: 640px;
  display: flex;
  gap: 8px;
}

/* angled screen stack — backs fanned out like a hand of cards.
   The back PNGs are straight (no baked rotation); the rotate() here is
   the card's true on-screen angle, spinning around the card's center. */
.hero-media { position: absolute; inset: 0; pointer-events: none; }
.hero-back { position: absolute; width: 891px; height: 502px; filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.45)); }
.hero-back-1 { left: 871px; top: 256px; transform: rotate(2deg); }
.hero-back-2 { left: 871px; top: 256px; transform: rotate(-4deg); }
.hero-screen {
  position: absolute;
  left: 871px; top: 256px;
  width: 914px; height: 514px;
  transform: rotate(8deg);
  background: #0d0a08;
  border: 2px solid #0d0a08;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 28px 52px rgba(0, 0, 0, 0.55);
}
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}

/* hand-drawn annotations — cream Caveat + exported PSD arrows */
.scribble {
  position: absolute;
  font-family: var(--hand);
  font-weight: 600;
  color: #FCF9DA;
  font-size: 34px;
  line-height: 1.0;
  z-index: 3;
}
.scribble-arrow { position: absolute; }
.scribble-coding { left: 1063px; top: 148px; transform: rotate(-3deg); }
.scribble-coding .scribble-arrow { left: 240px; top: 22px; }

/* little logo guy stands on the ticker bar (1px transparent edge in the PNG) */
.hero-emblem { position: absolute; left: 1765px; bottom: -1px; z-index: 4; }

/* ============================================================
   Ticker — flat amber bar, 48px
   ============================================================ */
.ticker {
  position: relative;
  height: 48px;
  background: var(--grad-amber);
  box-shadow: inset 0 -2px 0 rgba(125, 66, 0, .55);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker 36s linear infinite;
}
.ticker-item {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown);
}
.ticker-dot {
  width: 4px; height: 4px;
  background: var(--brown);
  margin: 0 34px;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   Ideas — "MADE FOR ONE PERSON"
   ============================================================ */
.ideas {
  position: relative;
  height: 816px;
  background: #170F0B url(/static/bg-ideas.jpg) no-repeat top center;
  background-size: 1920px 820px;
  background-position: center -4px;
}
.ideas .eyebrow { padding-top: 129px; }
.ideas .section-title { margin-top: 16px; }
.ideas .section-sub { margin-top: 16px; }
.ideas .cards-row { margin-top: 32px; }

.cards-row {
  display: flex;
  gap: 28px;
  position: relative;
}

.idea-card,
.step-card {
  position: relative;
  width: 363px;
  background: #19110D;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  padding: 0 36px 0 42px;
}
.idea-card { height: 386px; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.idea-card:hover {
  transform: translateY(-6px);
  background-color: #1E1510;
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.42);
}
.card-num { transition: transform .18s ease; }
.idea-card:hover .card-num { transform: scale(1.12); }
.idea-card::after,
.step-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, #FC8E01 0%, #FBB700 100%);
}
.card-num {
  position: absolute;
  top: 0; left: 0;
  width: 34px; height: 35px;
  display: grid; place-items: center;
  background: #FDB800;
  color: var(--brown);
  font-weight: 900;
  font-size: 13px;
}
.card-title {
  margin: 50px 0 0;
  max-width: 180px;
  font-weight: 900;
  font-size: 27px;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--cream);
}
.card-desc {
  margin: 16px 0 0;
  max-width: 232px;
  font-size: 17px;
  line-height: 1.45;
  color: rgba(253, 250, 223, 0.70);
}
.card-tags {
  list-style: none;
  margin: auto 0 16px 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.card-tags li {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 22px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
}
.tag-ico {
  width: 23px; height: 23px;
  flex: 0 0 23px;
  object-fit: contain;
  image-rendering: pixelated;
}

.carousel-dots { display: none; }

/* ============================================================
   The Best Part — cream band; card stack overflows it
   ============================================================ */
.bestpart {
  position: relative;
  z-index: 2;
  height: 532px;
  background: linear-gradient(180deg, #FCF9DE 0%, #F7F4D9 100%);
}
.stack-back  { position: absolute; left: 273px; top: -63px; }
.stack-front { position: absolute; left: 295px; top: -44px; }

.scribble-kid {
  left: 188px; top: 286px;
  color: var(--brown);
  transform: rotate(-9deg);
  font-size: 30px;
  line-height: 1.0;
  text-align: center;
}
.scribble-kid .scribble-arrow { left: 28px; top: -38px; }

.bestpart-copy { position: absolute; left: 973px; top: 82px; width: 660px; }
.bestpart-title {
  margin: 16px 0 0;
  font-weight: 900;
  font-size: 49px;
  line-height: 0.99;
  text-transform: uppercase;
  color: var(--brown);
}
.body-dark {
  margin: 16px 0 0;
  width: 655px;
  font-size: 17px;
  line-height: 1.45;
  color: rgba(56, 41, 32, 0.85);
}
.body-dark mark {
  background: var(--orange);
  color: var(--cream);
  padding: 1px 9px;
  border-radius: 4px;
  font-weight: 700;
}

/* ============================================================
   Gallery — "ONE GAME, ONE MOMENT."
   ============================================================ */
.gallery {
  position: relative;
  height: 1620px;            /* +44px for margin under the VIEW MORE button */
  background: #2B1F19 url(/static/bg-gallery.jpg) no-repeat center -15px;
  background-size: 1920px 1639px;   /* +44px so the gradient covers the taller section */
  overflow: hidden;
}
.gallery-mosaic { position: absolute; left: 691px; top: -631px; }
.gallery-deco {
  position: absolute;
  left: 0; top: 1407px;             /* +44px to follow the taller section's bottom */
  filter: drop-shadow(14px 10px 10px rgba(0, 0, 0, 0.7));
}
.gallery-content { z-index: 1; }
.gallery .eyebrow { padding-top: 128px; }
.gallery .section-title { margin-top: 16px; }
.gallery-sub { margin-top: 16px; }
.gallery-sub em {
  color: var(--cream);
  font-style: italic;
  font-weight: 800;
}

.gallery-grid {
  margin-top: 97px;
  display: grid;
  grid-template-columns: repeat(3, 493px);
  gap: 58px 26px;
  position: relative;
}

/* --- cart-style game cards (designer update) ------------------- */
.game-cell { position: relative; text-align: center; }

.cart {
  position: relative;
  display: block;
  width: 460px;
  height: 362px;
  margin: 0 auto;
  background: linear-gradient(180deg, #544C3E 0%, #4A4236 60%, #443B30 84%, #322B22 100%);
  border: 2px solid rgba(15, 10, 7, 0.55);
  border-radius: 12px;
  padding: 54px 26px 0;
  box-shadow:
    inset 0 2px 0 rgba(253, 250, 223, 0.10),
    0 24px 36px rgba(0, 0, 0, 0.45),
    0 0 0 4px rgba(255, 175, 1, 0);
  transition: transform .16s ease-out, box-shadow .16s ease-out;
}
/* grip dots hanging from the inside of the top edge — lighter than the
   shell, square tops with rounded bottoms */
.cart::before {
  content: "";
  position: absolute;
  top: 2px; left: 16px; right: 16px;
  height: 9px;
  background:
    repeating-linear-gradient(90deg, #6A6353 0 7px, transparent 7px 14px) top / 100% 6px no-repeat,
    radial-gradient(circle 3.5px at 3.5px 0, #6A6353 98%, transparent) left bottom / 14px 3px repeat-x;
}
/* cartridge insertion slot along the bottom — inset from the cart edges,
   ringed on all four sides by a darker recess so it reads as sunk into the
   shell, with a thin highlight catching the bottom lip */
.cart::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; bottom: 7px;
  height: 10px;
  background: #0D0A07;
  border: 5px solid #221B15;
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(253, 250, 223, 0.06);
}
.cart-logo {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 112px; height: 24px;
  background: var(--grad-amber);
  -webkit-mask: url(/static/brand/trinket-landscape-white.png) center / contain no-repeat;
          mask: url(/static/brand/trinket-landscape-white.png) center / contain no-repeat;
}
.cart-screen {
  display: block;
  height: 224px;
  background: #0E0B09;
  border: 3px solid #241E18;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.55);
}
.cart-screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: filter .22s ease;
}
.cart-name {
  --cart-name-height: 60px;
  margin: 0;
  height: var(--cart-name-height);
  display: block;
  line-height: var(--cart-name-height);
  text-align: center;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 8px;
}
/* playful alternating tilts, straightened on hover */
.gallery-grid .game-cell:nth-child(3n+1) .cart { transform: rotate(-1.6deg); }
.gallery-grid .game-cell:nth-child(3n+2) .cart { transform: rotate(0.9deg); }
.gallery-grid .game-cell:nth-child(3n)   .cart { transform: rotate(1.7deg); }
.game-cell:hover .cart,
.game-cell:focus-within .cart {
  transform: rotate(0) translateY(-4px) scale(1.012);
  box-shadow:
    inset 0 2px 0 rgba(253, 250, 223, 0.10),
    0 26px 44px rgba(0, 0, 0, 0.5),
    0 0 0 4px rgba(255, 175, 1, 1);
}
.game-cell:hover .cart-screen img { filter: brightness(1.06); }

.card-cat {
  margin: 26px 0 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--orange);
}
.game-desc {
  margin: 10px auto 0;
  max-width: 420px;
  font-size: 17px;
  line-height: 1.45;
  color: rgba(253, 250, 223, 0.66);
}

.gallery-cta { margin: 44px; text-align: center; }
.btn-viewmore { width: 214px; }

/* ============================================================
   How it works + Testimonial (one dark panel)
   ============================================================ */
.how {
  position: relative;
  height: 1323px;
  background: #150E0A url(/static/bg-how.jpg) no-repeat top center;
  background-size: 1920px 1329px;
}
.how .eyebrow { padding-top: 132px; }
.how .section-title { margin-top: 16px; }
.how .section-sub { margin-top: 16px; }
.steps-row { margin-top: 32px; }

.step-card {
  height: 508px;
  background: #1E1612;
  transition: transform .22s ease, box-shadow .22s ease;
}
.step-card:hover {
  transform: translateY(-8px) rotate(-0.8deg);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.45);
}
.step-card::after {
  background: linear-gradient(90deg, #FC8E01, #FBB700, #FC8E01, #FBB700);
  background-size: 300% 100%;
}
.step-card:hover::after { animation: strip-slide 1.4s linear infinite; }
@keyframes strip-slide { to { background-position: -300% 0; } }
.step-card:hover .card-num { animation: num-wiggle .45s ease; }
@keyframes num-wiggle {
  0% { transform: rotate(0); }
  30% { transform: rotate(-9deg) scale(1.1); }
  65% { transform: rotate(6deg) scale(1.08); }
  100% { transform: rotate(0); }
}
.step-thumb img { transition: transform .4s ease; }
.step-card:hover .step-thumb img { transform: scale(1.07) rotate(1.2deg); }
.step-title {
  margin: 47px 0 0;
  font-weight: 900;
  font-size: 25px;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--cream);
}
.step-desc {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.3;
  color: rgba(253, 250, 223, 0.70);
}
.step-desc strong { color: var(--amber); font-weight: 800; }
.step-thumb {
  margin: auto auto 44px;
  width: 283px; height: 283px;
  border-radius: 6px;
  overflow: hidden;
  background: #120d0a;
}
.step-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* testimonial block (same panel) */
.testimonial-inner {
  margin-top: 90px;
  display: flex;
  align-items: flex-start;
}
.testimonial-head { width: 658px; }
.testimonial-head .eyebrow { padding-top: 0; }
.testimonial-head .section-title { margin-top: 13px; }
.testimonial-quotes { position: relative; width: 760px; }
.quote {
  margin: 0;
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.quote.is-active { opacity: 1; position: relative; pointer-events: auto; }
.quote p {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.17;
  color: var(--cream);
}
.qmark { color: var(--amber); }
.quote cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
}
.quote-dots { display: flex; gap: 2px; margin-top: 28px; }
.dot {
  width: 9px; height: 9px;
  border: none;
  border-radius: 1px;
  background: #AEA692;
  cursor: pointer;
  padding: 0;
  transition: background .15s;
}
.dot.is-active { background: #FEA401; }

/* ============================================================
   CTA band — emblem + tight glow (glow baked into bg)
   ============================================================ */
.cta {
  position: relative;
  height: 611px;
  background: #241A13 url(/static/bg-cta.jpg) no-repeat top center;
  background-size: 1920px 611px;
  overflow: hidden;
}
.cta-emblem { position: absolute; left: 348px; top: 186px; }
/* restore the tight halo the bake softened where the emblem was masked out */
.cta-glow {
  position: absolute;
  left: 145px; top: 40px;
  width: 640px; height: 520px;
  background: radial-gradient(closest-side at center,
    rgba(255, 150, 28, 0.30), rgba(255, 138, 0, 0.10) 55%, transparent 75%);
}
/* black ground shadow under the emblem's feet (emblem sits at 348,186 in
   the frame and is 234×218 — glow's own origin is 145,40) */
.cta-glow::after {
  content: "";
  position: absolute;
  left: 195px; top: 347px;
  width: 250px; height: 34px;
  background: radial-gradient(closest-side at center,
    rgba(8, 5, 3, 0.55), rgba(8, 5, 3, 0.30) 60%, transparent 100%);
}
.cta-copy { position: absolute; left: 665px; top: 136px; }
.cta-title {
  margin: 0;
  font-weight: 900;
  font-size: 105px;
  line-height: 0.78;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  color: var(--cream);
}

.cta-accent { color: var(--orange); }
.cta-copy .btn { margin-top: 29px; width: 254px; }

/* ============================================================
   Footer — orange→amber gradient band
   ============================================================ */
.site-footer {
  position: relative;
  height: 301px;
  background: var(--grad-amber);
  color: var(--brown);
}
.footer-trinket { position: absolute; left: 193px; top: 62px; }

.footer-col {
  position: absolute;
  top: 62px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.footer-learn  { right: calc(1920px - 1486px); }
.footer-create { right: calc(1920px - 1724px); }
.footer-head {
  margin: 0 0 13px;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--brown);
}
.footer-col a {
  font-size: 15px;
  font-weight: 600;
  line-height: 25px;
  color: rgba(56, 41, 32, 0.85);
}
.footer-col a:hover { color: var(--brown); text-decoration: underline; }

.footer-rule {
  position: absolute;
  left: 195px; top: 212px;
  width: 1530px; height: 1px;
  background: rgba(56, 41, 32, 0.85);
}
.footer-legal {
  position: absolute;
  right: 196px; top: 245px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(56, 41, 32, 0.9);
}
.footer-legal a:hover { text-decoration: underline; }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .cart-xl { animation: none; }
  .gplay { opacity: 1; pointer-events: auto; }
  html { scroll-behavior: auto; }
}


/* ============================================================
   Gallery page
   ============================================================ */
.page-gallery { background: #2B2019; }
.page-gallery .gsection, .page-gallery .gfeatured { position: relative; z-index: 1; }
.nav-pill.nav-active { background: var(--cream); color: var(--brown); }
.nav-pill.nav-active:hover { background: var(--cream); }

.ghero {
  position: relative;
  height: 560px;
}
/* light splotch — taller than the hero so it bleeds down behind the
   games section and fades to the page background instead of cutting off */
.ghero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 980px;
  background:
    radial-gradient(120% 112% at 75% -11%, #4A372A 0%, #2E2118 50%, rgba(43, 32, 25, 0) 100%);
  pointer-events: none;
  z-index: 0;
}
.ghero::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 1920px;
  height: 1020px; /* full pat-hero.png — bleeds past the 560px hero */
  background: url(/static/pat-hero.png) no-repeat top center;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 95%);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
.ghero .abs { z-index: 0; overflow-x: clip; overflow-y: visible; }
.ghero-mosaic { position: absolute; left: 470px; top: -780px; width: 1940px; }
.ghero-copy { z-index: 1; padding-top: 158px; }
.ghero-copy .section-sub { margin-top: 18px; }
.ghero-copy .btn { margin-top: 36px; width: 254px; }

.gsection { position: relative; padding: 8px 0 72px; }
.gsection-all { padding-top: 40px; }
.gsection .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 26px 56px; }

.gtoolbar {
  display: flex;
  align-items: center;
  gap: 28px;
}
.glabel {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--cream);
  white-space: nowrap;
}
.grule { flex: 1; height: 2px; background: var(--amber); border-radius: 1px; }
.gsection .gallery-grid { margin-top: 64px; }

/* featured band */
.gfeatured {
  position: relative;
  height: 426px;
  background: linear-gradient(90deg, #FE9D00 0%, #FFB400 100%);
}
.gfeatured::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url(/static/pattern.png) repeat;
  background-size: 240px 240px;
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
}
.gfeatured .abs { z-index: 1; }
.cart-lg {
  position: absolute;
  left: 250px;
  top: -50px;
  width: 640px;
  height: 490px;
  padding: 70px 32px 0;
  transform: rotate(-6deg);
  box-shadow:
    inset 0 2px 0 rgba(253, 250, 223, 0.10),
    0 30px 52px rgba(0, 0, 0, 0.45);
}
.cart-lg:hover { transform: rotate(-4deg) translateY(-5px); }
.cart-lg::before {
  top: 3px; left: 22px; right: 22px; height: 12px;
  background:
    repeating-linear-gradient(90deg, #6A6353 0 9px, transparent 9px 18px) top / 100% 8px no-repeat,
    radial-gradient(circle 4.5px at 4.5px 0, #6A6353 98%, transparent) left bottom / 18px 4px repeat-x;
}
.cart-lg::after { left: 24px; right: 24px; bottom: 8px; height: 10px; border-width: 5px; border-radius: 7px; }
.cart-lg .cart-logo { top: 21px; width: 134px; height: 29px; }
.cart-lg .cart-screen { height: 316px; }
.cart-lg .cart-name { --cart-name-height: 80px; height: var(--cart-name-height); font-size: 31px; }
.gfeat-scribble {
  left: 86px;
  top: 130px;
  width: 130px;
  color: #5A3000;
  font-size: 26px;
  text-align: center;
  transform: rotate(-10deg);
}
.gfeat-copy { position: absolute; left: 1060px; top: 96px; width: 680px; }
.gfeat-eyebrow {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--brown);
}
.gfeat-title {
  margin: 12px 0 0;
  font-weight: 900;
  font-size: 56px;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
}
.gfeat-desc {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(56, 41, 32, 0.88);
  max-width: 660px;
}
.gfeat-emblem {
  position: absolute;
  right: 150px;
  bottom: 56px;
  width: 58px;
  opacity: 0.9;
}

/* ALL GAMES divider */
.gdivider {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--cream);
}
.gdivider::before, .gdivider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--amber);
  border-radius: 1px;
}



/* ============================================================
   Game detail page — big cart over the game art, blurred
   ============================================================ */
.page-game { background: #1C130D; }
.gstage {
  position: relative;
  min-height: 1080px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* the cart's game art, blurred, as the backdrop */
.gstage-bg {
  position: absolute;
  inset: -60px;
  background: url(/static/psd-game3.png) center / cover no-repeat;
  filter: blur(26px) brightness(0.62) saturate(1.05);
}
/* over the blurred art: edge vignette + CRT scanlines + warm orange
   glow blob behind the cartridge */
.gstage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 90% at 50% 45%, transparent 35%, rgba(14, 8, 5, 0.55) 100%),
    repeating-linear-gradient(180deg, rgba(10, 6, 4, 0.16) 0 2px, transparent 2px 7px),
    radial-gradient(50% 58% at 50% 44%, rgba(255, 158, 28, 0.5), rgba(255, 138, 0, 0.16) 55%, transparent 78%);
  pointer-events: none;
}
.gstage-inner {
  position: relative;
  z-index: 1;
  padding: 130px 0 40px;
  perspective: 1300px;
}
.cart-tilt {
  width: 700px;
  margin: 0 auto;
  transform-style: preserve-3d;
  transition: transform .18s ease-out;
  will-change: transform;
}
.cart-xl {
  width: 700px;
  height: 558px;
  padding: 82px 36px 0;   /* roomier top band so the logo fits */
  animation: cart-sway 8s ease-in-out infinite;
  transform-style: preserve-3d;
  box-shadow:
    inset 0 2px 0 rgba(253, 250, 223, 0.10),
    0 40px 80px rgba(0, 0, 0, 0.55);
}
@keyframes cart-sway {
  0%, 100% { transform: rotateY(-8deg) rotateX(2.5deg) translateY(0); }
  50%      { transform: rotateY(8deg) rotateX(-2.5deg) translateY(-10px); }
}
.cart-xl::before {
  top: 3px; left: 24px; right: 24px; height: 13px;
  background:
    repeating-linear-gradient(90deg, #6A6353 0 10px, transparent 10px 20px) top / 100% 9px no-repeat,
    radial-gradient(circle 5px at 5px 0, #6A6353 98%, transparent) left bottom / 20px 4px repeat-x;
}
.cart-xl::after { left: 26px; right: 26px; bottom: 9px; height: 11px; border-width: 6px; border-radius: 7px; }
.cart-xl .cart-logo { top: 32px; width: 150px; height: 32px; }
.cart-xl .cart-screen { height: 352px; position: relative; }
.cart-xl .cart-name { --cart-name-height: 92px; height: var(--cart-name-height); font-size: 37px; }
.gplay {
  --point: 12px;
  clip-path: polygon(
    var(--point) 0, calc(100% - var(--point)) 0,
    calc(100% - var(--point)) calc(50% - var(--point)), 100% 50%,
    calc(100% - var(--point)) calc(50% + var(--point)),
    calc(100% - var(--point)) 100%, var(--point) 100%,
    var(--point) calc(50% + var(--point)), 0 50%,
    var(--point) calc(50% - var(--point))
  );
  position: absolute;
  left: 50%;
  top: 50%;
  width: 282px;
  height: 88px;
  margin: -44px 0 0 -141px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--grad-amber);
  color: var(--brown);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: rotate(-2deg) scale(.92);
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.45));
  transition: transform .2s ease, filter .2s ease, opacity .2s ease;
  pointer-events: none;
}
.cart-tilt:hover .gplay,
.gplay:focus-visible {
  opacity: 1;
  transform: rotate(-2deg) scale(1);
  pointer-events: auto;
}
.gplay:hover { transform: rotate(-2deg) scale(1.06); filter: brightness(1.05) drop-shadow(0 12px 16px rgba(0, 0, 0, 0.5)); }
/* pixel-art play triangle: 3×5 staircase carved with a clip-path */
.gplay-ico {
  font-size: 22px;
  width: 0.6em;
  height: 1em;
  background: currentColor;
  clip-path: polygon(
    0 0, 33.4% 0,
    33.4% 20%, 66.7% 20%,
    66.7% 40%, 100% 40%,
    100% 60%, 66.7% 60%,
    66.7% 80%, 33.4% 80%,
    33.4% 100%, 0 100%
  );
}
.gstage-foot {
  position: absolute;
  left: 0; right: 0;
  bottom: 28px;
  text-align: center;
  z-index: 2;
}
.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  background: #5865F2;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.discord-btn:hover { background: #4752c4; }
.gstage-note {
  margin: 18px 0 0;
  font-size: 16px;
  color: rgba(253, 250, 223, 0.75);
}


/* ============================================================
   Mobile (≤900px viewport) — restructured single column,
   authored at a 420px design width; js/script.js zooms it to fit.
   ============================================================ */
@media (max-width: 900px) {
  body { min-width: 420px; }
  .container { width: 420px; padding: 0 24px; }
  .abs { position: relative; z-index: 1; width: auto; height: auto; transform: none; left: auto; top: auto; }
  .hero::after, .ideas::after, .gallery::after, .how::after, .cta::after,
  .ghero::after {
    width: 100%; transform: none; left: 0;
    /* the 1920px pattern shown at 1.5× the 420px design width — matches the
       pattern-square size in the mobile mockup */
    background-size: 630px auto;
  }
  .ghero::after { height: 510px; }
  .section-title { font-size: 38px; }
  .section-sub { font-size: 15px; }
  .eyebrow { font-size: 13px; }
  .btn { height: 49px; font-size: 13px; font-weight: 900; letter-spacing: 0.02em; }
  .scribble { font-size: 14px; font-weight: 500; }
  .br-desktop { display: none; }

  /* --- header: logo + hamburger; nav becomes a dropdown --- */
  .site-header { width: 100%; transform: none; left: 0; height: 64px; }
  .brand { left: 16px; top: 17px; }
  .brand-logo { height: 30px; }
  .nav-burger {
    display: grid;
    place-items: center;
    position: absolute;
    right: 16px; top: 16px;
    width: 30px; height: 30px;
    border: none;
    border-radius: 0;
    background: var(--grad-amber);
    cursor: pointer;
  }
  .burger-bars,
  .burger-bars::before,
  .burger-bars::after {
    content: "";
    display: block;
    width: 11px; height: 2px;
    border-radius: 0;
    background: var(--brown);
  }
  .burger-bars { position: relative; }
  .burger-bars::before { position: absolute; top: -4px; }
  .burger-bars::after { position: absolute; top: 4px; }
  .main-nav { display: none; }
  .site-header.menu-open { background: rgba(30, 21, 16, 0.98); }
  .site-header.menu-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 66px; left: 12px; right: 12px;
    width: auto;
    background: rgba(30, 21, 16, 0.98);
    border-radius: 12px;
    padding: 12px;
    gap: 8px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5);
  }
  .site-header.menu-open .nav-pill { width: 100%; height: 48px; }
  .site-header.menu-open .main-nav .nav-join { display: inline-flex; }
  .site-header.is-stuck { height: 64px; }
  .site-header.is-stuck .brand { top: 17px; }
  .site-header.is-stuck .brand-logo { height: 30px; }
  .site-header.is-stuck .main-nav { top: 66px; }
  @keyframes hdr-in {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
  }

  /* --- hero: screen stack first, centered copy below --- */
  .hero {
    height: auto;
    padding: 84px 0 56px;
    background: radial-gradient(130% 55% at 60% 0%, #4A372A 0%, #2C2019 52%, #1D1410 100%);
    overflow: hidden;
  }
  .hero .abs { display: flex; flex-direction: column; align-items: center; }
  .hero-media {
    order: -1;
    position: relative;
    inset: auto;
    width: 420px;
    height: 268px;
    pointer-events: none;
  }
  /* same fan as desktop (back-2 -4°, back-1 2°, front 8°), scaled 0.40 —
     the backs share one center, mirroring the desktop stack geometry */
  .hero-back { display: block; width: 813px; height: 458px; }
  .hero-back-1 { left: -205px; top: -115px; transform: scale(0.44) rotate(2deg); }
  .hero-back-2 { left: -205px; top: -115px; transform: scale(0.44) rotate(-4deg); }
  .hero-screen {
    left: 26px; top: 22px;
    width: 368px; height: 207px;
    transform: rotate(8deg);
  }
  .hero-title {
    position: static;
    margin-top: 12px;
    font-size: 38.5px;
    line-height: 0.8;
    text-align: center;
  }
  .hero-sub {
    position: static;
    width: 348px;
    margin: 9px 0 0;
    font-size: 13.5px;
    text-align: center;
  }
  .hero-actions {
    position: static;
    margin: 19px 0 0;
    width: 248px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .hero-actions .btn { padding: 0 12px; }
  /* Match the ghost button's visible width: the banner clip insets the primary
     button's body by --point per side, so widen it by 2x--point and center it
     so the flat edges line up (the arrow tips just poke out as accents). */
  .hero-actions .btn-primary {
    min-width: 0;
    width: calc(100% + 2 * var(--point));
    align-self: center;
  }
  .scribble-coding { left: 124px; right: auto; top: -22px; }
  .scribble-coding .scribble-arrow { left: 96px; top: 6px; width: 11px; }
  .hero-emblem { display: block; left: auto; right: 24px; top: auto; bottom: -56px; width: 44px; z-index: 4; }

  /* --- ideas: centered heading, swipe carousel --- */
  .ideas { height: auto; padding: 56px 0 108px; background: radial-gradient(150% 70% at 50% 40%, #523D2E 0%, #2C2018 55%, #150E0A 100%); }
  .ideas .eyebrow { padding-top: 0; text-align: center; }
  .ideas .section-title { margin-top: 12px; text-align: center; }
  .ideas .section-sub { margin-top: 16px; text-align: center; }
  .ideas .cards-row { margin-top: 32px; }
  .cards-row {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin-inline: -24px;
    padding: 8px 24px 22px;
    scrollbar-width: none;
    cursor: grab;
  }
  .cards-row::-webkit-scrollbar { display: none; }
  /* mouse drag-to-scroll (script.js): snap released while dragging,
     re-engages on pointerup so the row settles on a card */
  .cards-row.is-dragging {
    scroll-snap-type: none;
    cursor: grabbing;
    user-select: none;
  }
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
  }
  .carousel-dots button {
    width: 10px; height: 10px;
    border: none;
    border-radius: 2px;
    padding: 0;
    background: rgba(253, 250, 223, 0.28);
    cursor: pointer;
    transition: background .15s, transform .15s;
  }
  .carousel-dots button.is-active { background: var(--amber); transform: scale(1.2); }
  .idea-card, .step-card {
    flex: 0 0 318px;
    width: 318px;
    scroll-snap-align: center;
  }
  .idea-card { height: auto; min-height: 392px; padding-bottom: 28px; }
  .card-tags { margin-top: 24px; }
  .card-desc { max-width: none; }

  /* --- best part: stack overlaps upward, left-aligned copy --- */
  .bestpart { height: auto; padding: 0 0 56px; }
  .stack-back { display: block; position: absolute; left: 50%; top: -42px; width: 330px; height: auto; margin-left: -188px; transform: rotate(-5deg); }
  .stack-front {
    position: relative;
    left: 0; top: 0;
    width: 310px; height: 310px;
    margin: -26px auto 0;
    z-index: 1;
  }
  .scribble-kid {
    display: block;
    position: absolute;
    left: auto; right: 34px; top: 286px;
    font-size: 22px;
    transform: rotate(-6deg);
  }
  .bestpart-copy { position: static; width: auto; margin: 30px 24px 0; }
  .bestpart-title { font-size: 32px; margin-top: 14px; }
  .body-dark { width: auto; font-size: 15px; }

  /* --- gallery: left heading, mosaic band, 2-col carts --- */
  .gallery { height: auto; padding: 252px 0 64px; background: radial-gradient(150% 60% at 50% 25%, #463327 0%, #2B1F19 55%, #190F0B 100%); }
  .gallery-mosaic {
    display: block;
    width: 1180px; height: auto;
    left: -390px; top: -700px;
    -webkit-mask: linear-gradient(180deg, #000 78%, transparent 96%);
            mask: linear-gradient(180deg, #000 78%, transparent 96%);
  }
  .gallery-deco { display: none; }
  .gallery .eyebrow { padding-top: 0; }
  .gallery-grid {
    margin-top: 30px;
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .cart { width: 100%; height: auto; padding: 42px 16px 28px; border-radius: 10px; }
  .cart::before { top: 2px; left: 10px; right: 10px; height: 6px;
    background:
      repeating-linear-gradient(90deg, #6A6353 0 5px, transparent 5px 10px) top / 100% 4px no-repeat,
      radial-gradient(circle 2.5px at 2.5px 0, #6A6353 98%, transparent) left bottom / 10px 2px repeat-x; }
  .cart::after { left: 12px; right: 12px; bottom: 5px; height: 7px; border-width: 3px; border-radius: 4px; }
  .cart-logo { top: 12px; width: 88px; height: 19px; }
  .cart-screen { height: 190px; border-width: 3px; border-radius: 6px; }
  .cart-name { --cart-name-height: 48px; height: var(--cart-name-height); font-size: 18px; }
  .card-cat { margin-top: 18px; font-size: 11px; }
  .game-desc { margin-top: 8px; font-size: 13px; max-width: 320px; }
  .gallery-cta { margin-top: 36px; }

  /* --- how: left heading, swipe carousel; testimonial below --- */
  .how { height: auto; padding: 56px 0 64px; background: radial-gradient(150% 70% at 50% 35%, #4C3829 0%, #251A14 55%, #120C09 100%); }
  .how .eyebrow { padding-top: 0; }
  .steps-row { margin-top: 26px; }
  .step-card { height: auto; min-height: 470px; }
  .step-thumb { width: 246px; height: 246px; margin: 22px auto 32px; }
  .testimonial-inner { margin-top: 56px; flex-direction: column; gap: 26px; }
  .testimonial-head { width: auto; }
  .testimonial-quotes { width: auto; }
  .quote p { font-size: 22px; }

  /* --- cta --- */
  .cta { height: auto; padding: 64px 0 70px; background: #241A13; }
  .cta-glow { display: none; }
  .cta-emblem {
    position: static;
    width: 170px;
    margin: 0 auto;
    filter: drop-shadow(0 0 70px rgba(255, 150, 28, 0.55));
  }
  .cta-copy { position: static; margin: 30px 24px 0; text-align: center; }
  .cta-title { font-size: 40px; line-height: 0.92; }
  .cta-copy .btn { margin-top: 26px; }

  /* --- footer: 2-col grid --- */
  .site-footer { height: auto; padding: 44px 24px 28px; }
  .site-footer .abs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    column-gap: 18px;
  }
  .footer-trinket { position: static; width: 175px; grid-column: 1 / -1; }
  .footer-col {
    position: static;
    align-items: flex-start;
    text-align: left;
    margin-top: 34px;
  }
  .footer-head { margin-bottom: 10px; font-size: 14px; }
  .footer-col a { font-size: 14px; line-height: 24px; }
  .footer-rule { position: static; width: 100%; grid-column: 1 / -1; margin-top: 30px; }
  .footer-legal {
    position: static;
    grid-column: 1 / -1;
    margin-top: 12px;
    width: auto;
    font-size: 11px;
    line-height: 1.8;
    text-align: left;
  }

  /* --- gallery page --- */
  .gsection .gallery-grid { grid-template-columns: 1fr; gap: 38px; margin-top: 36px; }
  .ghero { height: auto; padding: 240px 0 56px; }
  /* mosaic art starts 628px down inside the PNG; .abs sits at the hero's
     240px padding edge, so -620 puts the collage flush with the page top
     (628 × 960/1644 ≈ 367 → 367 + 240 ≈ 607, plus a little bleed) */
  .ghero-mosaic { width: 960px; height: auto; left: -250px; top: -620px; }
  .ghero-copy { padding-top: 0; }
  .gsection { padding: 48px 0 64px; }
  .gtoolbar { flex-wrap: wrap; gap: 16px; }
  .gsearch { width: 100%; }
  .gsearch input { flex: 1; width: auto; }
  .gsection .gallery-grid { margin-top: 32px; }
  .gfeatured { height: auto; padding: 0 0 48px; }
  .cart-lg {
    position: relative;
    left: 0; top: 0;
    width: 320px;
    height: auto;
    margin: -36px auto 0;
    padding-bottom: 22px;
    transform: rotate(-4deg);
  }
  .cart-lg::before { top: 2px; left: 10px; right: 10px; height: 6px;
    background:
      repeating-linear-gradient(90deg, #6A6353 0 5px, transparent 5px 10px) top / 100% 4px no-repeat,
      radial-gradient(circle 2.5px at 2.5px 0, #6A6353 98%, transparent) left bottom / 10px 2px repeat-x; }
  .cart-lg::after { left: 12px; right: 12px; bottom: 5px; height: 7px; border-width: 3px; border-radius: 4px; }
  .cart-lg .cart-screen { height: 158px; }
  .cart-lg .cart-name { --cart-name-height: 40px; font-size: 14px; height: var(--cart-name-height); }
  .gfeat-scribble { display: none; }
  .gfeat-copy { position: static; width: auto; margin: 26px 24px 0; }
  .gfeat-title { font-size: 32px; }
  .gfeat-desc { font-size: 14px; }
  .gfeat-emblem { display: none; }

  /* --- game page --- */
  .gstage { min-height: 100vh; }
  .gstage-inner { padding: 96px 0 36px; }
  .cart-tilt { width: 358px; }
  .cart-xl {
    width: 358px;
    height: auto;
    padding: 42px 16px 30px;
    transform: rotate(-3deg);
    margin: 0 auto;
  }
  .cart-xl::before { top: 2px; left: 10px; right: 10px; height: 6px;
    background:
      repeating-linear-gradient(90deg, #6A6353 0 5px, transparent 5px 10px) top / 100% 4px no-repeat,
      radial-gradient(circle 2.5px at 2.5px 0, #6A6353 98%, transparent) left bottom / 10px 2px repeat-x; }
  .cart-xl::after { left: 12px; right: 12px; bottom: 5px; height: 7px; border-width: 3px; border-radius: 4px; }
  .cart-xl .cart-logo { top: 16px; width: 90px; height: 18px; }
  .cart-xl .cart-screen { height: 182px; }
  .cart-xl .cart-name { --cart-name-height: 52px; height: var(--cart-name-height); font-size: 18px; }
  .gplay { width: 180px; height: 58px; margin: -29px 0 0 -90px; font-size: 20px; gap: 10px; opacity: 1; pointer-events: auto; transform: rotate(-2deg) scale(1); }
  .gstage-foot { position: absolute; bottom: 20px; }
  .cart-xl { animation: none; transform: none; }
}
