/* DREAMCARS contests public — ?page=contests_public (scoped to body.contests-public-open) */

body.contests-public-open{
  --cp-topbar-height:52px;
  --cp-topbar-sticky-top:calc(var(--admin-header-height,68px) + env(safe-area-inset-top,0px));
}

body.contests-public-open .wrap{
  padding-top:calc(var(--admin-header-height,68px) + env(safe-area-inset-top,0px))!important;
}

body.contests-public-open:not(.dc-shell-open) .wrap{
  padding-bottom:var(--dc-mobile-content-bottom-reserve, var(--dc-bottom-nav-mobile-reserve, 88px))!important;
}

body.contests-public-open .cp-page{
  display:flex;
  flex-direction:column;
  gap:0;
  max-width:767px;
  margin:0 auto;
}

body.contests-public-open h1{
  margin:0!important;
  padding:0!important;
}

/* —— Top bar (sticky under app header) —— */
body.contests-public-open .cp-topbar-shell{
  position:sticky;
  top:var(--cp-topbar-sticky-top);
  z-index:4990;
  margin:0;
  padding:0;
  background:transparent;
}

body.contests-public-open .cp-topbar{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 44px;
  align-items:center;
  gap:10px;
  min-height:var(--cp-topbar-height);
  margin:0;
  padding:6px 10px 6px 6px;
  border-radius:999px;
  border:1px solid rgba(255,138,0,.16);
  background:
    radial-gradient(circle at 8% 50%,rgba(255,138,0,.07),transparent 42%),
    linear-gradient(180deg,rgba(22,22,22,.98),rgba(10,10,10,.96));
  box-shadow:
    0 10px 28px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

body.contests-public-open .cp-topbar__back{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:rgba(255,211,145,.92);
  text-decoration:none;
  transition:background .15s ease,border-color .15s ease,color .15s ease;
  -webkit-tap-highlight-color:transparent;
}
body.contests-public-open .cp-topbar__back:active{
  background:rgba(255,138,0,.10);
  border-color:rgba(255,138,0,.28);
  color:#ffd391;
}
body.contests-public-open .cp-topbar__back svg{
  width:20px;
  height:20px;
  display:block;
}
body.contests-public-open .cp-topbar__title{
  margin:0!important;
  padding:0!important;
  font-size:16px!important;
  line-height:1.2!important;
  font-weight:400!important;
  letter-spacing:.01em;
  color:#fff!important;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.contests-public-open .cp-topbar__count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  min-width:32px;
  padding:0;
  border-radius:999px;
  background:linear-gradient(135deg,rgba(255,154,31,.95),rgba(212,106,0,.88));
  border:1px solid rgba(255,180,80,.42);
  color:#fff;
  font-size:13px;
  font-weight:600;
  line-height:1;
  text-align:center;
  box-shadow:0 4px 12px rgba(255,138,0,.22);
  justify-self:end;
}

body.contests-public-open .cp-list-section{
  margin:0;
}

body.contests-public-open .cp-topbar-shell + .cp-list-section{
  margin-top:2px;
}

body.contests-public-open .cp-list-section + .cp-finished-section{
  margin-top:12px;
}

/* —— Hero —— */
body.contests-public-open .cp-hero{
  padding:16px 16px 14px!important;
  border-radius:22px!important;
  border:1px solid rgba(255,138,0,.22)!important;
  background:linear-gradient(145deg,rgba(28,18,8,.96),rgba(12,12,12,.98))!important;
}
body.contests-public-open .cp-hero__eyebrow{
  margin:0 0 6px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(255,179,71,.72);
}
body.contests-public-open .cp-hero__title{
  font-size:clamp(24px,5.8vw,30px)!important;
  line-height:1.1!important;
  font-weight:900!important;
  color:#fff!important;
}
body.contests-public-open .cp-hero__lead{
  margin:8px 0 0;
  font-size:14px;
  line-height:1.45;
  color:rgba(255,255,255,.78);
}
body.contests-public-open .cp-hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
body.contests-public-open .cp-hero-link{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.88);
  font-size:12px;
  font-weight:650;
  text-decoration:none;
}
body.contests-public-open .cp-hero-link--live{
  border-color:rgba(255,96,96,.42);
  color:#ffb4b4;
  background:rgba(255,64,64,.08);
}

/* —— User strip —— */
body.contests-public-open .cp-user-strip{
  padding:12px 14px!important;
  border-radius:18px!important;
}
body.contests-public-open .cp-user-strip__head{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:6px 10px;
  margin-bottom:10px;
}
body.contests-public-open .cp-user-strip__head strong{
  font-size:15px;
  color:#fff;
}
body.contests-public-open .cp-user-strip__head span{
  font-size:12px;
  color:rgba(255,255,255,.52);
}
body.contests-public-open .cp-user-strip__metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
body.contests-public-open .cp-user-strip__metrics div{
  padding:8px 6px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  text-align:center;
}
body.contests-public-open .cp-user-strip__metrics b{
  display:block;
  font-size:18px;
  line-height:1.1;
  color:#ffd391;
}
body.contests-public-open .cp-user-strip__metrics span{
  display:block;
  margin-top:2px;
  font-size:10px;
  color:rgba(255,255,255,.55);
}

/* —— Toolbar / filters —— */
body.contests-public-open .cp-toolbar{
  padding:12px!important;
  border-radius:18px!important;
  display:flex;
  flex-direction:column;
  gap:10px;
}
body.contests-public-open .cp-filter-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
body.contests-public-open .cp-filter-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.82);
  font-size:12px;
  font-weight:650;
  cursor:pointer;
}
body.contests-public-open .cp-filter-chip span{
  min-width:18px;
  padding:1px 6px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  font-size:10px;
  font-weight:800;
}
body.contests-public-open .cp-filter-chip.is-active{
  border-color:rgba(255,138,0,.55);
  background:rgba(255,138,0,.12);
  color:#ffd391;
}
body.contests-public-open .cp-toolbar-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
}
body.contests-public-open .cp-toolbar-links a{
  font-size:12px;
  font-weight:650;
  color:rgba(255,179,71,.82);
  text-decoration:none;
}

/* —— How it works —— */
body.contests-public-open .cp-how{
  padding:14px 14px 12px!important;
  border-radius:18px!important;
}
body.contests-public-open .cp-section-title{
  margin:0;
  font-size:16px;
  font-weight:850;
  color:#fff;
}
body.contests-public-open .cp-how-steps{
  list-style:none;
  margin:12px 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
body.contests-public-open .cp-how-steps li{
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  gap:10px;
  align-items:start;
}
body.contests-public-open .cp-how-steps li > span{
  display:flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:999px;
  background:rgba(255,138,0,.14);
  border:1px solid rgba(255,138,0,.32);
  color:#ffd391;
  font-size:12px;
  font-weight:800;
}
body.contests-public-open .cp-how-steps strong{
  display:block;
  font-size:13px;
  color:#fff;
  margin-bottom:2px;
}
body.contests-public-open .cp-how-steps p{
  margin:0;
  font-size:12px;
  line-height:1.4;
  color:rgba(255,255,255,.68);
}

/* —— List section —— */
body.contests-public-open .cp-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
body.contests-public-open .cp-section-count{
  min-width:28px;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(255,138,0,.12);
  border:1px solid rgba(255,138,0,.28);
  color:#ffd391;
  font-size:11px;
  font-weight:800;
  text-align:center;
}
body.contests-public-open .cp-contest-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* —— Contest card —— */
body.contests-public-open .contest-card,
body.contests-public-open .cp-contest-card{
  position:relative;
  margin:0!important;
  padding:0!important;
  border-radius:22px!important;
  border:1px solid rgba(255,138,0,.20)!important;
  background:linear-gradient(180deg,rgba(20,20,20,.98),rgba(10,10,10,.96))!important;
  box-shadow:0 12px 32px rgba(0,0,0,.34),0 0 0 1px rgba(255,255,255,.04)!important;
  overflow:hidden!important;
}
body.contests-public-open .cp-contest-card--mine{
  border-color:rgba(255,179,71,.38)!important;
  box-shadow:0 12px 32px rgba(0,0,0,.34),0 0 0 1px rgba(255,179,71,.12)!important;
}
body.contests-public-open .cp-contest-card__topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:12px 12px 8px;
}
body.contests-public-open .cp-contest-card__preview{
  container-type:inline-size;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:10px;
  align-items:start;
  padding:0 12px 10px;
}
body.contests-public-open .cp-contest-card__media{
  position:relative;
  min-width:0;
  width:100%;
  aspect-ratio:16/9;
  border-radius:14px;
  overflow:hidden;
  background:#0b0b0b;
  isolation:isolate;
}
body.contests-public-open .contest-image{
  width:100%!important;
  max-width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:unset!important;
  object-fit:cover!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:14px!important;
  box-shadow:none!important;
  display:block!important;
  background:#0b0b0b!important;
}
body.contests-public-open .contest-image.dc-media-placeholder-img{
  object-fit:cover!important;
}
body.contests-public-open .contest-image.missing{
  display:none!important;
}
body.contests-public-open .cp-contest-card__badges{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:4px;
  flex-shrink:0;
  max-width:46%;
}
body.contests-public-open .cp-contest-card__badges .pill{
  padding:4px 9px!important;
  font-size:11px!important;
  line-height:1.2!important;
}
body.contests-public-open .cp-contest-card__media::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:42%;
  background:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.72) 100%);
  pointer-events:none;
  z-index:1;
}
body.contests-public-open .cp-contest-card__date{
  position:absolute;
  right:0;
  bottom:0;
  z-index:2;
  max-width:100%;
  padding:0;
  border:0;
  background:transparent;
  pointer-events:none;
}
body.contests-public-open .cp-contest-card__date-value{
  display:block;
  max-width:100%;
  padding:5px 9px 6px;
  border-radius:10px 0 14px 0;
  border:0;
  border-top:1px solid rgba(255,255,255,.1);
  border-left:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.42);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  box-shadow:none;
  font-size:9px;
  font-weight:600;
  letter-spacing:.03em;
  color:rgba(255,255,255,.9);
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-align:right;
  text-shadow:0 1px 2px rgba(0,0,0,.35);
}
body.contests-public-open .cp-contest-card__intro{
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
  gap:8px;
  min-width:0;
  min-height:0;
  height:calc((100cqw - 10px) * 9 / 32);
  overflow:hidden;
  padding:0;
}
body.contests-public-open .cp-contest-card__desc-wrap{
  min-height:0;
  overflow:hidden;
  position:relative;
}
body.contests-public-open .cp-contest-card__desc-wrap::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:18px;
  background:linear-gradient(180deg,transparent,rgba(10,10,10,.92));
  pointer-events:none;
}
body.contests-public-open .cp-contest-card__intro-foot{
  display:block;
  flex-shrink:0;
  width:100%;
}
body.contests-public-open .cp-contest-card__desc,
body.contests-public-open .contest-card > p{
  margin:0!important;
  font-size:11px!important;
  line-height:1.42!important;
  color:rgba(255,255,255,.72)!important;
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:10;
}
body.contests-public-open .cp-contest-card__metrics--preview{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
  margin:0;
  width:100%;
}
body.contests-public-open .cp-contest-metric--preview{
  position:relative;
  padding:8px 9px 7px;
  border-radius:12px;
  min-width:0;
  border:1px solid rgba(255,138,0,.16);
  background:
    radial-gradient(circle at 100% 0,rgba(255,138,0,.08),transparent 52%),
    linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.015));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 6px 16px rgba(0,0,0,.22);
}
body.contests-public-open .cp-contest-metric--preview .cp-contest-metric__label{
  display:block;
  font-size:8px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:rgba(255,211,145,.58);
  margin-bottom:4px;
}
body.contests-public-open .cp-contest-metric--preview strong{
  display:block;
  font-size:12px;
  font-weight:850;
  line-height:1.15;
  color:#fff;
  letter-spacing:-.01em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.contests-public-open .cp-contest-metric--preview.cp-contest-metric--price{
  border-color:rgba(255,154,31,.24);
  background:
    radial-gradient(circle at 100% 0,rgba(255,154,31,.14),transparent 55%),
    linear-gradient(180deg,rgba(255,138,0,.08),rgba(255,255,255,.02));
}
body.contests-public-open .cp-contest-metric--preview.cp-contest-metric--price strong{
  color:#ffd391;
}
body.contests-public-open .cp-contest-card__body{
  padding:8px 12px 12px!important;
}
body.contests-public-open .cp-contest-card__title,
body.contests-public-open .contest-card h2{
  margin:0!important;
  flex:1;
  min-width:0;
  font-size:16px!important;
  line-height:1.2!important;
  font-weight:850!important;
  color:#fff!important;
  text-align:left;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body.contests-public-open .cp-contest-progress{
  height:6px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  overflow:hidden;
  margin-bottom:6px;
}
body.contests-public-open .cp-contest-progress > span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#ff9b19,#ff6a00);
}
body.contests-public-open .cp-contest-progress-label{
  margin:0 0 10px!important;
  font-size:12px!important;
  color:rgba(255,255,255,.58)!important;
}
body.contests-public-open .cp-contest-promos{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  margin-bottom:8px;
}
body.contests-public-open .cp-contest-promos__label{
  font-size:11px;
  font-weight:700;
  color:rgba(255,255,255,.48);
  margin-right:2px;
}
body.contests-public-open .cp-contest-promo-chip{
  display:inline-flex;
  min-height:26px;
  align-items:center;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(255,179,71,.28);
  background:rgba(255,138,0,.08);
  color:#ffd391;
  font-size:11px;
  font-weight:700;
}
body.contests-public-open .cp-contest-my-numbers{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-bottom:10px;
  padding:8px 10px;
  border-radius:12px;
  border:1px dashed rgba(255,179,71,.28);
  background:rgba(255,138,0,.06);
  font-size:12px;
  color:rgba(255,255,255,.78);
}
body.contests-public-open .cp-contest-my-numbers b{
  color:#ffd391;
}
body.contests-public-open .cp-contest-card__footer{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,34%);
  gap:10px 12px;
  align-items:start;
  margin-top:4px;
}
body.contests-public-open .cp-contest-card__footer:not(:has(.cp-contest-card__more)){
  grid-template-columns:1fr;
}
body.contests-public-open .cp-contest-card__footer-main{
  min-width:0;
}
body.contests-public-open .cp-contest-card__actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
body.contests-public-open .cp-contest-card__cta,
body.contests-public-open .contest-card > a.btn.cp-contest-card__cta{
  position:relative;
  isolation:isolate;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:1 1 140px!important;
  width:auto!important;
  margin-top:0!important;
  min-height:50px!important;
  padding:0 18px!important;
  border-radius:16px!important;
  font-size:14px!important;
  font-weight:900!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
  text-decoration:none!important;
  box-sizing:border-box!important;
  border:1px solid rgba(255,214,130,.52)!important;
  background:
    radial-gradient(circle at 18% 0,rgba(255,255,255,.34),transparent 42%),
    linear-gradient(135deg,#ffd05a 0%,#ff9b19 38%,#ff6a00 72%,#e85a00 100%)!important;
  color:#1a1208!important;
  box-shadow:
    0 12px 28px rgba(255,106,0,.34),
    0 0 0 1px rgba(255,138,0,.18),
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 0 -2px 0 rgba(120,48,0,.22)!important;
  overflow:hidden!important;
  transition:transform .15s ease,box-shadow .15s ease,filter .15s ease;
}
body.contests-public-open .cp-contest-card__cta::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(255,255,255,.26),transparent 46%,rgba(0,0,0,.08));
  pointer-events:none;
  z-index:0;
}
body.contests-public-open .cp-contest-card__cta-text{
  position:relative;
  z-index:1;
}
body.contests-public-open .cp-contest-card__cta:active{
  transform:translateY(1px);
  filter:saturate(1.04);
}
body.contests-public-open .cp-contest-card__share{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  flex:0 0 auto!important;
  min-height:38px!important;
  padding:0 12px!important;
  border-radius:12px!important;
  font-size:11px!important;
  font-weight:750!important;
  letter-spacing:.02em!important;
  text-decoration:none!important;
  box-sizing:border-box!important;
  border:1px solid rgba(255,255,255,.14)!important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.03))!important;
  color:rgba(255,255,255,.9)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    0 6px 16px rgba(0,0,0,.22)!important;
  transition:background .15s ease,border-color .15s ease,color .15s ease;
}
body.contests-public-open .cp-contest-card__share-icon{
  font-size:12px;
  line-height:1;
  opacity:.78;
}
body.contests-public-open .cp-contest-card__share:active{
  background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.05))!important;
  border-color:rgba(255,211,145,.28)!important;
}
body.contests-public-open .cp-contest-card__more{
  min-width:0;
  padding-left:10px;
  border-left:1px solid rgba(255,255,255,.08);
}
body.contests-public-open .cp-contest-card__more-label{
  margin-bottom:6px;
  font-size:8px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(255,211,145,.56);
}
body.contests-public-open .cp-contest-card__more-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:5px;
}
body.contests-public-open .cp-contest-card__more-item,
body.contests-public-open .cp-contest-card__more-link{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:1;
  overflow:hidden;
  font-size:11px;
  font-weight:650;
  line-height:1.25;
  color:rgba(255,255,255,.76);
  text-decoration:none;
  transition:color .15s ease;
}
body.contests-public-open .cp-contest-card__more-link:hover,
body.contests-public-open .cp-contest-card__more-item:hover{
  color:#ffd391;
}
body.contests-public-open .contest-card > .btn,
body.contests-public-open .contest-card > a.btn:not(.cp-contest-card__cta){
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:1 1 160px!important;
  width:auto!important;
  margin-top:0!important;
  min-height:44px!important;
  padding:11px 16px!important;
  border-radius:14px!important;
  font-size:14px!important;
  font-weight:900!important;
  letter-spacing:.02em!important;
  text-decoration:none!important;
  box-sizing:border-box!important;
  border:1px solid rgba(255,138,0,.55)!important;
  background:linear-gradient(135deg,#ff9b19,#ff6a00)!important;
  color:#111!important;
  box-shadow:0 8px 20px rgba(255,106,0,.24)!important;
}
body.contests-public-open .btn.secondary{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:44px!important;
  padding:11px 14px!important;
  border-radius:14px!important;
  font-size:13px!important;
  font-weight:700!important;
  text-decoration:none!important;
  border:1px solid rgba(255,255,255,.16)!important;
  background:rgba(255,255,255,.04)!important;
  color:rgba(255,255,255,.86)!important;
  box-shadow:none!important;
}
body.contests-public-open .contest-card .pill{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:28px!important;
  padding:5px 12px!important;
  border-radius:999px!important;
  font-size:11px!important;
  font-weight:800!important;
  letter-spacing:.02em!important;
  border:1px solid transparent!important;
  vertical-align:middle!important;
}
body.contests-public-open .contest-card .pill.ok{
  color:#6fe9a8!important;
  background:rgba(38,208,124,.12)!important;
  border-color:rgba(62,207,142,.42)!important;
}
body.contests-public-open .contest-card .pill.warn{
  color:#ffd166!important;
  background:rgba(255,193,7,.10)!important;
  border-color:rgba(255,193,7,.32)!important;
}
body.contests-public-open .contest-card .pill.danger{
  color:#ff9a9a!important;
  background:rgba(255,60,60,.10)!important;
  border-color:rgba(255,91,91,.36)!important;
}
body.contests-public-open .contest-card .pill.muted{
  color:rgba(255,255,255,.72)!important;
  background:rgba(255,255,255,.06)!important;
  border-color:rgba(255,255,255,.14)!important;
}

body.contests-public-open .cp-contest-card__badges .pill{
  backdrop-filter:blur(12px)!important;
  -webkit-backdrop-filter:blur(12px)!important;
  box-shadow:
    0 6px 18px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.08)!important;
  text-shadow:0 1px 2px rgba(0,0,0,.4)!important;
  background:linear-gradient(180deg,rgba(12,12,12,.84),rgba(0,0,0,.72))!important;
  border:1px solid rgba(255,255,255,.16)!important;
}
body.contests-public-open .cp-contest-card__badges .pill.ok{
  color:#8ff5c3!important;
  border-color:rgba(62,207,142,.52)!important;
  background:
    linear-gradient(180deg,rgba(10,28,18,.88),rgba(0,0,0,.74)),
    rgba(38,208,124,.18)!important;
}
body.contests-public-open .cp-contest-card__badges .pill.warn{
  color:#ffe08a!important;
  border-color:rgba(255,193,7,.48)!important;
  background:
    linear-gradient(180deg,rgba(28,22,8,.88),rgba(0,0,0,.74)),
    rgba(255,193,7,.14)!important;
}
body.contests-public-open .cp-contest-card__badges .pill.danger{
  color:#ffb0b0!important;
  border-color:rgba(255,91,91,.48)!important;
  background:
    linear-gradient(180deg,rgba(28,10,10,.88),rgba(0,0,0,.74)),
    rgba(255,60,60,.14)!important;
}
body.contests-public-open .cp-contest-card__badges .pill.muted{
  color:rgba(255,255,255,.88)!important;
  border-color:rgba(255,255,255,.18)!important;
}

/* —— Empty / finished —— */
body.contests-public-open .cp-empty-card{
  padding:18px 16px!important;
  border-radius:18px!important;
  text-align:center!important;
  color:rgba(255,255,255,.72)!important;
}
body.contests-public-open .cp-empty-hint{
  margin:8px 0 14px!important;
  font-size:13px!important;
  color:rgba(255,255,255,.52)!important;
}
body.contests-public-open .cp-finished-section{
  padding:0!important;
  overflow:hidden!important;
}
body.contests-public-open .cp-finished-details summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 16px;
  cursor:pointer;
  list-style:none;
}
body.contests-public-open .cp-finished-details summary::-webkit-details-marker{
  display:none;
}
body.contests-public-open .cp-finished-details[open] summary{
  border-bottom:1px solid rgba(255,255,255,.08);
}
body.contests-public-open .cp-contest-list--finished{
  padding:12px;
}
body.contests-public-open .cp-contest-card--compact .cp-contest-card__metrics--preview,
body.contests-public-open .cp-contest-card--compact .cp-contest-promos,
body.contests-public-open .cp-contest-card--compact .cp-contest-my-numbers,
body.contests-public-open .cp-contest-card--compact .cp-contest-card__more{
  display:none;
}
body.contests-public-open .cp-contest-card--compact .cp-contest-card__footer{
  grid-template-columns:1fr;
}

body.contests-public-open .cp-contest-list{
  container-type:inline-size;
  container-name:contests-public-list;
}

@container contests-public-list (max-width:520px){
  body.contests-public-open .cp-contest-card__footer{
    grid-template-columns:1fr;
  }
  body.contests-public-open .cp-contest-card__more{
    padding-left:0;
    padding-top:8px;
    border-left:0;
    border-top:1px solid rgba(255,255,255,.08);
  }
  body.contests-public-open .cp-user-strip__metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* MQ: min-width 768px — site tablet tier (site-viewport-tiers.md) */
@media (min-width:768px){
  body.contests-public-open .cp-hero{ padding:20px 20px 16px!important; border-radius:24px!important; }
  body.contests-public-open .cp-contest-card__topbar{ padding:14px 14px 10px; }
  body.contests-public-open .cp-contest-card__preview{ padding:0 14px 12px; gap:12px; }
  body.contests-public-open .cp-contest-card__intro{ height:calc((100cqw - 12px) * 9 / 32); }
  body.contests-public-open .cp-contest-card__date-value{ font-size:10px; padding:6px 10px 7px; }
  body.contests-public-open .cp-contest-card__body{ padding:10px 14px 14px!important; }
}

@media (min-width:1024px){
  body.contests-public-open .cp-page{ max-width:767px; }
  body.contests-public-open .cp-contest-card__cta{ flex:0 1 auto!important; min-width:220px!important; }
}

body.contests-public-open .cp-contest-countdown{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 8px;
  padding:8px 10px;
  border-radius:12px;
  background:linear-gradient(135deg,rgba(255,138,0,.14),rgba(255,138,0,.06));
  border:1px solid rgba(255,138,0,.22);
}
body.contests-public-open .cp-contest-countdown__label{
  font-size:12px;
  color:rgba(255,255,255,.72);
}
body.contests-public-open .cp-contest-countdown__value{
  font-size:14px;
  font-weight:700;
  font-variant-numeric:tabular-nums;
  color:#ffb21a;
}

.cp-contest-countdown--feed-announce{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  min-height:220px;
  margin:0;
  padding:24px 16px;
  border-radius:16px;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(0,0,0,.35));
  border:1px solid rgba(255,255,255,.1);
  box-sizing:border-box;
}
.cp-contest-countdown--feed-announce .cp-contest-countdown__label{
  font-size:13px;
  color:rgba(255,255,255,.72);
}
.cp-contest-countdown--feed-announce .cp-contest-countdown__value{
  font-size:clamp(28px,8vw,40px);
  font-weight:700;
  font-variant-numeric:tabular-nums;
  color:#ffb21a;
  letter-spacing:.02em;
}
.contest-feed-countdown-wrap{
  width:100%;
  margin:0;
}
