/* Comwire VIC Christmas Awards. Brand palette from the Comwire IT brand book; Proxima Nova. */

@font-face {
  font-family: 'Proxima Nova';
  src: url('/fonts/ProximaNova-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Proxima Nova';
  src: url('/fonts/ProximaNova-Black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

:root {
  --night: #012a30;
  --night-2: #011d21;
  --teal: #01454f;
  --teal-2: #0b5a66;
  --lime: #c6d439;
  --lime-tint: #d7ea99;
  --slate: #5a849d;
  --copper: #b25c34;
  --ice: #bed7e9;
  --blush: #e4c0b2;
  --ink: #414042;
  --paper: #fbfaf4;
  --paper-2: #f2f0e5;
  --muted: #6c6e70;
  --line: rgba(1, 69, 79, 0.14);
  --radius: 18px;
  --shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.65), 0 2px 6px rgba(0, 0, 0, 0.2);
  --font: 'Proxima Nova', 'Helvetica Neue', Arial, system-ui, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-synthesis: none;
  color: #fff;
  background-color: var(--night);
  background-image:
    radial-gradient(1100px 520px at 50% -8%, rgba(11, 90, 102, 0.95) 0%, rgba(11, 90, 102, 0) 70%),
    radial-gradient(700px 400px at 100% 100%, rgba(198, 212, 57, 0.07) 0%, rgba(198, 212, 57, 0) 70%),
    linear-gradient(180deg, var(--teal) 0%, var(--night) 48%, var(--night-2) 100%);
  background-attachment: fixed;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* ── Backdrop: snow, fairy lights ───────────────────────────────────────────────────────── */

#snow,
#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#snow {
  z-index: 0;
}
#confetti {
  z-index: 60;
}

.lights {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.lights svg {
  display: block;
  width: 100%;
  height: 76px;
}
.lights .wire {
  fill: none;
  stroke: #06191c;
  stroke-width: 2.2;
}
.lights .cap {
  fill: #1d3236;
}
.lights .bulb {
  fill: currentColor;
  filter: drop-shadow(0 0 4px currentColor) drop-shadow(0 0 14px currentColor);
  animation: twinkle var(--d, 3s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.42;
  }
}

.app {
  position: relative;
  z-index: 2;
}

/* ── Buttons ────────────────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 46px;
  padding: 0 1.25em;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}
.btn-lime {
  background: var(--lime);
  color: var(--teal);
  box-shadow: 0 10px 26px -10px rgba(198, 212, 57, 0.75);
}
.btn-lime:hover {
  background: #d3e04a;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.22);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}
.btn-teal {
  background: var(--teal);
  color: #fff;
}
.btn-teal:hover {
  background: var(--teal-2);
}
.btn-quiet {
  background: transparent;
  color: var(--teal);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-quiet:hover {
  background: rgba(1, 69, 79, 0.06);
}
.btn-sm {
  min-height: 36px;
  font-size: 13px;
  padding: 0 0.95em;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(1, 69, 79, 0.07);
  color: var(--teal);
}
.icon-btn:hover {
  background: rgba(1, 69, 79, 0.13);
}

/* ── Top bar ───────────────────────────────────────────────────────────────────────────── */

.topbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 84px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  height: 34px;
  width: auto;
  display: block;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.who {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-size: 14px;
}
.who .av {
  width: 30px;
  height: 30px;
  font-size: 12px;
}
.who a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 999px;
}
.who a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ── Hero ───────────────────────────────────────────────────────────────────────────────── */

.eyebrow {
  margin: 0;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
}
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 54px 24px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
}
.title {
  margin: 10px 0 14px;
  font-weight: 900;
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.title span {
  color: var(--lime);
}
.lede {
  margin: 0;
  max-width: 34em;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
}
.hero-side {
  min-width: 300px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}
.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}
.progress-label strong {
  font-weight: 900;
  font-size: 30px;
  color: #fff;
  letter-spacing: -0.01em;
}
.progress-label strong small {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
}
.bar {
  position: relative;
  height: 12px;
  margin: 10px 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.bar > i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: repeating-linear-gradient(-45deg, var(--lime) 0 10px, #b5c32a 10px 20px);
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-side .btn {
  width: 100%;
}
.voters-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.banner {
  max-width: 1152px;
  margin: 0 auto 26px;
  padding: 16px 20px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  background: rgba(198, 212, 57, 0.12);
  box-shadow: inset 0 0 0 1px rgba(198, 212, 57, 0.4);
  color: #f3f7d6;
}
.banner .icon {
  color: var(--lime);
  width: 22px;
  height: 22px;
}
.banner-wrap {
  padding: 0 24px;
}

/* ── Award cards: wrapped presents ─────────────────────────────────────────────────────── */

.grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 22px;
}

.award {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 262px;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}
.award:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.75), 0 2px 6px rgba(0, 0, 0, 0.2);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.lid {
  position: relative;
  height: 64px;
  flex: none;
  background-color: var(--teal);
  background-image: repeating-linear-gradient(135deg, rgba(198, 212, 57, 0) 0 11px, rgba(198, 212, 57, 0.16) 11px 13px);
  transition: background-color 0.3s ease;
}
.lid .no {
  position: absolute;
  top: 12px;
  left: 92px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.ribbon {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 46px;
  width: 16px;
  background: var(--copper);
  box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.18), inset -2px 0 0 rgba(0, 0, 0, 0.12);
}
.bow {
  position: absolute;
  right: 28px;
  top: 6px;
  width: 52px;
  height: 34px;
  color: var(--copper);
  z-index: 2;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.medal {
  position: absolute;
  top: 30px;
  left: 20px;
  z-index: 2;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--teal);
  box-shadow: 0 0 0 4px var(--paper), 0 6px 14px rgba(1, 69, 79, 0.35);
}
.medal .icon {
  width: 28px;
  height: 28px;
}
.award .medal,
.award .bow,
.award .tick {
  pointer-events: none;
}
.grid.static .award {
  animation: none;
}

.award-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 36px 20px 18px;
}
.award h3 {
  margin: 0 0 6px;
  font-weight: 900;
  font-size: 21px;
  line-height: 1.1;
  color: var(--teal);
  letter-spacing: -0.005em;
}
.award p {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--muted);
}

.choose {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 8px 12px;
  border: 0;
  border-radius: 14px;
  text-align: left;
  background: transparent;
  color: var(--teal);
  box-shadow: inset 0 0 0 2px var(--line);
  background-image: none;
  font-weight: 900;
  font-size: 14px;
}
.choose::after {
  /* the whole card is the button */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}
.choose .plus {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px dashed rgba(1, 69, 79, 0.35);
}
.choose .plus .icon {
  width: 16px;
  height: 16px;
}
.choose .name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}
.choose .change {
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
}
.award:hover .choose {
  box-shadow: inset 0 0 0 2px rgba(1, 69, 79, 0.35);
}

/* Picked: the present gets a lime lid. */
.award.picked .lid {
  background-color: var(--lime);
  background-image: repeating-linear-gradient(135deg, rgba(1, 69, 79, 0) 0 11px, rgba(1, 69, 79, 0.1) 11px 13px);
}
.award.picked .lid .no {
  color: rgba(1, 69, 79, 0.7);
}
.award.picked .ribbon {
  background: var(--teal);
}
.award.picked .bow {
  color: var(--teal);
}
.award.picked .choose {
  background: rgba(198, 212, 57, 0.2);
  box-shadow: inset 0 0 0 2px rgba(198, 212, 57, 0.65);
}
.award.picked .medal {
  color: var(--teal);
}
.award .tick {
  position: absolute;
  top: 70px;
  left: 64px;
  z-index: 3;
  display: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--lime);
  box-shadow: 0 0 0 3px var(--paper);
}
.award .tick .icon {
  width: 14px;
  height: 14px;
}
.award.picked .tick {
  display: grid;
  animation: pop 0.35s cubic-bezier(0.2, 1.6, 0.4, 1);
}
@keyframes pop {
  from {
    transform: scale(0.3);
  }
}
.closed .award .choose .change {
  display: none;
}

/* ── Avatars ───────────────────────────────────────────────────────────────────────────── */

.av {
  --size: 40px;
  width: var(--size);
  height: var(--size);
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  display: inline-grid;
  place-items: center;
  font-weight: 900;
  font-size: calc(var(--size) * 0.36);
  letter-spacing: 0.02em;
  background: var(--lime-tint);
  color: var(--teal);
}
.av.c1 {
  background: var(--lime-tint);
  color: var(--teal);
}
.av.c2 {
  background: var(--ice);
  color: var(--teal);
}
.av.c3 {
  background: var(--blush);
  color: #7a3a1d;
}
.av.c4 {
  background: #cfe0e8;
  color: #2f5a72;
}
.av.c5 {
  background: #e9ecc0;
  color: #4d5a07;
}
.choose .av {
  --size: 36px;
}

/* ── Picker ─────────────────────────────────────────────────────────────────────────────── */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(1, 20, 23, 0.62);
  backdrop-filter: blur(5px);
  animation: fade 0.2s ease both;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.sheet {
  position: relative;
  width: min(820px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: sheet-in 0.28s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
}
.sheet.slide {
  animation: slide 0.28s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
@keyframes slide {
  from {
    opacity: 0.2;
    transform: translateX(26px);
  }
}
.sheet-head {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px 22px 20px;
  background-color: var(--teal);
  background-image: repeating-linear-gradient(135deg, rgba(198, 212, 57, 0) 0 11px, rgba(198, 212, 57, 0.14) 11px 13px);
  color: #fff;
}
.sheet-head .medal {
  position: static;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}
.sheet-head h2 {
  margin: 4px 0 2px;
  font-weight: 900;
  font-size: 28px;
  line-height: 1.05;
}
.sheet-head p.blurb {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
}
.sheet-head .icon-btn {
  align-self: start;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.sheet-head .icon-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}
.search {
  position: relative;
  margin: 18px 22px 6px;
}
.search .icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  width: 18px;
  height: 18px;
}
.search input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 46px;
  border: 0;
  border-radius: 14px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 16px;
  box-shadow: inset 0 0 0 1.5px transparent;
}
.search input::placeholder {
  color: #8b8d8f;
}
.search input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--teal);
  background: #fff;
}
.people {
  flex: 1;
  overflow-y: auto;
  padding: 12px 22px 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 10px;
  align-content: start;
  overscroll-behavior: contain;
}
.person {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px 12px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
  text-align: center;
  font-size: 14.5px;
  line-height: 1.15;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s;
}
.person .av {
  --size: 62px;
}
.person:hover {
  box-shadow: inset 0 0 0 2px rgba(1, 69, 79, 0.4);
  transform: translateY(-2px);
}
.person.selected {
  background: rgba(198, 212, 57, 0.22);
  box-shadow: inset 0 0 0 2.5px var(--lime);
}
.person .check {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--lime);
}
.person .check .icon {
  width: 14px;
  height: 14px;
}
.person.selected .check {
  display: grid;
  animation: pop 0.3s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.person.just-picked {
  animation: picked 0.45s ease;
}
@keyframes picked {
  40% {
    transform: scale(1.06);
  }
}
.empty {
  grid-column: 1 / -1;
  padding: 30px 0;
  text-align: center;
  color: var(--muted);
}
.sheet-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.sheet-foot .spacer {
  flex: 1;
}
.sheet-foot .count {
  font-size: 13px;
  color: var(--muted);
}
.dots {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
}
.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(1, 69, 79, 0.16);
}
.dots i.done {
  background: var(--lime);
}
.dots i.here {
  background: var(--teal);
  transform: scale(1.35);
}

/* ── Toast ──────────────────────────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 70;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14.5px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  animation: toast 0.25s ease both;
  max-width: calc(100% - 32px);
}
.toast.bad {
  background: #fbe9e1;
  color: #7a2f10;
}
@keyframes toast {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}

/* ── Sign-in and notices ──────────────────────────────────────────────────────────────── */

.signin {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 90px 24px 40px;
  text-align: center;
}
.signin-inner {
  max-width: 640px;
}
.signin .logo {
  height: 40px;
  margin: 0 auto 38px;
}
.signin .lede {
  margin: 0 auto 30px;
}
.btn-ms {
  min-height: 54px;
  padding: 0 1.5em;
  font-size: 16px;
  background: #fff;
  color: #1f1f1f;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.7);
}
.btn-ms:hover {
  background: #f3f3f3;
}
.ms-logo {
  width: 20px;
  height: 20px;
}
.medal-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 46px;
}
.medal-row span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: var(--lime);
  animation: bob 4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.45s);
}
.medal-row .icon {
  width: 20px;
  height: 20px;
}
@keyframes bob {
  50% {
    transform: translateY(-6px);
  }
}
.fine {
  margin-top: 26px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.notice-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}
.notice {
  max-width: 520px;
  padding: 36px 32px;
  border-radius: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.notice-logo {
  height: 34px;
  margin-bottom: 24px;
}
.notice h1 {
  margin: 0 0 10px;
  font-weight: 900;
  font-size: 30px;
  line-height: 1.1;
}
.notice p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.8);
}
.notice-actions {
  margin-top: 22px !important;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.6);
}

.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}
.footer .icon {
  width: 15px;
  height: 15px;
  color: var(--lime);
}

/* ── Results (organisers) ─────────────────────────────────────────────────────────────── */

.admin-head {
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px 24px 26px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
}
.admin-head .title {
  font-size: clamp(40px, 6vw, 68px);
  margin-bottom: 8px;
}
.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.status-pill::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}
.status-pill.off::before {
  background: var(--copper);
  box-shadow: 0 0 10px var(--copper);
}

.panel {
  max-width: 1152px;
  margin: 0 auto 22px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.panel-wrap {
  padding: 0 24px;
}
.panel h2 {
  margin: 0 0 14px;
  font-weight: 900;
  font-size: 20px;
  color: var(--teal);
}
.panel h2 small {
  font-weight: 400;
  font-size: 15px;
  color: var(--muted);
  margin-left: 6px;
}
.voter-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}
.voter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--paper-2);
  font-size: 14px;
}
.voter .av {
  --size: 32px;
}
.voter .name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.voter .n {
  font-weight: 900;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(1, 69, 79, 0.08);
  color: var(--muted);
}
.voter.done .n {
  background: var(--lime);
  color: var(--teal);
}
.voter.some .n {
  background: var(--lime-tint);
  color: var(--teal);
}

.result-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}
.result {
  padding: 16px;
  border-radius: 14px;
  background: var(--paper-2);
}
.result-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.result-top .medal {
  position: static;
  width: 42px;
  height: 42px;
  box-shadow: none;
  background: #fff;
}
.result-top .medal .icon {
  width: 20px;
  height: 20px;
}
.result-top h3 {
  margin: 0;
  font-weight: 900;
  font-size: 17px;
  color: var(--teal);
  line-height: 1.1;
}
.result-top .meta {
  font-size: 12.5px;
  color: var(--muted);
}
.rows {
  display: grid;
  gap: 6px;
}
.row {
  display: grid;
  grid-template-columns: 26px minmax(0, 150px) 1fr 26px;
  gap: 8px;
  align-items: center;
  font-size: 13.5px;
}
.row .av {
  --size: 26px;
  font-size: 10px;
}
.row .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row .track {
  height: 10px;
  border-radius: 999px;
  background: rgba(1, 69, 79, 0.08);
  overflow: hidden;
}
.row .track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--slate);
}
.row.win .track i {
  background: var(--lime);
}
.row.win .name {
  font-weight: 900;
  color: var(--teal);
}
.row .c {
  text-align: right;
  font-weight: 900;
  color: var(--teal);
}
.tie {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--blush);
  color: #7a3a1d;
  vertical-align: 2px;
}
.none {
  font-size: 13.5px;
  color: var(--muted);
}

/* ── Presenting the winners ───────────────────────────────────────────────────────────── */

.stage {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: 1fr auto;
  text-align: center;
  overflow: hidden;
}
.stage-main {
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 80px 24px 10px;
}
.stage-inner {
  width: min(1000px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stage .medal {
  position: static;
  width: 96px;
  height: 96px;
  margin: 18px 0 14px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08), 0 14px 40px rgba(0, 0, 0, 0.4);
}
.stage .medal .icon {
  width: 46px;
  height: 46px;
}
.stage-title {
  margin: 0 0 10px;
  font-weight: 900;
  font-size: clamp(42px, 6.6vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.stage-blurb {
  margin: 0 0 34px;
  font-size: clamp(18px, 2vw, 24px);
  color: rgba(255, 255, 255, 0.75);
}
.gift {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 10px 26px 4px;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.gift svg.box {
  width: 150px;
  height: 150px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
  transition: transform 0.2s ease;
}
.gift:hover svg.box {
  transform: translateY(-4px) rotate(-2deg);
}
.gift.shake svg.box {
  animation: shake 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes shake {
  10%,
  90% {
    transform: translateX(-2px) rotate(-2deg);
  }
  20%,
  80% {
    transform: translateX(4px) rotate(3deg);
  }
  30%,
  50%,
  70% {
    transform: translateX(-7px) rotate(-5deg);
  }
  40%,
  60% {
    transform: translateX(7px) rotate(5deg);
  }
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}
.winners {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.winner {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: winner 0.7s cubic-bezier(0.2, 1.4, 0.3, 1) both;
}
.winner:nth-child(2) {
  animation-delay: 0.12s;
}
.winner:nth-child(3) {
  animation-delay: 0.24s;
}
@keyframes winner {
  from {
    opacity: 0;
    transform: scale(0.4) translateY(30px);
  }
}
.winner .av {
  --size: clamp(140px, 17vw, 210px);
  box-shadow: 0 0 0 6px var(--lime), 0 0 60px rgba(198, 212, 57, 0.45);
}
.winner .name {
  margin-top: 22px;
  font-weight: 900;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}
.winner .votes {
  margin-top: 8px;
  font-size: 18px;
  color: var(--lime);
}
.winners.tied {
  gap: 30px;
  flex-wrap: nowrap;
}
.winners.tied .winner .av {
  --size: clamp(96px, 11vw, 150px);
}
.winners.tied .winner .name {
  margin-top: 16px;
  font-size: clamp(22px, 2.6vw, 34px);
}
.winners.crowd {
  flex-wrap: wrap;
  gap: 18px 26px;
}
.winners.crowd .winner .av {
  --size: 92px;
}
.winners.crowd .winner .name {
  font-size: 22px;
}
.tie-note {
  margin: 0 0 18px;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush);
}
.stage-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 16px 24px 26px;
}
.stage-nav .dots i {
  background: rgba(255, 255, 255, 0.18);
}
.stage-nav .dots i.done {
  background: var(--lime);
}
.stage-nav .dots i.here {
  background: #fff;
}
.stage-nav .icon-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.stage-nav .icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.stage-exit {
  position: absolute;
  top: 74px;
  right: 24px;
}
.stage-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}
.stage .big-title {
  font-size: clamp(56px, 10vw, 140px);
}

/* ── Small screens ────────────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 40px;
  }
  .hero-side {
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .topbar {
    padding: 66px 16px 0;
  }
  .logo {
    height: 28px;
  }
  .who .first,
  .topbar .btn .label {
    display: none;
  }
  .hero {
    padding: 30px 16px 24px;
  }
  .lede {
    font-size: 16px;
  }
  .banner-wrap,
  .panel-wrap {
    padding: 0 16px;
  }
  .grid {
    padding: 0 16px 30px;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  /* Cards become compact rows on a phone. */
  .award {
    min-height: 0;
    flex-direction: row;
  }
  .lid {
    width: 20px;
    height: auto;
  }
  .lid .no,
  .bow,
  .ribbon {
    display: none;
  }
  .medal {
    top: 16px;
    left: 34px;
    width: 46px;
    height: 46px;
    box-shadow: 0 0 0 3px var(--paper), 0 4px 10px rgba(1, 69, 79, 0.25);
  }
  .medal .icon {
    width: 22px;
    height: 22px;
  }
  .award .tick {
    top: 46px;
    left: 66px;
    width: 20px;
    height: 20px;
  }
  .award-body {
    padding: 16px 14px 14px 80px;
  }
  .award h3 {
    font-size: 18px;
  }
  .award p {
    font-size: 13.5px;
    margin-bottom: 10px;
  }
  .choose {
    min-height: 44px;
    padding: 6px 10px;
  }
  .choose .av,
  .choose .plus {
    --size: 30px;
    width: 30px;
    height: 30px;
  }
  .overlay {
    padding: 0;
    place-items: end stretch;
  }
  .sheet {
    width: 100%;
    max-height: calc(100dvh - 24px);
    border-radius: 22px 22px 0 0;
  }
  .sheet-head {
    padding: 18px 16px 16px;
    gap: 12px;
  }
  .sheet-head .medal {
    width: 46px;
    height: 46px;
  }
  .sheet-head h2 {
    font-size: 22px;
  }
  .sheet-head p.blurb {
    font-size: 14px;
  }
  .search {
    margin: 14px 16px 4px;
  }
  .people {
    padding: 10px 16px 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .person {
    font-size: 13px;
    padding: 12px 4px 10px;
  }
  .person .av {
    --size: 50px;
  }
  .sheet-foot {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
  .sheet-foot .dots {
    display: none;
  }
  .result-list {
    grid-template-columns: 1fr;
  }
  .row {
    grid-template-columns: 26px minmax(0, 110px) 1fr 22px;
  }
}

.still *,
.still *::before,
.still *::after {
  animation: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
