:root {
  --cream: #fff7ea;
  --cream-deep: #fdebc8;
  --paper: #ffffff;
  --ink: #2a1206;
  --muted: #6b4630;
  --link: #8a2c0d;
  --yolk: #fbb21f;
  --yolk-deep: #f59b0b;
  --night: #0b0f16;
  --night-raised: #141b26;
  --night-text: #eef3f8;
  --night-muted: #b4c3d2;
  --ice: #8be4ff;
  --outline: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --radius: 18px;
  --font-display: "Fredoka", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.night :focus-visible { outline-color: var(--yolk); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.site-header { border-bottom: 2px solid var(--cream-deep); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--ink);
  font: 600 1.2rem var(--font-display);
  text-decoration: none;
}
.brand img { width: 40px; height: 40px; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover { background: var(--cream-deep); }

.hero { padding: 56px 0 72px; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 40px;
}
.hero-logo { justify-self: center; width: 100%; max-width: 340px; }
h1 {
  margin: 0 0 8px;
  font: 600 clamp(2.4rem, 7vw, 4rem)/1.05 var(--font-display);
  letter-spacing: -0.01em;
}
.tagline {
  display: inline-block;
  margin: 0 0 20px;
  padding: 4px 14px;
  background: var(--yolk);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
}
.intro { margin: 0 0 12px; font-size: 1.2rem; max-width: 36em; }
.intro + .intro { color: var(--muted); font-size: 1.0625rem; }

.buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border: var(--outline);
  border-radius: 999px;
  background: var(--yolk);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font: 600 1.05rem var(--font-display);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--yolk-deep); text-decoration: none; }
.btn.secondary { background: var(--paper); }
.btn.secondary:hover { background: var(--cream-deep); }
.night .btn { border-color: var(--yolk); box-shadow: 4px 4px 0 var(--yolk); color: var(--ink); }
.night .btn.secondary { background: transparent; color: var(--night-text); }
.night .btn.secondary:hover { background: var(--night-raised); }

@media (prefers-reduced-motion: no-preference) {
  .btn, .card { transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background-color 0.15s; }
  .btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
  .night .btn:hover { box-shadow: 6px 6px 0 var(--yolk); }
  .btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
}

section { padding: 72px 0; }
h2 {
  margin: 0 0 12px;
  font: 600 clamp(1.8rem, 4.5vw, 2.5rem)/1.15 var(--font-display);
}
.section-intro { margin: 0 0 32px; color: var(--muted); max-width: 40em; }
.eyebrow {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.night {
  position: relative;
  isolation: isolate;
  background: var(--night);
  color: var(--night-text);
  overflow: hidden;
}
.night::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(11, 15, 22, 0.55), var(--night) 92%),
    linear-gradient(to right, var(--night) 0%, rgba(11, 15, 22, 0.75) 45%, rgba(11, 15, 22, 0.35) 100%),
    url("img/fe-hero.jpg") 70% top / cover no-repeat;
}
.night a { color: var(--ice); }
.night .eyebrow { color: var(--yolk); }
.game-logo { margin: 0 0 16px; }
.game-logo img { display: block; width: 100%; max-width: 440px; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.7)); }
.game-genre { margin: 0 0 16px; font-weight: 800; font-size: 1.15rem; }
.game-copy { max-width: 36em; }
.game-copy p { margin: 0 0 12px; color: var(--night-muted); }
.game-copy .game-status { color: var(--night-text); font-weight: 700; }
.game-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 24px 0 0; padding: 0; list-style: none; }
.game-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
.shots img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 2px solid rgba(139, 228, 255, 0.35);
  border-radius: 12px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  min-height: 88px;
  padding: 16px 18px;
  border: var(--outline);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
}
a.card:hover { background: var(--cream-deep); text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  a.card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
}
.card-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font: 600 1.2rem var(--font-display);
}
.card-name::after { content: "\2197"; font-family: var(--font-body); font-weight: 800; }
.card-handle { color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }

.follow { background: var(--cream-deep); }
.follow .card { box-shadow: var(--shadow); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-grid .card { min-height: 0; gap: 8px; padding: 22px; }
.contact-grid .card-name::after { content: none; }
.contact-grid p { margin: 0; color: var(--muted); }
.contact-grid .btn { align-self: flex-start; margin-top: auto; box-shadow: 3px 3px 0 var(--ink); }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.email-row a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; overflow-wrap: anywhere; }
.copy-btn {
  min-height: 44px;
  padding: 6px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 700 0.95rem var(--font-body);
  cursor: pointer;
}
.copy-btn:hover { background: var(--cream-deep); }

.site-footer {
  padding: 40px 0;
  background: var(--ink);
  color: var(--cream);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.site-footer img { width: 48px; height: 48px; }
.site-footer p { margin: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--yolk); }
.site-footer :focus-visible { outline-color: var(--yolk); }
.footer-text { flex: 1 1 280px; }
.footer-note { color: #e7d5bf; font-size: 0.95rem; }

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

@media (max-width: 760px) {
  .hero { padding: 32px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .hero-logo { max-width: 200px; }
  .intro { margin-left: auto; margin-right: auto; }
  .hero .buttons { justify-content: center; }
  section { padding: 56px 0; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shots li:last-child { display: none; }
  .night::before {
    background:
      linear-gradient(to bottom, rgba(11, 15, 22, 0.4) 0%, var(--night) 55%),
      url("img/fe-hero.jpg") 72% top / auto 420px no-repeat;
  }
}
@media (max-width: 420px) {
  .site-header .wrap { justify-content: center; }
  .site-nav a { padding: 0 10px; }
}

.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.not-found img { width: 160px; }
