:root {
  --bg: #ffffff;
  --bg-soft: #f6fbf9;
  --tint: #e9faf4;
  --ink: #0f1722;
  --ink-soft: #3a4654;
  --muted: #6b7785;
  --line: #e6efea;
  --line-soft: #f0f5f2;
  --brand: #0fb9a3;
  --brand-2: #34cf7a;
  --brand-ink: #0a7d6f;
  --grad: linear-gradient(135deg, #0fbaa6 0%, #38cf7a 100%);
  --grad-soft: linear-gradient(135deg, #e9fbf4 0%, #eafaf0 100%);
  --radius: 18px;
  --maxw: 1180px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 34, 0.05);
  --shadow-md: 0 12px 34px rgba(15, 23, 34, 0.09);
  --shadow-brand: 0 14px 40px rgba(15, 186, 166, 0.32);
  /* tokenised so themes can override */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --chip-border: #cdeede;
  --header-bg: rgba(255, 255, 255, 0.82);
  --accent-gold: #bf8b2e;
}

/* ---------- Per-surface themes ---------- */
/* Studio chrome: neutral & premium — colour comes from the game products. */
body.theme-studio {
  --bg: #faf8f4;
  --bg-soft: #f2eee5;
  --tint: #f1ece1;
  --line: #ece5d6;
  --line-soft: #f3eee4;
  --brand: #1f2a37;
  --brand-2: #2b3a4a;
  --brand-ink: #1f2a37;
  --grad: linear-gradient(135deg, #2b3a4a 0%, #0f1722 100%);
  --chip-border: #e6ddc9;
  --header-bg: rgba(250, 248, 244, 0.86);
  --shadow-brand: 0 14px 40px rgba(31, 42, 55, 0.22);
}
/* Arrow Escape keeps the original teal identity (defaults) — class for clarity. */
body.theme-arrow { }
/* Star Battle: the real app palette — cream, navy, gold, pastel regions. */
body.theme-star {
  --bg: #f4f0e6;
  --bg-soft: #ede7d8;
  --tint: #f6edd6;
  --line: #e4dcc7;
  --line-soft: #efe8d7;
  --brand: #bf8b2e;
  --brand-2: #d8a942;
  --brand-ink: #8a6420;
  --grad: linear-gradient(135deg, #c9962f 0%, #e0b64d 100%);
  --grad-soft: linear-gradient(135deg, #f6edd6 0%, #efe6cf 100%);
  --chip-border: #e6d6ad;
  --header-bg: rgba(244, 240, 230, 0.86);
  --shadow-brand: 0 14px 40px rgba(191, 139, 46, 0.28);
  --ink-navy: #2b3a4a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.08; font-weight: 800; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand .logo {
  width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 800; box-shadow: var(--shadow-brand);
}
.brand .logo svg { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-size: 0.95rem; font-weight: 600; transition: color 0.15s; }
.nav-links a:hover { color: var(--brand-ink); }
.nav-links .btn { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.18s ease, background 0.15s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 46px rgba(15, 186, 166, 0.42); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.82rem; font-weight: 700; color: var(--brand-ink);
  background: var(--tint); border: 1px solid var(--chip-border);
  border-radius: 999px; padding: 7px 15px; margin-bottom: 26px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(52,207,122,0.18); }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.3rem); }
.hero .lede { font-size: clamp(1.08rem, 1.7vw, 1.32rem); color: var(--muted); max-width: 540px; margin: 26px 0 0; line-height: 1.55; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.hero-rating { display: flex; align-items: center; gap: 14px; margin-top: 30px; color: var(--muted); font-size: 0.92rem; }
.stars { color: #f5b301; letter-spacing: 2px; font-size: 1rem; }

/* floating shapes */
.hero-art { position: relative; display: grid; place-items: center; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(2px); z-index: 0;
  background: var(--grad); opacity: 0.16;
}
.blob.b1 { width: 320px; height: 320px; opacity: 0.18; filter: blur(8px); }
.shape { position: absolute; z-index: 2; border-radius: 14px; box-shadow: var(--shadow-md); }
.shape.s1 { top: 6%; left: 2%; width: 56px; height: 56px; background: #fff; display: grid; place-items: center; color: var(--brand); animation: float 6s ease-in-out infinite; }
.shape.s2 { bottom: 12%; right: 0%; width: 64px; height: 64px; border-radius: 18px; background: var(--grad); display: grid; place-items: center; color: #fff; animation: float 7s ease-in-out infinite 0.6s; }
.shape.s3 { top: 14%; right: 6%; width: 16px; height: 16px; border-radius: 50%; background: #f5b301; box-shadow: none; animation: float 5s ease-in-out infinite 0.3s; }
.shape.s4 { bottom: 6%; left: 8%; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-2); box-shadow: none; animation: float 5.5s ease-in-out infinite 0.9s; }
.shape svg { width: 26px; height: 26px; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Phone device ---------- */
.device {
  position: relative; z-index: 1;
  width: 270px; aspect-ratio: 9 / 19;
  background: #0f1722; border-radius: 38px; padding: 11px;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(15,23,34,0.06);
}
.device::after { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; background: #0f1722; border-radius: 0 0 14px 14px; z-index: 3; }
.device .screen { width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: #0e1110; color: #f4f3ea; display: flex; flex-direction: column; }
.g-top { display: flex; align-items: center; justify-content: space-between; padding: 30px 16px 2px; }
.g-top .gic { color: #8b918d; display: grid; place-items: center; }
.g-top .gic svg { width: 16px; height: 16px; }
.g-title { text-align: center; }
.g-title b { font-size: 0.92rem; font-weight: 800; letter-spacing: -0.01em; }
.g-title .tag { display: inline-block; margin-top: 4px; font-size: 0.56rem; font-weight: 800; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 999px; }
.g-title .tag.hard { background: rgba(255,111,111,0.16); color: #ff8585; }
.hearts { margin-top: 6px; color: #ff6f6f; font-size: 0.66rem; letter-spacing: 3px; }
.g-maze { flex: 1; display: grid; place-items: center; padding: 6px 16px; }
.g-maze svg { width: 100%; height: 100%; }
.g-controls { display: flex; gap: 9px; padding: 8px 14px 20px; }
.g-btn { flex: 1; text-align: center; padding: 9px 0; border-radius: 999px; font-size: 0.7rem; font-weight: 800; }
.g-hint { background: var(--grad); color: #06241d; }
.g-restart { border: 1px solid rgba(255,255,255,0.16); color: #e7e7df; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero-cta, .hero-rating { justify-content: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .eyebrow { margin-top: 8px; }
}

/* ---------- Logos / stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 0; }
.stat { text-align: center; padding: 26px 14px; }
.stat b { display: block; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 0.92rem; font-weight: 600; }
@media (max-width: 680px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
section { padding: 92px 0; }
.alt { background: var(--bg-soft); }
.section-head { max-width: 660px; margin: 0 auto 60px; text-align: center; }
.kicker { display: inline-block; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-ink); background: var(--tint); border: 1px solid var(--chip-border); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.section-sub { color: var(--muted); font-size: 1.08rem; margin-top: 16px; line-height: 1.6; }

/* ---------- Feature grid ---------- */
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.fcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; transition: transform 0.16s ease, box-shadow 0.18s ease, border-color 0.16s; }
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.fcard .ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 20px; color: #fff; }
.fcard .ico svg { width: 24px; height: 24px; }
.ico.g1 { background: linear-gradient(135deg,#0fbaa6,#38cf7a); }
.ico.g2 { background: linear-gradient(135deg,#3a7bff,#33c9ff); }
.ico.g3 { background: linear-gradient(135deg,#ff7a59,#ffb13c); }
.ico.g4 { background: linear-gradient(135deg,#8b5cf6,#c084fc); }
.ico.g5 { background: linear-gradient(135deg,#f43f8e,#ff7ab0); }
.ico.g6 { background: linear-gradient(135deg,#10b981,#5ee0a3); }
.fcard h3 { font-size: 1.14rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 9px; }
.fcard p { color: var(--muted); font-size: 0.96rem; line-height: 1.6; }

/* ---------- Feature highlight rows ---------- */
.featrow { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.featrow + .featrow { margin-top: 90px; }
.featrow.reverse .fr-media { order: 2; }
.fr-media { display: grid; place-items: center; position: relative; }
.fr-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.fr-copy p { color: var(--muted); font-size: 1.06rem; margin-top: 16px; line-height: 1.62; }
.checklist { list-style: none; margin-top: 24px; display: grid; gap: 13px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; color: var(--ink-soft); }
.checklist .tick { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--tint); color: var(--brand-ink); display: grid; place-items: center; }
.checklist .tick svg { width: 14px; height: 14px; }
@media (max-width: 860px) {
  .featrow { grid-template-columns: 1fr; gap: 36px; }
  .featrow.reverse .fr-media { order: 0; }
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px; position: relative; }
.step .num { width: 46px; height: 46px; border-radius: 13px; background: var(--tint); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; margin-bottom: 18px; }
.step h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.96rem; line-height: 1.58; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Screenshots showcase ---------- */
.shots { display: flex; gap: 28px; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.shots .device { width: 220px; }
.shots .device.lift { margin-bottom: 28px; }

/* real screenshot gallery */
.gallery { display: flex; gap: 20px; overflow-x: auto; padding: 6px 4px 26px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--brand) transparent; }
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 999px; }
.gallery::-webkit-scrollbar-track { background: var(--line-soft); border-radius: 999px; }
.gallery img { height: 560px; width: auto; border-radius: 26px; box-shadow: var(--shadow-md); scroll-snap-align: center; flex: 0 0 auto; }
.gallery-hint { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 6px; }
@media (max-width: 680px) { .gallery img { height: 440px; } }

/* real app icon as logo */
.brand .logo.img-logo { background: none; box-shadow: var(--shadow-brand); overflow: hidden; }
.brand .logo.img-logo img { width: 100%; height: 100%; object-fit: cover; }

/* framed real screenshot (hero + feature rows) */
.shot-card { position: relative; z-index: 1; width: 100%; max-width: 320px; border-radius: 30px; box-shadow: var(--shadow-md); display: block; }

/* ---------- Download CTA band ---------- */
.cta-band { background: var(--grad); border-radius: 28px; padding: 64px 48px; text-align: center; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-brand); }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.12); }
.cta-band::before { width: 280px; height: 280px; top: -120px; left: -80px; }
.cta-band::after { width: 220px; height: 220px; bottom: -120px; right: -60px; }
.cta-band h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); position: relative; }
.cta-band p { max-width: 540px; margin: 16px auto 0; opacity: 0.92; font-size: 1.08rem; position: relative; }
.cta-band .store-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; position: relative; }

/* ---------- Store badge ---------- */
.badge-store { display: inline-flex; align-items: center; gap: 11px; background: #0f1722; color: #fff; padding: 12px 22px; border-radius: 14px; transition: transform 0.14s, opacity 0.15s; }
.badge-store:hover { transform: translateY(-2px); }
.badge-store svg { width: 22px; height: 22px; }
.badge-store small { display: block; font-size: 0.64rem; color: #c4c9cf; line-height: 1.1; letter-spacing: 0.04em; }
.badge-store strong { font-size: 1.04rem; font-weight: 700; line-height: 1.2; }
.cta-band .badge-store { background: #fff; color: #0f1722; }
.cta-band .badge-store small { color: var(--muted); }
.badge-soon { background: rgba(255,255,255,0.16); color: #fff; cursor: default; }
.badge-soon small { color: rgba(255,255,255,0.8); }
.badge-soon:hover { transform: none; }
.featrow .badge-soon, .hero .badge-soon { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.featrow .badge-soon small, .hero .badge-soon small { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; transition: border-color 0.15s; }
.faq details[open] { border-color: var(--brand); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 1.04rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex-shrink: 0; transition: transform 0.2s; color: var(--brand); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq summary .chev svg { width: 18px; height: 18px; }
.faq details p { color: var(--muted); padding: 0 0 20px; line-height: 1.62; }

/* ---------- Apps list (privacy hub, etc.) ---------- */
.applist { display: grid; gap: 14px; }
.approw { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: border-color 0.15s, transform 0.12s; }
.approw:hover { border-color: var(--brand); transform: translateY(-2px); }
.approw .app-ico { width: 54px; height: 54px; border-radius: 15px; background: var(--grad); color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--shadow-brand); }
.approw .app-ico svg { width: 27px; height: 27px; }
.approw .meta { flex: 1; min-width: 0; }
.approw .meta b { font-size: 1.05rem; letter-spacing: -0.02em; }
.approw .meta span { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 2px; }
.pill { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--brand-ink); background: var(--tint); border: 1px solid var(--chip-border); padding: 5px 12px; border-radius: 999px; white-space: nowrap; }

/* ---------- Documents (privacy / legal) ---------- */
.doc { max-width: 760px; padding: 64px 0 96px; }
.doc-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.9rem; font-weight: 600; margin-bottom: 28px; }
.doc-back:hover { color: var(--brand-ink); }
.doc-back svg { width: 15px; height: 15px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.doc .updated { color: var(--muted); font-size: 0.92rem; margin-top: 12px; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.doc h2 { font-size: 1.3rem; font-weight: 700; margin: 40px 0 14px; }
.doc h3 { font-size: 1.05rem; font-weight: 700; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 1rem; line-height: 1.72; }
.doc p { margin-bottom: 14px; }
.doc ul { margin: 12px 0 18px 4px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.doc strong { color: var(--ink); font-weight: 700; }
.callout { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 8px 0 28px; font-size: 0.96rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: var(--bg-soft); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-brand { max-width: 300px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 0.94rem; line-height: 1.55; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 16px; font-weight: 800; }
.footer-col a { display: block; color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 11px; font-weight: 500; transition: color 0.15s; }
.footer-col a:hover { color: var(--brand-ink); }
.footer-bottom { padding-top: 28px; color: var(--muted); font-size: 0.88rem; }

@media (max-width: 680px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { display: none; }
  section { padding: 64px 0; }
}

/* =========================================================
   Studio hub + multi-game additions
   ========================================================= */

/* Display serif — used with restraint on studio & Star Battle heads */
.font-display { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; }
.theme-studio .hero h1, .theme-studio .section-title,
.theme-star .hero h1, .theme-star .section-title,
.theme-star .fr-copy h2, .theme-star .cta-band h2, .theme-star .doc h1 {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.04;
}

/* ---------- Studio hero ---------- */
.studio-hero { position: relative; padding: 96px 0 72px; text-align: center; }
.studio-hero .eyebrow { margin-bottom: 22px; }
.studio-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.studio-hero .lede { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--muted); max-width: 620px; margin: 24px auto 0; }
.studio-hero .hero-cta { justify-content: center; }
.hairline-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.hairline-row span { display: inline-flex; align-items: center; gap: 8px; }
.hairline-row .gd { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-gold); }

/* ---------- Games grid (studio home) ---------- */
.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 820px) { .games { grid-template-columns: 1fr; } }
.gamecard {
  position: relative; overflow: hidden; border-radius: 26px; padding: 34px;
  border: 1px solid var(--line); background: #fff;
  display: flex; flex-direction: column; gap: 22px;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.18s;
}
.gamecard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.gamecard .gc-head { display: flex; align-items: center; gap: 16px; }
.gamecard .gc-badge { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; color: #fff; flex-shrink: 0; box-shadow: 0 8px 22px rgba(15,23,34,0.16); }
.gamecard .gc-badge svg { width: 30px; height: 30px; }
.gc-badge.arrow { background: linear-gradient(135deg,#0fbaa6,#38cf7a); }
.gc-badge.star { background: linear-gradient(135deg,#2b3a4a,#3c5064); }
.gamecard h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.gamecard .gc-tag { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.gamecard p { color: var(--muted); font-size: 1rem; line-height: 1.62; }
.gc-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 2px; }
.gc-meta span { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }
.gc-art { border-radius: 18px; overflow: hidden; background: var(--bg-soft); display: grid; place-items: center; min-height: 190px; padding: 20px; }
.gc-art img { max-height: 230px; width: auto; border-radius: 16px; box-shadow: var(--shadow-md); }
.gc-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.gc-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 0.96rem; color: var(--brand-ink); }
.gc-link svg { width: 17px; height: 17px; transition: transform 0.16s; }
.gamecard:hover .gc-link svg { transform: translateX(3px); }
.soon-tag { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #8a6420; background: #f6edd6; border: 1px solid #e6d6ad; padding: 4px 10px; border-radius: 999px; }

/* ---------- Star Battle board (signature SVG) ---------- */
.sb-board { width: 100%; max-width: 340px; border-radius: 22px; box-shadow: var(--shadow-md); background: #f4f0e6; padding: 14px; }
.sb-board svg { width: 100%; height: auto; display: block; border-radius: 10px; }
.hero-art .sb-board { position: relative; z-index: 1; }
.sb-legend { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.sb-legend span { display: inline-flex; align-items: center; gap: 7px; }
.sb-legend .sw { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #1c1c1c; }
.sb-star { color: var(--accent-gold); }

/* ---------- About band (studio) ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.about-grid p { color: var(--muted); font-size: 1.06rem; line-height: 1.7; margin-top: 14px; }
.value-list { list-style: none; display: grid; gap: 16px; }
.value-list li { display: flex; gap: 14px; align-items: flex-start; }
.value-list .vi { width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--brand-ink); display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--chip-border); }
.value-list .vi svg { width: 20px; height: 20px; }
.value-list b { display: block; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.value-list span { color: var(--muted); font-size: 0.94rem; }

/* ---------- Legal / support sub-nav (tabs on doc pages) ---------- */
.doc-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 30px; }
.doc-tabs a { font-size: 0.9rem; font-weight: 700; color: var(--ink-soft); padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; transition: border-color 0.15s, color 0.15s; }
.doc-tabs a:hover { border-color: var(--brand); color: var(--brand-ink); }
.doc-tabs a.active { background: var(--tint); border-color: var(--chip-border); color: var(--brand-ink); }

/* app switch chips inside a legal hub */
.hub-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
@media (max-width: 620px) { .hub-apps { grid-template-columns: 1fr; } }

/* ---------- Support page ---------- */
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 8px 0 12px; }
.support-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; background: #fff; box-shadow: var(--shadow-sm); }
.support-card .si { width: 46px; height: 46px; border-radius: 13px; background: var(--tint); color: var(--brand-ink); display: grid; place-items: center; margin-bottom: 16px; border: 1px solid var(--chip-border); }
.support-card .si svg { width: 22px; height: 22px; }
.support-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 7px; }
.support-card p { color: var(--muted); font-size: 0.94rem; line-height: 1.6; margin-bottom: 12px; }
.support-card a.support-link { color: var(--brand-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; font-size: 0.94rem; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--grad); color: #fff; border-radius: 20px; padding: 30px 32px; margin: 30px 0 10px; box-shadow: var(--shadow-brand); }
.contact-card h3 { font-size: 1.3rem; font-weight: 800; }
.contact-card p { opacity: 0.92; margin-top: 4px; }
.contact-card .btn-ghost { background: #fff; }

/* ---------- Footer: game columns ---------- */
.footer-cols .footer-col.wide { min-width: 150px; }
