@import url('https://fonts.googleapis.com/css2?family=Changa:wght@600;700;800&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  --ink: #07090d;
  --ink-2: #10141c;
  --ink-3: #171c27;
  --pitch: #1f6b45;
  --pitch-soft: rgba(31, 107, 69, .22);
  --amber: #e8b84a;
  --gold: #e8b84a;
  --amber-dim: rgba(232, 184, 74, .16);
  --snow: #f2f4f7;
  --blue: #e8b84a;
  --purple: #1f6b45;
  --white: #f2f4f7;
  --mute: rgba(242, 244, 247, .62);
  --line: rgba(255, 255, 255, .1);
  --danger: #ff5c6c;
  --success: #3dcf8a;
  --radius: 18px;
  --font: 'IBM Plex Sans Arabic', Tahoma, sans-serif;
  --display: 'Changa', 'IBM Plex Sans Arabic', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--snow);
  direction: rtl;
  overflow-x: hidden;
  background: #050505;
  background-attachment: fixed;
}

body::before { content: none; }

button, input, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }

.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 0 100px;
  position: relative;
  z-index: 1;
}

/* ——— Split Poster Home ——— */
.split-home { padding-bottom: 8px; }
.split-hero {
  position: relative;
  min-height: 46vh;
  max-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 4px;
}
.split-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.04);
}
.split-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.15) 45%, rgba(5,5,5,.88) 88%, #050505 100%),
    radial-gradient(520px 260px at 50% 40%, rgba(0,180,255,.08), transparent 65%);
}
.split-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 28px 16px 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: rise .6s var(--ease) both;
}
.split-logo {
  display: block;
  width: min(300px, 74vw);
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
  filter: none;
  animation: floaty 5.5s ease-in-out infinite;
}
.split-tag {
  display: block;
  margin: 12px 0 0;
  font-size: .92rem;
  color: rgba(255,255,255,.88);
  font-weight: 600;
  letter-spacing: .01em;
}
.split-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px 14px;
}
.split-section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
}
.split-section-head .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,184,74,.55), transparent);
}
.poster-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 16px;
  max-width: 280px;
  margin: 0 auto;
}
.poster-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid rgba(232,184,74,.45);
  background: #0a0a0a;
  cursor: pointer;
  padding: 0;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
  animation: rise .5s var(--ease) both;
}
.poster-card.poster-home {
  aspect-ratio: 1 / 1;
  max-width: 240px;
  width: 100%;
  margin: 0 auto;
}
.poster-card.poster-home .poster-shade {
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55) 78%, rgba(0,0,0,.92) 100%);
}
.poster-card.poster-home .poster-media {
  object-fit: cover;
  object-position: center 42%;
}
.poster-card.poster-home .poster-title {
  font-size: .78rem;
}
.poster-card:nth-child(1) { animation-delay: .05s; }
.poster-card:nth-child(2) { animation-delay: .09s; }
.poster-card:nth-child(3) { animation-delay: .13s; }
.poster-card:nth-child(4) { animation-delay: .17s; }
.poster-card:nth-child(5) { animation-delay: .21s; }
.poster-card:nth-child(6) { animation-delay: .25s; }
.poster-card:hover {
  border-color: rgba(232,184,74,.75);
  box-shadow: 0 0 0 1px rgba(232,184,74,.25), 0 14px 36px rgba(0,0,0,.55);
}
.poster-card:active { transform: scale(.97); }
.poster-card.is-live {
  border-color: rgba(232,184,74,.7);
  box-shadow: 0 0 20px rgba(232,184,74,.18), 0 10px 28px rgba(0,0,0,.45);
}
.poster-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 0;
  transition: transform .45s var(--ease);
}
.poster-card:hover .poster-media { transform: scale(1.05); }
.poster-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.4) 70%, rgba(0,0,0,.88) 100%);
}
.poster-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 14px 12px 12px;
  text-align: center;
}
.poster-title {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.25;
  margin-bottom: 4px;
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
}
.poster-cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: .58rem;
  font-weight: 600;
  color: rgba(255,255,255,.72);
}
.poster-cat-ico {
  display: inline-grid;
  place-items: center;
  width: 12px; height: 12px;
}
.poster-cat-ico svg {
  width: 11px; height: 11px;
  stroke: var(--amber);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.poster-live {
  display: inline-block;
  margin-top: 5px;
  font-size: .55rem;
  font-weight: 800;
  color: #1a1204;
  background: linear-gradient(135deg, #ffe7a3, #e8b84a);
  padding: 2px 7px;
  border-radius: 999px;
}
.poster-grid-modes,
.poster-grid-featured {
  max-width: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.poster-grid-modes {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.poster-grid-featured { grid-template-columns: 1fr; }
.poster-card.poster-featured { aspect-ratio: 16 / 10; }
.poster-card.poster-mode { aspect-ratio: 16 / 11; }
.poster-card.poster-tall { aspect-ratio: 3 / 4; }
.poster-card.poster-scope,
.poster-card.poster-pick { aspect-ratio: 16 / 11; }
.poster-featured .poster-title { font-size: 1.1rem; }
.poster-mode .poster-title { font-size: .88rem; }
.poster-tall .poster-title { font-size: .8rem; }
.poster-scope .poster-title,
.poster-pick .poster-title { font-size: .86rem; }
.poster-mode .poster-cat,
.poster-scope .poster-cat,
.poster-pick .poster-cat,
.poster-featured .poster-cat {
  font-size: .66rem;
  text-align: center;
}
.mode-cat .poster-grid { animation: none; }
.setup-cards .poster-card,
.setup-pick-grid .poster-card {
  width: 100%;
}
.setup-pick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px;
  max-height: 320px;
  overflow-y: auto;
}
.feat-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 18px 10px 6px;
  padding: 14px 6px;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
}
.feat-item {
  text-align: center;
  font-size: .62rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  line-height: 1.35;
  padding: 0 2px;
}
.feat-ico {
  display: grid;
  place-items: center;
  margin: 0 auto 7px;
  width: 28px; height: 28px;
}
.feat-ico svg {
  width: 20px; height: 20px;
  stroke: var(--amber);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.split-home .credits { margin: 16px 12px 0; }

@media (max-width: 380px) {
  .poster-title { font-size: .64rem; }
  .poster-cat { font-size: .52rem; }
  .feat-item { font-size: .55rem; }
}

/* ——— Inner screens padding ——— */
.page-head, .game-identity, .mode-cat, .glass, .screen {
  margin-left: 16px;
  margin-right: 16px;
}
.page-head { margin-top: 14px; }
.mode-list { padding: 0; }

/* ——— Top / Brand ——— */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  animation: rise .55s var(--ease) both;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(232, 184, 74, .35);
  background: var(--ink-2);
  flex-shrink: 0;
}
.brand-lockup .brand-text { min-width: 0; }
.brand-lockup .brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.brand-lockup .brand-tag {
  color: var(--mute);
  font-size: .75rem;
  margin-top: 2px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--amber-dim);
  border: 1px solid rgba(232, 184, 74, .28);
  color: var(--amber);
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
.chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(61, 207, 138, .18);
  animation: live 1.6s ease infinite;
}
@keyframes live {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

/* ——— Platform home ——— */
.platform-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 28px 22px 24px;
  margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(500px 220px at 100% 0%, rgba(232,184,74,.14), transparent 60%),
    radial-gradient(420px 200px at 0% 100%, rgba(31,107,69,.28), transparent 55%),
    linear-gradient(165deg, #141a24 0%, #0c1018 100%);
  animation: rise .55s var(--ease) both;
}
.platform-hero .ph-kicker {
  font-size: .75rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.platform-hero h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.85rem, 7vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.platform-hero p {
  margin: 0;
  color: var(--mute);
  font-size: .92rem;
  line-height: 1.55;
  max-width: 32ch;
}
.platform-hero .ph-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.platform-hero .ph-stat {
  font-size: .72rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.1);
}

.games-shelf { display: grid; gap: 10px; margin-bottom: 8px; }
.game-tile {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  text-align: right;
  padding: 16px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  color: var(--snow);
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, background .2s;
  animation: rise .5s var(--ease) both;
}
.game-tile:nth-child(1) { animation-delay: .08s; }
.game-tile:nth-child(2) { animation-delay: .12s; }
.game-tile:nth-child(3) { animation-delay: .16s; }
.game-tile:nth-child(4) { animation-delay: .2s; }
.game-tile:nth-child(5) { animation-delay: .24s; }
.game-tile.live:hover {
  border-color: rgba(232,184,74,.45);
  background: linear-gradient(180deg, rgba(232,184,74,.1), rgba(255,255,255,.03));
}
.game-tile.live:active { transform: scale(.985); }
.game-tile.soon {
  opacity: .72;
  cursor: default;
}
.game-tile .gt-ico {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(31,107,69,.2);
  flex-shrink: 0;
}
.game-tile .gt-ico svg {
  width: 26px; height: 26px;
  stroke: var(--amber);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.game-tile.accent-pitch .gt-ico { background: rgba(31,107,69,.22); border-color: rgba(31,107,69,.4); }
.game-tile.accent-amber .gt-ico { background: rgba(232,184,74,.12); border-color: rgba(232,184,74,.25); }
.game-tile.accent-blue .gt-ico { background: rgba(80,140,220,.15); border-color: rgba(80,140,220,.28); }
.game-tile.accent-blue .gt-ico svg { stroke: #7eb0ef; }
.game-tile.accent-rose .gt-ico { background: rgba(220,90,120,.12); border-color: rgba(220,90,120,.28); }
.game-tile.accent-rose .gt-ico svg { stroke: #e8899e; }
.game-tile.accent-teal .gt-ico { background: rgba(40,160,150,.14); border-color: rgba(40,160,150,.28); }
.game-tile.accent-teal .gt-ico svg { stroke: #5dcdc4; }
.game-tile .gt-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.2;
}
.game-tile .gt-desc {
  color: var(--mute);
  font-size: .78rem;
  margin-top: 4px;
  line-height: 1.4;
}
.game-tile .gt-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.status-badge {
  font-size: .68rem;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-badge.live {
  background: rgba(61,207,138,.14);
  color: var(--success);
  border: 1px solid rgba(61,207,138,.3);
}
.status-badge.soon {
  background: rgba(255,255,255,.06);
  color: var(--mute);
  border: 1px solid rgba(255,255,255,.12);
}
.game-tile .gt-go {
  font-size: .72rem;
  font-weight: 800;
  color: var(--amber);
}

/* keep old hero classes unused but harmless */
.hero-stage {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 280px;
  margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(160deg, rgba(31,107,69,.55) 0%, transparent 55%),
    linear-gradient(20deg, #121822 0%, #0a0e15 100%);
  animation: rise .65s var(--ease) .06s both;
}
.hero-stage::after {
  content: '';
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(232,184,74,.18), transparent 65%);
  pointer-events: none;
}
.hero-pitch {
  position: absolute;
  inset: 0;
  opacity: .12;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 46px,
      rgba(255,255,255,.35) 46px 48px
    );
  mix-blend-mode: soft-light;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
}
.hero-kicker {
  font-size: .78rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.hero-stage h1 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 5.5vw, 1.95rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 8px;
  max-width: 16ch;
}
.hero-stage p {
  margin: 0 0 18px;
  color: var(--mute);
  font-size: .92rem;
  max-width: 28ch;
  line-height: 1.55;
}
.hero-jersey {
  position: absolute;
  left: -8px;
  top: 18px;
  width: 132px;
  height: 158px;
  opacity: .9;
  transform: rotate(-8deg);
  animation: floaty 5s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}
@keyframes floaty {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-8px); }
}

.section-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 4px 2px 12px;
  animation: rise .55s var(--ease) .12s both;
}
.section-label h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
}
.section-label span {
  color: var(--mute);
  font-size: .78rem;
}

.quick-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 22px;
  animation: rise .55s var(--ease) .18s both;
}
.quick-link {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: 14px 8px 12px;
  text-align: center;
  cursor: pointer;
  color: var(--snow);
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.quick-link:hover {
  border-color: rgba(232,184,74,.35);
  background: rgba(232,184,74,.06);
}
.quick-link:active { transform: scale(.96); }
.quick-link svg {
  width: 22px; height: 22px;
  margin: 0 auto 8px;
  display: block;
  stroke: var(--amber);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quick-link .ql-title {
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.3;
}

.coming-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.16);
  background: rgba(255,255,255,.02);
  color: var(--mute);
  font-size: .85rem;
  margin-bottom: 8px;
  animation: rise .55s var(--ease) .24s both;
}
.coming-strip strong { color: var(--snow); display: block; font-size: .92rem; margin-bottom: 2px; }

/* ——— Game hub ——— */
.page-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  animation: rise .45s var(--ease) both;
}
.icon-btn {
  width: 42px; height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--snow);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.08); border-color: rgba(232,184,74,.3); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.page-head .titles { min-width: 0; }
.page-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}
.page-head p { margin: 3px 0 0; color: var(--mute); font-size: .8rem; }

.game-identity {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 20px 18px;
  margin-bottom: 20px;
  border: 1px solid rgba(31,107,69,.4);
  background:
    linear-gradient(135deg, rgba(31,107,69,.35), rgba(16,20,28,.9) 55%),
    var(--ink-2);
  animation: rise .5s var(--ease) .05s both;
}
.game-identity h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
}
.game-identity p { margin: 0; color: var(--mute); font-size: .88rem; line-height: 1.5; max-width: 34ch; }
.game-identity .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.meta-pill {
  font-size: .72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--snow);
}

.mode-cat {
  margin-bottom: 18px;
  animation: rise .5s var(--ease) both;
}
.mode-cat:nth-child(1) { animation-delay: .08s; }
.mode-cat:nth-child(2) { animation-delay: .14s; }
.mode-cat:nth-child(3) { animation-delay: .2s; }
.mode-cat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 4px 10px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--mute);
  text-transform: none;
  letter-spacing: .02em;
}
.mode-cat-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.mode-list { display: grid; gap: 8px; }
.mode-poster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mode-poster-featured {
  grid-template-columns: 1fr;
}
.mode-poster {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid rgba(232,184,74,.32);
  padding: 0;
  cursor: pointer;
  color: #fff;
  background: #111;
  box-shadow: 0 10px 24px rgba(0,0,0,.42);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
  text-align: right;
}
.mode-poster.is-featured { aspect-ratio: 16 / 10; }
.mode-poster:hover {
  border-color: rgba(232,184,74,.75);
  box-shadow: 0 0 0 1px rgba(232,184,74,.22), 0 14px 32px rgba(0,0,0,.5);
}
.mode-poster:active { transform: scale(.97); }
.mode-poster-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .45s var(--ease);
}
.mode-poster:hover .mode-poster-media { transform: scale(1.06); }
.mode-poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 22%, rgba(0,0,0,.5) 58%, rgba(0,0,0,.94) 100%);
}
.mode-poster-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 800;
  color: #1a1204;
  background: linear-gradient(135deg, #ffe7a3, #e8b84a);
}
.mode-poster-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 12px 12px 11px;
}
.mode-poster-title {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: .92rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,.65);
}
.mode-poster.is-featured .mode-poster-title { font-size: 1.15rem; }
.mode-poster-desc {
  display: block;
  margin-top: 4px;
  font-size: .68rem;
  font-weight: 600;
  color: rgba(255,255,255,.78);
  line-height: 1.35;
}
.mode-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: right;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  color: var(--snow);
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.mode-row:hover {
  border-color: rgba(232,184,74,.4);
  background: linear-gradient(180deg, rgba(232,184,74,.08), rgba(255,255,255,.03));
}
.mode-row:active { transform: scale(.985); }
.mode-ico {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(31,107,69,.22);
  border: 1px solid rgba(31,107,69,.35);
}
.mode-ico svg {
  width: 22px; height: 22px;
  stroke: var(--amber);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mode-row .mtitle {
  font-family: var(--display);
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.2;
}
.mode-row .mdesc {
  color: var(--mute);
  font-size: .78rem;
  margin-top: 3px;
  line-height: 1.35;
}
.mode-row .chev {
  width: 18px; height: 18px;
  opacity: .4;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: scaleX(-1);
}

/* ——— Shared UI ——— */
.glass {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s, filter .15s;
  width: 100%;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: linear-gradient(135deg, #f0c45a, #c9922a);
  color: #1a1204;
}
.btn-gold {
  background: linear-gradient(135deg, #f0c45a, #c9922a);
  color: #1a1204;
}
.btn-ghost {
  background: rgba(255,255,255,.05);
  color: var(--snow);
  border: 1px solid var(--line);
}
.btn-danger {
  background: rgba(255,92,108,.12);
  color: #ff8fa0;
  border: 1px solid rgba(255,92,108,.3);
}
.btn-pitch {
  background: linear-gradient(135deg, #2a8f5c, #1f6b45);
  color: #fff;
}

.field { margin-bottom: 12px; }
.field label { display:block; margin-bottom: 6px; font-size: .85rem; color: var(--mute); }
.field input, .field select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(232, 184, 74, 0.28);
  background: var(--ink-3);
  color: #fff;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--amber) 50%),
                    linear-gradient(135deg, var(--amber) 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(1em + 2px), calc(100% - 17px) calc(1em + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-left: 36px;
}
.field select option { background: #171c27; color: #fff; }
.field input:focus, .field select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232,184,74,.15);
}

.rank-badge {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  margin-left: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
}
.rank-badge.r1 { background: linear-gradient(135deg,#ffd56a,#c9922a); color:#1a1204; border:0; }
.rank-badge.r2 { background: linear-gradient(135deg,#d7dee8,#8e9aab); color:#1a2030; border:0; }
.rank-badge.r3 { background: linear-gradient(135deg,#e0a06a,#a05a2c); color:#fff; border:0; }
.result-player {
  display: flex;
  align-items: center;
  text-align: right;
  margin: 10px 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}
.result-player.winner {
  border-color: rgba(232,184,74,.45);
  background: rgba(232,184,74,.08);
}
.result-player .info { flex: 1; }
.result-player .pts { color: var(--amber); font-size: 1.35rem; font-weight: 800; }

.bottom-nav {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(480px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(5, 5, 5, .96);
  border-top: 1px solid rgba(232,184,74,.12);
  backdrop-filter: blur(18px);
  z-index: 50;
}
.bottom-nav button {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.45);
  padding: 8px 4px;
  font-size: .68rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 12px;
  transition: color .2s, background .2s;
}
.bottom-nav button.active {
  color: var(--amber);
  background: rgba(232,184,74,.08);
}
.bottom-nav .nav-ico {
  display: grid;
  place-items: center;
  margin-bottom: 3px;
  height: 22px;
}
.bottom-nav .nav-ico svg {
  width: 20px; height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.q-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; font-weight: 700; font-size: .9rem;
}
.vs-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px;
  align-items: center; text-align: center; margin-bottom: 14px;
}
.vs-bar .score {
  padding: 10px; border-radius: 14px; background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}
.vs-bar .score strong { display:block; color: var(--amber); font-size: 1.2rem; }
.jersey-hero { text-align: center; margin: 8px 0 14px; }
.jersey-meta { color: var(--mute); font-size: .9rem; margin-bottom: 6px; }
.jersey-number {
  font-family: var(--display);
  font-size: 5.2rem; font-weight: 800; line-height: 1;
  color: var(--amber);
  letter-spacing: -.04em;
}
.player-shot {
  width: min(280px, 78vw);
  aspect-ratio: 4/5;
  margin: 10px auto 16px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(232,184,74,.28);
  background: var(--ink-2);
}
.player-shot img { width: 100%; height: 100%; object-fit: cover; display:block; }
.prompt {
  text-align: center; font-size: 1.15rem; font-weight: 700; margin: 8px 0 14px;
  font-family: var(--display);
}
.options { display: grid; gap: 10px; }
.option {
  padding: 14px 14px;
  border-radius: 14px;
  text-align: right;
  background: var(--ink-3);
  border: 1.5px solid rgba(232,184,74,.28);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s, background .15s;
  display: flex;
  align-items: center;
  gap: 12px;
}
.option .opt-letter {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(232,184,74,.14);
  color: var(--amber);
  font-weight: 800;
  font-size: .9rem;
  flex-shrink: 0;
}
.option .opt-name { flex: 1; text-align: right; }
.option:hover { border-color: var(--amber); transform: translateY(-1px); }
.option:active { transform: scale(.98); }
.option.correct {
  background: rgba(61,207,138,.12);
  border-color: var(--success);
  color: var(--success);
}
.option.correct .opt-letter { background: rgba(61,207,138,.2); color: var(--success); }
.option.wrong {
  background: rgba(255,92,108,.12);
  border-color: var(--danger);
  color: #ff8fa0;
}
.option.wrong .opt-letter { background: rgba(255,92,108,.2); color: #ff8fa0; }
.option.disabled { pointer-events: none; opacity: .9; }
.option.picked:not(.correct):not(.wrong) {
  border-color: rgba(232,184,74,.7);
}

.play-screen { padding: 0 2px 12px; }
.play-screen .q-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px; font-weight: 700; font-size: .88rem;
}
.q-round, .q-streak {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  font-size: .78rem;
}
.vs-mid { font-weight: 800; color: var(--amber); font-size: .85rem; }
.play-kit { text-align: center; margin: 6px 0 10px; }
.kit-chips {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  margin-bottom: 10px;
}
.kit-chip {
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  color: var(--mute);
}
.kit-chip.kit-club { color: var(--snow); border-color: rgba(232,184,74,.25); }
.kit-chip.kit-num {
  color: #1a1204;
  background: linear-gradient(135deg, #ffe7a3, #e8b84a);
  border: 0;
}
.play-screen .player-shot {
  width: min(220px, 62vw);
  aspect-ratio: 4/5;
  margin: 0 auto 12px;
  border-radius: 18px;
}
.play-screen .prompt {
  font-size: 1.1rem;
  margin: 0 0 12px;
}

.reveal-banner {
  margin-top: 12px;
  padding: 0;
  border: none;
  background: transparent;
  text-align: center;
  animation: rise .3s var(--ease);
}
.reveal-banner.hidden { display: none; }

/* —— كارت كشف الإجابة —— */
.check-card {
  margin: 8px 0 0;
  padding: 18px 16px 16px;
  border-radius: 20px;
  text-align: center;
  animation: rise .35s var(--ease);
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(165deg, rgba(18,24,40,.96), rgba(8,10,16,.98));
  box-shadow: 0 14px 36px rgba(0,0,0,.35);
}
.check-card.is-ok {
  border-color: rgba(61,207,138,.45);
  background:
    radial-gradient(380px 140px at 50% 0%, rgba(61,207,138,.16), transparent 55%),
    linear-gradient(165deg, rgba(14,28,24,.96), rgba(8,10,16,.98));
}
.check-card.is-bad {
  border-color: rgba(255,92,108,.4);
  background:
    radial-gradient(380px 140px at 50% 0%, rgba(255,92,108,.14), transparent 55%),
    linear-gradient(165deg, rgba(32,14,20,.96), rgba(8,10,16,.98));
}
.check-icon {
  width: 48px; height: 48px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.35rem;
  font-weight: 900;
}
.check-card.is-ok .check-icon {
  background: rgba(61,207,138,.18);
  color: var(--success);
  box-shadow: 0 0 24px rgba(61,207,138,.25);
}
.check-card.is-bad .check-icon {
  background: rgba(255,92,108,.18);
  color: #ff8fa0;
  box-shadow: 0 0 24px rgba(255,92,108,.2);
}
.check-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.check-card.is-ok .check-title { color: var(--success); }
.check-card.is-bad .check-title { color: #ff8fa0; }
.check-body { display: grid; gap: 8px; text-align: right; }
.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.check-label { font-size: .75rem; color: var(--mute); font-weight: 600; }
.check-value { font-size: .95rem; color: var(--snow); font-weight: 800; }
.check-answer {
  background: rgba(232,184,74,.1);
  border-color: rgba(232,184,74,.28);
}
.check-answer .check-value { color: var(--gold); font-size: 1.05rem; }
.check-bot.bot-ok { border-color: rgba(61,207,138,.3); }
.check-bot.bot-bad { border-color: rgba(255,92,108,.28); }
.check-note {
  margin-top: 4px;
  font-size: .82rem;
  color: var(--mute);
  text-align: center;
  line-height: 1.5;
}
.check-titles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}
.check-titles span {
  font-size: .72rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--mute);
  border: 1px solid rgba(255,255,255,.08);
}

.credits {
  margin-top: 28px;
  padding: 16px;
  text-align: center;
  border-radius: 16px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.06);
  font-size: .8rem;
  line-height: 1.7;
  color: var(--mute);
}
.credits strong { color: var(--amber); }
.credits a { color: var(--snow); text-decoration: underline; text-underline-offset: 3px; margin: 0 4px; }

/* فوتر حقوق — سطر واحد صغير بعرض الشاشة ومتوسّط */
.site-cred {
  width: 100%;
  box-sizing: border-box;
  margin: 18px 0 6px;
  padding: 12px 16px 4px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: transparent;
  text-align: center;
  direction: rtl;
}
.site-cred-bar {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  width: 100%;
  font-size: .68rem;
  line-height: 1.4;
  color: rgba(255,255,255,.32);
  letter-spacing: .01em;
}
.site-cred-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  flex: 0 0 auto;
}
.site-cred-sep {
  color: rgba(255,255,255,.18);
  margin: 0 1px;
}
.site-cred a {
  color: rgba(255,255,255,.4);
  text-decoration: none;
}
.site-cred a:hover {
  color: rgba(232,184,74,.8);
}
.split-home .site-cred,
.boot-screen .site-cred {
  margin-top: 16px;
  padding-left: 16px;
  padding-right: 16px;
}
.profile-auth-hint {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: .75rem;
  line-height: 1.55;
  color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.03);
  border: 1px dashed rgba(255,255,255,.08);
  text-align: center;
}

.setup-page { padding-bottom: 24px; }
.setup-label {
  margin: 16px 16px 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: .95rem;
}
.setup-cards {
  display: grid;
  gap: 10px;
  padding: 0 16px;
}
.setup-levels { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 420px) {
  .setup-levels { grid-template-columns: repeat(4, 1fr); }
}
.setup-scopes { grid-template-columns: repeat(2, 1fr); }
.setup-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid rgba(232,184,74,.35);
  padding: 0;
  cursor: pointer;
  color: #fff;
  background: #111;
  box-shadow: 0 8px 22px rgba(0,0,0,.4);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.setup-scopes .setup-card { aspect-ratio: 16 / 11; }
.setup-card:active { transform: scale(.97); }
.setup-card.active {
  border-color: rgba(232,184,74,.9);
  box-shadow: 0 0 0 1px rgba(232,184,74,.4), 0 0 18px rgba(232,184,74,.2), 0 12px 28px rgba(0,0,0,.5);
}
.setup-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .45s var(--ease);
}
.setup-card:hover .setup-media { transform: scale(1.06); }
.setup-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(0,0,0,.45) 58%, rgba(0,0,0,.92) 100%);
}
.setup-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 12px 10px;
  text-align: center;
}
.setup-title {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: .88rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,.65);
}
.setup-desc {
  display: block;
  margin-top: 3px;
  font-size: .65rem;
  color: rgba(255,255,255,.78);
  font-weight: 600;
}
.setup-pick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px;
  max-height: 280px;
  overflow-y: auto;
}
.pick-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,.12);
  padding: 0;
  min-height: 88px;
  cursor: pointer;
  color: #fff;
  text-align: right;
  background: #111;
}
.pick-card.active {
  border-color: rgba(232,184,74,.8);
  box-shadow: 0 0 0 1px rgba(232,184,74,.25);
}
.pick-art {
  position: absolute;
  inset: 0;
  opacity: .95;
}
.pick-body {
  position: relative;
  z-index: 2;
  display: block;
  padding: 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
  min-height: 88px;
}
.pick-title {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: .88rem;
}
.pick-sub {
  display: block;
  margin-top: 4px;
  font-size: .68rem;
  color: rgba(255,255,255,.7);
}
.q-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px;
}
.q-chip {
  border: 1px solid rgba(232,184,74,.28);
  background: rgba(255,255,255,.04);
  color: var(--snow);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: .82rem;
  cursor: pointer;
}
.q-chip.active {
  background: linear-gradient(135deg, #ffe7a3, #e8b84a);
  color: #1a1204;
  border-color: transparent;
}
.setup-actions {
  padding: 18px 16px 8px;
}

@media (max-width: 380px) {
  .setup-title { font-size: .75rem; }
  .setup-desc { font-size: .58rem; }
}
.level-opt {
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--snow);
  font-weight: 700;
  cursor: pointer;
  text-align: right;
}
.level-opt strong { display: block; font-family: var(--display); font-size: 1.05rem; margin-bottom: 4px; }
.level-opt small { display: block; font-weight: 500; color: var(--mute); font-size: .78rem; line-height: 1.4; }
.level-opt:hover, .level-opt.active {
  border-color: rgba(232,184,74,.55);
  background: rgba(232,184,74,.1);
}
.level-opt.active strong { color: var(--amber); }

.modal-sheet { max-height: min(88vh, 720px); overflow-y: auto; }

.timer-wrap {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0 0 12px;
}
.timer-ring {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem;
  border: 3px solid rgba(232,184,74,.35);
  background: rgba(0,0,0,.35);
  color: #fff;
  transition: border-color .2s, color .2s;
}
.timer-ring.warn { border-color: var(--amber); color: var(--amber); }
.timer-ring.danger {
  border-color: var(--danger);
  color: var(--danger);
  animation: pulse .5s infinite alternate;
}
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.06); } }

.hints { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.hint-btn {
  flex: 1; min-width: 100px; padding: 10px; border-radius: 12px;
  border: 1px solid rgba(232,184,74,.3); background: rgba(232,184,74,.08);
  color: var(--amber); font-weight: 700; cursor: pointer; font-size: .8rem;
}

.countdown-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: rgba(5,7,11,.9); backdrop-filter: blur(8px);
}
.countdown-num {
  font-family: var(--display);
  font-size: 5.5rem; font-weight: 800; color: var(--amber);
  animation: pop .55s var(--ease);
}
@keyframes pop {
  0% { transform: scale(.4); opacity: 0; }
  60% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}

.result-card { text-align: center; padding: 24px 18px; }
.result-card .trophy { font-size: 2.4rem; }
.progress {
  height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin: 10px 0;
}
.progress > span {
  display:block; height: 100%;
  background: linear-gradient(90deg, var(--pitch), var(--amber));
  transition: width .3s ease;
}

.toast {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 200; padding: 12px 18px; border-radius: 14px;
  background: rgba(16,20,28,.96); border: 1px solid var(--line);
  font-weight: 700; max-width: min(90vw, 360px); text-align: center;
}
.hidden { display: none !important; }
.screen { animation: rise .35s var(--ease); }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.leader-row {
  display:flex; justify-content:space-between; align-items:center;
  padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.leader-row .rank {
  width: 28px; height: 28px; border-radius: 50%;
  display:grid; place-items:center; background: rgba(232,184,74,.15); color: var(--amber);
  font-weight: 800; font-size: .8rem; margin-left: 10px;
}

.auth-box { padding: 20px; margin-top: 20px; }
.muted { color: var(--mute); font-size: .85rem; }
.row-actions { display:grid; gap: 10px; margin-top: 14px; }

.credits {
  margin-top: 28px;
  padding: 16px;
  text-align: center;
  border-radius: 16px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.06);
  font-size: .8rem;
  line-height: 1.7;
  color: var(--mute);
}
.credits strong { color: var(--amber); }
.credits a { color: var(--snow); text-decoration: underline; text-underline-offset: 3px; margin: 0 4px; }

/* Modals */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(5,7,11,.72);
  backdrop-filter: blur(6px);
  display: grid; place-items: end center;
  padding: 16px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-sheet {
  width: min(440px, 100%);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 22px 22px 18px 18px;
  padding: 20px 18px 18px;
  animation: sheetUp .35s var(--ease);
}
@keyframes sheetUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.modal-sheet h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.15rem;
}
.modal-sheet .modal-desc { color: var(--mute); font-size: .88rem; margin: 0 0 16px; }
.level-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 12px; }
.level-opt {
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--snow);
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.level-opt:hover, .level-opt.active {
  border-color: rgba(232,184,74,.45);
  background: rgba(232,184,74,.1);
  color: var(--amber);
}
.level-opt small { display:block; font-weight: 500; color: var(--mute); margin-top: 4px; font-size: .72rem; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.stat-tile {
  padding: 16px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  text-align: center;
}
.stat-tile .num {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--amber);
}
.stat-tile .lbl { color: var(--mute); font-size: .75rem; margin-top: 4px; }

/* Compat aliases from older markup */
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.mode-card {
  padding: 16px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  cursor: pointer;
  min-height: 96px;
  transition: border-color .2s, transform .15s;
}
.mode-card:active { transform: scale(.97); }
.mode-card:hover { border-color: rgba(232,184,74,.4); }
.mode-card .icon { font-size: 1.35rem; display: block; margin-bottom: 8px; }
.mode-card .title { font-weight: 800; font-size: .95rem; }
.mode-card .desc { color: var(--mute); font-size: .75rem; margin-top: 4px; }
.brand-hero { text-align: center; padding: 20px 10px 8px; }
.brand-hero img { width: 96px; height: 96px; border-radius: 22px; }
.brand-hero h1 {
  margin: 12px 0 4px;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 800;
}
.brand-hero p { margin: 0; color: var(--mute); }
.game-banner, .game-section {
  margin: 12px 0;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(31,107,69,.28), rgba(16,20,28,.9));
  border: 1px solid rgba(31,107,69,.35);
  display: flex;
  gap: 14px;
  align-items: center;
  cursor: pointer;
}
.game-section { display: block; }
.game-section .row { display:flex; gap:14px; align-items:center; }
.game-section .badge, .game-banner .badge {
  width: 56px; height: 56px; border-radius: 16px;
  display:grid; place-items:center; font-size: 1.6rem;
  background: rgba(0,0,0,.25); flex-shrink: 0;
}
.game-section h2, .game-banner h2 { margin: 0 0 4px; font-size: 1.1rem; font-family: var(--display); }
.game-section p, .game-banner p { margin: 0; color: var(--mute); font-size: .85rem; }
.game-section .enter {
  margin-top: 12px;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0c45a, #c9922a);
  color: #1a1204;
  font-weight: 800;
  font-size: .85rem;
}
.game-soon {
  opacity: .55;
  cursor: default;
  background: rgba(255,255,255,.03);
  border: 1px dashed rgba(255,255,255,.16);
}
.game-soon .enter { background: rgba(255,255,255,.1); color: rgba(255,255,255,.5); }

/* ═══ المزايدة ═══ */
.poster-grid-games {
  max-width: 360px;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 16px;
}
.poster-grid-games .poster-card.poster-home {
  max-width: none;
  width: 100%;
  margin: 0;
  border-radius: 14px;
}
.poster-grid-games .poster-title { font-size: .68rem; }
.poster-grid-games .poster-body { padding: 8px 6px 7px; }
.poster-grid-games .poster-cat,
.poster-grid-games .poster-live { font-size: .58rem; }
@media (min-width: 420px) {
  .poster-grid-games {
    grid-template-columns: 1fr 1fr;
    max-width: 380px;
  }
}
.coach-arena {
  margin: 8px 14px 12px;
  padding: 16px 12px;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(12,24,56,.95), rgba(8,10,16,.98));
  border: 1.5px solid rgba(232,184,74,.35);
}
.coach-meta {
  text-align: center;
  font-size: .85rem;
  color: var(--mute);
  margin-bottom: 10px;
}
.coach-clues { display: grid; gap: 8px; }
.coach-clue {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(232,184,74,.2);
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.45;
  animation: rise .35s var(--ease) both;
}
.coach-clue.is-new {
  border-color: rgba(232,184,74,.55);
  box-shadow: 0 0 20px rgba(232,184,74,.12);
}
.coach-reveal { text-align: center; margin: 12px 0; }
.cr-name {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
}
.cr-sub { color: var(--mute); font-size: .9rem; margin-top: 4px; }
.bp-res {
  font-size: .65rem;
  color: #ff8e9a;
  font-weight: 700;
}
.bid-identity { text-align: center; }
.bid-hero-mark {
  font-size: 2.4rem;
  filter: drop-shadow(0 0 18px rgba(232,184,74,.45));
  margin-bottom: 6px;
}
.bidding-play, .bidding-result { padding-bottom: 24px; }
.bid-arena {
  margin: 8px 16px 14px;
  padding: 22px 16px 18px;
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(420px 180px at 50% 20%, rgba(232,184,74,.18), transparent 60%),
    linear-gradient(165deg, rgba(20,28,48,.95), rgba(8,10,16,.98));
  border: 1.5px solid rgba(232,184,74,.4);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.bid-arena.bid-ok {
  border-color: rgba(61,207,138,.5);
  background:
    radial-gradient(420px 180px at 50% 20%, rgba(61,207,138,.2), transparent 60%),
    linear-gradient(165deg, rgba(12,32,28,.95), rgba(8,10,16,.98));
}
.bid-arena.bid-bad {
  border-color: rgba(255,92,108,.45);
  background:
    radial-gradient(420px 180px at 50% 20%, rgba(255,92,108,.18), transparent 60%),
    linear-gradient(165deg, rgba(40,12,18,.95), rgba(8,10,16,.98));
}
.bid-cat {
  font-size: .9rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 8px;
  font-weight: 700;
}
.bid-gavel {
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 4px;
  animation: floaty 3.5s ease-in-out infinite;
}
.bid-high-label {
  font-size: .78rem;
  color: var(--mute);
  letter-spacing: .04em;
}
.bid-high {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
  text-shadow: 0 0 24px rgba(232,184,74,.35);
}
.bid-owner {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 4px;
}
.bid-timer-ring {
  width: 64px;
  height: 64px;
  margin: 14px auto 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 3px solid rgba(232,184,74,.55);
  box-shadow: 0 0 0 6px rgba(232,184,74,.08);
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.bid-round-meta { font-size: .8rem; color: var(--mute); margin-top: 4px; }
.bid-players {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 16px 12px;
}
.bid-player {
  padding: 10px 8px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
.bid-player.is-high {
  border-color: rgba(232,184,74,.55);
  background: rgba(232,184,74,.1);
}
.bid-player.is-folded { opacity: .45; }
.bid-player.is-me { box-shadow: inset 0 0 0 1px rgba(0,180,255,.35); }
.bp-avatar {
  width: 36px; height: 36px; margin: 0 auto 4px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(232,184,74,.15);
  font-weight: 800;
}
.bp-name { font-size: .82rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-bal { font-size: .9rem; color: var(--gold); font-weight: 800; }
.bp-st { font-size: .7rem; color: var(--mute); }
.bid-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 4px 16px 16px;
}
.bid-chip {
  appearance: none;
  border: 1px solid rgba(232,184,74,.35);
  background: linear-gradient(180deg, rgba(232,184,74,.16), rgba(0,0,0,.25));
  color: #fff;
  border-radius: 14px;
  padding: 12px 8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
}
.bid-chip:disabled { opacity: .35; cursor: not-allowed; }
.bid-chip.bid-allin {
  grid-column: span 2;
  border-color: rgba(255,92,108,.45);
  background: linear-gradient(180deg, rgba(255,92,108,.2), rgba(0,0,0,.3));
}
.bid-chip.bid-fold {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
}
.bid-question {
  margin: 0 16px 12px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.bq-prompt {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.45;
}
.bq-opts { display: grid; gap: 8px; }
.answer-btn {
  appearance: none;
  width: 100%;
  text-align: right;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
}
.answer-btn:active { transform: scale(.98); }
.answer-btn:disabled { opacity: .5; }
.bid-standings { padding: 0 16px; }
.bid-stand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.bs-rank { width: 28px; text-align: center; }
.bs-name { flex: 1; font-weight: 700; }
.bs-bal { color: var(--gold); font-weight: 800; }
.pass-name {
  width: 100%;
  margin-bottom: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 1rem;
}

@media (min-width: 900px) {
  .app-shell { max-width: 720px; padding-bottom: 40px; }
  .bottom-nav { display: none; }
  .poster-grid { gap: 14px; padding: 0 20px; max-width: 280px; }
  .poster-grid-games { max-width: 360px; }
  .split-hero { max-height: 420px; }
  .mode-list { grid-template-columns: 1fr 1fr; }
  .mode-poster-grid { gap: 12px; }
  .mode-poster-title { font-size: 1rem; }
  .mode-poster.is-featured .mode-poster-title { font-size: 1.25rem; }
}

.bottom-nav.is-hidden { display: none !important; }

/* ——— شاشة التشغيل / الدخول ——— */
.boot-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 -0px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.boot-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.06);
  animation: bootZoom 12s ease-in-out infinite alternate;
}
@keyframes bootZoom {
  from { transform: scale(1.04); }
  to { transform: scale(1.1); }
}
.boot-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,8,14,.35) 0%, rgba(5,8,14,.55) 40%, rgba(5,5,5,.92) 78%, #050505 100%),
    radial-gradient(520px 280px at 50% 18%, rgba(232,184,74,.14), transparent 60%);
}
.boot-glow {
  position: absolute;
  width: 220px; height: 220px;
  left: 50%; top: 22%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,184,74,.22), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  animation: bootPulse 3.2s ease-in-out infinite;
}
@keyframes bootPulse {
  0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
}
.boot-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(28px, env(safe-area-inset-top)) 20px max(16px, env(safe-area-inset-bottom));
}
.boot-brand {
  text-align: center;
  padding-top: 8vh;
  animation: rise .7s var(--ease) both;
}
.boot-logo {
  width: min(220px, 58vw);
  height: auto;
  aspect-ratio: 1;
  display: block;
  margin: 0 auto 10px;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.55));
  animation: rise .8s var(--ease) .05s both;
}
.boot-en {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: .18em;
  font-size: .72rem;
  color: rgba(232,184,74,.85);
}
.boot-ar {
  margin: 6px 0 8px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.7rem, 7vw, 2.2rem);
  color: var(--snow);
  text-shadow: 0 8px 30px rgba(0,0,0,.45);
}
.boot-tag {
  margin: 0 auto;
  max-width: 28ch;
  color: var(--mute);
  font-size: .88rem;
  line-height: 1.5;
}
.boot-panel {
  margin-top: auto;
  padding: 18px 16px 12px;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(16,20,30,.88), rgba(8,10,16,.94));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  backdrop-filter: blur(14px);
  animation: rise .65s var(--ease) .12s both;
}
.boot-perk {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(232,184,74,.08);
  border: 1px solid rgba(232,184,74,.2);
}
.boot-perk-ico {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(232,184,74,.95), rgba(180,120,20,.9));
  box-shadow: 0 6px 16px rgba(232,184,74,.25);
  position: relative;
}
.boot-perk-ico::after {
  content: "";
  position: absolute;
  inset: 11px 15px 11px 14px;
  background: #1a1205;
  clip-path: polygon(35% 0%, 100% 0%, 65% 48%, 100% 48%, 30% 100%, 0% 55%, 40% 55%);
}
.boot-perk strong {
  display: block;
  color: var(--gold);
  font-size: .95rem;
  font-weight: 800;
}
.boot-perk span {
  display: block;
  color: var(--mute);
  font-size: .78rem;
  margin-top: 2px;
}
.boot-google {
  min-height: 52px;
  border-radius: 16px;
  font-size: 1rem;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.boot-google:active { transform: scale(.98); }
.boot-google .g-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.boot-safe {
  margin: 12px 0 0;
  text-align: center;
  font-size: .72rem;
  color: rgba(255,255,255,.38);
}
.boot-screen .site-cred {
  margin-top: 10px;
  padding-top: 8px;
  border-top-color: rgba(255,255,255,.05);
}
.auth-error {
  background: rgba(255,92,108,.12);
  border: 1px solid rgba(255,92,108,.35);
  color: #ff8fa0;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: .85rem;
  text-align: center;
}
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: #fff;
  color: #1f1f1f;
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.auth-hint { text-align: center; margin-top: 14px; font-size: .75rem; }
.home-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
  font-size: .78rem;
  color: var(--snow);
}
.home-user-chip img {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.home-user-chip strong { color: var(--gold); font-weight: 800; }
.pf-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 2px solid rgba(232,184,74,.45);
}

/* login fullscreen: expand past app-shell padding feel */
.app-shell:has(.boot-screen) {
  max-width: 480px;
  padding-bottom: 0;
}
.boot-screen { width: 100%; }
