:root {
  --ink: #101820;
  --paper: #f7fbff;
  --panel: rgba(255, 255, 255, .9);
  --muted: #5c6b78;
  --blue: #1264ff;
  --cyan: #1dd6ff;
  --green: #8be35d;
  --dark: #08111f;
  --line: rgba(18, 100, 255, .18);
  --shadow: 0 20px 60px rgba(8, 17, 31, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Verdana, Geneva, sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(29, 214, 255, .28), transparent 26rem),
    radial-gradient(circle at 92% 8%, rgba(139, 227, 93, .22), transparent 24rem),
    linear-gradient(135deg, #e8f3ff 0%, #f7fbff 42%, #dff7eb 100%);
  overflow-x: hidden;
}
a { color: inherit; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 40;
  padding: 10px 12px;
  background: var(--dark);
  color: #fff;
}
.skip-link:focus { left: 8px; }
.site-header {
  position: sticky;
  top: 8px;
  z-index: 30;
  width: min(1180px, calc(100% - 16px));
  margin: 8px auto 0;
  padding: 8px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  color: #fff;
  background: rgba(8, 17, 31, .94);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 13px;
  background: #fff;
}
.brand strong { display: block; font-size: 17px; line-height: 1; }
.brand small { display: block; margin-top: 4px; color: rgba(255,255,255,.7); font-size: 11px; }
.site-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.site-nav a,
.menu-toggle {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid transparent;
}
.site-nav a { color: rgba(255,255,255,.75); }
.site-nav a:hover { color: var(--dark); background: var(--cyan); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.language-select { position: relative; display: inline-flex; align-items: center; }
.language-select select {
  appearance: none;
  min-height: 38px;
  min-width: 86px;
  padding: 8px 34px 8px 13px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.1);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.language-select option { color: var(--dark); background: var(--paper); }
.language-select option:checked { color: #fff; background: var(--blue); }
.language-select::after {
  content: "";
  position: absolute;
  right: 13px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: #fff;
  transform: rotate(45deg) translateY(-2px);
  pointer-events: none;
}
[dir="rtl"] .language-select select { padding: 8px 13px 8px 34px; }
[dir="rtl"] .language-select::after { right: auto; left: 13px; }
.header-cta,
.primary-btn,
.panel-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--dark);
  background: linear-gradient(135deg, var(--cyan), var(--green));
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(18, 100, 255, .2);
}
.menu-toggle {
  display: none;
  color: #fff;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
}
main {
  width: min(1180px, calc(100% - 24px));
  margin: 22px auto;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 20px;
  align-items: stretch;
}
.hero-copy,
.hero-media,
.link-panel,
.content-block,
.faq-block,
.related-block,
.split > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.hero-copy { padding: clamp(24px, 5vw, 52px); }
.eyebrow {
  display: inline-flex;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; color: var(--muted); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs span::before { content: "/ "; }
h1, h2, h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.06;
  color: var(--ink);
}
h1 { max-width: 10.8em; font-size: clamp(38px, 7vw, 78px); }
h2 { font-size: clamp(26px, 4vw, 42px); }
h3 { margin-top: 16px; font-size: clamp(20px, 2.4vw, 27px); }
p { color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.secondary-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 900;
}
.hero-media {
  padding: 18px;
  display: grid;
  gap: 14px;
  align-content: space-between;
  overflow: hidden;
}
.hero-media > img,
.hero-media > video {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 22px;
  background: #eef7ff;
}
.link-panel,
.content-block,
.faq-block,
.related-block { margin-top: 20px; padding: clamp(22px, 4vw, 36px); }
.pill-grid,
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pill {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--blue);
  text-decoration: none;
  font-weight: 800;
}
.panel-cta { margin-top: 18px; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.split > div { padding: clamp(20px, 3vw, 30px); overflow: hidden; }
.table-wrap { width: 100%; overflow-x: auto; margin-top: 18px; }
table { width: 100%; min-width: 520px; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
[dir="rtl"] th, [dir="rtl"] td { text-align: right; }
th { background: var(--dark); color: #fff; }
td { color: var(--muted); }
.game-list ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0;
  list-style: none;
}
.game-list li { padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; font-weight: 900; }
details { margin-top: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
summary { cursor: pointer; color: var(--blue); font-weight: 900; }
.site-footer {
  width: min(1180px, calc(100% - 24px));
  margin: 24px auto 40px;
  padding: 24px;
  color: #fff;
  background: rgba(8, 17, 31, .94);
  border-radius: 24px;
}
.site-footer p { color: rgba(255,255,255,.72); }
.site-footer .pill { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
@media (max-width: 1000px) {
  .site-header { grid-template-columns: 1fr auto; border-radius: 20px; }
  .site-nav { display: none; grid-column: 1 / -1; justify-content: flex-start; padding-top: 8px; }
  .site-nav.open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .hero, .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  main, .site-footer { width: min(100% - 16px, 1180px); }
  .site-header { width: calc(100% - 12px); gap: 8px; padding: 7px; }
  .brand img { width: 38px; height: 38px; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 10px; }
  .header-actions { gap: 6px; }
  .language-select select { min-width: 76px; min-height: 36px; padding: 7px 27px 7px 11px; font-size: 12px; }
  .language-select::after { right: 11px; }
  [dir="rtl"] .language-select select { padding: 7px 11px 7px 27px; }
  [dir="rtl"] .language-select::after { left: 11px; right: auto; }
  .hero-copy, .hero-media, .link-panel, .content-block, .faq-block, .related-block, .split > div { border-radius: 20px; padding: 17px; }
  h1 { font-size: clamp(34px, 11vw, 48px); }
  h2 { font-size: clamp(25px, 8vw, 34px); }
  .hero-actions a, .primary-btn, .secondary-btn, .panel-cta { width: 100%; }
  .hero-media > img, .hero-media > video { max-height: 220px; }
  .game-list ul { grid-template-columns: 1fr; }
  table, thead, tbody, tr, th, td { display: block; width: 100%; min-width: 0; }
  thead { display: none; }
  tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
  td { display: grid; grid-template-columns: 42% 1fr; gap: 10px; }
  [dir="rtl"] td { grid-template-columns: 1fr 42%; }
  td::before { content: attr(data-label); color: var(--blue); font-weight: 900; }
}
