:root {
  --page-bg: #f6f9fc;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #060749;
  --muted: #3f4a6a;
  --soft: #7a8897;
  --line: rgba(6, 7, 73, 0.12);
  --accent: #4786E1;
  --accent-dark: #060749;
  --language-active: #090A4D;
  --brand-name: #4786E1;
  --accent-soft: rgba(71, 134, 225, 0.14);
  --success: #4786E1;
  --success-soft: rgba(71, 134, 225, 0.14);
  --shadow: 0 24px 70px rgba(50, 50, 93, 0.14), 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: 1120px;
  --font-heading: "SF Pro Rounded", "Arial Rounded MT Bold", "Montserrat", ui-rounded, system-ui, sans-serif;
  --font-text: "Montserrat", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100%;
  margin: 0;
  font-family: var(--font-text);
  font-weight: 500;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 14%, rgba(0, 212, 255, 0.30), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(99, 91, 255, 0.28), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(246, 249, 252, 0.92)),
    var(--page-bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 24%, rgba(99, 91, 255, 0.08) 24% 42%, transparent 42%),
    linear-gradient(72deg, transparent 0 62%, rgba(0, 212, 255, 0.12) 62% 76%, transparent 76%);
  pointer-events: none;
}

.page-shell {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  padding: 34px 0 30px;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0 76px;
}

.brand {
  display: inline-flex;
  color: var(--text);
  text-decoration: none;
}

.brand-logo-row {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.brand-emblem {
  display: inline-flex;
  width: 86px;
  height: 72px;
  flex: 0 0 auto;
  color: var(--accent-dark);
}

.brand-emblem img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-emblem::before {
  display: none;
}

.emblem-stroke,
.emblem-accent {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.emblem-stroke {
  stroke: var(--accent-dark);
  stroke-width: 8;
}

.emblem-accent {
  stroke: var(--accent);
  stroke-width: 9;
}

.emblem-accent-fill {
  fill: var(--accent);
}

.brand-text-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: 238px;
}

.brand-name-svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--brand-name);
  overflow: visible;
}

.brand-name-text {
  fill: currentColor;
  font-family: var(--font-heading);
  font-size: 80px;
  font-weight: 700;
  letter-spacing: -0.065em;
}

.brand-tagline {
  display: block;
  width: 100%;
  align-self: flex-start;
  margin-top: 2px;
  color: var(--language-active);
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: left;
  white-space: nowrap;
}

.language-switcher {
  display: inline-flex;
  margin-top: 7px;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  min-height: 40px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 26px rgba(50, 50, 93, 0.08);
  backdrop-filter: blur(14px);
}

.language-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.language-link-active {
  color: #fff;
  background: var(--language-active);
}

.language-link:hover {
  color: #fff;
  background: var(--accent);
}

.language-divider {
  color: rgba(6, 7, 73, 0.25);
  font-size: 13px;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.66)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -90px;
  width: 480px;
  height: 480px;
  border-radius: 120px;
  background:
    linear-gradient(135deg, rgba(71, 134, 225, 0.86), rgba(0, 212, 255, 0.70) 62%, rgba(122, 255, 207, 0.58));
  transform: rotate(-18deg);
  opacity: 0.88;
}

.hero::before {
  content: "";
  position: absolute;
  right: 120px;
  bottom: -74px;
  width: 170px;
  height: 170px;
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.56);
  transform: rotate(18deg);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 62px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 20px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
p { margin-top: 0; }

h1,
h2 {
  font-family: var(--font-heading);
  color: var(--accent-dark);
  font-weight: 700;
}

h1 {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: 50px;
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.hero-text {
  max-width: 580px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
}

.games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.game-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  box-shadow: 0 12px 36px rgba(50, 50, 93, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(71, 134, 225, 0.34);
  box-shadow: 0 20px 46px rgba(50, 50, 93, 0.14), 0 8px 18px rgba(0, 0, 0, 0.07);
}

.game-card-muted {
  color: rgba(6, 7, 73, 0.72);
  background: rgba(255, 255, 255, 0.66);
}

.game-card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.game-status {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(6, 7, 73, 0.07);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.game-status-live {
  color: var(--success);
  background: var(--success-soft);
}

.game-card h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.game-card p {
  max-width: 520px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: auto;
  padding: 0 20px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent-dark);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  gap: 8px;
  transition: transform 180ms ease, background 180ms ease;
}

.button::after {
  content: "\2197";
  font-size: 0.95em;
  line-height: 1;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--accent);
}

.button-disabled {
  color: var(--soft);
  background: rgba(6, 7, 73, 0.07);
  cursor: default;
}

.button-disabled:hover {
  transform: none;
  background: rgba(6, 7, 73, 0.07);
}

.site-footer {
  padding: 28px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p { margin-bottom: 0; }

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover { color: var(--accent-dark); }

.external-icon { fill: currentColor; }

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 28px, var(--container));
    padding-top: 22px;
  }

  .site-header {
    padding-bottom: 34px;
  }

  .brand-logo-row {
    gap: 12px;
  }

  .brand-emblem {
    width: 68px;
    height: 68px;
  }

  .brand-text-wrap {
    width: 200px;
  }

  .brand-tagline {
  display: block;
  width: 72%;
  align-self: flex-start;
  margin-top: 2px;
  color: var(--language-active);
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: left;
  white-space: nowrap;
}

  .hero { min-height: auto; }

  .hero::after {
    right: -180px;
    top: -160px;
    opacity: 0.52;
  }

  .hero::before { display: none; }

  .hero-content { padding: 42px 28px; }

  .games { grid-template-columns: 1fr; }

  .game-card {
    min-height: 280px;
    padding: 28px;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .language-switcher {
    align-self: flex-start;
    flex: 0 0 auto;
  }
}

@media (max-width: 480px) {
  .brand-emblem {
    width: 58px;
    height: 58px;
  }

  .brand-text-wrap {
    width: 158px;
  }

  .brand-tagline {
  display: block;
  width: 72%;
  align-self: flex-start;
  margin-top: 2px;
  color: var(--language-active);
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: left;
  white-space: nowrap;
}

  .hero-content { padding: 34px 22px; }

  .eyebrow {
    color: var(--accent-dark);
    background: rgba(71, 134, 225, 0.22);
  }

  h1 { font-size: 40px; }

  .hero-text { font-size: 17px; }

  .game-card { padding: 24px; }
}
