/* Layout: toy-box arcade. Chunky outlined wordmark + fanned phone frames up top,
   then one wide "cartridge" row per game, a five-step pipeline, and a publisher contact strip. */
:root {
  --bg: #fff6dc;
  --surface: #ffffff;
  --ink: #1b1f5e;
  --muted: #5a5f8f;
  --line: #e8dcb8;
  --sun: #ffc531;
  --punch: #ef4136;
  --magnet: #2f6bff;
  --chip-bg: #fbecc0;
  --shadow: 0 6px 0 #1b1f5e;
  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11143a; --surface: #1c2157; --ink: #f3f1ff; --muted: #a8acd9; --line: #2c3274;
    --sun: #ffc531; --punch: #ff6457; --magnet: #6b95ff; --chip-bg: #2a2f6e;
    --shadow: 0 6px 0 #070920; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11143a; --surface: #1c2157; --ink: #f3f1ff; --muted: #a8acd9; --line: #2c3274;
  --sun: #ffc531; --punch: #ff6457; --magnet: #6b95ff; --chip-bg: #2a2f6e;
  --shadow: 0 6px 0 #070920; color-scheme: dark;
}

* { box-sizing: border-box; }
img { max-width: 100%; }
[hidden] { display: none !important; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.05rem; line-height: 1.6;
  margin: 0; padding-inline: 16px;
}
.wrap { max-width: 1120px; margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: 0.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--magnet); outline-offset: 3px; border-radius: 6px; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; flex-wrap: wrap; }
.logo { font-family: var(--display); font-size: 1.7rem; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--sun); border: 3px solid var(--ink); display: grid; place-items: center; font-size: 1.1rem; color: #1b1f5e; transform: rotate(-8deg); }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-weight: 700; font-size: 0.95rem; }
.nav ul a { text-decoration: none; }
.nav ul a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--sun); text-underline-offset: 5px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-block: 28px 64px; }
.hero > * { min-width: 0; }
.eyebrow { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.wordmark {
  font-size: clamp(4rem, 13vw, 8.5rem); color: var(--sun);
  -webkit-text-stroke: 0.06em #1b1f5e; paint-order: stroke fill;
  text-shadow: 0 0.07em 0 #1b1f5e; margin-block: 8px 18px; line-height: 0.95;
}
.hero-lede { font-size: 1.3rem; max-width: 30ch; font-weight: 500; }
.hero-lede strong { font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 14px;
  font-family: var(--display); font-size: 1.15rem; text-decoration: none; letter-spacing: 0.02em;
  border: 3px solid var(--ink); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; cursor: pointer;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(6px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--sun); color: #1b1f5e; }
.btn-ghost { background: var(--surface); color: var(--ink); }

.fan { position: relative; height: 470px; }
.phone {
  position: absolute; top: 20px; width: 210px; aspect-ratio: 9 / 16; max-width: 46%;
  border-radius: 26px; border: 6px solid #1b1f5e; overflow: hidden; background: #1b1f5e;
  box-shadow: 0 18px 40px rgba(17, 20, 58, 0.25);
  transition: transform .35s cubic-bezier(.2,.9,.3,1.3);
}
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone.p1 { left: 2%;  transform: rotate(-9deg) translateY(30px); }
.phone.p2 { left: 50%; transform: translateX(-50%); z-index: 2; top: 0; }
.phone.p3 { right: 2%; transform: rotate(9deg) translateY(30px); }
.fan:hover .p1 { transform: rotate(-13deg) translate(-12px, 24px); }
.fan:hover .p3 { transform: rotate(13deg) translate(12px, 24px); }
/* a landscape game (Last Lord Standing) is shown on a 16:10 tablet, in front of the fan: padding is the bezel, so the camera dot can sit in it */
.phone.tablet { aspect-ratio: 16 / 10; width: 460px; max-width: 96%; top: auto; bottom: -4px; right: -4%; z-index: 3; transform: rotate(6deg);
  border-width: 3px; border-radius: 22px; padding: 11px; }
.phone.tablet img { border-radius: 9px; }
.phone.tablet::before { content: ""; position: absolute; top: 4px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #3a4290; }
.fan:hover .phone.tablet { transform: rotate(9deg) translate(10px, 8px); }
@media (min-width: 1200px) { .phone.tablet { right: -14%; } } /* only where the page has room past the column */
html, body { overflow-x: clip; } /* the tilted tablet may poke past the window edge: trim it, never scroll sideways */
/* the phone under the mouse lifts to the front (above the burst too); on leave it settles first, then drops back */
.fan .phone { transition: transform .35s cubic-bezier(.2,.9,.3,1.3), box-shadow .35s, z-index 0s .3s; }
.fan .phone:hover { z-index: 5; box-shadow: 0 28px 56px rgba(17, 20, 58, 0.38); transition-delay: 0s; }
.fan .phone.p1:hover { transform: rotate(-5deg) translate(-8px, 6px) scale(1.08); }
.fan .phone.p2:hover { transform: translateX(-50%) translateY(-12px) scale(1.06); }
.fan .phone.tablet:hover { transform: rotate(3deg) translate(4px, -10px) scale(1.1); }
.burst {
  position: absolute; z-index: 4; left: 34%; bottom: -6px; transform: translateX(-50%) rotate(-4deg);
  background: var(--punch); color: #fff; font-family: var(--display); font-size: 1.25rem;
  padding: 8px 18px; border-radius: 12px; border: 3px solid #1b1f5e; white-space: nowrap;
}

/* sections */
section { padding-block: 56px; border-top: 3px dashed var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.sec-head p { color: var(--muted); max-width: 46ch; }

/* games */
.games { display: grid; gap: 28px; }
.game {
  display: grid; grid-template-columns: 1fr 190px; gap: 28px; align-items: center;
  background: var(--surface); border: 3px solid var(--ink); border-radius: 24px; padding: 28px;
  box-shadow: var(--shadow);
}
.game > * { min-width: 0; }
.game-top { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.game-icon { width: 72px; height: 72px; border-radius: 18px; border: 3px solid var(--ink); flex: none; object-fit: cover; }
.game h3 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.tagline { font-weight: 700; color: var(--muted); }
.game-desc { max-width: 60ch; }
.specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.specs li { background: var(--chip-bg); border-radius: 999px; padding: 4px 12px; font-size: 0.85rem; font-weight: 700; }
.specs li span { color: var(--muted); font-weight: 500; margin-right: 4px; }
.status { display: inline-block; margin-top: 18px; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; border-radius: 8px; border: 2px solid currentColor; }
.status.live { color: #1f9d55; }
.status.soon { color: var(--punch); }
.status.dev { color: var(--magnet); }
.game-shot { width: 100%; aspect-ratio: 9 / 16; border-radius: 18px; border: 5px solid #1b1f5e; overflow: hidden; background: #1b1f5e; transform: rotate(3deg); }
.game:nth-child(even) .game-shot { transform: rotate(-3deg); }
.game-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.game-foot .status { margin-top: 0; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 0.92rem; text-decoration: none; color: var(--ink); border-bottom: 3px solid var(--sun); padding-bottom: 1px; }
.card-link:hover { border-bottom-color: var(--punch); }
.card-link svg { width: 18px; height: 18px; flex: none; }
.yt-row { margin-top: 18px; }
.yt-row a { color: var(--sun); font-weight: 800; }
footer a { color: inherit; }
.game-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.next {
  margin-top: 8px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
  border: 3px dashed var(--muted); border-radius: 24px; padding: 24px 28px;
}
.next-badge { font-family: var(--display); font-size: 1rem; background: var(--magnet); color: #fff; padding: 10px 14px; border-radius: 14px; transform: rotate(-4deg); }
.next h3 { font-size: 1.6rem; margin-bottom: 4px; }
.next > div { min-width: 0; }

.cat-head { display: flex; justify-content: space-between; align-items: end; gap: 8px 24px; flex-wrap: wrap; margin: 8px 0 20px; padding-top: 28px; border-top: 3px solid var(--ink); }
.sec-head + .cat-head { border-top: 0; padding-top: 0; }
.cat-title { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
.cat-head p { color: var(--muted); max-width: 46ch; }
.subhead { font-family: var(--body); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 8px 0 14px; }
.games + .subhead, .games + .cat-head, .dev-grid + .cat-head { margin-top: 44px; }
.dev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dev-card { background: var(--surface); border: 2px dashed var(--muted); border-radius: 20px; padding: 20px 22px; min-width: 0; }
.dev-card h4 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin: 0; line-height: 1.15; }
.dev-card .wt { font-family: var(--body); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); vertical-align: middle; margin-left: 4px; white-space: nowrap; }
.dev-tag { font-weight: 700; color: var(--muted); margin: 2px 0 10px; }
.dev-card .specs { margin-top: 14px; }
.dev-card .card-link { margin-top: 14px; }
@media (max-width: 620px) { .dev-grid { grid-template-columns: 1fr; } }

/* pipeline */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border-radius: 18px; padding: 20px; border: 2px solid var(--line); position: relative; min-width: 0; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--sun); color: #1b1f5e; font-family: var(--display); font-size: 1.3rem; border: 3px solid #1b1f5e; margin-bottom: 14px;
}
.steps h3 { font-size: 1.25rem; margin-bottom: 6px; }
.steps p { font-size: 0.95rem; color: var(--muted); }
.bar { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar span { color: var(--muted); font-weight: 500; }

/* follow */
.follow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.follow h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 8px; }
.follow p { color: var(--muted); max-width: 46ch; }
.btn-yt { background: #e62117; color: #fff; }
.btn-yt svg { width: 26px; height: 26px; flex: none; }

/* contact */
.contact {
  background: var(--ink); color: var(--bg); border-radius: 28px; padding: 44px clamp(22px, 5vw, 56px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; margin-block: 56px;
}
.contact > * { min-width: 0; }
.contact h2 { font-size: clamp(2rem, 5vw, 3rem); color: var(--sun); margin-bottom: 12px; }
.contact p { opacity: 0.9; max-width: 44ch; }
.mailbox { background: var(--bg); color: var(--ink); border-radius: 18px; padding: 20px; display: grid; gap: 12px; }
.mailbox .label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.mail { font-family: var(--display); font-size: clamp(1.15rem, 3.4vw, 1.5rem); overflow-wrap: anywhere; user-select: all; }
.copy-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.copy-row .btn { font-size: 1rem; padding: 8px 16px; }
#copyNote { font-weight: 700; font-size: 0.9rem; color: var(--muted); }

footer { padding-block: 8px 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .fan { height: 400px; max-width: 460px; width: 100%; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav ul { gap: 16px; }
  .game { grid-template-columns: 1fr; padding: 22px; }
  .game-shot { max-width: 200px; margin-inline: auto; }
  .fan { height: 330px; }
  .phone { width: 150px; }
  .phone.tablet { width: 300px; padding: 8px; bottom: -2px; right: -3%; }
  .steps { grid-template-columns: 1fr; }
  .next { grid-template-columns: 1fr; }
  .next-badge { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* generated: tiles + game pages (tools/pages.css) */
/* compact game tiles (home page + "more games") */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tile {
  display: flex; gap: 14px; align-items: center; min-width: 0;
  background: var(--surface); color: var(--ink); text-decoration: none;
  border: 3px solid var(--ink); border-radius: 20px; padding: 14px 16px;
  box-shadow: 0 4px 0 var(--ink); transition: transform .12s, box-shadow .12s;
}
.tile:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.tile:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.tile-icon { width: 72px; height: 72px; border-radius: 18px; border: 3px solid var(--ink); flex: none; object-fit: cover; }
.tile-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tile-name { font-family: var(--display); font-size: 1.35rem; line-height: 1.1; }
.tile-tag { font-size: 0.9rem; font-weight: 600; color: var(--muted); line-height: 1.35; }
.tiles + .subhead, .tiles + .cat-head { margin-top: 40px; }

.pill { align-self: flex-start; display: inline-block; margin-top: 4px; font-weight: 800; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 9px; border-radius: 7px; border: 2px solid currentColor; }
.pill.live { color: #1f9d55; }
.pill.soon { color: var(--punch); }
.pill.dev { color: var(--magnet); }

/* game pages */
.game-page { padding-block: 8px 24px; }
.crumb { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a::before { content: "← "; }
.crumb a:hover { color: var(--ink); }
.gp-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.gp-icon { width: 112px; height: 112px; border-radius: 26px; border: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink); flex: none; }
.gp-title { min-width: 0; flex: 1 1 320px; }
.gp-title h1 { font-size: clamp(2.4rem, 7vw, 4rem); color: var(--ink); }
.gp-tagline { font-size: 1.2rem; font-weight: 700; color: var(--muted); margin-top: 6px; }
.gp-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.gp-actions .pill { margin-top: 0; align-self: center; }
.gp-actions .btn svg { width: 18px; height: 18px; }

.gp-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-block: 36px; max-width: 860px; }
.gp-shots.single { grid-template-columns: minmax(0, 280px); }
.phone-shot { border-radius: 22px; border: 5px solid #1b1f5e; overflow: hidden; background: #1b1f5e; aspect-ratio: 9 / 16; max-width: 100%; }
.phone-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* landscape (PC) games: one big shot, then two side by side */
.gp-shots.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gp-shots.wide .pc-shot:first-child { grid-column: 1 / -1; }
.pc-shot { border-radius: 18px; border: 5px solid #1b1f5e; overflow: hidden; background: #1b1f5e; aspect-ratio: 16 / 9; max-width: 100%; }
.pc-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* trailer: a picture with a play button until clicked, then the YouTube player */
.gp-video { max-width: 860px; margin-block: 8px 40px; }
.yt-facade, .gp-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 5px solid #1b1f5e; border-radius: 22px; overflow: hidden; background: #1b1f5e; box-shadow: var(--shadow); }
.yt-facade { position: relative; padding: 0; cursor: pointer; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border-radius: 50%; background: var(--sun); color: #1b1f5e; border: 4px solid #1b1f5e; display: grid; place-items: center; transition: transform .15s; }
.yt-play svg { width: 44px; height: 44px; margin-left: 6px; }
.yt-facade:hover .yt-play, .yt-facade:focus-visible .yt-play { transform: scale(1.08); }
.gp-about { max-width: 68ch; display: grid; gap: 14px; font-size: 1.1rem; }
.gp-about .specs { margin-top: 4px; }
.gp-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: 36px; max-width: 860px; }
.hl { background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 18px 20px; min-width: 0; }
.hl h3 { font-size: 1.3rem; margin-bottom: 6px; }
.hl p { color: var(--muted); }
.gp-more { padding-block: 32px 8px; border-top: 3px dashed var(--line); }
.gp-more h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 18px; }

@media (max-width: 620px) {
  .gp-head { gap: 16px; }
  .gp-icon { width: 84px; height: 84px; border-radius: 20px; }
  .gp-shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; }
  .gp-shots .phone-shot { flex: 0 0 62%; scroll-snap-align: start; }
  .gp-shots .pc-shot { flex: 0 0 88%; scroll-snap-align: start; }
  .gp-highlights { grid-template-columns: 1fr; }
}

/* nav labels stay on one line */
.nav ul { flex-wrap: wrap; gap: 8px 18px; }
.nav ul a { white-space: nowrap; }
