/*
 * Tadaroo coming-soon page.
 * Written for old smart-TV browsers too (Chromium 53+): no CSS variables, no gap on flexbox,
 * no min()/clamp(), no aspect-ratio. Only opacity and transform are animated.
 * Palette: aubergine #1E1030, plum #3A1E5C, saffron #F4A124, coral #FF6A4D, gold #FFD25E, cream #FFF4E0.
 */

@font-face {
  font-family: "Readex Pro";
  src: url("fonts/readexpro.woff2") format("woff2");
  font-weight: 160 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lemonada";
  src: url("fonts/lemonada.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #1E1030;
  color: #FFF4E0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html { height: 100%; }
body {
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
  font-family: "Readex Pro", "Segoe UI", Tahoma, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------------- the stage set: spotlight, floor pool, pelmet, curtain edges ---------------- */
.scene {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.spot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1100px;
  height: 100%;
  margin-left: -550px;
  background: radial-gradient(ellipse 50% 85% at 50% 0%, rgba(255, 210, 94, 0.24) 0%, rgba(244, 161, 36, 0.09) 42%, rgba(30, 16, 48, 0) 72%);
  -webkit-animation: breathe 7s ease-in-out infinite;
  animation: breathe 7s ease-in-out infinite;
}
.pool {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 900px;
  height: 260px;
  margin: 20px 0 0 -450px;
  background: radial-gradient(ellipse at 50% 50%, rgba(58, 30, 92, 0.95) 0%, rgba(58, 30, 92, 0) 70%);
}
/* a scalloped valance along the top */
.pelmet {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 34px;
  background:
    radial-gradient(circle at 50% 0, #3A1E5C 0, #3A1E5C 17px, rgba(58, 30, 92, 0) 18px) 0 0 / 44px 34px repeat-x;
  opacity: 0.8;
}
.pelmet:after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #F4A124;
  opacity: 0.7;
}
/* curtain folds that fade into the dark before they reach the middle */
.curtain {
  position: absolute;
  top: 0; bottom: 0;
  width: 6%;
  min-width: 20px;
}
.curtain-l {
  left: 0;
  background:
    linear-gradient(to right, rgba(30, 16, 48, 0) 0%, #1E1030 100%),
    repeating-linear-gradient(to right, #2A1448 0, #4A2878 18px, #2A1448 36px);
}
.curtain-r {
  right: 0;
  background:
    linear-gradient(to left, rgba(30, 16, 48, 0) 0%, #1E1030 100%),
    repeating-linear-gradient(to left, #2A1448 0, #4A2878 18px, #2A1448 36px);
}
.curtain:after {           /* a thin gold edge on the curtain's inner side */
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: #F4A124;
  opacity: 0.25;
}
.curtain-l:after { right: 0; }
.curtain-r:after { left: 0; }

/* ---------------- content ---------------- */
.stage {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  min-height: 100vh;
  padding: 56px 16px 28px;
  text-align: center;
}

.logo {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}
.logo .tadaroo-logo { width: 100%; }
.logo img { display: block; width: 100%; height: auto; }

/* the "🔊 tap" hint */
.hint {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  margin: 22px 0 0;
  padding: 7px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #FFD25E;
  background: rgba(58, 30, 92, 0.7);
  border: 1px solid rgba(255, 210, 94, 0.35);
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hint:focus { outline: none; }
.hint:focus-visible, .hint.focus { box-shadow: 0 0 0 3px rgba(255, 210, 94, 0.6); }
.hint-icon { display: block; margin-left: 8px; }
.hint-sep { margin: 0 8px; opacity: 0.5; }
.hint-en { letter-spacing: 0.04em; }
.copy { margin: 34px 0 0; max-width: 640px; width: 100%; }

.tagline-ar {
  margin: 0;
  font-family: "Lemonada", "Readex Pro", Tahoma, sans-serif;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.35;
  color: #FFD25E;
  text-shadow: 0 2px 24px rgba(244, 161, 36, 0.35);
}
.tagline-en {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFF4E0;
  opacity: 0.88;
}

/* marquee bulbs as a divider */
.bulbs {
  width: 140px;
  height: 10px;
  margin: 26px auto 24px;
  background: radial-gradient(circle at 50% 50%, #F4A124 0, #F4A124 3px, rgba(244, 161, 36, 0) 3.6px) 0 0 / 20px 10px repeat-x;
}

.soon-ar {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  color: #FFF4E0;
}
.soon-en {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: #E9DCC6;
}
.soon-ar strong, .soon-en strong { font-weight: 600; color: #FF6A4D; }

.foot {
  margin-top: 44px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #B7A7CC;
  opacity: 0.8;
}

/* ---------------- entrance (the logo has its own 1.4 s intro) ---------------- */
.tagline-ar { -webkit-animation: rise 0.8s ease-out 1.1s both; animation: rise 0.8s ease-out 1.1s both; }
.tagline-en { -webkit-animation: rise 0.8s ease-out 1.3s both; animation: rise 0.8s ease-out 1.3s both; }
.bulbs      { -webkit-animation: rise 0.8s ease-out 1.5s both, twinkle 3s ease-in-out 2.4s infinite;
              animation: rise 0.8s ease-out 1.5s both, twinkle 3s ease-in-out 2.4s infinite; }
.soon-ar    { -webkit-animation: rise 0.8s ease-out 1.7s both; animation: rise 0.8s ease-out 1.7s both; }
.soon-en    { -webkit-animation: rise 0.8s ease-out 1.9s both; animation: rise 0.8s ease-out 1.9s both; }
.foot       { -webkit-animation: rise 0.8s ease-out 2.2s both; animation: rise 0.8s ease-out 2.2s both; }
.hint       { -webkit-animation: rise 0.8s ease-out 1.0s both, hint-pulse 2.4s ease-in-out 2.4s infinite;
              animation: rise 0.8s ease-out 1.0s both, hint-pulse 2.4s ease-in-out 2.4s infinite; }
.hint.is-done { -webkit-animation: none; animation: none; opacity: 0.75; }

@-webkit-keyframes rise { 0% { opacity: 0; -webkit-transform: translate(0, 14px); } 100% { opacity: 1; -webkit-transform: translate(0, 0); } }
@keyframes rise { 0% { opacity: 0; transform: translate(0, 14px); } 100% { opacity: 1; transform: translate(0, 0); } }
@-webkit-keyframes breathe { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }
@keyframes breathe { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }
@-webkit-keyframes twinkle { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@-webkit-keyframes hint-pulse { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }
@keyframes hint-pulse { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }

/* ---------------- sizes ---------------- */
@media (min-width: 600px) {
  .curtain { width: 15%; max-width: 220px; }
  .stage { padding-top: 64px; }
  .tagline-ar { font-size: 48px; }
  .tagline-en { font-size: 17px; letter-spacing: 0.16em; }
  .soon-ar { font-size: 28px; }
  .soon-en { font-size: 18px; }
}
@media (min-width: 1100px) {
  .logo { max-width: 860px; }
  .tagline-ar { font-size: 56px; }
  .soon-ar { font-size: 32px; }
  .soon-en { font-size: 20px; }
}
/* TV: big and readable from the sofa */
@media (min-width: 1700px) {
  .logo { max-width: 1100px; }
  .tagline-ar { font-size: 72px; }
  .tagline-en { font-size: 22px; }
  .soon-ar { font-size: 40px; }
  .soon-en { font-size: 25px; }
  .hint { font-size: 18px; }
}
@media (max-width: 599px) {
  .soon-ar strong { display: block; }
}
@media (max-width: 380px) {
  .tagline-ar { font-size: 27px; }
  .tagline-en { font-size: 12px; }
  .soon-ar { font-size: 19px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .stage { padding-top: 40px; }
  .logo { max-width: 520px; }
  .copy { margin-top: 20px; }
  .bulbs { margin: 16px auto; }
  .foot { margin-top: 24px; }
}

/* ---------------- reduced motion: everything just appears ---------------- */
@media (prefers-reduced-motion: reduce) {
  .spot, .bulbs, .hint, .tagline-ar, .tagline-en, .soon-ar, .soon-en, .foot {
    -webkit-animation: none !important;
    animation: none !important;
  }
}
