/* DMNK Studio — dark asphalt theme, lane-marking yellow */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Barlow:wght@400;500;600&display=swap');

:root {
  --bg: #15171A;
  --bg-raised: #1C1F23;
  --surface: #22262B;
  --surface-hi: #2A2F35;
  --line: #33383F;
  --text: #ECEDEF;
  --muted: #9CA2AB;
  --marking: #F5C518;
  --marking-hi: #FFD43B;
  --eu-blue: #0B3D91;
  --ink: #16181B;
  --display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --body: 'Barlow', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--marking); }
a:focus-visible {
  outline: 3px solid var(--marking);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--marking); color: var(--ink); padding: .5rem 1rem; z-index: 20;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(21, 23, 26, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .8rem; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  color: var(--text); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.site-nav a {
  color: var(--muted); text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 1.1rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--bg-raised);
}
.hero-media {
  position: absolute; inset: 0;
  /* hero.png = the studio key art; the ELC shot shows if it is missing */
  background:
    url('../images/hero.png') center / cover no-repeat,
    url('../images/european-luxury-cars.jpg') center / cover no-repeat,
    linear-gradient(135deg, #2A2F35, #15171A);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(21,23,26,.92) 0%, rgba(21,23,26,.65) 45%, rgba(21,23,26,.15) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(21,23,26,0) 45%);
}
.hero-inner { position: relative; padding-top: 8rem; }
.hero-kicker {
  margin: 0 0 .6rem;
  color: var(--marking);
  font-family: var(--display); font-weight: 600; font-size: 1.2rem;
}
.hero h1 {
  margin: 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(3.4rem, 11vw, 8rem);
  line-height: .92;
  letter-spacing: .01em;
}
.hero-lead {
  max-width: 36ch;
  margin: 1.2rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: #D4D7DB;
}
.hero-actions { margin-top: 2rem; display: flex; gap: .8rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 600; font-size: 1.15rem;
  text-decoration: none;
  padding: .65rem 1.3rem;
  border-radius: 8px;
  border: 1px solid transparent;
}
.btn-primary { background: var(--marking); color: var(--ink); }
.btn-primary:hover { background: var(--marking-hi); }
.btn-ghost { color: var(--text); border-color: var(--line); background: var(--bg-raised); }
.btn-ghost:hover { border-color: var(--muted); }

.stats {
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  padding: 0 0 2.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.stats div {
  display: flex; flex-direction: column;
  border-left: 3px solid var(--marking); padding-left: .9rem;
}
.stats dt { color: var(--muted); font-size: .95rem; }
.stats dd {
  margin: 0; order: -1;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.1;
}

.lane {
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--marking) 0 56px, transparent 56px 96px);
  opacity: .9;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section + .section { padding-top: 0; }
.section-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.3rem); line-height: 1.05;
  margin: 0 0 .5rem;
}
.section-intro { margin: 0 0 2.2rem; max-width: 60ch; color: var(--muted); }

/* Shared bits */
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 .9rem; padding: 0; list-style: none; }
.chips li {
  font-size: .88rem; font-weight: 500;
  color: var(--text);
  background: var(--surface-hi);
  border-radius: 6px;
  padding: .12rem .55rem;
}
.chips .star { color: var(--marking); }

.stores { display: flex; gap: .6rem; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: .55rem;
  height: 46px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid #A6A6A6;
  padding: 0 .9rem 0 .7rem; border-radius: 8px;
  line-height: 1.05;
  font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.store:hover { border-color: #fff; }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: .66rem; letter-spacing: .02em; }
.store strong { display: block; font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; }

.shot {
  margin: 0;
  background: linear-gradient(135deg, var(--surface-hi), var(--surface));
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }

.app-icon {
  width: 52px; height: 52px; border-radius: 12px; flex: none;
  background: var(--surface-hi);
  object-fit: cover;
}

/* ---------- Featured game ---------- */
.featured {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}
.featured .shot { aspect-ratio: auto; min-height: 100%; }
.featured-body { padding: clamp(1.5rem, 3.5vw, 2.6rem); display: flex; flex-direction: column; justify-content: center; }
.featured-label {
  color: var(--marking);
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  margin: 0 0 .8rem;
}
.featured-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .9rem; }
.featured h3 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.6rem); line-height: 1.02; margin: 0;
}
.featured p { margin: 0 0 1.4rem; color: var(--muted); }

/* ---------- Game grid ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
.game {
  display: flex; flex-direction: column;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.game-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.game-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.game-head .app-icon { width: 44px; height: 44px; border-radius: 10px; }
.game h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 1.45rem; line-height: 1.1; margin: 0;
}
.game p { margin: 0 0 1.1rem; color: var(--muted); font-size: .98rem; }
.game .stores { margin-top: auto; }

.game.is-dev { border-style: dashed; }
.tag-dev {
  display: inline-block; align-self: flex-start;
  background: var(--marking); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  padding: .1rem .55rem; border-radius: 5px;
  margin-bottom: .7rem;
}

/* ---------- Contact ---------- */
.contact-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.6rem, 4vw, 3rem);
}
.contact-panel .section-intro { margin-bottom: 0; }
.contact-panel dl { margin: 0; }
.contact-panel dt { color: var(--muted); font-size: .92rem; margin-top: 1.1rem; }
.contact-panel dt:first-child { margin-top: 0; }
.contact-panel dd { margin: .1rem 0 0; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.site-footer .wrap {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 1.8rem;
}
.site-footer a { color: var(--text); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---------- Legal page ---------- */
.legal .wrap { max-width: 780px; }
.legal h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1.05; margin: 0 0 .4rem;
}
.legal h2 {
  font-family: var(--display); font-weight: 700;
  font-size: 1.6rem; margin: 2.4rem 0 .5rem;
}
.legal p, .legal li { max-width: 70ch; color: #D4D7DB; }
.legal .updated { color: var(--muted); margin-top: 0; }
.legal table { border-collapse: collapse; width: 100%; font-size: .98rem; }
.legal th, .legal td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--muted); font-weight: 500; }
.table-scroll { overflow-x: auto; }
.todo { background: rgba(245, 197, 24, .25); color: var(--text); padding: 0 .25rem; border-radius: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured { grid-template-columns: 1fr; }
  .featured .shot { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .game-grid, .contact-panel { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
  .stats dd { font-size: 1.7rem; }
  .stats dt { font-size: .8rem; }
  .hero-inner { padding-top: 6rem; }
  .site-nav ul { gap: 1.1rem; }
}

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

/* ---------- In development ---------- */

.featured.coming h3 { margin-bottom: .9rem; }

/* ---------- Archive ---------- */
.archive-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.archived {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-raised);
}
.archived .shot img { filter: grayscale(.85) brightness(.8); transition: filter .25s ease; }
.archived:hover .shot img { filter: none; }
@media (prefers-reduced-motion: reduce) { .archived .shot img { transition: none; } }
.archived-body { padding: .9rem 1.1rem 1.1rem; }
.archived .game-head { margin-bottom: .35rem; gap: .6rem; }
.archived .app-icon { width: 36px; height: 36px; border-radius: 8px; filter: grayscale(.6); }
.archived h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 1.25rem; line-height: 1.15; margin: 0;
  color: #C9CCD1;
}
.archived-meta { margin: 0 0 .6rem; font-size: .85rem; color: var(--muted); }
.archived-meta span { margin-left: .5rem; padding-left: .5rem; border-left: 1px solid var(--line); }
.archived p:last-child { margin: 0; font-size: .95rem; color: var(--muted); }
.shot-logo { position: relative; background: linear-gradient(135deg, #3a1d1d, var(--bg-raised)); }
.archived .shot-logo img { position: absolute; top: 14%; left: 50%; transform: translateX(-50%); width: auto; height: 72%; aspect-ratio: 1; object-fit: contain; border-radius: 14px; }

/* Prominent in-development badge */
.dev-badge {
  display: inline-flex; align-items: center; gap: .6rem; align-self: flex-start;
  margin: 0 0 1rem;
  background: var(--marking); color: var(--ink);
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1;
  padding: .55rem 1rem .5rem; border-radius: 8px;
}
.dev-dot {
  width: .55em; height: .55em; border-radius: 50%;
  background: var(--ink);
  animation: dev-pulse 1.6s ease-in-out infinite;
}
@keyframes dev-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .dev-dot { animation: none; } }
.featured.coming { border: 2px solid var(--marking); }
.featured.coming h3 { font-size: clamp(2.3rem, 4.4vw, 3.2rem); }
.legal h3 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin: 1.6rem 0 .4rem; }
.legal strong { color: var(--text); }
.featured .dev-badge { color: var(--ink); margin-bottom: 1rem; }
