/* Cojokero Games press site. One stylesheet for every page.
   Studio tokens come from the Cojokero brand README (CojokeroAssets/.../export/cojokero).
   Game pages override the accent on <body> (.theme-m2m from the M2M store-page README, .theme-cyb). */

:root {
  --ground: #121213;
  --panel: #1B1B1D;
  --panel-2: #232326;
  --line: #2E2E32;
  --text: #F7F2E8;          /* bone */
  --muted: #A5A198;
  --yellow: #FFC422;        /* hazard yellow, studio primary */
  --orange: #F4671B;        /* sprite orange, accent only */
  --ink: #1B1B1D;
  --accent: var(--yellow);
  --accent-2: var(--orange);
  --accent-ink: #1B1B1D;
  --head-font: "Barlow Condensed", "Inter", sans-serif;
  --head-weight: 600;
  --max: 1120px;
  color-scheme: dark;
}

.theme-m2m {
  --ground: #0B0E0C;
  --panel: #161A18;         /* bezel */
  --panel-2: #1C211E;
  --line: #2C3530;
  --text: #EEF2EE;
  --muted: #9FAAA1;
  --accent: #FFE137;        /* M2M hazard yellow */
  --accent-2: #FF9614;      /* amber */
  --head-font: "Big Shoulders Stencil Display", "Inter", sans-serif;
  --head-weight: 800;
}

.theme-cyb {
  --ground: #0E0B14;
  --panel: #17121F;
  --panel-2: #1E1828;
  --line: #2E2640;
  --accent: #FF3DB8;
  --accent-2: #35E0FF;
  --head-font: "Chakra Petch", "Inter", sans-serif;
  --head-weight: 700;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--text); }

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

/* ---------- studio lockup (text, Barlow Condensed per the brand README) ---------- */

.lockup {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: #F7F2E8;
}
.lockup img { width: 36px; height: 36px; border-radius: 3px; }
.lockup .words { display: flex; flex-direction: column; line-height: 1; font-family: "Barlow Condensed", sans-serif; }
.lockup .words b { font-weight: 600; font-size: 22px; letter-spacing: 0.02em; }
.lockup .words i { font-style: normal; font-weight: 500; font-size: 11px; letter-spacing: 0.4em; color: #FFC422; margin-top: 2px; }
.lockup:hover { color: #F7F2E8; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 20px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.topbar nav { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar nav a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600;
  font-family: "Barlow Condensed", sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
}
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--text); }

.hazard {
  height: 8px;
  background: repeating-linear-gradient(-45deg, #FFC422 0 12px, #1B1B1D 12px 24px);
}
.theme-m2m .hazard { background: repeating-linear-gradient(-45deg, #FFE137 0 12px, #0B0E0C 12px 24px); }
.theme-cyb .hazard { background: linear-gradient(90deg, var(--accent), var(--accent-2)); height: 3px; }

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

.hero { border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 75% 40%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%); }
.hero .wrap {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center;
  padding-top: 56px; padding-bottom: 56px;
}
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; } .hero .art { order: -1; } }
.hero .kicker {
  font-family: "Barlow Condensed", sans-serif; font-size: 15px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent-2);
}
.hero h1 {
  font-family: var(--head-font); font-weight: var(--head-weight);
  font-size: clamp(44px, 7vw, 76px); line-height: 0.95; margin: 8px 0 18px;
  color: var(--accent); text-transform: uppercase;
}
.hero h1 small { display: block; font-size: 0.5em; color: var(--text); letter-spacing: 0.06em; }
.hero .lede { font-size: 18px; margin: 0 0 24px; }
.hero .art img, .hero .art video {
  width: 100%; border-radius: 6px; border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
}

.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 3px;
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 18px;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--accent);
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--text); border-color: var(--text); color: var(--ink); }
.btn.ghost { color: var(--text); }
.btn.ghost:hover { border-color: var(--text); }

/* ---------- press kit layout ---------- */

.kit { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 40px; padding: 48px 16px 64px; }
@media (max-width: 860px) { .kit { grid-template-columns: 1fr; gap: 32px; } }

.facts {
  align-self: start; position: sticky; top: 88px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 20px;
}
@media (max-width: 860px) { .facts { position: static; } }
.facts dl { margin: 0; }
.facts dt {
  font-family: "Barlow Condensed", sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 14px;
}
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }

section { scroll-margin-top: 88px; }
section + section { margin-top: 56px; }

h2 {
  font-family: var(--head-font); font-weight: var(--head-weight);
  font-size: 34px; line-height: 1.05; margin: 0 0 16px;
  text-transform: uppercase; letter-spacing: 0.02em;
}
h2::after { content: ""; display: block; width: 48px; height: 4px; margin-top: 8px; background: var(--accent); }
h3 { font-size: 18px; margin: 24px 0 8px; }

p { margin: 0 0 14px; }
.muted { color: var(--muted); }

/* the store-page banner blocks (M2M) */
.beat { margin: 0 0 28px; }
.beat .banner { width: 100%; max-width: 616px; image-rendering: auto; }
.beat .gif { width: 100%; max-width: 616px; margin: 12px 0; border-radius: 3px; }
.beat p { max-width: 616px; }
.tape { width: 100%; max-width: 616px; margin: 8px 0 28px; }

ul.features { padding-left: 0; list-style: none; margin: 0; }
ul.features li { position: relative; padding-left: 24px; margin-bottom: 10px; }
ul.features li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; background: var(--accent);
}

/* ---------- media ---------- */

.video-frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: #000; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.video-frame iframe, .video-frame video, .video-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover;
}

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }
.gallery a { display: block; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.gallery a:hover { border-color: var(--accent); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.asset {
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column;
}
.asset .thumb {
  position: relative; aspect-ratio: 16 / 10;
  background: repeating-conic-gradient(#1a1a1a 0 25%, #242424 0 50%) 0 0 / 16px 16px;
}
.asset .thumb img {
  position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain;
}
.asset .thumb .todo { position: absolute; inset: 0; margin: auto; height: fit-content; width: fit-content; }
.asset .meta { padding: 10px 12px; font-size: 14px; }
.asset .meta a { font-weight: 700; text-decoration: none; }
.asset .meta span { display: block; color: var(--muted); font-size: 12px; }

.callout { background: var(--panel); border-left: 4px solid var(--accent); padding: 14px 16px; border-radius: 0 6px 6px 0; }

/* Placeholders still to fill. Loud on purpose so none ship by accident. */
.todo {
  background: #3a1030; color: #FFB3E6; outline: 1px dashed #FF3DB8;
  padding: 0 4px; border-radius: 2px; font-style: normal;
}

/* ---------- studio home ---------- */

.studio-hero { background: #FFC422; color: #1B1B1D; }
.studio-hero .wrap {
  display: grid; grid-template-columns: auto 1fr; gap: 32px 40px; align-items: center;
  padding-top: 72px; padding-bottom: 72px;
}
@media (max-width: 700px) { .studio-hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; } }
.studio-hero .mark { width: 140px; height: 140px; }
.studio-hero h1 {
  margin: 0; font-family: "Barlow Condensed", sans-serif; font-weight: 600;
  font-size: clamp(56px, 10vw, 104px); line-height: 0.9; letter-spacing: 0.01em;
}
.studio-hero h1 span {
  display: block; font-weight: 500; font-size: 0.26em; letter-spacing: 0.4em; margin-top: 10px;
}
.studio-hero p { grid-column: 1 / -1; max-width: 680px; font-size: 19px; margin: 0; }
.studio-hero .todo { color: #6b0a4a; background: #ffe0f3; }

.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 56px 0 24px; }
@media (max-width: 760px) { .games { grid-template-columns: 1fr; } }
.game-card {
  display: block; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.game-card:hover { border-color: var(--yellow); transform: translateY(-2px); color: var(--text); }
.game-card img { width: 100%; aspect-ratio: 920 / 430; object-fit: cover; }
.game-card .body { padding: 16px 18px 20px; }
.game-card h2 { font-size: 30px; margin-bottom: 6px; }
.game-card h2::after { display: none; }
.game-card .status {
  display: inline-block; font-family: "Barlow Condensed", sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #1B1B1D; background: var(--yellow); padding: 2px 10px; border-radius: 2px; margin-bottom: 10px;
}
.game-card .status.out { background: var(--orange); }
.game-card .go { color: var(--yellow); font-family: "Barlow Condensed", sans-serif; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

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

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer a { color: var(--muted); }

.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a {
  display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 3px;
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 16px; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none; color: var(--text);
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }

.jump { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 18px; padding-bottom: 0; }
.jump a {
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 15px; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; color: var(--muted);
}
.jump a:hover { color: var(--accent); }
.kit { padding-top: 28px; }

/* CybArena store headings (2x images shown at half width) + mercenary rows */
.cyb-heading { height: auto; max-width: 100%; margin: 36px 0 12px; }
#about .cyb-heading:first-of-type { margin-top: 0; }
#about .gif { width: 100%; max-width: 616px; margin: 12px 0 16px; border-radius: 3px; }
.merc { display: grid; grid-template-columns: 132px 1fr; gap: 12px 18px; margin: 0 0 28px; align-items: start; }
.merc .plate { width: 132px; height: 132px; image-rendering: pixelated; }
.merc .merc-name { height: auto; margin-bottom: 6px; }
.merc .gif { grid-column: 1 / -1; max-width: 468px; margin: 0; }
@media (max-width: 520px) { .merc { grid-template-columns: 88px 1fr; } .merc .plate { width: 88px; height: 88px; } }
