/* paneempire.com – the game's own page, in the game's colours and its pixel font. */

@font-face { font-family: "Galmuri9"; src: url("assets/fonts/galmuri9.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Galmuri11"; src: url("assets/fonts/galmuri11.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Galmuri11"; src: url("assets/fonts/galmuri11-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Galmuri14"; src: url("assets/fonts/galmuri14.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #1a1c2c;
  --night: #262b44;
  --navy: #3a4466;
  --slate: #5a6988;
  --steel: #8b9bb4;
  --mist: #c0cbdc;
  --paper: #f4f4f4;
  --cyan: #73eff7;
  --sky: #2ce8f5;
  --sea: #0099db;
  --yellow: #fee761;
  --gold: #feae34;
  --shadow: #0e0f1a;
  --font-display: "Galmuri14", "Galmuri11", ui-monospace, monospace;
  --font-ui: "Galmuri11", "Galmuri9", ui-monospace, monospace;
  --font-body: "Galmuri9", "Galmuri11", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 18px;            /* Galmuri9 at 2x: crisp */
  line-height: 1.5;
}

img { display: block; max-width: 100%; height: auto; }
/* Pixel art is shipped pre-scaled by whole factors; the browser only ever shrinks it. */

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--yellow); text-decoration: underline; text-underline-offset: 0.2em; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.2; }
h2 { font-family: var(--font-display); font-size: 28px; color: var(--cyan); text-shadow: 3px 3px 0 var(--shadow); }
h3 { font-family: var(--font-ui); font-size: 22px; font-weight: 700; color: var(--yellow); }
@media (min-width: 720px) { h2 { font-size: 42px; } }

p { margin: 0 0 1em; }
em { font-style: normal; color: var(--yellow); }
strong { font-weight: 400; color: var(--yellow); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: 0.5rem 1rem; background: var(--yellow); color: var(--ink); font-family: var(--font-ui);
}
.skip:focus { top: 1rem; }

.section { max-width: 1120px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 40px); }
.section > h2 { margin-bottom: 28px; }

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

.btn {
  display: inline-block; padding: 12px 22px 10px;
  font-family: var(--font-ui); font-size: 22px; line-height: 1; text-align: center;
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--shadow);
  transition: transform 0.08s;
}
.btn:hover { text-decoration: none; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow); }
.btn--primary { background: var(--yellow); color: var(--ink); font-weight: 700; }
.btn--primary:hover { background: #fff08a; color: var(--ink); }
.btn--ghost { background: var(--night); color: var(--cyan); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--paper); }

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

.top {
  z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(26, 28, 44, 0.94); border-bottom: 3px solid var(--night);
}
.top-brand img { width: 120px; }
@media (min-width: 720px) { .top { position: sticky; top: 0; } }
.top-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 18px; font-family: var(--font-body); font-size: 18px; }
.top-nav a { color: var(--mist); }
.top-nav a:hover { color: var(--yellow); }

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

.hero {
  position: relative; overflow: hidden;
  max-width: 1120px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 40px) 24px;
  display: grid; gap: 32px; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #29366f, transparent 70%);
}
.hero-text { text-align: center; }
.hero-logo img { width: min(100%, 300px); margin: 0 auto; }
.tagline { margin: 12px 0 20px; font-family: var(--font-ui); font-size: 22px; font-weight: 700; color: var(--yellow); text-shadow: 2px 2px 0 var(--shadow); }
.lead { margin: 0 auto 24px; max-width: 34em; color: var(--mist); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0 0 20px; }
.hero-platforms { margin: 0; color: var(--steel); font-size: 18px; }
.hero-art { margin: 0 auto; width: min(100%, 340px); position: relative; }
.hero-art img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 64%; border: 3px solid var(--navy); box-shadow: 6px 6px 0 var(--shadow); }

@media (min-width: 900px) {
  .hero { grid-template-columns: 7fr 5fr; padding-top: 56px; padding-bottom: 56px; }
  .hero-text { text-align: left; }
  .hero-logo img { margin: 0; width: 360px; }
  .lead { margin-left: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero-art { width: 360px; justify-self: end; }
  .hero-art img { aspect-ratio: 9 / 20; object-position: 50% 50%; }
}

/* ---- pitch ----------------------------------------------------------- */

.pitch { border-top: 3px solid var(--night); }
.pitch-grid { display: grid; gap: 32px; }
.pitch-copy h2 { margin-bottom: 20px; }
.pitch-copy p { color: var(--mist); max-width: 40em; }
.pitch-facts {
  list-style: none; margin: 0; padding: 0; align-self: start;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.pitch-facts li {
  padding: 16px 14px 12px; background: var(--night); border: 3px solid var(--navy); box-shadow: 4px 4px 0 var(--shadow);
  color: var(--mist); line-height: 1.3;
}
.pitch-facts strong { display: block; font-family: var(--font-display); font-size: 28px; color: var(--yellow); margin-bottom: 6px; }
@media (min-width: 900px) { .pitch-grid { grid-template-columns: 3fr 2fr; gap: 56px; } }

/* ---- features (over the city map) ------------------------------------ */

.features {
  max-width: none; padding: 0; position: relative;
  background: var(--ink) url("assets/city-band.png") center / cover no-repeat;
  border-top: 3px solid var(--night); border-bottom: 3px solid var(--night);
}
.features::before { content: ""; position: absolute; inset: 0; background: rgba(26, 28, 44, 0.88); }
.features-inner { position: relative; max-width: 1120px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 40px); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.feature-list li {
  display: grid; grid-template-columns: 64px 1fr; gap: 6px 16px; align-items: start;
  padding: 18px 18px 8px; background: rgba(38, 43, 68, 0.94); border: 3px solid var(--navy); box-shadow: 4px 4px 0 var(--shadow);
}
.feature-list img { width: 64px; grid-row: span 2; }
.feature-list h3 { margin-top: 4px; }
.feature-list p { color: var(--mist); margin-bottom: 8px; }
@media (min-width: 720px) { .feature-list { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1040px) { .feature-list { grid-template-columns: repeat(3, 1fr); } }

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

.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.shot { display: block; border: 3px solid var(--navy); box-shadow: 4px 4px 0 var(--shadow); background: var(--night); }
.shot:hover { border-color: var(--cyan); }
.shot img { width: 100%; }
.shots-note { margin: 16px 0 0; color: var(--steel); }
@media (min-width: 600px) { .shots { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .shots { grid-template-columns: repeat(6, 1fr); gap: 12px; } }

.lightbox {
  padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  display: none; place-items: center;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgba(14, 15, 26, 0.92); }
.lightbox img { width: auto; height: auto; max-width: min(92vw, 540px); max-height: 92vh; border: 3px solid var(--navy); box-shadow: 6px 6px 0 var(--shadow); }
.lightbox-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; padding: 0; cursor: pointer;
  font-family: var(--font-display); font-size: 28px; line-height: 1;
  background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--shadow);
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-close { top: 12px; right: 12px; transform: none; }

/* ---- trailer --------------------------------------------------------- */

.trailer video { width: 100%; border: 3px solid var(--navy); box-shadow: 6px 6px 0 var(--shadow); background: var(--shadow); }

/* ---- beta / stores --------------------------------------------------- */

.beta { border-top: 3px solid var(--night); }
.beta-lead { max-width: 36em; color: var(--mist); margin-bottom: 28px; }
.stores { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.stores li { display: flex; }  /* every box fills its row, so a "Coming soon" next to a live badge keeps the same height */
.store {
  flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 72px;
  padding: 10px 16px 8px; background: var(--night); border: 3px solid var(--navy); box-shadow: 4px 4px 0 var(--shadow);
  color: var(--steel); line-height: 1.15;
}
.store-kicker { font-family: var(--font-body); font-size: 18px; }
.store-name { font-family: var(--font-display); font-size: 28px; color: var(--mist); }
/* Live: the pixel caption stays as our own text; the store's official badge below it is the link.
   The badges are shown as shipped (no recolour, tint or hover effect) with their clear space:
   Apple and Google ask for a quarter of the badge height on every side, Valve for the diameter of
   the symbol's crank; the 4 px link padding plus the box's 16 px gives 20 px around a 48–50 px badge. */
.store.is-live { color: var(--mist); padding-bottom: 16px; }
.store.is-live .store-name { color: var(--yellow); }
.store.is-live:has(.store-badge:hover) { border-color: var(--cyan); }
.store-badge { align-self: flex-start; margin-top: 14px; padding: 4px; line-height: 0; }
.store-badge img { height: 48px; width: auto; }
.store[data-store="googleplay"] .store-badge img,  /* Google: its badge is never smaller than the other stores' */
.store[data-store="steam"] .store-badge img { height: 50px; }  /* Valve: the logo is at least 50 px onscreen */
.beta-notes { display: grid; gap: 4px; max-width: 46em; color: var(--mist); }
.beta-notes p { margin: 0 0 8px; }
@media (min-width: 560px) { .stores { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .stores { grid-template-columns: repeat(4, 1fr); } }

/* ---- contact --------------------------------------------------------- */

.contact { border-top: 3px solid var(--night); }
.contact p { color: var(--mist); }
.contact-mail { font-family: var(--font-ui); font-size: 22px; overflow-wrap: anywhere; }
@media (min-width: 720px) { .contact-mail { font-family: var(--font-display); font-size: 28px; } }

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

.foot {
  border-top: 3px solid var(--night); background: var(--shadow);
  padding: 28px clamp(16px, 4vw, 40px) 36px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  color: var(--steel);
}
.foot-studio { display: inline-flex; align-items: center; gap: 14px; color: var(--mist); }
.foot-studio img { width: 72px; opacity: 0.92; }
.foot-studio:hover { color: var(--paper); text-decoration: none; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: var(--steel); }
.foot-links a:hover { color: var(--yellow); }
.foot-copy { margin: 0; }
.foot-marks { flex-basis: 100%; margin: 0; display: grid; gap: 4px; color: var(--slate); line-height: 1.35; }
.foot-marks span:not([hidden]) { display: block; }
