/* The Golden Elephant Awards
   Awards night: near-black stage, champagne gold, ivory programme, oxblood velvet. */

:root {
  --black: #100e0d;
  --coal: #181412;
  --coal-2: #221b18;
  --gold: #d9ba75;
  --gold-hi: #f3e2b0;
  --gold-deep: #a8853f;
  --ivory: #f8f1e4;
  --ivory-2: #efe5d0;
  --card: #fffaf0;
  --line: #d6c193;
  --oxblood: #650f20;
  --oxblood-hi: #8a1a2f;
  --ink: #1b1614;
  --ink-soft: #5e5148;
  --ok: #1f6b45;
  --display: 'Playfair Display', 'Bodoni 72', Didot, Georgia, serif;
  --italic: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Jost', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --gold-fill: linear-gradient(180deg, #f1dca4 0%, #d9ba75 48%, #c19b52 100%);
  --gold-text: linear-gradient(180deg, #f8ebc2 5%, #dfc380 50%, #b8924a 100%);
  --fan: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 32'%3E%3Cg fill='none' stroke='%23a8853f' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpath d='M30 31 5.6 22.1 10.1 14.3 30 31 17 8.5 25.5 5.4 30 31 34.5 5.4 43 8.5 30 31 49.9 14.3 54.4 22.1Z'/%3E%3Cpath d='M5.6 22.1 10.1 14.3 17 8.5 25.5 5.4 34.5 5.4 43 8.5 49.9 14.3 54.4 22.1'/%3E%3C/g%3E%3C/svg%3E");
  --fan-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 32'%3E%3Cg fill='none' stroke='%23d9ba75' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpath d='M30 31 5.6 22.1 10.1 14.3 30 31 17 8.5 25.5 5.4 30 31 34.5 5.4 43 8.5 30 31 49.9 14.3 54.4 22.1Z'/%3E%3Cpath d='M5.6 22.1 10.1 14.3 17 8.5 25.5 5.4 34.5 5.4 43 8.5 49.9 14.3 54.4 22.1'/%3E%3C/g%3E%3C/svg%3E");
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%231b1614' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

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

.paper :focus-visible,
.b-body :focus-visible {
  outline-color: var(--oxblood);
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- shared ornaments ---------- */

/* A heading flanked by fine double rules. */
.ruled {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9em;
  text-align: center;
}

.ruled::before,
.ruled::after {
  content: '';
  flex: 1 1 0;
  min-width: 1.2rem;
  max-width: 7rem;
  height: 5px;
  border-block: 1px solid var(--gold-deep);
}

.kick {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.fan-rule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2.5rem auto 0;
  max-width: 420px;
}

.fan-rule::before,
.fan-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-deep);
}

.fan-rule i {
  width: 44px;
  height: 24px;
  background: var(--fan) center / contain no-repeat;
}

.curtain {
  position: absolute;
  top: 0;
  height: 100%;
  width: auto;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.curtain.l {
  left: 0;
}

.curtain.r {
  right: 0;
  transform: scaleX(-1);
}

/* Laurels either side of a short line. */
.laurelled {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}

.laurelled::before,
.laurelled::after {
  content: '';
  flex: none;
  width: 0.95em;
  height: 2em;
  background: url('/img/laurel-left.png') center / contain no-repeat;
}

.laurelled::after {
  transform: scaleX(-1);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0.7em 1.7em;
  border: 0;
  border-radius: 4px;
  background: var(--gold-fill);
  color: var(--ink);
  font: 600 0.98rem/1.2 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(88, 62, 14, 0.45), 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: filter 0.15s, transform 0.1s;
}

.btn:hover {
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}

.btn.ox {
  background: linear-gradient(180deg, #7a1429, var(--oxblood));
  color: var(--ivory);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 16px rgba(40, 4, 12, 0.3);
}

.btn.quiet {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
}

.btn.danger {
  background: transparent;
  color: #ff8e8e;
  box-shadow: inset 0 0 0 1.5px #c23a3a;
}

.btn.small {
  min-height: 44px;
  padding: 0.4em 1em;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.btn.wide {
  width: 100%;
}

.btn .arrow {
  font-size: 1.2em;
  line-height: 0;
  transform: translateY(-0.04em);
}

/* ---------- programme: masthead and hero ---------- */

.masthead {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid rgba(217, 186, 117, 0.55);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--gold);
  font: 500 0.84rem/1.25 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.masthead nav {
  display: flex;
  gap: 1.75rem;
}

.masthead nav a {
  padding: 0.5rem 0;
  color: var(--ivory);
  font: 500 0.72rem var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.masthead nav a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.hero-wrap {
  position: relative;
  overflow: hidden;
  background: var(--black) url('/img/stage-red.jpg') center bottom / cover no-repeat;
}

.hero-wrap::after {
  /* keeps the type readable whatever the photo does */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 35% 45%, rgba(16, 14, 13, 0.55), transparent 65%);
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: end;
  gap: 1rem;
  max-width: 1080px;
  min-height: 560px;
  margin: 0 auto;
  padding: 3.25rem 1.5rem 0;
}

.hero-copy {
  align-self: center;
  text-align: center;
  padding-bottom: 3.5rem;
}

.hero-kicker {
  margin: 0 0 1rem;
  color: var(--ivory);
  font: 500 0.95rem var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero-kicker.ruled::before,
.hero-kicker.ruled::after {
  height: 1px;
  border: 0;
  background: var(--gold);
  max-width: 3.5rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.9rem);
  font-weight: 500;
  line-height: 1;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
}

.hero-tagline {
  max-width: 30em;
  margin: 1.25rem auto 0;
  font: italic 500 1.35rem/1.35 var(--italic);
  color: var(--ivory);
}

.hero-status {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-height: 3rem;
}

.hero-status p {
  margin: 0;
}

.hero-status .state {
  color: var(--ivory);
  font: 500 1.1rem var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero-status .when {
  font: italic 500 1.3rem/1.3 var(--italic);
  color: var(--gold-hi);
  max-width: 26em;
}

.hero-status .btn {
  min-width: 17rem;
  font-size: 1.05rem;
}

.hero-trophy {
  justify-self: center;
  width: min(100%, 300px);
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.65));
}

.hero-wrap .curtain {
  z-index: 1;
}

@media (max-width: 820px) {
  .masthead nav {
    display: none;
  }
  .masthead {
    justify-content: center;
    padding-inline: 1rem;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 2.25rem 1.25rem 0;
    gap: 0;
  }
  .hero-copy {
    padding-bottom: 1.5rem;
  }
  .hero-tagline {
    font-size: 1.2rem;
    max-width: 17em;
  }
  .hero-trophy {
    width: 168px;
  }
  .hero-status .btn {
    min-width: 0;
    width: 100%;
    max-width: 20rem;
  }
  .hero-wrap .curtain {
    width: 24vw;
    object-fit: fill;
    opacity: 0.9;
  }
}

/* ---------- programme: ivory pages ---------- */

.paper {
  background: var(--ivory);
  color: var(--ink);
  padding: clamp(0.6rem, 2vw, 1.5rem);
}

.paper-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3.25rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: -6px;
}

.paper section + section,
.paper .duo + section {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.paper h2 {
  font-size: clamp(1.6rem, 4.2vw, 2.3rem);
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.paper .sub {
  text-align: center;
  font: italic 500 1.25rem/1.35 var(--italic);
  color: var(--ink);
  margin: 0 auto 1.75rem;
  max-width: 36em;
}

.paper .lede {
  font: italic 500 1.35rem/1.35 var(--italic);
}

.duo {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.duo > section + section {
  margin-top: 0;
  padding-left: clamp(2rem, 5vw, 4rem);
  border-left: 1px solid var(--line);
}

.duo h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 1.25rem;
}

.premise p {
  text-align: center;
}

.budget {
  margin-top: 1.75rem;
  padding: 1.25rem 1.25rem 1.1rem;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--gold-deep);
  outline: 1px solid var(--line);
  outline-offset: 3px;
  border-radius: 2px;
}

.budget h3 {
  font-size: 1.5rem;
  color: var(--oxblood);
  margin-bottom: 0.4rem;
}

.budget p {
  margin: 0;
  font: italic 500 1.2rem/1.35 var(--italic);
}

.rules {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}

.rules li {
  counter-increment: rule;
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 0.55rem 0;
}

.rules li::before {
  content: counter(rule);
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--oxblood);
  color: var(--ivory);
  font: 600 1rem var(--display);
}

.rules li span {
  padding-top: 0.2rem;
}

.awards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.awards li {
  display: grid;
  grid-template-columns: 2.9rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.award-no {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 3px;
  background: var(--oxblood);
  color: var(--gold-hi);
  font: 500 1.25rem var(--display);
  box-shadow: inset 0 0 0 1px rgba(217, 186, 117, 0.45), inset 0 0 0 4px var(--oxblood), inset 0 0 0 5px rgba(217, 186, 117, 0.3);
}

.award-name {
  display: block;
  font: 600 0.98rem/1.3 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.award-blurb {
  display: block;
  margin-top: 0.15rem;
  font: italic 500 1.18rem/1.3 var(--italic);
  color: var(--ink);
}

.award-note {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--oxblood);
}

.finale {
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  background: radial-gradient(ellipse at 20% 40%, #3a2a16 0%, var(--black) 60%);
  color: var(--ivory);
  text-align: center;
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold-deep);
  outline-offset: -7px;
}

.finale img {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.6));
}

.finale .lead-in {
  margin: 0 0 0.6rem;
  color: var(--ivory);
  font: 500 0.78rem var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.finale h3 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 500;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.finale .choice {
  margin: 0.7rem 0 0;
  color: var(--gold);
  font: 500 0.82rem var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.finale .about {
  margin: 1rem auto 0;
  padding-top: 1rem;
  max-width: 30em;
  border-top: 1px solid rgba(217, 186, 117, 0.5);
  font: italic 500 1.25rem/1.35 var(--italic);
}

.procedures {
  max-width: 44rem;
  margin-inline: auto;
}

.procedures ul {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.procedures li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.procedures li::before {
  content: '';
  width: 1.6rem;
  height: 1.6rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--oxblood)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23f3e2b0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 70% no-repeat;
}

.fine {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.fine h2 {
  font: 600 0.95rem var(--sans);
  letter-spacing: 0.26em;
  margin-bottom: 1rem;
}

.fine p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

@media (max-width: 820px) {
  .duo,
  .awards {
    grid-template-columns: 1fr;
  }
  .duo > section + section {
    padding-left: 0;
    border-left: 0;
  }
  .finale {
    grid-template-columns: 1fr;
  }
  .finale img {
    max-width: 150px;
  }
}

/* ---------- gift cards (programme) ---------- */

.nominees {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nominee {
  position: relative;
  padding: 5px;
  background: var(--card);
  border: 1px solid var(--gold-deep);
  color: var(--ink);
  text-align: center;
}

.nominee::before,
.nominee::after {
  /* notched deco corners */
  content: '';
  position: absolute;
  width: 11px;
  height: 11px;
  background: var(--ivory);
  border: 1px solid var(--gold-deep);
  z-index: 1;
}

.nominee::before {
  top: -1px;
  left: -1px;
  border-top-color: var(--ivory);
  border-left-color: var(--ivory);
}

.nominee::after {
  top: -1px;
  right: -1px;
  border-top-color: var(--ivory);
  border-right-color: var(--ivory);
}

.shot {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--coal-2);
}

.no {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 2;
  padding: 0.3rem 0.6rem 0.25rem;
  background: var(--gold-fill);
  color: var(--ink);
  font: 600 0.72rem/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nominee .no {
  top: 12px;
  left: 12px;
}

.nominee .cap {
  padding: 0.8rem 0.6rem 0.75rem;
}

.gift-name {
  display: block;
  font: 600 0.95rem/1.25 var(--sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.gift-meta {
  display: block;
  margin-top: 0.2rem;
  font: italic 500 1.1rem/1.25 var(--italic);
  color: var(--ink-soft);
}

@media (max-width: 560px) {
  .nominees {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }
  .nominee .gift-name {
    font-size: 0.82rem;
  }
}

/* ---------- ballot (phone) ---------- */

body.ballot-page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: var(--ivory);
  color: var(--ink);
}

body.ballot-page .b-body {
  width: 100%;
}

.b-head {
  position: relative;
  overflow: hidden;
  padding: calc(0.9rem + env(safe-area-inset-top)) 1rem 1.1rem;
  background: radial-gradient(ellipse at 50% 100%, #3b2a14 0%, var(--black) 62%);
  color: var(--ivory);
  text-align: center;
  border-bottom: 1px solid var(--gold-deep);
}

.b-head .curtain {
  width: 20%;
  max-width: 120px;
  object-fit: fill;
}

.b-head > *:not(.curtain) {
  position: relative;
  z-index: 1;
}

.b-academy {
  max-width: 30em;
  margin: 0 auto 0.6rem;
  font: 500 0.66rem/1.5 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
}

.b-academy.ruled::before,
.b-academy.ruled::after {
  height: 1px;
  border: 0;
  background: var(--gold);
  max-width: 1.6rem;
}

.b-title {
  display: inline-grid;
  grid-template-columns: 34px auto 34px;
  align-items: center;
  gap: 0.8rem;
  color: var(--gold);
  text-decoration: none;
}

.b-title::before,
.b-title::after {
  content: '';
  height: 30px;
  background: var(--fan-gold) center / contain no-repeat;
}

.b-title::before {
  transform: rotate(-90deg);
}

.b-title::after {
  transform: rotate(90deg);
}

.b-title > span > span {
  display: block;
  font: 500 1.55rem/1.02 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.b-title small {
  display: block;
  font: 500 0.68rem/1.6 var(--sans);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ivory);
}

.b-trophy {
  display: none;
  width: 150px;
  margin: 0.6rem auto -0.3rem;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.6));
}

[data-view='names'] .b-trophy,
[data-view='done'] .b-trophy {
  display: block;
}

[data-view='done'] .b-head {
  padding-bottom: 3.6rem;
}

.b-body {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.4rem 1rem 2rem;
}

.b-body h2 {
  font-size: clamp(1.55rem, 7vw, 2rem);
  text-align: center;
  color: var(--ink);
}

.b-body .blurb {
  margin: 0.4rem 0 1.2rem;
  text-align: center;
  font: italic 500 1.25rem/1.3 var(--italic);
}

.count {
  margin: 0 0 0.6rem;
  color: var(--ink);
  font: 600 0.74rem var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.count.ruled::before,
.count.ruled::after {
  height: 1px;
  border: 0;
  background: var(--gold-deep);
  max-width: none;
}

.names {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.names button {
  position: relative;
  width: 100%;
  min-height: 58px;
  padding: 0.4rem 2.4rem;
  background: var(--card);
  border: 1px solid var(--gold-deep);
  border-radius: 4px;
  box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 4px var(--line);
  color: var(--ink);
  font: 600 1.25rem var(--display);
  cursor: pointer;
}

.names button:active {
  background: var(--oxblood);
  color: var(--ivory);
}

.tick {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: -0.75rem;
  border-radius: 50%;
  background: var(--gold) var(--check) center / 72% no-repeat;
  box-shadow: inset 0 0 0 1px var(--gold-deep);
}

.legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.legend .tick {
  position: static;
  margin: 0;
  width: 1.15rem;
  height: 1.15rem;
}

.picks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pick {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 4px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.pick .shot {
  aspect-ratio: 1;
  border-radius: 2px;
}

.pick .no {
  top: 4px;
  left: 4px;
}

.pick .cap {
  display: block;
  padding: 0.5rem 0.3rem 0.45rem;
}

.pick .gift-name {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.pick .gift-meta {
  font-size: 1.02rem;
}

.pick .flag-vote {
  display: none;
}

.pick[aria-pressed='true'] {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px var(--gold), 0 8px 18px rgba(80, 55, 10, 0.25);
}

.pick[aria-pressed='true'] .flag-vote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  z-index: 3;
  padding: 0.38rem 0.4rem 0.32rem;
  background: var(--gold-fill);
  color: var(--ink);
  font: 600 0.74rem/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pick[aria-pressed='true'] .flag-vote::before {
  content: '';
  width: 0.95rem;
  height: 0.95rem;
  background: var(--check) center / contain no-repeat;
}

.pick[disabled] {
  cursor: not-allowed;
  color: var(--ink-soft);
  background: var(--ivory-2);
}

.pick[disabled] .shot {
  filter: grayscale(1) brightness(0.45);
}

.pick .own-flag {
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  aspect-ratio: 1;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 0.5rem;
  color: var(--ivory);
  font: 600 0.8rem/1.4 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pick .own {
  display: block;
  margin-top: 0.2rem;
  font: italic 500 1rem/1.25 var(--italic);
}

.ballot-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--ivory);
  border-top: 1px solid var(--gold-deep);
  box-shadow: 0 -8px 24px rgba(60, 40, 10, 0.12);
}

.ballot-nav .btn {
  flex: 1.5;
  padding-inline: 0.75rem;
  letter-spacing: 0.12em;
}

.ballot-nav .btn.quiet {
  flex: 1;
}

.has-nav {
  padding-bottom: 6.5rem;
}

.review {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.review li {
  border-bottom: 1px solid var(--line);
}

.review button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) 1rem;
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 0.6rem 0.2rem;
  background: none;
  border: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.review .r-n {
  display: block;
  font: 600 0.62rem var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.review .r-cat {
  display: block;
  font: 600 0.82rem/1.25 var(--sans);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.review .r-pick {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.6rem;
  align-items: center;
  font: 500 0.92rem/1.25 var(--sans);
}

.review .r-pick img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--gold-deep);
  border-radius: 2px;
}

.review .r-pick.blank {
  display: block;
  font: italic 500 1.1rem var(--italic);
  color: var(--oxblood);
}

.review .chev {
  font-size: 1.4rem;
  color: var(--ink-soft);
}

.notice,
.done {
  text-align: center;
  padding-top: 1.5rem;
}

.notice h2 {
  font-size: clamp(1.9rem, 9vw, 2.6rem);
}

.notice h2::after {
  content: '';
  display: block;
  width: 78%;
  height: 1px;
  margin: 1.4rem auto;
  background: var(--gold-deep);
}

.notice p,
.done p {
  margin: 0 auto 1.4rem;
  max-width: 21em;
}

.done {
  padding-top: 0;
}

.done-seal {
  width: 108px;
  margin: -4.9rem auto 0.9rem;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
}

.done h2 {
  font-size: clamp(2rem, 9vw, 2.6rem);
}

.done .thanks {
  margin: 0.5rem 0 0.6rem;
  font: italic 600 1.7rem var(--italic);
}

.done .btn {
  margin-top: 0.5rem;
  border-top: 0;
}

.fanfoot {
  display: none;
  flex: none;
  height: 150px;
  margin-top: auto;
  background: var(--black)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 150' preserveAspectRatio='xMidYMax slice'%3E%3Cg fill='%23100e0d' stroke='%23d9ba75' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M200 150 -40 150 20 96Z'/%3E%3Cpath d='M200 150 440 150 380 96Z'/%3E%3Cpath d='M200 150 20 96 96 52Z'/%3E%3Cpath d='M200 150 380 96 304 52Z'/%3E%3Cpath d='M200 150 96 52 160 22Z'/%3E%3Cpath d='M200 150 304 52 240 22Z'/%3E%3Cpath d='M200 150 160 22 240 22Z'/%3E%3C/g%3E%3C/svg%3E")
    center bottom / cover no-repeat;
  clip-path: polygon(0 100%, 0 64%, 5% 64%, 24% 35%, 40% 15%, 60% 15%, 76% 35%, 95% 64%, 100% 64%, 100% 100%);
}

[data-view='notice'] .fanfoot {
  display: block;
}

.whoami {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.textlink {
  background: none;
  border: 0;
  padding: 0.75rem 0.5rem;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 6rem;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90vw;
  padding: 0.7rem 1.1rem;
  background: var(--oxblood);
  color: #fff;
  border: 1px solid var(--gold);
  border-radius: 4px;
  z-index: 20;
}

/* ---------- TV ---------- */

body.tv {
  height: 100vh;
  overflow: hidden;
  font-size: 1.5vw;
  line-height: 1.3;
  background: var(--black) url('/img/stage.jpg') center / cover no-repeat;
}

.tv-frame {
  position: relative;
  height: 100vh;
  padding: 3.4vh 5vw 4.5vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 2vh;
  overflow: hidden;
}

.tv-frame::after {
  content: '';
  position: absolute;
  inset: 1.1vh 0.65vw;
  border: 0.1vw solid rgba(217, 186, 117, 0.55);
  pointer-events: none;
  z-index: 4;
}

.tv-frame .curtain {
  height: 78%;
  z-index: 0;
}

.tv-frame > header,
.tv-frame > main {
  position: relative;
  z-index: 2;
}

.tv-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6vw;
  padding-bottom: 1.3vh;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent) bottom / 62% 0.09vw no-repeat;
}

.tv-top img {
  width: 4.2vw;
  height: 4.2vw;
  object-fit: contain;
}

.tv-top h1 {
  font-size: 2.05vw;
  font-weight: 500;
  color: var(--ivory);
  white-space: nowrap;
  line-height: 1;
}

.tv-top h1 small {
  display: block;
  margin-bottom: 0.3vh;
  font: 500 0.82vw var(--sans);
  letter-spacing: 0.3em;
}

.tv-top p {
  margin: 0;
  padding-left: 1.6vw;
  max-width: 18vw;
  border-left: 0.09vw solid var(--gold);
  color: var(--ivory);
  font: 500 0.86vw/1.45 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tv-body {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 2.2vh;
}

.tv-head {
  text-align: center;
}

.tv-head h2,
.tv-centre h2,
.tv-cer h2 {
  font-size: 4.3vw;
  font-weight: 600;
  color: var(--ivory);
  text-shadow: 0 0.2vw 1.2vw rgba(0, 0, 0, 0.7);
}

.tv-kick {
  margin: 0.9vh 0 0;
  color: var(--gold);
  font: 500 1.25vw var(--sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

/* exchange board */

.tv-split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15.5vw;
  gap: 1.6vw;
}

.tv-board {
  --cols: 6;
  --k: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 1vw;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: calc(var(--k) * 1vw);
}

.tv-gift {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 0.3vw;
  background: var(--ivory);
  color: var(--ink);
  border: 0.1vw solid var(--gold);
  border-radius: 0.35vw;
  box-shadow: 0 0.8vw 1.6vw rgba(0, 0, 0, 0.5);
  text-align: center;
  overflow: hidden;
}

.tv-gift > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  background: var(--coal-2);
  border-radius: 0.2vw;
}

.tv-gift .cap {
  padding: 0.55em 0.3em 0.35em;
  line-height: 1.2;
}

.tv-gift .n {
  display: block;
  font: 600 0.9em var(--sans);
  letter-spacing: 0.08em;
}

.tv-gift .gift-name {
  font: 600 1.12em/1.18 var(--sans);
  letter-spacing: 0.01em;
  text-transform: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.36em;
}

.tv-gift .gift-meta {
  margin-top: 0.15em;
  font: 500 0.92em/1.2 var(--sans);
  color: var(--ink-soft);
}

.tv-gift .steals {
  display: block;
  margin: 0.45em 0.2em 0;
  padding: 0.28em 0.4em 0.22em;
  border-radius: 0.3em;
  background: var(--oxblood);
  color: var(--ivory);
  font: 600 0.92em/1.1 var(--sans);
  letter-spacing: 0.06em;
}

.tv-gift.frozen .steals {
  background: var(--gold-fill);
  color: var(--ink);
  letter-spacing: 0.02em;
}

.tv-gift.frozen {
  border-color: var(--gold-hi);
  box-shadow: 0 0 0 0.16vw var(--gold), 0 0.8vw 1.6vw rgba(0, 0, 0, 0.5);
}

.tv-qr {
  align-self: start;
  padding: 1.2vw 1vw 1vw;
  background: var(--ivory);
  color: var(--ink);
  border: 0.1vw solid var(--gold);
  border-radius: 0.35vw;
  text-align: center;
  box-shadow: 0 0.8vw 1.6vw rgba(0, 0, 0, 0.5);
}

.tv-qr h3 {
  font-size: 1.45vw;
}

.tv-qr p {
  margin: 0.8vh 0 1.4vh;
  font: 500 0.82vw/1.5 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tv-qr .tv-url {
  margin: 1.2vh 0 0;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.86vw;
  word-break: break-all;
}

.qr {
  padding: 6%;
  background: #fff;
}

.qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.tv-empty,
.tv-centre {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tv-empty img,
.tv-centre img {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 48vh;
  width: auto;
  margin-top: 3vh;
  filter: drop-shadow(0 0 3vw rgba(217, 186, 117, 0.35)) drop-shadow(0 2vw 2vw rgba(0, 0, 0, 0.7));
}

.tv-empty p {
  margin: 0;
  font: italic 500 2.4vw var(--italic);
  color: var(--gold-hi);
}

.tv-centre h2 {
  font-size: 5.2vw;
}

.tv-centre .tv-kick {
  font-size: 1.6vw;
  margin-top: 1.8vh;
}

.tv-centre .line {
  margin: 1.6vh 0 0;
  font: italic 500 2vw var(--italic);
  color: var(--ivory);
}

/* voting */

.tv-vote {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 25vw;
  align-items: center;
  gap: 3.2vw;
  padding: 0 2.5vw;
}

.tv-vote .qr {
  width: min(31vw, 58vh);
  padding: 1.6vw;
  border-radius: 0.3vw;
  box-shadow: 0 0 0 0.1vw var(--gold), 0 1.2vw 3vw rgba(0, 0, 0, 0.6);
}

.tv-count {
  padding-left: 3.2vw;
  border-left: 0.09vw solid rgba(217, 186, 117, 0.6);
  text-align: center;
}

.tv-count .num {
  margin: 0;
  color: var(--gold-hi);
  font: 600 4.6vw/1 var(--display);
  text-transform: uppercase;
  white-space: nowrap;
}

.tv-count .num strong {
  font-size: 1.35em;
  font-weight: 600;
}

.tv-count .lbl {
  margin: 0.6vh 0 0;
  color: var(--gold-hi);
  font: 600 3vw/1.1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tv-count .how {
  margin: 3.2vh auto 0;
  padding-top: 3.2vh;
  max-width: 16em;
  border-top: 0.09vw solid rgba(217, 186, 117, 0.6);
  font: 500 1.2vw/1.7 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.tv-count .tv-url {
  margin: 1.6vh 0 0;
  color: var(--gold);
  font-size: 1.15vw;
}

.tv-status {
  max-height: 100%;
  padding: 1.1vw 1.4vw 0.8vw;
  background: var(--ivory);
  color: var(--ink);
  border: 0.1vw solid var(--gold);
  border-radius: 0.4vw;
  box-shadow: 0 0.8vw 1.6vw rgba(0, 0, 0, 0.5);
}

.tv-status h3 {
  font-size: 1.5vw;
  text-align: center;
  padding-bottom: 0.9vh;
  border-bottom: 0.09vw solid var(--gold-deep);
}

.tv-status ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: v;
}

.tv-status li {
  counter-increment: v;
  display: grid;
  grid-template-columns: 2.2vw 1fr auto;
  align-items: center;
  padding: 0.62vh 0;
  border-bottom: 0.07vw solid var(--line);
  font: 500 1.3vw var(--sans);
}

.tv-status li:last-child {
  border-bottom: 0;
}

.tv-status li::before {
  content: counter(v) '.';
  color: var(--ink-soft);
  font-size: 0.85em;
}

.tv-status .st {
  display: inline-flex;
  align-items: center;
  gap: 0.5vw;
  min-width: 8.2vw;
  font-size: 1.05vw;
  color: var(--ink-soft);
}

.tv-status .st::before {
  content: '';
  width: 1.25vw;
  height: 1.25vw;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.12vw #8d8073;
}

.tv-status .voted .st {
  color: var(--ok);
  font-weight: 600;
}

.tv-status .voted .st::before {
  box-shadow: none;
  background: var(--ok)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 75% no-repeat;
}

/* ceremony */

.pill {
  display: inline-block;
  margin: 0 0 1.4vh;
  padding: 0.5vh 1.8vw 0.4vh;
  background: linear-gradient(180deg, #7d162b, var(--oxblood));
  border: 0.09vw solid var(--gold);
  border-radius: 0.3vw;
  color: var(--ivory);
  font: 500 1.05vw var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.tv-cer {
  flex: 1;
  min-height: 0;
}

.tv-cer.sealed {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tv-cer.sealed h2 {
  max-width: 70vw;
}

.tv-cer h2.long {
  font-size: 3.3vw;
}

.tv-cer.sealed .tv-kick {
  font-size: 1.55vw;
  max-width: 78vw;
  line-height: 1.5;
}

.tv-cer.sealed .tv-kick.wordy {
  font-size: 1.25vw;
  letter-spacing: 0.22em;
}

.tv-cer.sealed .tv-kick.ruled::before,
.tv-cer.sealed .tv-kick.ruled::after {
  height: 0.09vw;
  border: 0;
  background: var(--gold);
  min-width: 5vw;
  max-width: 9vw;
}

.env {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2vh;
}

.env img {
  max-height: 100%;
  width: auto;
  max-width: 50vw;
  object-fit: contain;
  filter: drop-shadow(0 0 4vw rgba(217, 186, 117, 0.28)) drop-shadow(0 3vh 3vh rgba(0, 0, 0, 0.75));
  animation: hover 5s ease-in-out infinite;
}

.tv-cer.opened {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 3vw;
  padding: 0 3vw 0 5vw;
}

.win {
  text-align: center;
  padding-bottom: 6vh;
}

.win h2 {
  font-size: 2.5vw;
}

.win .tv-kick {
  font-size: 1.05vw;
}

.ribbon {
  position: relative;
  display: inline-block;
  margin: 2.6vh 0 0;
  padding: 0.8vh 3vw 0.6vh;
  background: linear-gradient(180deg, #86182e, var(--oxblood));
  border-block: 0.09vw solid var(--gold);
  color: var(--ivory);
  font: 500 1.35vw var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 1vw) 50%, 100% 100%, 0 100%, 1vw 50%);
}

.who {
  display: flex;
  justify-content: center;
  margin: 1vh 0 1.2vh;
  color: var(--ivory);
  font: 700 11vw/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-shadow: 0 0.3vw 2vw rgba(0, 0, 0, 0.7);
}

.who.laurelled {
  gap: 0.12em;
}

.who.laurelled::before,
.who.laurelled::after {
  width: 0.5em;
  height: 1.05em;
}

.who.m {
  font-size: 8.4vw;
}

.who.l {
  font-size: 6.6vw;
}

.who.xl {
  font-size: 4.8vw;
}

.win .for {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vh;
  margin: 0;
  font: italic 500 2.3vw/1.15 var(--italic);
  color: var(--gold-hi);
}

.win .for b {
  padding: 0.5vh 1.6vw 0.35vh;
  background: var(--gold-fill);
  border-radius: 0.3vw;
  color: var(--ink);
  font: 600 1.15vw var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.gilt {
  justify-self: center;
  width: min(25vw, 50vh);
  margin: 0 0 5vh;
  padding: 1vw;
  background: linear-gradient(135deg, #f3e2b0, #b8924a 28%, #f1dca4 50%, #a8853f 74%, #e9cf8f);
  box-shadow: inset 0 0 0 0.12vw rgba(60, 40, 8, 0.55), inset 0 0 0 0.5vw rgba(255, 244, 205, 0.22), 0 2vw 3.5vw rgba(0, 0, 0, 0.7);
}

.gilt img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--coal-2);
  box-shadow: 0 0 0 0.12vw rgba(60, 40, 8, 0.7), 0 0 0 0.4vw var(--black);
  margin: 0.4vw;
  width: calc(100% - 0.8vw);
}

.env-open {
  position: absolute;
  left: 57%;
  bottom: -3.5vh;
  width: 21vw;
  transform: translateX(-50%);
  filter: drop-shadow(0 1vw 1.6vw rgba(0, 0, 0, 0.7));
  z-index: -1;
}

.opened .win {
  animation: rise 0.9s ease-out 0.25s both;
}

.opened .gilt {
  animation: rise 0.9s ease-out 0.7s both;
}

.opened .env-open {
  animation: fade 0.6s ease-out both;
}

@keyframes hover {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-1.4vh) rotate(1deg);
  }
}

@keyframes rise {
  from {
    transform: translateY(3vh);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

/* honour roll */

.honours {
  --rows: 4;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--rows), minmax(0, 1fr));
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.9vh 1.2vw;
  margin: 0;
  padding: 0;
  list-style: none;
}

.honours li {
  display: grid;
  grid-template-columns: 2.6vw minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9vw;
  padding: 0.35vw 1vw 0.35vw 0.35vw;
  background: var(--ivory);
  color: var(--ink);
  border: 0.08vw solid var(--gold);
  border-radius: 0.3vw;
  line-height: 1.15;
}

.honours .n {
  align-self: stretch;
  display: grid;
  place-items: center;
  background: var(--oxblood);
  border-radius: 0.2vw;
  color: var(--gold-hi);
  font: 500 1.35vw var(--display);
}

.honours .h-cat {
  font: 600 1.08vw/1.15 var(--sans);
}

.honours small {
  display: block;
  margin-top: 0.15vw;
  font: italic 500 1.08vw/1.1 var(--italic);
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.honours .h-win {
  max-width: 11vw;
  text-align: right;
  font: 600 1.45vw/1.1 var(--display);
}

.honours .h-win small {
  max-width: 11vw;
}

.honour-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 2vw;
  padding: 1.2vh 3vw;
  background: linear-gradient(180deg, #7d162b, var(--oxblood) 60%, #4c0a17);
  border: 0.1vw solid var(--gold);
  border-radius: 0.5vw;
  box-shadow: inset 0 0 0 0.3vw var(--oxblood), inset 0 0 0 0.38vw rgba(217, 186, 117, 0.5);
}

.honour-top img {
  height: 13vh;
  width: auto;
  margin: -1vh 0;
  filter: drop-shadow(0 0.5vw 0.8vw rgba(0, 0, 0, 0.5));
}

.honour-top h3 {
  font-size: 2.5vw;
  font-weight: 500;
  color: var(--gold-hi);
}

.honour-top p {
  margin: 0.5vh 0 0;
  color: var(--gold);
  font: 500 1vw var(--sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.honour-top .w {
  padding-left: 2.5vw;
  border-left: 0.09vw solid var(--gold);
  text-align: center;
}

.honour-top .w small {
  display: block;
  color: var(--ivory);
  font: 500 0.95vw var(--sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.honour-top .w strong {
  display: block;
  font: 700 4.2vw/1.05 var(--display);
  text-transform: uppercase;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.honour-top .w span {
  display: block;
  max-width: 24vw;
  font: italic 500 1.3vw/1.1 var(--italic);
  color: var(--ivory);
}

/* ---------- stage manager ---------- */

body.admin {
  background: var(--black);
  color: var(--ivory);
  font-size: 1rem;
  line-height: 1.45;
  color-scheme: dark;
}

.admin-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: calc(0.6rem + env(safe-area-inset-top)) 0.75rem 0.6rem;
  background: rgba(16, 14, 13, 0.96);
  border-bottom: 1px solid rgba(217, 186, 117, 0.45);
  backdrop-filter: blur(8px);
}

.admin-bar .title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding-bottom: 0.55rem;
}

.admin-bar .title img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.admin-bar h1 {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ivory);
  letter-spacing: 0.06em;
}

.admin-bar .phase-now {
  padding: 0.2rem 0.6rem 0.15rem;
  border: 1px solid var(--gold);
  border-radius: 99px;
  color: var(--gold);
  font: 500 0.66rem var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
  max-width: 720px;
  margin: 0 auto;
}

.tabs button {
  min-height: 46px;
  padding: 0 0.3rem;
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ivory);
  font: 500 0.95rem var(--sans);
  cursor: pointer;
}

.tabs button[aria-selected='true'] {
  background: var(--oxblood);
  border-color: var(--gold);
  color: #fff;
}

.admin-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 0.9rem 5rem;
}

.page-title {
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  text-align: center;
  border-bottom: 1px solid rgba(217, 186, 117, 0.45);
}

.page-title h2 {
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--ivory);
}

.page-title p {
  margin: 0.45rem auto 0;
  max-width: 26em;
  color: #cfc5b4;
  font-size: 0.95rem;
}

.admin h2.sec {
  margin: 1.8rem 0 0.7rem;
  color: var(--gold);
  font: 600 0.86rem var(--sans);
  letter-spacing: 0.2em;
}

.admin h3 {
  margin: 0 0 0.8rem;
  color: var(--gold-hi);
  font: 500 1.08rem var(--display);
  letter-spacing: 0.06em;
}

.panel {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--coal);
  border: 1px solid rgba(217, 186, 117, 0.42);
  border-radius: 8px;
}

.field {
  display: block;
  margin-bottom: 0.85rem;
}

.field > span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: #e4dbc9;
}

.field small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: #a99f8f;
}

input[type='text'],
input[type='number'],
input[type='password'],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.55rem 0.7rem;
  background: #0b0908;
  border: 1px solid rgba(217, 186, 117, 0.5);
  border-radius: 5px;
  color: var(--ivory);
  font: 1rem var(--sans);
}

input::placeholder {
  color: #7d7468;
}

input[type='file'] {
  width: 100%;
  font: 0.9rem var(--sans);
  color: #cfc5b4;
}

input[type='file']::file-selector-button {
  min-height: 44px;
  margin-right: 0.75rem;
  padding: 0 1rem;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 5px;
  color: var(--gold);
  font: 500 0.85rem var(--sans);
  cursor: pointer;
}

input[type='checkbox'] {
  width: 1.3rem;
  height: 1.3rem;
  accent-color: var(--gold);
}

textarea {
  min-height: 9rem;
  line-height: 1.45;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.row.split {
  justify-content: space-between;
}

.two {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
}

.gift-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.gift-row > img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  background: var(--coal-2);
  border: 1px solid rgba(217, 186, 117, 0.5);
  border-radius: 5px;
}

.admin .gift-name {
  font: 500 1.05rem/1.25 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ivory);
}

.admin .gift-name b {
  color: var(--gold);
  font-weight: 500;
  margin-right: 0.3rem;
}

.admin .gift-meta {
  font: 400 0.9rem var(--sans);
  color: #b9af9f;
}

.gift-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.stepper button {
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 5px;
  color: var(--gold);
  font: 500 1.5rem/1 var(--sans);
  cursor: pointer;
}

.stepper button.plus {
  background: var(--gold-fill);
  color: var(--ink);
  border-color: transparent;
}

.stepper output {
  min-width: 5.2rem;
  text-align: center;
  font-weight: 500;
}

.stepper output.frozen {
  color: var(--gold);
}

.phase-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phase-list button {
  position: relative;
  width: 100%;
  min-height: 60px;
  padding: 0.6rem 5.6rem 0.6rem 1rem;
  text-align: left;
  background: #0b0908;
  border: 1px solid rgba(217, 186, 117, 0.45);
  border-radius: 6px;
  color: var(--ivory);
  font: 1rem var(--sans);
  cursor: pointer;
}

.phase-list button strong {
  display: block;
  font-weight: 500;
  font-size: 1.05rem;
}

.phase-list button span {
  font-size: 0.86rem;
  color: #b9af9f;
}

.phase-list button[aria-current='true'] {
  background: var(--oxblood);
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.phase-list button[aria-current='true'] span {
  color: #ecd9c4;
}

.phase-list button[aria-current='true']::after {
  content: 'Current';
  position: absolute;
  top: 50%;
  right: 0.8rem;
  transform: translateY(-50%);
  color: var(--gold-hi);
  font: 500 0.66rem var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.on-tv {
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: #0b0908;
  border: 1px solid rgba(217, 186, 117, 0.45);
  border-radius: 6px;
  text-align: center;
}

.cue-label {
  margin-bottom: 0.4rem;
  color: var(--gold);
  font: 500 0.72rem var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.on-tv .cue-main {
  font: 500 1.2rem/1.25 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.private {
  padding: 1.1rem 1rem 1.3rem;
  margin-bottom: 0.9rem;
  background: linear-gradient(180deg, #5b0d1d, #3d0812);
  border: 1px solid var(--gold);
  border-radius: 6px;
  text-align: center;
}

.private .cue-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-hi);
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 0.9rem;
}

.private .cue-label::before {
  content: '';
  width: 1rem;
  height: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3e2b0' stroke-width='2'%3E%3Crect x='5' y='11' width='14' height='10' rx='1.5'/%3E%3Cpath d='M8 11V7.5a4 4 0 018 0V11'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.private .lead {
  margin: 0.7rem 0 0.2rem;
  font: 500 0.82rem var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.private .name {
  margin: 0;
  font: italic 600 2.5rem/1.05 var(--italic);
  color: #fff;
}

.private .detail {
  margin: 0.4rem 0 0;
  color: #ecd9c4;
  font-size: 0.95rem;
}

.cue-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
}

.result {
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--coal);
  border: 1px solid rgba(217, 186, 117, 0.42);
  border-radius: 8px;
}

.result .r-cat {
  color: var(--gold);
  font: 500 0.78rem/1.4 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.result .r-win {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.6rem;
  margin: 0.3rem 0 0.1rem;
  font: italic 600 1.7rem/1.1 var(--italic);
  color: #fff;
}

.result .r-for {
  color: #cfc5b4;
  font-size: 0.92rem;
}

.tally {
  width: 100%;
  margin-top: 0.8rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.tally caption {
  padding-bottom: 0.3rem;
  text-align: left;
  color: #a99f8f;
  font: 500 0.7rem var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tally td {
  padding: 0.45rem 0.4rem;
  border-top: 1px solid rgba(217, 186, 117, 0.22);
}

.tally td:nth-child(2) {
  width: 4.5rem;
  text-align: right;
  white-space: nowrap;
  color: #cfc5b4;
}

.tally td:last-child {
  width: 5.2rem;
  text-align: right;
}

.flag {
  display: inline-block;
  padding: 0.18rem 0.55rem 0.12rem;
  background: var(--oxblood-hi);
  border: 1px solid #d0606f;
  border-radius: 99px;
  color: #fff;
  font: 600 0.68rem var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: middle;
}

.flag.ok,
.flag.win {
  background: var(--gold-fill);
  border-color: transparent;
  color: var(--ink);
}

.ruling {
  margin-top: 0.9rem;
  padding: 0.9rem;
  background: #0b0908;
  border: 1px solid rgba(217, 186, 117, 0.45);
  border-radius: 6px;
}

.ruling h4 {
  margin: 0 0 0.15rem;
  color: var(--gold-hi);
  font: 500 0.8rem var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ruling p {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  color: #b9af9f;
}

.ruling select {
  margin-bottom: 0.6rem;
}

.msg {
  padding: 0.7rem 0.9rem;
  margin-bottom: 1rem;
  background: var(--oxblood-hi);
  border: 1px solid #d0606f;
  border-radius: 6px;
  color: #fff;
}

.muted {
  color: #b9af9f;
  font-size: 0.92rem;
}

.cat-row {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(217, 186, 117, 0.22);
}

.cat-row:first-child {
  padding-top: 0;
}

.cat-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cat-row strong {
  font-weight: 500;
  font-size: 1.02rem;
}

.danger-zone {
  border-color: #b23434;
}

.danger-zone h3 {
  color: #ff8e8e;
}

.login {
  position: relative;
  max-width: 420px;
  min-height: 100svh;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.login .curtain {
  width: 26%;
  height: 56%;
  object-fit: fill;
}

.login > *:not(.curtain) {
  position: relative;
  z-index: 1;
}

.login .trophy {
  width: 190px;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 40px rgba(217, 186, 117, 0.25)) drop-shadow(0 14px 18px rgba(0, 0, 0, 0.6));
}

.login h1 {
  font-size: 2.3rem;
  font-weight: 500;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login h1 small {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  font: 500 0.8rem var(--sans);
  letter-spacing: 0.5em;
}

.login h2 {
  margin: 1.6rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(217, 186, 117, 0.45);
  color: var(--ivory);
  font: 500 0.95rem var(--sans);
  letter-spacing: 0.3em;
}

.login input {
  margin-bottom: 0.9rem;
  min-height: 54px;
  text-align: center;
}

.login .msg {
  text-align: left;
}
