/* Toy Breakers - ToyBreakers.com
   Fonts: Lilita One and Nunito, SIL Open Font License 1.1 (see /assets/fonts/OFL-*.txt). Self-hosted; no third-party requests. */

@font-face {
  font-family: "Lilita One";
  src: url("/assets/fonts/lilita-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #102131;
  --ink-2: #16304a;
  --ink-3: #1d3b58;
  --turquoise: #13c9d7;
  --gold: #ffc52e;
  --coral: #f24b42;
  --cream: #fff5df;
  --cream-muted: #d9cfbb;
  --line: rgba(255, 245, 223, 0.16);
  --max: 1120px;
  --radius: 14px;
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--turquoise); }
a:hover { color: var(--gold); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* Steam store state: set data-steam="live" on <html> once the store page is public. */
[data-steam="soon"] .steam-live { display: none !important; }
[data-steam="live"] .steam-soon { display: none !important; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 33, 49, 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(16, 33, 49, 0.82); backdrop-filter: blur(8px); }
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.wordmark {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-decoration: none;
  line-height: 1;
}
.wordmark { display: inline-flex; }
.wordmark img { height: 44px; width: auto; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
  padding: 6px 2px;
}
.site-nav a:hover { color: var(--gold); }

/* Buttons and badges */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 800 17px/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--turquoise); color: var(--ink); box-shadow: 0 4px 0 #0a8e98; }
.btn-primary:hover { background: #3fd8e3; color: var(--ink); }
.btn-secondary { background: transparent; border-color: var(--cream); color: var(--cream); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: 15px; }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px dashed var(--gold);
  color: var(--gold);
  font-weight: 800;
}

.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 96px 0 112px;
  background:
    radial-gradient(ellipse 70% 60% at 85% 20%, rgba(19, 201, 215, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 55% at 10% 90%, rgba(242, 75, 66, 0.20), transparent 70%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 33, 49, 0.92) 0%, rgba(16, 33, 49, 0.65) 45%, rgba(16, 33, 49, 0.1) 100%);
}

.hero-copy { max-width: 620px; }

.hero-logo { margin: 0 0 22px; }
.hero-logo img { width: min(480px, 100%); height: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35)); }

.hero h1 {
  margin: 0 0 18px;
  font: 400 clamp(44px, 7.5vw, 84px)/1.02 var(--display);
  color: var(--gold);
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}

.hero .lede { font-size: 19px; margin: 0 0 18px; }

.status {
  display: inline-block;
  margin: 0 0 28px;
  color: var(--turquoise);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
}

.art-caption {
  position: absolute;
  right: 16px;
  bottom: 12px;
  margin: 0;
  font-size: 13px;
  color: var(--cream-muted);
}

/* Sections */

.section { padding: 88px 0; }
.section-alt { background: var(--ink-2); }

.section h2 {
  margin: 0 0 16px;
  font: 400 clamp(32px, 5vw, 50px)/1.1 var(--display);
  color: var(--cream);
}
.section .intro { max-width: 720px; font-size: 19px; margin: 0 0 40px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.card {
  background: var(--ink-3);
  border-radius: var(--radius);
  padding: 26px 24px;
  border-top: 6px solid var(--turquoise);
}
.card:nth-child(2) { border-top-color: var(--gold); }
.card:nth-child(3) { border-top-color: var(--coral); }
.card h3 { margin: 0 0 8px; font: 400 24px/1.2 var(--display); }
.card p { margin: 0; color: var(--cream-muted); }

.dev-note { margin: 28px 0 0; font-size: 14px; color: var(--cream-muted); }

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: var(--radius); }
.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--ink-3);
}
.gallery figcaption { margin-top: 10px; font-size: 15px; color: var(--cream-muted); }

.slot {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  color: var(--cream-muted);
  font-size: 14px;
}

/* Campaign teaser */

.teaser {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(255, 197, 46, 0.16), transparent 70%),
    var(--ink);
}
.teaser .wrap { max-width: 820px; }
.teaser p { font-size: 20px; margin: 0; }

/* Updates */

.update {
  max-width: 720px;
  margin: 0 0 36px;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--gold);
}
.update time { color: var(--cream-muted); font-size: 14px; font-weight: 700; }
.update h3 { margin: 4px 0 6px; font: 400 24px/1.2 var(--display); }
.update p { margin: 0; }

/* Footer */

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--cream-muted);
  font-size: 15px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
  justify-content: space-between;
}
.site-footer p { margin: 0; }
.studio-logo img { height: 64px; width: auto; border-radius: 8px; }

/* Holding and error pages */

.simple {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.simple main {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 20px;
  background:
    radial-gradient(ellipse 70% 60% at 80% 15%, rgba(19, 201, 215, 0.2), transparent 70%),
    radial-gradient(ellipse 60% 55% at 15% 90%, rgba(242, 75, 66, 0.18), transparent 70%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
}
.simple .title {
  margin: 0 0 12px;
  font: 400 clamp(48px, 10vw, 96px)/1 var(--display);
  color: var(--cream);
}
.simple h2 {
  margin: 0 0 18px;
  font: 400 clamp(26px, 4.5vw, 40px)/1.15 var(--display);
  color: var(--gold);
}
.simple .actions { justify-content: center; }
.simple .site-footer .wrap { justify-content: center; text-align: center; }

/* Small screens */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { position: static; }
  .site-header .wrap { justify-content: center; }
  .hero { padding: 64px 0 80px; }
  .hero .lede { font-size: 17px; }
  .section { padding: 64px 0; }
  .hero-art::after { background: linear-gradient(180deg, rgba(16, 33, 49, 0.55) 0%, rgba(16, 33, 49, 0.9) 100%); }
  .site-footer .wrap { justify-content: center; text-align: center; }
}
