/* ==========================================================
   العابك — homepage
   Direction: quiet, expensive, editorial. Ink black, paper white,
   one red taken from the logo. Depth comes from transparency
   (frosted glass over key art), hairlines, and type — not gradients.
   ========================================================== */

:root {
  --ink: #0a0a0b;
  --ink-2: #111113;
  --paper: #f3f1ee;
  --muted: #8b8885;
  --faint: #55524f;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(18, 18, 20, 0.52);
  --glass-hi: rgba(255, 255, 255, 0.06);
  --red: #e5141d;
  --red-ink: #2a0a0b;

  --f-display: "Alexandria", "IBM Plex Sans Arabic", sans-serif;
  --f-body: "IBM Plex Sans Arabic", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;
  --f-latin: "Geist", system-ui, sans-serif; /* English text (store descriptions) */

  --r: 14px;
  --r-lg: 22px;
  --wrap: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[hidden] { display: none !important; } /* component display rules must never override the hidden attribute */
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--red); color: #fff; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-feature-settings: "tnum"; letter-spacing: -0.01em; direction: ltr; unicode-bidi: isolate; }
.label { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }

/* Film grain: barely there, but it kills the "flat render" look. */
.grain {
  position: fixed; inset: -50%;
  z-index: 100; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-1%, 3%); }
}

/* The one material: frosted glass with a hairline and an inner top highlight. */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 var(--glass-hi);
}

/* ---------------- NAV ----------------
   An edge-to-edge strip, not a floating pill: one dark glass band with a hairline under it.
   Links are plain type; the current page is marked by a red rule sitting on the band's edge.
   No saturate() in the blur, so key art behind it never tints the bar. */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(9, 9, 10, 0.72);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.35s var(--ease);
}
.nav.is-scrolled { background: rgba(9, 9, 10, 0.9); }
.nav__inner {
  width: min(var(--wrap), 100% - 48px); margin-inline: auto;
  height: 68px; display: flex; align-items: center; gap: 40px;
}
/* The logo file is trimmed to the artwork (assets/logo-mark.png, 1.59:1), so it shows whole: no crop, no zoom.
   "screen" drops the dark glow plate so it sits cleanly on any background. */
.nav__brand { height: 46px; aspect-ratio: 480 / 302; flex: none; display: block; }
.nav__brand img, .foot__logo, .auth__logo img, .auth__mlogo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; }
.nav__links { display: flex; gap: 30px; align-self: stretch; font-size: 15px; }
.nav__links a {
  position: relative; display: flex; align-items: center;
  color: rgba(243, 241, 238, 0.6); font-weight: 500; transition: color 0.2s;
}
.nav__links a:hover { color: var(--paper); }
.nav__links a.is-active { color: var(--paper); }
.nav__links a.is-active::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 2px; background: var(--red);
}
.nav__search {
  margin-inline-start: auto;
  display: flex; align-items: center; gap: 10px;
  height: 38px; min-width: 240px; padding-inline: 12px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(243, 241, 238, 0.5); font-size: 14px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.nav__search:hover { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06); color: var(--paper); }
.nav__search kbd { border-color: rgba(255, 255, 255, 0.1); padding: 1px 6px; }
.nav__login {
  margin-inline-start: -16px; flex: none; height: 38px; padding-inline: 4px;
  display: inline-flex; align-items: center;
  color: rgba(243, 241, 238, 0.8); font-size: 14.5px; font-weight: 500; transition: color 0.2s;
}
.nav__login:hover { color: #fff; }
.nav__join {
  margin-inline-start: -16px; flex: none; height: 38px; padding-inline: 16px; border-radius: 10px;
  display: inline-flex; align-items: center;
  background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600;
  transition: background 0.2s;
}
.nav__join:hover { background: #fff; }
.nav__search span { flex: 1; text-align: start; }
.nav__search svg, .seek__field svg, .sheet__field svg {
  width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; flex: none;
}
kbd {
  font-family: var(--f-mono); font-size: 11px;
  padding: 2px 7px; border-radius: 6px;
  border: 1px solid var(--line-2); color: var(--muted);
}

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  min-height: min(880px, 100svh);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 28px;
  isolation: isolate;
}
.hero__stage { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  /* A short functional fade into the page so the art doesn't end on a hard edge. */
  -webkit-mask-image: linear-gradient(#000 62%, transparent 100%);
  mask-image: linear-gradient(#000 62%, transparent 100%);
}
.hero__slide.is-on { opacity: 1; }
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  transform: scale(1.06);
  transition: transform 9s linear;
}
.hero__slide.is-on img { transform: scale(1); }
.hero__slide::after { /* flat tint, not a gradient */
  content: ""; position: absolute; inset: 0; background: rgba(10, 10, 11, 0.38);
}

.hero__content {
  display: grid; grid-template-columns: 1fr 360px; align-items: end; gap: 48px;
  margin-bottom: 40px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-size: 13px; color: rgba(243, 241, 238, 0.82);
  padding: 6px 12px 6px 14px; border-radius: 999px;
  background: rgba(10, 10, 11, 0.4); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(229, 20, 29, 0.18); }
.hero__title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(48px, 7.4vw, 112px);
  line-height: 0.95; letter-spacing: -0.035em;
  margin: 0; direction: ltr; text-align: right;
  text-wrap: balance;
}
.hero__lede { margin: 18px 0 0; max-width: 46ch; font-size: 18px; color: rgba(243, 241, 238, 0.78); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding-inline: 22px; border-radius: 12px;
  font-family: var(--f-display); font-weight: 500; font-size: 16px;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.btn--red { background: var(--red); color: #fff; margin-top: 8px; }
.btn--red:hover { background: #f21d26; transform: translateY(-1px); }
.btn--red:active { transform: translateY(0); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--paper); background: rgba(255, 255, 255, 0.04); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); }
.plus { font-family: var(--f-mono); font-size: 18px; margin-inline-end: 8px; line-height: 1; }

/* Spotlight card (hero) */
.spot { border-radius: var(--r-lg); padding: 22px; display: grid; gap: 18px; }
.spot__score { display: flex; align-items: center; gap: 16px; }
.spot__score strong { font-size: 56px; font-weight: 400; line-height: 0.9; }
.spot__score div { display: grid; gap: 2px; }
.spot__score small { font-size: 13px; }
.spot__meta { margin: 0; display: grid; gap: 0; border-block: 1px solid var(--line); }
.spot__meta div { display: flex; justify-content: space-between; gap: 16px; padding-block: 9px; font-size: 14px; }
.spot__meta div + div { border-top: 1px solid var(--line); }
.spot__meta dt { color: var(--muted); }
.spot__meta dd { margin: 0; text-align: left; }
.spot__actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.spot__actions .btn--red { margin: 0; }
.spot__actions .btn { white-space: nowrap; padding-inline: 18px; }
.spot__loc {
  display: grid; gap: 8px;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  font-size: 13px; transition: border-color 0.2s;
}
.spot__loc:hover { border-color: var(--line-2); }
.spot__loc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.spot__loc .line i { transition: none; }
.live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); margin-inline-end: 8px; vertical-align: 2px;
  animation: pulse 2s ease-in-out infinite;
}

/* Score badge on covers */
.card__score {
  position: absolute; top: 8px; left: 8px; /* physical: .mono forces ltr */
  font-size: 12px; padding: 3px 7px; border-radius: 6px;
  background: rgba(10, 10, 11, 0.6); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* Hero rail: the switcher */
.hero__rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rail__item {
  position: relative; text-align: start;
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: var(--r);
  background: rgba(10, 10, 11, 0.32); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  overflow: hidden; transition: border-color 0.3s, background 0.3s;
}
.rail__item:hover { border-color: var(--line-2); }
.rail__item[aria-selected="true"] { background: rgba(10, 10, 11, 0.58); border-color: var(--line-2); }
.rail__item img { width: 40px; height: 54px; object-fit: cover; border-radius: 6px; flex: none; }
.rail__item b { display: block; font-weight: 500; font-size: 14px; direction: ltr; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail__item small { font-size: 12px; color: var(--muted); }
.rail__bar { position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: transparent; }
.rail__bar::after { content: ""; position: absolute; inset: 0; background: var(--paper); transform: scaleX(0); transform-origin: right; }
.rail__item[aria-selected="true"] .rail__bar::after { animation: rail var(--dur, 7s) linear forwards; }
@keyframes rail { to { transform: scaleX(1); } }

/* ---------------- SEARCH BAND ---------------- */
.seek { padding-block: 120px 40px; position: relative; }
.seek__head { display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px; align-items: end; margin-bottom: 36px; }
.display {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(34px, 4.4vw, 60px); line-height: 1.25; letter-spacing: 0; margin: 0;
}
.display span { white-space: nowrap; }
.seek__note { margin: 0; color: var(--muted); max-width: 40ch; }
.seek__field {
  display: flex; align-items: center; gap: 14px;
  height: 72px; padding-inline: 24px; border-radius: 18px;
  color: var(--muted);
  transition: border-color 0.25s;
}
.seek__field:focus-within { border-color: rgba(255, 255, 255, 0.28); }
.seek__field input, .sheet__field input {
  flex: 1; min-width: 0; height: 100%;
  background: none; border: 0; outline: none;
  color: var(--paper); font: 400 20px var(--f-body);
}
.seek__field input::placeholder, .sheet__field input::placeholder { color: var(--faint); }
input[type="search"]::-webkit-search-cancel-button { display: none; }
.seek__src { font-size: 11px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; }
.seek__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  font-size: 13px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.chip:hover { color: var(--paper); border-color: var(--line-2); }
.seek__results, .sheet__results { list-style: none; margin: 10px 0 0; padding: 0; }
.seek__results {
  position: absolute; z-index: 5; inset-inline: 0;
  border-radius: 18px; padding: 8px;
  background: rgba(18, 18, 20, 0.86);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.res {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center;
  padding: 10px 12px; border-radius: 12px; cursor: pointer;
}
.res:hover, .res.is-hl { background: rgba(255, 255, 255, 0.05); }
.res img { width: 44px; height: 58px; border-radius: 6px; object-fit: cover; }
.res b { display: block; font-weight: 500; direction: ltr; text-align: right; }
.res small { color: var(--muted); font-size: 12px; }
.res__state { font-size: 12px; color: var(--muted); }
.res__state.on { color: var(--paper); }
.res__empty { padding: 18px 14px; color: var(--muted); font-size: 14px; }
.res__empty b { color: var(--paper); font-weight: 500; }

/* ---------------- BLOCKS ---------------- */
.block { padding-block: 72px 24px; }
.block__head { margin-bottom: 28px; }
.block__head--split { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.02em; line-height: 1.15;
  margin: 0 0 6px;
}
.block__head p { margin: 0; max-width: 60ch; }
.link { color: var(--muted); font-size: 14px; transition: color 0.2s; }
.link:hover { color: var(--paper); }

/* Segmented filter */
.seg {
  display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
}
.seg button {
  font-size: 14px; padding: 8px 14px; border-radius: 9px; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.seg button .mono { font-size: 12px; opacity: 0.7; margin-inline-start: 4px; }
.gsec__head .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.gsec__head .seg button { white-space: nowrap; flex: none; }
.seg button:hover { color: var(--paper); }
.seg button[aria-selected="true"] { background: var(--paper); color: var(--ink); }

/* Close-to-goal strip: wide cards with art behind glass */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wide {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg); min-height: 230px;
  display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid var(--line);
}
.wide__art { position: absolute; inset: 0; z-index: -1; }
.wide__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.wide:hover .wide__art img { transform: scale(1.04); }
.wide__panel {
  margin: 10px; border-radius: 14px; padding: 14px 16px;
  display: grid; gap: 10px;
}
.wide__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.wide__top b { font-family: var(--f-display); font-weight: 500; font-size: 17px; direction: ltr; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wide__top span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.wide__top span .mono { color: var(--paper); }

/* Progress line used on cards */
.line { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; direction: rtl; }
.line i { display: block; height: 100%; background: var(--red); width: 0; transition: width 1.2s var(--ease); }
.line.is-full i { background: var(--paper); }

/* Cover grid */
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px 16px; }
.card { display: grid; gap: 10px; cursor: pointer; }
.card__cover {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: 12px; background: var(--ink-2);
  border: 1px solid var(--line);
}
.card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.5s; }
.card:hover .card__cover img { transform: scale(1.05); }
.card__tag {
  position: absolute; top: 8px; inset-inline-start: 8px;
  font-size: 11px; padding: 3px 8px; border-radius: 6px;
  background: rgba(10, 10, 11, 0.55); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
/* Hover: a glass sheet slides up over the cover */
.card__hover {
  position: absolute; inset: auto 6px 6px 6px;
  border-radius: 9px; padding: 10px;
  transform: translateY(calc(100% + 10px)); transition: transform 0.45s var(--ease);
  display: grid; gap: 6px; font-size: 12px;
}
.card:hover .card__hover, .card:focus-visible .card__hover { transform: none; }
.card__hover strong { font-family: var(--f-display); font-weight: 500; font-size: 13px; }
.card__meta { display: grid; gap: 6px; }
.card__meta b { font-weight: 500; font-size: 14px; direction: ltr; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__nums { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.card__nums .mono:first-child { color: var(--paper); }
.card.is-hidden { display: none; }
.launch-note { margin: 22px 0 0; font-size: 12px; color: var(--faint); }

/* ---------------- WORKSHOP ---------------- */
.ws { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.ws__lanes { display: grid; gap: 12px; }
.lane {
  display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 20px;
  padding: 16px 18px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
}
.lane__name { display: grid; gap: 2px; }
.lane__name b { font-family: var(--f-display); font-weight: 500; font-size: 17px; }
.lane__name small { font-size: 12px; color: var(--muted); }
.lane__slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.slot {
  height: 76px; border-radius: 12px; position: relative; overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  display: grid; place-items: center; font-size: 12px; color: var(--faint);
}
.slot.is-void { border: 0; background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(255,255,255,0.025) 6px 7px); }
.slot.is-busy { border: 1px solid var(--line-2); }
.slot.is-busy img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.slot.is-busy span {
  position: absolute; inset: auto 6px 6px 6px; z-index: 1;
  font-size: 11px; color: var(--paper); padding: 4px 7px; border-radius: 6px;
  background: rgba(10, 10, 11, 0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  direction: ltr; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.slot.is-busy::before { /* live "working" marker */
  content: ""; position: absolute; top: 8px; inset-inline-end: 8px; z-index: 1;
  width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.25; } }

.ws__queue { border-radius: var(--r-lg); padding: 18px; }
.ws__qhead { display: flex; justify-content: space-between; margin-bottom: 8px; }
.ws__queue ol { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.ws__queue li {
  counter-increment: q;
  display: grid; grid-template-columns: 22px 34px 1fr; gap: 12px; align-items: center;
  padding-block: 10px; border-top: 1px solid var(--line); font-size: 14px;
}
.ws__queue li::before { content: counter(q, decimal-leading-zero); font-family: var(--f-mono); font-size: 11px; color: var(--faint); }
.ws__queue li img { width: 34px; height: 44px; border-radius: 5px; object-fit: cover; }
.ws__queue li b { font-weight: 500; direction: ltr; text-align: right; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws__queue li small { color: var(--muted); font-size: 12px; }

/* ---------------- DONE ---------------- */
.done { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.done__item {
  display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center;
  padding: 12px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s, background 0.3s;
}
.done__item:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.035); }
.done__item img { width: 96px; height: 128px; object-fit: cover; border-radius: 10px; }
.done__item b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 18px; direction: ltr; text-align: right; }
.done__item p { margin: 4px 0 14px; color: var(--muted); font-size: 13px; }
.done__dl {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 7px 12px; border-radius: 9px;
  border: 1px solid var(--line-2);
  transition: background 0.2s, color 0.2s;
}
.done__dl:hover { background: var(--paper); color: var(--ink); }

/* ---------------- HOW ---------------- */
.how { padding-block: 110px 24px; }
.how__steps {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.how__steps li { padding: 28px 28px 8px 0; border-inline-start: 1px solid var(--line); }
.how__steps li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.how__steps li:not(:first-child) { padding-inline-start: 28px; }
.how__n { font-size: 12px; color: var(--red); }
.how__steps h3 { font-family: var(--f-display); font-weight: 500; font-size: 22px; margin: 14px 0 8px; letter-spacing: -0.01em; }
.how__steps p { margin: 0; color: var(--muted); max-width: 34ch; }
.rule {
  margin-top: 40px; border-radius: var(--r-lg); padding: 20px 24px;
  display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center;
}
.rule p { margin: 0; }

/* Small section label above an h2 */
.kicker { margin: 0 0 10px; font-size: 13px; color: var(--red); letter-spacing: 0.02em; }

/* ---------------- TOP RATED ---------------- */
.top {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px;
  border-top: 1px solid var(--line);
}
.top li { border-bottom: 1px solid var(--line); }
.top__row {
  display: grid; grid-template-columns: 34px 46px 1fr auto; gap: 16px; align-items: center;
  padding: 14px 4px; transition: background 0.25s;
  border-radius: 10px;
}
.top__row:hover { background: rgba(255, 255, 255, 0.03); }
.top__n { font-size: 13px; color: var(--faint); }
.top__row:hover .top__n { color: var(--red); }
.top__row img { width: 46px; height: 61px; object-fit: cover; border-radius: 6px; }
.top__name { min-width: 0; }
.top__name b { display: block; font-weight: 500; font-size: 16px; direction: ltr; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__name small, .top__score small { font-size: 12px; color: var(--muted); }
.top__score { display: grid; justify-items: end; gap: 2px; }
.top__score strong { font-size: 24px; font-weight: 400; line-height: 1; }

/* ---------------- LOCALIZATION BAND ---------------- */
.loc {
  margin-top: 120px; padding-top: 56px;
  border-top: 1px solid var(--line);
}
.loc__head { display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px; align-items: end; }
.loc__note { margin: 0; color: var(--muted); max-width: 40ch; }
.loc + .block { padding-top: 48px; }

/* ---------------- FOOTER ---------------- */

.foot {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding-block: 48px 64px; font-size: 14px;
}
.foot__logo { width: auto; height: 40px; aspect-ratio: 480 / 302; }
.foot p { margin: 0; }
.foot nav { margin-inline-start: auto; display: flex; gap: 22px; }
.foot nav a { color: var(--muted); transition: color 0.2s; }
.foot nav a:hover { color: var(--paper); }

/* ---------------- SEARCH SHEET ---------------- */
.sheet { position: fixed; inset: 0; z-index: 80; display: grid; justify-items: center; padding-top: 12vh; }
.sheet[hidden] { display: none; }
.sheet__backdrop {
  position: absolute; inset: 0; background: rgba(5, 5, 6, 0.5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fade 0.25s var(--ease);
}
.sheet__panel {
  position: relative; width: min(640px, 100% - 32px); align-self: start;
  border-radius: 20px; padding: 8px;
  background: rgba(20, 20, 22, 0.78);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 40px 120px rgba(0, 0, 0, 0.6);
  animation: rise 0.35s var(--ease);
}
.sheet__field { display: flex; align-items: center; gap: 12px; height: 58px; padding-inline: 16px; color: var(--muted); border-bottom: 1px solid var(--line); }
.sheet__field input { font-size: 18px; }
.sheet__results { margin: 0; padding: 6px 0 2px; max-height: 56vh; overflow: auto; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(0.98); } }

/* ---------------- MOTION ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

.hero__copy > *, .spot, .hero__rail { animation: enter 1s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: 0.08s; }
.hero__copy > :nth-child(3) { animation-delay: 0.16s; }
.spot { animation-delay: 0.24s; }
.hero__rail { animation-delay: 0.36s; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } }

.swap { animation: swap 0.7s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ================= GAME PAGE ================= */
.btn--block { display: flex; width: 100%; }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover:not(:disabled) { background: #fff; transform: translateY(-1px); }
#lpGo { gap: 0.35em; } /* flex drops the space between the words and the amount */
.h3 { font-family: var(--f-display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; margin: 0; }

/* Header */
.gh { position: relative; isolation: isolate; padding-top: 220px; }
.gh__art { position: absolute; inset: 0 0 auto 0; height: 520px; z-index: -1; overflow: hidden; }
.gh__art img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%;
  -webkit-mask-image: linear-gradient(#000 45%, transparent 100%);
  mask-image: linear-gradient(#000 45%, transparent 100%);
}
.gh__art::after { content: ""; position: absolute; inset: 0; background: rgba(10, 10, 11, 0.45); }
.gh__inner { display: grid; grid-template-columns: 220px 1fr auto; gap: 36px; align-items: end; }
.gh__poster { border-radius: 16px; padding: 6px; aspect-ratio: 2 / 3; /* cover art ratio (600x900) */ box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55); }
.gh__poster img { width: 100%; height: 100%; object-fit: fill; border-radius: 11px; } /* whole image, never cropped: other ratios stretch to the frame */
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--paper); }
.crumbs span:last-child { color: var(--paper); direction: ltr; }
.gh__title {
  font-family: var(--f-display); font-weight: 800; margin: 0;
  font-size: clamp(40px, 5.6vw, 84px); line-height: 0.98; letter-spacing: -0.035em;
  direction: ltr; text-align: right; text-wrap: balance;
}
.gh__by { margin: 12px 0 18px; color: rgba(243, 241, 238, 0.75); font-size: 16px; }
.gh__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gh__chips li {
  font-size: 13px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(10, 10, 11, 0.35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.gh__chips li.is-genre { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.gh__chips li.is-ar { color: var(--paper); border-color: rgba(229, 20, 29, 0.55); background: rgba(229, 20, 29, 0.14); }
.gh__score { display: grid; justify-items: end; gap: 4px; padding-bottom: 6px; }
.gh__score strong { font-size: 72px; font-weight: 400; line-height: 0.9; }
.gh__score small { font-size: 13px; }

/* Body layout */
.gb { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: start; margin-top: 56px; }
.gb__main { display: grid; gap: 56px; min-width: 0; }
.gb__side { display: grid; gap: 16px; }
#lpAmt { margin-inline-start: 6px; }
.gsec { display: grid; gap: 20px; }
.gsec__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.about { margin: 0; font-size: 17px; line-height: 1.9; color: rgba(243, 241, 238, 0.86); max-width: 68ch; }

.facts { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.facts div:not(:nth-child(3n + 1)) { padding-inline-start: 20px; border-inline-start: 1px solid var(--line); }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 0; font-size: 15px; }
.facts--tight { grid-template-columns: repeat(3, 1fr); }
.pegi { font-size: 12px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line-2); }

/* Ratings */
.rates { display: grid; grid-template-columns: 1fr 220px; gap: 32px; align-items: end; }
.dist { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; height: 190px; direction: ltr; }
.dist__col { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; text-align: center; min-width: 0; }
.dist__pct { font-size: 11px; color: var(--faint); }
.dist__n { font-size: 12px; color: var(--muted); }
.bar { position: relative; border-radius: 6px; background: rgba(255, 255, 255, 0.04); overflow: hidden; }
.bar i { position: absolute; inset: auto 0 0 0; height: 0; background: rgba(243, 241, 238, 0.22); border-radius: 6px; transition: height 1s var(--ease); }
.bar.is-top i { background: var(--red); }
.dist__col:hover .dist__pct { color: var(--paper); }
.dist { position: relative; }
.dist__none { position: absolute; inset: 0 0 28px; display: grid; place-items: center; margin: 0; direction: rtl; color: var(--muted); font-size: 14px; }
.statuses { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.statuses li { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.statuses .mono { font-size: 18px; }
.statuses small { color: var(--muted); font-size: 13px; }

/* Reviews */
.seg--sm button { font-size: 13px; padding: 6px 12px; }
.seg--full { display: flex; }
.seg--full button { flex: 1; }
.reviews { display: grid; gap: 12px; }
.rev { padding: 20px 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.rev__head { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; }
.rev__head b { display: block; font-weight: 500; }
.rev__head small { color: var(--muted); font-size: 12px; }
.rev__head > div { display: grid; gap: 3px; min-width: 0; }
.rev__who { justify-self: start; }
.rev__av {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: 16px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2);
}
.rev__av--sm { width: 32px; height: 32px; font-size: 13px; }
.rev__score { font-size: 24px; line-height: 1; }
.rev__score small { font-size: 12px; color: var(--muted); }
.rev p { margin: 14px 0 12px; color: rgba(243, 241, 238, 0.85); }
.rev__help {
  font-size: 12px; color: var(--muted); padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s;
}
.rev__help:hover { color: var(--paper); border-color: var(--line-2); }
.rev__help.is-on { color: var(--paper); border-color: var(--paper); }

/* Report */
.report { margin-top: -4px; }
.report__open { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.report__open:hover { color: var(--paper); }
.report__form { margin-top: 12px; border-radius: var(--r); padding: 16px; display: grid; gap: 12px; max-width: 520px; }
.report__lead { margin: 0; font-size: 14px; color: rgba(243, 241, 238, 0.85); }
.report__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.report__opts label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 14px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line);
}
.report__opts label:has(input:checked) { border-color: var(--paper); }
.report__opts input { accent-color: var(--red); margin: 0; }
.report__form textarea {
  resize: vertical; min-height: 64px; padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); color: var(--paper); font: 400 14px var(--f-body);
}
.report__form textarea:focus { outline: none; border-color: rgba(255, 255, 255, 0.3); }
.report__actions { display: flex; gap: 8px; }
.report__actions .btn { height: 42px; margin: 0; font-size: 14px; }

/* Media: stage + thumbnail strip */
.media { display: grid; gap: 12px; }
.media__stage {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--line);
}
.media__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media__zoom { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.media__video, .media__frame { width: 100%; height: 100%; display: block; border: 0; background: #000; }
.media__play { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; }
.media__play::before { content: ""; position: absolute; inset: 0; background: rgba(10, 10, 11, 0.28); transition: background 0.3s; }
.media__play:hover::before { background: rgba(10, 10, 11, 0.12); }
.media__playbtn {
  position: relative; width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; transition: transform 0.3s var(--ease), background 0.3s;
}
.media__play:hover .media__playbtn { transform: scale(1.06); background: rgba(229, 20, 29, 0.85); border-color: transparent; }
.media__playbtn svg { width: 30px; height: 30px; fill: var(--paper); } /* play glyphs are not mirrored in RTL; the path is drawn centered */
.media__label {
  position: absolute; bottom: 16px; inset-inline-start: 16px;
  display: grid; gap: 1px; padding: 8px 14px; border-radius: 12px; text-align: start;
}
.media__label small { font-size: 11px; color: var(--muted); }
.media__label b { font-weight: 500; font-size: 14px; }
.media__count { position: absolute; bottom: 14px; inset-inline-start: 14px; font-size: 12px; padding: 4px 10px; border-radius: 8px; pointer-events: none; }
.media__nav {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  opacity: 0; transition: opacity 0.25s;
}
.media__stage:hover .media__nav, .media__nav:focus-visible { opacity: 1; }
.media__nav--prev { right: 14px; }
.media__nav--next { left: 14px; }
.media__nav svg, .lb__btn svg { width: 18px; height: 18px; fill: none; stroke: var(--paper); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.media__err { margin: 0; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }

.media__strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 8px;
  overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.media__thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); opacity: 0.55; transition: opacity 0.2s, border-color 0.2s;
}
.media__thumb img { width: 100%; height: 100%; object-fit: cover; }
.media__thumb:hover { opacity: 0.85; }
.media__thumb[aria-selected="true"] { opacity: 1; border-color: var(--paper); }
.media__mini {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(10, 10, 11, 0.3);
}
.media__mini svg { width: 18px; height: 18px; fill: var(--paper); }

/* Trailer player (player.js). Controls float in a glass bar; no scrims, no gradients. */
.vp { position: absolute; inset: 0; background: #000; outline: none; overflow: hidden; user-select: none; -webkit-user-select: none; }
.vp.is-full { border-radius: 0; }
.vp__video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; cursor: pointer; }
.vp.is-idle, .vp.is-idle .vp__video { cursor: none; }
.vp svg { width: 20px; height: 20px; fill: var(--paper); }
.vp svg .s { fill: none; stroke: var(--paper); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.vp__big {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(229, 20, 29, 0.92);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45); transition: transform 0.25s var(--ease), opacity 0.2s;
  opacity: 0; transform: scale(0.85); pointer-events: none;
}
.vp__big svg { width: 30px; height: 30px; transform: translateX(2px); }
.vp.is-paused .vp__big { opacity: 1; transform: none; pointer-events: auto; }
.vp__big:hover { transform: scale(1.06) !important; }

.vp__spin {
  position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18); border-top-color: var(--paper);
  opacity: 0; transition: opacity 0.2s; pointer-events: none; animation: vpSpin 0.8s linear infinite;
}
.vp.is-wait:not(.is-paused) .vp__spin { opacity: 1; }
@keyframes vpSpin { to { transform: rotate(360deg); } }

.vp__bar {
  position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 6px 10px 6px;
  border-radius: 14px; background: rgba(12, 12, 13, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.vp.is-idle .vp__menu, .vp.is-idle .vp__bar { opacity: 0; transform: translateY(8px); pointer-events: none; }

.vp__track { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; touch-action: none; outline: none; }
.vp__rail { position: relative; width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); overflow: hidden; transition: height 0.15s; }
.vp__track:hover .vp__rail, .vp.is-drag .vp__rail, .vp__track:focus-visible .vp__rail { height: 6px; }
.vp__buf, .vp__fill { position: absolute; inset: 0 auto 0 0; width: 0; }
.vp__buf { background: rgba(255, 255, 255, 0.22); }
.vp__fill { background: var(--red); }
.vp__knob {
  position: absolute; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%;
  background: var(--paper); box-shadow: 0 0 0 4px rgba(229, 20, 29, 0.35); transform: scale(0); transition: transform 0.15s;
}
.vp__track:hover .vp__knob, .vp.is-drag .vp__knob, .vp__track:focus-visible .vp__knob { transform: scale(1); }
.vp__tip {
  position: absolute; bottom: 22px; transform: translateX(-50%); padding: 3px 7px; border-radius: 6px;
  background: rgba(12, 12, 13, 0.9); border: 1px solid var(--line-2); font-size: 11px; opacity: 0; pointer-events: none; transition: opacity 0.15s;
}
.vp__track:hover .vp__tip { opacity: 1; }

.vp__row { display: flex; align-items: center; gap: 2px; height: 38px; }
.vp__btn {
  position: relative; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none;
  transition: background 0.15s;
}
.vp__btn:hover, .vp__btn[aria-expanded="true"] { background: rgba(255, 255, 255, 0.09); }
.vp__btn:focus-visible { outline: 2px solid var(--paper); outline-offset: -2px; }
.vp__vol { display: flex; align-items: center; }
.vp__volr {
  -webkit-appearance: none; appearance: none; width: 0; opacity: 0; height: 4px; border-radius: 4px; margin: 0;
  background: linear-gradient(to right, var(--paper) var(--v, 100%), rgba(255, 255, 255, 0.2) var(--v, 100%));
  transition: width 0.2s var(--ease), opacity 0.2s, margin 0.2s; cursor: pointer;
}
.vp__vol:hover .vp__volr, .vp__volr:focus-visible { width: 76px; opacity: 1; margin: 0 8px 0 2px; }
.vp__volr::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 0; }
.vp__volr::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 0; }
.vp__time { font-size: 12.5px; color: rgba(243, 241, 238, 0.7); padding: 0 8px; white-space: nowrap; }
.vp__time b { font-weight: 500; color: var(--paper); }
.vp__sp { flex: 1; }

.vp__set { position: relative; }
.vp__hd {
  position: absolute; top: 5px; right: 3px; padding: 0 3px; border-radius: 3px; font: 700 8px/12px var(--f-body, sans-serif);
  background: var(--red); color: #fff; letter-spacing: 0.02em; pointer-events: none;
}
.vp__menu {
  position: absolute; bottom: 70px; right: 14px; min-width: 210px; max-height: calc(100% - 84px); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px; border-radius: 14px; scrollbar-width: thin;
  background: rgba(16, 16, 18, 0.9); display: grid; gap: 2px; z-index: 2;
  animation: vpMenu 0.18s var(--ease);
}
@keyframes vpMenu { from { opacity: 0; transform: translateY(6px); } }
.vp__mh { margin: 4px 10px 4px; font-size: 11px; color: var(--muted); }
.vp__mh:not(:first-child) { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.vp__menu [data-q] {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 9px;
  font-size: 14px; text-align: start;
}
.vp__menu [data-q]:hover { background: rgba(255, 255, 255, 0.07); }
.vp__menu [data-q][aria-checked="true"] { color: var(--paper); }
.vp__menu [data-q] small { color: var(--muted); font-size: 12px; }
.vp__menu [data-q] em { font-style: normal; font: 700 9px/14px var(--f-body, sans-serif); padding: 0 4px; border-radius: 3px; background: var(--red); color: #fff; margin-inline-start: 4px; vertical-align: 1px; }
.vp__menu [data-q] svg { width: 16px; height: 16px; }
.vp__speeds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 0 2px 2px; }
.vp__speeds button { padding: 7px 0; border-radius: 8px; font-size: 12.5px; background: rgba(255, 255, 255, 0.05); }
.vp__speeds button:hover { background: rgba(255, 255, 255, 0.1); }
.vp__speeds button[aria-checked="true"] { background: var(--paper); color: var(--ink, #0e0e0f); }

@media (max-width: 520px) {
  .vp__bar { left: 6px; right: 6px; bottom: 6px; padding: 2px 6px; border-radius: 11px; }
  .vp__btn { width: 34px; height: 34px; }
  .vp__row { height: 34px; }
  .vp__vol .vp__volr { display: none; }
  .vp__time { font-size: 11.5px; padding: 0 4px; }
  .vp__big { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .vp__menu { min-width: 190px; bottom: 54px; right: 8px; max-height: calc(100% - 64px); }
}

/* Lightbox */
.lb {
  position: fixed; inset: 0; z-index: 85;
  display: grid; grid-template-columns: 72px 1fr 72px; align-items: center;
  background: rgba(6, 6, 7, 0.86);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  animation: fade 0.25s var(--ease);
}
.lb[hidden] { display: none; }
.lb__fig { margin: 0; display: grid; place-items: center; height: 100vh; padding: 40px 0; }
.lb__fig img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); }
.lb__btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; justify-self: center;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); transition: background 0.2s;
}
.lb__btn:hover { background: rgba(255, 255, 255, 0.14); }
.lb__close { position: absolute; top: 20px; left: 20px; }
.lb__count { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; font-size: 13px; color: var(--muted); }

/* Sidebar: my list */
.mine { border-radius: var(--r-lg); padding: 18px; display: grid; gap: 14px; }
.mine__status { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mine__status button {
  font-size: 13px; padding: 9px 4px; border-radius: 10px;
  border: 1px solid var(--line); color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.mine__status button:hover { color: var(--paper); border-color: var(--line-2); }
.mine__status button[aria-checked="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.mine__rate { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.pips { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; direction: ltr; }
.pips button { height: 20px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); transition: background 0.15s; }
.pips button.on { background: var(--red); }
.mine__val { font-size: 13px; min-width: 38px; text-align: left; }
.mine__hint { margin: 0; font-size: 12px; color: var(--muted); }
.mine__hint a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

/* Sidebar: localization */
.lp { border-radius: var(--r-lg); padding: 18px; display: grid; gap: 14px; scroll-margin-top: 100px; }
.lp__head { display: flex; justify-content: space-between; align-items: center; }
.lp__badge {
  font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2);
  display: inline-flex; align-items: center;
}
.lp__badge.is-red { border-color: rgba(229, 20, 29, 0.6); color: #ff5a60; }
#lpBody { display: grid; gap: 14px; }
.lp__nums { display: flex; justify-content: space-between; align-items: baseline; }
.lp__nums strong { font-size: 40px; font-weight: 500; line-height: 1; }
.lp__meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.lp__meta b { color: var(--paper); font-weight: 500; }
.ticks { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; height: 22px; direction: rtl; }
.ticks i { display: block; border-radius: 2px; background: rgba(255, 255, 255, 0.1); transition: background 0.5s var(--ease), transform 0.5s var(--ease); transform-origin: bottom; }
.ticks i.on { background: var(--red); }
.ticks i.edge { background: var(--paper); transform: scaleY(1.25); }
.lp__amounts { display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; gap: 6px; }
.lp__amounts button, .lp__custom {
  height: 42px; border-radius: 10px; border: 1px solid var(--line); font-size: 15px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.lp__amounts button:hover { border-color: var(--line-2); }
.lp__amounts button[aria-checked="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.lp__custom { display: flex; align-items: center; gap: 4px; padding-inline: 10px; color: var(--muted); }
.lp__custom:focus-within { border-color: rgba(255, 255, 255, 0.3); }
.lp__custom input { width: 100%; min-width: 0; background: none; border: 0; outline: none; color: var(--paper); font: 400 14px var(--f-body); -moz-appearance: textfield; }
.lp__custom input::-webkit-outer-spin-button, .lp__custom input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lp__custom input::placeholder { color: var(--faint); }
.lp .btn--red { margin: 0; }
.lp__fine { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.7; }
.lp__reqbar { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.lp__reqbar small { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.lp__reqbar small b { color: var(--paper); font-weight: 500; }
#lpForm { display: grid; gap: 14px; }
#lpForm[hidden] { display: none; }
#lpMethod button:disabled { opacity: 0.45; cursor: not-allowed; }
#lpMethod button:disabled:hover { color: inherit; }
#lpMethod small { font-size: 10.5px; margin-inline-start: 4px; }

/* InstaPay steps (game page) */
.pay { display: grid; gap: 12px; }
.pay__head { display: flex; justify-content: space-between; align-items: center; }
.pay__head b { font-family: var(--f-display); font-size: 16px; }
.pay__x { background: none; border: 0; padding: 4px; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.pay__x:hover { color: var(--paper); }
.pay__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: pay; }
.pay__steps li { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.025); counter-increment: pay; }
.pay__steps li > span { font-size: 13px; color: var(--muted); }
.pay__steps li > span::before { content: counter(pay) ". "; font-family: var(--f-mono); color: #ff5a60; }
.pay__steps small { font-size: 11.5px; color: var(--faint); }
.pay__copy { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); color: var(--paper); cursor: pointer; transition: border-color 0.15s; }
.pay__copy:hover { border-color: rgba(229, 20, 29, 0.55); }
.pay__copy b { font-size: 18px; font-weight: 500; letter-spacing: 0.02em; }
.pay__copy svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pay__field { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.pay__field input { height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--paper); font: inherit; font-size: 14px; }
.pay__field input:focus { outline: none; border-color: rgba(229, 20, 29, 0.55); }
.pay__note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.7; }
.pay--wait, .pay--ok, .pay--no { justify-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.025); }
.pay--wait p, .pay--ok p, .pay--no p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.8; }
.pay--wait > b, .pay--ok > b, .pay--no > b { font-family: var(--f-display); font-size: 16px; }
.pay__ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(229, 20, 29, 0.12); border: 1px solid rgba(229, 20, 29, 0.45); }
.pay__ic svg { width: 18px; height: 18px; fill: none; stroke: #ff5a60; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lp__lead { margin: 0; font-size: 14px; color: rgba(243, 241, 238, 0.85); }
.lp__recent { border-top: 1px solid var(--line); padding-top: 12px; }
.lp__recent ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.lp__recent li { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.lp__recent li b { display: block; font-weight: 500; }
.lp__recent li small { color: var(--muted); font-size: 12px; }
.lp__amt { display: grid; justify-items: end; }
/* Done: published patch, thanks, donor leaderboard */
.lp__badge.is-done { border-color: rgba(243, 241, 238, 0.25); color: var(--paper); }
.lp__done { display: flex; align-items: center; gap: 12px; }
.lp__check { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(229, 20, 29, 0.12); border: 1px solid rgba(229, 20, 29, 0.45); }
.lp__check svg { width: 20px; height: 20px; fill: none; stroke: #ff5a60; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lp__done strong { display: block; font-family: var(--f-display); font-weight: 700; font-size: 18px; line-height: 1.3; }
.lp__done small { display: block; font-size: 13px; color: var(--muted); }
.lp__stats { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.lp__stats div { padding: 12px 12px; display: grid; gap: 4px; text-align: right; }
.lp__stats div:first-child { padding-inline-start: 0; }
.lp__stats div:last-child { padding-inline-end: 0; }
.lp__stats div + div { border-inline-start: 1px solid var(--line); }
.lp__stats dt { font-size: 11.5px; color: var(--muted); }
.lp__stats dd { margin: 0; font-size: 17px; font-weight: 500; text-align: right; }
.lp__stats dd.mono { direction: ltr; unicode-bidi: plaintext; text-align: right; }
.lp__dl { gap: 10px; }
.lp__dl svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.thanks { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 10px; }
.thanks__title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.3; }
.thanks__title::after { content: "."; color: var(--red); }
.thanks__msg { margin: 0; font-size: 13.5px; line-height: 1.8; color: rgba(243, 241, 238, 0.78); }
.thanks__msg b { color: var(--paper); font-weight: 500; }
.board__head { display: flex; justify-content: space-between; margin-top: 6px; }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.board__row { display: grid; grid-template-columns: 22px 28px 1fr auto; gap: 10px; align-items: center; padding: 7px 8px; margin-inline: -8px; border-radius: 10px; font-size: 14px; }
.board__row:hover { background: rgba(255, 255, 255, 0.03); }
.board__rank { font-size: 11px; color: var(--faint); }
.board__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board__name small { margin-inline-start: 8px; font-size: 11.5px; color: var(--muted); }
.board__amt { font-weight: 500; }
.board__row.is-top .board__rank { color: var(--paper); }
.board__row.is-top--1 { background: rgba(229, 20, 29, 0.08); }
.board__row.is-top--1 .board__rank, .board__row.is-top--1 .board__amt { color: #ff5a60; }
.board__row.is-top--1 .rev__av { border-color: rgba(229, 20, 29, 0.6); }
.board__more { justify-self: start; font-size: 13px; color: var(--paper); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); padding: 4px 0; }
.board__anon { margin: 0; font-size: 12.5px; color: var(--muted); }
.lp__queue { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-block: 1px solid var(--line); }
.lp__queue strong { font-size: 32px; font-weight: 400; }

.stages { list-style: none; margin: 0; padding: 0; display: grid; }
.stages li { position: relative; display: grid; grid-template-columns: 18px 1fr; column-gap: 12px; padding-block: 8px; font-size: 14px; color: var(--faint); }
.stages li small { grid-column: 2; font-size: 12px; color: var(--muted); }
.stages li::before {
  content: ""; position: absolute; inset-inline-start: 8px; top: 24px; bottom: -8px; width: 1px; background: var(--line-2);
}
.stages li:last-child::before { display: none; }
.stages__dot { width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--line-2); margin-top: 3px; position: relative; z-index: 1; background: var(--ink-2); }
.stages li.is-done { color: var(--muted); }
.stages li.is-done .stages__dot { background: var(--paper); border-color: var(--paper); }
.stages li.is-now { color: var(--paper); }
.stages li.is-now .stages__dot { border-color: var(--red); box-shadow: inset 0 0 0 4px var(--ink-2), inset 0 0 0 10px var(--red); }

.tiers { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.tiers li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tiers b { font-weight: 400; }.tiers s { color: var(--faint); margin-inline-end: 4px; text-decoration-thickness: 1px; }
.tiers__launch { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 12.5px; color: var(--paper); }
.lp__fine a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

.lp__terms { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

/* Terms page */
.terms { padding-top: 140px; max-width: 760px; }
.terms h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.02em; margin: 0 0 8px; }
.terms h2 { font-family: var(--f-display); font-weight: 500; font-size: 20px; margin: 48px 0 12px; }
.terms ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 10px; color: rgba(243, 241, 238, 0.86); }
.terms [lang=en] { direction: ltr; text-align: left; font-family: var(--f-body); }

/* Search results are links now */
.res { color: inherit; }

/* Toast */
.toast {
  position: fixed; z-index: 90; bottom: 28px; left: 50%;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 12px; font-size: 14px;
  background: rgba(20, 20, 22, 0.82);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* English fallback description on the game page */
/* English store text inside an Arabic page: a proper Latin face, left-aligned, labelled in Arabic above. */
.about--en {
  font-family: var(--f-latin); font-size: 16px; line-height: 1.75; letter-spacing: 0;
  text-align: left; text-wrap: pretty; max-width: none;
  color: rgba(243, 241, 238, 0.82);
}
.about__note {
  margin: 0 0 12px; font-size: 12.5px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.about__note span { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2); }

/* Admin page styles live in admin.css. */

/* ================= AUTH (login.html) =================
   The tilted wall of sliding covers fills the whole page. The showcase sits on it directly;
   the form floats over it in a column of frosted glass. No boxes, no fades. */
.page-auth { overflow-x: hidden; background: #050506; }
.auth { position: relative; z-index: 1; display: flex; min-height: 100vh; min-height: 100dvh; }

.auth__wall { position: fixed; inset: 0; overflow: hidden; z-index: 0; }
.auth__tilt {
  position: absolute; top: 50%; left: 50%;
  display: flex; flex-direction: column; gap: 14px;
  transform: translate(-50%, -50%) rotate(-12deg) scale(1.22);
  direction: ltr; /* the loop math is left-to-right; the wall is decoration */
}
.auth__row { display: flex; width: max-content; will-change: transform; animation: authSlide var(--dur, 80s) linear infinite var(--dir, normal); }
.auth__row img {
  width: 140px; aspect-ratio: 3 / 4; object-fit: cover; margin-right: 14px; flex: none;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0.6; filter: saturate(0.9);
}
@keyframes authSlide { to { transform: translateX(-33.3333%); } }
.auth__wall::after { content: ""; position: absolute; inset: 0; background: rgba(5, 5, 6, 0.5); }

/* Showcase: type straight on the wall */
.auth__show {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 40px 56px 56px;
}
.auth__logo { height: 58px; aspect-ratio: 480 / 302; display: block; align-self: flex-start; }
.auth__copy { max-width: 560px; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6); }
.auth__kicker {
  margin: 0 0 16px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; color: rgba(243, 241, 238, 0.7);
  display: inline-flex; align-items: center; gap: 10px;
}
.auth__kicker::before { content: ""; width: 28px; height: 1px; background: var(--red); }
.auth__copy h1 {
  font-family: var(--f-display); font-weight: 800; margin: 0;
  font-size: clamp(40px, 4.6vw, 72px); line-height: 1.3; letter-spacing: 0; /* Arabic: no negative tracking, room for dots */
}
.auth__copy h1 span { color: var(--red); display: block; }
.auth__blurb { margin: 18px 0 0; max-width: 40ch; font-size: 16px; color: rgba(243, 241, 238, 0.78); }

/* The picked game: one list entry, cycling through the wall */
.auth__pick {
  position: relative; overflow: hidden; margin-top: 30px; width: min(360px, 100%);
  display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center;
  padding: 10px 14px 12px 10px; border-radius: 16px; text-shadow: none;
  background: rgba(12, 12, 14, 0.55); border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  transition: border-color 0.2s;
}
.auth__pick:hover { border-color: rgba(255, 255, 255, 0.22); }
.auth__pickcv { width: 52px; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--ink-2); }
.auth__pickcv img { width: 100%; height: 100%; object-fit: cover; }
.auth__pickbody { display: grid; gap: 2px; min-width: 0; }
.auth__pickbody small { font-size: 11px; color: var(--muted); }
.auth__pickbody b { font-family: var(--f-display); font-weight: 500; font-size: 16px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth__pickmeta { display: flex; gap: 10px; font-size: 12px; }
.auth__pickmeta [data-score] { color: var(--paper); }
.auth__pickbar { position: absolute; inset: auto 0 0 0; height: 2px; background: rgba(255, 255, 255, 0.06); }
.auth__pickbar i { display: block; height: 100%; background: var(--red); transform-origin: right; transform: scaleX(0); }
.auth__pick.is-in .auth__pickbar i { animation: pickBar var(--pick, 4s) linear forwards; }
.auth__pick.is-in .auth__pickcv, .auth__pick.is-in .auth__pickbody { animation: swap 0.6s var(--ease); }
@keyframes pickBar { to { transform: scaleX(1); } }

/* Form side: a column of frosted glass over the wall */
.auth__side {
  flex: 0 0 min(560px, 46%);
  display: flex; align-items: center; justify-content: center; padding: 40px 32px;
  background: rgba(10, 10, 11, 0.86);
  -webkit-backdrop-filter: blur(30px) saturate(140%); backdrop-filter: blur(30px) saturate(140%);
  border-inline-start: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.04);
}
.auth__wrap { width: 100%; max-width: 430px; animation: enter 0.6s var(--ease) both; }
.auth__mlogo { display: none; height: 52px; aspect-ratio: 480 / 302; margin-bottom: 18px; }
.auth__head h2 { font-family: var(--f-display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; margin: 0; }
.auth__head p { margin: 6px 0 0; color: rgba(243, 241, 238, 0.72); font-size: 15px; }

.auth__tabs { display: flex; margin: 24px 0 18px; border-bottom: 1px solid var(--line); }
.auth__tab { position: relative; padding: 0 18px 12px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color 0.15s; }
.auth__tab:hover { color: var(--muted); }
.auth__tab.is-on { color: var(--paper); }
.auth__tab.is-on::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--red); }

.auth__panel { border-radius: 20px; padding: 24px; box-shadow: inset 0 1px 0 var(--glass-hi); background: rgba(22, 22, 25, 0.82); border: 1px solid rgba(255, 255, 255, 0.08); }
.auth__social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth__soc {
  height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); font-size: 14px; font-weight: 500;
}
.auth__soc svg { width: 18px; height: 18px; }
.auth__soc small { font-size: 10px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); }
.auth__soc:disabled { opacity: 0.55; cursor: not-allowed; }
.auth__divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 12px; color: var(--muted); }
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth__form { display: grid; gap: 16px; }
.auth__group { display: grid; gap: 7px; }
.auth__group > label { font-size: 13px; color: rgba(243, 241, 238, 0.9); }
.auth__field { position: relative; display: flex; align-items: center; }
.auth__field > svg {
  position: absolute; inset-inline-start: 14px; width: 17px; height: 17px; pointer-events: none;
  fill: none; stroke: var(--faint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s;
}
.auth__field input {
  width: 100%; height: 50px; padding: 0 44px 0 14px; border-radius: 12px; /* physical: icon right, eye left, even in ltr inputs */
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-2);
  color: var(--paper); font: 400 15px var(--f-body); transition: border-color 0.2s, background 0.2s;
}
.auth__field input[dir=ltr] { text-align: right; }
.auth__field input[dir=ltr]:not(:placeholder-shown) { text-align: left; }
.auth__field input::placeholder { color: #75716d; }
.auth__field input:focus { outline: none; border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.05); }
.auth__field:focus-within > svg { stroke: var(--paper); }
.auth__field:has(.auth__eye) input { padding-left: 50px; }
.auth__eye { position: absolute; left: 6px; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; color: var(--faint); }
.auth__eye:hover, .auth__eye[aria-pressed=true] { color: var(--paper); background: rgba(255, 255, 255, 0.06); }
.auth__eye svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth__hint { font-size: 12px; color: var(--muted); }

.auth__meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.auth__meter i { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); transition: background 0.25s; }
.auth__meter[data-s="1"] i:nth-child(-n + 1) { background: var(--red); }
.auth__meter[data-s="2"] i:nth-child(-n + 2) { background: #f2a33a; }
.auth__meter[data-s="3"] i:nth-child(-n + 3) { background: var(--paper); }
.auth__meter[data-s="4"] i { background: #3ddc84; }

.auth__msg { padding: 11px 14px; border-radius: 12px; font-size: 14px; border: 1px solid rgba(229, 20, 29, 0.55); background: rgba(229, 20, 29, 0.08); }
.auth__remember { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); cursor: pointer; justify-self: start; }
.auth__remember input { accent-color: var(--red); width: 16px; height: 16px; margin: 0; }
.auth__submit { gap: 10px; margin-top: 2px; }
.auth__submit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--ease); }
.auth__submit:hover svg { transform: translateX(-3px); }
.auth__submit:disabled { opacity: 0.7; cursor: progress; }
.auth__terms { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }
.auth__terms a, .auth__foot a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.auth__foot { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--muted); }

@media (max-width: 960px) {
  .auth__show { display: none; }
  .auth__side { flex: 1; border: 0; }
  .auth__mlogo { display: block; }
}

/* ================= MY LIST ================= */
.ml { padding-block: 130px 40px; min-height: 70vh; display: grid; gap: 32px; align-content: start; }
.ml__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.ml__head .kicker { direction: ltr; text-align: right; }
.ml__head .seg button .mono { font-size: 12px; opacity: 0.6; margin-inline-start: 4px; }
.ml__empty { display: grid; justify-items: center; gap: 16px; padding: 64px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); text-align: center; color: var(--muted); }
.ml__empty p { margin: 0; max-width: 46ch; }
.card__score small { font-size: 10px; opacity: 0.6; }

/* ================= ACCOUNT MENU (nav) ================= */
/* Account: frameless like the nav links — a round avatar, the handle, a chevron. A soft fill on hover / open. */
.acct { position: relative; flex: none; margin-inline-start: -14px; }
.acct__btn {
  display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 4px 4px 4px 12px; border-radius: 999px;
  background: transparent; border: 1px solid transparent; color: rgba(243, 241, 238, 0.85);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.acct__btn:hover, .acct__btn[aria-expanded=true] { background: rgba(255, 255, 255, 0.06); border-color: var(--line); color: var(--paper); }
.acct__name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 500; unicode-bidi: plaintext; }
.acct__btn > svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; transition: transform 0.2s, stroke 0.2s; }
.acct__btn:hover > svg, .acct__btn[aria-expanded=true] > svg { stroke: var(--paper); }
.acct__btn[aria-expanded=true] > svg { transform: rotate(180deg); }
/* Avatar: a dark disc with a thin ring; the ring turns red when the menu is open. */
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: 14px; line-height: 1; color: var(--paper);
  background: #1c1c1f; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: box-shadow 0.2s;
}
.acct__btn[aria-expanded=true] .avatar, .acct__btn:hover .avatar { box-shadow: inset 0 0 0 1.5px var(--red); }
.avatar--lg { width: 48px; height: 48px; font-size: 19px; box-shadow: inset 0 0 0 1.5px var(--red); }

.acct__menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; width: 300px; z-index: 60;
  border-radius: 18px; overflow: hidden;
  background: rgba(16, 16, 18, 0.96);
  -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 30px 80px rgba(0, 0, 0, 0.55);
  transform-origin: top left; animation: menuIn 0.18s var(--ease);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.acct__head { display: grid; grid-template-columns: 48px 1fr 18px; gap: 12px; align-items: center; padding: 16px; transition: background 0.2s; }
.acct__head:hover { background: rgba(255, 255, 255, 0.04); }
.acct__head b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 16px; }
.acct__head small { display: block; font-size: 12px; color: var(--muted); direction: ltr; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct__head > svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.acct__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.acct__stats a { display: grid; justify-items: center; gap: 2px; padding: 12px 4px; transition: background 0.2s; }
.acct__stats a + a { border-inline-start: 1px solid var(--line); }
.acct__stats a:hover { background: rgba(255, 255, 255, 0.04); }
.acct__stats strong { font-size: 20px; font-weight: 500; line-height: 1.1; }
.acct__stats small { font-size: 11px; color: var(--muted); }
.acct__list { list-style: none; margin: 0; padding: 6px; }
.acct__list li + li.acct__sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.acct__list a, .acct__list button {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  font-size: 14px; color: rgba(243, 241, 238, 0.86); text-align: start; transition: background 0.15s, color 0.15s;
}
.acct__list a:hover, .acct__list button:hover, .acct__list a:focus-visible, .acct__list button:focus-visible { background: rgba(255, 255, 255, 0.06); color: var(--paper); outline: none; }
.acct__list svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.acct__list .is-admin { color: var(--paper); }
.acct__list .is-admin svg { stroke: var(--red); }
.acct__list .is-out { color: #ff6b70; }
.acct__list .is-out:hover { background: rgba(229, 20, 29, 0.1); color: #ff8589; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1100px) {
  .gb { grid-template-columns: 1fr 320px; gap: 32px; }
  .rates { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .ws { grid-template-columns: 1fr; }
  .done { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .gh { padding-top: 120px; }
  .gh__art { height: 380px; }
  .gh__inner { grid-template-columns: 120px 1fr; gap: 18px; }
  .gh__score { grid-column: 1 / -1; justify-items: start; grid-template-columns: auto auto; column-gap: 14px; align-items: end; }
  .gh__score strong { font-size: 52px; grid-row: span 2; }
  .gb { grid-template-columns: 1fr; margin-top: 32px; }
  .gb__side { position: static; order: -1; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:not(:nth-child(3n + 1)) { padding-inline-start: 0; border-inline-start: 0; }
  .facts div:nth-child(even) { padding-inline-start: 16px; border-inline-start: 1px solid var(--line); }
  .dist { height: 150px; gap: 4px; }
  .media__strip { grid-auto-columns: 104px; }
  .media__nav { opacity: 1; width: 36px; height: 36px; }
  .media__playbtn { width: 64px; height: 64px; }
  .lb { grid-template-columns: 52px 1fr 52px; }
  .nav__links { display: none; }
  .nav__search { min-width: 0; width: 42px; padding: 0; justify-content: center; color: var(--paper); }
  .nav__inner { gap: 14px; height: 58px; }
  .nav__join { display: none; }
  .acct__name { display: none; }
  .acct__btn { padding-inline-start: 8px; gap: 6px; }
  .nav__login { margin-inline-start: -2px; }
  .nav__search span, .nav__search kbd { display: none; }
  .display span { white-space: normal; }
  .hero__content { grid-template-columns: 1fr; gap: 28px; }
  .hero__rail { grid-template-columns: repeat(4, 64px); }
  .rail__item { padding: 6px; justify-content: center; }
  .rail__item div { display: none; }
  .seek__head { grid-template-columns: 1fr; gap: 16px; }
  .strip { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .lane { grid-template-columns: 1fr; gap: 12px; }
  .lane__slots { grid-template-columns: repeat(3, 1fr); }
  .done { grid-template-columns: 1fr; }
  .top { grid-template-columns: 1fr; }
  .loc__head { grid-template-columns: 1fr; gap: 16px; }
  .how__steps { grid-template-columns: 1fr; }
  .how__steps li, .how__steps li:not(:first-child) { border-inline-start: 0; padding-inline: 0; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .rule { grid-template-columns: 1fr; gap: 6px; }
  .foot nav { margin-inline-start: 0; }
}
@media (max-width: 520px) {
  .media__label { bottom: 10px; inset-inline-start: 10px; padding: 5px 10px; }
  .media__label b { font-size: 12px; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .media__playbtn { width: 56px; height: 56px; }
  .media__playbtn svg { width: 22px; height: 22px; }
  .wrap, .nav__inner { width: calc(100% - 32px); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .seek { padding-top: 80px; }
  .seek__field { height: 60px; }
}
.board .rev__av--sm { width: 28px; height: 28px; font-size: 12px; }

/* Uploaded profile pictures fill the avatar shape (letter avatars stay as they are). */
.avatar, .rev__av, .prof__av { overflow: hidden; }
.avatar > img, .rev__av > img, .prof__av > img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
/* Keep the ring (and its red hover state) visible above a picture: same shadow, drawn on top. */
.avatar:has(> img) { position: relative; }
.avatar:has(> img)::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inherit; pointer-events: none; }

/* About / privacy / 404 */
.terms .kicker { margin: 0 0 10px; }
.terms__lead { font-size: 18px; line-height: 1.8; color: rgba(243, 241, 238, 0.86); margin: 12px 0 0; }
.terms b { color: var(--paper); font-weight: 600; }
.nf { min-height: 62vh; display: grid; align-content: center; }
.nf__code { direction: ltr; text-align: right; font-size: clamp(72px, 14vw, 140px); line-height: 1; margin: 0 0 12px; color: var(--red); letter-spacing: -0.04em; }
.nf__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Login: remember + forgot row; reset page */
.auth__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth__forgot { font-size: 14px; color: var(--muted); }
.auth__forgot:hover { color: var(--paper); }
.auth--solo { justify-content: center; }
.auth--solo .auth__side { flex: 1 1 auto; border: 0; }
.auth--solo .auth__wrap { max-width: 440px; }
.auth__mlogo--on { display: block; }
.auth__sent { display: grid; justify-items: start; gap: 8px; }
.auth__sent b { font-family: var(--f-display); font-size: 20px; }
.auth__sent p { margin: 0; color: var(--muted); line-height: 1.8; font-size: 15px; }
.auth__sentic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(229, 20, 29, 0.12); margin-bottom: 4px; }
.auth__sentic svg { width: 22px; height: 22px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth__dev { padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-2); font-size: 13px !important; }
.auth__dev a, .auth__msg a { color: var(--paper); text-decoration: underline; }

/* Phone tab bar (built by common.js from the top nav links) */
.tabbar { display: none; }
@media (max-width: 860px) {
  .tabbar {
    position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(14, 14, 15, 0.82); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-top: 1px solid var(--line);
  }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 7px 0 5px; border-radius: 12px; color: var(--muted); font-size: 11px; }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.is-active { color: var(--paper); }
  .tabbar a.is-active svg { stroke: var(--red); }
  .tabbar a:active { background: rgba(255, 255, 255, 0.06); }
  body.has-tabbar { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  body.has-tabbar .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
