/* Trading contest (contest.js): pop-up ad, home banner, contest page, join window. Dark + gold, like the rest of the site. */
.ct-overlay { position: fixed; inset: 0; z-index: 2147482000; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.78); }
.ct-overlay.show { display: flex; }
.ct-overlay.full { align-items: stretch; padding: 0; background: #0b0e11; overflow-y: auto; }
.ct-btn { display: block; width: 100%; border: 0; border-radius: 12px; padding: 13px; font-weight: 800; font-size: .95rem; cursor: pointer; font-family: inherit; }
.ct-btn.gold { background: #f0b90b; color: #1e2329; }
.ct-btn.ghost { background: transparent; color: #b7bdc6; border: 1px solid rgba(255,255,255,.12); margin-top: 8px; }
.ct-btn:disabled { opacity: .6; }

/* the ad itself */
.ct-hero { position: relative; overflow: hidden; text-align: center; color: #eaecef; border-radius: 20px; padding: 22px 16px 18px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(240,185,11,.28), rgba(240,185,11,0) 60%), #12161c; border: 1px solid rgba(240,185,11,.5); }
.ct-hero-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; color: #f0b90b; background: rgba(240,185,11,.12);
  border: 1px solid rgba(240,185,11,.4); border-radius: 20px; padding: 4px 12px; margin-bottom: 10px; }
.ct-hero-lbl { font-size: .82rem; color: #b7bdc6; }
.ct-hero-big { font-size: 2.6rem; font-weight: 900; line-height: 1.15; color: #f0b90b; direction: ltr; letter-spacing: .5px; text-shadow: 0 0 24px rgba(240,185,11,.35); }
.ct-hero-row { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: .86rem; font-weight: 700; margin: 6px 0 10px; }
.ct-hero-row i { width: 5px; height: 5px; border-radius: 50%; background: #f0b90b; }
.ct-hero-tag { font-size: .8rem; line-height: 1.8; color: #b7bdc6; margin: 0 0 12px; }
.ct-when { font-size: .74rem; color: #848e9c; margin-bottom: 6px; }
.ct-count { display: flex; gap: 6px; justify-content: center; }
.ct-count > div { width: 58px; background: #0b0e11; border-radius: 10px; padding: 6px 0; border: 1px solid rgba(255,255,255,.06); }
.ct-count b { display: block; font-size: 1.2rem; color: #f0b90b; font-variant-numeric: tabular-nums; }
.ct-count small { font-size: .66rem; color: #848e9c; }

/* pop-up */
.ct-pop { position: relative; width: 100%; max-width: 380px; }
.ct-pop .ct-hero { padding-top: 30px; }
.ct-x { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 1; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #eaecef; cursor: pointer; }
.ct-pop-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ct-pop-btns .ct-btn.ghost { margin-top: 0; }

/* home banner */
.ct-strip { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; cursor: pointer; margin: 0 0 12px; padding: 12px 14px; border-radius: 16px;
  color: #eaecef; font-family: inherit; background: linear-gradient(100deg, rgba(240,185,11,.18), rgba(240,185,11,.04)), #12161c; border: 1px solid rgba(240,185,11,.45); }
.ct-strip-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(240,185,11,.15); color: #f0b90b; font-size: 1.2rem; }
.ct-strip-txt { flex: 1; min-width: 0; }
.ct-strip-txt small { display: block; font-size: .68rem; color: #f0b90b; font-weight: 800; }
.ct-strip-txt b { display: block; font-size: .98rem; }
.ct-strip-txt em { display: block; font-style: normal; font-size: .72rem; color: #b7bdc6; }
.ct-strip-go { flex: none; font-size: .78rem; font-weight: 800; color: #1e2329; background: #f0b90b; border-radius: 10px; padding: 8px 12px; }

/* page */
.ct-page { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 14px calc(24px + env(safe-area-inset-bottom)); color: #eaecef; }
.ct-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; background: #0b0e11; margin: 0 -14px 12px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.ct-head b { flex: 1; font-size: 1.02rem; }
.ct-back { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #eaecef; cursor: pointer; }
html[dir="ltr"] .ct-back i { transform: scaleX(-1); }
.ct-card { background: #161a1e; border-radius: 16px; padding: 14px; margin-top: 12px; }
.ct-card h4 { margin: 0 0 6px; font-size: .95rem; color: #f0b90b; }
.ct-card p { margin: 0 0 10px; font-size: .84rem; line-height: 1.8; color: #b7bdc6; }
.ct-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ct-card li { display: flex; align-items: center; gap: 10px; font-size: .84rem; }
.ct-card li i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(14,203,129,.12); color: #0ecb81; flex: none; }
.ct-prizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.ct-prizes div { background: #161a1e; border-radius: 10px; padding: 8px 2px; text-align: center; }
.ct-prizes span { display: block; font-size: .66rem; color: #848e9c; }
.ct-prizes b { font-size: .74rem; color: #f0b90b; direction: ltr; display: block; }
.ct-count-people { text-align: center; color: #848e9c; font-size: .78rem; margin: 12px 0; }
.ct-page-foot { position: sticky; bottom: 0; background: #0b0e11; padding: 10px 0 4px; }
.ct-joined { text-align: center; color: #0ecb81; font-weight: 800; margin-bottom: 8px; }

/* join window */
.ct-modal { width: 100%; max-width: 400px; max-height: 92vh; overflow-y: auto; background: #161a1e; border: 1px solid rgba(240,185,11,.4); border-radius: 18px; padding: 18px 16px; color: #eaecef; }
.ct-modal h3 { margin: 0 0 8px; font-size: 1.02rem; color: #f0b90b; }
.ct-modal p { margin: 0 0 8px; font-size: .86rem; line-height: 1.8; color: #d2d6dc; }
.ct-agree-reg { color: #b7bdc6 !important; }
.ct-more { border: 0; background: none; color: #f0b90b; font-weight: 700; font-family: inherit; font-size: .84rem; cursor: pointer; padding: 4px 0; }
.ct-terms { background: #0b0e11; border-radius: 12px; padding: 12px; margin: 6px 0 10px; font-size: .8rem; line-height: 1.9; color: #b7bdc6; max-height: 260px; overflow-y: auto; }
.ct-accept { display: flex; align-items: center; gap: 8px; font-size: .86rem; margin: 10px 0 4px; cursor: pointer; }
.ct-accept input { width: 18px; height: 18px; accent-color: #f0b90b; }
.ct-err { display: block; min-height: 1.2em; color: #f6465d; font-size: .76rem; margin-bottom: 6px; }
