:root {
  color-scheme: dark;
  --bg: #080d14;
  --panel: #101824;
  --panel-strong: #131d2b;
  --border: #273a55;
  --border-bright: #365d83;
  --text: #f4f7fb;
  --muted: #b9c3d2;
  --soft: #7f8fa3;
  --accent: #72d5ff;
  --accent-strong: #0f5b84;
  --warm: #f0c34e;
  --danger: #e53740;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 18%, rgba(31, 92, 132, 0.28), transparent 34rem),
    radial-gradient(circle at 85% 8%, rgba(240, 195, 78, 0.11), transparent 22rem),
    linear-gradient(180deg, #101722 0%, #080d14 54%, #071018 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid rgba(54, 93, 131, 0.5);
  background: rgba(13, 19, 29, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--border-bright);
  border-radius: 15px;
  background: linear-gradient(135deg, #0e4b68, #0d2f4b);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  border-color: var(--border-bright);
  background: #121c2c;
  outline: none;
}

main {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: clamp(36px, 7vw, 72px) clamp(18px, 4vw, 44px) 48px;
}

.intro {
  max-width: 760px;
  padding: clamp(26px, 4vw, 34px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(18, 34, 51, 0.98), rgba(14, 20, 31, 0.96)),
    var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.eyebrow,
.game-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  margin: 12px 0 12px;
  color: var(--text);
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.intro p:last-child {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 18px;
  margin-top: 30px;
}

.game-card {
  display: grid;
  gap: 18px;
  min-height: 460px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(16, 24, 36, 0.95);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.game-card:hover,
.game-card:focus-visible {
  border-color: var(--border-bright);
  background: rgba(18, 29, 45, 0.98);
  outline: none;
  transform: translateY(-2px);
}

.game-preview {
  position: relative;
  display: block;
  min-height: 228px;
  overflow: hidden;
  border: 1px solid rgba(114, 213, 255, 0.23);
  border-radius: 14px;
  background: #86cff0;
  image-rendering: pixelated;
}

.pixel-sky,
.pixel-ground,
.pixel-hill,
.pixel-sun,
.pixel-rex,
.pixel-ball,
.pixel-rex span {
  position: absolute;
  display: block;
}

.pixel-sky {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82) 0 42px, transparent 42px) 46px 34px / 170px 16px repeat-x,
    linear-gradient(90deg, rgba(255, 255, 255, 0.62) 0 28px, transparent 28px) 74px 25px / 210px 12px repeat-x,
    #86cff0;
}

.pixel-sun {
  top: 28px;
  right: 34px;
  width: 38px;
  height: 38px;
  background: #ffd260;
  box-shadow: inset 9px 9px 0 #fff0a5;
}

.pixel-hill {
  bottom: 52px;
  background: #68b85a;
}

.hill-one {
  left: 0;
  width: 58%;
  height: 76px;
  box-shadow:
    90px -22px 0 #9fc75a,
    184px 10px 0 #57a85a;
}

.hill-two {
  right: -20px;
  width: 44%;
  height: 64px;
  background: #59a95b;
  box-shadow: -70px -26px 0 #a2ca5d;
}

.pixel-ground {
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background:
    linear-gradient(#2d783b 0 7px, transparent 7px),
    linear-gradient(90deg, #8dcc55 0 5px, transparent 5px) 0 2px / 25px 18px,
    #5eb448;
}

.pixel-rex {
  left: 64px;
  bottom: 47px;
  width: 108px;
  height: 70px;
}

.rex-body {
  left: 20px;
  bottom: 20px;
  width: 58px;
  height: 25px;
  background: #242222;
  box-shadow:
    12px -8px 0 #302c2b,
    17px 17px 0 #c79958;
}

.rex-chest {
  left: 62px;
  bottom: 18px;
  width: 15px;
  height: 20px;
  background: #d1a366;
}

.rex-head {
  left: 72px;
  bottom: 38px;
  width: 28px;
  height: 22px;
  background: #242222;
  box-shadow:
    16px 11px 0 #c79a5e,
    23px 9px 0 #0d0d0d;
}

.rex-ear {
  bottom: 58px;
  width: 7px;
  height: 16px;
  background: #242222;
}

.ear-one {
  left: 75px;
  transform: skewX(-8deg);
}

.ear-two {
  left: 91px;
  transform: skewX(9deg);
}

.rex-tail {
  left: 4px;
  bottom: 40px;
  width: 22px;
  height: 8px;
  background: #242222;
  box-shadow: -8px -6px 0 #302c2b;
}

.rex-leg {
  bottom: 4px;
  width: 9px;
  height: 24px;
  background: #bd8549;
  box-shadow: -3px 20px 0 #1a1818;
}

.leg-one {
  left: 34px;
}

.leg-two {
  left: 68px;
  background: #d2a466;
}

.pixel-ball {
  right: 72px;
  bottom: 75px;
  width: 22px;
  height: 22px;
  background: #ef3342;
  box-shadow:
    inset -5px -5px 0 #b91521,
    inset 5px 4px 0 #ffd1d4;
}

.game-meta {
  display: grid;
  gap: 8px;
}

.game-meta strong {
  color: var(--text);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.02;
}

.game-meta span:last-child {
  max-width: 640px;
  color: var(--muted);
  font-size: 16px;
}

.play-link {
  align-self: end;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 11px 16px;
  background: #f6f8fb;
  color: #0b1018;
  font-size: 14px;
  font-weight: 900;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 44px) 36px;
  color: var(--soft);
  font-size: 13px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  color: var(--text);
  outline: none;
}

@media (max-width: 760px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .intro {
    padding: 22px;
  }

  .game-card {
    min-height: 420px;
  }

  .game-preview {
    min-height: 205px;
  }
}
