/* CryptoCoinProp Competitions - list, detail and live leaderboard.
 *
 * Built in the language of the redesigned app pages (Rewards, Rules): layout and
 * colours live inline in the templates. This sheet carries what inline styles
 * cannot: keyframes, hover states (which must beat the inline base style, hence
 * !important), the two-column split, the podium, leaderboard rows turning into
 * cards on phones and 44px touch targets. Motion runs even when the OS asks for
 * reduced motion, like every other page.
 */
body { background: var(--nv-f6f6fa); -webkit-font-smoothing: antialiased; }

.ncp { line-height: normal; }
.ncp * { box-sizing: border-box; }
.ncp a { color: #DD3D4F; text-decoration: none; }
.ncp a:hover { color: var(--nv-b4202f); }
.ncp ::-webkit-scrollbar { height: 6px; width: 6px; }
.ncp ::-webkit-scrollbar-thumb { background: var(--nv-dcdce6); border-radius: 9px; }
.ncp [hidden] { display: none !important; }
.ncp .ncp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes novaRise { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: translateY(0) } }
@keyframes ncpIn { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }

/* -- hover / focus ---------------------------------------------------------------- */
.ncp .ncp-h-dark:hover { background: #DD3D4F !important; transform: translateY(-2px) !important; color: #fff !important; }
.ncp .ncp-h-dark:disabled { opacity: .6; cursor: default !important; transform: none !important; }
.ncp .ncp-h-ghost:hover { border-color: var(--nv-f3c4ca) !important; background: var(--nv-fff5f6) !important; color: var(--nv-b4202f) !important; }
.ncp .ncp-h-white:hover { transform: translateY(-2px) !important; color: var(--nv-b4202f) !important; }
.ncp .ncp-h-glass:hover { background: rgba(255,255,255,.2) !important; border-color: rgba(255,255,255,.42) !important; color: #fff !important; }
.ncp .ncp-h-stat:hover { transform: translateY(-3px) !important; box-shadow: 0 22px 38px -26px rgba(24,20,80,.34) !important; border-color: var(--nv-f3c4ca) !important; }
.ncp .ncp-h-lift:hover { transform: translateY(-4px) !important; box-shadow: 0 26px 44px -28px rgba(24,20,80,.36) !important; border-color: var(--nv-f3c4ca) !important; }
.ncp .ncp-h-card:hover { transform: translateY(-5px) !important; box-shadow: 0 34px 56px -34px rgba(24,20,80,.45) !important; border-color: var(--nv-f3c4ca) !important; color: var(--nv-0e0f1f-text) !important; }
.ncp .ncp-h-card:hover .ncp-card-cta { color: var(--nv-b4202f) !important; }
.ncp .ncp-h-row:hover { background: var(--nv-fbfafd) !important; }
.ncp .ncp-back:hover { color: #fff !important; }
.ncp .ncp-tab:not(.is-on):hover { background: var(--nv-fff5f6) !important; color: var(--nv-b4202f) !important; }
.ncp .ncp-link { color: #DD3D4F; }
.ncp button:focus-visible, .ncp a:focus-visible, .ncp input:focus-visible { outline: 2px solid #DD3D4F; outline-offset: 2px; }
.ncp #ncp-hero a:focus-visible { outline-color: #fff; }

/* -- join panel: account choices ---------------------------------------------------- */
.ncp .ncp-acct:not(.ncp-acct-off):hover { border-color: var(--nv-f3c4ca) !important; background: var(--nv-fff5f6) !important; }
.ncp .ncp-acct:has(input:checked) { border-color: #DD3D4F !important; background: var(--nv-fff5f6) !important; }

/* -- layout: leaderboard beside the join / entry column on wide screens ------------- */
.ncp .ncp-split { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1180px) {
  .ncp .ncp-split { grid-template-columns: minmax(0, 1fr) 380px; }
  .ncp .ncp-split > .ncp-side { order: 2; position: sticky; top: 84px; }
  .ncp .ncp-split > .ncp-board { order: 1; }
}

/* -- medals and podium --------------------------------------------------------------- */
.ncp .ncp-medal-1 { background: #E0A21B !important; color: #fff !important; }
.ncp .ncp-medal-2 { background: var(--nv-9a9cb4) !important; color: #fff !important; }
.ncp .ncp-medal-3 { background: #B8703F !important; color: #fff !important; }
.ncp .ncp-pod-1 { order: 2; }
.ncp .ncp-pod-2 { order: 1; }
.ncp .ncp-pod-3 { order: 3; }
.ncp .ncp-pod-step { background: linear-gradient(180deg, #DD3D4F, #B4202F); }
.ncp .ncp-pod-1 .ncp-pod-step { height: 74px; font-size: 24px; background: linear-gradient(180deg, #E0A21B, #B77F0C); }
.ncp .ncp-pod-2 .ncp-pod-step { height: 54px; font-size: 20px; background: linear-gradient(180deg, var(--nv-9a9cb4), var(--nv-c4c5d2)); }
.ncp .ncp-pod-3 .ncp-pod-step { height: 42px; font-size: 18px; background: linear-gradient(180deg, #B8703F, #8F5129); }
.ncp .ncp-pod-1 .ncp-pod-avatar { width: 60px !important; height: 60px !important; font-size: 18px !important; background: #E0A21B !important; }
.ncp #ncp-podium { border-bottom: 1px solid var(--nv-eeeef4); }

/* -- leaderboard rows ------------------------------------------------------------------ */
.ncp .ncp-row[data-me] { background: var(--nv-fff5f6); box-shadow: inset 3px 0 0 #DD3D4F; }
.ncp .ncp-row[data-me]:hover { background: var(--nv-fff5f6) !important; }
.ncp .ncp-row.ncp-row-new { animation: ncpIn .5s cubic-bezier(.2,.7,.2,1) both; }
.ncp .ncp-row { will-change: auto; }

/* -- description prose ---------------------------------------------------------------- */
.ncp .ncp-prose { font-size: 15px; line-height: 1.7; color: var(--nv-1c1d2e-text); }
.ncp .ncp-prose h2 { margin: 22px 0 8px; font-size: 17px; font-weight: 800; color: var(--nv-0e0f1f-text); }
.ncp .ncp-prose h3 { margin: 18px 0 6px; font-size: 15.5px; font-weight: 800; color: var(--nv-0e0f1f-text); }
.ncp .ncp-prose h2:first-child, .ncp .ncp-prose h3:first-child { margin-top: 0; }
.ncp .ncp-prose p { margin: 0 0 12px; }
.ncp .ncp-prose ul { margin: 0 0 12px; padding-left: 20px; }
.ncp .ncp-prose li { margin: 4px 0; }
.ncp .ncp-prose strong { color: var(--nv-0e0f1f-text); font-weight: 800; }

@media (max-width: 480px) {
  .ncp .ncp-main { padding: 22px 16px 56px !important; }
}

/* -- tablets: the leaderboard table keeps its columns but tightens ------------------- */
@media (min-width: 768px) and (max-width: 900px) {
  .ncp .ncp-row, .ncp .ncp-thead { grid-template-columns: 58px minmax(0,1fr) 90px 112px 58px 108px !important; gap: 10px !important; padding-left: 16px !important; padding-right: 16px !important; }
  .ncp .ncp-crow, .ncp .ncp-cthead { gap: 10px !important; padding-left: 16px !important; padding-right: 16px !important; }
}

/* -- phones (below 768px) ------------------------------------------------------------- *
 * Leaderboard rows become cards, the countdown shrinks to fit and every control a     *
 * finger can hit grows to 44px. Rules override inline styles (!important).            */
@media (max-width: 767.98px) {
  .ncp .ncp-wrap { white-space: normal !important; }
  .ncp .ncp-head-cta { flex: 1 1 100%; height: 48px !important; }
  .ncp .ncp-hero-cta { flex: 1 1 100%; height: 48px !important; }
  .ncp .ncp-back { min-height: 44px !important; }
  .ncp .ncp-link { min-height: 44px !important; }

  .ncp #ncp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .ncp #ncp-stats > div { padding: 14px !important; border-radius: 16px !important; }
  .ncp #ncp-stats > div > span { white-space: normal !important; font-size: 10.5px !important; letter-spacing: .09em !important; }
  .ncp #ncp-stats > div > div:nth-child(2) { font-size: 19px !important; }

  .ncp .ncp-clock { flex: 1 1 100% !important; }
  .ncp [data-countdown-box] { gap: 6px !important; }
  .ncp [data-countdown-box] > div { flex: 1 1 0; min-width: 0 !important; padding: 9px 4px 7px !important; }
  .ncp [data-cd] { font-size: 22px !important; }

  .ncp #ncp-podium { gap: 8px !important; padding: 18px 12px 4px !important; }
  .ncp .ncp-pod-avatar { width: 42px !important; height: 42px !important; font-size: 13px !important; border-radius: 13px !important; }
  .ncp .ncp-pod-1 .ncp-pod-avatar { width: 48px !important; height: 48px !important; font-size: 15px !important; }
  .ncp .ncp-pod [data-p="name"] { font-size: 12.5px !important; }
  .ncp .ncp-pod [data-p="ret"] { font-size: 13px !important; }
  .ncp .ncp-pod .ncp-cc { display: none !important; }
  .ncp .ncp-pod-1 .ncp-pod-step { height: 58px; }
  .ncp .ncp-pod-2 .ncp-pod-step { height: 42px; }
  .ncp .ncp-pod-3 .ncp-pod-step { height: 32px; }

  /* leaderboard table -> cards */
  .ncp .ncp-table { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
  .ncp .ncp-table[hidden] { display: none !important; }
  .ncp .ncp-thead { display: none !important; }
  .ncp #ncp-rows { display: flex; flex-direction: column; gap: 10px; }
  .ncp .ncp-row {
    display: flex !important; flex-wrap: wrap; align-items: center !important; gap: 0 10px !important;
    padding: 14px !important; border: 1px solid var(--nv-eeeef4) !important; border-radius: 16px;
    background: var(--nv-fff-bg);
  }
  /* a zero-height item that fills a whole line: the figures always start on a line of their own */
  .ncp .ncp-row::before { content: ''; order: 4; flex: 0 0 100%; height: 0; }
  .ncp .ncp-row[data-me] { border-color: var(--nv-f3c4ca) !important; box-shadow: none; background: var(--nv-fff5f6); }
  .ncp .ncp-c-rank { order: 1; flex: none; }
  .ncp .ncp-c-trader { order: 2; flex: 1 1 0; min-width: 0; }
  .ncp .ncp-c-status { order: 3; flex: none; }
  .ncp .ncp-c-kv {
    order: 5; flex: 1 1 0; min-width: 0; margin-top: 12px; display: flex !important; flex-direction: column; gap: 3px;
    text-align: left !important; padding: 9px 10px; border-radius: 12px; background: var(--nv-fbfbfd);
  }
  .ncp .ncp-row[data-me] .ncp-c-kv { background: var(--nv-fff-bg); }
  .ncp .ncp-c-kv::before {
    content: attr(data-label); font-size: 10.5px; font-weight: 800; letter-spacing: .09em;
    text-transform: uppercase; color: var(--nv-3a3b4f);
  }
  .ncp .ncp-c-note { order: 5; flex: 1 1 100%; margin-top: -2px !important; }
  .ncp .ncp-row [data-f="program"] { white-space: normal !important; overflow: visible !important; }   /* "best of N accounts" stays readable */

  /* country table: rank and country on one line, the figures under them, then the top trader */
  .ncp .ncp-cthead { display: none !important; }
  .ncp .ncp-crow { display: flex !important; flex-wrap: wrap; align-items: center !important; gap: 0 10px !important; padding: 14px 16px !important; }
  .ncp .ncp-crow::before { content: ''; order: 4; flex: 0 0 100%; height: 0; }
  .ncp .ncp-crow > span:nth-child(1) { order: 1; flex: none; }
  .ncp .ncp-crow > span:nth-child(2) { order: 2; flex: 1 1 0; min-width: 0; }
  .ncp .ncp-crow .ncp-c-top { order: 6; flex: 1 1 100%; margin-top: 10px; white-space: normal !important; }
  .ncp .ncp-crow .ncp-c-top::before { content: 'Top trader  '; white-space: pre; font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--nv-3a3b4f); }

  .ncp .ncp-acct { min-height: 60px !important; }
  .ncp .ncp-mini { height: 44px !important; padding: 0 14px !important; }
  .ncp .ncp-tabs { padding: 10px 12px 0 !important; }
  .ncp .ncp-tab { flex: 1 1 0; justify-content: center; padding: 0 10px !important; font-size: 13.5px !important; }
}

@media (max-width: 420px) {
  .ncp .ncp-c-status > span { font-size: 10.5px !important; padding: 4px 8px !important; }
  .ncp .ncp-c-kv { padding: 8px !important; }
  .ncp .ncp-c-kv[data-label^="P"] { flex-grow: 1.6; }
  .ncp .ncp-c-kv[data-label="Trades"] { flex-grow: .7; }
  .ncp .ncp-c-kv > span { font-size: 12.5px !important; }
  .ncp [data-cd] { font-size: 19px !important; }
}
@media (max-width: 360px) {
  .ncp .ncp-c-trader [data-f="initials"] { display: none !important; }
  .ncp #ncp-stats { grid-template-columns: minmax(0, 1fr) !important; }
}
