@font-face {
  font-family: "Exo 2";
  src: url("/fonts/Exo2.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f4f6fc;
  --surface: #ffffff;
  --ink: #1b2036;
  --muted: #5d6585;
  --line: #e2e6f2;
  --accent: #6b4dff;
  --accent-ink: #ffffff;
  --sun: #ffcf3f;
  --sea: #1fb6e8;
  --deep: #120d2e;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(30, 24, 80, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1022;
    --surface: #161a33;
    --ink: #eef0fb;
    --muted: #a5abc8;
    --line: #262c4d;
    --accent: #9b85ff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: 0.3px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand .star { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6c9, var(--sun) 45%, #ff8a3d 100%); box-shadow: 0 0 18px rgba(255, 190, 60, 0.6); }
.crumb { color: var(--muted); margin: 0 -6px; }
.brand.game { font-weight: 700; }
.nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--deep);
}
.hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 10, 46, 0.92) 0%, rgba(14, 10, 46, 0.55) 55%, rgba(14, 10, 46, 0.15) 100%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; margin: 0 0 16px; font-weight: 900; }
.hero p.lead { font-size: 20px; color: #e6e3ff; margin: 0 0 26px; max-width: 34ch; }
.hero .logo { width: min(440px, 100%); filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45)); justify-self: center; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.play {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 12px; padding: 10px 18px 10px 14px;
}
.play svg { width: 26px; height: 26px; }
.play small { display: block; font-size: 11px; opacity: 0.8; letter-spacing: 0.4px; text-transform: uppercase; }
.play strong { display: block; font-size: 19px; line-height: 1.1; }
.chip { display: inline-block; background: rgba(255, 207, 63, 0.18); color: var(--sun); border: 1px solid rgba(255, 207, 63, 0.45); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; }

/* Sections */
section.block { padding: 64px 0; }
section.block h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 10px; line-height: 1.2; }
section.block p.sub { color: var(--muted); margin: 0 0 32px; max-width: 60ch; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card .body { padding: 18px 20px 22px; }
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.safe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.safe .item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.safe .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; margin-bottom: 12px; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.safe h3 { margin: 0 0 6px; font-size: 18px; }
.safe p { margin: 0; color: var(--muted); font-size: 15px; }

.band {
  background: linear-gradient(135deg, #6b4dff 0%, #1fb6e8 100%); color: #fff;
  border-radius: 24px; padding: 40px; display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.band h2 { margin: 0 0 6px; }
.band p { margin: 0; opacity: 0.92; }

/* Text pages (privacy, terms, ...) */
.page { max-width: 820px; margin: 0 auto; padding: 40px 16px 72px; }
.page h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 6px; }
.page h2 { font-size: 21px; margin: 34px 0 8px; }
.page .muted { color: var(--muted); font-size: 15px; }
.page .note { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 14px; padding: 18px 20px; margin: 20px 0; box-shadow: var(--shadow); }
.page table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.page th, .page td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.page th { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.page ol, .page ul { padding-left: 22px; }
.page .table { overflow-x: auto; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
footer.site .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; padding-top: 36px; }
  .hero .logo { width: min(300px, 80%); order: -1; justify-self: start; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .safe { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid, .safe { grid-template-columns: 1fr; }
  .nav { gap: 12px; }
  .nav a.hide-sm { display: none; }
  .brand.game { font-size: 0; gap: 0; }
  .brand.game img { width: 30px; height: 30px; }
  .band { padding: 28px; }
  section.block { padding: 44px 0; }
}
