:root {
  color-scheme: dark;
  --ink: #090b0c;
  --ink-soft: #101416;
  --panel: rgba(22, 27, 29, .88);
  --panel-solid: #161b1d;
  --text: #f4efe5;
  --muted: #b9b4aa;
  --copper: #d37336;
  --gold: #e0ad52;
  --green: #71834c;
  --line: rgba(224, 173, 82, .24);
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 280px;
  background:
    radial-gradient(circle at 8% -5%, rgba(211, 115, 54, .2), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(113, 131, 76, .14), transparent 31rem),
    var(--ink);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; }

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

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 20;
  transform: translateY(-180%);
  padding: .65rem .9rem;
  border-radius: .5rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(9, 11, 12, .86);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max), calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 20%;
  box-shadow: 0 8px 24px rgba(211, 115, 54, .18);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(.7rem, 2vw, 1.8rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] { color: var(--gold); }

.hero,
.page-hero,
.section,
.legal,
.site-footer > div {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(4.5rem, 10vw, 9rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1, h2, h3 { margin-top: 0; line-height: 1.08; }

h1 {
  max-width: 13ch;
  margin-bottom: 1.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.25rem, 8vw, 7rem);
  font-weight: 500;
  letter-spacing: -.045em;
}

h2 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -.025em;
}

h3 { font-size: clamp(1.35rem, 3vw, 2rem); }

.hero-copy,
.page-lead {
  max-width: 63ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.15rem;
  border: 1px solid var(--gold);
  border-radius: .55rem;
  background: linear-gradient(135deg, var(--gold), var(--copper));
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
}

.button.secondary { background: transparent; color: var(--text); }
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }

.hero-art {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  height: auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, .45));
}

.section { padding-block: clamp(4rem, 9vw, 8rem); }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-heading p { max-width: 48ch; margin: 0; color: var(--muted); }

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.game-card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: linear-gradient(160deg, rgba(211, 115, 54, .23), var(--panel) 46%);
}

.game-card.freight { background: linear-gradient(160deg, rgba(62, 106, 115, .34), var(--panel) 48%); }
.game-card.cannon { background: linear-gradient(160deg, rgba(113, 131, 76, .34), var(--panel) 48%); }

.game-card::before {
  content: "81";
  position: absolute;
  top: -2rem;
  right: 1rem;
  color: rgba(255, 255, 255, .035);
  font-family: Georgia, serif;
  font-size: 13rem;
  line-height: 1;
}

.game-card.freight::before { content: "EU"; }
.game-card.cannon::before { content: "CV"; }

.game-card > * { position: relative; }
.game-card p { max-width: 56ch; color: var(--muted); }

.game-card-icon {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(224, 173, 82, .55);
  border-radius: 24%;
  box-shadow: 0 16px 35px rgba(0, 0, 0, .42);
}

.tag {
  align-self: flex-start;
  margin-bottom: auto;
  padding: .35rem .6rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--gold);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--line);
}

.value { padding: clamp(1.4rem, 4vw, 2.5rem); background: var(--panel-solid); }
.value strong { display: block; margin-bottom: .55rem; color: var(--gold); font-size: 1.05rem; }
.value p { margin: 0; color: var(--muted); }

.page-hero { padding-block: clamp(4.5rem, 9vw, 8rem) clamp(3rem, 7vw, 5rem); }
.page-hero h1 { max-width: 16ch; font-size: clamp(3rem, 7vw, 6rem); }

.games-list { display: grid; gap: 1.5rem; }

.game-detail {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
}

.game-symbol {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: radial-gradient(circle at 30% 20%, rgba(224, 173, 82, .26), rgba(9, 11, 12, .95));
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 4rem;
}

.game-app-icon {
  width: 220px;
  height: 220px;
  border: 1px solid var(--line);
  border-radius: 24%;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .4);
}

.game-detail ul { padding-left: 1.1rem; color: var(--muted); }
.availability { margin-top: 1rem; color: var(--muted); font-size: .88rem; }

.legal { max-width: 920px; padding-block: 3rem 7rem; }
.legal section { margin-bottom: 1rem; padding: clamp(1.3rem, 4vw, 2.2rem); border: 1px solid var(--line); border-radius: .9rem; background: var(--panel); }
.legal h2 { font-family: inherit; font-size: 1.35rem; font-weight: 800; letter-spacing: 0; }
.legal h3 { margin: 1.5rem 0 .35rem; font-size: 1rem; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--gold); }

.site-footer { border-top: 1px solid rgba(255, 255, 255, .07); background: #070809; }
.site-footer > div { display: flex; justify-content: space-between; gap: 2rem; padding-block: 2rem; color: var(--muted); font-size: .88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { color: var(--muted); }

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

@media (max-width: 1020px) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav { align-items: flex-start; flex-direction: column; gap: .7rem; padding-block: .8rem; }
  .nav-links { width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: .15rem; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-art { min-height: 310px; order: -1; }
  .game-grid, .values { grid-template-columns: 1fr; }
  .game-detail { grid-template-columns: 1fr; }
  .game-symbol { width: 150px; }
  .game-app-icon { width: 150px; height: 150px; }
}

@media (max-width: 540px) {
  .brand { font-size: .85rem; }
  .nav-links { gap: 1rem; }
  .section-heading, .site-footer > div { align-items: flex-start; flex-direction: column; }
  .game-card { min-height: 350px; }
  .game-card-icon { width: 72px; height: 72px; }
}

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