/* contest.css — social video contest landing */

.contest-page .wrap{
  width: var(--measure, min(1520px, 93vw));
  max-width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter, clamp(18px, 4vw, 26px));
}

/* ── Hero ── */
.ct-hero{
  margin-top: 56px;
  padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 6vw, 72px);
  background:
    radial-gradient(80% 60% at 10% 20%, color-mix(in srgb, var(--brand-violet) 12%, transparent), transparent 55%),
    var(--surface-0);
  overflow: hidden;
}
.ct-hero__grid{
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.ct-badges{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ct-badge{
  display: inline-flex; align-items: center;
  padding: 6px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 800;
  letter-spacing: .04em;
  background: rgb(var(--chip-rgb) / .7);
  border: 1px solid var(--hair-0);
  color: var(--ink-0);
}
.ct-badge--grad{
  background: var(--brand-grad);
  color: #fff; border: 0;
}
.ct-hero__title{
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.02;
  color: var(--ink-0);
  margin: 0 0 16px;
}
.ct-hero__title em{
  font-style: italic;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ct-hero__lead{
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.65;
  color: var(--ink-soft-0);
  max-width: 38ch;
  margin: 0 0 24px;
}
.ct-hero__actions{
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 28px;
}
.ct-btn-primary{ gap: 8px; }
.ct-hero__steps-inline{
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 14px 20px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-soft-0);
}
.ct-hero__steps-inline li{
  display: inline-flex; align-items: center; gap: 6px;
}
.ct-hero__steps-inline svg{ width: 14px; height: 14px; color: var(--brand-violet); }

/* dual vertical reels */
.ct-hero__reel{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  height: min(560px, 70vh);
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
}
.ct-reel{
  display: flex; flex-direction: column; gap: 14px;
  animation: ct-marquee-y 28s linear infinite;
}
.ct-reel--down{ animation-direction: reverse; animation-duration: 32s; }
@keyframes ct-marquee-y{
  from{ transform: translateY(0); }
  to{ transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .ct-reel{ animation: none; }
}

.ct-vcard{
  flex: 0 0 auto;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface-0);
  border: 1px solid var(--hair-0);
  box-shadow: var(--sh-2);
}
.ct-vcard__media{
  position: relative;
  aspect-ratio: 9 / 14;
  background: rgb(var(--chip-rgb));
}
.ct-vcard__media img{
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ct-vcard__play{
  position: absolute; inset: 0; margin: auto;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgb(255 255 255 / .92);
  color: var(--ink-0);
  display: grid; place-items: center;
  box-shadow: var(--sh-2);
}
.ct-vcard__play svg{ width: 18px; height: 18px; margin-left: 2px; }
.ct-vcard__tag{
  position: absolute; left: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: 999px;
  background: rgb(18 14 28 / .72); color: #fff;
  font-size: 11px; font-weight: 700;
  backdrop-filter: blur(8px);
}
.ct-vcard__tag svg{ width: 12px; height: 12px; }
.ct-vcard__meta{
  padding: 10px 12px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.ct-vcard__meta b{ font-size: 13px; color: var(--ink-0); }
.ct-vcard__meta span{ font-size: 11.5px; color: var(--ink-soft-0); }

/* ── Process ── */
.ct-process{
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--hair-0);
  background: var(--surface-0);
}
.ct-sec-head{ margin-bottom: clamp(24px, 3vw, 36px); }
.ct-sec-head--row{
  display: flex; flex-wrap: wrap;
  align-items: flex-end; justify-content: space-between; gap: 12px;
}
.ct-sec-note{ font-size: 13px; color: var(--ink-soft-0); font-weight: 600; }

.ct-process__stage{
  min-height: 120px;
  display: grid; place-items: center;
  text-align: center;
  margin-bottom: 36px;
  padding: 28px 16px;
  border-radius: var(--r-xl);
  background: rgb(var(--chip-rgb) / .45);
  border: 1px solid var(--hair-0);
}
.ct-vanish{
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: var(--ink-0);
  max-width: 22em;
  margin: 0 auto 16px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.ct-vanish.is-in{ opacity: 1; transform: none; }
.ct-vanish.is-out{ opacity: 0; transform: translateY(-10px); }
.ct-process__dots{
  display: flex; gap: 8px; justify-content: center;
}
.ct-process__dots button{
  width: 8px; height: 8px; border-radius: 50%; border: 0;
  padding: 0; background: var(--hair-0); cursor: pointer;
}
.ct-process__dots button.is-on{
  background: var(--brand-violet);
  transform: scale(1.25);
}

.ct-process__cards{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.ct-step-card{
  position: relative;
  padding: 20px 16px 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--hair-0);
  background: var(--surface-0);
  box-shadow: var(--sh-1);
}
.ct-step-card__n{
  position: absolute; top: 12px; right: 14px;
  font-size: 11px; font-weight: 800;
  letter-spacing: .12em; color: var(--ink-soft-0);
}
.ct-step-card__icon{
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand-violet) 12%, transparent);
  color: var(--brand-violet);
  margin-bottom: 12px;
}
.ct-step-card__icon svg{ width: 20px; height: 20px; }
.ct-step-card h3{
  font-size: 15px; font-weight: 800;
  margin: 0 0 8px; color: var(--ink-0);
}
.ct-step-card p{
  font-size: 13px; line-height: 1.55;
  color: var(--ink-soft-0); margin: 0;
}

/* ── Form ── */
.ct-enter{
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--hair-0);
  background: rgb(var(--chip-rgb) / .28);
}
.ct-enter__grid{
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.ct-enter__lead{
  font-size: 15px; line-height: 1.65;
  color: var(--ink-soft-0); max-width: 36ch;
  margin: 12px 0 18px;
}
.ct-enter__tips{
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 8px;
}
.ct-enter__tips li{
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-0);
}
.ct-enter__tips svg{ width: 16px; height: 16px; color: var(--brand-violet); }

.ct-form{
  padding: 22px 20px 24px;
  border-radius: var(--r-xl);
  border: 1px solid var(--hair-0);
  background: var(--surface-0);
  box-shadow: var(--sh-2);
}
.ct-form fieldset{
  border: 0; margin: 0 0 18px; padding: 0 0 16px;
  border-bottom: 1px solid var(--hair-0);
}
.ct-form legend{
  font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft-0); margin-bottom: 12px;
}
.ct-form label{
  display: grid; gap: 6px;
  font-size: 12px; font-weight: 700;
  color: var(--ink-0); margin-bottom: 12px;
}
.ct-form input,
.ct-form select{
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--hair-0);
  background: var(--surface-0);
  color: var(--ink-0);
  font-size: 14px; font-weight: 500;
}
.ct-form input:focus,
.ct-form select:focus{
  outline: none;
  border-color: color-mix(in srgb, var(--brand-violet) 45%, var(--hair-0));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-violet) 16%, transparent);
}
.ct-form__row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ct-form__file span{
  font-size: 11px; font-weight: 600; color: var(--ink-soft-0);
}
.ct-form__check{
  display: flex !important; flex-direction: row; align-items: flex-start;
  gap: 10px; font-size: 13px; font-weight: 600;
  margin: 8px 0 16px;
}
.ct-form__check input{ width: auto; margin-top: 3px; }
.ct-form__check a{ color: var(--brand-violet); }
.ct-form__submit{ width: 100%; justify-content: center; gap: 8px; }
.ct-form__note{
  margin: 12px 0 0; font-size: 12px;
  color: var(--ink-soft-0); text-align: center;
}

/* ── Showcase marquee ── */
.ct-showcase{
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--hair-0);
  background: var(--surface-0);
  overflow: hidden;
}
.ct-marquee{ margin-top: 8px; overflow: hidden; }
.ct-marquee__track{
  display: flex; gap: 14px; width: max-content;
  animation: ct-marquee-x 40s linear infinite;
}
@keyframes ct-marquee-x{
  from{ transform: translateX(0); }
  to{ transform: translateX(-33.333%); }
}
@media (prefers-reduced-motion: reduce){
  .ct-marquee__track{ animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}
.ct-show-card{
  position: relative;
  flex: 0 0 180px;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--hair-0);
  text-decoration: none;
  color: #fff;
}
.ct-show-card img{ width: 100%; height: 100%; object-fit: cover; }
.ct-show-card__play{
  position: absolute; inset: 0; margin: auto;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgb(255 255 255 / .9); color: var(--ink-0);
  display: grid; place-items: center;
}
.ct-show-card__play svg{ width: 14px; height: 14px; }
.ct-show-card__cap{
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px;
  background: linear-gradient(transparent, rgb(18 14 28 / .85));
  font-size: 12px;
}

/* ── Leaderboard ── */
.ct-board{
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--hair-0);
  background: rgb(var(--chip-rgb) / .25);
}
.ct-board__table{
  display: grid; gap: 10px;
  max-width: 720px; margin: 0 auto;
}
.ct-rank{
  display: grid;
  grid-template-columns: 48px 48px 1fr auto auto;
  gap: 12px; align-items: center;
  padding: 12px 14px;
  border-radius: var(--r-lg);
  border: 1px solid var(--hair-0);
  background: var(--surface-0);
}
.ct-rank--top{
  border-color: color-mix(in srgb, var(--brand-violet) 28%, var(--hair-0));
  box-shadow: var(--sh-1);
}
.ct-rank__n{ font-size: 18px; font-weight: 800; text-align: center; }
.ct-rank img{
  width: 48px; height: 48px; border-radius: 12px;
  object-fit: cover; background: rgb(var(--chip-rgb));
}
.ct-rank__info b{ display: block; font-size: 14px; color: var(--ink-0); }
.ct-rank__info span{ font-size: 12px; color: var(--ink-soft-0); }
.ct-rank__score{
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 700; color: var(--ink-0);
}
.ct-rank__score svg{ width: 14px; height: 14px; color: var(--brand-flame); }
.ct-rank__link{
  font-size: 12px; font-weight: 700;
  color: var(--brand-violet); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.ct-rank__link svg{ width: 12px; height: 12px; }

/* modal */
.ct-modal{
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 20px;
  background: rgb(18 14 28 / .55);
  backdrop-filter: blur(4px);
}
.ct-modal[hidden]{ display: none !important; }
.ct-modal__card{
  position: relative;
  width: min(400px, 100%);
  padding: 28px 24px 24px;
  border-radius: var(--r-xl);
  background: var(--surface-0);
  border: 1px solid var(--hair-0);
  text-align: center;
  box-shadow: var(--sh-3);
}
.ct-modal__close{
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: rgb(var(--chip-rgb));
  cursor: pointer; display: grid; place-items: center;
  color: var(--ink-0);
}
.ct-modal__icon{
  width: 52px; height: 52px; margin: 0 auto 14px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-violet) 14%, transparent);
  color: var(--brand-violet);
  display: grid; place-items: center;
}
.ct-modal__icon svg{ width: 26px; height: 26px; }
.ct-modal__card h3{
  font-size: 20px; font-weight: 800; margin: 0 0 8px; color: var(--ink-0);
}
.ct-modal__card p{
  font-size: 14px; line-height: 1.55; color: var(--ink-soft-0); margin: 0 0 18px;
}

@media (max-width: 960px){
  .ct-hero__grid{ grid-template-columns: 1fr; }
  .ct-hero__reel{ height: 360px; max-width: 340px; margin-inline: auto; }
  .ct-process__cards{ grid-template-columns: 1fr 1fr; }
  .ct-enter__grid{ grid-template-columns: 1fr; }
  .ct-form__row{ grid-template-columns: 1fr; }
  .ct-rank{
    grid-template-columns: 40px 40px 1fr;
    grid-template-rows: auto auto;
  }
  .ct-rank__score{ grid-column: 3; }
  .ct-rank__link{ grid-column: 1 / -1; }
}
@media (max-width: 560px){
  .ct-process__cards{ grid-template-columns: 1fr; }
  .ct-hero__reel{ grid-template-columns: 1fr; height: 280px; }
  .ct-reel--down{ display: none; }
}