/* ═══════════════════════════════════════════════════════════════
   community.css — «معرض اليوزرز», the users' gallery (2026-10-25).

   His word: «عايزها تبقى تاب محمسه جدا فالموقع». Nine in ten visits
   are phones, so everything is drawn for 360 px first. What moves is a
   transform or an opacity, played only while on screen; with reduced
   motion everything stands at its finished state.

   Colours: the site's aqua and pink; the podium adds a warm gold for
   the first place only, the one thing on the page that is not aqua.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --cg-gold: #F4C764;
  --cg-gold-rgb: 244, 199, 100;
  --cg-silver: #CFD6DD;
  --cg-bronze: #D9925E;
}

/* ─────────────────────────────────────────────── the hero ── */

.cg-hero { position: relative; padding: 46px 0 34px; overflow: hidden; isolation: isolate; }
@supports (overflow: clip) { .cg-hero { overflow: clip; } }
/* a wall of the gallery's own previews, tilted and moving behind the words */
.cg-wall {
  position: absolute; inset: -60px -10% -40px; z-index: -1; pointer-events: none;
  display: grid; gap: 14px; align-content: center;
  transform: perspective(1100px) rotateX(24deg) rotateZ(-7deg) scale(1.12);
  opacity: .7;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 70%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 70%, transparent);
}
.cg-row { display: flex; gap: 14px; width: max-content; animation: cgSlide 70s linear infinite; }
.cg-row:nth-child(2) { animation-direction: reverse; animation-duration: 86s; }
.cg-row:nth-child(3) { animation-duration: 96s; }
.cg-tile {
  width: 250px; aspect-ratio: 16 / 10; flex: 0 0 auto; border-radius: 14px; overflow: hidden;
  background: var(--bg-200); border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.9);
}
.cg-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes cgSlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cg-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 48% 54% at 50% 42%, rgba(8,7,10,.9), rgba(8,7,10,.62) 58%, transparent 100%),
    radial-gradient(600px 300px at 50% 10%, rgba(47,217,190,.16), transparent 70%),
    linear-gradient(to bottom, rgba(8,7,10,.3), rgba(8,7,10,.42) 55%, rgba(8,7,10,.9) 88%, var(--bg-000));
}
.cg-hero-in { text-align: center; max-width: 760px; margin-inline: auto; }
.cg-new {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; margin-bottom: 18px;
  border-radius: var(--r-pill); border: 1px solid rgba(217,107,162,.45);
  background: linear-gradient(140deg, rgba(217,107,162,.16), rgba(47,217,190,.08));
  color: #F6C9E0; font-size: 13.5px; font-weight: 600;
}
.cg-new i { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 12px var(--ember); animation: cgPulse 1.6s ease-in-out infinite; }
@keyframes cgPulse { 50% { opacity: .35; } }
.cg-hero h1 {
  margin: 0 0 16px; font-size: clamp(32px, 6.4vw, 60px); line-height: 1.18; letter-spacing: -.035em; font-weight: 800;
}
.cg-hero h1 .g {
  background: linear-gradient(100deg, var(--red) 10%, #9BF2E3 45%, var(--ember) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cg-hero .lede { margin-inline: auto; font-size: 17.5px; max-width: 54ch; }
.cg-hero .hero-actions { justify-content: center; margin-bottom: 22px; }
.cg-facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.cg-facts span {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: var(--r-pill);
  border: 1px solid var(--line-lift); background: rgba(17,16,21,.72); color: var(--tx-2); font-size: 13.5px;
}
.cg-facts b { color: var(--tx); font-family: var(--num); font-weight: 700; }
.cg-preview-note {
  position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 50; pointer-events: none;
  padding: 6px 12px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600;
  color: #F5BE79; background: rgba(20,16,10,.92); border: 1px solid rgba(242,163,60,.5);
}

/* ─────────────────────────────────── prizes and the clock ── */

.cg-prize { padding: 30px 0 10px; }
.cg-prize-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.cg-prize-head h2 { margin: 0; font-size: clamp(24px, 3.4vw, 36px); letter-spacing: -.03em; }
.cg-prize-head p { margin: 6px 0 0; color: var(--tx-3); font-size: 15px; }
.cg-clock { display: flex; align-items: center; gap: 12px; }
.cg-ring { width: 64px; height: 64px; flex: 0 0 auto; }
.cg-ring circle { fill: none; stroke-width: 6; }
.cg-ring .bg { stroke: var(--bg-300); }
.cg-ring .fg { stroke: url(#cgRingGrad); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1s linear; filter: drop-shadow(0 0 6px rgba(47,217,190,.6)); }
.cg-digits { display: flex; gap: 6px; }
.cg-digits div { text-align: center; min-width: 46px; padding: 6px 4px; border-radius: 10px; background: var(--bg-100); border: 1px solid var(--line-lift); }
.cg-digits b { display: block; font-family: var(--num); font-size: 20px; line-height: 1.1; color: var(--tx); }
.cg-digits small { font-size: 10.5px; color: var(--tx-3); }

.cg-podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 14px; align-items: end; }
.cg-place {
  position: relative; border-radius: var(--r-big); padding: 22px 16px 18px; text-align: center; overflow: hidden;
  border: 1px solid var(--line-lift); background: linear-gradient(170deg, var(--bg-200), var(--bg-050));
  transform: translateY(18px); opacity: 0; transition: transform .7s var(--spring), opacity .5s var(--ease);
}
.cg-podium.go .cg-place { transform: none; opacity: 1; }
.cg-podium.go .cg-place.p2 { transition-delay: .12s; }
.cg-podium.go .cg-place.p3 { transition-delay: .22s; }
.cg-place.p1 {
  padding-top: 30px; border-color: rgba(var(--cg-gold-rgb), .5);
  background: radial-gradient(380px 200px at 50% 0%, rgba(var(--cg-gold-rgb), .2), transparent 70%), linear-gradient(170deg, var(--bg-200), var(--bg-050));
  box-shadow: 0 24px 60px -30px rgba(var(--cg-gold-rgb), .55);
}
.cg-place .rank { font-size: 13px; font-weight: 700; color: var(--tx-3); }
.cg-cup { width: 54px; height: 54px; margin: 6px auto 8px; display: block; }
.cg-place.p1 .cg-cup { width: 66px; height: 66px; filter: drop-shadow(0 0 16px rgba(var(--cg-gold-rgb), .55)); animation: cgFloat 3.2s ease-in-out infinite; }
@keyframes cgFloat { 50% { transform: translateY(-5px); } }
.cg-place .usd { font-family: var(--num); font-size: clamp(30px, 5vw, 46px); font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.cg-place.p1 .usd { color: var(--cg-gold); }
.cg-place.p2 .usd { color: var(--cg-silver); }
.cg-place.p3 .usd { color: var(--cg-bronze); }
.cg-place .what { margin: 8px 0 12px; font-size: 13.5px; color: var(--tx-2); line-height: 1.6; }
.cg-holder { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px dashed var(--line-lift); font-size: 13.5px; color: var(--tx-3); min-height: 44px; }
.cg-holder.taken { border-style: solid; color: var(--tx); }
.cg-holder .pts { font-family: var(--num); color: var(--red-soft); }

/* ──────────────────────────────────────────── the board ── */

.cg-board { margin-top: 26px; border-radius: var(--r-big); border: 1px solid var(--line); background: var(--bg-050); padding: 8px; }
.cg-board-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 6px; color: var(--tx-3); font-size: 13px; }
.cg-board-head b { color: var(--tx); font-size: 15.5px; }
.cg-run { display: grid; grid-template-columns: 30px 38px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; }
.cg-run + .cg-run { border-top: 1px solid rgba(255,255,255,.04); }
.cg-run.me { background: rgba(47,217,190,.08); border: 1px solid rgba(47,217,190,.3); }
.cg-run .r { font-family: var(--num); font-weight: 700; color: var(--tx-3); text-align: center; }
.cg-run:nth-child(-n+3) .r { color: var(--tx); }
.cg-run .who { min-width: 0; }
.cg-run .who b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-run .bar { height: 6px; border-radius: 6px; background: var(--bg-300); margin-top: 6px; overflow: hidden; }
.cg-run .bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--red-deep), var(--red), #9BF2E3); transition: width 1.1s var(--ease); }
html[dir="rtl"] .cg-run .bar i { background: linear-gradient(270deg, var(--red-deep), var(--red), #9BF2E3); margin-inline-start: auto; }
.cg-run .p { text-align: end; font-family: var(--num); font-weight: 700; font-size: 16px; }
.cg-run .p small { display: block; font-family: var(--ff); font-weight: 500; font-size: 11.5px; color: var(--tx-3); }
.cg-run .ok { color: var(--ok); }
.cg-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: linear-gradient(140deg, var(--red-ink-a), var(--ember)); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; overflow: hidden; }
.cg-av img { width: 100%; height: 100%; object-fit: cover; }
.cg-av.sm { width: 26px; height: 26px; font-size: 12px; }
.cg-empty { text-align: center; color: var(--tx-3); padding: 26px 12px; font-size: 14.5px; }

/* ────────────────────────────────────── creators' stories ── */

.cg-stories { padding: 44px 0 6px; }
.cg-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: none; }
.cg-strip::-webkit-scrollbar { display: none; }
.cg-story-card {
  position: relative; flex: 0 0 132px; aspect-ratio: 9 / 15; border-radius: 16px; overflow: hidden; scroll-snap-align: start; cursor: pointer;
  background: var(--bg-200); border: 1px solid var(--line-lift); padding: 0;
}
.cg-story-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.cg-story-card:hover img { transform: scale(1.05); }
.cg-story-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82), transparent 55%); }
.cg-story-card .who { position: absolute; inset-inline: 8px; bottom: 8px; z-index: 1; text-align: start; }
.cg-story-card .who b { display: block; font-size: 12.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-story-card .who small { font-size: 11px; color: rgba(255,255,255,.7); }
.cg-story-card .ring { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 1; padding: 2px; border-radius: 50%; background: conic-gradient(var(--red), var(--ember), var(--red)); }
.cg-story-card .ring .cg-av { width: 30px; height: 30px; border: 2px solid var(--bg-000); font-size: 12px; }

.cg-viewer { position: fixed; inset: 0; z-index: 90; background: rgba(4,4,6,.96); display: grid; place-items: center; }
.cg-viewer[hidden] { display: none; }
.cg-viewer-in { position: relative; width: min(420px, 100vw); height: min(100dvh, 780px); }
.cg-viewer video { width: 100%; height: 100%; object-fit: contain; background: #000; border-radius: 0; }
@media (min-width: 560px) { .cg-viewer video { border-radius: 18px; } }
.cg-viewer .bars { position: absolute; top: 10px; inset-inline: 10px; display: flex; gap: 4px; z-index: 2; }
.cg-viewer .bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.cg-viewer .bars i b { display: block; height: 100%; width: 0; background: #fff; }
.cg-viewer .top { position: absolute; top: 22px; inset-inline: 12px; z-index: 2; display: flex; align-items: center; gap: 8px; color: #fff; }
.cg-viewer .top b { font-size: 14px; }
.cg-viewer .x { margin-inline-start: auto; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 20px; cursor: pointer; }
.cg-viewer .tap { position: absolute; top: 70px; bottom: 120px; width: 34%; z-index: 1; background: none; border: 0; cursor: pointer; }
.cg-viewer .tap.prev { inset-inline-start: 0; }
.cg-viewer .tap.next { inset-inline-end: 0; }
.cg-viewer .item {
  position: absolute; inset-inline: 12px; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 14px; background: rgba(17,16,21,.86); border: 1px solid var(--line-lift); backdrop-filter: blur(8px);
}
.cg-viewer .item img { width: 64px; height: 42px; object-fit: cover; border-radius: 8px; }
.cg-viewer .item b { font-size: 14px; display: block; }
.cg-viewer .item small { color: var(--tx-3); font-size: 12px; }
.cg-viewer .item .btn { margin-inline-start: auto; }

/* ──────────────────────────────────────────── browsing ── */

.cg-browse { padding: 44px 0 30px; }
.cg-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.cg-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; flex: 1 1 100%; }
.cg-chips::-webkit-scrollbar { display: none; }
.cg-chip {
  flex: 0 0 auto; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-lift); background: var(--bg-100);
  color: var(--tx-2); font-size: 14px; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.cg-chip:hover { color: var(--tx); border-color: var(--tx-4); }
.cg-chip.on { background: rgba(47,217,190,.12); border-color: rgba(47,217,190,.55); color: var(--red-soft); }
.cg-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--bg-100); border: 1px solid var(--line-lift); }
.cg-seg button { padding: 7px 12px; border: 0; border-radius: 9px; background: none; color: var(--tx-3); font-size: 13.5px; cursor: pointer; }
.cg-seg button.on { background: var(--bg-300); color: var(--tx); }
.cg-search { flex: 1 1 200px; min-width: 0; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-lift); background: var(--bg-100); color: var(--tx); font: inherit; font-size: 14.5px; }
.cg-search:focus { outline: 2px solid rgba(47,217,190,.45); outline-offset: 1px; }

.cg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .cg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .cg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cg-card {
  position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-100); color: inherit; text-decoration: none;
  transition: transform .25s var(--spring), border-color .25s, box-shadow .3s;
  animation: cgIn .5s var(--ease) both;
}
@keyframes cgIn { from { opacity: 0; transform: translateY(10px); } }
.cg-card:hover { transform: translateY(-3px); border-color: rgba(47,217,190,.4); box-shadow: 0 18px 40px -22px rgba(47,217,190,.5); }
.cg-card.feat { border-color: rgba(var(--cg-gold-rgb), .45); }
.cg-media { position: relative; aspect-ratio: 16 / 10; background: #0d0c11; overflow: hidden; }
.cg-media img, .cg-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cg-media video { opacity: 0; transition: opacity .3s; }
.cg-media.playing video { opacity: 1; }
/* a LUT: before and after on the same picture, the line where the look starts dragged by a finger */
.cg-ba .after { clip-path: inset(0 0 0 var(--cut, 50%)); }
html[dir="rtl"] .cg-ba .after { clip-path: inset(0 var(--cut, 50%) 0 0); }
.cg-ba .line { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--cut, 50%); width: 2px; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.6); }
.cg-ba .line::after { content: '⇆'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #111; font-size: 13px; display: grid; place-items: center; }
.cg-ba .lbl { position: absolute; bottom: 7px; z-index: 1; font-size: 10.5px; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; }
/* "before" is always on the reading side the line starts from, "after" on the other */
.cg-ba .lbl.b { inset-inline-start: 7px; }
.cg-ba .lbl.a { inset-inline-end: 7px; }
.cg-badges { position: absolute; top: 8px; inset-inline-start: 8px; inset-inline-end: 8px; z-index: 2; display: flex; gap: 5px; align-items: center; }
.cg-kind { padding: 3px 8px; border-radius: 7px; font-size: 11px; font-weight: 600; background: rgba(8,7,10,.72); color: #fff; backdrop-filter: blur(6px); }
.cg-app { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font: 700 10.5px var(--num); color: #fff; }
.cg-app.pr { background: #2A1A4D; color: #D5C5FF; border: 1px solid #6E52C8; }
.cg-app.ae { background: #1B1A4E; color: #C8C4FF; border: 1px solid #5B57D6; }
.cg-feat { margin-inline-start: auto; padding: 3px 8px; border-radius: 7px; font-size: 11px; font-weight: 700; background: rgba(var(--cg-gold-rgb), .9); color: #2a1d00; }
.cg-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cg-body h3 { margin: 0; font-size: 14.5px; line-height: 1.45; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cg-meta { display: flex; align-items: center; gap: 7px; margin-top: auto; font-size: 12.5px; color: var(--tx-3); min-width: 0; }
.cg-meta .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--tx-2); }
.cg-like { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--tx-3); font: inherit; cursor: pointer; padding: 2px 4px; border-radius: 8px; }
.cg-like.on { color: #FF6B9A; }
.cg-like svg { width: 15px; height: 15px; }
.cg-more { display: block; margin: 22px auto 0; }

/* ─────────────────────────────────────── how it works ── */

.cg-how { padding: 54px 0 20px; }
.cg-steps { display: grid; gap: 12px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 860px) { .cg-steps { grid-template-columns: repeat(3, 1fr); } }
.cg-step { position: relative; padding: 20px 18px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--bg-100); }
.cg-step::before { counter-increment: s; content: counter(s); position: absolute; top: 16px; inset-inline-end: 16px; font: 700 40px var(--num); color: rgba(47,217,190,.16); line-height: 1; }
.cg-step b { display: block; font-size: 17px; margin-bottom: 6px; }
.cg-step p { margin: 0; color: var(--tx-2); font-size: 14.5px; }
.cg-rules { margin-top: 18px; display: grid; gap: 10px; }
.cg-rule { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--bg-050); border: 1px solid var(--line); font-size: 14.5px; color: var(--tx-2); }
.cg-rule i { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: rgba(47,217,190,.14); color: var(--red-soft); }
.cg-winners { padding: 44px 0 10px; }
.cg-wins { display: flex; gap: 10px; flex-wrap: wrap; }
.cg-win { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line-lift); background: var(--bg-100); }
.cg-win small { color: var(--tx-3); font-size: 12px; display: block; }
.cg-cta { margin: 40px 0 0; }

/* ──────────────────────────────────────── a creator ── */

.cg-profile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 30px 0 10px; }
.cg-profile .cg-av { width: 84px; height: 84px; font-size: 30px; box-shadow: 0 0 0 3px var(--bg-000), 0 0 0 5px rgba(47,217,190,.55); }
.cg-profile h1 { margin: 0; font-size: clamp(24px, 4vw, 36px); }
.cg-profile .h { color: var(--tx-3); direction: ltr; unicode-bidi: isolate; }
.cg-profile .stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.cg-profile .stats span { padding: 5px 11px; border-radius: var(--r-pill); background: var(--bg-100); border: 1px solid var(--line-lift); font-size: 13px; color: var(--tx-2); }
.cg-profile .stats b { font-family: var(--num); color: var(--tx); }

/* ─────────────────────────────────────── an item's page ── */

.cgi { padding: 22px 0 40px; }
.cgi-crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--tx-3); margin-bottom: 16px; }
.cgi-crumbs a { color: var(--tx-2); }
.cgi-crumbs a:hover { color: var(--red-soft); }
.cgi-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; padding: 12px 16px; margin-bottom: 16px; border-radius: 14px; border: 1px solid rgba(242,163,60,.5); background: rgba(242,163,60,.08); color: #F5BE79; font-size: 14.5px; }
.cgi-status.changes, .cgi-status.rejected, .cgi-status.removed { border-color: rgba(255,120,120,.45); background: rgba(255,120,120,.07); color: #FFB1B1; }
.cgi-status.hidden, .cgi-status.draft { border-color: var(--line-lift); background: var(--bg-100); color: var(--tx-2); }
.cgi-top { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .cgi-top { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 30px; } }
.cgi-stage { position: relative; min-width: 0; }
@media (min-width: 960px) { .cgi-stage { position: sticky; top: 84px; } }
.cgi-skel, .cgi-video, .cgi-ba { aspect-ratio: 16 / 9; border-radius: var(--r-big); overflow: hidden; background: #0d0c11; border: 1px solid var(--line); }
.cgi-skel { background: linear-gradient(100deg, var(--bg-100) 30%, var(--bg-200) 50%, var(--bg-100) 70%) 0 0 / 300% 100%; animation: cgiShine 1.4s linear infinite; }
@keyframes cgiShine { to { background-position: -150% 0; } }
.cgi-video { box-shadow: var(--sink); }
.cgi-video video, .cgi-video img { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.cgi-ba { position: relative; box-shadow: var(--sink); cursor: ew-resize; touch-action: pan-y; }
.cgi-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cgi-ba .lbl { font-size: 12.5px; padding: 4px 10px; bottom: 12px; }
.cgi-ba .lbl.b { inset-inline-start: 12px; }
.cgi-ba .lbl.a { inset-inline-end: 12px; }
.cgi-ba .line::after { width: 34px; height: 34px; font-size: 16px; }
.cgi-pairs { display: flex; gap: 8px; margin-top: 10px; }
.cgi-pairs button { width: 84px; aspect-ratio: 16 / 10; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: none; cursor: pointer; opacity: .65; transition: opacity .2s, border-color .2s; }
.cgi-pairs button.on, .cgi-pairs button:hover { opacity: 1; border-color: var(--red); }
.cgi-pairs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cgi-hint { margin: 10px 2px 0; font-size: 13px; color: var(--tx-3); }

.cgi-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cg-badges.static { position: static; }
.cgi-side h1 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.25; }
.cgi-by { display: inline-flex; align-items: center; gap: 10px; color: inherit; align-self: flex-start; padding-block: 4px; padding-inline: 4px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-lift); background: var(--bg-100); transition: border-color .2s; }
.cgi-by:hover { border-color: rgba(47,217,190,.5); }
.cgi-by b { display: block; font-size: 14px; }
.cgi-by small { display: block; font-size: 12px; color: var(--tx-3); }
.cgi-by.big { padding-block: 6px; padding-inline: 6px 18px; }
.cgi-by.big .cg-av { width: 46px; height: 46px; font-size: 18px; }
.cgi-benefit { margin: 0; font-size: 16.5px; color: var(--tx-2); line-height: 1.8; }

.cgi-get { padding: 16px; border-radius: var(--r-card); border: 1px solid rgba(47,217,190,.35); background: radial-gradient(420px 160px at 50% 0, rgba(47,217,190,.1), transparent 70%), var(--bg-100); }
.cgi-get-h { display: block; font-size: 16px; margin-bottom: 10px; }
.cgi-steps { margin: 0; padding: 0; list-style: none; counter-reset: k; display: grid; gap: 9px; }
.cgi-steps li { position: relative; padding-inline-start: 34px; font-size: 14.5px; color: var(--tx-2); line-height: 1.6; }
.cgi-steps li::before { counter-increment: k; content: counter(k); position: absolute; inset-inline-start: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 12.5px var(--num); background: rgba(47,217,190,.16); color: var(--red-soft); }
.cgi-steps b { color: var(--tx); font-weight: 600; }
.cgi-code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 13.5px; color: var(--tx-3); }
.cgi-copy { display: inline-flex; align-items: center; gap: 10px; padding-block: 6px; padding-inline: 12px 6px; border-radius: 10px; border: 1px dashed rgba(47,217,190,.55); background: rgba(47,217,190,.06); color: var(--tx); cursor: pointer; font: inherit; }
.cgi-copy b { font-family: var(--num); letter-spacing: .06em; font-size: 15px; }
.cgi-copy i { font-style: normal; font-size: 12px; padding: 3px 8px; border-radius: 7px; background: var(--bg-300); color: var(--tx-2); }
.cgi-need { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-lift); font-size: 14px; color: var(--tx-2); }
.cgi-need[hidden] { display: none; }
.cgi-need .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cgi-need.ok > span { color: var(--ok); font-weight: 600; }
.cgi-need small { color: var(--tx-3); font-size: 12.5px; }
.cgi-need small a { color: var(--red-soft); }

.cgi-acts { display: flex; align-items: center; gap: 10px; }
.cg-like.big { margin: 0; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line-lift); background: var(--bg-100); font-size: 14.5px; }
.cg-like.big svg { width: 18px; height: 18px; }
.cg-like.big.on { border-color: rgba(255,107,154,.5); background: rgba(255,107,154,.08); }
.cgi-report { margin-inline-start: auto; border: 0; background: none; color: var(--tx-4); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cgi-report:hover { color: var(--tx-2); }

.cgi-specs { margin: 0; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--bg-050); overflow: hidden; }
.cgi-specs > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 10px 14px; font-size: 14px; }
.cgi-specs > div + div { border-top: 1px solid var(--line); }
.cgi-specs dt { color: var(--tx-3); }
.cgi-specs dd { margin: 0; color: var(--tx); min-width: 0; overflow-wrap: anywhere; }
.cgi-specs dd small { display: block; color: var(--tx-3); font-size: 12px; margin-top: 2px; }
.cgi-sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-inline-end: 7px; border: 1px solid rgba(255,255,255,.3); }

.cgi-explain { margin-top: 46px; display: grid; gap: 22px; align-items: start; grid-template-columns: 1fr; }
.cgi-explain-tx { padding-top: 8px; }
@media (min-width: 860px) { .cgi-explain-tx { position: sticky; top: 96px; padding-top: 40px; } }
@media (min-width: 860px) { .cgi-explain { grid-template-columns: 1fr minmax(0, 380px); gap: 40px; } }
.cgi-explain h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 32px); }
.cgi-explain p { margin: 0 0 16px; color: var(--tx-3); }
.cgi-player { aspect-ratio: 9 / 16; max-height: 640px; border-radius: var(--r-big); overflow: hidden; background: #000; border: 1px solid var(--line-lift); box-shadow: 0 30px 70px -36px rgba(217,107,162,.45); justify-self: center; width: 100%; }
.cgi-player.wide { max-height: none; }
@media (min-width: 860px) { .cgi-explain:has(.cgi-player.wide) { grid-template-columns: 1fr minmax(0, 1.3fr); } }
.cgi-player video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.cgi-more { margin-top: 50px; }
.cgi-more h2 { font-size: clamp(20px, 2.6vw, 26px); margin: 0 0 16px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cgi-more h2 a { font-size: 14px; font-weight: 500; color: var(--red-soft); }
#cgiGone { padding: 60px 12px; }
#cgiGone p { font-size: 17px; margin: 0 0 16px; }

/* a small dialog (the report) */
.cg-dialog { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(4,4,6,.72); backdrop-filter: blur(4px); }
.cg-dialog[hidden] { display: none; }
.cg-dialog-in { width: min(440px, 100%); padding: 20px; border-radius: var(--r-big); border: 1px solid var(--line-lift); background: var(--bg-100); display: grid; gap: 10px; box-shadow: var(--sink); }
.cg-dialog-in h3 { margin: 0 0 4px; font-size: 18px; }
.cg-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; font-size: 14.5px; }
.cg-opt:has(input:checked) { border-color: rgba(47,217,190,.55); background: rgba(47,217,190,.06); }
.cg-opt input { margin-top: 4px; accent-color: var(--red); }
.cg-dialog-in textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-lift); background: var(--bg-050); color: var(--tx); font: inherit; font-size: 14px; resize: vertical; }
.cg-dialog-btns { display: flex; gap: 8px; }
.cg-dialog-msg { margin: 0; font-size: 14px; color: var(--ok); }

/* ──────────────────────────────────────── the upload page ── */

.cgu { padding: 26px 0 70px; max-width: 900px; }
.cgu-head { margin-bottom: 20px; }
.cgu-back { display: inline-block; font-size: 13.5px; color: var(--tx-3); margin-bottom: 10px; }
.cgu-back:hover { color: var(--red-soft); }
.cgu-head h1 { margin: 0 0 6px; font-size: clamp(28px, 4.4vw, 42px); }
.cgu-head p { margin: 0; color: var(--tx-3); font-size: 16px; max-width: 60ch; }
.cgu-loading { display: flex; gap: 8px; justify-content: center; padding: 60px 0; }
.cgu-loading[hidden] { display: none; }
.cgu-loading i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: cguDot 1s ease-in-out infinite; }
.cgu-loading i:nth-child(2) { animation-delay: .15s; } .cgu-loading i:nth-child(3) { animation-delay: .3s; }
@keyframes cguDot { 50% { transform: translateY(-8px); opacity: .4; } }

.cgu-card { padding: 22px; border-radius: var(--r-big); border: 1px solid var(--line-lift); background: linear-gradient(170deg, var(--bg-100), var(--bg-050)); }
.cgu-card[hidden] { display: none; }
.cgu-card-h { margin-bottom: 18px; }
.cgu-card-h b { display: block; font-size: 19px; }
.cgu-card-h small { color: var(--tx-3); font-size: 14px; }
.cgu-gate { text-align: center; padding: 40px 22px; }
.cgu-gate-ico { font-size: 44px; margin-bottom: 8px; }
.cgu-gate h2 { margin: 0 0 8px; font-size: 24px; }
.cgu-gate p { margin: 0 auto 18px; color: var(--tx-2); max-width: 46ch; }
.cgu-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.cgu-actions.center { justify-content: center; }
.cgu-msg { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; border: 1px solid; }
.cgu-msg[hidden] { display: none; }
.cgu-msg.err { color: #FFB1B1; border-color: rgba(255,120,120,.45); background: rgba(255,120,120,.07); }
.cgu-msg.ok { color: #9CEBAA; border-color: rgba(74,222,110,.45); background: rgba(74,222,110,.07); }
.cgu-msg.warn { color: #F5BE79; border-color: rgba(242,163,60,.45); background: rgba(242,163,60,.07); }
.cgu-msg a { color: inherit; text-decoration: underline; }
.cgu-note { margin: 12px 0 0; font-size: 13px; color: var(--tx-3); }

/* fields */
.cgu-grid2 { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cgu-grid2 { grid-template-columns: 1fr 1fr; } }
.cgu-f { display: block; margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.cgu-f > span:first-child, .cgu-f legend { display: block; font-size: 14px; font-weight: 600; color: var(--tx-2); margin-bottom: 8px; padding: 0; }
.cgu-f em { color: var(--ember); font-style: normal; }
.cgu-f small, .cgu-count { display: block; margin-top: 6px; font-size: 12.5px; color: var(--tx-3); }
.cgu input:not([type=checkbox]):not([type=radio]):not([type=file]), .cgu textarea, .cgu select {
  width: 100%; padding: 12px 14px; border-radius: var(--r-ctl); border: 1px solid var(--line-lift); background: var(--bg-000);
  color: var(--tx); font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.cgu textarea { resize: vertical; min-height: 92px; line-height: 1.7; }
.cgu input:focus, .cgu textarea:focus, .cgu select:focus { outline: none; border-color: rgba(47,217,190,.6); box-shadow: 0 0 0 3px rgba(47,217,190,.15); }
.cgu input::placeholder, .cgu textarea::placeholder { color: var(--tx-4); }
.cgu-at { display: flex; align-items: stretch; direction: ltr; }
.cgu-at i { display: grid; place-items: center; padding: 0 12px; font-style: normal; color: var(--tx-3); border: 1px solid var(--line-lift); border-inline-end: 0; border-radius: var(--r-ctl) 0 0 var(--r-ctl); background: var(--bg-200); }
.cgu-at input { border-radius: 0 var(--r-ctl) var(--r-ctl) 0 !important; }

.cgu-avatar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cgu-avatar-row small { display: block; color: var(--tx-3); font-size: 13px; }
.cgu-avatar { position: relative; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.cgu-avatar .cg-av { width: 72px; height: 72px; font-size: 26px; box-shadow: 0 0 0 3px var(--bg-000), 0 0 0 5px rgba(47,217,190,.45); }
.cgu-avatar i { position: absolute; bottom: -2px; inset-inline-end: -2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; background: var(--red); color: #04201b; border: 2px solid var(--bg-000); }

.cgu-prizes { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cgu-prizes { grid-template-columns: repeat(3, 1fr); } }
.cgu-prize { position: relative; display: block; padding: 14px; border-radius: 14px; border: 1px solid var(--line-lift); background: var(--bg-000); cursor: pointer; transition: border-color .2s, background .2s; }
.cgu-prize input { position: absolute; opacity: 0; pointer-events: none; }
.cgu-prize b { display: block; font-size: 14.5px; }
.cgu-prize small { display: block; margin-top: 4px; color: var(--tx-3); font-size: 12.5px; }
.cgu-prize:has(input:checked) { border-color: rgba(var(--cg-gold-rgb), .7); background: rgba(var(--cg-gold-rgb), .07); }
.cgu-prize:has(input:checked)::after { content: '✓'; position: absolute; top: 10px; inset-inline-end: 12px; color: var(--cg-gold); font-weight: 700; }
.cgu-prize:has(input:focus-visible) { outline: 2px solid var(--red-lift); outline-offset: 2px; }
.cgu-prize-note { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12.5px; color: var(--tx-3); }
.cgu-agree, .cgu-check { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px solid var(--line-lift); background: var(--bg-000); font-size: 14px; color: var(--tx-2); line-height: 1.75; cursor: pointer; }
.cgu-check { padding: 12px 14px; margin-bottom: 14px; }
.cgu-agree input, .cgu-check input { margin-top: 5px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--red); }
.cgu-agree:has(input:checked) { border-color: rgba(47,217,190,.5); }
.cgu-rules { margin-top: 10px; font-size: 14px; color: var(--tx-2); }
.cgu-rules summary { cursor: pointer; color: var(--red-soft); padding: 6px 0; }
.cgu-rules ol { margin: 8px 0 0; padding-inline-start: 22px; display: grid; gap: 7px; line-height: 1.75; }

/* my uploads */
.cgu-me { padding: 18px; border-radius: var(--r-big); border: 1px solid var(--line-lift); background: radial-gradient(500px 180px at 85% 0, rgba(47,217,190,.1), transparent 70%), var(--bg-100); display: grid; gap: 12px; }
.cgu-me-who { display: flex; align-items: center; gap: 12px; }
.cgu-me-who .cg-av { width: 52px; height: 52px; font-size: 20px; }
.cgu-me-who b { display: block; font-size: 17px; }
.cgu-me-who small { display: block; color: var(--tx-3); font-size: 13px; }
.cgu-me-who .btn { margin-inline-start: auto; }
.cgu-me-prize { font-size: 14px; color: var(--tx-3); }
.cgu-me-prize b { color: var(--cg-gold); }
.cgu-me-month { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cgu-me-month span { min-width: 74px; padding: 8px 12px; border-radius: 12px; background: var(--bg-000); border: 1px solid var(--line-lift); text-align: center; }
.cgu-me-month span b { display: block; font-size: 20px; line-height: 1.2; }
.cgu-me-month span small { font-size: 11.5px; color: var(--tx-3); }
.cgu-me-month em { font-style: normal; font-size: 13.5px; color: var(--tx-2); }
.cgu-me-month.empty { font-size: 14px; color: var(--tx-3); padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line-lift); }
.cgu-award { font-size: 14px; color: var(--cg-gold); }
.cgu-me-board { font-size: 13.5px; color: var(--red-soft); justify-self: start; }
.cgu-new {
  display: flex; align-items: center; gap: 16px; width: 100%; margin: 16px 0 0; padding: 20px; border-radius: var(--r-big); cursor: pointer; text-align: start;
  border: 2px dashed rgba(47,217,190,.45); background: rgba(47,217,190,.05); color: var(--tx); font: inherit; transition: background .2s, border-color .2s, transform .2s var(--spring);
}
.cgu-new:hover:not(:disabled) { background: rgba(47,217,190,.1); border-color: var(--red); transform: translateY(-2px); }
.cgu-new:disabled { opacity: .45; cursor: not-allowed; }
.cgu-new .plus { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 16px; display: grid; place-items: center; font-size: 30px; font-weight: 300; background: linear-gradient(140deg, var(--red-ink-a), var(--red-ink-b)); color: #fff; box-shadow: var(--glow); }
.cgu-new b { display: block; font-size: 18px; }
.cgu-new small { display: block; color: var(--tx-3); font-size: 13.5px; margin-top: 2px; }
.cgu-h2 { margin: 30px 0 12px; font-size: 20px; }
.cgu-h2[hidden] { display: none; }
.cgu-list { display: grid; gap: 10px; }
.cgu-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-100); }
.cgu-thumb { width: 92px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--bg-300); display: grid; place-items: center; color: var(--tx-3); }
.cgu-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cgu-thumb i svg { width: 30px; height: 30px; }
.cgu-row-tx { min-width: 0; display: grid; gap: 4px; }
.cgu-row-tx b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cgu-row-tx b i { color: var(--tx-4); font-weight: 400; }
.cgu-row-tx > span { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--tx-3); }
.cgu-chip { font-style: normal; padding: 2px 9px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 600; border: 1px solid var(--line-lift); color: var(--tx-2); }
.cgu-chip.pending { color: #F5BE79; border-color: rgba(242,163,60,.5); }
.cgu-chip.changes, .cgu-chip.rejected { color: #FFB1B1; border-color: rgba(255,120,120,.5); }
.cgu-chip.approved { color: var(--ok); border-color: rgba(74,222,110,.5); }
.cgu-why { color: #FFB1B1; font-size: 12.5px; }
.cgu-stats { color: var(--tx-2); }
.cgu-row-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.cgu-del { border: 0; background: none; color: var(--tx-4); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cgu-del:hover { color: #FFB1B1; }

/* the steps */
.cgu-rail { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.cgu-rail button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 0; border-radius: 12px; background: none; color: var(--tx-3); font: inherit; font-size: 12.5px; cursor: pointer; }
.cgu-rail button:disabled { cursor: default; opacity: .55; }
.cgu-rail i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font: 700 13px var(--num); border: 1.5px solid var(--line-lift); background: var(--bg-100); color: var(--tx-3); position: relative; }
.cgu-rail li.ok i { border-color: rgba(47,217,190,.6); background: rgba(47,217,190,.14); color: var(--red-soft); }
.cgu-rail li.on button { color: var(--tx); background: var(--bg-100); }
.cgu-rail li.on i { border-color: var(--red); background: var(--red); color: #04201b; box-shadow: 0 0 0 4px rgba(47,217,190,.18); }
.cgu-rail li.busy i::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--ember); animation: cguSpin 1s linear infinite; }
.cgu-reason { margin-bottom: 14px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(255,120,120,.45); background: rgba(255,120,120,.07); color: #FFB1B1; font-size: 14.5px; }
.cgu-reason[hidden] { display: none; }
.cgu-step h2 { margin: 0 0 6px; font-size: 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cgu-lead { margin: 0 0 18px; color: var(--tx-2); font-size: 15px; line-height: 1.8; }
.cgu-lead b { color: var(--tx); font-weight: 600; }
.cgu-kindtag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill); background: var(--bg-300); color: var(--tx-2); }
.cgu-kindtag.must { background: rgba(217,107,162,.16); color: #F6C9E0; border: 1px solid rgba(217,107,162,.45); }
.cgu-nav { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.cgu-nav #cguNext { margin-inline-start: auto; min-width: 120px; }
.cgu-nav #cguNext[hidden] { display: none; }
.cgu-saved { font-size: 13px; color: var(--tx-3); }

.cgu-kinds { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cgu-kinds { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .cgu-kinds { grid-template-columns: repeat(3, 1fr); } }
.cgu-kind { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 16px; border-radius: 18px; text-align: start; cursor: pointer; font: inherit; color: var(--tx); border: 1px solid var(--line-lift); background: var(--bg-000); transition: transform .2s var(--spring), border-color .2s, background .2s; }
.cgu-kind:hover:not(:disabled), .cgu-kind.on { transform: translateY(-3px); border-color: rgba(47,217,190,.6); background: rgba(47,217,190,.05); }
.cgu-kind:disabled:not(.on) { opacity: .5; }
.cgu-kind .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-200); color: var(--red-soft); margin-bottom: 4px; }
.cgu-kind .ico svg { width: 30px; height: 30px; }
.cgu-kind b { font-size: 16px; }
.cgu-kind small { color: var(--tx-3); font-size: 13px; line-height: 1.6; }
.cgu-kind .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.cgu-kind .meta em { font-style: normal; font-size: 11.5px; color: var(--tx-4); }

.cgu-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 16px; border-radius: 18px; border: 2px dashed var(--line-lift); background: var(--bg-000); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.cgu-drop:hover, .cgu-drop.over, .cgu-drop:focus-visible { border-color: var(--red); background: rgba(47,217,190,.05); outline: none; }
.cgu-drop-ico { font-style: normal; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: rgba(47,217,190,.12); color: var(--red-soft); }
.cgu-drop b { font-size: 15.5px; }
.cgu-drop small { color: var(--tx-3); font-size: 12.5px; }
.cgu-up { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; align-items: center; padding: 16px; border-radius: 16px; border: 1px solid rgba(47,217,190,.35); background: var(--bg-000); }
.cgu-up-tx { min-width: 0; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.cgu-up-tx b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cgu-up-tx span { color: var(--tx-3); white-space: nowrap; font-size: 13px; }
.cgu-bar { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: var(--bg-300); overflow: hidden; }
.cgu-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--red-deep), var(--red), #9BF2E3); transition: width .25s linear; }
html[dir="rtl"] .cgu-bar i { margin-inline-start: auto; background: linear-gradient(270deg, var(--red-deep), var(--red), #9BF2E3); }
.cgu-up .cgu-del { grid-row: 1; grid-column: 2; }
.cgu-wait, .cgu-ok { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--line-lift); background: var(--bg-000); }
.cgu-wait b, .cgu-ok b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.cgu-wait small, .cgu-ok small { display: block; color: var(--tx-3); font-size: 13px; }
.cgu-ok { border-color: rgba(74,222,110,.4); }
.cgu-ok > i { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: rgba(74,222,110,.16); color: var(--ok); font-weight: 700; }
.cgu-ok .btn { margin-inline-start: auto; }
.cgu-spin { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; border: 3px solid var(--bg-300); border-top-color: var(--red); animation: cguSpin .9s linear infinite; }
@keyframes cguSpin { to { transform: rotate(360deg); } }

.cgu-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cg-chip-r { cursor: pointer; }
.cg-chip-r input { position: absolute; opacity: 0; pointer-events: none; }
.cg-chip-r span { display: inline-block; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-lift); background: var(--bg-000); color: var(--tx-2); font-size: 14px; transition: background .2s, border-color .2s, color .2s; }
.cg-chip-r input:checked + span { background: rgba(47,217,190,.12); border-color: rgba(47,217,190,.6); color: var(--red-soft); }
.cg-chip-r input:focus-visible + span { outline: 2px solid var(--red-lift); outline-offset: 2px; }
.cgu-radios { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cgu-radios { grid-template-columns: 1fr 1fr; } }
.cgu-radios label { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-lift); background: var(--bg-000); cursor: pointer; }
.cgu-radios label:has(input:checked) { border-color: rgba(47,217,190,.6); background: rgba(47,217,190,.05); }
.cgu-radios input { margin-top: 5px; accent-color: var(--red); }
.cgu-radios b { display: block; font-size: 14.5px; }
.cgu-radios small { display: block; color: var(--tx-3); font-size: 12.5px; }

.cgu-pv { margin-bottom: 16px; }
.cgu-step .cgi-video, .cgu-step .cgi-ba { max-width: 640px; }
.cgu-say { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
@media (min-width: 760px) { .cgu-say { grid-template-columns: repeat(4, 1fr); } }
.cgu-say div { padding: 14px 12px; border-radius: 14px; background: var(--bg-000); border: 1px solid var(--line-lift); text-align: center; }
.cgu-say i { display: block; font-style: normal; font-size: 24px; margin-bottom: 4px; }
.cgu-say b { font-size: 13.5px; font-weight: 600; }
.cgu-ex { max-width: 320px; margin: 0 auto 16px; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--line-lift); }
.cgu-ex video { width: 100%; max-height: 520px; display: block; }
.cgu-rec-opts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.cgu-slot:has(.cgu-rec-opts) { display: flex; flex-direction: column-reverse; gap: 12px; }
.cgu-slot:has(.cgu-rec-opts) .cgu-msg { order: 3; }
.cgu-slot:has(.cgu-rec-opts) .cgu-drop { padding: 18px 16px; }

.cgu-send { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; margin-top: 10px; }
@media (min-width: 720px) { .cgu-send { grid-template-columns: 280px 1fr; } }
.cgu-send-card { pointer-events: none; }
.cgu-send-card .cg-like { display: none; }
.cgu-send-card small { display: block; text-align: center; margin-top: 8px; color: var(--tx-3); font-size: 12.5px; }
.cgu-checks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.cgu-checks li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(242,163,60,.4); background: rgba(242,163,60,.05); font-size: 14.5px; }
.cgu-checks li.ok { border-color: var(--line); background: var(--bg-000); }
.cgu-checks i { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; background: rgba(242,163,60,.18); color: var(--amber); }
.cgu-checks li.ok i { background: rgba(74,222,110,.16); color: var(--ok); }
.cgu-link { margin-inline-start: auto; border: 0; background: none; color: var(--red-soft); font: inherit; font-size: 13.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.cgu-done { position: relative; overflow: hidden; text-align: center; padding: 50px 22px; }
.cgu-done h2 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 36px); }
.cgu-done p { margin: 0 auto; color: var(--tx-2); max-width: 52ch; line-height: 1.8; }
.cgu-burst { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 0, rgba(47,217,190,.22), transparent 55%), radial-gradient(circle at 15% 100%, rgba(217,107,162,.16), transparent 45%); }

/* recording the explainer */
.cgu-rec { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; padding: 12px; background: rgba(4,4,6,.94); }
.cgu-rec[hidden] { display: none; }
.cgu-rec-in { width: min(760px, 100%); display: grid; gap: 12px; }
.cgu-rec-top { display: flex; align-items: center; justify-content: space-between; color: var(--tx); }
.cgu-rec-top b { font-size: 17px; }
.cgu-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-200); color: var(--tx); font-size: 22px; cursor: pointer; }
.cgu-rec-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--line-lift); }
.cgu-rec-stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cgu-rec-stage video[hidden] { display: none; }
#cguRecLive { transform: scaleX(-1); }
#cguRecPlay { object-fit: contain; }
.cgu-prompt { position: absolute; top: 12px; inset-inline: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); color: #fff; font-size: 15px; text-align: center; line-height: 1.6; }
.cgu-prompt[hidden] { display: none; }
.cgu-prompt b { color: var(--red-soft); }
.cgu-cd { position: absolute; inset: 0; display: grid; place-items: center; font: 800 110px var(--num); color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,.6); }
.cgu-cd[hidden] { display: none; }
.cgu-rec-time { position: absolute; bottom: 12px; inset-inline-start: 12px; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(0,0,0,.6); color: #fff; font: 600 14px var(--num); direction: ltr; }
.cgu-rec-time[hidden] { display: none; }
.cgu-rec-time i { width: 10px; height: 10px; border-radius: 50%; background: #ff3b4e; animation: cgPulse 1s ease-in-out infinite; }
.cgu-rec-msg { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(242,163,60,.1); border: 1px solid rgba(242,163,60,.45); color: #F5BE79; font-size: 14px; }
.cgu-rec-msg[hidden] { display: none; }
.cgu-rec-btns { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 76px; }
.cgu-recbtn { width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; background: none; display: grid; place-items: center; cursor: pointer; padding: 0; }
.cgu-recbtn i { width: 54px; height: 54px; border-radius: 50%; background: #ff3b4e; transition: border-radius .2s, width .2s, height .2s; }
.cgu-recbtn.stop i { width: 28px; height: 28px; border-radius: 6px; }
.cgu-recbtn:disabled { opacity: .45; cursor: default; }
.cgu-recbtn[hidden] { display: none; }

/* ─────────────────────────────── the owner's desk (admin-community) ── */

.ga .cards { margin-bottom: 8px; }
.ga-card { border: 1px solid var(--line-lift); border-radius: var(--r-big); background: var(--bg-100); padding: 18px; margin-bottom: 18px; transition: opacity .3s, transform .3s; }
.ga-card.done { opacity: 0; transform: translateY(-8px); }
.ga-card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ga-card-h h3 { margin: 6px 0 0; font-size: 20px; }
.ga-card-h .cg-kind { background: var(--bg-300); }
.ga-flags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ga-flag { padding: 6px 12px; border-radius: 10px; font-size: 13.5px; }
.ga-flag.bad { background: rgba(255,90,90,.1); border: 1px solid rgba(255,90,90,.5); color: #FFB1B1; }
.ga-flag.warn { background: rgba(242,163,60,.08); border: 1px solid rgba(242,163,60,.45); color: #F5BE79; }
.ga-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .ga-grid { grid-template-columns: 1.3fr 1fr; } }
.ga-col { min-width: 0; display: grid; gap: 10px; align-content: start; }
.ga-label { font-size: 12.5px; font-weight: 700; color: var(--tx-3); }
.ga-benefit { margin: 0; font-size: 15px; color: var(--tx-2); line-height: 1.8; }
.ga-pairs { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ga-none { display: grid; place-items: center; color: var(--tx-3); font-size: 14px; }
.ga-ex { border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line-lift); max-height: 520px; }
.ga-ex video { width: 100%; max-height: 520px; display: block; }
.ga-who { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--bg-050); display: grid; gap: 10px; }
.ga-who-top { display: flex; gap: 10px; align-items: center; }
.ga-who-rows { display: grid; gap: 6px; font-size: 13.5px; color: var(--tx-2); }
.ga-who-rows a { color: var(--red-soft); }
.ga-who-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ga-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ga-danger { color: #FFB1B1 !important; border-color: rgba(255,120,120,.45) !important; }
.ga-small { font-size: 12.5px; color: var(--tx-3); }
.ga-bad { color: #FFB1B1; }
.ga-rows { display: grid; gap: 8px; }
.ga-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-050); }
.ga-row:not(:has(.cgu-thumb)) { grid-template-columns: 1fr auto; }
.ga-row .cgu-thumb { width: 78px; }
.ga-row-tx { min-width: 0; display: grid; gap: 3px; }
.ga-row-tx b { font-size: 14.5px; }
.ga-row-tx span { font-size: 12.5px; color: var(--tx-3); }
.ga-row-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.ga-state { margin: 0 0 12px; color: var(--tx-2); }
.ga-awards { display: grid; gap: 8px; margin: 14px 0; }
.ga-award { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(var(--cg-gold-rgb), .4); background: rgba(var(--cg-gold-rgb), .05); font-size: 14px; }
.ga-board { margin-top: 14px; }
.ga-board th, .ga-board td { padding: 9px 8px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ga-board th { font-size: 12.5px; color: var(--tx-3); font-weight: 700; }
.ga-board a { color: var(--red-soft); }
.ga-bar { height: 8px; border-radius: 8px; background: var(--bg-300); overflow: hidden; margin-top: 6px; }
.ga-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red-deep), var(--red)); }
html[dir="rtl"] .ga-bar i { margin-inline-start: auto; }
.ga-presets { display: flex; flex-direction: column; gap: 6px; }
.ga-presets .cg-chip { text-align: start; border-radius: 10px; white-space: normal; line-height: 1.6; }
.ga-sys { margin-top: 24px; }

/* ───────────────────────────────────────── phones ── */

@media (max-width: 640px) {
  .cg-hero { padding-top: 30px; }
  .cg-tile { width: 170px; }
  .cg-podium { grid-template-columns: 1fr 1.08fr 1fr; gap: 8px; }
  .cg-place { padding: 16px 8px 12px; border-radius: 16px; }
  .cg-place.p1 { padding-top: 20px; }
  .cg-cup { width: 40px; height: 40px; }
  .cg-place.p1 .cg-cup { width: 50px; height: 50px; }
  .cg-place .what { font-size: 11.5px; margin: 6px 0 8px; }
  .cg-holder { font-size: 11.5px; padding: 6px; min-height: 38px; }
  .cg-holder .cg-av.sm { display: none; }
  .cg-prize-head { flex-direction: column; align-items: stretch; }
  .cg-clock { justify-content: space-between; }
  .cg-digits div { min-width: 40px; }
  .cg-run { grid-template-columns: 24px 32px 1fr auto; gap: 8px; padding: 8px 6px; }
  .cg-av { width: 32px; height: 32px; }
  .cg-body { padding: 8px 9px 10px; }
  .cg-body h3 { font-size: 13.5px; }
  .cg-tools .cg-seg { flex: 1 1 auto; }
  .cg-hero .hero-actions .btn { flex: 1 1 100%; }
  .cgi { padding-top: 14px; }
  .cgi-skel, .cgi-video, .cgi-ba { border-radius: 16px; }
  .cgi-specs > div { grid-template-columns: 96px 1fr; }
  .cgi-player { max-height: 78vh; }
  .cgu-card { padding: 16px; }
  .cgu-rail { gap: 2px; }
  .cgu-rail button { font-size: 10.5px; padding: 8px 0; }
  .cgu-rail i { width: 26px; height: 26px; font-size: 12px; }
  .cgu-row { grid-template-columns: 72px 1fr; }
  .cgu-thumb { width: 72px; }
  .cgu-row-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .cgu-new { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .cg-row, .cg-new i, .cg-place.p1 .cg-cup { animation: none; }
  .cg-place { transform: none; opacity: 1; transition: none; }
  .cg-card { animation: none; }
}

/* ═══════════════════════════════════════ «قريبًا» and how it works, played (2026-10-26) ══
   Before the gallery opens there is nothing to browse: the page explains itself instead. Five scenes drawn
   here, one at a time, each played from its start whenever it comes up (.play is put back on). Only
   transforms and opacities move. */

.cg-soonpill {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: var(--r-pill);
  border: 1px solid rgba(var(--red-rgb), .35); background: rgba(var(--red-rgb), .07); color: var(--red-soft); font-size: 14px; font-weight: 600;
}
.cg-soonpill i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); animation: cgPulse 1.6s ease-in-out infinite; }
/* the wall before there is anything on it: what the gallery will hold, as colour */
.cg-tile.ghost { position: relative; }
.cg-tile.ghost span {
  position: absolute; inset-inline-start: 12px; bottom: 10px; padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(8,7,10,.55); color: rgba(255,255,255,.82); font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.cg-tile.gh1 { background: linear-gradient(135deg, #0F4C5C 0%, #1C7C7D 40%, #F28C38 100%); }
.cg-tile.gh2 { background: radial-gradient(80% 90% at 30% 30%, #FF9A62, transparent 60%), linear-gradient(160deg, #3B1F4A, #12121A); }
.cg-tile.gh3 { background: linear-gradient(120deg, #00B140 0 46%, #0B0A0E 46% 54%, #2B2D42 54%); }
.cg-tile.gh4 { background: radial-gradient(60% 70% at 70% 40%, rgba(255,214,140,.9), transparent 70%), linear-gradient(180deg, #1A2238, #090B12); }
.cg-tile.gh5 { background: linear-gradient(135deg, #2D0B59, #7B2CBF 45%, #00E5FF 100%); }
.cg-tile.gh6 { background: linear-gradient(160deg, #E9D8A6 0%, #CA6702 55%, #3D1F00 100%); }

.cgx-sec { padding: 30px 0 10px; }
.cgx-sec.in-how { padding: 0 0 26px; }
.cgx-title { margin: 0 0 18px; font-size: clamp(22px, 3.2vw, 36px); letter-spacing: -.03em; line-height: 1.25; }
.cgx { position: relative; }
.cgx-stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-big); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(110% 90% at 88% 0%, rgba(var(--red-rgb), .14), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(var(--ember-rgb), .16), transparent 60%),
    var(--bg-100);
  border: 1px solid var(--line-lift); box-shadow: var(--sink);
}
.cgx-scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s linear .45s; }
.cgx[data-step="1"] .s1, .cgx[data-step="2"] .s2, .cgx[data-step="3"] .s3,
.cgx[data-step="4"] .s4, .cgx[data-step="5"] .s5 { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.cgx-cap { position: absolute; inset-inline: 0; top: 7%; display: grid; gap: 6px; padding: 0 22px; text-align: center; }
.cgx-cap b { font-size: clamp(19px, 2.9vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.cgx-cap span { color: var(--tx-2); font-size: clamp(12.5px, 1.45vw, 16px); }
.cgx-art { position: absolute; inset: 31% 7% 7%; }

/* 1 · the upload */
.cgx-drop {
  position: absolute; inset: 4% 22%; border-radius: 18px; border: 1.5px dashed rgba(255,255,255,.2);
  background: rgba(255,255,255,.025); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 14px;
}
.cgx-drop .up { width: clamp(26px, 3vw, 36px); height: clamp(26px, 3vw, 36px); color: var(--red); }
.cgx-file {
  display: flex; align-items: center; gap: 12px; width: min(100%, 330px); padding: 10px 12px; border-radius: 14px;
  background: var(--bg-200); border: 1px solid var(--line-lift); box-shadow: 0 14px 30px -18px rgba(0,0,0,.9);
}
.cgx-file > i {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-style: normal;
  font-family: var(--num); font-size: 12px; font-weight: 700; color: #08070A; background: linear-gradient(135deg, var(--red), var(--ember));
}
.cgx-file div { display: grid; min-width: 0; flex: 1; }
.cgx-file b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cgx-file small { color: var(--tx-3); font-size: 12px; }
.cgx-file em {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 14px;
  background: var(--ok); color: #08070A; transform: scale(0);
}
.cgx-prog { width: min(100%, 330px); height: 6px; border-radius: 6px; background: var(--bg-300); overflow: hidden; }
.cgx-prog i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--ember)); transform: scaleX(0); transform-origin: 0 50%; }
[dir="rtl"] .cgx-prog i { transform-origin: 100% 50%; }
.cgx-chip {
  position: absolute; padding: 6px 13px; border-radius: var(--r-pill); font-size: clamp(11.5px, 1.2vw, 13.5px); font-weight: 600;
  background: var(--bg-200); border: 1px solid var(--line-lift); color: var(--tx-2); white-space: nowrap;
}
.cgx-chip.k1 { inset-inline-start: 2%; top: 6%; color: var(--red-soft); border-color: rgba(var(--red-rgb), .35); }
.cgx-chip.k2 { inset-inline-end: 3%; top: 2%; color: #F6C9E0; border-color: rgba(var(--ember-rgb), .4); }
.cgx-chip.k3 { inset-inline-start: 6%; top: 46%; }
.cgx-chip.k4 { inset-inline-end: 1%; top: 52%; color: #9BF0B4; border-color: rgba(74,222,110,.35); }
.cgx-chip.k5 { inset-inline-start: 12%; bottom: 2%; color: #FFD9A0; border-color: rgba(242,163,60,.35); }

/* 2 · the explainer */
.cgx-phone {
  position: absolute; inset-inline-start: 20%; top: 0; height: 100%; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden;
  background: radial-gradient(70% 40% at 72% 16%, rgba(255,214,150,.32), transparent 70%), linear-gradient(170deg, #2C3656, #171C2D 62%, #10131D);
  border: 3px solid #3A3A4C; box-shadow: 0 24px 50px -24px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.04);
}
.cgx-phone .rec { position: absolute; top: 7%; inset-inline: 8%; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #fff; }
.cgx-phone .rec i { width: 8px; height: 8px; border-radius: 50%; background: #FF3B4A; box-shadow: 0 0 10px #FF3B4A; animation: cgPulse 1s ease-in-out infinite; }
.cgx-phone .rec .t { margin-inline-start: auto; font-family: var(--num); opacity: .85; }
.cgx-phone .face {
  position: absolute; inset-inline: 0; bottom: 0; height: 74%;
  background: radial-gradient(circle at 50% 30%, #E8B48F 0 17%, transparent 17.5%),
              radial-gradient(ellipse 52% 42% at 50% 102%, #1FA48F 0 70%, #12907C 98%, transparent 100%);
}
.cgx-phone .face span { position: absolute; left: 31%; right: 31%; top: 8%; height: 14%; border-radius: 50% 50% 30% 30% / 70% 70% 30% 30%; background: #2B1B14; clip-path: inset(0 0 45% 0); }
.cgx-phone .wave {
  position: absolute; inset-inline: 24%; bottom: 5%; height: 8%; display: flex; align-items: center; gap: 5%; padding: 0 7%;
  border-radius: 999px; background: rgba(8,7,10,.55);
}
.cgx-phone .wave i { flex: 1; height: 34%; border-radius: 2px; background: rgba(255,255,255,.9); transform-origin: 50% 50%; }
.cgx-say {
  position: absolute; inset-inline-end: 12%; top: 16%; width: 40%; padding: 14px 16px; border-radius: 18px; border-start-start-radius: 4px;
  background: var(--bg-200); border: 1px solid var(--line-lift); font-size: clamp(13px, 1.6vw, 17px); line-height: 1.55; min-height: 3.6em;
  box-shadow: 0 18px 36px -22px rgba(0,0,0,.9);
}
.cgx-say i { display: inline-block; width: 2px; height: 1.1em; vertical-align: -.2em; margin-inline-start: 2px; background: var(--red); animation: cgxBlink .9s steps(1) infinite; }
@keyframes cgxBlink { 50% { opacity: 0; } }

/* 3 · the review */
.cgx-card {
  position: absolute; left: 50%; top: 2%; width: min(46%, 380px); transform: translateX(-50%); border-radius: 16px; overflow: visible;
  background: var(--bg-200); border: 1px solid var(--line-lift); box-shadow: 0 26px 50px -26px rgba(0,0,0,.95);
}
.cgx-card .pv {
  position: relative; aspect-ratio: 16 / 9; border-radius: 15px 15px 0 0; overflow: hidden;
  background: linear-gradient(135deg, #0F4C5C, #1C7C7D 45%, #F28C38);
}
.cgx-card .pv::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #3A3F47, #6B7079 45%, #A7A9AC); clip-path: inset(0 50% 0 0); }
.cgx-card .ba { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.8); }
.cgx-card .meta { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.cgx-card .av, .cgx-panel .av {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: #08070A;
  background: linear-gradient(135deg, var(--red), var(--ember));
}
.cgx-card .meta div { display: grid; }
.cgx-card .meta b { font-size: 14.5px; }
.cgx-card .meta small { color: var(--tx-3); font-size: 12px; }
.cgx-stamp {
  position: absolute; inset-inline-end: -8%; top: 18%; padding: 8px 16px; border-radius: 12px; border: 3px solid var(--ok);
  color: var(--ok); background: rgba(8,7,10,.78); font-size: clamp(16px, 2.2vw, 24px); font-weight: 800; white-space: nowrap;
  transform: rotate(-12deg) scale(0); box-shadow: 0 0 0 4px rgba(74,222,110,.12);
}

/* 4 · inside the plugin */
.cgx-panel {
  position: absolute; left: 50%; top: 0; height: 100%; width: min(64%, 600px); transform: translateX(-50%); display: flex;
  border-radius: 14px; background: var(--bg-050); border: 1px solid var(--line-lift); box-shadow: 0 26px 50px -26px rgba(0,0,0,.95);
}
.cgx-panel .rail { flex: 0 0 auto; width: 44px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0; border-inline-end: 1px solid var(--line); }
.cgx-panel .rail i { width: 22px; height: 22px; border-radius: 7px; background: var(--bg-300); }
.cgx-panel .rail i.on { background: linear-gradient(135deg, var(--red), var(--ember)); box-shadow: 0 0 14px rgba(var(--red-rgb), .5); }
.cgx-panel .main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 10px 12px 12px; gap: 10px; }
.cgx-panel .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.cgx-panel .pts { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(var(--red-rgb), .1); color: var(--red-soft); font-size: 12px; }
.cgx-panel .pts b { font-family: var(--num); font-size: 14px; color: var(--tx); min-width: 2ch; text-align: center; }
.cgx-panel .grid { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; min-height: 0; }
.cgx-panel .g { border-radius: 10px; background: var(--bg-200); position: relative; overflow: hidden; }
.cgx-panel .g1 { background: linear-gradient(135deg, #2D0B59, #7B2CBF 55%, #00E5FF); }
.cgx-panel .g2 { background: linear-gradient(120deg, #00B140 0 50%, #1B1D2A 50%); }
.cgx-panel .g3 { background: radial-gradient(60% 70% at 70% 40%, rgba(255,214,140,.9), transparent 70%), linear-gradient(180deg, #1A2238, #090B12); }
.cgx-panel .g4 { background: linear-gradient(160deg, #E9D8A6, #CA6702 55%, #3D1F00); }
.cgx-panel .g5 { background: linear-gradient(135deg, #3A3F47, #A7A9AC); }
.cgx-panel .g.mine {
  overflow: visible; background: linear-gradient(135deg, #0F4C5C, #1C7C7D 45%, #F28C38); box-shadow: 0 0 0 2px var(--red), 0 0 24px rgba(var(--red-rgb), .45);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.cgx-panel .g.mine .av { width: 26px; height: 26px; font-size: 13px; }
.cgx-panel .g.mine em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); background: var(--red); color: #08070A; white-space: nowrap; max-width: 94%; overflow: hidden; text-overflow: ellipsis; }
.cgx-cursor {
  position: absolute; width: 22px; height: 22px; left: 56%; top: 74%; z-index: 3; pointer-events: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 9.5-6.6 1.4L9.8 20z' fill='%23fff' stroke='%2308070A' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E");
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.6));
}
.cgx-pop {
  position: absolute; z-index: 2; font-family: var(--num); font-weight: 800; font-size: clamp(16px, 2.1vw, 22px); opacity: 0; pointer-events: none;
  text-shadow: 0 4px 14px rgba(0,0,0,.6);
}
/* drawn from the creator's own card: they rise above it */
.cgx-pop.p1 { left: 40%; top: -4%; color: var(--red-soft); }
.cgx-pop.p2 { left: 70%; top: 8%; color: #F6C9E0; }
.cgx-pop.p3 { left: 12%; top: 12%; color: var(--red-soft); }
.cgx-pop.p4 { left: 58%; top: -16%; color: var(--red-soft); }

/* 5 · the prizes */
.cgx-pod {
  position: absolute; left: 50%; bottom: 0; width: min(56%, 460px); height: 100%; transform: translateX(-50%);
  display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; direction: ltr;
}
.cgx-pod .b {
  position: relative; border-radius: 14px 14px 6px 6px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 10px;
  transform-origin: 50% 100%; overflow: hidden;
}
.cgx-pod .b b { font-family: var(--num); font-size: clamp(18px, 2.6vw, 30px); font-weight: 800; color: #08070A; }
.cgx-pod .b span { position: absolute; bottom: 8px; font-family: var(--num); font-size: clamp(26px, 4vw, 48px); font-weight: 800; color: rgba(8,7,10,.22); }
.cgx-pod .b1 { height: 82%; background: linear-gradient(180deg, #FFE39A, var(--cg-gold) 55%, #B9832B); box-shadow: 0 0 40px rgba(var(--cg-gold-rgb), .35); }
.cgx-pod .b2 { height: 62%; background: linear-gradient(180deg, #F1F4F7, var(--cg-silver) 55%, #8E979F); }
.cgx-pod .b3 { height: 48%; background: linear-gradient(180deg, #F0B184, var(--cg-bronze) 55%, #8C4F27); }
.cgx-pod .b1::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%); background-size: 250% 100%; background-position: 150% 0; }
.cgx-conf { position: absolute; inset: -40% 0 0; pointer-events: none; overflow: hidden; }
.cgx-conf i { position: absolute; top: -6%; width: 8px; height: 12px; border-radius: 2px; opacity: 0; }
.cgx-conf i:nth-child(1) { left: 22%; background: var(--red); }
.cgx-conf i:nth-child(2) { left: 31%; background: var(--ember); width: 6px; }
.cgx-conf i:nth-child(3) { left: 40%; background: var(--cg-gold); }
.cgx-conf i:nth-child(4) { left: 48%; background: var(--red-soft); height: 8px; }
.cgx-conf i:nth-child(5) { left: 55%; background: var(--ember); }
.cgx-conf i:nth-child(6) { left: 62%; background: var(--cg-gold); width: 6px; }
.cgx-conf i:nth-child(7) { left: 70%; background: var(--red); height: 9px; }
.cgx-conf i:nth-child(8) { left: 77%; background: #fff; width: 5px; }
.cgx-conf i:nth-child(9) { left: 35%; background: var(--cg-gold); height: 7px; }
.cgx-conf i:nth-child(10) { left: 66%; background: var(--ember); }

/* the steps under it: a bar that fills while its scene plays */
.cgx-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.cgx-steps button {
  display: grid; gap: 7px; padding: 8px 4px; border: 0; background: none; color: var(--tx-3); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: center;
}
.cgx-steps button i { display: block; height: 4px; border-radius: 4px; background: var(--bg-300); overflow: hidden; }
.cgx-steps button b { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--ember)); transform: scaleX(0); transform-origin: 0 50%; }
[dir="rtl"] .cgx-steps button b { transform-origin: 100% 50%; }
.cgx-steps button.done b { transform: scaleX(1); }
.cgx-steps button.on { color: var(--tx); }
.cgx-steps button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 8px; }
.cgx-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.cgx-cta p { margin: 0; color: var(--tx-3); font-size: 14.5px; }

/* each scene played from its start whenever it comes up */
.cgx.play[data-step="1"] .cgx-file { animation: cgxDrop .6s var(--spring) .2s both; }
.cgx.play[data-step="1"] .cgx-prog i { animation: cgxFill 1.5s var(--ease) .8s both; }
.cgx.play[data-step="1"] .cgx-file em { animation: cgxPopIn .45s var(--spring) 2.35s both; }
.cgx.play[data-step="1"] .cgx-chip { animation: cgxChip .55s var(--ease) both, cgFloat 3.2s ease-in-out 1s infinite; }
.cgx.play[data-step="1"] .cgx-chip.k2 { animation-delay: .12s, 1.2s; }
.cgx.play[data-step="1"] .cgx-chip.k3 { animation-delay: .24s, 1.4s; }
.cgx.play[data-step="1"] .cgx-chip.k4 { animation-delay: .36s, 1.1s; }
.cgx.play[data-step="1"] .cgx-chip.k5 { animation-delay: .48s, 1.3s; }
.cgx.play[data-step="2"] .cgx-phone { animation: cgxRise .6s var(--ease) both; }
.cgx.play[data-step="2"] .cgx-say { animation: cgxRise .6s var(--ease) .25s both; }
.cgx.play[data-step="2"] .wave i { animation: cgxWave .8s ease-in-out infinite; }
.cgx.play[data-step="2"] .wave i:nth-child(2n) { animation-duration: .65s; }
.cgx.play[data-step="2"] .wave i:nth-child(3n) { animation-duration: 1s; animation-delay: .1s; }
.cgx.play[data-step="2"] .wave i:nth-child(5n) { animation-duration: .55s; animation-delay: .2s; }
.cgx.play[data-step="3"] .cgx-card { animation: cgxRiseC .6s var(--ease) both, cgxThump .35s ease-out 1.25s; }
.cgx.play[data-step="3"] .cgx-card .ba { animation: cgxWipe 2.2s ease-in-out .3s both; }
.cgx.play[data-step="3"] .cgx-card .pv::before { animation: cgxReveal 2.2s ease-in-out .3s both; }
.cgx.play[data-step="3"] .cgx-stamp { animation: cgxStamp .5s cubic-bezier(.2,1.6,.4,1) 1.1s both; }
.cgx.play[data-step="4"] .cgx-panel { animation: cgxRiseC .6s var(--ease) both; }
.cgx.play[data-step="4"] .cgx-cursor { animation: cgxCursor 1.6s var(--ease) .3s both; }
.cgx.play[data-step="4"] .g.mine em { animation: cgxClick .3s ease-out 1.5s; }
.cgx.play[data-step="4"] .cgx-pop.p1 { animation: cgxFloatUp 1.3s var(--ease) 1.7s both; }
.cgx.play[data-step="4"] .cgx-pop.p2 { animation: cgxFloatUp 1.3s var(--ease) 2.1s both; }
.cgx.play[data-step="4"] .cgx-pop.p3 { animation: cgxFloatUp 1.3s var(--ease) 2.5s both; }
.cgx.play[data-step="4"] .cgx-pop.p4 { animation: cgxFloatUp 1.3s var(--ease) 2.9s both; }
.cgx.play[data-step="5"] .cgx-pod .b3 { animation: cgxGrow .7s var(--spring) .15s both; }
.cgx.play[data-step="5"] .cgx-pod .b2 { animation: cgxGrow .7s var(--spring) .35s both; }
.cgx.play[data-step="5"] .cgx-pod .b1 { animation: cgxGrow .8s var(--spring) .55s both; }
.cgx.play[data-step="5"] .cgx-pod .b1::after { animation: cgiShine 1.4s ease-in-out 1.4s both; }
.cgx.play[data-step="5"] .cgx-conf i { animation: cgxConf 2.4s linear 1.1s both; }
.cgx.play[data-step="5"] .cgx-conf i:nth-child(2n) { animation-duration: 2.8s; animation-delay: 1.3s; }
.cgx.play[data-step="5"] .cgx-conf i:nth-child(3n) { animation-duration: 2.1s; animation-delay: 1.5s; }
.cgx.play .cgx-steps button.on b { animation: cgxBar var(--cgx-dur, 4.6s) linear both; }

@keyframes cgxDrop { from { opacity: 0; transform: translateY(-46px) scale(.96); } }
@keyframes cgxFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cgxPopIn { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes cgxChip { from { opacity: 0; transform: translateY(10px) scale(.9); } }
@keyframes cgxRise { from { opacity: 0; transform: translateY(18px); } }
@keyframes cgxRiseC { from { opacity: 0; transform: translate(-50%, 18px); } to { transform: translate(-50%, 0); } }
@keyframes cgxThump { 40% { transform: translate(-50%, 0) scale(.985); } }
@keyframes cgxWave { 0%, 100% { transform: scaleY(.6); } 50% { transform: scaleY(2.6); } }
@keyframes cgxWipe { from { left: 0%; } 60% { left: 100%; } to { left: 50%; } }
@keyframes cgxReveal { from { clip-path: inset(0 100% 0 0); } 60% { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 50% 0 0); } }
@keyframes cgxStamp { from { opacity: 0; transform: rotate(-12deg) scale(2.4); } to { opacity: 1; transform: rotate(-12deg) scale(1); } }
@keyframes cgxCursor { from { opacity: 0; transform: translate(70px, 130px); } 15% { opacity: 1; } 70%, 100% { opacity: 1; transform: translate(0, 0); } }
@keyframes cgxClick { 50% { transform: scale(.88); box-shadow: 0 0 0 8px rgba(var(--red-rgb), .25); } }
@keyframes cgxFloatUp { from { opacity: 0; transform: translateY(12px) scale(.8); } 20% { opacity: 1; transform: translateY(0) scale(1.05); } to { opacity: 0; transform: translateY(-46px) scale(1); } }
@keyframes cgxGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes cgxConf { from { opacity: 1; transform: translateY(0) rotate(0); } to { opacity: 0; transform: translateY(320px) rotate(540deg); } }
@keyframes cgxBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 700px) {
  .cgx-stage { aspect-ratio: 4 / 5; }
  .cgx-cap { top: 5%; }
  .cgx-art { inset: 31% 5% 5%; }
  .cgx-drop { inset: 16% 4% 18%; }
  .cgx-chip.k1 { top: 0; inset-inline-start: 0; }
  .cgx-chip.k2 { top: 2%; inset-inline-end: 0; }
  .cgx-chip.k3 { top: auto; bottom: 6%; inset-inline-start: 0; }
  .cgx-chip.k4 { top: auto; bottom: 0; inset-inline-end: 0; }
  .cgx-chip.k5 { display: none; }
  .cgx-phone { inset-inline-start: 6%; height: 74%; }
  .cgx-say { inset-inline-end: 4%; top: auto; bottom: 0; width: 70%; }
  .cgx-card { width: 84%; }
  .cgx-stamp { inset-inline-end: -2%; }
  .cgx-panel { width: 100%; height: 92%; }
  .cgx-pod { width: 88%; height: 88%; }
  .cgx-steps button { font-size: 11.5px; padding: 6px 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .cgx-scene, .cgx-scene * { animation: none !important; transition: none !important; }
  .cgx-file em { transform: none; }
  .cgx-stamp { transform: rotate(-12deg); }
  .cgx-prog i { transform: scaleX(1); }
  .cgx-pop { opacity: 1; }
  .cgx-steps button.on b { transform: scaleX(1); }
}

/* ── the owner's desk: the launch and the hand on the race (2026-10-26) ── */
.ga-launch {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 18px; padding: 16px 18px;
  border-radius: var(--r-big); border: 1px solid var(--line-lift); background: var(--bg-100);
}
.ga-launch.soon { border-color: rgba(var(--red-rgb), .4); background: linear-gradient(140deg, rgba(var(--red-rgb), .08), rgba(var(--ember-rgb), .05)); }
.ga-launch.open { border-color: rgba(74,222,110,.35); }
.ga-launch-tx { display: grid; gap: 4px; min-width: 0; flex: 1 1 320px; }
.ga-launch-tx b { font-size: 17px; }
.ga-launch-tx span { color: var(--tx-2); font-size: 14px; line-height: 1.7; }
.ga-launch-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.ga-sigs { min-width: 150px; }
.ga-sig { display: inline-block; margin: 2px 0 2px 4px; padding: 3px 9px; border-radius: 8px; font-size: 12px; color: var(--tx-3); border: 1px solid var(--line-lift); }
.ga-sig.bad { color: #F5BE79; border-color: rgba(242,163,60,.45); background: rgba(242,163,60,.07); }
.ga-tag { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 6px; font-size: 12px; color: var(--red-soft); background: rgba(var(--red-rgb), .08); }
.ga-tag.bad { color: #FFB1B1; background: rgba(255,90,90,.1); }
.ga-board tr.ga-off td { opacity: .62; }
.ga-board tr.ga-off td:last-child { opacity: 1; }
.ga-more { position: relative; }
.ga-more summary { list-style: none; cursor: pointer; }
.ga-more summary::-webkit-details-marker { display: none; }
.ga-more > div {
  position: absolute; z-index: 5; inset-inline-end: 0; top: calc(100% + 6px); min-width: 210px; display: grid; gap: 2px; padding: 6px;
  border-radius: 12px; border: 1px solid var(--line-lift); background: var(--bg-200); box-shadow: 0 18px 40px -16px rgba(0,0,0,.9);
}
.ga-more > div button { text-align: start; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--tx); font: inherit; font-size: 13.5px; cursor: pointer; }
.ga-more > div button:hover, .ga-more > div button:focus-visible { background: var(--bg-300); }
.ga-more > div button.ga-bad { color: #FFB1B1; }
