/* Show & Shine voting page. One dark "garage at night" world so the photos pop. */
:root {
  --bg: #12100E;
  --surface: #1D1A17;
  --raised: #29251F;
  --line: #3B352E;
  --text: #F5EFE6;
  --muted: #A99F93;
  --accent: #FF7A1A;
  --stripe: #E5383B;
  --like: #34D27F;
  --pass: #FF5263;
  --fave: #FFC23D;
  --on-accent: #1B0F06;
  --on-like: #06170D;
  --font-display: "Racing Sans One", "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-ui: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", sans-serif-condensed, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 400 16px/1.45 var(--font-body);
  overflow: hidden; overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
button, a.btn { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.noscript { padding: 24px; }
svg.i { width: 22px; height: 22px; flex: none; }

.app { height: 100%; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); }

/* Header */
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; }
.brand { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand .event { font: 700 12px/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.brand .title { font: 400 28px/1.05 var(--font-display); letter-spacing: .01em; overflow-wrap: anywhere; }
.stripes { display: flex; gap: 3px; margin-top: 4px; }
.stripes i { width: 22px; height: 4px; border-radius: 2px; }
.stripes i:nth-child(1) { background: var(--fave); }
.stripes i:nth-child(2) { background: var(--accent); }
.stripes i:nth-child(3) { background: var(--stripe); }
.top-right { display: flex; align-items: center; gap: 6px; flex: none; }
.count { font: 700 17px/1 var(--font-ui); color: var(--muted); font-variant-numeric: tabular-nums; padding-right: 6px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.icon-btn svg { width: 20px; height: 20px; }
.progress { height: 3px; margin: 0 16px; background: var(--line); border-radius: 2px; overflow: hidden; flex: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }

.ribbon { margin: 10px 16px 0; padding: 8px 12px; border: 1px dashed var(--fave); border-radius: 12px; font-size: 13px; line-height: 1.35; color: var(--fave); }
.status { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; min-height: 44px; margin: 0 16px; padding: 4px 0; font-size: 14px; line-height: 1.3; color: var(--muted); text-align: center; text-wrap: balance; }
.status .ok { color: var(--like); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.status .ok svg { width: 18px; height: 18px; }
.pips { display: inline-flex; gap: 4px; }
.pips i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.pips i.on { background: var(--accent); }

/* Deck */
.deck-wrap { position: relative; flex: 1; min-height: 0; margin: 0 14px; }
.deck { position: absolute; inset: 0 0 12px 0; }
.card {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: #0A0908;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06);
  touch-action: none; user-select: none; -webkit-user-select: none;
  transform-origin: 50% 100%; will-change: transform;
}
.card:not(.top) { pointer-events: none; }
.card img { -webkit-user-drag: none; user-select: none; }
.photo, .photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo .bg { inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(28px) saturate(1.3) brightness(.7); }
.photo .fg { object-fit: contain; object-position: 50% 40%; }
.shade { position: absolute; inset: auto 0 0; height: 58%; background: linear-gradient(to top, rgba(8, 7, 6, .94), rgba(8, 7, 6, .6) 45%, rgba(8, 7, 6, 0)); pointer-events: none; }
.bars { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 5px; }
.bars i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .32); }
.bars i.on { background: #fff; }
.chip {
  position: absolute; top: 24px; left: 14px; display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px; background: rgba(10, 9, 8, .6); border: 1px solid rgba(255, 255, 255, .16);
  font: 700 13px/1.1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--text);
}
.stamp {
  position: absolute; top: 70px; padding: 2px 12px; border: 4px solid currentColor; border-radius: 10px;
  font: 800 42px/1.1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase;
  opacity: 0; pointer-events: none; transition: opacity .18s; background: rgba(10, 9, 8, .25);
}
.card.dragging .stamp { transition: none; }
.stamp.like { left: 18px; color: var(--like); transform: rotate(-14deg); }
.stamp.pass { right: 18px; color: var(--pass); transform: rotate(14deg); }
.stamp.fave { left: 50%; top: 36%; color: var(--fave); font-size: 36px; transform: translate(-50%, -50%) rotate(-8deg); }
.info { position: absolute; left: 18px; right: 14px; bottom: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: end; }
.info > div { min-width: 0; }
.name { margin: 0; font: 800 32px/1 var(--font-ui); letter-spacing: .01em; text-wrap: balance; overflow-wrap: anywhere; }
.meta { margin: 6px 0 0; font-size: 15px; color: var(--text); }
.owner { margin: 2px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.info-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .28); background: rgba(10, 9, 8, .5); color: var(--text); }

/* Loading card */
.card.skeleton { background: var(--surface); }
.card.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .05) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* End of deck and messages */
.done { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 8px 4px 20px; overflow-y: auto; }
.done h2 { margin: 0; font: 400 40px/1.05 var(--font-display); text-wrap: balance; }
.done p { margin: 0; color: var(--muted); max-width: 46ch; }
.fave-pick { display: flex; align-items: center; gap: 14px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.fave-pick img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; background: #000; flex: none; }
.fave-pick span { display: flex; align-items: center; gap: 6px; font: 700 13px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--fave); }
.fave-pick span svg { width: 15px; height: 15px; }
.fave-pick b { display: block; font: 800 24px/1.1 var(--font-ui); margin-top: 4px; overflow-wrap: anywhere; }
.done-actions { display: grid; gap: 10px; margin-top: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 16px/1.2 var(--font-body); text-decoration: none; text-align: center; }
.btn svg { width: 20px; height: 20px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.ghost { background: none; }
.btn.block { width: 100%; }
.btn.pass-btn { color: var(--pass); }
.btn.like-btn { color: var(--like); }

/* Vote bar */
.actions { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); flex: none; }
.act { display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); transition: transform .12s ease, background .2s, opacity .2s, color .2s; }
.act svg { width: 44%; height: 44%; }
.act.s { width: 46px; height: 46px; }
.act.m { width: 56px; height: 56px; }
.act.l { width: 68px; height: 68px; }
.act.pass { color: var(--pass); }
.act.like { color: var(--like); }
.act.fave { color: var(--fave); }
.act.fave.used { color: var(--muted); }
.act:not(:disabled):active { transform: scale(.9); }
.act:disabled { opacity: .3; cursor: default; }
.act[aria-busy="true"] { cursor: progress; }
/* Likes left: the number sits inside the heart. */
.act.like { position: relative; }
.act.like.counting svg { width: 64%; height: 64%; }
.heart-count { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 3px; color: var(--on-like); font: 800 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-variant-numeric: tabular-nums; pointer-events: none; }
.heart-count[data-digits="3"] { font-size: 11px; letter-spacing: -.04em; }
.act.like.empty { color: var(--muted); }
.act.like.empty .heart-count { color: var(--bg); }
.btn.like-btn.empty { color: var(--muted); }
/* Sparks: the 0 to 5 picker. */
.plug-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 14px 0 12px; }
.plug-btn { display: grid; justify-items: center; gap: 4px; padding: 12px 0 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; transition: color .12s, border-color .12s, background .12s; }
.plug-btn svg { width: 34px; height: 34px; }
.plug-btn b { font: 800 16px/1 var(--font-ui); color: var(--text); }
.plug-btn.on, .plug-btn:active { border-color: #FFC93C; background: var(--raised); }
/* The spark: a lightning bolt, yellow when it counts. */
.bolt { fill: #FFC93C; stroke: #F28C1C; }
.act.spark svg { width: 54%; height: 54%; }
.rules .dot .bolt, .btn .bolt { stroke-width: 1.3; }
.plug-btn .bolt { fill: transparent; stroke: var(--muted); }
.plug-btn.on .bolt, .plug-btn:active .bolt { fill: #FFC93C; stroke: #F28C1C; }
.lb .num b small { font-size: 12px; font-weight: 600; color: var(--muted); }
@media (hover: hover) { .act:not(:disabled):hover, .icon-btn:hover { background: var(--raised); } }

/* Sheets */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .62); z-index: 40; }
.sheet {
  position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; margin: 0 auto; width: 100%; max-width: 520px; max-height: 90%;
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom);
  animation: sheet-in .28s cubic-bezier(.2, .8, .2, 1);
}
.sheet:focus { outline: none; }
.sheet.tall { height: 90%; }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 10px auto 2px; flex: none; }
.sheet-body { overflow-y: auto; padding: 6px 20px 24px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; }
.sheet-head h2 { margin: 0; font: 800 28px/1.05 var(--font-ui); text-wrap: balance; overflow-wrap: anywhere; }
.sheet p { margin: 0 0 12px; max-width: 62ch; }
.note { font-size: 14px; color: var(--muted); }
.strip { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px 12px; padding: 0 20px; scroll-snap-type: x mandatory; }
.strip img { height: 200px; aspect-ratio: 4 / 3; width: auto; object-fit: contain; background: #000; border-radius: 14px; scroll-snap-align: start; flex: none; }
.meta-line { color: var(--muted); }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.specs div { background: var(--raised); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.specs dt { font: 700 12px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 5px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.story { white-space: pre-line; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.rules { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 14px; }
.rules li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; }
.rules .dot { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); color: var(--muted); }
.rules .dot svg { width: 20px; height: 20px; }
.c-like { color: var(--like) !important; }
.c-pass { color: var(--pass) !important; }
.c-fave { color: var(--fave) !important; }
.c-accent { color: var(--accent) !important; }

/* Leaderboard */
.lb { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lb li { display: grid; grid-template-columns: 26px 60px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px 8px 8px; background: var(--raised); border-radius: 14px; }
.lb li.me { box-shadow: inset 0 0 0 1px var(--line); }
.intro { margin: 0 0 14px; font-size: 16px; line-height: 1.45; color: var(--text); }
.lb.secret li { grid-template-columns: 60px minmax(0, 1fr); }
.lb .rank { font: 800 20px/1 var(--font-ui); text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); display: grid; place-items: center; }
.lb .rank svg { width: 22px; height: 22px; color: var(--fave); }
.lb img { width: 60px; height: 45px; object-fit: cover; border-radius: 9px; background: #000; }
.lb .lb-photo { position: relative; display: block; width: 60px; height: 45px; padding: 0; border: 0; border-radius: 9px; background: none; cursor: zoom-in; }
.lb .lb-photo img { display: block; }
.lb .lb-photo svg { position: absolute; right: 2px; bottom: 2px; width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: rgba(0, 0, 0, .62); color: #fff; pointer-events: none; }
.lb .who b { display: block; font: 700 18px/1.1 var(--font-ui); overflow-wrap: anywhere; }
.lb .who span { font-size: 13px; color: var(--muted); }
.lb .bar { height: 4px; margin-top: 6px; border-radius: 2px; background: var(--line); overflow: hidden; }
.lb .bar i { display: block; height: 100%; background: var(--like); }
.lb .num { text-align: right; font-variant-numeric: tabular-nums; }
.lb .num b { display: block; font: 800 20px/1 var(--font-ui); }
.lb .num span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.lb .num .fv { color: var(--fave); display: inline-flex; align-items: center; gap: 3px; justify-content: flex-end; }
.lb .num .fv svg { width: 12px; height: 12px; }
.tag { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 6px; border-radius: 6px; font: 700 11px/1.5 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; background: var(--bg); vertical-align: 1px; }
.tag svg { width: 10px; height: 10px; }
.tag.like { color: var(--like); }
.tag.fave { color: var(--fave); }
.inline-results { margin-top: 4px; }

/* Toast */
.toast {
  position: fixed; z-index: 60; left: 50%; top: calc(122px + env(safe-area-inset-top)); transform: translate(-50%, -10px);
  opacity: 0; width: max-content; max-width: calc(100% - 40px); padding: 10px 16px; border-radius: 16px;
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; text-align: center; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Status line extras, privacy and "Remove my votes" */
.status .out { display: inline-flex; align-items: center; gap: 6px; }
.status .out svg { width: 16px; height: 16px; color: var(--muted); }
.status .saving { color: var(--text); }
.card.held { cursor: progress; }
.privacy { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.privacy h3 { margin: 0 0 8px; font: 700 13px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.privacy p { font-size: 14px; color: var(--muted); }
.privacy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.privacy a, .linkish { color: var(--accent); font-size: 14px; }
.linkish { padding: 6px 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; }
.btn.danger { background: var(--pass); border-color: var(--pass); color: #1B0F06; }
.btn:disabled { opacity: .55; cursor: default; }

/* Entry form */
body.scroll { overflow: auto; overscroll-behavior: auto; }
.app.form-app { height: auto; min-height: 100%; }
.form { padding: 4px 16px calc(40px + env(safe-area-inset-bottom)); }
.form .ribbon { margin: 8px 0 0; }
.form-title { margin: 18px 0 6px; font: 400 34px/1.05 var(--font-display); text-wrap: balance; }
.lead { margin: 0 0 20px; color: var(--muted); max-width: 52ch; }
.block { margin: 0 0 16px; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); min-width: 0; }
.block legend { float: left; width: 100%; margin: 2px 0 6px; padding: 0; font: 700 13px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.block legend + * { clear: both; }
.field { display: grid; gap: 6px; margin-top: 14px; min-width: 0; }
.field label { font-weight: 600; font-size: 15px; }
.field .opt { font-weight: 400; font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: 400 16px/1.35 var(--font-body);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6E665E; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field [aria-invalid="true"] { border-color: var(--pass); }
.hint { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.terms-line { margin: 4px 0 12px; }
.terms-line a, .terms a { color: var(--accent); }
/* Terms and conditions page */
.terms { max-width: 68ch; }
.terms h2 { margin: 28px 0 8px; font: 700 19px/1.25 var(--font-body); }
.terms p { margin: 0 0 12px; color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.terms p strong { color: var(--text); font-weight: 600; }
.terms .hint { margin-top: 24px; }
.terms .done-actions { margin-top: 20px; }
.field-error { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--pass); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; }
.ph-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.ph { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph.error { border-color: var(--pass); }
.ph-badge { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(10, 9, 8, .72); font: 700 11px/1.4 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; }
.ph-remove { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(10, 9, 8, .72); color: var(--text); }
.ph-remove svg { width: 16px; height: 16px; }
.ph-status { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 14px 8px 6px; border: 0; background: linear-gradient(to top, rgba(8, 7, 6, .92), rgba(8, 7, 6, 0)); color: var(--text); font: 600 12px/1.25 var(--font-body); text-align: left; }
.ph-status svg { width: 14px; height: 14px; }
.ph-status .bar { flex: 0 0 100%; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.ph-status .bar i { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.ph.done .ph-status { color: var(--like); }
.ph.error .ph-status { background: rgba(70, 12, 18, .9); cursor: pointer; }
.ph-add { aspect-ratio: 4 / 3; display: grid; place-items: center; align-content: center; gap: 4px; padding: 6px; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 14px; font-weight: 600; text-align: center; cursor: pointer; }
.ph-add:hover, .ph-add:focus-visible { border-color: var(--accent); color: var(--text); }
.ph-add svg { width: 26px; height: 26px; color: var(--accent); }
.consent label { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.consent a { color: var(--accent); }
.consent label + label, .consent .field-error + label { margin-top: 14px; }
.consent .field-error { margin-left: 36px; }
.consent .opt { font-size: 13px; color: var(--muted); }
.consent .hint { margin-top: 16px; }
.block > .hint + .hint { margin-top: 6px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 82, 99, .14); font-size: 14px; }
.thanks { display: grid; gap: 14px; padding: 40px 0; }
.thanks .big { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: rgba(52, 210, 127, .15); color: var(--like); }
.thanks .big svg { width: 32px; height: 32px; }
.thanks h1 { margin: 0; font: 400 38px/1.05 var(--font-display); text-wrap: balance; }
.thanks p { margin: 0; color: var(--muted); max-width: 46ch; }
@media (max-width: 359px) {
  .ph-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-height: 640px) {
  .brand .title { font-size: 24px; }
  .status { min-height: 34px; }
  .act.l { width: 60px; height: 60px; }
  .act.m { width: 50px; height: 50px; }
  .act.s { width: 42px; height: 42px; }
  .name { font-size: 28px; }
}
/* Photo viewer: a leaderboard photo full-screen, with zoom. It lies over everything, the toast included. */
.zoom { position: fixed; inset: 0; z-index: 70; background: #000; color: #fff; overscroll-behavior: contain; }
.zoom[hidden] { display: none; }
.zoom:focus { outline: none; }
.zoom-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.zoom.zoomed .zoom-stage { cursor: grab; }
.zoom-stage img { position: absolute; max-width: none; transform-origin: 50% 50%; will-change: transform; -webkit-user-drag: none; -webkit-touch-callout: none; }
.zoom-stage img.smooth { transition: transform .2s ease; }
.zoom-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) 30px calc(16px + env(safe-area-inset-left)); background: linear-gradient(rgba(0, 0, 0, .72), rgba(0, 0, 0, 0)); pointer-events: none; }
.zoom-cap { min-width: 0; padding-top: 4px; }
.zoom-cap b { display: block; font: 800 22px/1.1 var(--font-ui); overflow-wrap: anywhere; }
.zoom-cap span { font-size: 14px; color: rgba(255, 255, 255, .82); }
.zoom .icon-btn { width: 44px; height: 44px; flex: none; pointer-events: auto; background: rgba(24, 24, 24, .72); border-color: rgba(255, 255, 255, .28); color: #fff; }
.zoom .icon-btn:disabled { opacity: .4; }
.zoom-tools { position: absolute; right: calc(14px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; gap: 8px; }
.zoom-hint { position: absolute; left: calc(16px + env(safe-area-inset-left)); bottom: calc(28px + env(safe-area-inset-bottom)); max-width: 58%; margin: 0; font-size: 13px; color: rgba(255, 255, 255, .78); text-shadow: 0 1px 2px #000; pointer-events: none; }
.zoom.zoomed .zoom-hint { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Branded contests (the calendar contests): neutral dark look, system fonts, the brand's colour
   and logo. The colour itself comes from the contest (an inline style on the page). */
:root[data-ssv-brand] {
  --bg: #10161D;
  --surface: #1A232C;
  --raised: #26313C;
  --line: #38454F;
  --text: #F5F7FA;
  --muted: #A9B5C2;
  --on-like: var(--on-accent);
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
:root[data-ssv-brand] .brand .title { font-weight: 800; font-size: 20px; line-height: 1.15; letter-spacing: 0; }
@media (min-width: 480px) { :root[data-ssv-brand] .brand .title { font-size: 24px; } }
:root[data-ssv-brand] .done h2, :root[data-ssv-brand] .form-title, :root[data-ssv-brand] .thanks h1 { font-weight: 800; letter-spacing: -.01em; }
.brand-slot { display: block; min-height: 24px; }
.brand-logo { display: block; width: auto; max-width: min(220px, 52vw); height: 46px; object-fit: contain; object-position: left center; margin-bottom: 4px; }
:root:not([data-ssv-brand]) .brand-logo { height: 58px; margin: -4px 0 0 -4px; } /* The MopFest logo is taller than it is long. */
.brand-name { display: block; font: 800 13px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
@media (max-height: 640px) {
  .brand-logo { height: 36px; }
  :root[data-ssv-brand] .brand .title { font-size: 18px; }
}
