/* ==========================================================
   JPAM Studio — global styles (2026 redesign)
   Colour tokens are at the top. Each game has its own colour
   world under "Game worlds"; pages switch worlds with
   data-world="sudoku" on <body> or on a section.
   ========================================================== */
:root {
  --bg: #05060b;
  --bg-2: #0b0d18;
  --ink: #0f1222;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f2f3f8;
  --muted: #9aa3bb;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --grad: linear-gradient(120deg, #22d3ee 0%, #8b5cf6 55%, #ec4899 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1200px;
  --font-display: "Chakra Petch", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* the "world" colours: default = studio */
  --w1: #8b5cf6;
  --w2: #22d3ee;
  --w3: #ec4899;
  --w-ink: #0f1222;
  --w-text: #ffffff;
  --w-on: #07080d;
}

/* ---------- Game worlds ---------- */
[data-world="sudoku"]      { --w1: #e4553c; --w2: #f3d6a2; --w3: #2d4a86; --w-ink: #13193a; --w-on: #1a1206; }
[data-world="kingside"]    { --w1: #f3b544; --w2: #58b3ff; --w3: #1e5aa6; --w-ink: #0a1a30; --w-on: #1a1200; }
[data-world="minesweeper"] { --w1: #3fb07e; --w2: #f06aa0; --w3: #c9ead8; --w-ink: #0c2219; --w-on: #06231a; }
[data-world="jade-haven"] { --w1: #2fae8a; --w2: #e3584a; --w3: #ebe4cf; --w-ink: #0b1f1a; --w-on: #04201a; }
[data-world="wellas-garden-quest"] { --w1: #ffd13f; --w2: #ff6fb0; --w3: #68c94f; --w-ink: #14362a; --w-on: #2a2000; }
[data-world="nightmile"]   { --w1: #ffb347; --w2: #39e4ff; --w3: #ff4fa3; --w-ink: #0a0b18; --w-on: #1c1200; }
[data-world="simoy-marine"]{ --w1: #22d3ee; --w2: #0ea5e9; --w3: #e2f6ff; --w-ink: #061a24; --w-on: #04212a; }
[data-world="draftpro"]   { --w1: #22c7e6; --w2: #0a7fa0; --w3: #f5f9fc; --w-ink: #061529; --w-on: #04192e; }
[data-world="break-royale"]{ --w1: #17915a; --w2: #f4c95d; --w3: #d8342c; --w-ink: #06160f; --w-on: #ffffff; }
[data-world="solstice"]    { --w1: #e8952f; --w2: #ffd27a; --w3: #6b46e8; --w-ink: #0c0918; --w-on: #1c1200; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* faint grid, strongest at the top */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 70%);
  pointer-events: none;
}
/* the page glow takes the colour of the world you are looking at */
body::after {
  content: "";
  position: fixed; z-index: -1; pointer-events: none;
  width: 1100px; height: 1100px; left: 50%; top: -640px;
  transform: translateX(-50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--w1) 26%, transparent), color-mix(in srgb, var(--w2) 10%, transparent) 45%, transparent 70%);
  transition: background 1s var(--ease);
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #67e8f9; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: 0; }
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; color: var(--w2);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: linear-gradient(90deg, var(--w2), var(--w1)); border-radius: 2px; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 620px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem; border-radius: 14px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--grad); color: #07080d; box-shadow: 0 10px 30px -10px rgba(139,92,246,.7); }
.btn-primary:hover { color: #07080d; box-shadow: 0 16px 40px -10px rgba(34,211,238,.6); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,.3); background: var(--surface-2); }
/* a button in the current world's colour */
.btn-world { background: var(--w1); color: var(--w-on); box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--w1) 75%, transparent); }
.btn-world:hover { color: var(--w-on); box-shadow: 0 18px 44px -12px color-mix(in srgb, var(--w1) 85%, transparent); filter: brightness(1.06); }
.btn-world::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s var(--ease);
}
.btn-world:hover::after { transform: translateX(120%); }
.btn-sm { padding: .62rem 1.1rem; font-size: .84rem; border-radius: 11px; }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; border-radius: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn .ico { width: 18px; height: 18px; }
.btn-soon { opacity: .7; cursor: default; border-style: dashed; }
.btn-soon:hover { transform: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 6, 11, .55);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s, border-color .3s;
}
.site-header.scrolled { background: rgba(5, 6, 11, .82); border-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: .7rem; color: var(--text); }
.logo:hover { color: var(--text); }
.logo svg, .logo img { width: 40px; height: 40px; flex: none; border-radius: 50%; }
.logo img { box-shadow: 0 6px 18px -6px rgba(34,211,238,.5); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .14em; }
.logo-text span { font-size: .6rem; letter-spacing: .32em; color: var(--muted); margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--muted); font-family: var(--font-display); font-weight: 500;
  font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; position: relative;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--grad); border-radius: 2px;
}
.nav-links a.btn { color: #07080d; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 10px;
  width: 44px; height: 44px; color: var(--text); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; margin: auto; position: relative; transition: .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #06070d; border-bottom: 1px solid var(--border);
    padding: .5rem 16px 1.2rem; max-height: calc(100vh - 72px); overflow: auto;
    display: none;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links li a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--border); }
  .nav-links li a.btn { border-bottom: 0; padding: .85rem 1.5rem; margin-top: 1rem; width: 100%; }
  .nav-links a.active::after { display: none; }
}

/* Games and Apps hover panels (open on hover, like apple.com) */
.nav-links > li { display: flex; align-items: center; }
.sub-toggle {
  display: none; background: none; border: 0; padding: 0; width: 44px; height: 44px; cursor: pointer;
  color: var(--muted); place-items: center; border-radius: 8px;
}
.sub-toggle::before {
  content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s;
}
.has-menu.open .sub-toggle::before { transform: translateY(2px) rotate(-135deg); }

@media (min-width: 821px) {
  .nav-links > li.has-menu { height: 72px; }
  .mega {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 60;
    background: #090b15; border-bottom: 1px solid var(--border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
    padding: 2.4rem 0 3rem;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .has-menu:hover .mega, .has-menu:focus-within .mega {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .25s ease .12s, transform .25s ease .12s, visibility 0s linear .12s;
  }
  .mega-inner { display: grid; grid-template-columns: minmax(280px, 1.3fr) 1fr 1fr; gap: 3rem; }
  .mega-col ul { list-style: none; margin: 0; padding: 0; }
  .mega-h {
    margin: 0 0 .9rem; color: var(--muted); font-family: var(--font-body); font-size: .78rem;
    font-weight: 500; letter-spacing: .02em; text-transform: none;
  }
  .nav-links .mega a {
    display: inline-block; padding: .28rem 0; font-family: var(--font-body); text-transform: none;
    letter-spacing: 0; color: var(--text); font-weight: 600; font-size: .95rem;
  }
  .nav-links .mega-main a { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; padding: .18rem 0; }
  .nav-links .mega a:hover { color: var(--cyan); }
  .nav-links .mega a::after { display: none; }
  .mega-all { display: none; }
  .mega li { opacity: 0; transform: translateY(-4px); transition: opacity .25s ease, transform .25s ease; }
  .has-menu:hover .mega li, .has-menu:focus-within .mega li { opacity: 1; transform: none; transition-delay: .18s; }
  .site-header::after {
    content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 100vh; z-index: 55; pointer-events: none;
    background: rgba(5, 6, 11, .45);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s;
  }
  .site-header:has(.has-menu:hover)::after, .site-header:has(.has-menu:focus-within)::after {
    opacity: 1; visibility: visible; transition: opacity .25s ease .12s, visibility 0s linear .12s;
  }
  main, .site-footer { transition: filter .25s ease; }
  body:has(.has-menu:hover) main, body:has(.has-menu:hover) .site-footer,
  body:has(.has-menu:focus-within) main, body:has(.has-menu:focus-within) .site-footer { filter: blur(8px); transition-delay: .12s; }
}
@media (max-width: 820px) {
  .nav-links > li > a { flex: 1; }
  .has-menu { flex-wrap: wrap; border-bottom: 1px solid var(--border); }
  .nav-links .has-menu > a { border-bottom: 0; }
  .sub-toggle { display: grid; }
  .mega { display: none; width: 100%; padding: 0 0 .7rem .25rem; }
  .has-menu.open .mega { display: block; }
  .mega .container { padding: 0; }
  .mega-col:not(.mega-main), .mega-h { display: none; }
  .mega ul { list-style: none; margin: 0; padding: 0; }
  .nav-links .mega li a {
    border-bottom: 0; padding: .5rem .4rem; text-transform: none; letter-spacing: 0;
    font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; color: var(--text);
  }
  .nav-links .mega .mega-all a {
    color: var(--cyan); font-family: var(--font-display); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  }
}

/* ---------- Sections ---------- */
section { padding: 96px 0; position: relative; }
.section-head { margin-bottom: 3rem; max-width: 720px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head .lead { margin: 0; }
.section-row { display: flex; align-items: end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.section-row .section-head { margin: 0; }

/* ---------- Scroll reveal (one gentle rise per block) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ==========================================================
   HOME: cinematic hero with the game reel
   ========================================================== */
.hero-cine {
  position: relative; min-height: calc(100svh - 72px); display: grid; align-items: center;
  padding: 80px 0 60px; overflow: hidden; isolation: isolate;
}
.hero-cine .container { position: relative; z-index: 2; }
.hero-copy { max-width: 640px; }
.hero-mark { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 1.6rem; box-shadow: 0 20px 50px -16px rgba(34,211,238,.6), 0 0 0 1px rgba(255,255,255,.1); animation: hero-pop .9s var(--ease) both; }
.hero-copy h1 { margin-bottom: 1.3rem; text-wrap: balance; animation: hero-rise .9s var(--ease) .08s both; }
.hero-copy h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin-bottom: 2.2rem; max-width: 520px; animation: hero-rise .9s var(--ease) .18s both; }
.hero-copy .btn-row { animation: hero-rise .9s var(--ease) .28s both; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 2.6rem; color: var(--muted); font-size: .92rem; animation: hero-rise .9s var(--ease) .38s both; }
.hero-facts span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-facts i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); display: inline-block; }

/* the reel: three columns of real game screens drifting at different speeds */
.reel {
  position: absolute; inset: 0 -6% -10% auto; width: min(62vw, 880px); z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  transform: perspective(1400px) rotateY(-16deg) rotateX(6deg) rotateZ(2deg) translateX(8%);
  transform-origin: 60% 50%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  pointer-events: none;
  animation: hero-fade 1.4s var(--ease) both;
}
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
.reel-col { display: flex; flex-direction: column; gap: 18px; animation: reel-up 46s linear infinite; will-change: transform; }
.reel-col:nth-child(2) { animation-duration: 58s; animation-direction: reverse; }
.reel-col:nth-child(3) { animation-duration: 52s; }
.reel-col img {
  width: 100%; border-radius: 18px; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08);
  background: var(--ink);
}
@keyframes reel-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.hero-cine::after {
  content: ""; position: absolute; inset: auto 0 0; height: 220px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg));
}
@media (max-width: 1100px) { .reel { width: 70vw; inset: -10% -14% -10% auto; opacity: .75; } }
@media (max-width: 760px) {
  .hero-cine { min-height: auto; padding: 56px 0 40px; }
  .reel { position: relative; inset: auto; width: calc(100% + 32px); margin: 2.4rem -16px -40px; height: 420px; opacity: 1;
    transform: perspective(900px) rotateX(10deg) scale(1.08); transform-origin: 50% 100%;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 15%, #000 70%, transparent);
    -webkit-mask-composite: initial; mask-composite: initial; }
  .hero-cine::after { display: none; }
}

/* ==========================================================
   HOME: game rail (each card is its own colour world)
   ========================================================== */
.rail-section { padding-top: 40px; }
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 340px); gap: 1.2rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 16px 28px; margin: 0 -16px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; scroll-padding-inline: 16px;
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 1240px) { .rail { padding-left: calc((100vw - var(--max)) / 2); margin-left: calc((100vw - var(--max)) / -2); padding-right: 64px; margin-right: calc((100vw - var(--max)) / -2); scroll-padding-inline: calc((100vw - var(--max)) / 2); } }

.world-card {
  position: relative; display: flex; flex-direction: column; min-height: 500px; border-radius: 26px; overflow: hidden;
  color: #fff; text-decoration: none; isolation: isolate;
  background:
    radial-gradient(120% 70% at 20% 0%, color-mix(in srgb, var(--w2) 70%, transparent), transparent 55%),
    radial-gradient(90% 60% at 90% 100%, color-mix(in srgb, var(--w3) 55%, transparent), transparent 60%),
    linear-gradient(160deg, var(--w1), color-mix(in srgb, var(--w1) 45%, var(--w-ink)) 70%, var(--w-ink));
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--w1) 70%, transparent), inset 0 0 0 1px rgba(255,255,255,.14);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  transform-style: preserve-3d;
}
.world-card:hover { color: #fff; transform: translateY(-8px); box-shadow: 0 50px 80px -30px color-mix(in srgb, var(--w1) 85%, transparent), inset 0 0 0 1px rgba(255,255,255,.22); }
.world-card .wc-top { padding: 1.5rem 1.5rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.world-card .wc-icon { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.2); }
.world-card .wc-genre { font-family: var(--font-display); font-size: .78rem; letter-spacing: .08em; padding: .35rem .7rem; border-radius: 999px; background: rgba(0,0,0,.28); backdrop-filter: blur(6px); }
.world-card h3 { font-size: 1.7rem; margin: 1.1rem 1.5rem .3rem; line-height: 1.05; }
.world-card p { margin: 0 1.5rem; font-size: .95rem; color: rgba(255,255,255,.86); max-width: 28ch; }
.world-card .wc-shot {
  margin: auto 1.5rem 0; padding-top: 1.4rem; height: 230px; position: relative;
}
.world-card .wc-shot img {
  width: 78%; margin: 0 auto; border-radius: 18px 18px 0 0; aspect-ratio: 9 / 11; object-fit: cover; object-position: top;
  box-shadow: 0 -10px 40px -10px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.18);
  transform: translateY(14px); transition: transform .5s var(--ease);
}
.world-card:hover .wc-shot img { transform: translateY(0); }
.world-card .wc-play {
  position: absolute; left: 50%; bottom: 1.2rem; transform: translate(-50%, 10px); opacity: 0;
  padding: .7rem 1.3rem; border-radius: 999px; background: #fff; color: #111; font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  box-shadow: 0 16px 30px -10px rgba(0,0,0,.6); transition: opacity .35s var(--ease), transform .35s var(--ease); white-space: nowrap;
}
.world-card:hover .wc-play, .world-card:focus-visible .wc-play { opacity: 1; transform: translate(-50%, 0); }
.world-card.is-new::before {
  content: "New"; position: absolute; top: 1.2rem; right: 1.2rem; z-index: 2;
  font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .1em;
  padding: .3rem .6rem; border-radius: 999px; background: #fff; color: #111;
}
.world-card.is-new .wc-genre { margin-right: 3.4rem; }
.rail-nav { display: flex; gap: .5rem; }
.rail-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s, transform .2s;
}
.rail-btn:hover { background: var(--surface-2); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.rail-btn svg { width: 18px; height: 18px; }
@media (max-width: 600px) { .world-card { min-height: 460px; } .world-card .wc-shot { height: 200px; } }

/* ==========================================================
   HOME: spotlights (full-bleed, one game, one colour)
   ========================================================== */
.spot { padding: 0; }
.spot-inner {
  position: relative; overflow: hidden; border-radius: 32px; min-height: 560px; display: grid; align-items: center;
  background:
    radial-gradient(70% 90% at 85% 50%, color-mix(in srgb, var(--w2) 32%, transparent), transparent 60%),
    radial-gradient(60% 80% at 10% 100%, color-mix(in srgb, var(--w3) 30%, transparent), transparent 60%),
    linear-gradient(135deg, color-mix(in srgb, var(--w1) 32%, var(--w-ink)), var(--w-ink) 60%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 40px 90px -40px color-mix(in srgb, var(--w1) 60%, transparent);
}
.spot-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; padding: 3.5rem; }
.spot-copy h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.spot-copy .lead { color: rgba(255,255,255,.8); }
.spot-copy .eyebrow { color: var(--w1); }
.spot-copy .eyebrow::before { background: var(--w1); }
.spot-shots { position: relative; height: 480px; }
.spot-shots img { position: absolute; border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.14); object-fit: cover; }
.spot-shots .s-wide { right: 0; top: 0; width: 86%; aspect-ratio: 16 / 10; }
.spot-shots .s-phone { left: 0; bottom: 0; width: 34%; aspect-ratio: 9 / 19.5; object-position: top; transform: rotate(-4deg); }
.spot-shots .s-phone-2 { right: 6%; bottom: -4%; width: 30%; aspect-ratio: 9 / 19.5; object-position: top; transform: rotate(5deg); }
.spot.bright .spot-inner { color: var(--w-on); background:
    radial-gradient(70% 90% at 85% 40%, color-mix(in srgb, var(--w2) 55%, transparent), transparent 60%),
    radial-gradient(60% 80% at 10% 100%, color-mix(in srgb, var(--w3) 70%, transparent), transparent 60%),
    linear-gradient(135deg, var(--w1), color-mix(in srgb, var(--w1) 70%, #fff) 100%); }
.spot.bright .spot-copy .lead { color: color-mix(in srgb, var(--w-on) 78%, transparent); }
.spot.bright .spot-copy .eyebrow { color: var(--w-on); }
.spot.bright .spot-copy .eyebrow::before { background: var(--w-on); }
.spot.bright .btn-ghost { background: rgba(0,0,0,.14); border-color: rgba(0,0,0,.18); color: var(--w-on); }
.spot.bright .btn-ghost:hover { background: rgba(0,0,0,.22); color: var(--w-on); }
.spot.bright .btn-world { background: #1b1b22; color: #fff; }
.spot.bright .btn-world:hover { color: #fff; }
.spot + .spot { margin-top: 2rem; }
@media (max-width: 900px) {
  .spot-grid { grid-template-columns: 1fr; padding: 2.2rem 1.4rem; }
  .spot-shots { height: 360px; }
  .spot-inner { border-radius: 24px; min-height: auto; }
}

/* ==========================================================
   HOME: apps tiles, principles, updates
   ========================================================== */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.tile .t-shot { max-width: 150px; }
.tile { min-height: 380px; }
.tile {
  position: relative; overflow: hidden; border-radius: 26px; padding: 2.2rem; min-height: 320px; display: flex; flex-direction: column; justify-content: end;
  color: #fff; background:
    radial-gradient(90% 80% at 100% 0%, color-mix(in srgb, var(--w1) 45%, transparent), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--w2) 35%, var(--w-ink)), var(--w-ink));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tile:hover { color: #fff; transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 40px 70px -30px color-mix(in srgb, var(--w1) 70%, transparent); }
.tile img.t-icon { width: 72px; height: 72px; border-radius: 20px; margin-bottom: auto; box-shadow: 0 16px 30px -12px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.18); }
.tile h3 { font-size: 1.8rem; margin: 1.6rem 0 .3rem; }
.tile p { color: rgba(255,255,255,.82); max-width: 38ch; margin-bottom: 1.2rem; }
.tile .t-tag { position: absolute; top: 1.6rem; right: 1.6rem; font-family: var(--font-display); font-size: .75rem; letter-spacing: .08em; padding: .35rem .7rem; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.tile .t-shot { position: absolute; right: -8%; top: 8%; width: 46%; border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.14); transform: rotate(6deg); transition: transform .5s var(--ease); }
.tile:hover .t-shot { transform: rotate(3deg) translateY(-6px); }
@media (max-width: 1000px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 800px) { .tiles { grid-template-columns: 1fr; } .tile .t-shot { width: 40%; top: 4%; } }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 3rem; }
.principle h3 { font-size: 1.35rem; margin: 1rem 0 .4rem; }
.principle p { color: var(--muted); margin: 0; }
.principle .p-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--w2); }
.principle .p-ico svg { width: 22px; height: 22px; }
@media (max-width: 800px) { .principles { grid-template-columns: 1fr; gap: 2rem; } }

.updates { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.updates li { display: grid; grid-template-columns: 120px 1fr auto; gap: 1.5rem; align-items: center; padding: 1.3rem 0; border-bottom: 1px solid var(--border); }
.updates time { color: var(--muted); font-size: .9rem; font-family: var(--font-display); }
.updates strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.updates span { color: var(--muted); font-size: .95rem; }
.updates a.more { color: var(--text); font-family: var(--font-display); font-size: .85rem; letter-spacing: .04em; padding: .5rem .9rem; border: 1px solid var(--border); border-radius: 999px; transition: border-color .2s, background .2s; }
.updates a.more:hover { border-color: rgba(255,255,255,.35); background: var(--surface); }
@media (max-width: 640px) { .updates li { grid-template-columns: 1fr; gap: .4rem; } .updates a.more { justify-self: start; } }

/* ---------- Cards (shared) ---------- */
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.22); box-shadow: 0 24px 50px -24px rgba(0,0,0,.7); }

.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .9rem; }
.tag {
  font-family: var(--font-display); font-size: .74rem; font-weight: 600; letter-spacing: .06em;
  padding: .32rem .7rem; border-radius: 999px;
  background: color-mix(in srgb, var(--w2) 14%, transparent); color: var(--w2); border: 1px solid color-mix(in srgb, var(--w2) 35%, transparent);
}
.tag.alt { background: color-mix(in srgb, var(--w1) 14%, transparent); color: var(--w1); border-color: color-mix(in srgb, var(--w1) 35%, transparent); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: 3.8rem 2rem; border-radius: 28px;
  background:
    radial-gradient(60% 100% at 10% 0%, rgba(34,211,238,.16), transparent 60%),
    radial-gradient(60% 100% at 90% 100%, rgba(236,72,153,.16), transparent 60%),
    linear-gradient(135deg, rgba(139,92,246,.14), rgba(139,92,246,.06));
  border: 1px solid rgba(139,92,246,.35);
}
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 1.8rem; }
.cta .btn-row { justify-content: center; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 90px 0 40px; }
.page-hero .lead { margin: 0; }

/* ==========================================================
   GAMES INDEX: the grid of worlds
   ========================================================== */
.worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.worlds .world-card { min-height: 520px; }
.worlds .world-card.wide { grid-column: span 2; }
.worlds .world-card.wide .wc-shot img { width: 50%; }
.worlds.apps { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .worlds.apps { grid-template-columns: 1fr 1fr; } }
.more-games.three { grid-template-columns: repeat(3, 1fr); }
.mini-world.app-row { min-height: 170px; }
.mini-world.app-row small { opacity: .9; line-height: 1.35; }
@media (max-width: 1000px) { .worlds { grid-template-columns: 1fr 1fr; } .worlds .world-card.wide .wc-shot img { width: 60%; } }
@media (max-width: 640px) { .worlds, .worlds.apps { grid-template-columns: 1fr; } .worlds .world-card.wide { grid-column: auto; } .worlds .world-card.wide .wc-shot img { width: 78%; } }

/* ==========================================================
   GAME PAGE: hero, gallery, lightbox, concept
   ========================================================== */
.g-hero {
  position: relative; overflow: hidden; padding: 60px 0 0; min-height: 82svh; display: grid; align-items: center; color: #fff; isolation: isolate;
  background:
    radial-gradient(70% 70% at 80% 20%, color-mix(in srgb, var(--w2) 55%, transparent), transparent 60%),
    radial-gradient(60% 60% at 10% 90%, color-mix(in srgb, var(--w3) 45%, transparent), transparent 60%),
    linear-gradient(160deg, var(--w1) 0%, color-mix(in srgb, var(--w1) 50%, var(--w-ink)) 55%, var(--w-ink) 100%);
}
.g-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
}
.g-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(180deg, transparent, var(--bg)); z-index: 0; pointer-events: none; }
.g-hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: end; }
.g-hero-copy { padding-bottom: 70px; }
.g-hero-copy .g-icon { width: 92px; height: 92px; border-radius: 26px; box-shadow: 0 20px 40px -14px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.25); margin-bottom: 1.6rem;
  animation: hero-pop .9s var(--ease) both; }
.g-hero-copy h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); margin-bottom: .7rem; animation: hero-rise .9s var(--ease) .1s both; }
.g-hero-copy .g-tag { font-family: var(--font-display); font-size: .9rem; letter-spacing: .06em; color: rgba(255,255,255,.8); margin-bottom: .6rem; animation: hero-rise .9s var(--ease) .05s both; }
.g-hero-copy .lead { color: rgba(255,255,255,.86); font-size: 1.2rem; max-width: 520px; animation: hero-rise .9s var(--ease) .18s both; }
.g-hero-copy .btn-row { animation: hero-rise .9s var(--ease) .28s both; margin-top: 1.8rem; }
.g-hero-copy .btn-primary { background: #fff; color: #111; box-shadow: 0 16px 36px -12px rgba(0,0,0,.6); }
.g-hero-copy .btn-primary:hover { color: #111; }
.g-hero-copy .btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; }
.g-hero-copy .btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.g-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; animation: hero-rise .9s var(--ease) .36s both; }
.g-facts span { font-size: .85rem; padding: .4rem .8rem; border-radius: 999px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.g-hero-art { position: relative; height: 620px; }
.g-hero-art img { position: absolute; height: auto; border-radius: 26px; box-shadow: 0 50px 90px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.18); object-fit: cover; object-position: top; }
.g-hero-art .a1 { left: 8%; bottom: 0; width: 46%; aspect-ratio: 9 / 19.5; z-index: 2; animation: hero-rise 1.1s var(--ease) .2s both; }
.g-hero-art .a2 { right: 0; bottom: 12%; width: 40%; aspect-ratio: 9 / 19.5; --r: 6deg; opacity: .95; animation: hero-rise-r 1.1s var(--ease) .35s both; }
.g-hero-art .a3 { left: 0; bottom: 14%; width: 30%; aspect-ratio: 9 / 19.5; --r: -8deg; opacity: .9; animation: hero-rise-r 1.1s var(--ease) .45s both; }
.g-hero-art.wide-art .a1 { left: 0; width: 100%; aspect-ratio: 16 / 10; bottom: 8%; }
.g-hero-art.wide-art .a2 { right: -4%; bottom: -2%; width: 30%; }
.g-hero-art.wide-art .a3 { display: none; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes hero-rise-r { from { opacity: 0; transform: translateY(30px) rotate(var(--r)); } to { opacity: 1; transform: rotate(var(--r)); } }
@keyframes hero-pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .g-hero { min-height: auto; padding-top: 40px; }
  .g-hero .container { grid-template-columns: 1fr; }
  .g-hero-copy { padding-bottom: 1rem; }
  .g-hero-art { height: 380px; margin-bottom: -30px; }
  .g-hero-art .a1 { width: 44%; left: 10%; }
}

.g-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.g-section-title h2 { margin: 0; }
.g-section-title p { margin: 0; color: var(--muted); max-width: 62ch; }

/* feature grid */
.g-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.g-feature { padding: 1.6rem 1.7rem; border-radius: 22px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); display: flex; gap: 1.1rem; align-items: start; }
.g-feature .f-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--w1) 18%, transparent); color: var(--w1); border: 1px solid color-mix(in srgb, var(--w1) 35%, transparent); }
.g-feature .f-ico svg { width: 22px; height: 22px; }
.g-feature h3 { font-size: 1.1rem; margin: .15rem 0 .3rem; }
.g-feature p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 700px) { .g-features { grid-template-columns: 1fr; } }

/* how to play: this is a real sequence, so it is numbered */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: step; }
.step { position: relative; padding: 1.8rem 1.6rem 1.6rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.step::before { counter-increment: step; content: counter(step); font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--w1); display: block; margin-bottom: .8rem; }
.step h3 { font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* gallery */
.gal-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.gal-filters button {
  font-family: var(--font-display); font-weight: 600; font-size: .85rem; letter-spacing: .03em;
  padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.gal-filters button:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.gal-filters button[aria-pressed="true"] { background: var(--w1); color: var(--w-on); border-color: transparent; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 1rem; margin-top: 1.6rem; }
.gal-item {
  position: relative; border-radius: 18px; overflow: hidden; border: 0; padding: 0; margin: 0; cursor: zoom-in; background: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .3s;
  grid-row: span 2;
}
.gal-item.phone { grid-row: span 3; }
.gal-item.wide { grid-column: span 2; grid-row: span 2; }
.gal-item.concept { grid-row: span 2; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.gal-item:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 24px 50px -24px rgba(0,0,0,.8); }
.gal-item:hover img { transform: scale(1.04); }
.gal-item figcaption {
  position: absolute; inset: auto 0 0; padding: 2.2rem .9rem .8rem; font-size: .82rem; color: #fff; text-align: left;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.72)); opacity: 0; transition: opacity .3s;
}
.gal-item:hover figcaption, .gal-item:focus-visible figcaption { opacity: 1; }
.gal-item.hidden { display: none; }
/* concept cards drawn with CSS: palette, icon, lettering */
.concept-card { display: grid; place-items: center; width: 100%; height: 100%; padding: 1.2rem; text-align: center; color: #fff;
  background: linear-gradient(160deg, var(--w1), color-mix(in srgb, var(--w1) 40%, var(--w-ink))); }
.concept-card.palette { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; gap: .5rem; place-items: stretch; background: var(--w-ink); }
.concept-card.palette i { border-radius: 10px; display: block; }
.concept-card.icon-card { background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--w2) 60%, transparent), transparent 70%), var(--w-ink); }
.concept-card.icon-card img { width: 46%; border-radius: 24%; box-shadow: 0 20px 40px -14px rgba(0,0,0,.8); }
.concept-card.type-card { background: var(--w-ink); }
.concept-card.type-card b { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1; color: var(--w1); }
.concept-card.type-card small { display: block; margin-top: .5rem; color: rgba(255,255,255,.7); font-size: .85rem; }
.concept-card.mood-card { background: linear-gradient(160deg, var(--w2), var(--w3)); color: var(--w-on); }
.concept-card.mood-card span { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.5; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 130px; } }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; gap: .7rem; } .gal-item.wide { grid-column: span 2; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(3,4,8,.92); backdrop-filter: blur(10px); }
.lightbox.open { display: flex; animation: lb-in .25s var(--ease); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { position: relative; width: min(1100px, 100vw - 32px); height: min(86vh, 900px); display: grid; place-items: center; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: calc(86vh - 70px); border-radius: 18px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.12); object-fit: contain; animation: lb-img .35s var(--ease); }
.lb-stage .concept-card { width: min(520px, 90vw); height: min(520px, 60vh); border-radius: 22px; animation: lb-img .35s var(--ease); }
@keyframes lb-img { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.lb-cap { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: .95rem; text-align: center; padding: .6rem 1rem; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.lb-cap b { font-family: var(--font-display); margin-right: .7rem; color: var(--w1); }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-prev { left: -6px; } .lb-next { right: -6px; }
.lb-close { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-close svg { width: 18px; height: 18px; }
@media (max-width: 700px) { .lb-prev { left: 4px; } .lb-next { right: 4px; } .lb-btn { width: 44px; height: 44px; } .lb-cap { font-size: .85rem; } }
body.lb-open { overflow: hidden; }

/* more games strip on game pages */
.more-games { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.mini-world {
  display: flex; flex-direction: column; gap: .6rem; padding: 1.1rem; border-radius: 20px; color: #fff; min-height: 150px; justify-content: end;
  background: linear-gradient(160deg, var(--w1), color-mix(in srgb, var(--w1) 40%, var(--w-ink)));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transition: transform .4s var(--ease);
}
.mini-world:hover { color: #fff; transform: translateY(-5px); }
.mini-world img { width: 44px; height: 44px; border-radius: 13px; box-shadow: 0 10px 20px -8px rgba(0,0,0,.6); margin-bottom: auto; }
.mini-world strong { font-family: var(--font-display); font-size: 1rem; line-height: 1.2; }
.mini-world small { font-size: .8rem; opacity: .8; }
@media (max-width: 900px) { .more-games { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .more-games, .more-games.three { grid-template-columns: repeat(2, 1fr); } .more-games.three .app-row { grid-column: span 2; } }

/* ---------- Legacy game rows (apps page) ---------- */
.game-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 3rem 0; scroll-margin-top: 90px; }
.game-detail + .game-detail { border-top: 1px solid var(--border); }
.game-detail.reverse .game-detail-art { order: 2; }
.game-detail-art { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.game-detail-art .game-art { border: 0; aspect-ratio: 4 / 3; }
.game-art {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(34,211,238,.18), transparent 60%),
              radial-gradient(circle at 80% 90%, rgba(236,72,153,.18), transparent 55%), var(--bg-2);
}
.game-art .app-icon { width: 42%; max-width: 200px; height: auto; border-radius: 22%; box-shadow: 0 18px 40px -12px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); }
.game-art.shot-wide img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90%; height: auto; max-height: 86%; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 40px -14px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.1); }
.game-art.shot img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); height: 80%; width: auto; object-fit: contain; border-radius: 14px; box-shadow: 0 20px 40px -14px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.1); }
.shots { display: flex; justify-content: center; align-items: center; gap: 4%; padding: 6% 4%; }
.shots img { width: 30%; height: auto; border-radius: 14px; box-shadow: 0 20px 40px -14px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.1); }
.shots img:nth-child(2) { width: 34%; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .7rem; color: var(--muted); }
.check-list li::before { content: "▸"; color: var(--w2); font-weight: 700; }
.price-note { font-size: .9rem; color: var(--muted); margin: -.6rem 0 1.4rem; }
.price-note strong { color: var(--text); font-weight: 600; }
@media (min-width: 901px) {
  .game-detail.fit-text { align-items: stretch; }
  .game-detail.fit-text .game-detail-art { display: flex; }
  .game-detail.fit-text .game-detail-art .game-art { aspect-ratio: auto; width: 100%; min-height: 100%; }
}
@media (max-width: 900px) {
  .game-detail { grid-template-columns: 1fr; gap: 1.6rem; }
  .game-detail.reverse .game-detail-art { order: 0; }
}
.art-sudoku { background: radial-gradient(circle at 50% 45%, rgba(228,85,60,.38), transparent 60%), radial-gradient(circle at 15% 10%, rgba(45,74,134,.6), transparent 55%), #0e1424; }
.art-kingside { background: radial-gradient(circle at 50% 45%, rgba(243,181,68,.34), transparent 60%), radial-gradient(circle at 85% 90%, rgba(30,90,166,.6), transparent 55%), #0b1424; }
.art-minesweeper { background: radial-gradient(circle at 50% 45%, rgba(240,106,160,.28), transparent 60%), radial-gradient(circle at 15% 85%, rgba(63,176,126,.45), transparent 55%), #0d1720; }
.art-jade { background: radial-gradient(circle at 50% 45%, rgba(47,174,138,.45), transparent 62%), radial-gradient(circle at 85% 90%, rgba(227,88,74,.22), transparent 55%), #0b1612; }
.art-wella { background: radial-gradient(circle at 50% 45%, rgba(104,201,79,.4), transparent 62%), radial-gradient(circle at 85% 90%, rgba(255,111,176,.22), transparent 55%), #0b140d; }
.art-nightmile { background: radial-gradient(circle at 50% 45%, rgba(255,179,71,.28), transparent 62%), radial-gradient(circle at 15% 90%, rgba(57,228,255,.22), transparent 55%), #0d0c16; }
.art-simoy { background: radial-gradient(circle at 50% 45%, rgba(34,211,238,.25), transparent 62%), radial-gradient(circle at 85% 90%, rgba(10,28,40,.9), transparent 55%), #07121a; }
.art-solstice { background: radial-gradient(circle at 50% 40%, rgba(243,178,63,.32), transparent 60%), radial-gradient(circle at 50% 100%, rgba(139,92,246,.35), transparent 60%), #0f1030; }

/* ---------- Support ---------- */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-bottom: 4rem; }
.contact-card { padding: 1.8rem; }
.contact-card h3 { margin-bottom: .4rem; }
.contact-card p { color: var(--muted); font-size: .95rem; }
.email-link { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; word-break: break-all; }
@media (max-width: 900px) { .support-grid { grid-template-columns: 1fr; } }

.faq { display: grid; gap: .8rem; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 0 1.4rem; transition: border-color .2s; }
.faq details[open] { border-color: rgba(34,211,238,.4); background: var(--surface-2); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--cyan); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p, .faq details ul { color: var(--muted); margin-top: 0; }
.faq details > :last-child { padding-bottom: 1.2rem; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.6rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1rem; }
.prose p, .prose li { color: #c4c9d6; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1em; }
.prose li { margin-bottom: .45rem; }
.prose strong { color: var(--text); }
.prose h3 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; color: var(--text); }
.updated { display: inline-block; font-size: .85rem; color: var(--muted); padding: .4rem .8rem; border: 1px solid var(--border); border-radius: 999px; margin-top: 1.2rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: start; }
.about-grid .prose p { font-size: 1.05rem; }
.stat-stack { display: grid; gap: 1rem; }
.stat { padding: 1.4rem 1.6rem; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.15rem; margin-bottom: .2rem; }
.stat span { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 30px; margin-top: 40px; background: rgba(5,6,11,.7); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-grid h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-grid ul a { color: #c4c9d6; font-size: .95rem; }
.footer-grid ul a:hover { color: var(--cyan); }
.footer-about p { color: var(--muted); font-size: .95rem; max-width: 320px; margin-top: 1rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.error-code { font-family: var(--font-display); font-size: clamp(6rem, 20vw, 11rem); font-weight: 700; line-height: 1; margin-bottom: .5rem; }

/* ---------- Misc legacy ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature { padding: 1.8rem; }
.feature .icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1.2rem; background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.35); color: #c4b5fd; }
.feature .icon svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); margin: 0; }
.app-teaser { display: flex; align-items: center; gap: 1.2rem; padding: 1.1rem 1.4rem; color: var(--text); }
.app-teaser img { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.app-teaser-text { display: flex; flex-direction: column; gap: .15rem; flex: 1; min-width: 0; }
.app-teaser-text strong { font-family: var(--font-display); font-size: 1.25rem; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } section { padding: 72px 0; } }

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .reel-col { transform: none; }
  .world-card .wc-play { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Games overview: intro, promise and playable cards ---------- */
.page-hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .btn-row { margin-top: 1.8rem; }
.page-hero .promise { display: flex; align-items: center; gap: .55rem; margin: 1.2rem 0 0; color: var(--muted); font-size: .92rem; }
.page-hero .promise i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
#games-grid, #faq { scroll-margin-top: 90px; }
.game-card .wc-link { color: inherit; text-decoration: none; }
.game-card .wc-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.game-card .wc-link:focus-visible { outline: none; }
.game-card:has(.wc-link:focus-visible) { box-shadow: 0 0 0 3px #fff, 0 50px 80px -30px color-mix(in srgb, var(--w1) 85%, transparent); }
.game-card .wc-badge {
  align-self: flex-start; margin: .35rem 1.5rem .7rem; padding: .28rem .65rem; border-radius: 999px;
  font-size: .74rem; font-weight: 600; letter-spacing: .02em; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22);
}
.game-card p { max-width: 46ch; line-height: 1.55; }
.game-card .wc-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin: 1.2rem 1.5rem 0; }
.game-card .wc-cta { position: relative; z-index: 2; background: #fff; color: #111; font-family: var(--font-display); font-weight: 700; box-shadow: 0 14px 28px -12px rgba(0,0,0,.6); }
.game-card .wc-cta:hover { color: #111; transform: translateY(-2px); }
.game-card .wc-more { font-size: .86rem; color: rgba(255,255,255,.8); transition: color .2s, transform .2s; }
.game-card:hover .wc-more { color: #fff; transform: translateX(3px); }
.worlds.games .world-card { min-height: 600px; }
.worlds.games .world-card.wide p { max-width: 60ch; }
@media (max-width: 600px) { .worlds.games .world-card { min-height: 0; } }

/* ---------- App tiles (homepage) and app cards: availability, note, two actions ---------- */
.tile .t-link { color: inherit; text-decoration: none; }
.tile .t-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tile .t-link:focus-visible { outline: none; }
.tile:has(.t-link:focus-visible) { box-shadow: 0 0 0 3px #fff; }
.tile .t-avail { align-self: flex-start; margin: .2rem 0 .8rem; padding: .28rem .65rem; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .02em; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); }
.tile p { margin-bottom: .6rem; }
.tile .t-note, .game-card .wc-note { font-size: .86rem; color: rgba(255,255,255,.7); margin-top: 0; }
.game-card .wc-note { margin: .6rem 1.5rem 0; }
.tile .t-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.tile .t-actions .btn { position: relative; z-index: 2; }
.tile .t-cta { background: #fff; color: #111; }
.tile .t-cta:hover { color: #111; }
.tile .t-more { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(0,0,0,.18); }
.tile .t-more:hover { background: rgba(0,0,0,.3); color: #fff; }
.mini-world.app-row small { font-weight: 600; }
.tiles .tile img.t-icon { margin-bottom: 0; }
.tiles .tile .t-actions { margin-top: auto; padding-top: .8rem; }

/* ---------- About ---------- */
.page-hero .eyebrow + h1 { margin-top: .6rem; }
.page-hero h1 + .lead { margin-top: 1.4rem; max-width: 62ch; }
.about-intro p { font-size: 1.15rem; max-width: 68ch; color: var(--text); margin: 0; }
.principles.four { grid-template-columns: repeat(4, 1fr); gap: 2.5rem 2rem; }
@media (max-width: 1000px) { .principles.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .principles.four { grid-template-columns: 1fr; } }
.cta + .cta { margin-top: 1.4rem; }

/* ---------- Support ---------- */
.before-contact { margin: 2.5rem 0 4rem; padding: 2rem 2.2rem; }
.before-contact h2 { font-size: 1.6rem; margin: 0 0 .4rem; }
.before-contact p { color: var(--muted); margin: 0 0 1.2rem; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem 2rem; }
.checklist li { position: relative; padding-left: 1.7rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }
@media (max-width: 700px) { .checklist { grid-template-columns: 1fr; } .before-contact { padding: 1.5rem; } }
@media (max-width: 600px) { .more-games.three { grid-template-columns: 1fr 1fr; } }
.before-contact { margin: 0 0 1.4rem; }
.before-contact + .support-grid { margin-bottom: 4rem; }
.support-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .support-grid.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .support-grid.four { grid-template-columns: 1fr; } }
.more-games.six { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1100px) { .more-games.six { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .more-games.six { grid-template-columns: 1fr 1fr; } }
.more-games.seven { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .more-games.seven { grid-template-columns: repeat(2, 1fr); } }

.gal-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 2rem; margin: 1rem 0 1.5rem; }
.gal-notes p { margin: 0; color: var(--muted, #a3abc2); font-size: .95rem; line-height: 1.5; }
.gal-notes strong { display: block; color: var(--text, #e9ecf5); font-weight: 600; margin-bottom: .15rem; }
@media (max-width: 600px) { .gal-notes { grid-template-columns: 1fr; } }

/* ==========================================================
   DARK GOLD (October 2026): the JPAM Studio 2.0 look, site-wide.
   Near-black, champagne gold, a hint of emerald; Manrope for
   headings, DM Sans for text, Georgia italic for the accent word.
   Everything above still applies; this layer only restyles it.
   ========================================================== */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/dm-sans-400.woff) format("woff"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/dm-sans-500.woff) format("woff"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/dm-sans-600.woff) format("woff"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/dm-sans-700.woff) format("woff"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/manrope-400.woff) format("woff"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/manrope-500.woff) format("woff"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/manrope-600.woff) format("woff"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/manrope-700.woff) format("woff"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/manrope-800.woff) format("woff"); }

:root {
  --bg: #0b0d0d;
  --bg-2: #101313;
  --ink: #121615;
  --panel: #111514;
  --surface: rgba(255, 255, 255, .025);
  --surface-2: rgba(255, 255, 255, .05);
  --border: rgba(255, 255, 255, .12);
  --line: rgba(255, 255, 255, .08);
  --text: #f3f0e8;
  --muted: #a9aeaa;
  --soft: #c9cdc6;
  --gold: #d7b779;
  --gold-2: #ebd09b;
  --gold-deep: #9b7b45;
  --emerald: #20372b;
  --cyan: var(--gold);              /* links and focus rings were cyan; now gold */
  --violet: var(--gold);
  --pink: var(--gold);
  --grad: linear-gradient(120deg, #ebd09b 0%, #d7b779 55%, #b48e52 100%);
  --radius: 10px;
  --radius-sm: 6px;
  --max: 1320px;
  --font-display: "Manrope", "Avenir Next", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-accent: Georgia, "Times New Roman", serif;
  /* the studio "world": gold with emerald */
  --w1: #d7b779; --w2: #2f5a45; --w3: #8a6a3a; --w-ink: #101513; --w-text: #fff; --w-on: #111713;
}
body { font-size: 16px; line-height: 1.65; }
body::before { display: none; }
/* a soft spotlight that takes the tint of the game you are looking at */
body::after { width: 1200px; height: 1000px; top: -700px; opacity: .55;
  background: radial-gradient(circle, color-mix(in srgb, var(--w1) 16%, transparent), color-mix(in srgb, var(--w2) 8%, transparent) 45%, transparent 70%); }
::selection { background: color-mix(in srgb, var(--gold) 40%, transparent); color: #fff; }

a { color: var(--gold); }
a:hover { color: var(--gold-2); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); }
h1 { font-weight: 650; letter-spacing: -.045em; line-height: 1.02; }
h2 { font-weight: 550; letter-spacing: -.035em; line-height: 1.12; }
h3 { font-weight: 600; letter-spacing: -.015em; }
h1 em, h2 em, h3 em, .hero-copy h1 em, .page-hero h1 em {
  font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: -.01em;
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--gold);
}
.gradient-text { background: none; color: var(--gold); }
.eyebrow {
  font-family: var(--font-body); font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); gap: .8rem;
}
.eyebrow::before { width: 28px; height: 1px; background: var(--gold); border-radius: 0; }
.lead { color: var(--soft); }
.muted { color: var(--muted); }

/* buttons: gold, ghost, and the world button follows the gold */
.btn { border-radius: 2px; font-family: var(--font-body); font-weight: 600; font-size: .86rem; letter-spacing: .02em; padding: .9rem 1.45rem; gap: .7rem; }
.btn-sm { border-radius: 2px; font-size: .8rem; padding: .62rem 1rem; }
.btn-lg { border-radius: 2px; font-size: .92rem; padding: 1.02rem 1.7rem; }
.btn-primary, .btn-world, .game-card .wc-cta, .tile .t-cta, .g-hero-copy .btn-primary {
  background: var(--gold); color: #111713; box-shadow: none; border-color: transparent; filter: none;
}
.btn-primary:hover, .btn-world:hover, .game-card .wc-cta:hover, .tile .t-cta:hover, .g-hero-copy .btn-primary:hover {
  background: var(--gold-2); color: #111713; box-shadow: 0 14px 30px -18px rgba(215,183,121,.8); filter: none;
}
.btn-primary::after, .btn-world::after { background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); }
.btn-ghost, .g-hero-copy .btn-ghost, .tile .t-more {
  background: rgba(11,13,13,.35); border-color: rgba(255,255,255,.3); color: var(--text); backdrop-filter: blur(6px);
}
.btn-ghost:hover, .g-hero-copy .btn-ghost:hover, .tile .t-more:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.5); color: #fff; }
.btn-soon { border-style: dashed; }

/* header */
.site-header { background: rgba(11,13,13,.82); border-bottom: 1px solid var(--line); }
.site-header.scrolled { background: rgba(11,13,13,.94); border-color: var(--border); }
.nav { height: 80px; }
.logo img, .logo svg { width: 36px; height: 36px; box-shadow: none; }
.logo-text strong { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: .04em; }
.logo-text span { font-family: var(--font-body); font-size: .5rem; font-weight: 500; letter-spacing: .48em; color: var(--soft); margin-top: 5px; }
.nav-links { gap: 2.1rem; }
.nav-links a { font-family: var(--font-body); font-weight: 500; font-size: .84rem; letter-spacing: .01em; text-transform: none; color: #d4d5ce; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a.active::after { background: var(--gold); height: 1px; bottom: -6px; }
.nav-links a.btn { color: var(--text); background: transparent; border: 1px solid #5f5948; box-shadow: none; padding: .62rem 1.1rem; font-size: .8rem; }
.nav-links a.btn::after { display: none; }
.nav-links a.btn:hover { color: #111713; background: var(--gold); border-color: var(--gold); transform: none; }
.nav-toggle { border-radius: 2px; border-color: var(--border); }
@media (min-width: 821px) {
  .nav-links > li.has-menu { height: 80px; }
  .mega { background: #0e1110; border-bottom: 1px solid var(--border); }
  .nav-links .mega a { font-family: var(--font-body); }
  .nav-links .mega-main a { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; }
  .nav-links .mega a:hover { color: var(--gold); }
  .mega-h { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
  .site-header::after { background: rgba(6,8,7,.55); }
}
@media (max-width: 820px) {
  .nav-links { top: 80px; background: #0e1110; max-height: calc(100vh - 80px); }
  .nav-links .mega .mega-all a { color: var(--gold); font-family: var(--font-body); }
}

/* sections and shared blocks */
.section-head h2 { text-wrap: balance; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.card:hover { border-color: rgba(215,183,121,.35); }
.tag { font-family: var(--font-body); border-radius: 2px; background: transparent; color: var(--soft); border-color: var(--border); }
.tag.alt { color: var(--gold); border-color: rgba(215,183,121,.35); background: transparent; }
.cta {
  border-radius: 0; border: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 100%, rgba(35,52,40,.55), transparent 70%), #0e1310;
}
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.page-hero .promise i, .hero-facts i, .checklist li::before { background: var(--gold); }

/* games and apps overview: dark panels, the game's colour only as a glow */
.world-card {
  border-radius: var(--radius); color: var(--text);
  background:
    radial-gradient(120% 70% at 85% 0%, color-mix(in srgb, var(--w1) 16%, transparent), transparent 60%),
    radial-gradient(90% 60% at 0% 100%, color-mix(in srgb, var(--w2) 12%, transparent), transparent 60%),
    var(--panel);
  box-shadow: inset 0 0 0 1px var(--border);
}
.world-card:hover { color: var(--text); box-shadow: inset 0 0 0 1px rgba(215,183,121,.4), 0 40px 70px -40px rgba(0,0,0,.9); }
.world-card .wc-icon { border-radius: 16px; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.world-card .wc-genre { font-family: var(--font-body); font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; border-radius: 2px; background: transparent; border: 1px solid var(--border); color: var(--soft); backdrop-filter: none; }
.world-card h3 { font-weight: 600; letter-spacing: -.03em; }
.world-card p { color: var(--muted); }
.world-card .wc-shot img { border-radius: 10px 10px 0 0; box-shadow: 0 -10px 40px -10px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.12); }
.world-card .wc-play { border-radius: 2px; background: var(--gold); color: #111713; font-family: var(--font-body); }
.world-card.is-new::before { border-radius: 2px; background: var(--gold); color: #111713; font-family: var(--font-body); letter-spacing: .18em; text-transform: uppercase; font-size: .62rem; }
.game-card .wc-badge, .tile .t-avail { border-radius: 2px; background: transparent; border-color: rgba(215,183,121,.35); color: var(--gold); font-weight: 600; }
.game-card .wc-more { color: var(--soft); }
.game-card:hover .wc-more { color: var(--gold); }
.game-card:has(.wc-link:focus-visible) { box-shadow: 0 0 0 2px var(--gold); }
.mini-world {
  border-radius: var(--radius-sm); color: var(--text);
  background: radial-gradient(100% 80% at 100% 0%, color-mix(in srgb, var(--w1) 14%, transparent), transparent 65%), var(--panel);
  box-shadow: inset 0 0 0 1px var(--border);
}
.mini-world:hover { color: var(--gold); box-shadow: inset 0 0 0 1px rgba(215,183,121,.4); }
.mini-world strong { font-weight: 600; letter-spacing: -.01em; }
.mini-world small { color: var(--muted); opacity: 1; }
.tile {
  border-radius: var(--radius); color: var(--text);
  background: radial-gradient(90% 80% at 100% 0%, color-mix(in srgb, var(--w1) 16%, transparent), transparent 60%), var(--panel);
  box-shadow: inset 0 0 0 1px var(--border);
}
.tile:hover { color: var(--text); box-shadow: inset 0 0 0 1px rgba(215,183,121,.4); }
.tile p, .tile .t-note, .game-card .wc-note { color: var(--muted); }
.tile .t-tag { border-radius: 2px; background: transparent; border: 1px solid var(--border); font-family: var(--font-body); letter-spacing: .16em; text-transform: uppercase; font-size: .62rem; }

/* game and app pages */
.g-hero {
  color: var(--text);
  background:
    radial-gradient(60% 70% at 80% 30%, color-mix(in srgb, var(--w1) 22%, transparent), transparent 62%),
    radial-gradient(50% 60% at 5% 95%, color-mix(in srgb, var(--w2) 14%, transparent), transparent 60%),
    linear-gradient(180deg, #0e1211, var(--bg));
  border-bottom: 1px solid var(--line);
}
.g-hero::before { display: none; }
.g-hero-copy .g-icon { border-radius: 22px; box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 24px 50px -20px rgba(0,0,0,.8); }
.g-hero-copy .g-tag { font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.g-hero-copy h1 { font-weight: 650; }
.g-hero-copy .lead { color: var(--soft); }
.g-facts span { border-radius: 2px; background: rgba(11,13,13,.45); border-color: var(--border); color: var(--soft); font-size: .8rem; }
.g-hero-art img { border-radius: 14px; box-shadow: 0 50px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.14); }
.g-feature { border-radius: var(--radius-sm); background: var(--panel); border-color: var(--border); }
.g-feature .f-ico { border-radius: 2px; background: transparent; color: var(--gold); border-color: rgba(215,183,121,.35); }
.step { border-radius: var(--radius-sm); background: var(--panel); }
.step::before { font-family: var(--font-accent); font-style: italic; font-weight: 400; color: var(--gold); }
.gal-filters button { font-family: var(--font-body); border-radius: 2px; background: transparent; }
.gal-filters button[aria-pressed="true"] { background: var(--gold); color: #111713; }
.gal-item { border-radius: var(--radius-sm); }
.lb-cap b { color: var(--gold); font-family: var(--font-body); }
.lb-btn, .lb-close { border-radius: 2px; }
.lb-stage img { border-radius: 8px; }
.concept-card.type-card b { color: var(--gold); font-family: var(--font-accent); font-style: italic; font-weight: 400; }

/* help, privacy, about */
.faq details { border-radius: var(--radius-sm); background: var(--panel); }
.faq details[open] { border-color: rgba(215,183,121,.4); background: #121715; }
.faq summary { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
.faq summary::after { color: var(--gold); }
.prose p, .prose li { color: var(--soft); }
.prose h2 { font-weight: 600; }
.updated { border-radius: 2px; }
.email-link { font-family: var(--font-display); color: var(--gold); }
.stat strong, .updates strong, .app-teaser-text strong { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
.principle .p-ico { border-radius: 2px; background: transparent; color: var(--gold); border-color: rgba(215,183,121,.35); }
.updates time { font-family: var(--font-body); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.updates a.more { font-family: var(--font-body); border-radius: 2px; font-size: .8rem; }
.updates a.more:hover { border-color: var(--gold); color: var(--gold); background: transparent; }
.error-code { font-family: var(--font-accent); font-style: italic; font-weight: 400; color: var(--gold); }
.game-art { background: radial-gradient(circle at 30% 20%, rgba(215,183,121,.12), transparent 60%), var(--bg-2); }

/* footer */
.site-footer { background: #0b0d0d; border-top: 1px solid var(--border); }
.footer-grid h4 { font-family: var(--font-body); font-size: .66rem; letter-spacing: .22em; color: var(--gold); font-weight: 600; }
.footer-grid ul a { color: var(--soft); font-size: .9rem; }
.footer-grid ul a:hover { color: var(--gold); }
.footer-about p { color: var(--muted); }
.footer-bottom { font-size: .8rem; }
.footer-bottom a { color: var(--soft); }

/* ==========================================================
   HOME (Dark Gold): hero, featured game, the pair, more games,
   apps, the studio, updates, contact
   ========================================================== */
.home main section { padding: 0; }
.h-wrap { width: min(var(--max), 100% - 10.8%); margin-inline: auto; }
.h-hero { position: relative; min-height: 640px; height: min(800px, calc(100svh - 80px)); overflow: hidden; display: flex; align-items: center; isolation: isolate; }
.h-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; z-index: -2; }
.h-hero-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6,9,8,.94) 0%, rgba(6,9,8,.78) 30%, rgba(6,9,8,.25) 62%, rgba(6,9,8,.15) 100%),
              radial-gradient(ellipse at 70% 45%, transparent 35%, rgba(6,9,8,.55) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 32%); }
.h-hero-content { position: relative; max-width: 720px; padding-bottom: 70px; }
.h-hero .eyebrow { margin-bottom: 1.6rem; }
.h-hero h1 { font-size: clamp(3.6rem, 7.2vw, 7rem); line-height: 1.01; letter-spacing: -.06em; margin: 0; }
.h-hero h1 em { letter-spacing: -.02em; }
.h-hero-copy { font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.35; letter-spacing: -.01em; margin: 1.6rem 0 1rem; color: var(--text); }
.h-hero-desc { font-size: .95rem; line-height: 1.8; color: #bdc3bd; max-width: 470px; margin: 0; }
.h-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.4rem; margin-top: 1.8rem; }
.h-actions .btn { gap: 2rem; }
.h-promise { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin: 1.5rem 0 0; font-size: .74rem; letter-spacing: .04em; color: #b6bbb4; }
.h-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); display: inline-block; flex: none; }
.h-hero-bottom { position: absolute; left: 0; right: 0; bottom: 26px; }
.h-hero-bottom .h-wrap { display: flex; align-items: center; gap: 2.4rem; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: #9ea7a0; }
.h-hero-bottom b { color: #e8e6dc; font-weight: 600; }
.h-hero-bottom a { letter-spacing: .04em; text-transform: none; font-size: .8rem; }
.h-label { margin-left: auto; letter-spacing: .04em; text-transform: none; font-size: .72rem; border: 1px solid rgba(255,255,255,.18); padding: .32rem .65rem; background: rgba(11,13,13,.66); color: #c3c8c1; display: inline-flex; align-items: center; gap: .5rem; }
.h-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.h-strip .h-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; }
.h-strip p { margin: 0; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
.h-strip p em { font-family: var(--font-accent); font-style: italic; color: var(--gold); font-size: 1.15rem; letter-spacing: 0; text-transform: none; margin-left: .5rem; }
.h-strip span { font-size: .82rem; color: var(--muted); }

.h-section { padding: 110px 0 !important; }
.h-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.8rem; }
.h-head h2 { font-size: clamp(2.1rem, 3.6vw, 3.3rem); margin: .4rem 0 0; }
.h-head > p { margin: 0; max-width: 380px; font-size: .92rem; line-height: 1.8; color: var(--muted); text-align: right; }
.h-genre { font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #bbc6bb; }

/* featured game */
.h-feature { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; border: 1px solid #3c4a3f;
  background: radial-gradient(ellipse at 72% 50%, rgba(32,55,43,.55), transparent 70%), #0f1612; overflow: hidden; }
.h-feature-copy { padding: 3rem 0 3rem 2.8rem; }
.h-feature-copy .eyebrow { margin-bottom: 2rem; }
.h-feature h3 { font-size: clamp(3rem, 5vw, 4.4rem); line-height: 1.02; letter-spacing: -.05em; font-weight: 600; margin: .8rem 0 1.4rem; }
.h-feature h3 em { font-size: 1.08em; }
.h-feature-copy > p { color: #b6c0b6; max-width: 360px; font-size: .95rem; }
.h-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.h-tags span { font-size: .7rem; border: 1px solid var(--border); padding: .28rem .6rem; color: #c1c8bd; }
.h-feature .h-actions { gap: 1rem 1.4rem; }
.h-text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .84rem; color: var(--text); border-bottom: 1px solid rgba(255,255,255,.25); padding: 0; }
.h-text-link:hover { color: var(--gold); border-color: var(--gold); }
.h-visual { padding: 2rem 2rem 1.4rem 2.2rem; }
.h-shot { display: block; position: relative; width: 100%; padding: 0; border: 0; background: transparent; overflow: hidden; cursor: zoom-in; }
.h-shot img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.h-shot:hover img { transform: scale(1.02); }
.h-visual .h-shot img { box-shadow: 0 18px 40px rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.14); }
.h-enlarge { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; display: grid; place-items: center; background: rgba(11,13,13,.75); border: 1px solid rgba(255,255,255,.35); color: #fff; font-size: .9rem; }
.h-cap { display: flex; align-items: center; gap: .6rem; margin-top: .9rem; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #b3beb2; }
.h-cap span:last-of-type { margin-left: auto; letter-spacing: .02em; text-transform: none; color: #92a390; font-size: .78rem; }
.h-more-shots { border: 0; background: transparent; color: #c1c9bf; font: inherit; font-size: .82rem; padding: .7rem 0; min-height: 44px; border-bottom: 1px solid rgba(255,255,255,.22); cursor: pointer; }
.h-more-shots:hover { color: var(--gold); border-color: var(--gold); }

/* the pair */
.h-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.h-world { border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--w1) 14%, transparent), transparent 65%), #111514; }
.h-world-top { display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.6rem; }
.h-world-top .eyebrow { margin: 0; font-size: .64rem; }
.h-world-top .eyebrow::before { display: none; }
.h-world[data-world="sudoku"] .h-world-top .eyebrow { color: #e7a08e; }
.h-world[data-world="kingside"] .h-world-top .eyebrow { color: #9fc3ea; }
.h-world figure { position: relative; margin: 0 1.5rem; }
.h-world figure img { aspect-ratio: 1.75; object-fit: cover; object-position: center 40%; }
.h-world figcaption { position: absolute; left: 12px; bottom: 10px; background: rgba(11,13,13,.8); padding: .2rem .5rem; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; pointer-events: none; color: #d6d9d2; }
.h-world .h-more-shots { margin: .3rem 1.5rem 0; align-self: flex-start; }
.h-world-copy { padding: 1.4rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.h-world h3 { font-size: clamp(1.6rem, 2.3vw, 2rem); letter-spacing: -.035em; font-weight: 550; margin: 0; display: flex; justify-content: space-between; gap: 1rem; }
.h-world h3 a { color: var(--text); }
.h-world h3 a:hover { color: var(--gold); }
.h-world h3 span { color: #7c8d7c; font-size: .7em; }
.h-world-copy > p { color: var(--muted); font-size: .93rem; line-height: 1.75; max-width: 460px; margin: .9rem 0 0; }
.h-world .h-actions { margin-top: auto; padding-top: 1.5rem; }

/* more games */
.h-library { border-top: 1px solid var(--border); margin-top: 4.5rem; padding-top: 2.4rem; }
.h-library-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.6rem; }
.h-library-head h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2vw, 1.75rem); letter-spacing: -.03em; margin: .5rem 0 0; }
.h-mini-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.h-mini { position: relative; display: flex; flex-direction: column; padding: 1.2rem; border: 1px solid var(--border); background: radial-gradient(100% 70% at 100% 0%, color-mix(in srgb, var(--w1) 12%, transparent), transparent 70%), #101413; transition: border-color .3s, transform .3s var(--ease); }
.h-mini:hover { border-color: rgba(215,183,121,.45); transform: translateY(-3px); }
.h-mini img { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.h-mini .h-genre { margin-top: 1.1rem; color: var(--gold); }
.h-mini h4 { font-size: 1.08rem; letter-spacing: -.02em; font-weight: 600; margin: .35rem 0 .4rem; line-height: 1.25; }
.h-mini h4 a { color: var(--text); }
.h-mini h4 a::after { content: ""; position: absolute; inset: 0; }
.h-mini p { font-size: .82rem; line-height: 1.6; color: var(--muted); margin: 0 0 1rem; }
.h-mini-actions { margin-top: auto; display: flex; gap: 1rem; align-items: center; font-size: .8rem; }
.h-mini-actions a { position: relative; z-index: 1; }
.h-mini-actions .h-play { color: var(--gold); font-weight: 600; }
.h-mini-actions .h-explore { color: var(--soft); }
.h-mini.is-new::before { content: "New"; position: absolute; top: 1.2rem; right: 1.2rem; font-size: .58rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; background: var(--gold); color: #111713; padding: .2rem .45rem; }

/* apps */
.h-apps { background: #101313; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.h-app-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); }
.h-app { padding: 2rem; border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.h-app:last-child { border-right: 0; }
.h-app-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 2rem; }
.h-app-top img { width: 60px; height: 60px; border-radius: 14px; }
.h-status { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #bac0ba; border: 1px solid var(--border); padding: .3rem .5rem; margin-top: .3rem; }
.h-status.live { color: #b7cfbb; border-color: rgba(121,153,127,.45); }
.h-app .eyebrow { font-size: .62rem; margin: 0; }
.h-app .eyebrow::before { display: none; }
.h-app h3 { font-size: 1.6rem; font-weight: 550; letter-spacing: -.03em; margin: .6rem 0 .9rem; }
.h-app > p:not(.eyebrow) { color: var(--muted); font-size: .9rem; line-height: 1.75; flex: 1; margin: 0 0 1.8rem; }
.h-app-primary { display: flex; justify-content: space-between; padding: 1rem 0; border-top: 1px solid var(--border); color: var(--text); font-size: .9rem; }
.h-app-primary span { color: var(--gold); }
.h-app-primary:hover { color: var(--gold); }
.h-app-detail { font-size: .8rem; color: var(--muted); min-height: 40px; display: inline-flex; align-items: center; align-self: flex-start; }
.h-app-detail:hover { color: var(--gold); }

/* the studio */
.h-studio-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; margin: 2rem 0 4rem; }
.h-studio-layout h2 { font-size: clamp(2.6rem, 4.4vw, 3.9rem); margin: 0; }
.h-studio-intro { font-size: 1.35rem; line-height: 1.5; letter-spacing: -.01em; margin: 0 0 1.2rem; }
.h-studio-layout p:not(.h-studio-intro) { color: var(--muted); font-size: .95rem; max-width: 460px; }
.h-promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.h-promises span { font-size: .7rem; color: var(--gold); letter-spacing: .1em; }
.h-promises h3 { font-size: 1.2rem; font-weight: 550; margin: .8rem 0 .6rem; }
.h-promises p { color: var(--muted); font-size: .9rem; max-width: 300px; margin: 0; }

/* updates */
.h-updates { border-top: 1px solid var(--border); }
.h-updates .updates li { grid-template-columns: 150px 1fr auto; }
.h-updates .updates strong { font-size: 1.05rem; font-weight: 600; letter-spacing: -.015em; }

/* contact */
.h-contact { text-align: center; padding: 95px 6% 105px !important; border-top: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 100%, rgba(35,52,40,.6), transparent 70%), #0e1310; }
.h-contact .eyebrow::before { display: none; }
.h-contact h2 { font-size: clamp(2.6rem, 5vw, 3.9rem); margin: 1.4rem 0 2rem; }
.h-contact .btn { gap: 4rem; }
.h-contact .h-text-link { display: table; margin: 1.3rem auto 0; color: var(--muted); font-size: .8rem; }
.home .site-footer { margin-top: 0; }

@media (max-width: 1100px) {
  .h-mini-grid { grid-template-columns: repeat(3, 1fr); }
  .h-feature { grid-template-columns: 1fr 1fr; }
  .h-feature-copy { padding-left: 1.8rem; }
  .h-app { padding: 1.5rem 1.3rem; }
  .h-app-top { flex-direction: column; }
  .h-studio-layout { gap: 2.5rem; }
}
@media (max-width: 860px) {
  .h-feature { grid-template-columns: 1fr; }
  .h-feature-copy { padding: 2rem 1.6rem .5rem; }
  .h-visual { padding: 1.6rem; }
  .h-duo { grid-template-columns: 1fr; }
  .h-app-grid { grid-template-columns: 1fr; }
  .h-app { border-right: 0; border-bottom: 1px solid var(--border); }
  .h-app:last-child { border-bottom: 0; }
  .h-app-top { flex-direction: row; }
  .h-studio-layout, .h-promises { grid-template-columns: 1fr; gap: 1.8rem; }
  .h-head { display: block; }
  .h-head > p { text-align: left; margin-top: 1.1rem; }
}
@media (max-width: 700px) {
  .h-wrap { width: calc(100% - 40px); }
  .h-hero { min-height: 700px; height: auto; align-items: flex-start; }
  .h-hero-img { object-position: 72% 50%; opacity: .9; }
  .h-hero-shade { background: linear-gradient(180deg, rgba(6,9,8,.92) 0%, rgba(6,9,8,.72) 55%, rgba(6,9,8,.45) 78%, var(--bg) 100%); }
  .h-hero-content { padding: 3.2rem 0 9rem; }
  .h-hero h1 { font-size: clamp(3.4rem, 17vw, 4.6rem); letter-spacing: -.055em; }
  .h-hero-bottom .h-wrap { flex-wrap: wrap; gap: .8rem 1.4rem; }
  .h-label { margin-left: 0; }
  .h-strip .h-wrap { display: block; }
  .h-strip span { display: block; margin-top: .5rem; }
  .h-section { padding: 70px 0 !important; }
  .h-mini-grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .h-mini { padding: 1rem; }
  .h-library-head { display: block; }
  .h-library-head .h-text-link { margin-top: .6rem; }
  .h-world-top { padding: 1.2rem 1.2rem; }
  .h-world figure { margin: 0 1.2rem; }
  .h-world .h-more-shots { margin-left: 1.2rem; }
  .h-world-copy { padding: 1.2rem 1.2rem 1.6rem; }
  .h-updates .updates li { grid-template-columns: 1fr; }
  .h-contact .btn { gap: 2rem; }
}
@media (max-width: 380px) { .h-mini-grid { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
.h-feature-copy .eyebrow { display: flex; }
.h-feature-copy .h-genre { display: block; }

/* one content width for every page: header, sections and footer line up */
.container { width: min(var(--max), 100% - 10.8%); }
@media (max-width: 700px) { .container { width: calc(100% - 40px); } }
.h-visual, .h-world figure { margin-top: 0; margin-bottom: 0; }
.h-visual { margin-left: 0; margin-right: 0; }
@media (max-width: 700px) {
  .h-hero .eyebrow { letter-spacing: .12em; font-size: .64rem; }
  .h-hero h1 { font-size: clamp(2.9rem, 13.4vw, 4.4rem); }
  .h-mini-grid > .h-mini:first-child { grid-column: span 2; }
  .h-cap { flex-wrap: wrap; }
}
@media (max-width: 380px) { .h-mini-grid > .h-mini:first-child { grid-column: auto; } }
.gradient-text { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

/* ==========================================================
   HOME: the studio intro film
   ========================================================== */
.h-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; z-index: -2; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.h-hero-video.ready { opacity: 1; }
.h-watch { display: inline-flex; align-items: center; gap: .7rem; background: none; border: 0; padding: .6rem 0; color: var(--text); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; letter-spacing: .02em; }
.h-watch:hover { color: var(--gold); }
.h-play-ico { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); display: grid; place-items: center; background: rgba(11,13,13,.4); transition: border-color .2s, background .2s; }
.h-play-ico::after { content: ""; width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.h-watch:hover .h-play-ico { border-color: var(--gold); background: rgba(215,183,121,.12); }
.intro { position: fixed; inset: 0; z-index: 200; background: #000; display: grid; place-items: center; animation: intro-in .4s ease both; }
.intro.out { animation: intro-out .6s ease both; pointer-events: none; }
.intro video { width: 100%; height: 100%; object-fit: contain; background: #000; }
@media (min-aspect-ratio: 16/9) and (max-aspect-ratio: 2/1) { .intro video { object-fit: cover; } }
.intro-skip, .intro-sound {
  position: absolute; bottom: max(28px, env(safe-area-inset-bottom)); font: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #e8e6dc; background: rgba(11,13,13,.55); border: 1px solid rgba(255,255,255,.3); padding: .7rem 1.1rem; cursor: pointer; backdrop-filter: blur(6px); min-height: 44px;
}
.intro-skip { right: max(28px, env(safe-area-inset-right)); }
.intro-sound { left: max(28px, env(safe-area-inset-left)); }
.intro-skip:hover, .intro-sound:hover, .intro-sound[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
body.intro-open { overflow: hidden; }
@keyframes intro-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes intro-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .h-hero-video { display: none; } }

/* Game pages: optional short intro line above the lead, and a titled price note */
.g-hero-copy .g-lead-intro{color:var(--text,#f2ede3);font-size:clamp(1.15rem,1.6vw,1.4rem);margin-bottom:.35rem}
.g-hero-copy .g-lead-intro + .lead{margin-top:0}
.g-section-title .g-price-title{display:block;color:var(--gold,#d7b779);font-weight:600;margin-bottom:.3rem}
.g-section-title .g-price-tagline{display:block;margin-top:.45rem;color:var(--text,#f2ede3);font-style:italic}


/* ===== Header: tabs beside the logo, and search (October 30, 2026) ===== */
.nav { justify-content: flex-start; gap: 2.6rem; }
.nav-links { flex: 1; }
.nav-links .nav-cta { margin-left: auto; }
.nav-search { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: #d4d5ce; cursor: pointer; transition: color .2s, background .2s; }
.nav-search:hover, .nav-search[aria-expanded="true"] { color: var(--gold); background: rgba(255,255,255,.05); }
.nav-search-m { display: none; }
.search-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 62; background: #0e1110; border-bottom: 1px solid var(--border); box-shadow: 0 30px 60px rgba(0,0,0,.5); padding: 2.2rem 0 2.6rem; animation: searchIn .22s ease; }
@keyframes searchIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.search-inner { max-width: 760px; }
.search-form { display: flex; align-items: center; gap: .9rem; color: var(--soft, #9a9a90); border-bottom: 1px solid var(--border); padding-bottom: .9rem; }
.search-form > svg { width: 24px; height: 24px; flex: none; }
.search-input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; letter-spacing: -.01em; padding: .2rem 0; }
.search-input::placeholder { color: #6f706a; }
.search-input::-webkit-search-cancel-button { display: none; }
.search-close { width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; background: rgba(255,255,255,.06); cursor: pointer; position: relative; }
.search-close::before, .search-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: #c9c9c1; }
.search-close::before { transform: translate(-50%,-50%) rotate(45deg); }
.search-close::after { transform: translate(-50%,-50%) rotate(-45deg); }
.search-close:hover { background: rgba(255,255,255,.12); }
.search-h { margin: 1.5rem 0 .5rem; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results a { display: flex; align-items: center; gap: .9rem; padding: .55rem .6rem; margin: 0 -.6rem; border-radius: 10px; color: var(--text); }
.search-results a:hover, .search-results a.on { background: rgba(255,255,255,.06); color: var(--text); }
.search-results a.on .sr-name { color: var(--gold); }
.search-results img, .search-results .sr-dot { width: 38px; height: 38px; border-radius: 9px; flex: none; object-fit: cover; }
.search-results .sr-dot { display: grid; place-items: center; background: rgba(255,255,255,.06); color: #a9aaa2; }
.sr-name { font-weight: 600; font-size: 1.02rem; }
.sr-meta { display: block; font-size: .8rem; color: #8f9089; margin-top: 1px; }
.search-none { color: #a9aaa2; padding: .6rem 0; font-size: .95rem; }
.site-header.search-open::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 100vh; z-index: 55; background: rgba(6,8,7,.55); }
body.search-open main, body.search-open .site-footer { filter: blur(8px); transition: filter .25s ease; }
@media (max-width: 820px) {
  .nav { gap: .4rem; }
  .nav-links .nav-search-li { display: none; }
  .nav-links .nav-cta a.btn { box-sizing: border-box; width: 100%; border-bottom: 1px solid #5f5948; text-align: center; }
  .nav-search-m { display: grid; margin-left: auto; width: 44px; height: 44px; }
  .nav-links .nav-cta { margin-left: 0; }
  .search-panel { padding: 1.2rem 0 1.6rem; max-height: calc(100vh - 80px); overflow: auto; }
  .search-input { font-size: 1.25rem; }
}
/* end header search */


/* ===== News ===== */
:root { --nr-teal: #6fd8c6; --nr-teal-dim: rgba(111,216,198,.14); }
/* Newsroom page */
.nr-top { padding-top: 24px; }
.nr-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.nr-head .eyebrow { margin-bottom: .2rem; }
.nr-head h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.02em; }
.nr-live { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-family: var(--font-display); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.nr-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.nr-live.on { color: var(--nr-teal); border-color: rgba(111,216,198,.35); background: var(--nr-teal-dim); }
.nr-live.on i { background: var(--nr-teal); box-shadow: 0 0 0 3px rgba(111,216,198,.25); }
.news-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 0 0 1rem; }
.news-tab { padding: .95rem 1rem; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 1rem; cursor: pointer; transition: border-color .25s, color .25s, background .25s; }
.news-tab:hover { border-color: rgba(255,255,255,.3); background: var(--surface-2); }
.news-tab.on { background: linear-gradient(180deg, rgba(111,216,198,.28), rgba(111,216,198,.14)); border-color: rgba(111,216,198,.45); color: #fff; }
.nr-hero { display: block; position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 8.2; background: radial-gradient(120% 90% at 20% 10%, #15303a, #0b1216 60%); border: 1px solid var(--border); }
.nr-hero img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.nr-hero:hover img { transform: scale(1.025); }
.nr-hero.nopic img { display: none; }
.nr-hero.nopic { aspect-ratio: 16 / 5; }
.nr-hero.nopic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(111,216,198,.22), transparent 50%), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fd8c6' stroke-opacity='.25' stroke-width='.6'><circle cx='12' cy='12' r='9'/><path d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/></svg>") right -8% bottom -30% / 55% no-repeat; }
.nr-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45)); pointer-events: none; }
.nr-pill { position: absolute; left: 16px; bottom: 16px; padding: .4rem .9rem; border-radius: 999px; background: rgba(20,24,28,.72); backdrop-filter: blur(6px); color: #fff; font-size: .9rem; font-weight: 500; z-index: 1; }
.nr-pill:empty { display: none; }
.nr-feat { padding: 1.2rem 0 1.4rem; border-bottom: 1px solid var(--border); margin-bottom: .4rem; }
.nr-kicker { margin: 0 0 .4rem; color: var(--nr-teal); font-family: var(--font-display); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nr-feat h2 { margin: 0 0 .45rem; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.2; letter-spacing: -.015em; text-wrap: pretty; }
.nr-feat h2 a { color: var(--text); } .nr-feat h2 a:hover { color: var(--nr-teal); }
.nr-feat p#news-hero-sum { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.55; }
.nr-hero-meta { display: inline-block; margin-left: .4rem; color: var(--nr-teal); font-size: .85rem; font-family: var(--font-display); font-weight: 600; }
.news-status { color: var(--muted); font-size: .88rem; margin: .6rem 0 .4rem; min-height: 1.4em; }
.nr-rows { list-style: none; margin: 0; padding: 0; }
.nr-row { border-bottom: 1px solid var(--border); }
.nr-row-link { display: grid; grid-template-columns: 84px 1fr 24px; gap: 1.1rem; align-items: center; padding: 1.05rem 0; color: var(--text); transition: background .25s; border-radius: 12px; }
.nr-row-link:hover { color: var(--text); background: rgba(255,255,255,.025); }
.nr-row-link:hover .nr-title { color: var(--nr-teal); }
.nr-ic { width: 84px; height: 84px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--nr-teal); overflow: hidden; flex: none; }
.nr-ic svg { width: 34px; height: 34px; }
.nr-ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nr-row-body { min-width: 0; }
.nr-meta { display: flex; gap: .7rem; align-items: baseline; font-size: .74rem; color: var(--muted); margin-bottom: .25rem; }
.nr-src { font-family: var(--font-display); font-weight: 700; color: var(--nr-teal); letter-spacing: .1em; text-transform: uppercase; }
.nr-title { margin: 0; font-size: 1.12rem; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; text-wrap: pretty; transition: color .25s; }
.nr-sum { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nr-chev { color: var(--muted); font-size: 1.6rem; line-height: 1; text-align: center; }
.news-sources { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.news-sources p { margin: 0 0 .5rem; }
.news-sources a { display: inline-block; margin: 0 .9rem .4rem 0; color: var(--muted); border-bottom: 1px solid var(--border); }
.news-sources a:hover { color: var(--text); }
.news-note { color: var(--muted); font-size: .85rem; margin-top: 1.2rem; }
@media (max-width: 720px) {
  .nr-head { align-items: flex-start; flex-direction: column; gap: .6rem; }
  .news-tabs { gap: .45rem; } .news-tab { padding: .8rem .5rem; font-size: .92rem; border-radius: 12px; }
  .nr-hero { aspect-ratio: 4 / 3; border-radius: 18px; }
  .nr-row-link { grid-template-columns: 64px 1fr 18px; gap: .8rem; padding: .9rem 0; }
  .nr-ic { width: 64px; height: 64px; border-radius: 12px; } .nr-ic svg { width: 28px; height: 28px; }
  .nr-title { font-size: 1rem; } .nr-sum { display: none; }
}
/* home page strip: compact cards */
.news-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.news-item { border: 1px solid var(--border); background: var(--surface); border-radius: 18px; overflow: hidden; transition: border-color .3s, transform .3s var(--ease), background .3s; }
.news-item:hover { border-color: rgba(111,216,198,.45); transform: translateY(-3px); background: var(--surface-2); }
.news-link { display: flex; flex-direction: column; color: var(--text); height: 100%; }
.news-link:hover { color: var(--text); }
.news-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .45rem; }
.news-meta { display: flex; gap: .7rem; align-items: baseline; font-size: .78rem; color: var(--muted); }
.news-src { font-family: var(--font-display); font-weight: 600; color: var(--nr-teal); letter-spacing: .02em; }
.news-title { margin: 0; font-size: 1.05rem; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; text-wrap: pretty; }
.h-news { border-top: 1px solid var(--border); }
.h-news .news-list { grid-template-columns: repeat(4, 1fr); }
.h-news .news-item { border-radius: 14px; }
.h-news .news-title { font-size: .98rem; }
.h-news[hidden] { display: none; }
@media (max-width: 900px) { .h-news .news-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .h-news .news-list { grid-template-columns: 1fr; } }
/* publisher links (plain links to home pages) */
.news-links { margin-top: 2rem; padding: 1.4rem 1.5rem 1.2rem; border-radius: 20px; border: 1px solid var(--border); background: radial-gradient(120% 140% at 0% 0%, rgba(111,216,198,.08), var(--surface) 60%); }
.news-links[hidden] { display: none; }
.nl-title { margin: 0 0 .3rem; font-size: 1.25rem; letter-spacing: -.01em; }
.nl-note { margin: 0 0 1.1rem; color: var(--muted); font-size: .9rem; }
.nl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.2rem 1.6rem; }
.nl-group h3 { margin: 0 0 .5rem; font-family: var(--font-display); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--nr-teal); }
.nl-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.nl-group li { display: flex; flex-direction: column; }
.nl-group a { color: var(--text); font-weight: 600; font-size: .98rem; }
.nl-group a::after { content: ' \2197'; color: var(--muted); font-size: .8em; }
.nl-group a:hover { color: var(--nr-teal); }
.nl-group span { color: var(--muted); font-size: .76rem; }

/* ===== Movies ===== */
:root { --mv-red: #e0443e; }
#movies-page { padding-bottom: 60px; }
#movies-page > section:not(.mv-hero) { padding: 14px 0 0; }
#movies-page .mv-row { padding: 0; }
.mv-hero { position: relative; min-height: min(72vh, 640px); background-size: cover; background-position: center 30%; display: flex; align-items: flex-end; }
.mv-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,8,13,.92) 0%, rgba(7,8,13,.6) 45%, rgba(7,8,13,.15) 100%), linear-gradient(180deg, rgba(7,8,13,.35) 0%, transparent 35%, rgba(7,8,13,1) 100%); }
.mv-hero .container { position: relative; padding-bottom: 48px; }
.mv-hero-kicker { font-family: var(--font-display); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--w1, #d7b779); margin: 0 0 .6rem; }
.mv-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 .9rem; max-width: 14ch; text-wrap: balance; }
.mv-hero p { max-width: 56ch; color: rgba(255,255,255,.86); font-size: 1.05rem; line-height: 1.55; margin: 0 0 1.4rem; }
.mv-btns { display: flex; gap: .7rem; flex-wrap: wrap; }
.mv-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.5rem; border-radius: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; cursor: pointer; border: 1px solid transparent; transition: transform .2s var(--ease), background .2s; }
.mv-btn:hover { transform: translateY(-1px); }
.mv-btn.play { background: #fff; color: #0b0d0d; }
.mv-btn.play::before { content: '\25B6'; font-size: .85em; }
.mv-btn.ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.2); backdrop-filter: blur(6px); }
.mv-btn.ghost:hover { background: rgba(255,255,255,.22); }
.mv-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 8px 0 4px; }
.mv-total { color: var(--muted); font-size: .9rem; }
.mv-search { padding: .6rem .9rem .6rem 2.2rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9aeaa' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>") .8rem center / 16px no-repeat; color: var(--text); font: inherit; font-size: .95rem; width: min(280px, 60vw); }
.mv-search:focus { outline: none; border-color: rgba(255,255,255,.4); }
.mv-row { margin: 26px 0 0; }
.mv-row-head { display: flex; align-items: baseline; gap: .8rem; margin: 0 0 .7rem; }
.mv-row-head h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.01em; }
.mv-count { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.mv-track-wrap { position: relative; }
.mv-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 10px; }
.mv-track::-webkit-scrollbar { display: none; }
.mv-card { position: relative; flex: 0 0 clamp(170px, 18vw, 260px); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); scroll-snap-align: start; color: #fff; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.mv-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.mv-card:hover, .mv-card:focus-visible { transform: scale(1.05); border-color: rgba(255,255,255,.35); box-shadow: 0 14px 40px rgba(0,0,0,.5); z-index: 2; color: #fff; }
.mv-card:hover img { transform: scale(1.06); }
.mv-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .8rem .6rem; background: linear-gradient(180deg, transparent, rgba(0,0,0,.85)); display: flex; flex-direction: column; gap: .1rem; }
.mv-cap strong { font-size: .95rem; line-height: 1.2; letter-spacing: -.01em; }
.mv-cap span { font-size: .72rem; color: rgba(255,255,255,.75); }
.mv-card.noimg { background: radial-gradient(120% 90% at 20% 10%, #2a2420, #0b1216 70%); }
.mv-seen { position: absolute; top: 8px; left: 8px; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-family: var(--font-display); font-weight: 700; }
.mv-arrow { position: absolute; top: 0; bottom: 10px; width: 44px; border: 0; background: linear-gradient(90deg, rgba(7,8,13,.95), transparent); color: #fff; font-size: 2.2rem; cursor: pointer; opacity: 0; transition: opacity .25s; }
.mv-arrow.l { left: -2px; } .mv-arrow.r { right: -2px; background: linear-gradient(270deg, rgba(7,8,13,.95), transparent); }
.mv-track-wrap:hover .mv-arrow { opacity: 1; }
.mv-empty { color: var(--muted); }
/* details / player */
.mv-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.78); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 18px; }
.mv-modal[hidden] { display: none; }
.mv-dialog { width: min(1040px, 100%); max-height: 94vh; overflow: auto; background: #101216; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 30px 90px rgba(0,0,0,.7); }
.mv-screen { position: relative; aspect-ratio: 16 / 9; background: #000; }
.mv-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mv-cover { position: absolute; inset: 0; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.mv-cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.6)); }
.mv-cover .mv-btn { position: relative; font-size: 1.1rem; padding: 1rem 2rem; }
.mv-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 1.4rem; cursor: pointer; }
.mv-body { padding: 1.4rem 1.6rem 1.6rem; }
.mv-body h2 { margin: 0 0 .3rem; font-size: 1.7rem; letter-spacing: -.015em; }
.mv-meta { color: var(--muted); font-size: .9rem; margin: 0 0 .9rem; }
.mv-sum { margin: 0 0 1.1rem; font-size: 1.02rem; line-height: 1.55; color: rgba(255,255,255,.9); }
.mv-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.mv-lic { color: var(--muted); font-size: .84rem; line-height: 1.5; border-top: 1px solid var(--border); padding-top: .9rem; margin: 0; }
.mv-lic strong { color: var(--text); font-weight: 600; }
.mv-lic a { color: var(--w1, #d7b779); }
body.mv-open { overflow: hidden; }
.mv-about { margin-top: 44px; padding-top: 1.4rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; line-height: 1.55; max-width: 76ch; }
.mv-about a { color: var(--text); border-bottom: 1px solid var(--border); }
@media (max-width: 720px) {
  .mv-hero { min-height: 62vh; } .mv-hero .container { padding-bottom: 28px; }
  .mv-bar { flex-direction: column; align-items: stretch; } .mv-search { width: 100%; }
  .mv-card { flex-basis: 150px; } .mv-arrow { display: none; }
  .mv-modal { padding: 0; align-items: flex-end; } .mv-dialog { border-radius: 18px 18px 0 0; max-height: 96vh; }
  .mv-body { padding: 1.1rem 1.1rem 1.4rem; }
}


/* ===== Music ===== */
:root { --mu-a: #e8c46e; --mu-b: #c89b4a; }
#music-page { padding-bottom: 40px; }
#music-page > section, #music-page .mu-sec { padding: 0; }
body.mu-playing #music-page { padding-bottom: 120px; }
.mu-kicker { font-family: var(--font-display); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mu-a); margin: 0 0 .7rem; }
.mu-hero { position: relative; overflow: hidden; padding: 72px 0 64px; background: #07080d; }
.mu-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.mu-hero-bg span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.mu-hero-bg span:nth-child(1) { width: 52vw; height: 52vw; right: -12vw; top: -22vw; background: radial-gradient(circle, #6a4f1e, transparent 65%); }
.mu-hero-bg span:nth-child(2) { width: 40vw; height: 40vw; right: 18vw; bottom: -24vw; background: radial-gradient(circle, #b8893a, transparent 65%); opacity: .28; }
.mu-hero-bg span:nth-child(3) { width: 34vw; height: 34vw; left: -14vw; bottom: -18vw; background: radial-gradient(circle, #1f4a4a, transparent 65%); opacity: .4; }
.mu-hero-grid { position: relative; display: grid; grid-template-columns: 1.3fr .9fr; gap: 2.5rem; align-items: center; }
.mu-hero h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); line-height: 1.02; letter-spacing: -.025em; margin: 0 0 1rem; }
.mu-lead { max-width: 52ch; color: rgba(255,255,255,.84); font-size: 1.05rem; line-height: 1.55; margin: 0 0 1.5rem; }
.mu-btns { display: flex; gap: .7rem; flex-wrap: wrap; }
.mu-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.5rem; border-radius: 999px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; cursor: pointer; border: 1px solid transparent; transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
.mu-btn:hover { transform: translateY(-1px); }
.mu-btn.play { background: linear-gradient(90deg, var(--mu-a), var(--mu-b)); color: #0b0d0d; box-shadow: 0 10px 30px rgba(232,196,110,.25); }
.mu-btn.play::before { content: '\25B6'; font-size: .8em; }
.mu-btn.ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); backdrop-filter: blur(6px); }
/* now-playing card */
.mu-card { position: relative; background: rgba(16,18,26,.72); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 1.2rem 1.3rem 1.3rem; backdrop-filter: blur(14px); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.mu-card-k { margin: 0 0 .8rem; font-family: var(--font-display); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.mu-card-row { display: flex; gap: .9rem; align-items: center; }
.mu-card-row div { display: flex; flex-direction: column; min-width: 0; }
.mu-card-title { font-size: 1.1rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-card-artist { color: var(--muted); font-size: .88rem; }
.mu-card-eq { display: flex; gap: 4px; align-items: flex-end; height: 26px; margin: 1.1rem 0 0; }
.mu-card-eq i { width: 5px; height: 6px; border-radius: 3px; background: linear-gradient(180deg, var(--mu-a), var(--mu-b)); opacity: .5; }
.mu-card.on .mu-card-eq i { animation: mu-eq 1s ease-in-out infinite; opacity: 1; }
.mu-card.on .mu-card-eq i:nth-child(2) { animation-delay: .15s; } .mu-card.on .mu-card-eq i:nth-child(3) { animation-delay: .3s; } .mu-card.on .mu-card-eq i:nth-child(4) { animation-delay: .45s; } .mu-card.on .mu-card-eq i:nth-child(5) { animation-delay: .6s; }
@keyframes mu-eq { 0%, 100% { height: 6px; } 50% { height: 26px; } }
.mu-card-play { position: absolute; right: 1.2rem; bottom: 1.1rem; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; }
.mu-card-play::before { content: '\25B6'; color: #0b0d0d; font-size: 1rem; margin-left: 3px; }
.mu-card.on .mu-card-play::before { content: '\2016'; margin-left: 0; font-weight: 900; }
/* artwork tiles */
.mu-art { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; flex: none; background: linear-gradient(135deg, hsl(var(--h) 45% 50%), hsl(var(--h2) 45% 30%)); color: rgba(255,255,255,.9); font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; position: relative; overflow: hidden; }
.mu-art::before { content: attr(data-ini); }
.mu-art::after { content: ''; position: absolute; inset: auto -30% -40% auto; width: 90%; height: 90%; border-radius: 50%; background: rgba(255,255,255,.18); }
.mu-art.sm { width: 44px; height: 44px; border-radius: 10px; font-size: .95rem; }
/* bar + chips */
.mu-body .container { padding-top: 22px; }
.mu-bar { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.mu-chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 18px 0 2px; }
.mu-chips::-webkit-scrollbar { display: none; }
.mu-chip { flex: 0 1 auto; padding: .5rem 1rem; white-space: nowrap; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: .88rem; cursor: pointer; transition: background .2s, border-color .2s; }
.mu-chip:hover { border-color: rgba(255,255,255,.3); }
.mu-chip.on { background: linear-gradient(90deg, var(--mu-a), var(--mu-b)); color: #0b0d0d; border-color: transparent; }
.mu-search { flex: none; padding: .6rem .9rem .6rem 2.2rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9aeaa' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>") .8rem center / 16px no-repeat; color: var(--text); font: inherit; font-size: .95rem; width: min(240px, 50vw); }
.mu-search:focus { outline: none; border-color: rgba(255,255,255,.4); }
.mu-search[hidden] { display: none; }
.mu-mode { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.mu-mode-btn { padding: .55rem 1.3rem; border-radius: 999px; border: 0; background: none; color: var(--muted); font-family: var(--font-display); font-weight: 700; font-size: .95rem; cursor: pointer; transition: background .2s, color .2s; }
.mu-mode-btn:hover { color: var(--text); }
.mu-mode-btn.on { background: linear-gradient(90deg, var(--mu-a), var(--mu-b)); color: #0b0d0d; }
#mu-library[hidden], #mu-radio[hidden] { display: none; }
/* radio */
.mu-radio-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.6rem; align-items: end; margin-top: 22px; padding: 1.4rem; border-radius: 20px; border: 1px solid var(--border); background: radial-gradient(120% 140% at 0% 0%, rgba(232,196,110,.12), var(--surface) 60%); }
.mu-radio-head h2 { margin: 0 0 .4rem; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.015em; }
.mu-radio-head .mu-desc { margin: 0; }
.mu-radio-ctl { display: grid; gap: .7rem; }
.mu-field { display: flex; flex-direction: column; gap: .3rem; font-size: .78rem; color: var(--muted); font-family: var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.mu-field select, .mu-field input { padding: .7rem .9rem; border-radius: 12px; border: 1px solid var(--border); background: #0f1114; color: var(--text); font: inherit; font-size: .98rem; letter-spacing: 0; text-transform: none; }
.mu-field select:focus, .mu-field input:focus { outline: none; border-color: rgba(232,196,110,.5); }
.mu-empty { color: var(--muted); padding: 1rem 0; }
.mu-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 12px; }
.mu-pick { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: 16px; border: 1px solid rgba(232,196,110,.28); background: linear-gradient(135deg, rgba(232,196,110,.1), var(--surface) 65%); }
.mu-pick-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mu-pick-text strong { font-size: 1.05rem; letter-spacing: -.01em; white-space: nowrap; }
.mu-pick-text span { color: var(--muted); font-size: .82rem; }
.mu-pick-acts { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: flex-end; }
.mu-btn.sm { padding: .5rem .95rem; font-size: .85rem; }
a.mu-btn.ghost { color: #fff; }
.mu-row-dur.mu-live-dot, .mu-live-dot { color: #ff6b5e; font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .1em; }
.mu-live { display: inline-flex; align-items: center; gap: .45rem; color: #ff6b5e; font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.mu-live[hidden] { display: none; }
.mu-live i { width: 8px; height: 8px; border-radius: 50%; background: #ff6b5e; animation: mu-pulse 1.4s ease-in-out infinite; }
@keyframes mu-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.mu-player.live .mu-seek { display: none; }
.mu-player.live #mu-shuffle, .mu-player.live #mu-repeat { visibility: hidden; }
.mu-total { color: var(--muted); font-size: .88rem; margin: .8rem 0 0; }
.mu-sec { margin-top: 30px; }
.mu-sec[hidden], .mu-player[hidden] { display: none !important; }
.mu-sec-head { display: flex; align-items: baseline; gap: .8rem; margin-bottom: .8rem; }
.mu-sec-head h2, #mu-results h2 { margin: 0; font-size: 1.3rem; letter-spacing: -.01em; }
.mu-sec-head span { color: var(--muted); font-size: .82rem; }
/* playlist cards */
.mu-pls { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.mu-pl { position: relative; display: block; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.mu-pl:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.3); box-shadow: 0 16px 40px rgba(0,0,0,.45); color: var(--text); }
.mu-pl-cover { display: grid; place-items: center; aspect-ratio: 1 / 1; background: radial-gradient(120% 100% at 15% 10%, hsl(var(--h) 45% 48%), hsl(var(--h2) 40% 16%) 75%); position: relative; }
.mu-pl-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45)); }
.mu-pl-cover.big { width: 160px; border-radius: 16px; flex: none; }
.mu-pl-ico { font-size: 3rem; color: rgba(255,255,255,.92); text-shadow: 0 6px 24px rgba(0,0,0,.4); position: relative; z-index: 1; }
.mu-pl-cover.big .mu-pl-ico { font-size: 4rem; }
.mu-pl-cap { display: flex; flex-direction: column; gap: .15rem; padding: .8rem .9rem .95rem; }
.mu-pl-cap strong { font-size: 1rem; letter-spacing: -.01em; }
.mu-pl-cap span { color: var(--muted); font-size: .78rem; }
.mu-pl-play { position: absolute; right: 12px; top: calc(100% - 92px); width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.4); cursor: pointer; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.mu-pl-play::before { content: '\25B6'; color: #0b0d0d; margin-left: 3px; }
.mu-pl:hover .mu-pl-play, .mu-pl-play:focus-visible { opacity: 1; transform: none; }
/* playlist view */
.mu-view-head { display: flex; gap: 1.4rem; align-items: flex-end; padding: 1.4rem; border-radius: 20px; background: linear-gradient(135deg, hsl(var(--h) 40% 18%), var(--surface) 70%); border: 1px solid var(--border); margin-bottom: 1rem; }
.mu-view-head h2 { margin: 0 0 .4rem; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.02em; }
.mu-desc { margin: 0 0 1rem; color: var(--muted); max-width: 60ch; }
/* track list */
.mu-list { list-style: none; margin: 0; padding: 0; }
.mu-row { display: flex; align-items: center; gap: .3rem; border-bottom: 1px solid var(--border); }
.mu-row-main { flex: 1; display: grid; grid-template-columns: 44px 1fr auto auto; gap: .9rem; align-items: center; padding: .6rem .4rem; background: none; border: 0; color: var(--text); text-align: left; font: inherit; cursor: pointer; border-radius: 10px; min-width: 0; }
.mu-row-main:hover { background: rgba(255,255,255,.03); }
.mu-row.on .mu-row-main { background: rgba(232,196,110,.08); }
.mu-row.on .mu-row-text strong { color: var(--mu-a); }
.mu-row-text { display: flex; flex-direction: column; min-width: 0; }
.mu-row-text strong { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-row-text span { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-row-lic { color: var(--muted); font-size: .72rem; font-family: var(--font-display); letter-spacing: .06em; padding: .2rem .5rem; border: 1px solid var(--border); border-radius: 999px; white-space: nowrap; }
.mu-row-dur { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.mu-heart { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; flex: none; }
.mu-heart::before { content: '\2661'; }
.mu-heart.on { color: var(--mu-b); } .mu-heart.on::before { content: '\2665'; }
.mu-about { margin-top: 44px; padding-top: 1.4rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; line-height: 1.55; max-width: 76ch; }
.mu-about a { color: var(--text); border-bottom: 1px solid var(--border); }
/* persistent player */
.mu-player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: rgba(12,13,18,.92); backdrop-filter: blur(16px); border-top: 1px solid rgba(255,255,255,.12); padding: .6rem 0; }
.mu-player[hidden] { display: none; }
.mu-player-grid { display: grid; grid-template-columns: 1fr 1.4fr 160px; gap: 1.2rem; align-items: center; }
.mu-np { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.mu-np-art .mu-art { width: 50px; height: 50px; }
.mu-np-text { display: flex; flex-direction: column; min-width: 0; }
.mu-np-text strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-np-text span { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-np-text small { font-size: .7rem; } .mu-np-text small a { color: var(--mu-a); }
.mu-ctl { display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.mu-ctl-btns { display: flex; align-items: center; gap: .6rem; }
.mu-ib { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: rgba(255,255,255,.8); font-size: 1.05rem; cursor: pointer; }
.mu-ib:hover { color: #fff; background: rgba(255,255,255,.08); }
.mu-ib.on { color: var(--mu-a); }
.mu-pp { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center; }
.mu-pp::before { content: '\25B6'; color: #0b0d0d; margin-left: 3px; font-size: .95rem; }
.mu-pp.on::before { content: '\2016'; margin-left: 0; font-weight: 900; }
.mu-seek { display: flex; align-items: center; gap: .6rem; width: 100%; max-width: 560px; color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.mu-seek input, .mu-vol input { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; background: rgba(255,255,255,.18); outline: none; }
.mu-seek input::-webkit-slider-thumb, .mu-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.mu-seek input::-moz-range-thumb, .mu-vol input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.mu-vol { display: flex; align-items: center; gap: .5rem; color: var(--muted); }
@media (max-width: 860px) {
  .mu-hero { padding: 48px 0 40px; } .mu-hero-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .mu-bar { flex-direction: column; align-items: stretch; } .mu-search { width: 100%; } .mu-mode { align-self: flex-start; }
  .mu-chips { gap: .4rem; padding-top: 14px; } .mu-chip { padding: .45rem .8rem; font-size: .82rem; }
  .mu-radio-head { grid-template-columns: 1fr; gap: 1rem; padding: 1.1rem; }
  .mu-picks { grid-template-columns: 1fr; } .mu-pick { flex-wrap: wrap; } .mu-pick-acts { width: 100%; justify-content: flex-start; }
  .mu-pls { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .mu-row-main { grid-template-columns: 44px 1fr auto; } .mu-row-lic { display: none; }
  .mu-view-head { flex-direction: column; align-items: flex-start; } .mu-pl-cover.big { width: 120px; }
  .mu-player-grid { grid-template-columns: 1fr auto; } .mu-vol { display: none; } .mu-seek { display: none; } .mu-ctl-btns .mu-ib:first-child, .mu-ctl-btns .mu-ib:last-child { display: none; } .mu-np-text small { display: none; }
  body.mu-playing #music-page { padding-bottom: 96px; }
}


/* ===== Read ===== */
#read-page { padding-bottom: 60px; }
#read-page > section, #read-page .rd-row, #read-page #rd-results { padding: 0; }
.rd-kicker { font-family: var(--font-display); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--w1, #d7b779); margin: 0 0 .7rem; }
.rd-hero { position: relative; overflow: hidden; padding: 84px 0 60px; background: radial-gradient(70% 90% at 85% 10%, rgba(215,183,121,.16), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(31,74,74,.35), transparent 60%), #07080d; }
.rd-hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 3rem; align-items: center; }
.rd-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.03; letter-spacing: -.025em; margin: 0 0 1rem; }
.rd-lead { max-width: 56ch; color: rgba(255,255,255,.84); font-size: 1.05rem; line-height: 1.55; margin: 0 0 1.3rem; }
.rd-feature { display: flex; flex-direction: column; gap: .2rem; margin: 0 0 1.4rem; padding-left: 1rem; border-left: 2px solid var(--w1, #d7b779); max-width: 56ch; }
.rd-feature-k { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-family: var(--font-display); }
.rd-feature strong { font-size: 1.25rem; letter-spacing: -.01em; }
.rd-feature span:last-child { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.rd-btns { display: flex; gap: .7rem; flex-wrap: wrap; }
.rd-btn { display: inline-flex; align-items: center; padding: .8rem 1.5rem; border-radius: 999px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; cursor: pointer; border: 1px solid transparent; transition: transform .2s var(--ease), background .2s; }
.rd-btn:hover { transform: translateY(-1px); }
.rd-btn.primary { background: linear-gradient(90deg, #e8c46e, #c89b4a); color: #0b0d0d; }
.rd-btn.ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.rd-btn.primary:hover { color: #0b0d0d; } .rd-btn.ghost:hover { color: #fff; }
.rd-hero-cover { display: flex; justify-content: center; }
.rd-hero-cover .rd-cover { width: min(260px, 100%); transform: rotate(-3deg); box-shadow: 0 40px 80px rgba(0,0,0,.6); }
/* typographic covers */
.rd-cover { position: relative; aspect-ratio: 2 / 3; border-radius: 6px 12px 12px 6px; background: linear-gradient(160deg, color-mix(in srgb, var(--bg) 85%, #fff 15%), var(--bg) 55%); color: var(--fg); display: flex; flex-direction: column; justify-content: space-between; padding: 14% 12% 12% 16%; overflow: hidden; box-shadow: inset 6px 0 0 rgba(0,0,0,.25), inset 8px 0 0 rgba(255,255,255,.06); }
.rd-cover::before { content: ''; position: absolute; inset: 8% 8% 8% 12%; border: 1px solid color-mix(in srgb, var(--fg) 45%, transparent); border-radius: 3px; pointer-events: none; }
.rd-cover-top { font-family: var(--font-display); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; opacity: .8; position: relative; }
.rd-cover-title { font-family: var(--font-accent, Georgia, serif); font-weight: 600; font-size: clamp(.95rem, 1.6vw, 1.25rem); line-height: 1.15; position: relative; text-wrap: balance; }
.rd-cover-author { font-size: .7rem; letter-spacing: .06em; opacity: .85; position: relative; }
.rd-cover.big .rd-cover-title { font-size: 1.6rem; } .rd-cover.big .rd-cover-top { font-size: .72rem; } .rd-cover.big .rd-cover-author { font-size: .85rem; }
.rd-cover.mag { border-radius: 4px; padding: 10% 10%; } .rd-cover.mag::before { inset: 5%; border-width: 2px; }
/* bar + rows */
.rd-body .container { padding-top: 26px; }
.rd-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rd-total { color: var(--muted); font-size: .9rem; }
.rd-search { padding: .6rem .9rem .6rem 2.2rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9aeaa' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>") .8rem center / 16px no-repeat; color: var(--text); font: inherit; font-size: .95rem; width: min(280px, 60vw); }
.rd-search:focus { outline: none; border-color: rgba(255,255,255,.4); }
#rd-results[hidden] { display: none; }
.rd-row { margin-top: 30px; }
.rd-row-head { display: flex; align-items: baseline; gap: .8rem; margin-bottom: .8rem; }
.rd-row-head h2 { margin: 0; font-size: 1.3rem; letter-spacing: -.01em; }
.rd-count { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.rd-track-wrap { position: relative; }
.rd-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 10px; }
.rd-track::-webkit-scrollbar { display: none; }
.rd-card { flex: 0 0 clamp(128px, 13vw, 168px); width: clamp(128px, 13vw, 168px); min-width: 0; scroll-snap-align: start; color: var(--text); display: flex; flex-direction: column; gap: .55rem; transition: transform .25s var(--ease); }
.rd-card:hover, .rd-card:focus-visible { transform: translateY(-4px); color: var(--text); }
.rd-card:hover .rd-cover { box-shadow: inset 6px 0 0 rgba(0,0,0,.25), 0 18px 40px rgba(0,0,0,.5); }
.rd-cap { display: flex; flex-direction: column; gap: .1rem; }
.rd-cap strong { font-size: .9rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rd-cap span { color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-arrow { position: absolute; top: 0; bottom: 70px; width: 44px; border: 0; background: linear-gradient(90deg, rgba(7,8,13,.95), transparent); color: #fff; font-size: 2.2rem; cursor: pointer; opacity: 0; transition: opacity .25s; }
.rd-arrow.l { left: -2px; } .rd-arrow.r { right: -2px; background: linear-gradient(270deg, rgba(7,8,13,.95), transparent); }
.rd-track-wrap:hover .rd-arrow { opacity: 1; }
.rd-empty { color: var(--muted); }
.rd-about { margin-top: 44px; padding-top: 1.4rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; line-height: 1.55; max-width: 76ch; }
.rd-about a { color: var(--text); border-bottom: 1px solid var(--border); }
/* details */
.rd-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.78); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 18px; }
.rd-modal[hidden] { display: none; }
.rd-dialog { position: relative; width: min(820px, 100%); max-height: 94vh; overflow: auto; background: #101216; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 30px 90px rgba(0,0,0,.7); display: grid; grid-template-columns: 220px 1fr; gap: 1.8rem; padding: 1.8rem; }
.rd-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; font-size: 1.4rem; cursor: pointer; }
.rd-m-body h2 { margin: 0 0 .35rem; font-size: 1.8rem; letter-spacing: -.015em; line-height: 1.15; }
.rd-m-meta { color: var(--muted); margin: 0 0 1rem; }
.rd-m-sum { margin: 0 0 1.3rem; font-size: 1.02rem; line-height: 1.55; color: rgba(255,255,255,.9); }
.rd-m-hint { color: var(--muted); font-size: .84rem; margin: .7rem 0 0; }
.rd-btn[hidden] { display: none; }
.rd-m-lic { color: var(--muted); font-size: .84rem; line-height: 1.5; border-top: 1px solid var(--border); padding-top: .9rem; margin: 1.3rem 0 0; }
.rd-m-lic strong { color: var(--text); font-weight: 600; }
body.rd-open { overflow: hidden; }
@media (max-width: 760px) {
  .rd-hero { padding: 40px 0 36px; } .rd-hero-grid { grid-template-columns: 1fr; gap: 1.6rem; } .rd-hero-cover { display: none; }
  .rd-bar { flex-direction: column; align-items: stretch; } .rd-search { width: 100%; }
  .rd-card { flex-basis: 118px; width: 118px; } .rd-arrow { display: none; }
  .rd-modal { padding: 0; align-items: flex-end; } .rd-dialog { grid-template-columns: 1fr; border-radius: 18px 18px 0 0; padding: 1.3rem; gap: 1rem; } .rd-m-cover { width: 140px; }
}


/* ===== Explore hub ===== */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ex-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem 1.4rem 1.3rem; border-radius: 20px; border: 1px solid var(--border); background: radial-gradient(120% 140% at 0% 0%, rgba(215,183,121,.1), var(--surface) 60%); color: var(--text); transition: transform .25s var(--ease), border-color .25s; min-height: 220px; }
.ex-card:hover { transform: translateY(-4px); border-color: rgba(215,183,121,.45); color: var(--text); }
.ex-k { font-family: var(--font-display); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--w1, #d7b779); }
.ex-card strong { font-size: 1.6rem; letter-spacing: -.02em; }
.ex-d { color: var(--muted); line-height: 1.5; flex: 1; }
.ex-go { font-family: var(--font-display); font-weight: 700; font-size: .92rem; }

@media (max-width: 600px) { .h-hero-copy br { display: none; } }


/* ===== Home: Today strip ===== */
.h-today { padding: 64px 0 56px; border-bottom: 1px solid var(--border); }
.h-today-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 26px; }
.h-today-head h2 { margin: .3rem 0 0; font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.02em; }
.h-today-streak { margin: 0; color: var(--gold, #d7b779); font-family: var(--font-display); font-size: .9rem; letter-spacing: .04em; }
.h-today-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.h-today-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.2rem 1.25rem 1.1rem; border: 1px solid var(--border); border-radius: 16px; background: radial-gradient(120% 140% at 0% 0%, rgba(215,183,121,.08), var(--surface) 60%); color: var(--text); transition: border-color .25s, transform .25s var(--ease); min-height: 140px; }
.h-today-card:hover { border-color: rgba(215,183,121,.5); transform: translateY(-3px); color: var(--text); }
.h-today-card span { font-family: var(--font-display); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.h-today-card strong { font-size: 1.12rem; line-height: 1.3; flex: 1; }
.h-today-card em { font-style: normal; color: var(--gold, #d7b779); font-weight: 600; font-size: .9rem; }
.h-today-card.lead-card { border-color: rgba(215,183,121,.4); }
.h-today-foot { margin: 18px 0 0; color: var(--muted); font-size: .92rem; }
.h-today-foot a { color: var(--text); border-bottom: 1px solid var(--border); }
@media (max-width: 900px) { .h-today-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .h-today-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .h-today-card { min-height: 120px; padding: 1rem; } .h-today-card strong { font-size: 1rem; } }
/* game pages: link to the guide */
.g-guide-link { margin: 22px 0 0; }
.g-guide-link a { color: var(--gold, #d7b779); font-weight: 600; border-bottom: 1px solid rgba(215,183,121,.35); }


/* Home apps: same layout as the games */
.h-world[data-world="draftpro"] .h-world-top .eyebrow { color: #8fd8ea; }
.h-world[data-world="solstice"] .h-world-top .eyebrow { color: #f2c27e; }
.h-apps .h-library { margin-top: 0; }


/* Radio: data saver and the weak-connection tip */
.mu-lite { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; color: var(--muted); cursor: pointer; line-height: 1.45; }
.mu-lite input { accent-color: #d7b779; margin-top: .2rem; width: 1rem; height: 1rem; flex: none; }
.mu-lite strong { color: var(--text); font-weight: 600; margin-right: .25rem; }
.mu-rnet { position: relative; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: 0 0 1.4rem; padding: 1rem 3rem 1rem 1.2rem; border: 1px solid rgba(215,183,121,.4); border-radius: 16px; background: rgba(215,183,121,.08); }
.mu-rnet[hidden] { display: none; }
.mu-rnet p { margin: 0; flex: 1 1 280px; color: var(--soft, #c9cdc6); font-size: .92rem; line-height: 1.5; }
.mu-rnet strong { color: var(--text); }
.mu-rnet-x { position: absolute; top: .5rem; right: .6rem; background: none; border: 0; color: var(--muted); font-size: 1.3rem; cursor: pointer; padding: .2rem .4rem; }

/* ==========================================================
   HOME (storefront, 4 Nov 2026): games first. Spotlight carousel, library grid with filters,
   news cards, the studio band. The More menu replaces Apps and Explore in the header.
   ========================================================== */
/* --- Spotlight carousel --- */
.spot { position: relative; isolation: isolate; min-height: 600px; height: min(760px, calc(100svh - 72px)); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; }
.sp-slides { position: relative; grid-column: 1; grid-row: 1 / -1; }
.sp-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity .9s var(--ease); pointer-events: none; }
.sp-slide.is-on { opacity: 1; pointer-events: auto; z-index: 1; }
.sp-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; z-index: -2; transform: scale(1.04); transition: transform 9s linear; }
.sp-slide.is-on .sp-art { transform: scale(1); }
.sp-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5,6,11,.96) 0%, rgba(5,6,11,.82) 34%, rgba(5,6,11,.22) 64%, rgba(5,6,11,.1) 100%),
              linear-gradient(0deg, var(--bg) 0%, rgba(5,6,11,.5) 22%, transparent 48%); }
.sp-copy { position: relative; max-width: 640px; padding-bottom: 110px; }
.sp-copy .eyebrow { margin-bottom: 1.2rem; color: var(--gold); }
.sp-copy .eyebrow span { color: #bfc6c0; letter-spacing: .12em; }
@media (max-width: 560px) { .sp-copy .eyebrow span { display: none; } }
.sp-copy h2 { font-size: clamp(3rem, 6.4vw, 6rem); line-height: .98; letter-spacing: -.05em; margin: 0; }
.sp-tag { font-family: var(--font-accent); font-style: italic; color: var(--gold); font-size: clamp(1.3rem, 2vw, 1.75rem); margin: 1rem 0 .6rem; letter-spacing: 0; }
.sp-desc { max-width: 480px; color: #c3c8c4; font-size: .98rem; line-height: 1.75; margin: 0; }
.sp-copy .h-actions { margin-top: 1.6rem; }
.sp-railwrap { position: relative; z-index: 2; min-width: 0; grid-column: 1; grid-row: 2; align-self: end; padding-bottom: 22px; }
.sp-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sp-thumb { position: relative; display: flex; align-items: center; gap: .7rem; text-align: left; padding: .7rem .9rem .85rem; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(8,10,12,.62); color: var(--text); cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; transition: border-color .3s, background .3s; font: inherit; }
.sp-thumb img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.sp-thumb span { display: grid; min-width: 0; }
.sp-thumb b { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-thumb small { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sp-thumb:hover, .sp-thumb.is-on { border-color: rgba(215,183,121,.55); background: rgba(14,15,17,.86); }
.sp-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold); }
.sp-thumb.is-on .sp-bar { width: 100%; transition: width var(--sp-dur, 7s) linear; }
@media (max-width: 920px) {
  .spot { height: auto; min-height: 0; grid-template-rows: auto auto; }
  .sp-slides { position: relative; min-height: 0; grid-row: 1; }
  .sp-railwrap { grid-row: 2; align-self: start; }
  .sp-slide.is-on { position: relative; }
  .sp-copy { padding: 96px 0 40px; }
  .sp-copy h2 { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .sp-art { object-position: 60% 30%; }
  .sp-railwrap { padding: 8px 0 18px; }
  .sp-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .sp-rail::-webkit-scrollbar { display: none; }
  .sp-thumb { flex: 0 0 72%; scroll-snap-align: start; }
}
/* --- Today --- */
.st-today { border-top: 1px solid var(--border); }
/* --- Library --- */
.st-lib { padding: 90px 0 !important; }
.st-filters { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.st-filters button { font: 600 .74rem/1 var(--font-body); letter-spacing: .06em; padding: .6rem .95rem; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; transition: .25s; }
.st-filters button:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.st-filters button.is-on { color: #0b0a08; background: var(--gold); border-color: var(--gold); }
.st-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gt { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.gt:hover { transform: translateY(-4px); border-color: rgba(215,183,121,.5); box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); }
.gt.is-hidden { display: none; }
.gt-art { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0b0d12; }
.gt-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.gt:hover .gt-art img { transform: scale(1.05); }
.gt-new { position: absolute; left: 10px; top: 10px; font: 700 .62rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #0b0a08; background: var(--gold); padding: .4rem .55rem; border-radius: 6px; }
.gt-row { display: flex; align-items: center; gap: .7rem; padding: .8rem .9rem; }
.gt-ico { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.gt-row > span { display: grid; min-width: 0; flex: 1; }
.gt-row strong { font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-row small { font-size: .7rem; color: var(--muted); letter-spacing: .04em; }
.gt-row em { font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); opacity: 0; transform: translateX(6px); transition: .3s; }
.gt:hover .gt-row em { opacity: 1; transform: none; }
.st-foot { display: flex; align-items: center; gap: .6rem; margin: 2rem 0 0; font-size: .8rem; color: var(--muted); }
@media (max-width: 1100px) { .st-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .h-head { flex-direction: column; align-items: flex-start; } .st-filters { justify-content: flex-start; } .gt-row em { display: none; } }
@media (max-width: 440px) { .st-grid { gap: 10px; } .gt-row { padding: 10px 10px 12px; gap: 8px; } .gt-row strong { font-size: .86rem; } .gt-row small { font-size: .68rem; } .gt-ico { width: 28px; height: 28px; } }
/* --- News --- */
.st-news { padding-top: 0 !important; }
.st-newsgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nw { display: grid; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .3s, transform .35s var(--ease); }
.nw:hover { border-color: rgba(215,183,121,.5); transform: translateY(-3px); }
.nw img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.nw-body { display: grid; gap: .35rem; padding: 1rem 1.1rem 1.2rem; }
.nw time { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.nw strong { font-size: 1.05rem; line-height: 1.3; }
.nw p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.6; }
.nw em { font-style: normal; font-size: .8rem; color: var(--text); margin-top: .3rem; }
@media (max-width: 760px) { .st-newsgrid { grid-template-columns: 1fr; } }
/* --- Studio --- */
.st-studio { border-top: 1px solid var(--border); padding: 90px 0 !important; background: radial-gradient(ellipse at 20% 0%, rgba(215,183,121,.08), transparent 55%); }
.st-studio-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.st-studio h2 { font-size: clamp(2rem, 3.4vw, 3rem); margin: .3rem 0 1rem; }
.st-studio p { color: var(--muted); line-height: 1.8; max-width: 520px; }
.st-promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.st-promises li { display: grid; grid-template-columns: 2.2rem 1fr; grid-template-rows: auto auto; column-gap: .8rem; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.st-promises b { grid-row: 1 / span 2; font-family: var(--font-accent); font-style: italic; color: var(--gold); font-size: 1.4rem; }
.st-promises span { font-weight: 600; }
.st-promises small { color: var(--muted); font-size: .84rem; line-height: 1.55; }
@media (max-width: 820px) { .st-studio-in { grid-template-columns: 1fr; } }
/* mega menu for More: narrower */
.mega-more .mega-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.4rem; }
@media (max-width: 980px) { .mega-more .mega-inner { grid-template-columns: 1fr 1fr; } }

/* --- Studio film hero above the spotlight --- */
.st-hero { min-height: 560px; height: min(680px, calc(100svh - 72px)); }
.st-hero .eyebrow span { color: #bfc6c0; letter-spacing: .12em; }
.spot { border-top: 1px solid var(--border); height: min(700px, 92svh); min-height: 560px; }
@media (max-width: 920px) { .spot { height: auto; } .st-hero { min-height: 0; height: auto; padding: 90px 0 70px; } .st-hero .h-hero-content { padding-bottom: 0; } .st-hero .h-hero-bottom { display: none; } }
.h-today-grid.five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .h-today-grid.five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .h-today-grid.five { grid-template-columns: 1fr 1fr; } }
.st-hero .h-hero-copy { margin-bottom: 0; }


/* ---- reasons to return (4 Nov 2026) ---- */
.sp-when { display: inline-block; margin-left: .7rem; padding: .28rem .6rem; border-radius: 999px; background: var(--gold); color: #0b0a08; font: 700 .62rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; vertical-align: middle; }
.gt.gt-cont .gt-row em { opacity: 1; transform: none; }
.st-resume { margin: 0 0 22px; }
.st-resume .eyebrow { margin-bottom: 10px; }
.rs-list { display: flex; flex-wrap: wrap; gap: 10px; }
.rs-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid rgba(217,180,108,.28); background: rgba(255,255,255,.04); color: var(--text, #f3ecdc); text-decoration: none; font-size: .92rem; transition: border-color .2s, background .2s; }
.rs-chip:hover { border-color: rgba(217,180,108,.6); background: rgba(217,180,108,.08); }
.rs-chip img { width: 28px; height: 28px; border-radius: 8px; }
.rs-chip em { font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 760px) { .sp-when { display: block; width: max-content; margin: .5rem 0 0; } }
.gt.gt-cont .gt-art::after { content: 'Continue'; position: absolute; right: 10px; top: 10px; font: 700 .62rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(217,180,108,.7); background: rgba(10,9,7,.6); padding: .36rem .5rem; border-radius: 6px; backdrop-filter: blur(4px); }


/* ---- App Store labels (4 Nov 2026) ---- */
.gt-store { position: absolute; left: 10px; bottom: 10px; font: 700 .6rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #f3ecdc; background: rgba(10,9,7,.66); border: 1px solid rgba(243,236,220,.28); padding: .36rem .5rem; border-radius: 6px; backdrop-filter: blur(4px); }
.sp-store { display: inline-block; margin: 14px 0 0; color: var(--gold); font-size: .9rem; text-decoration: none; border-bottom: 1px solid rgba(217,180,108,.35); }
.sp-store:hover { border-bottom-color: var(--gold); }
@media (max-width: 760px) { .sp-store { font-size: .82rem; } }

/* phones: keep the spotlight copy readable over bright game art */
@media (max-width: 760px) { .sp-shade { background: linear-gradient(180deg, rgba(5,6,11,.6) 0%, rgba(5,6,11,.84) 32%, rgba(5,6,11,.9) 70%, var(--bg) 100%); } }


/* ---- Explore artwork (4 Nov 2026) ---- */
@media (min-width: 821px) {
  .mega-more .mega-inner { grid-template-columns: 1fr 1fr 1.7fr .8fr; }
  .mega-ex { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .nav-links .mega .mega-ex a { position: relative; display: block; padding: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; border: 1px solid var(--border); background: #0a0b0f; transition: border-color .25s; }
  .mega-ex img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
  .mega-ex a span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .75rem .5rem; background: linear-gradient(180deg, transparent, rgba(6,7,9,.88)); font-size: .86rem; line-height: 1.2; }
  .nav-links .mega .mega-ex a:hover { border-color: rgba(215,183,121,.55); color: var(--gold); }
  .mega-ex a:hover img { transform: scale(1.05); }
}
@media (min-width: 821px) and (max-width: 980px) { .mega-more .mega-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) { .mega-ex img { display: none; } }
.ex-card { overflow: hidden; padding-top: 0; }
.ex-art { display: block; width: calc(100% + 2.8rem); max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 -1.4rem .7rem; border-bottom: 1px solid var(--border); background: #0a0b0f; transition: transform .5s var(--ease); }
.ex-card:hover .ex-art { transform: scale(1.03); }

/* ---- Explore layout (4 Nov 2026): three on top, two centred below, all the same size ---- */
.ex-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.ex-card { flex: 0 1 calc((100% - 32px) / 3); min-width: 0; }
@media (max-width: 900px) { .ex-card { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 560px) { .ex-card { flex-basis: 100%; } }

/* ---- Apps overview: four apps in an even grid (5 Nov 2026) ---- */
.worlds.apps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1180px) { .worlds.apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .worlds.apps { grid-template-columns: 1fr; } }

/* JPAM Studio logo: emblem + wordmark (October 30, 2026) */
.logo .logo-lockup { width: auto; height: 54px; border-radius: 0; box-shadow: none; }
.site-footer .logo .logo-lockup { height: 80px; }
@media (max-width: 720px) { .logo .logo-lockup { height: 44px; } .site-footer .logo .logo-lockup { height: 64px; } }
/* end JPAM Studio logo */
