/* CYBER BALL download page. Light by design: transform/opacity animations only, no web fonts, no libraries. */
:root {
  --bg: #00070d;
  --bg2: #001420;
  --panel: rgba(0, 30, 46, .62);
  --line: rgba(111, 243, 255, .16);
  --cyan: #00e1ff;
  --cyan2: #6ff3ff;
  --ice: #c8faff;
  --text: #e7f6ff;
  --muted: #96b8c8;
  --violet: #8b5cff;
  --ok: #34ffba;
  --r: 20px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  background: radial-gradient(120% 70% at 50% -10%, #00283a 0%, var(--bg2) 38%, var(--bg) 75%) fixed, var(--bg);
  color: var(--text); font: 16px/1.6 var(--font);
  overflow-x: hidden; -webkit-tap-highlight-color: transparent;
}
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
a { color: inherit; }
img { display: block; }

/* ---------- background ---------- */
.sky { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.grid {
  position: absolute; inset: -20% -10% auto; height: 140%;
  background-image:
    linear-gradient(rgba(0, 225, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 225, 255, .07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 30%, #000 0%, transparent 72%);
          mask-image: radial-gradient(70% 55% at 50% 30%, #000 0%, transparent 72%);
  transform: perspective(600px) rotateX(58deg) translateY(-8%);
  transform-origin: 50% 0;
  animation: drift 14s linear infinite;
}
@keyframes drift { to { background-position: 0 46px, 0 0; } }
.glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.g1 { width: 380px; height: 380px; top: -120px; inset-inline-start: -120px; background: #0090b0; animation: float1 16s ease-in-out infinite; }
.g2 { width: 320px; height: 320px; bottom: -140px; inset-inline-end: -110px; background: #4c2bb8; opacity: .4; animation: float1 19s ease-in-out infinite reverse; }
@keyframes float1 { 50% { transform: translate3d(40px, 50px, 0) scale(1.08); } }
.sparks i {
  position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%;
  background: var(--cyan2); box-shadow: 0 0 8px var(--cyan); opacity: 0;
  animation: rise 11s linear infinite;
}
.sparks i:nth-child(1) { left: 6%;  animation-delay: 0s; }
.sparks i:nth-child(2) { left: 15%; animation-delay: 3.5s; animation-duration: 13s; }
.sparks i:nth-child(3) { left: 24%; animation-delay: 7s; }
.sparks i:nth-child(4) { left: 33%; animation-delay: 1.8s; animation-duration: 15s; }
.sparks i:nth-child(5) { left: 42%; animation-delay: 9s; }
.sparks i:nth-child(6) { left: 51%; animation-delay: 4.6s; animation-duration: 12s; }
.sparks i:nth-child(7) { left: 60%; animation-delay: .9s; }
.sparks i:nth-child(8) { left: 69%; animation-delay: 6.2s; animation-duration: 14s; }
.sparks i:nth-child(9) { left: 78%; animation-delay: 2.7s; }
.sparks i:nth-child(10) { left: 86%; animation-delay: 8.1s; animation-duration: 13s; }
.sparks i:nth-child(11) { left: 93%; animation-delay: 5.3s; }
.sparks i:nth-child(12) { left: 47%; animation-delay: 10s; animation-duration: 16s; background: #b9a2ff; box-shadow: 0 0 8px var(--violet); }
@keyframes rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: .9; }
  80% { opacity: .5; }
  100% { transform: translate3d(14px, -105vh, 0); opacity: 0; }
}

/* ---------- top bar ---------- */
.top {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  max-width: 560px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 18px 0;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; direction: ltr; }
.brand img { border-radius: 8px; box-shadow: 0 0 14px rgba(0, 225, 255, .35); }
.brand span { font-weight: 800; letter-spacing: .14em; font-size: 14px; color: var(--ice); }
.brand b { color: var(--cyan); margin-inline-start: 4px; }
.lang {
  font: 700 12px/1 var(--font); letter-spacing: .08em; color: var(--ice); cursor: pointer;
  background: rgba(0, 225, 255, .08); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px;
}
.lang:hover { border-color: rgba(0, 225, 255, .45); }

/* ---------- layout ---------- */
.wrap { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: 8px 18px 28px; }
.hero { text-align: center; padding-top: 18px; }

/* icon + orbit */
.orbit { position: absolute; left: 50%; top: 32px; width: 270px; height: 270px; margin-left: -135px; pointer-events: none; }
.ring { position: absolute; inset: 0; border-radius: 50%; }
.r1 { border: 1.5px dashed rgba(0, 225, 255, .35); animation: turn 26s linear infinite; }
.r2 { inset: 22px; border: 1px solid rgba(139, 92, 255, .32); box-shadow: inset 0 0 30px rgba(0, 225, 255, .08); animation: turn 40s linear infinite reverse; }
.spin { position: absolute; inset: 0; animation: turn 7s linear infinite; }
.ball {
  position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--cyan2) 35%, #0083a3 80%);
  box-shadow: 0 0 14px var(--cyan), 0 0 30px rgba(0, 225, 255, .55);
}
@keyframes turn { to { transform: rotate(360deg); } }
.icon {
  position: relative; width: 168px; height: 168px; margin: 51px auto 0; border-radius: 34px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(111, 243, 255, .25), 0 0 46px rgba(0, 225, 255, .28);
  animation: bob 6s ease-in-out infinite; will-change: transform;
}
@keyframes bob { 50% { transform: translate3d(0, -9px, 0); } }

.live {
  display: inline-flex; align-items: center; gap: 8px; margin: 44px 0 0; padding: 5px 13px;
  font-size: 13px; font-weight: 700; color: var(--ok);
  background: rgba(52, 255, 186, .08); border: 1px solid rgba(52, 255, 186, .25); border-radius: 999px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 255, 186, .6); animation: ping 2s ease-out infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 9px rgba(52, 255, 186, 0); } }

.title {
  margin: 12px 0 2px; direction: ltr; font-size: clamp(38px, 11vw, 54px); line-height: 1.05;
  font-weight: 900; font-style: italic; letter-spacing: .04em;
  background: linear-gradient(100deg, #e9fbff 0%, #9ff6ff 30%, var(--cyan) 45%, #ffffff 52%, var(--cyan2) 60%, #b9a2ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(0, 225, 255, .25));
  animation: shine 6s ease-in-out infinite;
}
@keyframes shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.lead { margin: 6px auto 0; max-width: 380px; color: var(--muted); font-size: 15px; }

/* chips */
.chips { display: flex; justify-content: center; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
.chips li {
  display: flex; flex-direction: column; align-items: center; min-width: 96px; padding: 9px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
}
.chips .k { font-size: 11.5px; color: var(--muted); }
.chips b { font-size: 15px; color: var(--ice); font-weight: 700; }

/* download button: a rotating conic light behind a solid face (GPU transform only) */
.dl {
  position: relative; display: block; margin: 24px auto 0; max-width: 420px; border-radius: 22px; padding: 2px;
  overflow: hidden; text-decoration: none; isolation: isolate;
  box-shadow: 0 14px 40px rgba(0, 170, 210, .32);
  transition: transform .15s ease;
}
.dl::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 140%; aspect-ratio: 1;
  margin: -70% 0 0 -70%;
  background: conic-gradient(from 0deg, transparent 0 55%, var(--cyan2) 70%, #fff 75%, #b9a2ff 82%, transparent 92%);
  animation: turn 3.2s linear infinite;
}
.dl-face {
  display: flex; align-items: center; justify-content: center; gap: 14px; padding: 17px 20px; border-radius: 20px;
  background: linear-gradient(135deg, #00d6f5 0%, #00a8d6 55%, #0087c0 100%);
  color: #00121b;
}
.dl-ic { width: 30px; height: 30px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translate3d(0, 3px, 0); } }
.dl-txt { display: flex; flex-direction: column; text-align: start; line-height: 1.25; }
.dl-txt b { font-size: 21px; font-weight: 900; letter-spacing: .01em; }
.dl-txt small { font-size: 12px; font-weight: 600; opacity: .72; margin-top: 2px; }
.dl:hover { transform: translateY(-1px); }
.dl:active { transform: scale(.98); }
.dl:focus-visible, .tg:focus-visible, .lang:focus-visible, .sha:focus-visible { outline: 3px solid var(--cyan2); outline-offset: 3px; }
.dl-done { margin: 12px auto 0; font-size: 14px; color: var(--ok); }

.tg {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 20px;
  border-radius: 16px; text-decoration: none; font-weight: 700; font-size: 15px; color: #dff6ff;
  background: rgba(34, 158, 217, .14); border: 1px solid rgba(34, 158, 217, .45);
  transition: background .15s ease, transform .15s ease;
}
.tg svg { width: 22px; height: 22px; fill: #2aabee; }
.tg:hover { background: rgba(34, 158, 217, .24); }
.tg:active { transform: scale(.98); }

/* cards */
.card {
  margin-top: 26px; padding: 18px 18px 8px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line);
}
.card h2 { margin: 0 0 10px; font-size: 17px; color: var(--ice); }
.notes h3 { margin: -4px 0 8px; font-size: 15px; color: var(--cyan2); font-weight: 700; }
.notes ul { margin: 0 0 10px; padding: 0; list-style: none; }
.notes li { position: relative; padding-inline-start: 20px; margin-bottom: 6px; color: #cfe9f4; font-size: 14.5px; }
.notes li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--cyan); transform: rotate(45deg); box-shadow: 0 0 8px var(--cyan); }
.steps ol { margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.n {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font-weight: 800; font-size: 14px; color: var(--cyan2); border: 1.5px solid rgba(0, 225, 255, .5);
  box-shadow: 0 0 12px rgba(0, 225, 255, .25), inset 0 0 10px rgba(0, 225, 255, .12);
}
.steps p { margin: 0; display: flex; flex-direction: column; }
.steps b { font-size: 15px; }
.steps p span { color: var(--muted); font-size: 14px; }
.steps.flash { animation: flash 1.2s ease 2; }
@keyframes flash { 50% { border-color: rgba(52, 255, 186, .7); box-shadow: 0 0 26px rgba(52, 255, 186, .18); } }

/* trust */
.trust { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 16px; background: rgba(52, 255, 186, .05); border: 1px solid rgba(52, 255, 186, .18); }
.trust svg { width: 30px; height: 30px; flex: none; fill: var(--ok); filter: drop-shadow(0 0 8px rgba(52, 255, 186, .35)); }
.trust div { display: flex; flex-direction: column; min-width: 0; }
.trust b { font-size: 14.5px; }
.sha { all: unset; cursor: pointer; font: 12px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--muted); }
.sha:hover { color: var(--ice); }
.sha.copied { color: var(--ok); }

.foot { position: relative; z-index: 1; display: flex; justify-content: center; gap: 16px; padding: 6px 18px max(22px, env(safe-area-inset-bottom)); color: #6f8f9e; font-size: 13px; }
.foot a { text-decoration: none; color: var(--muted); }

/* small phones */
@media (max-width: 360px) {
  .chips li { min-width: 84px; padding: 8px 9px; }
  .dl-txt b { font-size: 19px; }
}
/* motion: respect the system setting, and stop everything while the tab is hidden */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }
.lite .glow, .lite .sparks, .lite .grid { display: none; }
