/* BIGO Diamond — maintenance page */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-arabic-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Lilita One";
  src: url("../fonts/lilita-one-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --ink: #0b1633;
  --text: #53627c;
  --muted: #7b8aa3;
  --blue: #1f66f2;
  --blue-2: #3d9bff;
  --blue-soft: #e8f2ff;
  --line: #e3ecf7;
  --card: #ffffff;
  --ok: #12a868;
  --ok-2: #34d399;
  --warn: #d97706;
  --radius-xl: clamp(22px, 2.4vw, 38px);
  --radius-lg: clamp(16px, 1.4vw, 22px);
  --shadow-card: 0 14px 34px -18px rgba(28, 88, 170, .32), 0 2px 6px -2px rgba(28, 88, 170, .08);
  --font: "Plus Jakarta Sans", "Vazirmatn", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --gap: clamp(10px, 2.1vh, 22px);
  color-scheme: light;
}
:root[dir="rtl"] { --font: "Vazirmatn", "Plus Jakarta Sans", system-ui, Tahoma, Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(70% 55% at 85% 8%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
    radial-gradient(60% 50% at 8% 95%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #e2f0fd 0%, #d3e8fb 55%, #e4f2fe 100%);
  background-color: #dcecfb;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 1.6vw, 26px);
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body, [dir="rtl"] .content * { letter-spacing: 0 !important; } /* letter-spacing breaks Arabic joining */
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- sky ---------- */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.sky__cloud {
  position: absolute; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0));
}
.sky__cloud--1 { width: 60vw; height: 26vw; left: -18vw; bottom: -10vw; }
.sky__cloud--2 { width: 50vw; height: 22vw; right: -14vw; bottom: -9vw; }
.sky__cloud--3 { width: 38vw; height: 16vw; right: 10vw; top: -8vw; opacity: .7; }
.sky__spark { position: absolute; fill: #fff; width: 18px; height: 18px; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9)); animation: twinkle 3.6s ease-in-out infinite; }
.sky__spark--1 { top: 9%; left: 42%; }
.sky__spark--2 { top: 72%; left: 3%; width: 14px; height: 14px; animation-delay: -1.2s; }
.sky__spark--3 { top: 16%; right: 3%; width: 12px; height: 12px; animation-delay: -2.4s; }

/* ---------- card / layout ---------- */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1600px;
  min-height: min(940px, calc(100dvh - 2 * clamp(8px, 1.6vw, 26px)));
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "brand scene" "content scene";
  column-gap: clamp(8px, 2vw, 36px);
  padding: clamp(22px, 3.6vh, 44px) clamp(22px, 4vw, 72px);
  padding-inline-end: clamp(16px, 2vw, 32px);
  border-radius: var(--radius-xl);
  background: linear-gradient(140deg, rgba(255, 255, 255, .9) 0%, rgba(246, 251, 255, .78) 55%, rgba(236, 246, 255, .7) 100%);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 40px 90px -40px rgba(30, 100, 190, .45), inset 0 1px 0 #fff;
}

/* brand */
.brand { grid-area: brand; display: flex; align-items: center; gap: clamp(8px, .9vw, 14px); align-self: start; }
.brand__gem { width: clamp(48px, 5.2vw, 84px); height: auto; aspect-ratio: 100 / 92; transform: rotate(-10deg); filter: drop-shadow(0 6px 10px rgba(231, 158, 0, .35)); }
.brand__word {
  display: flex; flex-direction: column;
  font-family: "Lilita One", var(--font);
  font-size: clamp(20px, 2.1vw, 34px);
  line-height: .94;
  color: #1f6ff0;
  letter-spacing: .01em;
  text-shadow:
    .07em 0 0 #fff, -.07em 0 0 #fff, 0 .07em 0 #fff, 0 -.07em 0 #fff,
    .05em .05em 0 #fff, -.05em .05em 0 #fff, .05em -.05em 0 #fff, -.05em -.05em 0 #fff,
    .12em 0 0 #0c3b93, -.12em 0 0 #0c3b93, 0 .13em 0 #0c3b93, 0 -.12em 0 #0c3b93,
    .09em .09em 0 #0c3b93, -.09em .09em 0 #0c3b93, .09em -.09em 0 #0c3b93, -.09em -.09em 0 #0c3b93,
    0 .2em .3em rgba(12, 59, 147, .28);
  padding: .14em;
  direction: ltr;
}

/* language selector */
.lang { position: absolute; z-index: 20; top: clamp(18px, 3vh, 40px); inset-inline-end: clamp(18px, 2.6vw, 44px); }
.lang__btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 10px 16px;
  font: 600 15px/1 var(--font); color: var(--ink);
  background: #fff; border: 1px solid #e2ebf6; border-radius: 16px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}
.lang__btn:hover { box-shadow: 0 16px 34px -16px rgba(28, 88, 170, .45); }
.lang__btn:focus-visible, .lang__list:focus-visible, .btn:focus-visible { outline: 3px solid rgba(31, 102, 242, .45); outline-offset: 3px; }
.lang__globe { width: 20px; height: 20px; color: #334155; }
.lang__chev { width: 18px; height: 18px; color: #475569; transition: transform .25s var(--ease-out); }
.lang__btn[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
.lang__list {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0;
  min-width: 210px; padding: 8px;
  background: #fff; border: 1px solid #e2ebf6; border-radius: 16px;
  box-shadow: 0 24px 50px -18px rgba(20, 70, 150, .35);
  outline: none;
  animation: pop .22s var(--ease-out);
}
.lang__list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  font: 500 15px/1.2 var(--font); color: var(--ink);
  cursor: pointer; user-select: none;
}
.lang__list li[lang="ar"], .lang__list li[lang="fa"] { font-family: "Vazirmatn", var(--font); }
.lang__list li.is-active { background: #f1f6fd; }
.lang__list li[aria-selected="true"] { background: var(--blue-soft); color: #1250c9; font-weight: 600; }
.flag { width: 26px; height: 18px; flex: none; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(15, 23, 42, .1), 0 2px 4px rgba(15, 23, 42, .12); }
.lang-name { flex: 1; }
.lang-check { width: 18px; height: 18px; color: var(--blue); visibility: hidden; flex: none; }
.lang__list li[aria-selected="true"] .lang-check { visibility: visible; }

/* ---------- content ---------- */
.content {
  grid-area: content;
  display: flex; flex-direction: column; justify-content: center;
  gap: var(--gap);
  padding-block: clamp(10px, 2.4vh, 30px) 0;
  min-width: 0;
}
.pill {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: clamp(7px, 1vh, 10px) 18px;
  font-weight: 650; font-size: clamp(13px, 1.05vw, 17px); color: #1a5fd8;
  background: linear-gradient(180deg, #eef6ff, #e3efff);
  border: 1px solid #cfe2fb; border-radius: 999px;
  box-shadow: 0 6px 16px -10px rgba(31, 102, 242, .4);
}
.pill__icon { width: 1.25em; height: 1.25em; }
.pill__icon--done { display: none; }

.title {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  font-size: calc(min(5.3vw, 9.4vh, 88px) * var(--fit, 1));
  line-height: 1.02;
  letter-spacing: -.035em;
}
.title > span { display: block; width: max-content; max-width: none; white-space: nowrap; }
.title__l2 { position: relative; display: inline-block !important; padding-bottom: .12em; }
.title__hl {
  background: linear-gradient(95deg, #1b5ff0 0%, #2f84ff 55%, #49aaff 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.title__swoosh { position: absolute; left: 2%; right: 14%; bottom: -.04em; width: 84%; height: .16em; overflow: visible; }
.title__burst { position: absolute; top: -.08em; inset-inline-end: -.56em; width: .52em; height: .52em; overflow: visible; }
[dir="rtl"] .title { line-height: 1.28; font-weight: 900; font-size: calc(min(4.8vw, 8.6vh, 80px) * var(--fit, 1)); }
[dir="rtl"] .title__swoosh { left: 14%; right: 2%; transform: scaleX(-1); }
[dir="rtl"] .title__burst { transform: scaleX(-1); }

.desc {
  max-width: 34em;
  font-size: clamp(14px, min(1.18vw, 2.2vh), 19px);
  line-height: 1.6;
  color: var(--text);
}
[dir="rtl"] .desc { line-height: 1.85; }

/* progress card */
.progress {
  display: flex; flex-direction: column; gap: clamp(9px, 1.4vh, 14px);
  padding: clamp(14px, 2vh, 22px) clamp(16px, 1.6vw, 24px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  max-width: 640px;
}
.progress__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.progress__titles { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.progress__label { font-weight: 700; font-size: clamp(14px, 1.1vw, 17px); color: var(--ink); }
.progress__pct {
  font-weight: 800; font-size: clamp(26px, min(2.5vw, 4.6vh), 40px); line-height: 1;
  color: var(--ink); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.updated { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.updated__dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: none;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .5);
  animation: live 2.4s ease-out infinite;
}
.updated.is-stale .updated__dot { background: var(--warn); animation: none; }

.bar {
  position: relative; height: clamp(10px, 1.3vh, 13px);
  border-radius: 999px; overflow: hidden;
  background: #e6edf6;
  box-shadow: inset 0 1px 2px rgba(15, 40, 80, .08);
}
.bar__fill {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb 0%, #2f8cf8 45%, #22c3e6 80%, #3ad6d4 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.2s var(--ease-out), background .6s;
  overflow: hidden;
}
[dir="rtl"] .bar__fill { transform-origin: right center; background: linear-gradient(270deg, #2563eb 0%, #2f8cf8 45%, #22c3e6 80%, #3ad6d4 100%); }
.bar__shine {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: shine 2.8s ease-in-out infinite;
}
.is-indeterminate .bar__fill { transform: scaleX(.3) !important; animation: indet 1.6s ease-in-out infinite; transition: none; }

.meta { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 10px 14px; }
.meta__item { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.meta__item > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.meta__icon { width: 17px; height: 17px; color: var(--blue); flex: none; margin-top: 1px; }
.meta__k { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.meta__v { font-size: clamp(13px, .95vw, 14.5px); font-weight: 700; color: var(--ink); line-height: 1.3; }
.meta__item--left { align-items: center; }
.remaining { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.35; }
.remaining.is-overtime { color: #b45309; }

.message {
  position: relative;
  padding: 10px 14px; padding-inline-start: 38px;
  font-size: 14px; line-height: 1.5; color: #1e3a6b;
  background: #f3f8ff; border: 1px solid #dceafd; border-radius: 12px;
}
.message::before {
  content: ""; position: absolute; inset-inline-start: 13px; top: 12px; width: 16px; height: 16px;
  background: currentColor; opacity: .75;
  -webkit-mask: url("../images/icon-message.svg") center / contain no-repeat;
  mask: url("../images/icon-message.svg") center / contain no-repeat;
}

.cta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 14px;
  font: 700 15px/1 var(--font); color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #1fbf75, #10a263);
  box-shadow: 0 12px 24px -12px rgba(16, 162, 99, .65);
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 28px -12px rgba(16, 162, 99, .75); }
.btn__arrow { width: 18px; height: 18px; }
[dir="rtl"] .btn__arrow { transform: scaleX(-1); }
.redirect-note { font-size: 13px; color: var(--muted); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, .9vw, 14px); max-width: 640px; }
.feature {
  display: flex; align-items: center; gap: 12px;
  padding: clamp(10px, 1.6vh, 16px) clamp(10px, 1vw, 16px);
  background: rgba(255, 255, 255, .78);
  border: 1px solid #e6eef8; border-radius: var(--radius-lg);
  box-shadow: 0 10px 24px -18px rgba(28, 88, 170, .35);
  min-width: 0;
}
.feature__icon {
  display: grid; place-items: center; flex: none;
  width: clamp(36px, 3vw, 46px); height: clamp(36px, 3vw, 46px);
  border-radius: 13px;
  background: linear-gradient(145deg, #eef6ff, #dbeaff);
  box-shadow: inset 0 1px 0 #fff;
}
.feature__icon svg { width: 56%; height: 56%; }
.feature > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.feature strong { font-size: clamp(12.5px, 1vw, 15px); color: var(--ink); line-height: 1.2; font-weight: 700; }
.feature small { font-size: clamp(11px, .85vw, 13px); color: var(--muted); line-height: 1.3; }

.foot { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }

/* ---------- scene ---------- */
.scene {
  grid-area: scene;
  position: relative;
  min-height: 0;
  container-type: size;
  direction: ltr; /* artwork never mirrors */
}
.window {
  position: absolute; left: 12%; right: 5%; top: 11%; bottom: 17%;
  border-radius: clamp(18px, 3cqmin, 34px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(232, 243, 255, .45));
  border: 2px solid rgba(255, 255, 255, .95);
  box-shadow: 0 30px 60px -38px rgba(30, 110, 200, .5), inset 0 0 0 1px rgba(165, 200, 238, .35);
  overflow: hidden;
}
.window__bar {
  position: absolute; inset: 0 0 auto; height: 11%;
  display: flex; align-items: center; gap: 1.8cqmin; padding-inline: 3.4cqmin;
  background: linear-gradient(180deg, rgba(210, 230, 250, .75), rgba(210, 230, 250, .35));
  border-bottom: 1px solid rgba(255, 255, 255, .9);
}
.window__bar i { width: 2.4cqmin; height: 2.4cqmin; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(60, 120, 190, .25); }
.window__swirl { position: absolute; inset: 20% -5% 0; width: 110%; height: 80%; fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; opacity: .75; filter: blur(1.5px); animation: drift 12s ease-in-out infinite alternate; }

.gems { position: absolute; inset: 0; pointer-events: none; }
.gem { position: absolute; height: auto; aspect-ratio: 100 / 92; filter: drop-shadow(0 10px 14px rgba(40, 130, 230, .28)); animation: bob 5s ease-in-out infinite; }
.gem--1 { left: 1%;  top: 13%; width: 19cqmin; --r: -14deg; }
.gem--2 { left: 3%;  top: 43%; width: 10cqmin; --r: 10deg; animation-delay: -1.8s; animation-duration: 6s; }
.gem--3 { right: 1%; top: 47%; width: 11cqmin; --r: 16deg; animation-delay: -3s; }
.gem--4 { right: 4%; top: 69%; width: 8cqmin;  --r: -8deg; animation-delay: -.9s; animation-duration: 5.6s; }
.gem--5 { right: 18%; top: 4%; width: 6.5cqmin; --r: 12deg; animation-delay: -2.2s; animation-duration: 6.4s; filter: drop-shadow(0 8px 10px rgba(231, 158, 0, .3)); }
.twinkle { position: absolute; fill: #fff; filter: drop-shadow(0 0 5px rgba(120, 190, 255, .95)); animation: twinkle 3.2s ease-in-out infinite; }
.twinkle--1 { left: 16%; top: 12%; width: 4cqmin; height: 4cqmin; }
.twinkle--2 { left: 12%; top: 41%; width: 3cqmin; height: 3cqmin; animation-delay: -1s; }
.twinkle--3 { right: 9%; top: 45%; width: 3.4cqmin; height: 3.4cqmin; animation-delay: -2s; }
.twinkle--4 { right: 27%; top: 9%; width: 2.6cqmin; height: 2.6cqmin; animation-delay: -1.5s; }

.cone { position: absolute; right: 1.5%; bottom: 14%; width: 10cqmin; z-index: 1; height: auto; aspect-ratio: 60 / 80; filter: drop-shadow(0 10px 10px rgba(180, 70, 10, .22)); }

/* Dino stage — layer coordinates measured from the original artwork (1129 x 1005) */
.stage {
  position: absolute; left: 50%; bottom: 3%;
  width: min(76cqw, 84cqh * 1.1234);
  aspect-ratio: 1129 / 1005;
  transform: translateX(-53%);
}
.stage > *, .dino__breathe > * { position: absolute; }
.dino, .dino__breathe { inset: 0; }
.dino { animation: float 4.6s ease-in-out infinite; }
.dino__breathe { position: absolute; transform-origin: 50% 100%; animation: breathe 3.1s ease-in-out infinite; }
.dino__body   { left: 10.097%; top: 0;       width: 84.677%; height: 100%; }
.dino__wrench { left: 9.035%;  top: 18.109%; width: 16.12%;  height: 22.09%; transform-origin: 78% 99.5%; animation: rock 2.6s ease-in-out infinite; }
.spark { transform-origin: 50% 100%; animation: flick 2.6s ease-in-out infinite; }
.spark--1 { left: 23.206%; top: 6.368%;  width: 5.846%; height: 9.154%; transform-origin: 20% 100%; }
.spark--2 { left: 21.169%; top: 14.328%; width: 6.112%; height: 4.179%; transform-origin: 0 100%; animation-delay: -.4s; }
.spark--3 { left: 77.502%; top: 53.632%; width: 3.543%; height: 7.562%; transform-origin: 50% 0; animation-delay: -1.1s; }
.spark--4 { left: 79.628%; top: 57.413%; width: 6.112%; height: 5.771%; transform-origin: 0 0; animation-delay: -1.6s; }

.gear { width: 1px; height: 1px; }
.gear--big   { left: 77.148%; top: 28.358%; width: 21.612%; height: 24.279%; animation: bob-g 5.2s ease-in-out infinite; }
.gear--small { left: 87.954%; top: 61.791%; width: 12.046%; height: 13.532%; animation: bob-g 4.4s ease-in-out -1s infinite; }
.gear--gray  { left: 0;       top: 52.736%; width: 17.715%; height: 19.9%;   animation: bob-g 5.8s ease-in-out -2s infinite; }
.gear svg { position: absolute; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.gear__side { left: 2.5%; top: 5%; fill: #1b7fcf; }
.gear__face { left: 0; top: 0; fill: url(#g-gear-blue); stroke: rgba(255, 255, 255, .55); stroke-width: 3; filter: drop-shadow(0 6px 8px rgba(20, 110, 200, .22)); }
.gear--gray .gear__side { fill: #8b97a8; }
.gear--gray .gear__face { fill: url(#g-gear-gray); stroke: rgba(255, 255, 255, .8); filter: drop-shadow(0 6px 8px rgba(80, 100, 130, .22)); }
.gear--small svg { animation-duration: 9s; animation-direction: reverse; }
.gear--gray svg { animation-duration: 20s; animation-direction: reverse; }

/* barricade sign */
.sign { position: absolute; left: 7%; bottom: 5%; width: 32cqmin; aspect-ratio: 1 / .7; transform: rotate(-5deg); filter: drop-shadow(0 14px 14px rgba(40, 50, 70, .22)); z-index: 2; }
.sign__board {
  position: absolute; inset: 0 0 34% 0;
  display: grid; grid-template-rows: 30% 1fr 13%;
  border-radius: 1.4cqmin; overflow: hidden;
  background: #ffd23f;
  box-shadow: inset 0 -.6cqmin 0 rgba(160, 110, 0, .35), inset 0 .5cqmin 0 rgba(255, 255, 255, .45);
}
.sign__band { background: repeating-linear-gradient(-45deg, #1f2430 0 3.2cqmin, #ffcc1a 3.2cqmin 6.4cqmin); }
.sign__band--thin { background: repeating-linear-gradient(-45deg, #1f2430 0 2cqmin, #ffcc1a 2cqmin 4cqmin); }
.sign__text {
  display: grid; place-items: center; padding-inline: 1.4cqmin;
  font-weight: 800; font-size: 3.5cqmin; letter-spacing: .02em; line-height: 1;
  color: #1f2430; white-space: nowrap; font-style: italic;
  font-family: "Plus Jakarta Sans", "Vazirmatn", sans-serif;
}
[dir="rtl"] .sign__text { font-style: normal; font-size: 4.4cqmin; font-family: "Vazirmatn", sans-serif; font-weight: 900; }
.sign__leg { position: absolute; bottom: 0; width: 3.2cqmin; height: 44%; background: linear-gradient(90deg, #3a4150, #202532); border-radius: .8cqmin; }
.sign__leg--l { left: 12%; transform: skewX(8deg); }
.sign__leg--r { right: 12%; transform: skewX(-8deg); }

.scene__clouds {
  position: absolute; inset: auto 0 -2% 0; height: 24%; pointer-events: none; z-index: 3;
  background:
    radial-gradient(22% 46% at 18% 72%, #fff 35%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(24% 44% at 44% 84%, rgba(255, 255, 255, .96) 35%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(24% 46% at 70% 80%, rgba(255, 255, 255, .96) 35%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(18% 40% at 88% 70%, #fff 30%, rgba(255, 255, 255, 0) 100%);
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

/* ---------- completed state ---------- */
.is-done .pill { color: #0b8a55; background: linear-gradient(180deg, #ecfdf5, #dcfce7); border-color: #bbf0d3; box-shadow: 0 6px 16px -10px rgba(16, 162, 99, .45); }
.is-done .pill__icon--wrench { display: none; }
.is-done .pill__icon--done { display: block; }
.is-done .title__hl { background-image: linear-gradient(95deg, #0e9f63, #22c08a 60%, #34d3a4); }
.is-done .progress__pct { color: var(--ok); }
.is-done .bar__fill, [dir="rtl"].is-done .bar__fill { background: linear-gradient(90deg, #12a868, #34d399); }
.is-done .bar__shine { animation-duration: 3.6s; }
.is-done .meta__item--stage .meta__icon { color: var(--ok); }
.is-done .sign__board { background: #6ee7b7; }
.is-done .sign__band { background: repeating-linear-gradient(-45deg, #065f46 0 3.2cqmin, #34d399 3.2cqmin 6.4cqmin); }
.is-done .sign__band--thin { background: repeating-linear-gradient(-45deg, #065f46 0 2cqmin, #34d399 2cqmin 4cqmin); }
.is-done .sign__text { color: #064e3b; }
.is-done .dino { animation: hop 2.4s var(--ease-out) infinite; }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js:not(.is-ready) .reveal { animation: failsafe .01s 2.5s forwards; } /* never stay hidden if JS stalls */
.is-ready .reveal { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); }
.is-ready .d1 { transition-delay: .05s; } .is-ready .d2 { transition-delay: .12s; } .is-ready .d3 { transition-delay: .2s; }
.is-ready .d4 { transition-delay: .28s; } .is-ready .d5 { transition-delay: .36s; } .is-ready .d6 { transition-delay: .44s; }
.is-ready .d7 { transition-delay: .5s; }
.js .scene { opacity: 0; transform: scale(.96) translateY(10px); }
.is-ready .scene { opacity: 1; transform: none; transition: opacity .9s var(--ease-out) .15s, transform 1.1s var(--ease-out) .15s; }
.swap { animation: swap .5s var(--ease-out); }
.lang-swap > * { animation: swap .45s var(--ease-out); }

@keyframes failsafe { to { opacity: 1; transform: none; } }
@keyframes swap { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.2%); } }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.008, 1.016); } }
@keyframes rock { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3.5deg); } }
@keyframes flick { 0%, 100% { opacity: .55; transform: scale(.82); } 45% { opacity: 1; transform: scale(1.08); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-7%) rotate(calc(var(--r, 0deg) + 4deg)); } }
@keyframes bob-g { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4%); } }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.55) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@keyframes drift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
@keyframes shine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(200%); } }
@keyframes indet { 0% { translate: -110% 0; } 100% { translate: 340% 0; } }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); } 80%, 100% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } }
@keyframes hop { 0%, 70%, 100% { transform: translateY(0); } 35% { transform: translateY(-4%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .reveal, .js .scene { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */

/* short desktop screens: tighten so everything fits without scrolling */
@media (min-width: 861px) and (max-height: 760px) {
  :root { --gap: 1.3vh; }
  .card { padding-block: 16px; }
  .content { padding-top: 4px; }
  .title { font-size: calc(min(5.3vw, 8.4vh, 88px) * var(--fit, 1)); }
  [dir="rtl"] .title { font-size: calc(min(4.8vw, 7.6vh, 80px) * var(--fit, 1)); }
  .progress { padding-block: 12px; gap: 8px; }
  .feature { padding-block: 9px; }
  .feature small { display: none; }
  .foot__copy { display: none; }
  .desc { line-height: 1.5; }
}
@media (min-width: 861px) and (max-height: 640px) {
  .features { display: none; }
}

/* tablets */
@media (max-width: 1180px) and (min-width: 861px) {
  .card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .meta { grid-template-columns: 1fr 1fr; }
  .meta__item--stage { grid-column: 1 / -1; }
  .feature { flex-direction: column; align-items: flex-start; }
}

/* phones & small tablets: dedicated stacked layout */
@media (max-width: 860px) {
  body { display: block; padding: 10px; }
  .card {
    display: flex; flex-direction: column;
    min-height: calc(100dvh - 20px);
    padding: 16px 16px 20px;
    gap: 0;
  }
  .brand { order: 0; min-height: 46px; padding-inline-end: 150px; }
  .brand__gem { width: 44px; }
  .brand__word { font-size: 19px; }
  .lang { top: 16px; inset-inline-end: 16px; }
  .lang__btn { min-height: 44px; padding: 9px 12px; font-size: 14px; gap: 8px; }
  .lang__list { min-width: 200px; }

  .scene { order: 1; width: 100%; aspect-ratio: 1 / .86; max-height: 46vh; margin: 6px auto 0; }
  .window { left: 6%; right: 4%; top: 6%; bottom: 16%; }
  .stage { width: min(82cqw, 90cqh * 1.1234); bottom: 2%; }
  .sign { width: 30cqmin; left: 2%; bottom: 3%; }
  .cone { right: 3%; }

  .content { order: 2; padding-top: 4px; gap: 14px; }
  .pill { align-self: center; font-size: 13.5px; }
  .title { font-size: calc(clamp(34px, 10.4vw, 56px) * var(--fit, 1)); text-align: center; }
  [dir="rtl"] .title { font-size: calc(clamp(32px, 9.6vw, 52px) * var(--fit, 1)); }
  .title > span { margin-inline: auto; }
  .desc { text-align: center; font-size: 15px; margin-inline: auto; }
  .progress { max-width: none; }
  .progress__pct { font-size: 32px; }
  .meta { grid-template-columns: 1fr 1fr; }
  .meta__item--stage { grid-column: 1 / -1; }
  .features { max-width: none; gap: 8px; }
  .feature { flex-direction: column; text-align: center; gap: 8px; padding: 12px 6px; }
  .feature > span:last-child { align-items: center; }
  .feature strong { font-size: 12.5px; }
  .feature small { font-size: 11px; }
  .foot { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
}
@media (max-width: 380px) {
  .brand__word { font-size: 17px; }
  .brand { padding-inline-end: 132px; }
  .lang__btn span { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .feature small { display: none; }
}
.is-done .title__swoosh path, .is-done .title__burst g { stroke: #22c08a; }
