/*
 * The promo after a game is closed (templates/partials/promo.php; Nasser 2026-11-03): full screen, the identity's sky
 * and sunflower, a short entrance. Colours from tokens.css only; no motion when the viewer asks for less.
 */
.promo { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6vmin; text-align: center;
  background: radial-gradient(circle at 50% 40%, var(--brand) 0%, var(--side-bg) 75%); color: var(--side-ink); overflow: hidden; padding: 4vmin; }
.promo[hidden] { display: none; }
.promo-glow { position: absolute; width: 90vmin; height: 90vmin; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0%, transparent 60%); opacity: .25; }
.promo-icon { position: relative; width: clamp(96px, 22vmin, 220px); height: auto; border-radius: 22%; box-shadow: 0 2vmin 6vmin rgb(0 0 0 / .3); }
.promo-name { position: relative; margin: 0; font-family: var(--display, inherit); font-weight: 800; font-size: clamp(40px, 11vmin, 140px); line-height: 1.05; }
.promo-tagline { position: relative; margin: 0; font-size: clamp(18px, 4.2vmin, 52px); color: var(--accent); font-weight: 700; }
.promo-thanks { position: relative; margin: 1vmin 0 0; font-size: clamp(15px, 2.8vmin, 34px); color: var(--side-muted); }
.promo-host { position: relative; margin: 0; font-size: clamp(14px, 2.4vmin, 28px); letter-spacing: .04em; color: var(--side-ink); opacity: .9; }
.promo:not([hidden]) .promo-icon { animation: promo-pop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.promo:not([hidden]) .promo-name { animation: promo-rise .6s .15s ease-out both; }
.promo:not([hidden]) .promo-tagline { animation: promo-rise .6s .3s ease-out both; }
.promo:not([hidden]) .promo-thanks, .promo:not([hidden]) .promo-host { animation: promo-rise .6s .45s ease-out both; }
.promo:not([hidden]) .promo-glow { animation: promo-glow 3s ease-in-out infinite alternate; }
@keyframes promo-pop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes promo-rise { from { transform: translateY(3vmin); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes promo-glow { from { transform: scale(.9); } to { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .promo * { animation: none !important; } }
.promo-next { position: relative; margin-top: 2vmin; }
.promo-page { margin: 0; background: var(--side-bg); }
.promo-next-wrap[hidden] { display: none; }
.promo-next-wrap { position: fixed; inset-inline: 0; bottom: 6vh; z-index: 51; display: flex; justify-content: center; margin: 0; }
.follow-wait { display: inline-flex; align-items: center; gap: 1.4vmin; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 1.4vmin 3.6vmin;
  font-weight: 800; font-size: clamp(16px, 3vmin, 34px); }
.follow-dot { width: 1.6vmin; height: 1.6vmin; min-width: 10px; min-height: 10px; border-radius: 50%; background: var(--on-accent); animation: follow-blink 1.2s ease-in-out infinite; }
@keyframes follow-blink { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .follow-dot { animation: none; } }
/* §19.3: the screen's waiting page (linked, no game open): the name big, «المنسق يجهّز اللعبة…», three cards in turn. */
.tv-idle { position: fixed; inset: 0; z-index: 49; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2vmin; text-align: center;
  background: radial-gradient(circle at 50% 30%, var(--brand) 0%, var(--side-bg) 80%); color: var(--side-ink); padding: 4vmin; box-sizing: border-box; overflow: hidden; }
.tv-idle[hidden] { display: none; }
.tv-idle-icon { width: clamp(72px, 14vmin, 160px); height: auto; border-radius: 22%; box-shadow: 0 2vmin 6vmin rgb(0 0 0 / .3); }
.tv-idle-name { margin: 0; font-family: var(--display, inherit); font-weight: 800; font-size: clamp(40px, 12vmin, 150px); line-height: 1.05; }
.tv-idle-wait { margin: 0; display: inline-flex; align-items: center; gap: 1.6vmin; font-size: clamp(16px, 3.6vmin, 44px); font-weight: 700; color: var(--accent); }
.tv-idle-cards { list-style: none; margin: 2vmin 0 0; padding: 0; position: relative; width: min(90vw, 110vmin); height: clamp(180px, 34vmin, 380px); }
.tv-idle-card { position: absolute; inset: 0; display: flex; align-items: center; gap: 4vmin; text-align: start;
  background: var(--surface); color: var(--ink); border-radius: 4vmin; padding: 3vmin 4vmin; box-shadow: 0 1.2vmin 0 var(--brand-deep); opacity: 0; transform: translateY(2vmin);
  transition: opacity .6s ease, transform .6s ease; box-sizing: border-box; }
.tv-idle-card.is-on { opacity: 1; transform: none; }
.tv-idle-card img { flex: none; width: clamp(110px, 30%, 320px); height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: var(--brand-soft); border-radius: 3vmin; padding: 1.5vmin; box-sizing: border-box; }
.tv-idle-text { display: flex; flex-direction: column; gap: 1.4vmin; min-width: 0; }
.tv-idle-text strong { display: flex; align-items: center; gap: 2vmin; font-size: clamp(22px, 5.4vmin, 64px); font-weight: 800; }
.tv-idle-step { flex: none; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: inline-grid; place-items: center; font-size: .7em; }
.tv-idle-text > span { font-size: clamp(16px, 3.4vmin, 40px); color: var(--muted); line-height: 1.45; }
@media (max-aspect-ratio: 1/1) { .tv-idle-card { flex-direction: column; text-align: center; } .tv-idle-cards { height: clamp(300px, 70vmin, 520px); } .tv-idle-text strong { justify-content: center; } }
/* The «اضغط هنا لتشغيل الصوت» button under the cards, not over them. */
body:has(.tv-idle:not([hidden])) .tv-sound-tap { inset-block-end: 3vmin; z-index: 52; }
@media (prefers-reduced-motion: reduce) { .tv-idle-card { transition: none; transform: none; } }
