/* 4Friends Interactive - studio website */
:root {
  --bg: #000;
  --bg-1: #0d0d0d;
  --bg-2: #171717;
  --bg-3: #232323;
  --line: rgba(255,255,255,.09);
  --line-2: rgba(255,255,255,.16);
  --fg: #fff;
  --fg-2: rgba(255,255,255,.72);
  --fg-3: rgba(255,255,255,.48);
  --accent: #7c5cff;
  --ok: #2ee59d;
  --warn: #ffc857;
  --info: #5b8cff;
  --pink: #ff5c9a;
  --radius: 18px;
  --max: 1376px;
  --ease: cubic-bezier(.2,.7,.1,1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(124,92,255,.45); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 700px) { .wrap { padding: 0 16px; } }

/* ---------- page transition ---------- */
.page-curtain {
  position: fixed; inset: 0; background: var(--bg); z-index: 200; pointer-events: none;
  opacity: 1; transition: opacity .55s var(--ease);
}
body.is-ready .page-curtain { opacity: 0; }
body.is-leaving .page-curtain { opacity: 1; transition-duration: .3s; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,.72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; height: 68px; gap: 36px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--fg-2); transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -23px; height: 1px; background: var(--fg); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500; transition: background .2s, transform .2s var(--ease), color .2s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--bg-2); color: var(--fg); }
.btn-dark:hover { background: var(--bg-3); }
.btn-light { background: var(--fg); color: #000; }
.btn-light:hover { background: rgba(255,255,255,.86); }
.btn svg { width: 14px; height: 14px; }
.menu-btn { display: none; width: 38px; height: 38px; border-radius: 50%; background: var(--bg-2); place-items: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 16px; height: 1.5px; background: var(--fg); position: relative; transition: transform .3s var(--ease); }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -5px; } .menu-btn span::after { top: 5px; }
.nav.open .menu-btn span { background: transparent; }
.nav.open .menu-btn span::before { transform: translateY(5px) rotate(45deg); }
.nav.open .menu-btn span::after { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .nav-right .btn-dark { display: none; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 68px; left: 0; right: 0;
    background: #000; border-bottom: 1px solid var(--line); padding: 8px 16px 20px; animation: drop .35s var(--ease);
  }
  .nav.open .nav-links a { padding: 14px 0; font-size: 20px; border-bottom: 1px solid var(--line); }
  .nav.open .nav-links a.active::after { display: none; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- hero (prompt) ---------- */
.hero { min-height: calc(86vh - 68px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: 80px 60px; position: relative; }
.hero h1 { font-size: clamp(28px, 4.2vw, 40px); font-weight: 600; letter-spacing: -.025em; margin: 0 0 28px; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: .55;
  background: radial-gradient(600px 300px at 50% 55%, rgba(124,92,255,.18), transparent 70%);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .9; transform: scale(1.08); } }
.prompt {
  width: min(768px, 100%); background: var(--bg-2); border: 1px solid var(--line); border-radius: 26px;
  padding: 18px 18px 14px 20px; text-align: left; transition: border-color .25s, box-shadow .25s;
}
.prompt:focus-within { border-color: var(--line-2); box-shadow: 0 0 0 6px rgba(255,255,255,.03); }
.prompt textarea {
  width: 100%; min-height: 56px; resize: none; background: transparent; border: 0; outline: 0; color: var(--fg);
  font: inherit; font-size: 16px; line-height: 1.5;
}
.prompt textarea::placeholder { color: var(--fg-3); }
.prompt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prompt-hint { font-size: 13px; color: var(--fg-3); }
.prompt-send {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-3); color: var(--fg-2); transition: background .2s, color .2s, transform .2s var(--ease);
}
.prompt-send.on { background: var(--fg); color: #000; }
.prompt-send:hover { transform: translateY(-1px); }
.prompt-send svg { width: 16px; height: 16px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.chip {
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-2);
  font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: all .2s;
}
.chip:hover { background: var(--bg-2); color: var(--fg); }
.chip.active { background: var(--fg); color: #000; border-color: var(--fg); }
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.prompt-results { width: min(768px, 100%); margin-top: 14px; text-align: left; display: grid; gap: 6px; }
.prompt-results:empty { display: none; }
.pr-item {
  display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 14px; background: var(--bg-1);
  border: 1px solid var(--line); animation: rise .35s var(--ease) both; transition: background .2s;
}
.pr-item:hover { background: var(--bg-2); }
.pr-item .pr-thumb { width: 72px; height: 44px; border-radius: 8px; overflow: hidden; flex: none; background: var(--bg-3); }
.pr-item .pr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pr-item b { font-weight: 500; }
.pr-item small { color: var(--fg-3); display: block; font-size: 13px; }
.pr-item .status { margin-left: auto; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- sections ---------- */
.section { padding-block: 72px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -.025em; margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--fg-2); max-width: 620px; }
.link-arrow { color: var(--fg-2); font-size: 14px; font-weight: 500; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; transition: color .2s, gap .2s; }
.link-arrow:hover { color: var(--fg); gap: 10px; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--fg-3); letter-spacing: .02em; margin-bottom: 10px; display: block; }

/* ---------- media cards ---------- */
.feature { display: grid; grid-template-columns: 3fr 1fr; gap: 24px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }
.card { display: block; position: relative; cursor: pointer; }
.card-media {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); aspect-ratio: 16/9;
  isolation: isolate;
}
.card.tall .card-media { aspect-ratio: auto; height: 100%; min-height: 320px; }
.feature .card.big .card-media { aspect-ratio: 16/8.6; }
.card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media img { transition: transform 1.2s var(--ease), opacity .5s; }
.card-media video { opacity: 0; transition: opacity .6s; }
.card-media.playing video { opacity: 1; }
.card:hover .card-media img { transform: scale(1.045); }
.card-media .placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center;
  font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.02em; color: rgba(255,255,255,.92);
  background: radial-gradient(120% 120% at 20% 10%, var(--c, #7c5cff) 0%, transparent 55%), radial-gradient(120% 120% at 90% 100%, rgba(255,255,255,.08), transparent 60%), #101010;
}
.card-media .shade { position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(transparent, rgba(0,0,0,.75)); z-index: 1; pointer-events: none; }
.card-media .overlay-title { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 2; font-size: clamp(20px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.card-media .play-pip {
  position: absolute; right: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
}
.card-media .play-pip svg { width: 10px; height: 10px; }
.card-meta { padding: 14px 2px 0; }
.card-meta h3 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.card-meta .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 6px; font-size: 13px; color: var(--fg-3); }
.dot-sep::before { content: "·"; margin-right: 10px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

/* status badge */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 3px 10px 3px 8px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--fg-2); white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--s, var(--fg-3)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--s, #888) 25%, transparent); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; } }

/* filters bar */
.filters { position: sticky; top: 68px; z-index: 20; background: rgba(0,0,0,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 14px 0; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.filters-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filters-row::-webkit-scrollbar { display: none; }
.filters-row .chip { flex: none; height: 34px; font-size: 13px; }
.filters-row + .filters-row { margin-top: 10px; }
.search-mini { flex: none; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.search-mini input { background: transparent; border: 0; outline: 0; color: var(--fg); font: inherit; font-size: 13px; width: 160px; }
.search-mini svg { width: 14px; height: 14px; color: var(--fg-3); }
.empty { padding: 80px 0; text-align: center; color: var(--fg-3); }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 32px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: clamp(32px, 4vw, 52px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.stat span { display: block; margin-top: 10px; color: var(--fg-3); font-size: 14px; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; padding-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* text blocks */
.lead { font-size: clamp(22px, 2.6vw, 34px); line-height: 1.3; letter-spacing: -.02em; font-weight: 500; max-width: 980px; margin: 0; }
.lead em { font-style: normal; color: var(--fg-3); }
.page-hero { padding-block: 120px 64px; }
.page-hero h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1; letter-spacing: -.045em; font-weight: 600; margin: 0 0 20px; }
.page-hero p { font-size: 19px; color: var(--fg-2); max-width: 680px; margin: 0; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr; } }
.tile { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: background .3s, transform .4s var(--ease), border-color .3s; position: relative; overflow: hidden; }
.tile:hover { background: var(--bg-2); transform: translateY(-3px); border-color: var(--line-2); }
.tile .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, #7c5cff) 18%, transparent); color: var(--c, #7c5cff); margin-bottom: 22px; }
.tile .ico svg { width: 20px; height: 20px; }
.tile h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.tile p { margin: 0; color: var(--fg-2); font-size: 15px; }
.tile .count { position: absolute; right: 22px; top: 24px; font-size: 13px; color: var(--fg-3); }

/* people */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 20px; }
.person .ph { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); position: relative; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s, transform 1s var(--ease); }
.person:hover .ph img { filter: grayscale(0); transform: scale(1.04); }
.person .ph .initials { position: absolute; inset: 0; display: grid; place-items: center; font-size: 54px; font-weight: 600; color: var(--fg-3); }
.person h3 { margin: 14px 0 2px; font-size: 17px; font-weight: 500; }
.person .role { color: var(--fg-3); font-size: 14px; }
.person p { color: var(--fg-2); font-size: 14px; margin: 10px 0 0; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 14px; }
.field label { display: block; font-size: 13px; color: var(--fg-3); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; color: var(--fg); font: inherit;
  padding: 13px 16px; outline: 0; transition: border-color .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--line-2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.info-list { display: grid; gap: 0; }
.info-list > div { padding: 20px 0; border-top: 1px solid var(--line); }
.info-list > div:last-child { border-bottom: 1px solid var(--line); }
.info-list span { display: block; color: var(--fg-3); font-size: 13px; margin-bottom: 4px; }
.info-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- game modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade .35s both; }
.modal-panel {
  position: relative; margin: 4vh auto; width: min(1100px, calc(100% - 32px)); max-height: 92vh; overflow: auto;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 24px; animation: pop .5s var(--ease) both;
}
.modal.closing .modal-bg { animation: fade .25s reverse both; }
.modal.closing .modal-panel { animation: pop .25s reverse both; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.6); display: grid; place-items: center; backdrop-filter: blur(8px); }
.modal-close svg { width: 16px; height: 16px; }
.modal-media { aspect-ratio: 16/9; background: #000; position: relative; }
.modal-media video, .modal-media img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; }
.modal-media .placeholder { position: absolute; inset: 0; }
.modal-body { padding: 28px 32px 36px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; }
@media (max-width: 800px) { .modal-body { grid-template-columns: 1fr; padding: 22px 18px 28px; gap: 24px; } }
.modal-body h2 { margin: 10px 0 4px; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.03em; font-weight: 600; line-height: 1.1; }
.modal-body .tagline { color: var(--fg-2); font-size: 18px; margin: 0 0 14px; }
.modal-body .desc { color: var(--fg-2); margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-2); }
.facts { display: grid; gap: 0; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.facts > div span:first-child { color: var(--fg-3); }
.facts > div span:last-child { text-align: right; }
.release-box { margin-top: 20px; padding: 18px; border-radius: 16px; background: var(--bg-2); }
.release-box h4 { margin: 0 0 10px; font-size: 13px; font-weight: 500; color: var(--fg-3); }
.release-box p { margin: 10px 0 0; font-size: 14px; color: var(--fg-2); }
.stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.store { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--fg); color: #000; transition: transform .2s var(--ease), background .2s; }
.store:hover { transform: translateY(-1px); background: rgba(255,255,255,.85); }
.store svg { width: 12px; height: 12px; }
.store.soon { background: transparent; color: var(--fg-2); border: 1px solid var(--line-2); cursor: default; }
.store.soon:hover { transform: none; background: transparent; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 56px 0 40px; color: var(--fg-3); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
.footer h5 { margin: 0 0 14px; color: var(--fg); font-size: 14px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--fg); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.skeleton { background: linear-gradient(100deg, var(--bg-2) 30%, var(--bg-3) 50%, var(--bg-2) 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -150% 0; } }

/* marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font-size: 22px; font-weight: 500; color: var(--fg-3); letter-spacing: -.01em; white-space: nowrap; }
.marquee-track span b { color: var(--fg); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- brand logo (set in the Showcase app: Edit mode > Company > Logo) ---------- */
.brand-logo { height: 28px; width: auto; max-width: 120px; object-fit: contain; border-radius: 6px; }

/* status pill: dot uses --s, text stays readable everywhere */
.status { color: var(--fg); background: color-mix(in srgb, var(--s, #888) 16%, transparent); border: 1px solid color-mix(in srgb, var(--s, #888) 35%, transparent); }
.chip.active i { box-shadow: 0 0 0 2px rgba(0,0,0,.15); }

/* ---------- home intro ---------- */
.intro { position: relative; padding-block: 96px 48px; }
.intro h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1; letter-spacing: -.045em; font-weight: 600; margin: 0 0 18px; }
.intro p { font-size: 19px; color: var(--fg-2); margin: 0; max-width: 640px; }
.intro .hero-glow { background: radial-gradient(700px 320px at 20% 40%, rgba(124,92,255,.16), transparent 70%); }

/* ---------- game page: player left, more games right ---------- */
.game-page {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto 1fr; gap: 0 28px;
  padding: 18px 28px 40px; max-width: 1920px; margin: 0 auto; min-height: calc(100vh - 68px);
}
.gp-bar { grid-column: 1 / -1; padding-bottom: 14px; }
.gp-main { min-width: 0; }
.gp-stage { position: relative; aspect-ratio: 16/9; max-height: calc(100vh - 150px); width: 100%; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gp-stage video, .gp-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gp-full { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s; }
.gp-stage:hover .gp-full { opacity: 1; }
.gp-full svg { width: 16px; height: 16px; }
.gp-info { padding: 24px 4px 0; max-width: 980px; }
.gp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.gp-head h1 { margin: 6px 0 4px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; }
.gp-head .status { margin-top: 10px; }
.gp-info .tagline { color: var(--fg-2); font-size: 18px; margin: 0; }
.gp-stores { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 20px; padding: 14px 16px; border-radius: 16px; background: var(--bg-1); border: 1px solid var(--line); }
.gp-stores > span { font-size: 13px; color: var(--fg-3); }
.gp-stores .stores { margin: 0; }
.gp-note { color: var(--fg-3); font-size: 14px; margin: 14px 0 0; }
.gp-info .desc { color: var(--fg-2); margin: 18px 0 0; max-width: 760px; }
.gp-facts { margin-top: 22px; max-width: 760px; }

.gp-side { grid-row: 2; grid-column: 2; position: sticky; top: 86px; align-self: start; max-height: calc(100vh - 104px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--bg-3) transparent; padding-right: 4px; }
.gp-side h2 { font-size: 15px; font-weight: 500; color: var(--fg-2); margin: 0 0 12px; position: sticky; top: 0; background: var(--bg); padding: 2px 0 10px; z-index: 1; }
.side-item { display: flex; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 14px; transition: background .2s; animation: rise .45s var(--ease) both; }
.side-item:hover { background: var(--bg-2); }
.side-thumb { position: relative; flex: none; width: 150px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.side-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.side-item:hover .side-thumb img { transform: scale(1.06); }
.side-thumb .placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 6px; font-size: 13px; font-weight: 600; background: radial-gradient(120% 120% at 20% 10%, var(--c, #7c5cff), transparent 60%), #101010; }
.side-play { position: absolute; right: 6px; bottom: 6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.65); }
.side-play svg { width: 8px; height: 8px; }
.side-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-top: 2px; }
.side-text b { font-weight: 500; font-size: 15px; line-height: 1.25; }
.side-text small { color: var(--fg-3); font-size: 13px; }
.side-text .status { align-self: flex-start; font-size: 11px; padding: 1px 8px 1px 7px; margin-top: 2px; }
.game-page.swap .gp-main { animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
body[data-page="game"] .footer { margin-top: 0; }

@media (max-width: 1100px) {
  .game-page { grid-template-columns: 1fr; padding: 12px 16px 32px; }
  .gp-side { grid-row: auto; grid-column: 1; position: static; max-height: none; overflow: visible; margin-top: 36px; }
  .gp-side .side-list, .gp-side { display: block; }
}
@media (max-width: 560px) { .side-thumb { width: 128px; } .gp-head { flex-direction: column; gap: 6px; } }

/* ---------- simple statement style (big stacked uppercase lines, very little text) ---------- */
.statement { position: relative; padding-block: 120px 72px; }
.statement.compact { padding-block: 96px 40px; }
.stack { margin: 0; display: flex; flex-direction: column; font-size: clamp(48px, 9.5vw, 148px); line-height: .9; font-weight: 800; letter-spacing: -.05em; text-transform: uppercase; }
.stack.small { font-size: clamp(40px, 7vw, 104px); }
.stack span { display: block; }
.stack span:nth-child(2) { color: var(--fg-3); }
.mission { margin-top: 40px; max-width: 620px; }
.mission p { margin: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--fg-2); }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fg); }
.text-link::after { content: ""; width: 28px; height: 1px; background: currentColor; transition: width .35s var(--ease); }
.text-link:hover::after { width: 48px; }
.section-head { align-items: center; }
.label { margin: 0 0 28px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.section-head .label { margin: 0; }
.section-head .text-link { margin: 0; }
.cta { padding-block: 120px 40px; }
.cta .text-link { margin-top: 32px; }

.search-bar { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; margin-bottom: 36px; max-width: 420px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .2s; }
.search-bar:focus-within { border-color: var(--line-2); }
.search-bar svg { width: 16px; height: 16px; color: var(--fg-3); flex: none; }
.search-bar input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--fg); font: inherit; font-size: 15px; }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); }
.rows li, .rows li a { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 26px 0; }
.rows.links li { padding: 0; }
.rows.links li a { flex: 1; transition: padding .35s var(--ease); }
.rows.links li a:hover { padding-left: 12px; }
.rows b { font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.03em; text-transform: uppercase; }
.rows span { color: var(--fg-3); font-size: 15px; text-align: right; }
@media (max-width: 600px) { .rows li, .rows li a { flex-direction: column; gap: 6px; } .rows span { text-align: left; } }

/* footer: big "Get in touch" + plain uppercase links */
.footer-cta { display: inline-block; font-size: clamp(36px, 6vw, 80px); font-weight: 800; letter-spacing: -.045em; text-transform: uppercase; color: var(--fg); line-height: 1; transition: color .25s; }
.footer-cta:hover { color: var(--fg-2); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 16px 80px; margin-top: 40px; }
.footer-cols ul { display: grid; gap: 12px; }
.footer-cols a { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.footer-cols a:hover { color: var(--fg); }

/* logo */
.brand .brand-logo { height: 34px; width: auto; max-width: none; border-radius: 0; display: block; }
@media (max-width: 700px) { .brand .brand-logo { height: 28px; } }
.nav-links { margin-left: auto; }
.nav-right { margin-left: 0; }
@media (max-width: 900px) { .nav-right { margin-left: auto; } }

/* the breathing glow must not widen the page on phones */
.statement { overflow: clip; }

/* footer: one row of legal links, uppercase and underlined */
.footer { padding: 40px 0 32px; margin-top: 96px; }
.legal-bar { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.legal-bar a { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fg); padding-bottom: 3px; border-bottom: 2px solid currentColor; transition: color .2s; }
.legal-bar a:hover { color: var(--fg-2); }
.footer .footer-bottom { margin-top: 32px; padding-top: 0; border-top: 0; }
@media (max-width: 600px) { .legal-bar a { font-size: 12px; } }

/* ---------- showreel ---------- */
.reel-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; opacity: 0; transition: opacity 1.2s var(--ease); }
.reel-bg.on { opacity: 1; }
.reel-bg video { width: 100%; height: 100%; object-fit: cover; }
.reel-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.7) 60%, #000 100%), linear-gradient(90deg, rgba(0,0,0,.6), transparent 70%); }
.statement:has(.reel-bg) { padding-inline: max(32px, calc((100vw - var(--max)) / 2 + 32px)); max-width: none; isolation: isolate; }
@media (max-width: 700px) { .statement:has(.reel-bg) { padding-inline: 16px; } }
.reel-btn { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; margin-left: 28px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fg); }
.mission .text-link + .reel-btn { vertical-align: middle; }
.reel-play { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: #000; transition: transform .3s var(--ease); }
.reel-play svg { width: 12px; height: 12px; margin-left: 2px; }
.reel-btn:hover .reel-play { transform: scale(1.1); }
.reel-modal { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.94); display: grid; place-items: center; padding: 24px; animation: fade .3s both; }
.reel-modal.closing { animation: fade .25s reverse both; }
.reel-modal video { width: min(1280px, 100%); max-height: 86vh; border-radius: 14px; background: #000; animation: pop .45s var(--ease) both; }
.reel-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); }
.reel-close svg { width: 16px; height: 16px; }
@media (max-width: 600px) { .reel-btn { margin-left: 0; display: flex; } }

/* contact: just the form; company details live small in the footer */
.contact-single .form { max-width: 760px; }
.footer-info { justify-content: flex-start; gap: 6px 0; font-size: 12px; color: var(--fg-3); }
.footer-info > * + *::before { content: "·"; margin: 0 10px; color: var(--fg-3); }
.footer-info a:hover { color: var(--fg); }

/* contact form: spam trap + sent state */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: .6; cursor: default; }
.sent h2 { margin: 0 0 10px; font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.03em; text-transform: uppercase; }
.sent p { margin: 0; color: var(--fg-2); font-size: 18px; }
.form-error { margin: 4px 0 0; color: #ff8a8a; font-size: 14px; }
.form-error a { text-decoration: underline; }
