/* =========================================================
   Creating Play — studio site
   Palette: night ink, royal blue, crown gold, parchment
   ========================================================= */

:root {
  --ink: #0b0f1a;
  --ink-2: #121a2b;
  --ink-3: #1b2640;
  --royal: #2c4a8c;
  --royal-2: #3f66b8;
  --gold: #d9a441;
  --gold-2: #f0c770;
  --ember: #c4502f;
  --frost: #8fd3e8;
  --parchment: #efe3c8;
  --parchment-2: #d8c8a5;
  --text: #ece6d8;
  --muted: #a9a59b;
  --line: rgba(217, 164, 65, 0.22);
  --radius: 14px;
  --max: 1160px;
  --display: "Montserrat", "Gotham", "Helvetica Neue", Arial, sans-serif;
  --body: "Montserrat", "Gotham", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint paper grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video, iframe { max-width: 100%; display: block; }

a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: #fff;
}
h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }

p { margin: 0 0 1.1em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.lead { font-size: 1.15rem; color: var(--parchment); max-width: 62ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(11, 15, 26, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: #fff;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.brand small {
  display: block;
  font-family: var(--body);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}
.nav-links a:hover { background: var(--ink-3); color: #fff; }
.nav-links a[aria-current="page"] { color: var(--gold-2); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

@media (max-width: 1100px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 10px; font-size: 1rem; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid var(--gold);
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(217, 164, 65, 0.25); }
.btn.ghost { background: transparent; color: var(--gold-2); }
.btn.ghost:hover { background: rgba(217, 164, 65, 0.1); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- sections ---------- */

section { padding: 88px 0; position: relative; }
section.tight { padding: 56px 0; }
.alt { background: var(--ink-2); }
.royal-bg {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(63, 102, 184, 0.35), transparent 60%),
    radial-gradient(ellipse at 90% 100%, rgba(217, 164, 65, 0.12), transparent 55%),
    var(--ink-2);
}

/* hand-drawn brush divider */
.divider {
  height: 22px;
  margin: 0 auto;
  max-width: 340px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 22'%3E%3Cpath d='M4 12 C 60 4, 110 18, 170 11 S 280 4, 336 12' fill='none' stroke='%23d9a441' stroke-width='2.2' stroke-linecap='round' opacity='.75'/%3E%3Ccircle cx='170' cy='11' r='4.5' fill='%23d9a441'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- hero ---------- */

.hero {
  min-height: calc(100vh - 68px);
  min-height: calc(100svh - 68px);
  display: flex;
  align-items: center;
  padding: 70px 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(63, 102, 184, 0.45), transparent 60%),
    radial-gradient(ellipse at 50% 120%, rgba(217, 164, 65, 0.18), transparent 55%),
    var(--ink);
}
.hero .wrap { position: relative; z-index: 2; }

.stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff8, transparent),
    radial-gradient(1px 1px at 28% 68%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 44% 14%, #fff9, transparent),
    radial-gradient(1px 1px at 63% 42%, #fff5, transparent),
    radial-gradient(1.5px 1.5px at 78% 18%, #fff8, transparent),
    radial-gradient(1px 1px at 88% 61%, #fff6, transparent),
    radial-gradient(1px 1px at 6% 84%, #fff5, transparent),
    radial-gradient(1.5px 1.5px at 52% 88%, #fff4, transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.5; } to { opacity: 1; } }

.quote {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.6rem, 4.6vw, 3.2rem);
  line-height: 1.25;
  color: #fff;
  max-width: 22ch;
  margin: 0 auto 18px;
  text-wrap: balance;
}
.quote::before, .quote::after { color: var(--gold); }
.quote::before { content: "\201C"; }
.quote::after { content: "\201D"; }
.quote-by {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 44px;
}

.page-hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(63, 102, 184, 0.4), transparent 60%),
    var(--ink);
  border-bottom: 1px solid var(--line);
}
.page-hero.siege {
  background:
    radial-gradient(ellipse at 80% 10%, rgba(196, 80, 47, 0.35), transparent 55%),
    radial-gradient(ellipse at 10% 100%, rgba(63, 102, 184, 0.3), transparent 60%),
    var(--ink);
}
.page-hero.rex {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(217, 164, 65, 0.3), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(143, 211, 232, 0.18), transparent 60%),
    var(--ink);
}
.tagline {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  letter-spacing: 0.1em;
  color: var(--gold-2);
  margin-top: -4px;
}

/* ---------- video / media slots ---------- */

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: #05070d;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(217, 164, 65, 0.06);
}
.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.video-label {
  text-align: center;
  margin-top: 14px;
  font-family: var(--display);
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--muted);
}

.placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 12px, transparent 12px 24px),
    radial-gradient(ellipse at center, var(--ink-3), #05070d 75%);
  color: var(--muted);
}
.placeholder .play {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  color: var(--gold);
}
.placeholder .play svg { width: 28px; height: 28px; margin-left: 4px; }
.placeholder strong {
  display: block;
  font-family: var(--display);
  color: #fff;
  letter-spacing: 0.1em;
  font-size: 1.05rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.video-grid .video-frame { max-width: none; }

/* ---------- grids & cards ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 > *, .grid-3 > * { min-width: 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
}
.feature-grid .card { padding: 22px; }
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(217, 164, 65, 0.12);
  color: var(--gold-2);
  margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }

/* game feature cards on landing */
.game-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--gold); color: var(--text); }
.game-card .art {
  aspect-ratio: 16 / 9;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.game-card .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-card .art.siege { background: radial-gradient(ellipse at 70% 30%, #c4502f88, transparent 60%), linear-gradient(160deg, #1b2640, #0b0f1a); }
.game-card .art.rex { background: radial-gradient(ellipse at 30% 30%, #d9a44177, transparent 60%), linear-gradient(160deg, #23345c, #0b0f1a); }
.game-card .art .art-title {
  position: relative;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #fff;
  text-align: center;
  padding: 0 20px;
  text-shadow: 0 4px 20px #000;
}
.game-card .body { padding: 24px 26px 28px; }
.game-card .meta {
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-family: var(--display);
}
.more { font-family: var(--display); letter-spacing: 0.12em; font-size: 0.82rem; text-transform: uppercase; color: var(--gold-2); }

/* fact list */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
}
.facts b {
  display: block;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ---------- interview ---------- */

.interview { max-width: 760px; margin: 0 auto; }
.qa { margin-bottom: 30px; }
.qa .q {
  font-family: var(--display);
  color: var(--gold-2);
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.qa .a { color: var(--parchment); }
.qa .a::before {
  content: "BM — ";
  font-family: var(--display);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.creator {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 auto 44px;
  max-width: 760px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--ink-3);
}
.creator .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(135deg, var(--royal-2), var(--gold));
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--ink);
  font-weight: 700;
  overflow: hidden;
}
.creator .avatar img { width: 100%; height: 100%; object-fit: cover; }
.creator h3 { margin: 0; }
.creator p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- lore ---------- */

.lore-scroll {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.35), transparent 70%),
    linear-gradient(180deg, var(--parchment), var(--parchment-2));
  color: #2a2116;
  border-radius: 6px;
  padding: clamp(28px, 5vw, 60px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5), inset 0 0 60px rgba(120, 85, 30, 0.25);
  max-width: 880px;
  margin: 0 auto;
  font-family: var(--body);
  font-size: 1.02rem;
}
.lore-scroll h2, .lore-scroll h3 { color: #2a2116; }
.lore-scroll h3 {
  margin-top: 1.6em;
  border-bottom: 1px solid rgba(42, 33, 22, 0.25);
  padding-bottom: 6px;
}
.lore-scroll h3:first-of-type { margin-top: 0.4em; }
.lore-scroll .drop::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 3.6rem;
  line-height: 0.9;
  padding: 6px 10px 0 0;
  color: #8a2e17;
}
.lore-scroll em { color: #5a3d16; }
.lore-scroll details {
  margin-top: 28px;
  border: 1px dashed rgba(138, 46, 23, 0.5);
  border-radius: 8px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.25);
}
.lore-scroll summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  color: #8a2e17;
  letter-spacing: 0.08em;
}
.lore-scroll details[open] summary { margin-bottom: 12px; }

.bestiary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.bestiary .card h3 { font-size: 1.1rem; }
.tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid currentColor;
  margin-bottom: 10px;
}
.tag.ally { color: var(--frost); }
.tag.foe { color: var(--ember); }
.tag.realm { color: var(--gold); }

/* ---------- screenshots ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.shot {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-3);
  cursor: zoom-in;
  padding: 0;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .placeholder { font-size: 0.9rem; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  place-items: center;
  padding: 20px;
  cursor: zoom-out;
}
.lightbox.open { display: grid; }
.lightbox img { max-height: 90vh; border-radius: 8px; }

/* ---------- forms ---------- */

.form { display: grid; gap: 20px; max-width: 720px; margin: 0 auto; }
.field label, .field legend {
  display: block;
  font-family: var(--display);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: var(--gold-2);
  margin-bottom: 8px;
}
.field .hint { font-size: 0.85rem; color: var(--muted); margin: -4px 0 8px; }
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label {
  font-family: var(--body);
  font-size: 0.95rem;
  letter-spacing: 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  margin: 0;
  background: var(--ink-2);
}
.choices input { accent-color: var(--gold); }
.choices label:has(input:checked) { border-color: var(--gold); background: rgba(217, 164, 65, 0.12); }

.rating { display: flex; gap: 8px; flex-direction: row-reverse; justify-content: flex-end; }
.rating input { position: absolute; opacity: 0; pointer-events: none; }
.rating label {
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-3);
  margin: 0;
  -webkit-text-stroke: 1px var(--gold);
}
.rating label:hover,
.rating label:hover ~ label,
.rating input:checked ~ label { color: var(--gold); }
.rating input:focus-visible + label { outline: 2px solid var(--gold); border-radius: 4px; }

.form-status {
  display: none;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid var(--gold);
  background: rgba(217, 164, 65, 0.1);
}
.form-status.show { display: block; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list .icon { margin: 0; flex: none; }

/* ---------- family / sibling studios ---------- */

.family-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease;
  height: 100%;
}
.family-card:hover { transform: translateY(-4px); color: var(--text); }
.family-card .band {
  height: 130px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 0.06em;
}
.family-card .body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.family-card .body p { flex: 1; }
.family-card.magic .band { background: radial-gradient(ellipse at 30% 20%, #9b6bff88, transparent 60%), linear-gradient(135deg, #2a1650, #0b0f1a); }
.family-card.magic:hover { border-color: #9b6bff; }
.family-card.wonder .band { background: radial-gradient(ellipse at 70% 30%, #4fd1c588, transparent 60%), linear-gradient(135deg, #0e3a40, #0b0f1a); }
.family-card.wonder:hover { border-color: #4fd1c5; }
.family-card.ads .band { background: radial-gradient(ellipse at 50% 20%, #ff7a5988, transparent 60%), linear-gradient(135deg, #4a1d14, #0b0f1a); }
.family-card.ads:hover { border-color: #ff7a59; }
.family-card.play .band { background: radial-gradient(ellipse at 50% 20%, #d9a44188, transparent 60%), linear-gradient(135deg, #23345c, #0b0f1a); }
.family-card.play:hover { border-color: var(--gold); }

/* ---------- timeline (studio page) ---------- */

.pillars { counter-reset: p; }
.pillars .card { position: relative; }
.pillars .card::before {
  counter-increment: p;
  content: counter(p, upper-roman);
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--display);
  font-size: 1.6rem;
  color: rgba(217, 164, 65, 0.3);
}

.pipeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pipeline li {
  position: relative;
  padding: 0 0 30px 46px;
  border-left: 2px solid var(--line);
  margin-left: 14px;
}
.pipeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.pipeline li::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--gold);
}
.pipeline h3 { font-size: 1.1rem; margin-bottom: 4px; }
.pipeline p { margin: 0; color: var(--muted); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 50px 0 36px;
  background: #070a12;
  font-size: 0.92rem;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.footer-grid h4 {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text); }
.footer-grid a:hover { color: var(--gold-2); }
.copyright {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .stars { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Game art additions
   ========================================================= */

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* split hero: text + key art */
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-split > * { min-width: 0; }
.game-logo { width: 100%; max-width: 520px; margin: 0 0 6px -6px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.6)); }
.key-art {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  object-position: center 72%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; gap: 32px; }
  .key-art { max-height: 420px; }
}

/* full-bleed painted hero (Crown of Rex) */
.page-hero.art-bg {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.page-hero.art-bg .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
}
.page-hero.art-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,15,26,.95) 0%, rgba(11,15,26,.82) 40%, rgba(11,15,26,.25) 75%, rgba(11,15,26,.1) 100%),
              linear-gradient(0deg, rgba(11,15,26,1) 0%, transparent 30%);
}
.page-hero.art-bg .wrap { position: relative; z-index: 2; }
.page-hero.art-bg .lead { max-width: 46ch; }
@media (max-width: 760px) {
  .page-hero.art-bg { padding-top: 300px; }
  .page-hero.art-bg .bg { height: 380px; object-position: 70% center; }
  .page-hero.art-bg::after {
    background: linear-gradient(0deg, rgba(11,15,26,1) 0%, rgba(11,15,26,1) calc(100% - 380px), rgba(11,15,26,.2) calc(100% - 200px), transparent 100%);
  }
}

/* vertical cinematic */
.video-frame.portrait {
  aspect-ratio: 9 / 16;
  max-width: 340px;
}
.video-frame.portrait video { object-fit: contain; }

/* character cards */
.cast {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 18px;
  margin-top: 40px;
}
@media (max-width: 520px) {
  .cast { grid-template-columns: 1fr 1fr; gap: 12px; }
}
.char {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
}
.char .portrait {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  background: var(--ink-3);
}
.char .portrait.sprite {
  object-fit: contain;
  padding: 10px;
  background: radial-gradient(ellipse at 50% 60%, rgba(196,80,47,.35), transparent 70%), var(--ink-3);
}
.char .portrait.wide { object-position: 30% center; }
.char .txt { padding: 14px 16px 18px; }
.char h3 { font-size: 1.02rem; margin-bottom: 6px; }
.char p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.char .tag { margin-bottom: 8px; font-size: 0.64rem; }
@media (max-width: 520px) {
  .char .txt { padding: 12px 12px 14px; }
  .char h3 { font-size: 0.92rem; }
  .char p { font-size: 0.84rem; }
}

/* level maps (portrait) */
.maps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.maps figure { margin: 0; }
.maps .shot { aspect-ratio: 5 / 8; width: 100%; }
.maps figcaption, .shot-cap {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 520px) { .maps { gap: 8px; } .maps figcaption { font-size: 0.72rem; } }

.shots figure { margin: 0; }
.shots .shot { width: 100%; }

/* regions */
.regions { display: grid; gap: 18px; }
.region {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.region img { width: 100%; height: 100%; aspect-ratio: 960 / 411; object-fit: cover; }
.region .txt { padding: 22px 26px; align-self: center; }
.region .lv {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.region h3 { margin: 6px 0 6px; }
.region p { margin: 0; color: var(--muted); }
@media (max-width: 700px) {
  .region { grid-template-columns: 1fr; }
  .region img { height: auto; }
  .region .txt { padding: 16px 18px 20px; }
}

.game-card .art img { filter: brightness(0.55) saturate(1.05); transition: filter .3s ease; }
.game-card:hover .art img { filter: brightness(0.7) saturate(1.1); }
.game-card .art .art-title { z-index: 2; }

/* studio logo */
.brand img { height: 24px; width: auto; display: block; }
.site-footer .brand img { height: 26px; }
.hero-logo { width: min(420px, 82%); height: auto; margin: 0 auto 26px; }
@media (max-width: 400px) { .brand img { height: 20px; } }

/* language menu */
.lang-menu { position: relative; margin-left: 8px; }
.lang-menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 16px; height: 16px; color: var(--gold-2); }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: var(--gold); }
.lang-menu summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lang-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  z-index: 60;
}
.lang-menu li a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.92rem;
}
.lang-menu li a:hover { background: var(--ink-3); }
.lang-menu li a[aria-current="true"] { color: var(--gold-2); }
.nav { gap: 8px; }
.nav .brand { margin-right: auto; }
.nav-links { order: 1; }
.lang-menu { order: 2; }
.nav-toggle { order: 3; }
@media (max-width: 1100px) {
  .lang-menu { margin-left: 0; }
  .lang-menu summary { height: 44px; }
}

/* =========================================================
   Layout 2 — light editorial (studio pages) + shared header
   ========================================================= */
:root { --pixel: "Silkscreen", "Courier New", monospace; --accent: #2f5bff; }

.eyebrow { font-family: var(--pixel); font-weight: 400; letter-spacing: 0.14em; font-size: 0.76rem; }

/* header: survey pill + mobile-only link */
.nav-cta {
  order: 3;
  margin-left: 8px;
  padding: 11px 20px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  background: #fff;
  color: #111;
}
.nav-cta:hover { color: #111; opacity: .88; }
.nav-toggle { order: 4; }
.nav-links .m-only { display: none; }
@media (max-width: 1100px) {
  .nav-cta { display: none; }
  .nav-links .m-only { display: list-item; }
}

/* ---------- light theme tokens ---------- */
body.light {
  --ink: #ffffff;
  --ink-2: #f4f5f7;
  --ink-3: #eceef1;
  --text: #111111;
  --muted: #5f6368;
  --parchment: #3a3a3a;
  --line: rgba(17, 17, 17, 0.12);
  --gold: #111111;
  --gold-2: #111111;
  color-scheme: light;
  background: #fff;
  color: #111;
}
body.light::before { display: none; }
body.light h1, body.light h2, body.light h3, body.light h4 { color: #111; letter-spacing: -0.025em; }
body.light a { color: #111; }
body.light .eyebrow { color: var(--accent); }
body.light .site-header { background: rgba(255, 255, 255, 0.9); border-bottom-color: transparent; box-shadow: 0 1px 0 rgba(17,17,17,.06); }
body.light .brand img { filter: invert(1); }
body.light .nav-links a { color: #444; }
body.light .nav-links a:hover { background: var(--ink-2); color: #111; }
body.light .nav-links a[aria-current="page"] { color: #111; font-weight: 600; }
body.light .nav-cta { background: #111; color: #fff; }
body.light .nav-toggle { border-color: var(--line); color: #111; }
body.light .lang-menu summary { color: #111; }
body.light .lang-menu summary svg { color: #111; }
body.light .lang-menu ul { background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.12); }
body.light .lang-menu li a { color: #111; }
body.light .lang-menu li a[aria-current="true"] { color: var(--accent); }
@media (max-width: 1100px) { body.light .nav-links { background: #fff; } }

/* buttons */
body.light .btn {
  background: #111; color: #fff; border: 1.5px solid #111;
  font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 0.92rem; font-weight: 600;
  padding: 15px 26px; box-shadow: none;
}
body.light .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.12); color: #fff; }
body.light .btn.ghost { background: transparent; color: #111; border-color: #d9d9de; }
body.light .btn.ghost:hover { border-color: #111; color: #111; }
body.light .btn.inverse, .btn.inverse { background: #fff; color: #111; border-color: #fff; }

/* surfaces */
body.light section { padding: 96px 0; }
body.light .alt { background: #f7f7f8; }
body.light .page-hero { background: #fff; border-bottom: 0; padding: 88px 0 40px; }
body.light .page-hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; }
body.light .page-hero .lead { font-size: 1.15rem; color: #555; }
body.light .royal-bg { background: #fff; }
body.light .royal-bg > .wrap {
  background: #111; color: #fff; border-radius: 28px; padding: 64px max(24px, 5vw);
}
body.light .royal-bg h2 { color: #fff; }
body.light .royal-bg .lead { color: #bbb; }
body.light .royal-bg .btn { background: #fff; color: #111; border-color: #fff; }
body.light .royal-bg .btn.ghost { background: transparent; color: #fff; border-color: #555; }
body.light .divider { display: none; }
body.light .card { background: var(--ink-2); border: 0; border-radius: 22px; }
body.light .card .icon { background: #fff; color: #111; }
body.light .pillars .card::before { color: rgba(17,17,17,.12); }
body.light .facts li { background: #fff; border-color: var(--line); }
body.light .facts b { font-family: var(--pixel); font-weight: 400; color: var(--accent); }
body.light .creator { background: var(--ink-2); border: 0; border-radius: 22px; }
body.light .creator .avatar { background: #111; color: #fff; }
body.light .pipeline li { border-left-color: #e3e3e8; }
body.light .pipeline li::before { background: #fff; border-color: #111; }
body.light .family-card { background: var(--ink-2); border: 0; border-radius: 22px; }
body.light .family-card .band { color: #fff; }
body.light .family-card .more, body.light .more { font-family: var(--pixel); font-weight: 400; color: var(--accent); }

/* forms */
body.light .field label, body.light .field legend { font-family: var(--body); font-weight: 600; letter-spacing: 0; color: #111; font-size: 0.95rem; }
body.light .field input[type="text"], body.light .field input[type="email"], body.light .field select, body.light .field textarea {
  background: #fff; border: 1.5px solid #dcdce1; color: #111;
}
body.light .field input:focus, body.light .field select:focus, body.light .field textarea:focus { outline-color: var(--accent); border-color: var(--accent); }
body.light .choices label { background: #fff; border: 1.5px solid #dcdce1; color: #111; }
body.light .choices input { accent-color: var(--accent); }
body.light .choices label:has(input:checked) { border-color: var(--accent); background: #f0f3ff; }
body.light .rating label { color: #e5e7eb; -webkit-text-stroke: 1px #111; }
body.light .rating label:hover, body.light .rating label:hover ~ label, body.light .rating input:checked ~ label { color: #111; }
body.light .form-status { border-color: var(--accent); background: #f0f3ff; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.privacy-note { font-size: 0.86rem; color: var(--muted); margin: 0; }
.privacy-note a { text-decoration: underline; }

/* footer */
body.light .site-footer { background: #fff; border-top: 1px solid #ececf0; color: #666; }
body.light .site-footer .brand img { filter: invert(1); opacity: .8; }
body.light .footer-grid h4 { font-family: var(--pixel); font-weight: 400; color: var(--accent); }
body.light .footer-grid a { color: #111; }
body.light .copyright { border-top-color: #ececf0; }

/* 404 */
body.light .hero { background: #fff; }
body.light .hero .stars { display: none; }

/* ---------- home (layout 2) ---------- */
.lx-hero { padding: 56px 0 88px !important; }
.lx-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.lx-hero-grid > * { min-width: 0; }
.lx-title {
  font-size: clamp(2.7rem, 6.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em !important;
  font-weight: 300;
  margin: 18px 0 22px;
  text-wrap: balance;
}
.lx-title strong { font-weight: 700; }
.lx-sub { font-size: 1.15rem; line-height: 1.6; color: #555; max-width: 44ch; margin: 0; }
.lx-trailer {
  position: relative; display: block; width: 100%; max-width: 100%; padding: 0; border: 0;
  border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; cursor: pointer; background: #eee;
}
.lx-trailer img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s ease; }
.lx-trailer:hover img { transform: scale(1.03); }
.lx-play {
  position: absolute; left: 24px; bottom: 24px; right: 24px; width: max-content; max-width: calc(100% - 48px);
  display: flex; align-items: center; gap: 10px; padding: 13px 20px 13px 16px; border-radius: 99px;
  background: #fff; color: #111; font: 600 0.92rem var(--body); text-align: left;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
}
.lx-play svg { width: 18px; height: 18px; flex: none; fill: #111; }
.lx-play small { font-weight: 500; color: #888; margin-left: 4px; }
.lx-trailer:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.lx-quote { padding: 0 !important; }
.lx-quote .wrap { border-top: 1px solid #ececf0; border-bottom: 1px solid #ececf0; padding-top: 52px; padding-bottom: 52px; text-align: center; }
.lx-q { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 300; letter-spacing: -0.015em; margin: 0 0 12px; color: #111; text-wrap: balance; }
.lx-by { font-family: var(--pixel); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: #999; margin: 0; }
.lx-h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 700; letter-spacing: -0.035em !important; margin: 0 0 36px; text-wrap: balance; }
.lx-gcards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lx-gcard { display: flex; flex-direction: column; background: #f4f5f7; border-radius: 22px; overflow: hidden; color: #111; transition: transform .25s ease, box-shadow .25s ease; }
.lx-gcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); color: #111; }
.lx-gcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.lx-gbody { padding: 26px 28px 30px; }
.lx-gbody .eyebrow { margin-bottom: 4px; }
.lx-gbody h3 { font-size: 1.45rem; margin: 6px 0 8px; }
.lx-gbody p { margin: 0; color: #666; }
.lx-stats-wrap { padding: 0 0 96px !important; }
.lx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.lx-stats div { border-top: 2px solid #111; padding-top: 16px; }
.lx-stats b { display: block; font-size: 2.8rem; letter-spacing: -0.04em; font-weight: 700; line-height: 1.1; }
.lx-stats span { color: #777; font-size: 0.92rem; }
.lx-studio { background: #f7f7f8; }
.lx-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.lx-split > * { min-width: 0; }
.lx-split .lx-h2 { font-weight: 300; margin: 0; }
.lx-split p { color: #555; font-size: 1.06rem; line-height: 1.75; margin: 0; }
.lx-cta { background: #111; color: #fff; border-radius: 28px; padding: 64px max(24px, 5vw); display: flex; gap: 28px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.lx-cta h2 { color: #fff !important; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0; max-width: 16ch; letter-spacing: -0.035em; }
@media (max-width: 860px) {
  .lx-hero { padding: 28px 0 64px !important; }
  .lx-hero-grid, .lx-split { grid-template-columns: 1fr; gap: 32px; }
  .lx-gcards { grid-template-columns: 1fr; }
  .lx-stats { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  body.light section { padding: 72px 0; }
}

/* trailer modal */
.tmodal { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.88); display: none; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px; }
.tmodal.open { display: grid; }
.tmodal .box { width: min(1100px, 100%); aspect-ratio: 16 / 9; position: relative; background: #000; border-radius: 12px; overflow: hidden; }
.tmodal iframe, .tmodal video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tmodal .x { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 22px; cursor: pointer; }

/* privacy page */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.4rem !important; margin: 40px 0 10px; }
.legal p, .legal li { color: #444; line-height: 1.75; }
.legal ul { padding-left: 20px; }
.lx-gcard img { height: auto; }
body.light .facts { grid-template-columns: 1fr 1fr; }
html[lang="ja"] { --display: "Montserrat", "Noto Sans JP", sans-serif; --body: "Montserrat", "Noto Sans JP", sans-serif; }
html[lang="ja"] body { line-break: strict; word-break: normal; overflow-wrap: anywhere; }

/* ---------- game pages in the light style ---------- */
body.light .page-hero.siege, body.light .page-hero.rex { background: #fff; }
body.light .game-logo { filter: none; margin-left: -4px; }
body.light .key-art { border: 0; box-shadow: 0 24px 60px rgba(0,0,0,.12); border-radius: 22px; }
body.light .tagline { color: #111; font-weight: 600; }
body.light .page-hero.art-bg { padding: 120px 0 96px; }
body.light .page-hero.art-bg::after {
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.94) 38%, rgba(255,255,255,.35) 68%, rgba(255,255,255,0) 100%),
              linear-gradient(0deg, #fff 0%, rgba(255,255,255,0) 22%);
}
body.light .page-hero.art-bg h1 { color: #111; }
@media (max-width: 760px) {
  body.light .page-hero.art-bg { padding-top: 300px; padding-bottom: 56px; }
  body.light .page-hero.art-bg::after {
    background: linear-gradient(0deg, #fff 0%, #fff calc(100% - 380px), rgba(255,255,255,.4) calc(100% - 220px), rgba(255,255,255,0) 100%);
  }
}
body.light .video-frame { border: 0; border-radius: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.12); }
body.light .video-label { font-family: var(--pixel); font-size: 0.72rem; color: #888; }
body.light .region { border: 0; border-radius: 22px; background: var(--ink-2); }
body.light .region .lv { font-family: var(--pixel); font-weight: 400; color: var(--accent); letter-spacing: .14em; }
body.light .shot { border: 0; border-radius: 14px; }
body.light .shot-cap, body.light .maps figcaption { font-family: var(--pixel); font-size: 0.7rem; letter-spacing: .1em; color: #888; }
body.light .lore-scroll {
  background: var(--ink-2); color: #333; box-shadow: none; border-radius: 22px;
  font-family: var(--body);
}
body.light .lore-scroll h3 { color: #111; border-bottom-color: #e2e2e8; }
body.light .lore-scroll em { color: #111; font-weight: 600; font-style: normal; }
body.light .lore-scroll .drop::first-letter { color: #111; font-weight: 700; }
body.light .char { background: #fff; border: 0; border-radius: 22px; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
body.light .char .portrait { background: var(--ink-2); }
body.light .char .portrait.sprite { background: radial-gradient(ellipse at 50% 60%, rgba(196,80,47,.14), transparent 70%), #f4f5f7; }
body.light .char p { color: #666; }
body.light .tag { font-family: var(--pixel); font-weight: 400; border-width: 1.5px; }
body.light .tag.ally { color: var(--accent); }
body.light .tag.foe { color: #c4502f; }
body.light .tag.realm { color: #111; }
body.light .qa .q { color: #111; font-weight: 700; font-family: var(--body); }
body.light .qa .a::before { font-family: var(--pixel); color: var(--accent); }
body.light #lore .cast { margin-top: 32px; }
body.light .placeholder {
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 12px, transparent 12px 24px), radial-gradient(ellipse at center, #2a2d36, #0d0e12 75%);
  color: #aaa;
}
body.light .placeholder strong { color: #fff; }
body.light .placeholder .play { border-color: #fff; color: #fff; }
body.light .key-art { object-position: center 82%; }
body.light .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts li { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 360px) { body.light .facts { grid-template-columns: 1fr; } }
.founder { margin: 0 0 20px; position: relative; border-radius: 22px; overflow: hidden; background: #0d1530; }
.founder img { width: 100%; height: auto; display: block; }
.founder figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 2px;
  padding: 14px 18px; border-radius: 16px; background: rgba(255,255,255,.94); color: #111;
}
.founder figcaption strong { font-size: 1.1rem; letter-spacing: -0.01em; }
.founder figcaption span { font-size: 0.85rem; color: #666; }
.ms-title { font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 1.04; margin: 0 0 10px; }
body.light .key-art { object-position: center top; }
.family-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 700px) { .family-grid { grid-template-columns: 1fr; } }

/* playable game on the home page */
.lx-run { padding: 0 0 88px !important; }
.lx-run-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.lx-run-grid > * { min-width: 0; }
.lx-run-text p { color: #55555f; line-height: 1.6; margin: 0 0 14px; }
.lx-run-text .lx-run-keys { font-size: 0.9rem; color: #777; }
.lx-run-card { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: pointer; background: #111; aspect-ratio: 16 / 9; box-shadow: 0 18px 50px rgba(0,0,0,.14); }
.lx-run-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.lx-run-card:hover img { transform: scale(1.03); }
.lx-run-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 900px) { .lx-run-grid { grid-template-columns: 1fr; gap: 28px; } .lx-run { padding-bottom: 64px !important; } }
.gmodal { position: fixed; inset: 0; z-index: 400; background: #0b0f17; display: none; }
.gmodal.open { display: block; }
.gmodal iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0b0f17; }
.gmodal .x { position: absolute; z-index: 2; top: max(10px, env(safe-area-inset-top, 0px)); left: max(10px, env(safe-area-inset-left, 0px)); height: 40px; padding: 0 16px; border-radius: 99px; border: 0; background: rgba(255,255,255,.92); color: #111; font: 600 0.85rem var(--body); cursor: pointer; }

.tmodal .ytlink { position: absolute; left: 50%; bottom: max(14px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); color: #fff; font: 600 0.85rem var(--body); text-decoration: underline; white-space: nowrap; }

/* Google Play button (Monster Siege) */
.btn.gplay { display: inline-flex; align-items: center; gap: 10px; padding-top: 9px; padding-bottom: 9px; background: #111; color: #fff; border-color: #111; text-align: left; line-height: 1.1; }
.btn.gplay svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn.gplay span { display: flex; flex-direction: column; }
.btn.gplay small { font-size: .68rem; font-weight: 500; letter-spacing: .02em; opacity: .85; }
.btn.gplay b { font-size: 1.02rem; font-weight: 700; }
.btn.gplay.soon { cursor: default; background: #fff; color: #111; border: 1px dashed #b9b9c3; }
.btn.gplay.soon:hover { transform: none; }

/* Crown of Rex: coming soon */
.soon-hero { min-height: min(88vh, 860px); display: flex; align-items: center; }
.soon-badge { display: inline-block; margin: 6px 0 18px; padding: 8px 16px; border-radius: 99px; background: #111; color: #fff; font: 700 .85rem/1 "Silkscreen", var(--body); letter-spacing: .08em; text-transform: uppercase; }

/* Family: channel artwork in the card bands (the artwork already shows the name) */
.family-card.play .band, .family-card.magic .band, .family-card.wonder .band, .family-card.ads .band { background-size: cover; background-position: center; background-repeat: no-repeat; font-size: 0; color: transparent; }
body.light .family-card.play .band { background-image: url("../assets/img/family-play.webp"); }
body.light .family-card.magic .band { background-image: url("../assets/img/family-magic.webp"); }
body.light .family-card.wonder .band { background-image: url("../assets/img/family-wonder.webp"); }
body.light .family-card.ads .band { background-image: url("../assets/img/family-ads.webp"); }
