/* Party contests additions, loaded after styles.css (the Carve-Off base). */
:root {
  --purple: #B48CFF; --purple-wash: #2A1F3D; --purple-line: #5B3F86; --purple-soft: #DCCBFF;
  --judge: #FFE29A; --judge-wash: #3A2E12; --judge-line: #6B5419;
}
.grow { flex: 1; min-width: 0; }
.mono { font-family: ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* contest kinds: each gets an accent */
.k-pumpkin { --accent: var(--orange); --wash: var(--orange-wash); --soft: var(--orange-soft); --tile: #1C1410; }
.k-costume { --accent: var(--purple); --wash: var(--purple-wash); --soft: var(--purple-soft); --tile: #1B1426; }
.k-other { --accent: var(--candle); --wash: var(--judge-wash); --soft: var(--judge); --tile: #1A1622; }
.eyebrow[class*="k-"] { color: var(--accent); }
.eyebrow[class*="k-"] .dot { background: var(--accent); }
.kicon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--tile); display: inline-flex; align-items: center; justify-content: center; }
.kicon svg { width: 32px; height: 32px; }
.kicon.sm { width: 38px; height: 38px; }
.kicon.sm svg { width: 28px; height: 28px; }
.kicon.big { width: 64px; height: 64px; border-radius: 16px; }
.kicon.big svg { width: 46px; height: 46px; }
.chip[class*="k-"][aria-pressed="true"] { border-color: var(--accent); background: var(--wash); color: var(--soft); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 700; }
.tagchip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 8px; border-radius: 17px; background: var(--surface); font-size: 14px; font-weight: 500; }
.tagchip svg { width: 20px; height: 20px; }

/* home */
.hero-art { display: flex; justify-content: center; align-items: flex-end; gap: 4px; height: 150px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 70%, rgba(255,150,40,.24) 0%, rgba(180,140,255,.08) 45%, rgba(20,16,28,0) 72%); }
.ha-side svg { width: 88px; height: 88px; }
.ha-main svg { width: 116px; height: 116px; margin-bottom: 16px; animation: flicker 4s ease-in-out infinite; }

/* new party: pick contests */
.kindcard { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; }
.kindcard b { display: block; font-family: var(--display); font-weight: 800; font-size: 18px; }
.kindcard small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.kindcard[aria-pressed="true"] { border: 1.5px solid var(--accent); background: var(--wash); }
.kindcard[aria-pressed="true"] small { color: var(--soft); }
.kindcard .tick { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #6B5B80; display: flex; align-items: center; justify-content: center; color: var(--bg); box-sizing: border-box; }
.kindcard[aria-pressed="true"] .tick { background: var(--accent); border-color: var(--accent); }
.catrow { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--surface-2); font-size: 15px; font-weight: 500; }
select.sel { flex: none; height: 40px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; }
.catrow.two { flex-wrap: wrap; row-gap: 8px; }
.catrow.two .grow { flex-basis: 100%; }
.catrow.two select.sel { flex: 1 1 0; min-width: 0; }
select.sel.judges { border: 1.5px solid var(--candle); background: var(--judge-wash); color: var(--judge); }

/* role bars */
.hostbar.crewbar { background: var(--purple-wash); border-color: var(--purple-line); }
.hostbar.crewbar span { color: var(--purple-soft); display: inline-flex; align-items: center; gap: 8px; }
.hostbar.judgebar { background: var(--judge-wash); border-color: var(--judge-line); min-height: 48px; }
.hostbar.judgebar span { color: var(--judge); display: inline-flex; align-items: center; gap: 8px; }
.backlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 700; margin: -6px 0 4px; }

/* party screen */
.live { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--purple-wash); border: 1px solid var(--purple-line); color: var(--text); text-decoration: none; }
.live small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--purple-soft); }
.live b { display: block; font-family: var(--display); font-weight: 800; font-size: 18px; }
.live > svg { color: var(--purple-soft); flex: none; }
.pulse { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 5px rgba(180,140,255,.22); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(180,140,255,.08); } }
.ccard { background: var(--surface); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.ccard .ctitle, .hcard b { display: block; font-family: var(--display); font-weight: 800; font-size: 19px; }
.ccard small, .hcard small { display: block; font-size: 13px; margin-top: 2px; }
.tag { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.tag svg { width: 13px; height: 13px; }
.tag.orange { background: var(--orange-wash); color: var(--orange-soft); }
.tag.purple, .tag.r-photographer { background: var(--purple-wash); color: var(--purple-soft); }
.tag.gold, .tag.r-judge, .tag.r-cohost { background: var(--judge-wash); color: var(--judge); }
.tag.r-host { background: var(--orange-wash); color: var(--orange-soft); }
.mine-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: var(--surface-2); color: var(--text); text-decoration: none; }
.mine-row .thumb, .joinrow .thumb { position: relative; flex: none; width: 60px; height: 60px; border-radius: 12px; overflow: hidden; background: var(--tile, #1C1410); display: block; }
.mine-row .thumb img, .joinrow .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mine-row .label { display: block; font-size: 11px; }
.mine-row b, .joinrow b { display: block; font-family: var(--display); font-weight: 600; font-size: 17px; }
.mine-row small, .joinrow small { display: block; font-size: 13px; color: var(--muted); }
.nopic { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--tile, #1B1426); }
.nopic svg { width: 46%; height: 46%; opacity: .85; }

/* entering */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; padding: 4px; border-radius: 14px; background: var(--surface); }
.seg-btn { height: 44px; border: none; border-radius: 10px; background: transparent; color: var(--text); font-weight: 500; font-size: 14px; }
.seg-btn[aria-pressed="true"] { background: var(--purple); color: #1B1426; font-weight: 700; }
.joinrow { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: var(--surface); }
.joinrow .thumb { width: 52px; height: 52px; }
.joinrow .btn.danger { height: 40px; width: 40px; padding: 0; justify-content: center; }
.okdot { position: absolute; right: 3px; bottom: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--purple); color: #1B1426; display: flex; align-items: center; justify-content: center; }
.okdot svg { width: 11px; height: 11px; }
.badge-official { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(20,16,28,.85); color: var(--purple-soft); display: flex; align-items: center; justify-content: center; }
.badge-official svg { width: 16px; height: 16px; }

/* voting */
.chip.judgetab { border: 1px dashed var(--judge-line); background: transparent; color: var(--judge); }
.chip.judgetab[aria-pressed="true"] { background: var(--judge); color: var(--bg); border-color: var(--judge); }
.lockbox { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--judge-wash); border: 1px solid var(--judge-line); color: var(--judge); font-size: 14px; line-height: 1.4; }
.lockbox > svg { flex: none; }
.hint-box.done { border-style: solid; border-color: var(--orange); color: var(--orange-soft); text-align: center; padding: 0 14px; }
.pthumb { flex: none; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; }
.winner .photo-wrap .nopic { border-radius: 50%; border: 4px solid var(--candle); }

/* host controls */
.roomcode { font-size: 24px; letter-spacing: 2px; color: var(--orange); }
.hcard { background: var(--surface); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 10px; border: 1.5px solid transparent; }
.hcard.ontv { border-color: var(--purple-line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.step { height: 36px; border-radius: 10px; border: 1px solid transparent; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 700; }
.step[aria-current="step"] { background: var(--orange-wash); border-color: var(--orange); color: var(--orange-soft); }
.hcard .btn { height: 48px; font-size: 16px; }
.hcard .btn.ghost.small, .hcard .btn.small { height: 40px; font-size: 14px; }
.btn.dashed { background: transparent; color: var(--text); border: 1.5px dashed #6B5B80; font-family: var(--body); font-weight: 700; font-size: 15px; height: 48px; }
.crewchip { display: inline-flex; align-items: center; border-radius: 20px; background: var(--surface); }
.crewname { min-height: 40px; padding: 0 6px 0 14px; border: none; background: none; color: var(--text); font-size: 14px; text-align: left; }
.crewname small { color: var(--muted); }
.crewchip.r-photographer b { color: var(--purple-soft); }
.crewchip.r-judge b, .crewchip.r-cohost b { color: var(--judge); }
.chipx { width: 40px; height: 40px; border: none; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.whocard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); color: var(--text); text-decoration: none; }
.whocard b { display: block; }
.whocard small { display: block; font-size: 13px; color: var(--muted); }
.whocard > svg { color: var(--muted); flex: none; }
.faces { display: flex; flex: none; }
.face { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--surface); color: var(--bg); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; margin-left: -10px; }
.face:first-child { margin-left: 0; }
.face.f0 { background: var(--orange); } .face.f1 { background: var(--purple); } .face.f2 { background: var(--candle); }
.face.f3 { background: #8FA34A; } .face.f4 { background: var(--text); }

/* crew sheet */
.roles { margin: 0; padding: 0; border: none; display: flex; flex-direction: column; gap: 8px; }
.roles legend { padding: 0; margin-bottom: 8px; }
.rolecard { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--bg); border: 1.5px solid var(--line); cursor: pointer; }
.rolecard:has(input:checked) { background: var(--orange-wash); border-color: var(--orange); }
.rolecard input { margin: 3px 0 0; width: 20px; height: 20px; accent-color: var(--orange); flex: none; }
.rolecard b { display: block; font-size: 16px; }
.rolecard small { display: block; font-size: 13px; line-height: 1.45; color: var(--muted); margin-top: 2px; }
.rolecard.r-photographer b { color: var(--purple-soft); }
.rolecard.r-judge b, .rolecard.r-cohost b { color: var(--judge); }
.linkcard { background: var(--purple-wash); border: 1px solid var(--purple-line); display: flex; flex-direction: column; gap: 10px; }
.sheet-card { overflow-y: auto; }
.sheet-card .input { background: var(--bg); }

/* who's here */
.person { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--surface-2); }
.person b { display: block; font-size: 15px; }
.person small { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--line); color: var(--text); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.avatar.r-host { background: var(--orange); color: var(--bg); }
.avatar.r-cohost, .avatar.r-judge { background: var(--candle); color: var(--bg); }
.avatar.r-photographer { background: var(--purple); color: var(--bg); }
.latercard { border-radius: 18px; border: 1.5px dashed var(--line); padding: 14px; }
.latercard b { color: var(--muted); }

/* runway (photographer's phone) */
.nowcard { background: var(--surface); border-radius: 22px; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.nowpic { position: relative; height: 240px; border-radius: 16px; overflow: hidden; background: #1B1426; }
.nowpic > img { width: 100%; height: 100%; object-fit: cover; }
.pill { position: absolute; top: 10px; padding: 6px 10px; border-radius: 10px; font-size: 12px; font-weight: 800; letter-spacing: .5px; display: inline-flex; align-items: center; gap: 6px; z-index: 2; }
.pill svg { width: 14px; height: 14px; }
.pill.purple { left: 10px; background: var(--purple); color: #1B1426; text-transform: uppercase; }
.pill.dark { right: 10px; background: rgba(20,16,28,.85); color: var(--muted); }
.pill.light { right: 10px; background: var(--text); color: var(--bg); }
.grid-now { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.grid-now .btn.secondary { width: auto; padding: 0 16px; }
.shoot { cursor: pointer; }
label.btn.ghost.small.shoot { width: 44px; padding: 0; flex: none; }

/* TV runway */
.spot.runway .pill.big { top: 22px; font-size: 17px; padding: 9px 15px; }
.spot.runway .pill.big.purple { left: 22px; }
.spot.runway .pill.big.light { right: 22px; }
.spot.runway .pill.big svg { width: 18px; height: 18px; }
.spot.flash::after { content: ""; position: absolute; inset: 0; background: #fff; animation: flash .9s ease-out forwards; pointer-events: none; z-index: 3; }
@keyframes flash { from { opacity: .9; } to { opacity: 0; } }
.spot.flash { box-shadow: 0 0 0 4px var(--text), 0 0 60px rgba(246,239,230,.35); }
.slide .fg.nopic { position: absolute; inset: 0; }
.nextstrip { flex: none; display: flex; align-items: center; gap: 12px; overflow: hidden; }
.nextitem { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 14px; background: var(--surface); }
.nextitem b { font-size: 17px; white-space: nowrap; }
.nthumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; display: block; }
.nthumb img { width: 100%; height: 100%; object-fit: cover; }
.strip .thumb .nopic svg { width: 60%; height: 60%; }

/* landing (text version) */
.l-steps { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 40px; }
@media (min-width: 760px) { .l-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.l-stepcard h3 { font-family: var(--display); font-weight: 800; font-size: 22px; margin-top: 12px; }
.l-stepcard p, .l-kind p { color: var(--muted); margin: 8px 0 0; line-height: 1.55; }
.l-kinds { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 64px; }
@media (min-width: 760px) { .l-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.l-kind { text-align: center; }
.l-kind .kicon { margin: 0 auto; }
.l-kind h3 { font-family: var(--display); font-weight: 800; font-size: 20px; margin-top: 12px; }
.l-grid { margin-top: 64px; }
.l-grid .ic svg { width: 22px; height: 22px; }

/* Photos: most people shoot portrait, so show whole photos and favour the top (faces). */
.photo.has { height: auto; min-height: 200px; display: block; }
.photo.has img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; }
.grid .pcard .img { aspect-ratio: 4 / 5; }
.grid.k-costume .pcard .img { aspect-ratio: 3 / 4; }
.pcard .img img, .mine-card .thumb img, .mine-row .thumb img, .joinrow .thumb img, .pthumb img, .nthumb img,
.strip .thumb img, .claim .thumb img, .winner .photo-wrap img { object-position: 50% 22%; }
.nowpic { height: auto; aspect-ratio: 3 / 4; max-height: 62vh; }
.nowpic > img { object-fit: contain; }

/* Voting: the guided ballot */
.ballot-hero { text-align: center; padding: 14px 0 4px; }
.ballot-hero h1 { font-size: 34px; margin-top: 8px; }
.ballot-hero p { margin: 10px auto 0; max-width: 34ch; line-height: 1.5; }
.catcard { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1.5px solid transparent; color: var(--text); text-align: left; }
.catcard b { display: block; font-family: var(--display); font-weight: 700; font-size: 17px; }
.catcard small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.catcard > svg { flex: none; color: var(--muted); }
.catcard .cnum { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.catcard.done { border-color: var(--line); }
.catcard.done .cnum { background: var(--orange); color: var(--orange-ink); }
.catcard.done small { color: var(--orange-soft); }
.catcard.locked { background: transparent; border: 1.5px dashed var(--judge-line); }
.catcard.locked .cnum { background: var(--judge-wash); color: var(--judge); }
.catcard.locked small { color: var(--judge); }
.cthumb { flex: none; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; }
.cthumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.ballot-progress { display: flex; gap: 4px; margin-top: 6px; }
.ballot-progress i { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-2); }
.ballot-progress i.done { background: var(--orange); }
.ballot-progress i.now { background: var(--text); }
.ballot-q { font-size: 30px; margin-top: 6px; }
button.backlink { background: none; border: none; padding: 0; margin: 0; }
.sticky-bottom .linkbtn { align-self: center; }
.pinshow { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: 6px; color: var(--orange); line-height: 1; }

/* Live results (host and co-hosts) */
.livecat { padding: 14px; }
.livecat > .row b { font-family: var(--display); font-size: 17px; }
.liverow { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.lthumb { flex: none; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; display: block; }
.lthumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.liverow .bar { margin-top: 5px; }
.liverow.lead .bar > i { background: var(--orange); }
.liverow.lead .lname { color: var(--orange-soft); font-weight: 700; }
.lname { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.lname svg { width: 14px; height: 14px; flex: none; }
