:root {
  --bg: #0d151d;
  --panel: #141f2a;
  --panel-2: #1c2936;
  --text: #f4f7fb;
  --muted: #9db0c2;
  --line: #2d3d4c;
  --accent: #00bd67;
  --accent-hover: #08d879;
  --radius: 16px;
  --shadow: 0 18px 45px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

body > header {
  min-height: 72px;
  padding: 14px max(24px, calc((100% - 1300px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 21, 29, .94);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}
body > header > a { display: inline-flex; align-items: center; }
body > header nav { display: flex; gap: 12px; align-items: center; }
body > header nav a {
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  color: #9ff1c7;
}
body > header nav a:last-child {
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 22px rgba(0, 189, 103, .25);
}
body > header nav a:hover { background: var(--accent-hover); color: #07140e; }

main { width: min(1300px, calc(100% - 40px)); margin: 40px auto 72px; }

#hero {
  min-height: 380px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #1a2631;
  box-shadow: var(--shadow);
}
#hero > img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 10, 15, .92) 0%, rgba(5, 10, 15, .58) 46%, rgba(5, 10, 15, .06) 75%);
}
#hero > div {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: min(640px, 72%);
  padding: clamp(28px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
#hero span {
  background: rgba(19, 31, 41, .88);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 15px;
  font-weight: 700;
}
#hero strong {
  display: block;
  margin: 16px 0 26px;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}
#hero a {
  background: var(--accent);
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(0, 189, 103, .24);
}
#hero a:hover { background: var(--accent-hover); color: #07140e; }

#providers { margin: 34px 0; }
#providers h2 { font-size: 18px; margin: 0 0 14px; }
#providers > div {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
#providers a {
  min-height: 72px;
  min-width: 145px;
  padding: 18px 20px;
  border-radius: 999px;
  background: var(--panel-2);
  display: grid;
  place-items: center;
  border: 1px solid transparent;
}
#providers a:hover { border-color: #4a6174; transform: translateY(-2px); }
#providers img { width: 130px; height: 34px; object-fit: contain; filter: grayscale(1) brightness(1.5); opacity: .82; }

#games { margin: 44px 0 64px; }
#games > div { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
#games h2 { margin: 0; font-size: 24px; }
#games > div a { color: var(--accent); font-weight: 700; }
#games ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
#games li { min-width: 0; }
#games li a {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.05);
  box-shadow: 0 10px 26px rgba(0,0,0,.2);
  transition: transform .18s ease, border-color .18s ease;
}
#games li a:hover { transform: translateY(-4px); border-color: var(--accent); }
#games li img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
#games li span { display: block; padding: 12px 13px 14px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

article {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 58px);
  background: linear-gradient(180deg, #141f2a, #101922);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
article h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.12; margin: 0 0 28px; letter-spacing: -.03em; }
article h2 { font-size: clamp(25px, 3vw, 34px); line-height: 1.2; margin: 48px 0 18px; color: #dff9ec; }
article p { color: #c0ceda; margin: 0 0 17px; }

footer {
  border-top: 1px solid var(--line);
  background: #111a23;
  padding: 52px max(24px, calc((100% - 1300px) / 2)) 28px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr .9fr;
  gap: 38px;
}
footer > div p, footer aside p { color: var(--muted); max-width: 420px; margin: 14px 0 0; }
footer nav { display: flex; flex-direction: column; gap: 9px; }
footer strong { font-size: 16px; margin-bottom: 4px; }
footer nav a { color: #78cfff; }
footer nav a:hover { color: white; }
footer aside {
  padding: 20px;
  background: #182430;
  border: 1px solid #314352;
  border-radius: 14px;
}
footer aside strong { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #8fa1b2; font-size: 18px; }
footer small {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #8294a5;
}

@media (max-width: 1050px) {
  #games ul { grid-template-columns: repeat(3, 1fr); }
  footer { grid-template-columns: 1.4fr 1fr 1fr; }
  footer aside { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body > header { padding: 12px 18px; }
  body > header img { width: 98px; }
  body > header nav a { padding: 9px 11px; font-size: 14px; }
  body > header nav a:first-child { display: none; }
  main { width: min(100% - 24px, 1300px); margin-top: 22px; }
  #hero, #hero > img { min-height: 410px; }
  #hero::after { background: linear-gradient(0deg, rgba(5,10,15,.95), rgba(5,10,15,.25)); }
  #hero > div { width: 100%; justify-content: flex-end; padding: 24px; }
  #hero strong { font-size: 34px; }
  #games ul { grid-template-columns: repeat(2, 1fr); }
  article { padding: 28px 22px; }
  footer { grid-template-columns: 1fr; padding-top: 38px; }
  footer aside, footer small { grid-column: auto; }
}
