@import url("fonts.css");

/* ---------- Tokens ---------- */
:root {
  --bg: #141518;
  --bg-2: #1a1b1f;
  --surface: #22232a;
  --surface-2: #2a2b33;
  --line: #2e2f38;
  --line-2: #3a3b44;
  --text: #ffffff;
  --text-2: #d4d4dc;
  --muted: #9a9ba6;
  --purple: #7c71ff;
  --purple-2: #a49cff;
  --purple-deep: #2a2742;
  --yellow: #f9b517;
  --yellow-2: #ffc94a;
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --font-head: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--purple-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #c9c4ff; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; color: var(--purple-2); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.h2 { font-size: clamp(32px, 4vw, 48px); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.section-head .stack { gap: 10px; max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  font: 700 16px/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--yellow); color: #141518; }
.btn--primary:hover { background: var(--yellow-2); color: #141518; }
.btn--ghost { border-color: rgba(255, 255, 255, .85); color: #fff; background: rgba(20, 21, 24, .25); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: #fff; color: #141518; }
.btn--outline { border-color: var(--line-2); color: #fff; }
.btn--outline:hover { border-color: #fff; color: #fff; }
.btn--purple { background: var(--purple); color: #fff; }
.btn--purple:hover { background: #8f86ff; color: #fff; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Store buttons */
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; min-width: 168px;
  padding: 8px 20px 8px 14px; border-radius: 14px; color: #fff; text-decoration: none;
  background: var(--store, #2a2b33); border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .15s ease, filter .15s ease;
}
.store:hover { transform: translateY(-2px); filter: brightness(1.12); color: #fff; }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 12px; opacity: .8; font-weight: 500; }
.store b { font-size: 16px; }
.store--steam { --store: #1b2838; }
.store--switch { --store: #e60012; }
.store--playstation { --store: #0070d1; }
.store--xbox { --store: #107c10; }
.store--epic { --store: #313131; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .site-header.is-open { background: rgba(20, 21, 24, .92); border-bottom-color: var(--line); backdrop-filter: blur(10px); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; margin-right: auto; }
.brand img { height: 34px; width: auto; }
.brand span { font-family: var(--font-head); font-weight: 800; font-size: 19px; letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 14px; color: #e8e8ee; text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 10px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--yellow); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav .btn--cta { display: none; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 24px; background: rgba(20, 21, 24, .98); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease;
  }
  .site-header.is-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 6px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links .nav-cta-mobile { display: block; margin-top: 16px; }
  .nav-links .nav-cta-mobile a.btn { display: flex; border: 0; border-radius: 999px; color: #141518; padding: 0 26px; font-size: 17px; font-weight: 700; }
}
@media (min-width: 921px) { .nav-cta-mobile { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100vh, 900px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 60% 40%); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 21, 24, .92) 0%, rgba(20, 21, 24, .55) 38%, rgba(20, 21, 24, 0) 68%),
    linear-gradient(0deg, var(--bg) 0%, rgba(20, 21, 24, 0) 32%);
}
.hero__inner { width: 100%; padding-top: 140px; padding-bottom: clamp(56px, 8vw, 96px); }
.hero__content { max-width: 580px; display: flex; flex-direction: column; gap: 22px; }
.hero__logo { width: min(440px, 88%); height: auto; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .5)); }
.hero h1 { font-size: clamp(30px, 3.6vw, 46px); }
.hero .lead { color: #e6e6ee; }
.chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.chip--purple { background: rgba(124, 113, 255, .2); border: 1px solid var(--purple); color: #d9d5ff; }
.chip--yellow { background: rgba(249, 181, 23, .14); border: 1px solid var(--yellow); color: var(--yellow); }
.chip--green { background: rgba(52, 199, 89, .14); border: 1px solid #34c759; color: #7be29a; }
.date { font-family: var(--font-head); font-weight: 800; color: var(--yellow); font-size: clamp(20px, 2.2vw, 26px); letter-spacing: .04em; text-transform: uppercase; }

@media (max-width: 720px) {
  .hero { min-height: 92vh; align-items: flex-end; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 8%, rgba(20, 21, 24, .75) 45%, rgba(20, 21, 24, .15) 75%); }
  .hero__content { align-items: center; text-align: center; margin: 0 auto; }
  .hero .chip { align-self: center; }
  .hero .btn-row { justify-content: center; }
}

/* ---------- Platforms strip ---------- */
.platforms { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.platforms .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; padding-top: 22px; padding-bottom: 22px; }
.platforms .label { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.platforms ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; list-style: none; margin: 0; padding: 0; }
.platforms li { display: flex; align-items: center; gap: 10px; color: #c5c6d0; font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.platforms svg { width: 22px; height: 22px; opacity: .9; }

/* ---------- Spotlight ---------- */
.spotlight { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; aspect-ratio: 16 / 9; }
.media-frame video, .media-frame img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 16 / 9; }
.thumbs button[aria-pressed="true"] { border-color: var(--yellow); }
.thumbs img, .thumbs video { width: 100%; height: 100%; object-fit: cover; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; color: var(--text-2); }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--purple-deep); color: var(--yellow); display: grid; place-items: center; font-weight: 800; font-size: 14px; margin-top: 2px; }
.press-line { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .spotlight { grid-template-columns: 1fr; } }

/* ---------- Game cards ---------- */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); color: #fff; text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); color: #fff; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.card__media > img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); transition: transform .4s ease; }
.card:hover .card__media > img { transform: scale(1.05); }
.card__media > img.card__logo { position: absolute; left: 8%; bottom: 8%; width: 84%; height: 46%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .55)); }
.card:hover .card__media > img.card__logo { transform: none; }
.card__badge { position: absolute; top: 14px; right: 14px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--yellow); color: #141518; }
.card__badge--purple { background: var(--purple); color: #fff; }
.card__badge--dark { background: rgba(20, 21, 24, .85); color: #fff; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; flex: 1; }
.card__title { font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1.15; }
.card__text { font-size: 15px; line-height: 1.5; color: #b8b9c2; }
.card__meta { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.card__link::after { content: ""; position: absolute; inset: 0; }

/* ---------- Studio ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.tile { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.tile--purple { background: #5b4fe0; border-color: #6e63ff; }
.tile h3 { font-size: 23px; }
.tile p { font-size: 15px; color: #d0cff0; }
.tile .btn { align-self: flex-start; margin-top: 6px; }
.tile svg.icon { width: 32px; height: 32px; }
@media (max-width: 900px) { .studio { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.newsletter { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--purple-deep); border: 1px solid #3d3866; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 48px; align-items: center; }
.newsletter::before { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 113, 255, .45), transparent 70%); pointer-events: none; }
.newsletter .h2 { font-size: clamp(28px, 3vw, 40px); }
.inline-form { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form input[type="email"] { flex: 1 1 220px; min-width: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: #c9c7e8; width: 100%; }
.consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--yellow); flex: none; }
@media (max-width: 820px) { .newsletter { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.field, .inline-form input[type="email"] {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg); color: #fff; font: 400 16px/1.4 var(--font-body);
}
.inline-form input[type="email"] { border-radius: 999px; padding: 0 20px; border-color: #4a4570; }
.field::placeholder, .inline-form input::placeholder { color: #7d7e8a; }
.field:focus, .inline-form input:focus { outline: 2px solid var(--purple); outline-offset: 1px; border-color: var(--purple); }
textarea.field { min-height: 150px; resize: vertical; }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a49cff' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.label { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 500; color: #e8e8ee; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fieldset legend { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 500; color: #e8e8ee; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--yellow); }
.check:has(input:checked) { border-color: var(--yellow); background: rgba(249, 181, 23, .08); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: 15px; font-weight: 500; min-height: 1.5em; }
.form-status.ok { color: #7be29a; }
.form-status.err { color: #ff8a8a; }
.req { color: var(--muted); font-size: 14px; }

/* ---------- Pitch page ---------- */
.page-top { padding-top: 120px; }
.pitch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 56px); align-items: start; }
.panel { padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; counter-reset: s; }
.steps li { display: flex; gap: 14px; color: var(--text-2); font-size: 16px; counter-increment: s; }
.steps li::before { content: counter(s); flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: #141518; font-weight: 800; display: grid; place-items: center; }
.footer-grid a.footer-contact { color: var(--yellow); font-weight: 700; }
@media (max-width: 900px) { .pitch { grid-template-columns: 1fr; } }

/* ---------- Game landing ---------- */
.hero--game { min-height: min(100vh, 860px); }
.hero--game .hero__content { max-width: 640px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.trailer { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.trailer button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: pointer; }
.trailer img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.trailer:hover img { opacity: 1; }
.trailer .play { position: absolute; inset: 0; display: grid; place-items: center; }
.trailer .play span { width: 88px; height: 88px; border-radius: 50%; background: var(--yellow); color: #141518; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: transform .2s; }
.trailer:hover .play span { transform: scale(1.08); }
.trailer .play svg { width: 34px; height: 34px; margin-left: 4px; }
.trailer .note { position: absolute; left: 16px; bottom: 14px; padding: 6px 12px; border-radius: 8px; background: rgba(20, 21, 24, .8); font-size: 13px; color: #fff; }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feature div { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.feature h3 { font-size: 21px; }
.feature p { color: #b8b9c2; font-size: 15px; }
.about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.about .prose { display: flex; flex-direction: column; gap: 16px; color: var(--text-2); }
.facts { display: flex; flex-direction: column; gap: 18px; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.links-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.gallery a { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }

/* Sticky store bar */
.buybar {
  position: fixed; left: 50%; bottom: 16px; z-index: 40; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; max-width: calc(100% - 24px);
  border-radius: 999px; background: rgba(26, 27, 31, .94); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  backdrop-filter: blur(10px); transition: transform .3s ease;
}
.buybar.is-visible { transform: translate(-50%, 0); }
.buybar strong { font-family: var(--font-head); font-size: 16px; white-space: nowrap; }
.buybar .btn { min-height: 44px; }
@media (max-width: 560px) { .buybar strong { display: none; } .buybar { padding: 8px; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; background: rgba(0, 0, 0, .9); padding: 24px; }
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 88vh; border-radius: 12px; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: #141518; font-size: 26px; cursor: pointer; }

/* ---------- Legal page ---------- */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 24px; }
.legal h2 { font-size: 28px; margin: 56px 0 12px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 20px; margin: 32px 0 10px; }
.legal [id] { scroll-margin-top: 96px; }
.legal p, .legal li { color: var(--text-2); margin: 0 0 12px; }
.legal ul { padding-left: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: #101114; border-top: 1px solid var(--line); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding: 64px 0 40px; }
.footer-grid h2 { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: #e8e8ee; text-decoration: none; font-size: 15px; }
.footer-grid a:hover { color: var(--yellow); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); color: #fff; }
.socials a:hover { border-color: var(--yellow); color: var(--yellow); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0 28px; border-top: 1px solid #22232a; font-size: 14px; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Wide gameplay clips (Lumi) */
.media-frame--wide { aspect-ratio: 702 / 250; }
.thumbs--wide button { aspect-ratio: 702 / 250; }

/* Small phones */
@media (max-width: 720px) {
  .hero__bg img { object-position: var(--pos, 50% 40%); }
}
@media (max-width: 430px) {
  .brand span { font-size: 15px; letter-spacing: .02em; }
  .brand img { height: 28px; }
  .store { min-width: 0; flex: 1 1 100%; }
}
.buybar__verb { color: var(--muted); font-size: 14px; white-space: nowrap; }
.buybar { gap: 8px; }
.buybar .btn { padding: 0 16px; }
@media (max-width: 560px) {
  .buybar { left: 12px; right: 12px; transform: translateY(140%); max-width: none; overflow-x: auto; border-radius: 18px; justify-content: flex-start; }
  .buybar.is-visible { transform: none; }
  .buybar__verb { display: none; }
}

/* Home spotlight: clips stacked to the exact height of the text column */
.spotlight-media { align-self: stretch; position: relative; min-height: 320px; }
.clip-stack { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; }
.clip-stack .media-frame { flex: 1 1 0; min-height: 0; aspect-ratio: auto; }
/* Narrower screens: text column gets too tall for wide clips, so keep their natural shape */
@media (max-width: 1180px) {
  .spotlight-media { min-height: 0; align-self: center; }
  .clip-stack { position: static; }
  .clip-stack .media-frame { flex: none; aspect-ratio: 702 / 250; }
}

/* Pause button on looping clips */
.media-frame { position: relative; }
.pausebtn { position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(20, 21, 24, .75); color: #fff; cursor: pointer; backdrop-filter: blur(4px); }
.pausebtn:hover { background: var(--yellow); color: #141518; }
.pausebtn svg { width: 18px; height: 18px; }

/* Company imprint (KSH art. 206) */
.imprint { margin: -12px 0 0; padding-bottom: 24px; font-size: 12.5px; line-height: 1.6; color: #6f707c; }

/* Status chip stays readable on bright key art */
.hero .chip--green { background: rgba(14, 15, 18, .78); color: #8ff0ab; backdrop-filter: blur(6px); }
.hero .chip--purple { background: rgba(22, 20, 48, .8); backdrop-filter: blur(6px); }

/* Phones: all store buttons fit in the sticky bar without scrolling sideways */
@media (max-width: 560px) {
  .buybar { gap: 6px; padding: 6px; }
  .buybar .btn { flex: 1 1 auto; min-width: 0; padding: 0 8px; font-size: 13.5px; min-height: 42px; }
}
@media (max-width: 380px) { .buybar .btn { padding: 0 6px; font-size: 12.5px; } }
/* Phones with only 1–2 stores: there is room to say what the button does ("Buy on" / "Wishlist on") */
@media (max-width: 860px) {
  .buybar:not(:has(.btn:nth-of-type(3))) .buybar__verb { display: inline; padding-left: 10px; }
  .buybar:not(:has(.btn:nth-of-type(3))) .btn { flex: 0 1 auto; padding: 0 18px; }
  .buybar:not(:has(.btn:nth-of-type(3))) { justify-content: center; }
}

/* Header stays readable over bright key art before the page is scrolled */
.site-header:not(.is-solid):not(.is-open) { background: linear-gradient(180deg, rgba(12, 13, 16, .72) 0%, rgba(12, 13, 16, .35) 65%, rgba(12, 13, 16, 0) 100%); }
.nav-links a, .brand span { white-space: nowrap; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
/* Mid-size laptops: tighter menu so nothing wraps onto two lines */
@media (min-width: 921px) and (max-width: 1180px) {
  .nav { gap: 14px; }
  .nav-links a { padding: 10px 9px; font-size: 14.5px; }
  .brand span { font-size: 17px; }
  .btn--cta { padding: 0 16px; }
}

/* Phones: game cards two per row, so a long list of games stays short to scroll */
@media (max-width: 560px) {
  .games-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .games-grid .card__body { padding: 12px 12px 14px; gap: 4px; }
  .games-grid .card__title { font-size: 16px; }
  .games-grid .card__text { display: none; }
  .games-grid .card__meta { font-size: 12px; padding-top: 2px; }
  .games-grid .card__badge { top: 8px; right: 8px; padding: 3px 8px; font-size: 10px; }
}
