/* Blue Crate — studio site. Colours match the logo and the splash screen. */
:root {
  --bg: #040B1A;
  --bg-glow: #0B2147;
  --panel: #0A1730;
  --panel-2: #0E1F40;
  --line: rgba(91, 184, 255, .16);
  --text: #EAF2FF;
  --muted: #8FA3C4;
  --blue: #3D8BFF;
  --sky: #5BB8FF;
  --deep: #0F4FA8;
  --gold: #FFD84D;
  --radius: 14px;
  --wrap: 1120px;
  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--font);
  color: var(--text);
  background: var(--bg) radial-gradient(ellipse 90% 60% at 50% 0%, var(--bg-glow), transparent 70%) no-repeat;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
.px { image-rendering: pixelated; }
a { color: var(--sky); text-decoration: none; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(4, 11, 26, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); letter-spacing: .14em; font-size: 15px; white-space: nowrap; }
.brand img { height: 34px; width: auto; }
.brand b { color: var(--blue); font-weight: 800; }
.brand span { font-weight: 300; }
.nav { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* ---- shared ---- */
section { padding: 72px 0; }
.eyebrow { margin: 0 0 8px; color: var(--sky); font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 700; margin-bottom: 28px; }
.lead { color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); max-width: 640px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
}
.btn:hover { background: var(--sky); color: var(--bg); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--sky); color: var(--sky); }

.pill {
  display: inline-block; align-self: flex-start; padding: 4px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 216, 77, .4); color: var(--gold);
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { font-size: 13px; color: var(--muted); background: var(--panel-2); border-radius: 6px; padding: 2px 9px; }

/* ---- home: hero ---- */
.hero { text-align: center; padding: 88px 0 64px; }
.hero .logo { width: min(620px, 100%); height: auto; margin: 0 auto 28px; }
.hero .lead { margin: 0 auto; }

/* ---- home: games grid ---- */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.game-card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--text);
  transition: transform .2s, border-color .2s;
}
a.game-card:hover { transform: translateY(-4px); border-color: rgba(91, 184, 255, .5); color: var(--text); }
.game-card .cover { aspect-ratio: 960 / 448; width: 100%; object-fit: cover; }
.game-card .body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.game-card h3 { font-size: 21px; }
.game-card p { margin: 0; color: var(--muted); font-size: 15px; }
.game-card .more { margin-top: auto; color: var(--sky); font-weight: 600; font-size: 15px; }

.game-card.soon {
  border-style: dashed; background: transparent; align-items: center; justify-content: center;
  text-align: center; padding: 36px 24px; min-height: 280px;
}
.game-card.soon img { width: 84px; opacity: .55; margin-bottom: 16px; filter: grayscale(.3); }
.game-card.soon h3 { font-size: 19px; color: var(--muted); }
.game-card.soon p { max-width: 260px; }

/* ---- home: about ---- */
.about { border-top: 1px solid var(--line); }
.about .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about p { color: var(--muted); margin: 0 0 16px; }
.values { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.values li { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; color: var(--muted); font-size: 15px; }
.values b { display: block; color: var(--text); font-size: 16px; margin-bottom: 2px; }

/* ---- game page ---- */
.game-hero { position: relative; min-height: min(78vh, 680px); display: grid; place-items: center; text-align: center; overflow: hidden; }
.game-hero > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 50% 48%, rgba(4,11,26,.6), transparent 75%),
    linear-gradient(180deg, rgba(4,11,26,.35) 0%, rgba(4,11,26,.2) 45%, var(--bg) 100%);
}
.game-hero .inner { position: relative; z-index: 1; padding: 56px 0; }
.game-hero .title-logo { width: min(640px, 100%); margin: 0 auto; filter: drop-shadow(0 6px 0 rgba(4,11,26,.6)); }
.game-hero .pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.game-hero .title-logo { margin-bottom: 18px; }
.game-hero .tagline { font-size: clamp(20px, 3vw, 28px); font-weight: 700; margin: 4px 0 18px; text-shadow: 0 2px 12px rgba(4,11,26,.9); }
.game-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }

.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.game-layout p { color: var(--muted); }
.features { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.features li { position: relative; padding-left: 26px; color: var(--muted); }
.features li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.features b { color: var(--text); font-weight: 600; }

.facts { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 88px; }
.facts dl { margin: 0; display: grid; gap: 14px; }
.facts dt { color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.facts dd { margin: 2px 0 0; font-size: 15px; }

.trailer video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #000; border: 1px solid var(--line); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 14px; }
.gallery a { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.04); }

.back { display: inline-block; margin-bottom: 24px; color: var(--muted); font-size: 15px; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.site-footer .brand { font-size: 13px; }
.site-footer .brand img { height: 26px; }

@media (max-width: 820px) {
  section { padding: 56px 0; }
  .about .cols, .game-layout { grid-template-columns: 1fr; gap: 32px; }
  .facts { position: static; }
}
@media (max-width: 520px) {
  .brand span, .brand b { display: none; }
  .nav { gap: 16px; }
  .hero { padding: 56px 0 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
