/* =========================================================
   VP+ AD GAMES — gated portal
   Depends on styles.css for tokens, buttons, .fx and .prz cards.
   ========================================================= */

/* =========================================================
   AUTH GATE
   ========================================================= */
.gate {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  overflow: hidden;
}
.gate__card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 470px;
  padding: 2.5rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--card), var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card), 0 0 90px -40px hsl(180 74% 63% / .5);
}
.gate__logo { margin: 0 auto 1.5rem; height: auto; }
.gate__chip { margin-bottom: 1rem; }
.gate__title {
  margin: 0 0 .8rem;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
}
.gate__round {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: .28rem 1rem .28rem 1.28rem;   /* extra left offsets the tracking */
  border-radius: 999px;
  border: 1px solid hsl(180 74% 63% / .35);
  background: hsl(180 74% 63% / .08);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.gate__sub {
  margin: 0 0 1.75rem;
  color: var(--fg-muted);
  font-size: .93rem;
  text-wrap: balance;
}
.gate__btn { width: 100%; }
.gate__msg {
  margin: 1rem 0 0;
  min-height: 1.2em;
  font-size: .85rem;
  color: var(--coral);
}
.gate__msg:empty { margin: 0; min-height: 0; }

.gate__points {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border-soft);
  display: grid;
  gap: .7rem;
  text-align: left;
}
.gate__points li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .84rem;
  color: var(--fg-dim);
}
.gate__points i {
  flex: none;
  margin-top: .45em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px 1px hsl(180 74% 63% / .8);
}
.gate__points a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

.gate__preview {
  position: absolute;
  z-index: 3;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  padding: .35rem .9rem;
  border-radius: 999px;
  border: 1px solid hsl(43 84% 62% / .35);
  background: hsl(43 84% 62% / .1);
  color: var(--gold);
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}

/* =========================================================
   PORTAL CHROME
   ========================================================= */
.pt { min-height: 100svh; display: flex; flex-direction: column; }

.pt__bar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: .8rem 0;
  background: hsl(240 20% 4% / .8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.pt__bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.pt__mark { display: inline-flex; align-items: center; gap: .7rem; min-width: 0; }
.pt__mark img { height: 24px; width: auto; flex: none; }
.pt__div { flex: none; width: 1px; height: 17px; background: hsl(0 0% 100% / .16); }
.pt__mark b { font-size: .9rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }

.pt__user { display: flex; align-items: center; gap: .65rem; }
.pt__deadline {
  padding: .3rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: hsl(240 15% 8% / .7);
  font-size: .74rem;
  font-weight: 600;
  color: var(--fg-muted);
  white-space: nowrap;
}
.pt__deadline.is-urgent { border-color: hsl(43 84% 62% / .4); color: var(--gold); }
.pt__deadline.is-over   { border-color: hsl(0 72% 71% / .4);  color: var(--coral); }

.pt__av {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--card-2);
  border: 1px solid var(--border);
  font-size: .7rem;
  font-weight: 700;
  color: var(--fg-muted);
}
.pt__av img { width: 100%; height: 100%; object-fit: cover; }
.pt__name { font-size: .84rem; font-weight: 600; color: var(--fg-muted); }
@media (max-width: 680px) {
  .pt__name { display: none; }
  .pt__deadline { font-size: .68rem; padding: .28rem .6rem; }
}
/* below this the wordmark, the rule and the title cannot all fit beside
   the avatar and Sign out — keep the logo, drop the rest */
@media (max-width: 520px) {
  .pt__mark b, .pt__div { display: none; }
}

/* ── tabs ── */
.pt__tabs { border-bottom: 1px solid var(--border-soft); background: hsl(240 20% 3.4%); }
.pt__tabs-row { position: relative; display: flex; gap: .4rem; }
.pt__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .95rem .9rem;
  background: none;
  border: 0;
  font-size: .88rem;
  font-weight: 600;
  color: var(--fg-dim);
  transition: color .2s ease;
}
.pt__tab svg { width: 16px; height: 16px; }
.pt__tab:hover { color: var(--fg-muted); }
.pt__tab[aria-selected="true"] { color: var(--fg); }
.pt__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px 1px hsl(160 76% 56% / .9);
}
.pt__ink {
  position: absolute;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--mint));
  box-shadow: 0 0 12px hsl(180 74% 63% / .8);
  transition: left .28s cubic-bezier(.4,0,.2,1), width .28s cubic-bezier(.4,0,.2,1);
}

.pt__main { flex: 1; padding: clamp(2rem, 5vh, 3.25rem) 0 4rem; }
.pt__head { margin-bottom: 2rem; }
.pt__title {
  margin: 0 0 .5rem;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
}
.pt__sub { margin: 0; max-width: 60ch; color: var(--fg-muted); font-size: .95rem; }
.pt__fine {
  margin: 2rem 0 0;
  font-size: .8rem;
  color: var(--fg-dim);
  text-align: center;
}

/* =========================================================
   SUBMIT SLOTS — one per challenge, independent of each other
   ========================================================= */
.slots {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 940px) { .slots { grid-template-columns: 1fr 1fr; } }

.slot {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, var(--card), var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}
.slot[data-accent="cyan"] { --accent: hsl(180 74% 63%); }
.slot[data-accent="mint"] { --accent: hsl(160 76% 56%); }
.slot.is-filled { border-color: color-mix(in oklab, var(--accent) 40%, var(--border)); }
.slot::before {
  content: "";
  position: absolute;
  inset: -50% 50% 70% -50%;
  background: radial-gradient(ellipse at center, color-mix(in oklab, var(--accent) 26%, transparent), transparent 65%);
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}

/* ── banner header ──
   The artwork carries the style brief, so the card leads with it and
   the name sits on top of a scrim instead of taking its own row. */
.slot__banner {
  position: relative;
  aspect-ratio: 1200 / 460;
  overflow: hidden;
  background: var(--bg-elev);
}
.slot__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slot__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    hsl(240 20% 4% / .35) 0%,
    hsl(240 20% 4% / .1) 35%,
    hsl(240 20% 4% / .72) 78%,
    hsl(240 20% 4% / .94) 100%);
}
.slot__label {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: .9rem;
}
.slot__name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
  text-shadow: 0 2px 12px hsl(240 20% 4% / .9);
}
.slot__tagline {
  margin: 0;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  text-shadow: 0 2px 10px hsl(240 20% 4% / .9);
}
.slot__state {
  position: absolute;
  top: .85rem;
  right: .85rem;
  padding: .28rem .7rem;
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  border: 1px solid hsl(0 0% 100% / .18);
  background: hsl(240 20% 4% / .68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: hsl(0 0% 100% / .75);
  white-space: nowrap;
}
.slot__state.is-in {
  border-color: hsl(160 76% 56% / .5);
  background: hsl(160 76% 56% / .18);
  color: hsl(160 76% 76%);
}
.slot__body { padding: 1.35rem 1.5rem 1.5rem; }

/* ── form ── */
.f__editing {
  display: block;
  margin-bottom: 1.1rem;
  padding: .5rem .85rem;
  border-radius: var(--radius-sm);
  border: 1px solid hsl(43 84% 62% / .3);
  background: hsl(43 84% 62% / .08);
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
}
.f__field { margin-bottom: 1.1rem; }
.f__field label {
  display: block;
  margin-bottom: .45rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--fg-muted);
}
.f__field label em { font-style: normal; color: var(--fg-dim); font-weight: 400; }

.f__input {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 0 .85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: hsl(240 20% 3%);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.f__input svg { flex: none; width: 16px; height: 16px; color: var(--fg-dim); }
.f__input input {
  flex: 1;
  min-width: 0;
  padding: .8rem 0;
  background: none;
  border: 0;
  color: var(--fg);
  font-size: .9rem;
}
.f__input input::placeholder { color: hsl(240 5% 40%); }
.f__input input:focus { outline: none; }
.f__input:focus-within {
  border-color: hsl(180 74% 63% / .55);
  box-shadow: 0 0 0 3px hsl(180 74% 63% / .12);
}

.f__field textarea {
  width: 100%;
  padding: .8rem .85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: hsl(240 20% 3%);
  color: var(--fg);
  font-size: .9rem;
  resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.f__field textarea::placeholder { color: hsl(240 5% 40%); }
.f__field textarea:focus {
  outline: none;
  border-color: hsl(180 74% 63% / .55);
  box-shadow: 0 0 0 3px hsl(180 74% 63% / .12);
}

.f__hint { display: block; margin-top: .4rem; font-size: .75rem; color: var(--fg-dim); }
.f__msg  { display: block; margin-top: .4rem; font-size: .75rem; color: var(--coral); }
.f__msg:empty { display: none; }
.f__field.is-err .f__input,
.f__field.is-err textarea { border-color: hsl(0 72% 71% / .6); }
.f__count { display: block; margin-top: .35rem; text-align: right; font-size: .72rem; color: var(--fg-dim); }

/* bot trap: humans never see or fill this */
.f__hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.f__submit { width: 100%; margin-top: .3rem; }

/* quiet confirmation of whose entry this is, since they never type it */
.f__as {
  margin: .8rem 0 0;
  text-align: center;
  font-size: .76rem;
  color: var(--fg-dim);
}
.f__as b { color: var(--fg-muted); font-weight: 600; }
.f__alert {
  margin: .9rem 0 0;
  padding: .7rem .9rem;
  border-radius: var(--radius-sm);
  border: 1px solid hsl(0 72% 71% / .35);
  background: hsl(0 72% 71% / .08);
  font-size: .82rem;
  color: var(--coral);
}
.f__cancel {
  display: block;
  width: 100%;
  margin-top: .8rem;
  padding: .5rem;
  background: none;
  border: 0;
  font-size: .8rem;
  color: var(--fg-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.f__cancel:hover { color: var(--fg-muted); }

/* ── receipt ── */
.r__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.r__ok {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .8rem .35rem .45rem;
  border-radius: 999px;
  border: 1px solid hsl(160 76% 56% / .4);
  background: hsl(160 76% 56% / .1);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--mint);
}
.r__ok i {
  display: grid;
  place-items: center;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--mint);
}
.r__ok svg { width: 11px; height: 11px; }
.r__when { font-size: .74rem; color: var(--fg-dim); }

.r__player {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 1.1rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}
.r__player iframe { width: 100%; height: 100%; border: 0; }
.r__player.is-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  aspect-ratio: 16 / 7;
  background: hsl(240 20% 3%);
  text-align: center;
  padding: 1.25rem;
}
.r__player.is-link span { font-size: .84rem; color: var(--fg-dim); }
.r__player.is-link a {
  padding: .5rem 1rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
}
.r__player.is-link a:hover { background: color-mix(in oklab, var(--accent) 18%, transparent); }

.r__meta {
  margin: 0 0 1.25rem;
  display: grid;
  gap: .9rem;
  grid-template-columns: 1fr 1fr;
  font-size: .84rem;
}
.r__meta > div { min-width: 0; }
.r__meta .wide { grid-column: 1 / -1; }
.r__meta dt {
  margin-bottom: .2rem;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.r__meta dd { margin: 0; color: var(--fg); overflow-wrap: anywhere; }
.r__meta dd a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.r__at {
  color: hsl(235 86% 78%);
  font-size: .82em;
  font-weight: 600;
}

.r__controls { display: flex; gap: .6rem; flex-wrap: wrap; }
.r__btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: hsl(0 0% 100% / .03);
  font-size: .82rem;
  font-weight: 600;
  color: var(--fg);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.r__btn svg { width: 14px; height: 14px; }
.r__btn:hover:not(:disabled) { background: hsl(0 0% 100% / .07); border-color: hsl(240 10% 25%); }
.r__btn:disabled { opacity: .55; cursor: not-allowed; }
.r__btn.is-danger { color: var(--coral); border-color: hsl(0 72% 71% / .3); }
.r__btn.is-danger:hover:not(:disabled) { background: hsl(0 72% 71% / .1); border-color: hsl(0 72% 71% / .5); }
.r__btn.is-solid { background: hsl(0 72% 71% / .16); border-color: hsl(0 72% 71% / .5); }

.r__confirm {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid hsl(0 72% 71% / .3);
  background: hsl(0 72% 71% / .06);
}
.r__confirm p { margin: 0 0 .8rem; font-size: .84rem; color: var(--fg-muted); }
.r__confirm p b { color: var(--fg); }
.r__confirm-row { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ── empty slot CTA ── */
.slot__empty { text-align: center; padding: .5rem 0 .25rem; }
.slot__empty p { margin: 0 0 1.1rem; font-size: .88rem; color: var(--fg-muted); }

/* =========================================================
   PRIZES TAB
   ========================================================= */
.prz__note {
  max-width: 720px;
  margin: 2.5rem auto 0;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
}
.prz__note h3 {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin: 0 0 .7rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.prz__when {
  padding: .22rem .7rem;
  border-radius: 999px;
  border: 1px solid hsl(180 74% 63% / .35);
  background: hsl(180 74% 63% / .08);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
}
.prz__note p { margin: 0 0 .8rem; font-size: .88rem; color: var(--fg-muted); }
.prz__note p:last-child { margin-bottom: 0; }
