:root {
  --ink: #12100e;
  --paper: #f3ecdf;
  --cream: #f7f1e6;
  --copper: #9c4224;
  --copper-2: #c46a3a;
  --teal: #1e4d45;
  --muted: #6b5f53;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(156, 66, 36, 0.28), transparent 60%),
    radial-gradient(700px 380px at -10% 20%, rgba(30, 77, 69, 0.35), transparent 55%),
    var(--ink);
  color: var(--cream);
  font-size: 1.05rem;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

button, input { font: inherit; }

:focus-visible {
  outline: 3px solid #e0a15a;
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 80;
}

.skip:focus { top: 12px; }

.wire,
.band {
  overflow: hidden;
  background: var(--teal);
  color: var(--cream);
}

.band {
  background: #2a211b;
  color: #f0d7c4;
}

.wire-track,
.band-track {
  display: flex;
  width: max-content;
  animation: drift 36s linear infinite;
}

.band-track { animation-duration: 42s; }

.wire:hover .wire-track,
.band:hover .band-track { animation-play-state: paused; }

.wire-track div,
.band-track div { display: flex; }

.wire span,
.band span {
  padding: 11px 0;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.wire span::before,
.band span::before {
  content: "●";
  color: var(--copper-2);
  margin: 0 14px;
  font-size: 0.55rem;
  vertical-align: middle;
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.mast {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #16130f;
  border-bottom: 1px solid rgba(196, 106, 58, 0.5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 12px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-inline-end: auto;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.brand strong {
  display: block;
  font-family: "Newsreader", serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand small {
  display: block;
  color: #e0c2a6;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

.actions {
  display: flex;
  gap: 10px;
}

.go,
.join,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 54px;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.15;
  border: 2px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.go {
  background: var(--copper);
  color: #fff8f4;
  animation: knock 2.8s ease-in-out infinite;
}

.join {
  background: var(--paper);
  color: #1a140f;
}

.ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(243, 236, 223, 0.38);
  min-height: 46px;
  font-weight: 600;
}

.go:hover { background: #b3502c; }
.join:hover { background: #fffaf3; }

@keyframes knock {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 106, 58, 0.55); }
  70% { box-shadow: 0 0 0 11px rgba(196, 106, 58, 0); }
}

.stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1.35fr) minmax(280px, 0.82fr);
  gap: 16px;
  width: min(1180px, calc(100% - 28px));
  margin: 18px auto 6px;
  align-items: stretch;
}

.spine {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #e0c2a6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel,
.slip { border-radius: 26px 8px 26px 8px; }

.reel {
  background: var(--paper);
  color: #1a140f;
  display: grid;
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.slide {
  grid-area: 1 / 1;
  padding: 32px 28px 74px;
  opacity: 0;
  visibility: hidden;
}

.slide.is-on {
  opacity: 1;
  visibility: visible;
}

.kicker {
  font-family: "Outfit", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 700;
  margin: 0 0 10px;
}

.slide h1,
.slide h2 {
  font-family: "Newsreader", serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 14px;
  font-size: clamp(2.05rem, 4.4vw, 3.5rem);
}

.slide p {
  font-family: "Newsreader", serif;
  font-size: 1.22rem;
  line-height: 1.45;
  margin: 0;
  max-width: 38ch;
}

.dots {
  position: absolute;
  inset-inline-start: 22px;
  bottom: 14px;
  display: flex;
  gap: 2px;
  z-index: 2;
}

.dots button {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.dots button::after {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  margin: 15px auto;
  border-radius: 99px;
  background: #c9b79a;
}

.dots button[aria-current="true"]::after {
  width: 22px;
  margin-inline-start: 9px;
  background: var(--copper);
}

.slip {
  background: #241c16;
  color: var(--cream);
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(196, 106, 58, 0.65);
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.25);
}

.slip h2 {
  font-family: "Newsreader", serif;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  line-height: 1.15;
  margin: 0;
}

.url {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  background: #12100e;
  border-radius: 12px;
  padding: 12px;
  font-size: 0.95rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  margin: 0;
}

.slip .actions {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.slip .go,
.slip .join,
.slip .ghost { width: 100%; }

.when {
  margin: 0;
  color: #e0c2a6;
  font-size: 0.9rem;
}

.jump {
  width: min(1180px, calc(100% - 28px));
  margin: 8px auto 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.jump a {
  flex: 0 0 auto;
  text-decoration: none;
  border: 1px solid rgba(243, 236, 223, 0.22);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.92rem;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.03);
}

.jump a:hover { border-color: var(--copper-2); }

.wrap {
  width: min(1180px, calc(100% - 28px));
  margin: 12px auto;
}

.sheet {
  background: var(--paper);
  color: #1c1612;
  border-radius: 18px;
  padding: 28px 26px 28px;
}

.sheet h2 {
  font-family: "Newsreader", serif;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.sheet h3 {
  font-family: "Newsreader", serif;
  font-size: 1.4rem;
  margin: 1.5rem 0 0.45rem;
}

.sheet p,
.sheet li {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.16rem;
  line-height: 1.68;
}

.sheet p { margin: 0 0 1rem; }

.sheet a { color: var(--copper); }

.sheet p.lede {
  font-size: 1.32rem;
  line-height: 1.55;
}

.note {
  border-inline-start: 4px solid var(--copper);
  background: #fbf7f0;
  padding: 12px 16px;
  margin: 0 0 1rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.98rem;
  line-height: 1.5;
}

.cover {
  width: 100%;
  border-radius: 12px;
  margin: 0 0 8px;
}

figcaption {
  font-family: "Outfit", sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 16px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  font-size: 0.9rem;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-inline-start: 6px;
  color: var(--muted);
}

.crumbs a { color: var(--copper); text-decoration: none; }

.byline {
  font-size: 0.92rem;
  color: #5e5348;
  margin: 0 0 18px;
}

.sheet ul,
.sheet ol {
  margin: 0 0 1rem;
  padding-inline-start: 1.25rem;
}

.sheet li { margin: 0 0 0.45rem; }

.table-wrap { overflow-x: auto; margin: 0 0 1rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Outfit", sans-serif;
  font-size: 0.98rem;
  min-width: 520px;
}

th, td {
  text-align: start;
  padding: 10px 12px;
  border-bottom: 1px solid #e0d3bf;
  vertical-align: top;
}

th { font-weight: 600; background: #efe4d2; }

.lane {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 0 12px;
  margin: 0 0 8px;
}

.lane article {
  flex: 0 0 min(78vw, 250px);
  scroll-snap-align: start;
  background: #fbf7f0;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid #e4d6c2;
}

.num {
  font-family: "IBM Plex Mono", monospace;
  color: var(--copper);
  font-size: 0.78rem;
}

.lane strong {
  display: block;
  font-family: "Newsreader", serif;
  font-size: 1.28rem;
  margin: 4px 0 6px;
}

.lane p {
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0;
}

.score-head {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin: 0 0 8px;
}

.big-score {
  font-family: "Newsreader", serif;
  font-size: clamp(3.4rem, 8vw, 4.6rem);
  line-height: 0.85;
  margin: 0;
  letter-spacing: -0.04em;
  color: var(--copper);
}

.big-score small {
  font-size: 0.38em;
  color: var(--muted);
}

.scores { display: grid; gap: 12px; margin: 0 0 1rem; }

.score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  font-size: 0.95rem;
}

.track {
  height: 8px;
  background: #e4d6c2;
  border-radius: 99px;
  grid-column: 1 / -1;
  overflow: hidden;
}

.track span {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--copper));
  width: 0;
  animation: fill 1.1s ease forwards;
}

@keyframes fill { to { width: var(--w); } }

.pano {
  display: grid;
  background: #241c16;
  color: var(--cream);
  border-radius: 16px;
  position: relative;
  margin: 8px 0 22px;
  overflow: hidden;
}

.pano article {
  grid-area: 1 / 1;
  padding: 22px 22px 72px;
  opacity: 0;
  visibility: hidden;
}

.pano article.is-on { opacity: 1; visibility: visible; }

.pano h3 {
  font-family: "Newsreader", serif;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  margin: 0 0 8px;
  color: var(--cream);
}

.pano p {
  font-family: "Newsreader", serif;
  font-size: 1.14rem;
  color: #f3ecdf;
  margin: 0;
  max-width: 52ch;
}

.pano-nav {
  position: absolute;
  inset-inline-end: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.pano-nav button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--paper);
  color: #1a140f;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

details {
  border-top: 1px solid #e0d3bf;
}

.faq details:last-of-type { border-bottom: 1px solid #e0d3bf; margin-bottom: 1rem; }

summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  color: var(--copper);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1;
}

details[open] summary::after { content: "–"; }

.event {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  background: #fbf7f0;
  border-radius: 14px;
  padding: 14px;
  margin: 0 0 1rem;
}

.event time {
  background: var(--teal);
  color: var(--cream);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 108px;
  padding: 8px;
  font-size: 0.92rem;
}

.event time b {
  font-family: "Newsreader", serif;
  font-size: 1.7rem;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.foot {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 8px 0 36px;
  color: #e6d8c8;
}

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 12px;
}

.langs a { color: #fff8f1; }

.foot p {
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 8px;
}

section[id],
article[id] { scroll-margin-top: 92px; }

@media (max-width: 860px) {
  .stage {
    grid-template-columns: 1fr;
    width: min(1180px, calc(100% - 20px));
    margin-top: 12px;
  }

  .spine {
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 0.14em;
    justify-content: flex-start;
  }

  .mast { padding: 10px 12px 12px; }

  .mast .actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .slip { box-shadow: none; }

  .sheet { padding: 18px 14px 22px; border-radius: 14px; }

  .wrap,
  .jump,
  .foot { width: min(1180px, calc(100% - 20px)); }

  .slide { padding: 22px 16px 70px; }

  .slide p { font-size: 1.08rem; }

  .event { grid-template-columns: 1fr; }

  .event time { min-height: 0; padding: 12px; }

  section[id],
  article[id] { scroll-margin-top: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  .wire-track,
  .band-track,
  .go,
  .track span { animation: none; }

  .track span { width: var(--w); }

  html { scroll-behavior: auto; }
}

html[lang="ar"] .stage {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.82fr);
}

html[lang="ar"] .spine { display: none; }

html[lang="ar"] body,
html[lang="ar"] .go,
html[lang="ar"] .join,
html[lang="ar"] .ghost,
html[lang="ar"] summary,
html[lang="ar"] .sheet h2,
html[lang="ar"] .sheet h3,
html[lang="ar"] .sheet p,
html[lang="ar"] .sheet li,
html[lang="ar"] .slide h1,
html[lang="ar"] .slide h2,
html[lang="ar"] .slide p,
html[lang="ar"] .pano h3,
html[lang="ar"] .pano p,
html[lang="ar"] .slip h2 {
  font-family: "Noto Naskh Arabic", "Outfit", sans-serif;
}

@media (max-width: 860px) {
  html[lang="ar"] .stage { grid-template-columns: 1fr; }
}
