:root {
  --ink: #1b2430;
  --navy: #142033;
  --paper: #efe6d4;
  --card: #fffaf2;
  --yellow: #ffd23f;
  --red: #d7263d;
  --red-d: #a81c2e;
  --pine: #0e7c66;
  --line: #e2d5ba;
  --mute: #3d4a5c;
  --shadow: 8px 8px 0 #142033;
  --sans: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  --display: "Anybody", "Arial Narrow", sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
[id] { scroll-margin-top: 132px; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.75;
  overflow-x: clip;
}
h1, h2, h3, p, a, li { overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--yellow); color: var(--navy); }

.es-skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  background: var(--yellow);
  color: var(--navy);
  padding: 8px 12px;
  z-index: 80;
}
.es-skip:focus { top: 8px; }

.es-dock {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  color: #f7f1e4;
  border-bottom: 10px solid var(--yellow);
}
.es-progress {
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--red);
  z-index: 2;
}
.es-dock-row {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  min-width: 0;
}
.es-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  margin-inline-end: auto;
}
.es-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: 22px;
  letter-spacing: -0.04em;
  border-radius: 11px;
}
.es-brand strong {
  display: block;
  font-family: var(--display);
  font-stretch: 80%;
  font-size: 22px;
  letter-spacing: 0.08em;
  line-height: 1;
}
.es-brand small {
  display: block;
  color: #d9d0bf;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.es-nav {
  display: flex;
  gap: 16px;
}
.es-nav a {
  color: #f7f1e4;
  text-decoration: none;
  font-size: 15px;
}
.es-nav a:hover { color: var(--yellow); }
.es-actions { display: flex; gap: 8px; align-items: center; }
.es-menu {
  display: none;
  background: transparent;
  color: #f7f1e4;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
}

.es-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--display);
  font-stretch: 90%;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  line-height: 1;
}
.es-btn-in { background: var(--yellow); color: var(--navy); }
.es-btn-up { background: var(--red); color: #fff; }
.es-btn-line { background: transparent; color: var(--navy); border-color: var(--navy); }
.es-btn-in:hover { background: #ffe58a; }
.es-btn-up:hover { background: var(--red-d); }
.es-btn:focus-visible, .es-nav a:focus-visible, .es-menu:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.es-marquee {
  display: flex;
  align-items: stretch;
  background: var(--yellow);
  color: var(--navy);
  overflow: hidden;
  border-bottom: 1px solid var(--navy);
  max-width: 100%;
}
.es-marquee-label {
  flex: 0 0 auto;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  display: grid;
  place-items: center;
  padding: 0 14px;
}
.es-marquee-view { overflow: hidden; flex: 1 1 auto; min-width: 0; }
.es-marquee-track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 10px 0;
  animation: es-run 32s linear infinite;
}
.es-marquee-track span {
  padding-inline-end: 48px;
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
}
@keyframes es-run {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
html[dir="rtl"] .es-marquee-track { animation-name: es-run-rtl; }
@keyframes es-run-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

.es-wrap { width: min(1180px, calc(100% - 28px)); margin: 0 auto; min-width: 0; }
.es-hero { padding: 34px 0 10px; }
.es-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}
.es-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 8px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); font-stretch: 78%; margin: 0 0 14px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-stretch: 88%; margin: 0 0 10px; }
h3 { font-size: 1.45rem; font-stretch: 95%; margin: 1.4em 0 0.4em; }
.es-lede { font-size: 1.12rem; margin: 0 0 18px; max-width: 42rem; }
.es-hero-actions, .es-ticket .es-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 16px; }
.es-hero-actions .es-btn { min-width: 148px; min-height: 54px; font-size: 1.15rem; }
.es-meta, .es-crumbs { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--mute); font-size: 0.92rem; }
.es-crumbs { margin-top: 14px; }
.es-crumbs a { color: var(--ink); }

.es-ticket {
  background: var(--card);
  border: 2px solid var(--navy);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 22px 20px 18px;
  position: relative;
  background-image: radial-gradient(circle at 0 18px, transparent 8px, var(--card) 9px);
}
.es-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  background: #e7f6f1;
  color: var(--pine);
  border-radius: 999px;
  padding: 4px 10px;
}
.es-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pine);
  display: block;
  animation: es-blink 1.4s steps(2) infinite;
}
@keyframes es-blink { 50% { opacity: 0.25; } }
.es-ticket h2 { font-size: 1.8rem; margin-top: 10px; }
.es-addr {
  display: block;
  margin: 12px 0;
  padding: 12px;
  background: var(--navy);
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 0.92rem;
  word-break: break-all;
  text-decoration: none;
  border-radius: 10px;
}
.es-fine { color: var(--mute); font-size: 0.92rem; margin: 0; }

.es-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin: 28px 0 12px;
}
.es-slider-ui { display: flex; gap: 8px; }
.es-slider-ui button, .es-copy {
  min-width: 42px;
  min-height: 42px;
  border-radius: 999px;
  border: 2px solid var(--navy);
  background: var(--card);
  font: inherit;
  cursor: pointer;
}
.es-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
  max-width: 100%;
  min-width: 0;
}
.es-slide {
  flex: 0 0 min(78%, 340px);
  scroll-snap-align: start;
  background: var(--navy);
  color: #f7f1e4;
  min-height: 210px;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.es-slide:nth-child(2n) { background: var(--red); }
.es-slide:nth-child(3n) { background: #0e7c66; }
.es-slide b {
  font-family: var(--display);
  font-stretch: 85%;
  font-size: 1.7rem;
  line-height: 1.05;
  font-weight: 800;
}
.es-slide span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }
.es-dots { display: flex; gap: 6px; margin: 10px 0 6px; }
.es-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: #c8bda6;
  padding: 0;
}
.es-dots button.is-on { background: var(--navy); }

.es-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 28px;
  padding: 18px 0 40px;
}
.es-toc {
  position: sticky;
  top: 108px;
  align-self: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.es-toc strong { display: block; font-family: var(--display); margin-bottom: 8px; }
.es-toc a { display: block; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.es-toc a:hover { color: var(--red); }
.es-article {
  background: var(--card);
  border-radius: 18px;
  padding: 26px 26px 8px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}
.es-article p { margin: 0 0 1em; }
.es-by { color: var(--mute); font-family: var(--mono); font-size: 12px; }
.es-drop::first-letter {
  font-family: var(--display);
  font-weight: 800;
  float: inline-start;
  font-size: 3.3rem;
  line-height: 0.8;
  padding-inline-end: 8px;
  color: var(--red);
}
.es-cover { margin: 0 0 16px; }
.es-cover img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 12px; }
.es-steps { display: grid; gap: 8px; margin: 12px 0 18px; }
.es-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  background: #f6f0e4;
  border-radius: 12px;
  padding: 10px 12px;
}
.es-step b {
  font-family: var(--display);
  font-stretch: 80%;
  color: var(--red);
  font-size: 1.3rem;
}
.es-table-wrap { overflow-x: auto; margin: 8px 0 16px; }
table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
th, td { border-bottom: 1px solid var(--line); text-align: start; padding: 10px 8px; vertical-align: top; }
th { font-family: var(--mono); font-size: 12px; font-weight: 500; }
.es-pull {
  margin: 8px 0 16px;
  padding: 8px 0 8px 14px;
  border-inline-start: 4px solid var(--yellow);
  font-size: 1.15rem;
}
.es-games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 16px; }
.es-game { background: var(--navy); color: #f7f1e4; border-radius: 14px; padding: 14px; }
.es-game h3 { margin-top: 6px; }
.es-game p { color: #e6dcc8; }

.es-review, .es-event {
  display: grid;
  gap: 16px;
  background: var(--card);
  border: 2px solid var(--navy);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
}
.es-review { grid-template-columns: 180px 1fr; }
.es-score {
  background: var(--yellow);
  color: var(--navy);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}
.es-score strong {
  display: block;
  font-family: var(--display);
  font-size: 4rem;
  font-stretch: 80%;
  line-height: 0.9;
}
.es-criteria { margin: 0; padding-inline-start: 18px; }
.es-criteria li { margin: 0.35em 0; }
.es-event { grid-template-columns: 180px 1fr auto; align-items: center; }
.es-when {
  font-family: var(--display);
  font-stretch: 85%;
  font-size: 1.4rem;
  line-height: 1.1;
}

.es-faq details {
  background: var(--card);
  border-radius: 12px;
  padding: 4px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
}
.es-faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.es-faq p { margin-top: 0; }

.es-foot { background: var(--navy); color: #f7f1e4; padding: 28px 0 20px; }
.es-foot a { color: var(--yellow); }
.es-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 0.7fr; gap: 18px; }
.es-lang { display: flex; gap: 8px; flex-wrap: wrap; }
.es-lang a {
  color: var(--navy);
  background: var(--yellow);
  text-decoration: none;
  min-width: 44px;
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
}
.es-legal { color: #d9d0bf; font-size: 0.92rem; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 16px; padding-top: 12px; }

@media (max-width: 900px) {
  .es-hero-grid, .es-layout, .es-review, .es-event, .es-games, .es-foot-grid { grid-template-columns: 1fr; }
  .es-toc { position: static; }
  .es-event .es-btn { width: 100%; }
  .es-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--navy);
    flex-direction: column;
    padding: 8px 16px 14px;
    border-bottom: 10px solid var(--yellow);
  }
  .es-nav.is-open { display: flex; z-index: 6; }
  .es-menu { display: inline-flex; }
  .es-dock-row { flex-wrap: wrap; padding: 10px 0; position: relative; }
  .es-brand { flex: 1 1 auto; }
  .es-actions { order: 3; width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .es-actions .es-btn { width: 100%; }
  .es-hero-actions .es-btn { flex: 1; }
  h1 { font-size: 2.35rem; }
  .es-article { padding: 18px 14px 4px; }
}

html[lang="ar"] body,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .es-btn {
  font-family: "Noto Naskh Arabic", "Atkinson Hyperlegible", sans-serif;
  letter-spacing: 0;
  font-stretch: normal;
}
html[lang="ar"] .es-mark,
html[lang="ar"] .es-brand strong {
  font-family: "Anybody", "Arial Narrow", sans-serif;
  letter-spacing: 0.04em;
}
html[lang="ar"] { font-size: 19px; line-height: 1.9; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .es-marquee-track, .es-live i { animation: none; }
}
