/* Ember refresh (Nov 2026): warmer studio shell, game catalog, subtle motion. System fonts only. */
:root {
  --font-ui: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --bg: #121110;
  --ember-raised: #1b1816;
  --line: #3a312c;
  --muted: #c6bdb5;
  --ember-glow: #ff915226;
}
body, button { font-family: var(--font-ui); }
h1, h2, h3, .art-caption a { font-family: var(--font-display); }
body {
  background:
    radial-gradient(900px 520px at 85% -80px, #ff91522e, transparent 70%),
    radial-gradient(700px 420px at -5% 30%, #ffc4711a, transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
}

/* Header */
header.site-header {
  position: sticky; top: 0; z-index: 20;
  width: 100%; max-width: none;
  padding-left: max(var(--studio-gutter), calc((100% - 1296px) / 2));
  padding-right: max(var(--studio-gutter), calc((100% - 1296px) / 2));
  background: #121110d9;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid #ffffff12;
}
header nav a { position: relative; }
header nav a:after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 4px; height: 2px;
  background: var(--ember-action); transform: scaleX(0); transform-origin: left; transition: transform 220ms ease;
}
header nav a:hover:after, header nav a:focus-visible:after { transform: scaleX(1); }

/* Hero */
.hero-copy .eyebrow {
  display: inline-block; padding: 6px 14px; border: 1px solid #ffc47155; border-radius: 999px;
  background: #ffc4711a; color: var(--gold); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 12px;
}
.hero-copy h1 { font-size: clamp(38px, 3.9vw, 58px); font-weight: 700; letter-spacing: -.035em; }
.hero-copy h1 em {
  background: linear-gradient(95deg, #ffd9a0, #ff9152 70%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #ffb774;
}
.hero-art {
  border-color: #ffc47140; border-radius: 20px;
  box-shadow: 0 30px 80px #00000066, 0 0 0 1px #ffffff0a, 0 0 120px #ff91522b;
  overflow: hidden;
}
.hero-detail .button, .hero-copy .button {
  background: linear-gradient(110deg, #ffb674, #ff8a47); border-color: transparent; border-radius: 10px;
  box-shadow: 0 10px 28px #ff91524d; font-weight: 700;
}
.hero-detail .button:hover { background: linear-gradient(110deg, #ffd095, #ff9a5c); box-shadow: 0 14px 34px #ff915270; transform: translateY(-1px); }
.hero-detail .release { background: linear-gradient(90deg, #ff91521f, transparent); border-radius: 0 8px 8px 0; }
.hero-art .hero-slide img { transition: transform 900ms ease; }
.hero-art:hover .hero-slide img { transform: scale(1.025); }

/* Catalog */
.catalog { width: min(calc(100% - 2 * var(--studio-gutter)), 1296px); margin: 0 auto 72px; scroll-margin-top: 88px; }
.catalog-head { max-width: 640px; margin-bottom: 32px; }
.catalog-head .eyebrow { color: var(--gold); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin: 0; }
.catalog-head h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 800; letter-spacing: -.035em; margin: 10px 0 12px; line-height: 1.08; }
.catalog-head p:last-child { color: var(--muted); margin: 0; font-size: 17px; }
.catalog-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.catalog-grid li { display: flex; }
.game-card {
  position: relative; flex: 1; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 16px; align-items: center;
  padding: 18px; border: 1px solid var(--line); border-radius: 16px; color: var(--paper);
  background: linear-gradient(160deg, #221d1a, #181513);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
a.game-card:hover { transform: translateY(-3px); border-color: #ff9152aa; box-shadow: 0 16px 40px #00000066, 0 0 40px #ff915222; }
a.game-card:focus-visible { outline: 3px solid #ffc471; outline-offset: 3px; }
.game-icon { grid-row: 1 / span 3; width: 76px; height: 76px; border-radius: 18px; object-fit: cover; box-shadow: 0 6px 18px #0000006e, 0 0 0 1px #ffffff1a; background: #2a2420; }
.game-text { display: grid; gap: 2px; min-width: 0; }
.game-text strong { font-family: var(--font-display); font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }
.game-text > span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.status { justify-self: start; margin-top: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid transparent; }
.status-live { background: #ffb4741f; color: #ffd39b; border-color: #ffb47455; }
.status-dev { background: #8fb7ff1a; color: #bcd4ff; border-color: #8fb7ff44; }
.status-soon { background: #ffffff0d; color: #d4ccc5; border-color: #ffffff22; }
.card-cta { grid-column: 2; font-size: 13px; font-weight: 600; color: var(--gold); margin-top: 4px; }
.card-cta span { display: inline-block; transition: transform 200ms ease; }
a.game-card:hover .card-cta span { transform: translateX(4px); }
.game-card.is-soon { opacity: .86; background: linear-gradient(160deg, #1d1917, #151311); }
.game-card.is-soon .game-icon { filter: saturate(.85); }

/* Sections: softer, warmer */
.game.section { border-radius: 22px; }
.game.section.flight-game { box-shadow: 0 30px 80px #0000004d; }
.support.section { border-top: 1px solid var(--line); }
.support h2, .privacy h2 { font-weight: 800; }
footer { border-top: 1px solid var(--line); color: var(--muted); }
footer a:hover { color: var(--gold); }

/* Arrival motion (one-off, opt-out below) */
@keyframes ember-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.catalog-grid li { animation: ember-rise 520ms ease-out both; }
.catalog-grid li:nth-child(2) { animation-delay: 50ms; } .catalog-grid li:nth-child(3) { animation-delay: 100ms; }
.catalog-grid li:nth-child(4) { animation-delay: 150ms; } .catalog-grid li:nth-child(5) { animation-delay: 200ms; }
.catalog-grid li:nth-child(n+6) { animation-delay: 250ms; }

@media (max-width: 760px) {
  header.site-header { padding-left: 20px; padding-right: 20px; }
  header nav a:after { display: none; }
  .catalog { margin-bottom: 48px; }
  .game-card { padding: 14px; grid-template-columns: 64px minmax(0, 1fr); }
  .game-icon { width: 64px; height: 64px; border-radius: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-grid li, .hero-art .hero-slide img { animation: none !important; transition: none !important; }
  .hero-art:hover .hero-slide img, a.game-card:hover { transform: none; }
}
/* Catalog cards with store badges and links (2026-11-11) */
[hidden] { display: none !important; }
.card-links { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
/* Owner 15 Nov: Play now + Website on one line, the store buttons on the next. */
.card-row { display: flex; flex-wrap: wrap; gap: 8px; }
.card-row:empty { display: none; }
.card-link { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border-radius: 10px; border: 1px solid var(--line); color: var(--paper); font-size: 13px; font-weight: 700; text-decoration: none; transition: border-color 150ms ease, background 150ms ease; }
.card-link:hover { border-color: #ff9152aa; }
.card-link.primary { background: #ff9152; border-color: #ff9152; color: #23150d; }
.card-link.primary:hover { background: #ffb181; }
.card-link:focus-visible, .mini-store:focus-visible { outline: 3px solid #ffc471; outline-offset: 2px; }
.mini-store { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 4px 11px 4px 8px; border-radius: 10px; background: #000; border: 1px solid #5a4a3c; color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; line-height: 1.1; }
.mini-store svg { width: 18px; height: 18px; flex: none; }
.mini-store span { display: flex; flex-direction: column; }
.mini-store small { font-size: 9px; font-weight: 600; letter-spacing: .04em; opacity: .8; }
.mini-store.soon { opacity: .55; }
/* Hero slider with every game (owner 15 Nov: "this doesnt show all the games"): one row of game icons, then Previous / Next. */
.hero-art { --selector-height: 132px; }
.hero-art .slide-controls { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; align-content: start; }
.hero-art .slide-icons { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.hero-art .slide-control.slide-icon { padding: 3px; min-height: 0; aspect-ratio: 1; display: grid; place-items: center; }
.hero-art .slide-control.slide-icon img { width: 100%; height: 100%; max-width: 48px; max-height: 48px; border-radius: 8px; object-fit: cover; }
.hero-art [data-slide-previous], .hero-art [data-slide-next] { grid-column: auto; min-height: 40px; }
@media (max-width: 560px) {
  .hero-art { --selector-height: 176px; }
  .hero-art .slide-icons { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* Cards (owner 15 Nov "still looks bad"): buttons sit at the bottom of every card so rows line up; both store buttons fit on one line. */
.game-card { grid-template-rows: auto 1fr; }
.game-card .card-links { align-self: end; }
.status { white-space: nowrap; }
.card-row { flex-wrap: nowrap; gap: 6px; }
.card-row .mini-store { padding: 4px 9px 4px 7px; gap: 6px; font-size: 12px; min-width: 0; }
.card-row .mini-store small { font-size: 8px; }
.card-row .mini-store svg { width: 16px; height: 16px; }
@media (max-width: 340px) { .card-row { flex-wrap: wrap; } }
