/* Challenge c1 / c3 / c5: selected concepts, scoped to the challenge surface. */
.ccd-board-versus {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  flex: none; min-height: 44px; padding: 10px 14px; border-radius: 999px;
  background: var(--panel-2); color: var(--mint);
  font: 650 14px/1.4 var(--font); text-decoration: none; white-space: nowrap;
}
.ccd-board-versus svg { display: block; width: 18px; height: 18px; flex: none; }
.ccd-board-versus:hover { background: var(--panel); }
.ccd-board-versus:active { color: var(--ink); }
.ccd-board-versus:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }

body:has(.ccd-page) .live-fab { display: none; }
.ccd-page {
  --ccd-secondary: #b9bdd0;
  --ccd-outline: #666b84;
  color: var(--ink);
  font: 14px/1.5 var(--font);
  min-width: 0;
}
.ccd-page h1,
.ccd-page h2,
.ccd-page h3,
.ccd-page p { margin: 0; }
.ccd-page h1 { font-size: 32px; line-height: 1.16; letter-spacing: -.025em; font-weight: 750; text-wrap: balance; }
.ccd-page h2,
.ccd-page h3 { font-size: 14px; line-height: 1.45; font-weight: 700; text-wrap: balance; }
.ccd-page p { text-wrap: pretty; }
.ccd-page small { font-size: 12px; line-height: 1.4; }
.ccd-page svg { display: block; width: 20px; height: 20px; flex: none; }
.ccd-page [aria-hidden="true"] { display: inline-flex; flex: none; align-items: center; }
.ccd-page :is(a, button):focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.ccd-page :is(button, a) { -webkit-tap-highlight-color: transparent; }
.ccd-page button { font-size: 14px; line-height: 1.4; }
.ccd-page button:disabled { cursor: default; }
.ccd-breadcrumb { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: -8px 0 12px; color: var(--ccd-secondary); }
.ccd-breadcrumb a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 0; overflow-wrap: anywhere; }
.ccd-breadcrumb a:hover { color: var(--mint); }
.ccd-breadcrumb > span { color: var(--muted); }
.ccd-breadcrumb svg { width: 18px; height: 18px; }
.ccd-panel { min-width: 0; padding: 22px; border-radius: 14px; background: var(--panel); }
.ccd-primary,
.ccd-secondary,
.ccd-vote {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 11px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 650; text-align: center;
  transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out;
}
.ccd-primary { background: var(--mint); color: var(--bg); }
.ccd-primary:hover:not(:disabled) { background: #c3f8eb; }
.ccd-primary:active:not(:disabled) { background: var(--teal); }
.ccd-primary:disabled { background: var(--panel-2); color: var(--ccd-secondary); }
.ccd-secondary { background: var(--panel-2); color: var(--ink); }
.ccd-secondary:hover:not(:disabled) { background: #303347; }
.ccd-secondary:active:not(:disabled) { background: #383c52; }
.ccd-secondary:disabled { color: var(--muted); }
.ccd-badge {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  border-radius: 999px; padding: 7px 11px; background: rgba(35, 37, 55, .94);
  color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.5;
}
.ccd-badge svg { width: 15px; height: 15px; color: var(--mint); }
.ccd-demo { display: block; color: var(--ccd-secondary); font-size: 12px; font-weight: 400; line-height: 1.5; }
.ccd-subtle,
.ccd-data-note { color: var(--ccd-secondary); }
.ccd-data-note { font-size: 12px; line-height: 1.5; }

/* The photograph stays visible above and to the right of the copy. */
.ccd-hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; background: var(--panel); }
.ccd-cover,
.ccd-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.ccd-cover { object-fit: cover; object-position: center 45%; z-index: -2; }
.ccd-hero-shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(15, 17, 26, .94) 0%, rgba(15, 17, 26, .85) 31%, rgba(15, 17, 26, .25) 69%, rgba(15, 17, 26, .16) 100%),
    linear-gradient(0deg, rgba(15, 17, 26, .98) 0%, rgba(15, 17, 26, .45) 27%, transparent 65%);
}
.ccd-hero-content { min-height: 390px; padding: 26px; display: flex; flex-direction: column; }
.ccd-hero-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.ccd-hero-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 13px; border-radius: 10px; background: rgba(20, 20, 30, .85); color: var(--mint); font-weight: 600; }
.ccd-hero-link:hover { background: var(--panel-2); }
.ccd-hero-link svg { width: 18px; height: 18px; }
.ccd-hero-copy { width: min(550px, 68%); margin: 23px 0 28px; }
.ccd-hero-copy h1 { overflow-wrap: anywhere; }
.ccd-hero-copy > p { max-width: 58ch; margin-top: 12px; color: #d0d4e2; line-height: 1.65; }
.ccd-host { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.ccd-host-mark { display: grid; place-items: center; width: 42px; height: 42px; flex: none; color: var(--mint); background: rgba(20, 20, 30, .82); border: 1px solid var(--mint); border-radius: 50%; }
.ccd-host > span:last-child { display: grid; gap: 1px; min-width: 0; }
.ccd-host small { color: var(--ccd-secondary); }
.ccd-host b { font-size: 14px; overflow-wrap: anywhere; }
.ccd-hero-bottom {
  display: grid; grid-template-columns: minmax(210px, 1.15fr) minmax(210px, 1.1fr) minmax(180px, 1fr) minmax(140px, .85fr);
  align-items: stretch; gap: 12px; margin-top: auto;
}
.ccd-reward,
.ccd-countdown,
.ccd-participants { min-width: 0; }
.ccd-hero-bottom > :is(.ccd-reward, .ccd-countdown, .ccd-participants) { min-height: 84px; padding: 13px 16px; border-radius: 10px; background: rgba(27, 29, 42, .94); }
.ccd-reward { display: flex; align-items: center; gap: 12px; }
.ccd-reward > [aria-hidden="true"] { color: var(--mint); }
.ccd-reward > [aria-hidden="true"] svg { width: 25px; height: 25px; }
.ccd-reward > span:last-child { display: grid; gap: 1px; min-width: 0; }
.ccd-reward small { color: var(--ccd-secondary); }
.ccd-reward strong { font-size: 24px; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.ccd-reward .ccd-demo { margin-top: 3px; }
.ccd-countdown { display: flex; flex-direction: column; justify-content: center; gap: 4px; font-variant-numeric: tabular-nums; }
.ccd-countdown > b { font-size: 14px; }
.ccd-countdown > span:not(.ccd-clock) { font-size: 12px; color: var(--ccd-secondary); }
.ccd-clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.ccd-clock > span { display: flex; flex-direction: column; gap: 1px; }
.ccd-clock b { font-size: 14px; line-height: 1.5; }
.ccd-clock small { color: var(--ccd-secondary); }
.ccd-participants { display: flex; align-items: center; gap: 11px; }
.ccd-participants > [aria-hidden="true"] { color: var(--ccd-secondary); }
.ccd-participants > span:last-child { display: grid; gap: 2px; min-width: 0; }
.ccd-participants b { font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.ccd-participants > span:last-child > span { font-size: 12px; color: var(--ccd-secondary); line-height: 1.4; }
.ccd-hero-bottom > .ccd-primary { align-self: center; min-height: 48px; border-radius: 999px; }

/* Entries own the main column; rewards and guidance stay easy to scan. */
.ccd-detail-columns { display: grid; grid-template-columns: minmax(0, 1fr) 296px; align-items: start; gap: 18px; margin-top: 18px; }
.ccd-detail-aside { display: grid; gap: 16px; min-width: 0; }
.ccd-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ccd-section-head h2 { display: flex; align-items: center; gap: 8px; }
.ccd-section-head h2 > span { color: var(--ccd-secondary); font-size: 12px; font-weight: 500; }
.ccd-section-head > span { color: var(--ccd-secondary); font-size: 12px; }
.ccd-filters { display: flex; gap: 4px; }
.ccd-filters button { min-width: 56px; min-height: 44px; padding: 9px 12px; color: var(--ccd-secondary); border-radius: 999px; }
.ccd-filters button[aria-pressed="true"] { background: var(--panel-2); color: var(--mint); box-shadow: inset 0 0 0 1px #699c96; }
.ccd-filters button:hover { color: var(--ink); background: var(--panel-2); }
.ccd-submissions > .ccd-data-note { margin: 2px 0 16px; }
.ccd-entry-grid,
.ccd-grid-loading { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ccd-entry { position: relative; isolation: isolate; display: block; overflow: hidden; min-width: 0; aspect-ratio: 4/5; border-radius: 9px; background: var(--panel-2); }
.ccd-entry-image { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease-out; }
.ccd-entry:hover .ccd-entry-image { transform: scale(1.035); }
.ccd-entry::after { content: ""; position: absolute; z-index: 0; inset: 35% 0 0; background: linear-gradient(transparent 0%, rgba(10, 12, 19, .82) 100%); pointer-events: none; }
.ccd-entry-info { position: absolute; z-index: 1; inset: auto 10px 11px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 1.4; }
.ccd-entry-info > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ccd-entry-info b { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.ccd-entry-info svg { width: 14px; height: 14px; }
.ccd-avatar { width: 30px; height: 30px; border-radius: 50%; flex: none; object-fit: cover; background: var(--panel-2); }
.ccd-leaderboard .ccd-section-head { margin-bottom: 12px; }
.ccd-leader { display: flex; align-items: center; gap: 9px; min-height: 51px; padding: 6px 0; }
.ccd-leader + .ccd-leader { border-top: 1px solid var(--line); }
.ccd-leader > b { min-width: 0; flex: 1; font-size: 12px; font-weight: 550; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.ccd-leader > span:last-child { display: inline-flex; align-items: center; gap: 5px; color: var(--ccd-secondary); font-size: 12px; font-variant-numeric: tabular-nums; }
.ccd-leader > span:last-child svg { width: 14px; height: 14px; }
.ccd-leader:hover > b { color: var(--mint); }
.ccd-more-leaders { margin-top: 8px; }
.ccd-more-leaders > summary { min-height: 44px; display: list-item; padding: 13px 0; color: var(--mint); font-size: 12px; line-height: 18px; font-weight: 600; cursor: pointer; list-style: disclosure-closed inside; }
.ccd-more-leaders[open] > summary { list-style-type: disclosure-open; }
.ccd-more-leaders > summary:hover { color: var(--ink); }
.ccd-more-leaders > summary:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; border-radius: 6px; }
.ccd-rank { display: grid; place-items: center; flex: none; width: 23px; height: 23px; color: var(--ccd-secondary); border-radius: 50%; font-size: 12px; line-height: 1; font-weight: 600; }
.ccd-rank.r1 { color: #ffe1a0; background: #5c462b; }
.ccd-rank.r2 { color: #e0e6f6; background: #444b5d; }
.ccd-rank.r3 { color: #f2c4a1; background: #604132; }
.ccd-prizes > h2 { margin-bottom: 9px; }
.ccd-prizes > .ccd-demo { margin-bottom: 12px; }
.ccd-prize-row { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 12px; color: var(--ccd-secondary); }
.ccd-prize-row > b { margin-left: auto; color: var(--ink); text-align: right; font-weight: 600; }
.ccd-prize-row > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.ccd-rules > h2 { margin-bottom: 15px; }
.ccd-rules > p { color: var(--ccd-secondary); font-size: 12px; line-height: 1.7; }
.ccd-rules ul { list-style: none; display: grid; gap: 18px; margin: 0; padding: 0; }
.ccd-rules li { display: flex; gap: 11px; align-items: flex-start; font-size: 12px; }
.ccd-rules li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.ccd-rules li svg { color: var(--ccd-secondary); width: 19px; height: 19px; }
.ccd-rule-tag { display: flex; gap: 11px; align-items: flex-start; margin-top: 21px; }
.ccd-rule-tag > [aria-hidden="true"] { color: var(--ccd-secondary); }
.ccd-rule-tag > span:last-child { display: grid; gap: 5px; min-width: 0; color: var(--ccd-secondary); font-size: 12px; }
.ccd-rule-tag b { color: var(--mint); font-weight: 500; overflow-wrap: anywhere; }
.ccd-sponsor { display: grid; gap: 5px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.ccd-sponsor small,
.ccd-sponsor p { color: var(--ccd-secondary); font-size: 12px; }
.ccd-sponsor b { font-size: 14px; overflow-wrap: anywhere; }
.ccd-extra-actions { display: grid; gap: 9px; margin-top: 18px; }
.ccd-extra-actions .ccd-secondary { width: 100%; padding-inline: 10px; }
.ccd-grid-loading .skel { min-height: 225px; border-radius: 9px; background-color: var(--panel-2); }
.ccd-noimage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 20px; background: var(--panel-2); color: var(--ccd-secondary); text-align: center; font-size: 12px; }
.ccd-noimage svg { width: 28px; height: 28px; }
.ccd-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 60px 22px; min-height: 280px; text-align: center; }
.ccd-empty > [aria-hidden="true"] { margin-bottom: 4px; color: var(--mint); }
.ccd-empty > [aria-hidden="true"] svg { width: 32px; height: 32px; }
.ccd-empty > p { max-width: 42ch; color: var(--ccd-secondary); }
.ccd-empty .ccd-secondary { margin-top: 12px; }

/* Two equal canvases, with their action placed outside the artwork. */
.ccd-arena-columns { display: grid; grid-template-columns: minmax(0, 1fr) 282px; align-items: start; gap: 18px; }
.ccd-arena { padding: 24px; }
.ccd-arena-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ccd-arena-heading > div { min-width: 0; }
.ccd-arena-heading p { color: var(--ccd-secondary); margin-top: 8px; }
.ccd-arena-heading > .ccd-demo { margin-top: 4px; flex: none; padding: 6px 9px; border-radius: 6px; background: var(--panel-2); }
.ccd-preview-explainer { margin-top: 14px !important; color: var(--ccd-secondary); font-size: 12px; line-height: 1.6; max-width: 70ch; }
.ccd-duel-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); position: relative; gap: 18px; margin-top: 24px; }
.ccd-contender { min-width: 0; }
.ccd-contender-art { position: relative; display: block; isolation: isolate; min-width: 0; height: 365px; overflow: hidden; border-radius: 12px; background: var(--panel-2); box-shadow: 0 0 0 3px var(--panel-2); }
.ccd-contender-art::after { content: ""; position: absolute; z-index: 0; inset: 44% 0 0; background: linear-gradient(transparent, rgba(9, 12, 20, .95)); pointer-events: none; }
.ccd-duel-image { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease-out; }
.ccd-contender-art:hover .ccd-duel-image { transform: scale(1.025); }
.ccd-side-label { position: absolute; left: 13px; top: 13px; z-index: 1; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 7px; background: rgba(15, 17, 26, .92); font-size: 14px; font-weight: 650; }
.ccd-contender-caption { position: absolute; z-index: 1; inset: auto 14px 16px; display: flex; align-items: center; gap: 9px; }
.ccd-contender-caption > span:last-child { min-width: 0; display: grid; gap: 3px; }
.ccd-contender-caption b { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.ccd-contender-caption small { color: #cbd0df; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ccd-vs { position: absolute; z-index: 2; top: 153px; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--bg); border: 1px solid #719f99; color: var(--mint); font-size: 14px; font-weight: 750; }
.ccd-page .ccd-vs { display: grid; }
.ccd-vote { width: 100%; min-height: 50px; margin-top: 17px; background: var(--panel-2); border: 1px solid var(--ccd-outline); color: var(--ink); }
.ccd-vote:hover:not(:disabled) { color: var(--mint); border-color: var(--mint); background: #253a3f; }
.ccd-vote:active:not(:disabled) { background: #2d484b; }
.ccd-vote:disabled:not(.is-selected) { color: var(--ccd-secondary); border-color: #50556d; background: var(--panel); }
.ccd-vote.is-selected { color: var(--mint); border-color: var(--mint); background: #263c40; }
.ccd-contender.is-chosen .ccd-contender-art { box-shadow: 0 0 0 2px var(--mint); }
.ccd-vote-result { margin-top: 24px; }
.ccd-vote-labels { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ccd-vote-labels b { color: var(--mint); font-size: 14px; font-variant-numeric: tabular-nums; }
.ccd-vote-labels b:last-child { color: var(--ccd-secondary); }
.ccd-vote-labels > span { color: var(--ccd-secondary); font-size: 12px; text-align: center; }
.ccd-vote-track { height: 10px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: #3a3e54; }
.ccd-vote-track > span { display: block; height: 100%; border-radius: inherit; background: var(--teal); transition: width 200ms ease-out; }
.ccd-vote-totals { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--ccd-secondary); font-size: 12px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.ccd-vote-totals > span:nth-child(2) { text-align: center; }
.ccd-vote-totals > span:first-child,
.ccd-vote-totals > span:last-child { white-space: nowrap; }
.ccd-duel-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.ccd-duel-footer p { color: var(--ccd-secondary); font-size: 12px; max-width: 42ch; }
.ccd-duel-footer .ccd-secondary { flex: none; }
.ccd-duel-footer + .ccd-data-note { margin-top: 8px; }
.ccd-arena .ccd-grid-loading { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
.ccd-arena .ccd-grid-loading .skel { min-height: 365px; }
.ccd-duel-aside { display: flex; flex-direction: column; padding: 20px; }
.ccd-context-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 9px; margin-bottom: 17px; }
.ccd-duel-aside > .ccd-badge { margin-bottom: 10px; }
.ccd-duel-aside > h2 { font-size: 14px; overflow-wrap: anywhere; }
.ccd-duel-aside > .ccd-subtle { font-size: 12px; margin-top: 4px; }
.ccd-duel-aside > p:not(.ccd-subtle) { margin-top: 15px; color: var(--ccd-secondary); font-size: 12px; line-height: 1.7; }
.ccd-aside-prize { display: grid; gap: 3px; margin-top: 20px; margin-bottom: 9px; padding-top: 18px; border-top: 1px solid var(--line); }
.ccd-aside-prize small { color: var(--ccd-secondary); }
.ccd-aside-prize strong { font-size: 24px; line-height: 1.4; letter-spacing: -.025em; overflow-wrap: anywhere; }
.ccd-aside-prize > .ccd-demo { margin-top: 2px; }
.ccd-duel-aside > .ccd-countdown { margin-top: 18px; padding-top: 18px; padding-bottom: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ccd-duel-aside .ccd-clock { margin-top: 4px; }
.ccd-duel-aside > .ccd-participants { margin: 18px 0 21px; }
.ccd-duel-aside > .ccd-primary { border-radius: 999px; width: 100%; }
.ccd-duel-aside > .ccd-secondary { width: 100%; margin-top: 10px; }

@media (max-width: 1150px) {
  .ccd-hero-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ccd-hero-bottom > .ccd-primary { align-self: stretch; border-radius: 10px; }
  .ccd-hero-copy { width: min(560px, 80%); }
  .ccd-entry-grid,
  .ccd-grid-loading { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ccd-detail-columns { grid-template-columns: minmax(0, 1fr) 266px; }
  .ccd-arena-columns { grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; }
  .ccd-arena { padding: 20px; }
  .ccd-arena-heading { flex-direction: column; gap: 10px; }
  .ccd-arena-heading > .ccd-demo { margin-top: 0; }
  .ccd-duel-pair { gap: 14px; }
  .ccd-contender-art { height: 335px; }
  .ccd-vs { top: 141px; width: 52px; height: 52px; }
  .ccd-contender-caption { inset: auto 10px 12px; gap: 7px; }
  .ccd-contender-caption .ccd-avatar { width: 26px; height: 26px; }
  .ccd-contender-caption b { font-size: 12px; }
}
@media (max-width: 960px) {
  .ccd-detail-columns,
  .ccd-arena-columns { grid-template-columns: minmax(0, 1fr); }
  .ccd-detail-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .ccd-detail-aside > .ccd-rules { grid-column: 1/-1; }
  .ccd-entry-grid,
  .ccd-grid-loading { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ccd-arena-heading { flex-direction: row; }
  .ccd-contender-art { height: 355px; }
  .ccd-vs { top: 151px; }
  .ccd-duel-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; align-items: start; }
  .ccd-context-image { grid-column: 1/-1; aspect-ratio: 3/1; object-position: center 42%; }
  .ccd-duel-aside > :is(.ccd-badge, h2, p, .ccd-aside-prize, .ccd-prize-row) { grid-column: 1; }
  .ccd-duel-aside > .ccd-countdown { grid-column: 2; grid-row: 2/5; margin-top: 0; padding-top: 0; border-top: 0; }
  .ccd-duel-aside > .ccd-participants { grid-column: 2; grid-row: 5; }
  .ccd-duel-aside > .ccd-primary { grid-column: 2; grid-row: 6; }
  .ccd-duel-aside > .ccd-secondary { grid-column: 2; grid-row: 7; }
}
@media (max-width: 640px) {
  body:has(.ccd-page) .main { padding-inline: 14px; }
  .ccd-page h1 { font-size: 28px; }
  .ccd-breadcrumb { margin-bottom: 10px; gap: 8px; font-size: 12px; }
  .ccd-breadcrumb a:first-child { flex: none; }
  .ccd-breadcrumb a:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 44px; }
  .ccd-breadcrumb a:only-child { display: inline-flex; }
  .ccd-panel { padding: 16px; border-radius: 12px; }
  .ccd-hero { border-radius: 12px; }
  .ccd-cover { height: 365px; object-position: 58% center; }
  .ccd-hero-shade { background: linear-gradient(0deg, var(--panel) calc(100% - 290px), rgba(27, 29, 42, .98) calc(100% - 240px), rgba(15, 17, 26, .84) calc(100% - 190px), rgba(15, 17, 26, .14) calc(100% - 120px), rgba(15, 17, 26, .35) 100%); }
  .ccd-hero-content { min-height: 0; padding: 16px; }
  .ccd-hero-top { gap: 8px; align-items: center; flex-wrap: nowrap; }
  .ccd-badge { font-size: 12px; padding: 6px 9px; }
  .ccd-hero-top .ccd-badge { gap: 5px; max-width: 58%; }
  .ccd-hero-link { min-height: 44px; font-size: 12px; gap: 5px; padding: 8px; white-space: nowrap; }
  .ccd-hero-link svg { width: 15px; height: 15px; }
  .ccd-hero-copy { width: 100%; margin: 133px 0 22px; }
  .ccd-hero-copy > p { margin-top: 10px; line-height: 1.6; }
  .ccd-host { margin-top: 16px; }
  .ccd-hero-bottom { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ccd-hero-bottom > :is(.ccd-reward, .ccd-countdown, .ccd-participants) { min-height: 0; background: var(--panel-2); padding: 16px; }
  .ccd-reward strong { font-size: 24px; }
  .ccd-reward > [aria-hidden="true"] svg { width: 28px; height: 28px; }
  .ccd-hero-bottom > .ccd-countdown { background: transparent; padding: 0; gap: 8px; }
  .ccd-hero-bottom .ccd-clock { gap: 8px; }
  .ccd-hero-bottom .ccd-clock > span { padding: 10px 4px; align-items: center; border-radius: 8px; background: var(--panel-2); }
  .ccd-hero-bottom .ccd-clock b { font-size: 14px; }
  .ccd-hero-bottom > .ccd-primary { width: 100%; min-height: 48px; border-radius: 999px; }
  .ccd-detail-columns { gap: 16px; margin-top: 16px; }
  .ccd-detail-aside { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ccd-detail-aside > .ccd-rules { grid-column: auto; }
  .ccd-section-head { gap: 8px; }
  .ccd-section-head h2 { gap: 6px; }
  .ccd-filters { gap: 0; }
  .ccd-filters button { min-width: 48px; padding-inline: 10px; font-size: 12px; }
  .ccd-submissions > .ccd-data-note { margin-bottom: 14px; }
  .ccd-entry-grid,
  .ccd-grid-loading { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ccd-entry { aspect-ratio: 4/5; }
  .ccd-entry-info { inset-inline: 8px; bottom: 9px; flex-wrap: wrap; gap: 3px 7px; }
  .ccd-entry-info > span { flex-basis: 100%; }
  .ccd-leader { min-height: 54px; }
  .ccd-leader > b { font-size: 14px; }
  .ccd-leader .ccd-avatar { width: 32px; height: 32px; }
  .ccd-rules li,
  .ccd-rules > p { font-size: 14px; }
  .ccd-arena-columns { gap: 16px; }
  .ccd-arena { padding: 16px 12px; }
  .ccd-arena-heading { flex-direction: column; gap: 12px; }
  .ccd-arena-heading p { margin-top: 7px; }
  .ccd-arena-heading > .ccd-demo { margin-top: 0; }
  .ccd-preview-explainer { margin-top: 10px !important; }
  .ccd-duel-pair { gap: 12px; margin-top: 22px; }
  .ccd-contender-art { height: 230px; border-radius: 9px; box-shadow: 0 0 0 2px var(--panel-2); }
  .ccd-side-label { left: 8px; top: 8px; width: 26px; height: 26px; font-size: 12px; border-radius: 6px; }
  .ccd-vs { top: 95px; width: 40px; height: 40px; font-size: 12px; }
  .ccd-contender-caption { inset: auto 8px 10px; display: block; }
  .ccd-contender-caption .ccd-avatar { width: 25px; height: 25px; margin-bottom: 6px; }
  .ccd-contender-caption > span:last-child { gap: 3px; }
  .ccd-contender-caption b { font-size: 12px; line-height: 1.4; }
  .ccd-contender-caption small { -webkit-line-clamp: 2; font-size: 12px; line-height: 1.4; }
  .ccd-vote { min-height: 48px; margin-top: 13px; padding: 10px 5px; gap: 6px; font-size: 14px; border-radius: 9px; }
  .ccd-vote svg { width: 18px; height: 18px; }
  .ccd-vote-result { margin-top: 22px; }
  .ccd-vote-labels { gap: 7px; }
  .ccd-vote-labels > span { font-size: 12px; }
  .ccd-vote-totals { gap: 8px; flex-wrap: wrap; }
  .ccd-vote-totals > span:nth-child(2) { order: 3; flex-basis: 100%; }
  .ccd-duel-footer { margin-top: 17px; padding-top: 17px; flex-direction: column; align-items: stretch; gap: 13px; }
  .ccd-duel-footer p { max-width: none; text-align: center; }
  .ccd-duel-footer .ccd-secondary { width: 100%; }
  .ccd-arena .ccd-grid-loading .skel { min-height: 230px; }
  .ccd-duel-aside { display: flex; padding: 18px; }
  .ccd-context-image { aspect-ratio: 16/9; margin-bottom: 17px; }
  .ccd-duel-aside > .ccd-countdown { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
  .ccd-duel-aside > .ccd-participants { margin: 18px 0 21px; }
  .ccd-duel-aside > p:not(.ccd-subtle) { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ccd-page *,
  .ccd-page *::before,
  .ccd-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Like the wallet, challenge actions remain readable at every scroll position.
   Join is in the page; Create stays available through the mobile menu. */
.shell:has(.ccd-page) .cfab { display: none; }
body:has(.ccd-page)::after { content: none; }
