/* CNX 6100 ROCKSTARS — Masskara x candy design system */

:root {
  --plum-950: #170a24;
  --plum-900: #221033;
  --plum-800: #2d1743;
  --plum-700: #3a1f56;
  --plum-600: #4b2a6e;
  --ink: #fff6fc;
  --ink-dim: #cbb4e0;
  --ink-faint: #9d84b8;

  --magenta: #ff2e97;
  --magenta-deep: #d1146f;
  --mango: #ffb637;
  --lemon: #ffd23f;
  --teal: #19c8b4;
  --lime: #8fd627;
  --tangerine: #ff7a1a;
  --sky: #3ec5ff;

  --note-pink: #ffd7e8;
  --note-lemon: #fff3c2;
  --note-mint: #ccf5e4;
  --note-sky: #d2ecff;
  --note-lilac: #e8dcff;

  --font-display: "Bricolage Grotesque", "Outfit", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 1.25rem;
  --maxw: 76rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(70rem 38rem at 82% -10%, rgba(255, 46, 151, 0.09), transparent 62%),
    radial-gradient(54rem 32rem at -8% 58%, rgba(25, 200, 180, 0.06), transparent 66%),
    var(--plum-900);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--mango); }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.58; transform: none !important; box-shadow: none; }
/* Native dropdown menus may use a light system surface even in our dark UI. */
select option {
  background: var(--ink);
  color: var(--plum-950);
}
::selection { background: var(--magenta); color: var(--ink); }

.skip-link {
  position: fixed;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  color: var(--plum-950);
  background: var(--lemon);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--lemon);
  outline-offset: 2px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* grain overlay — fixed, non-interactive */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.shell {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  position: relative;
  z-index: 1;
}

/* ---------------- nav ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--plum-900) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--magenta) 28%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 7%, transparent);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid var(--mango);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mango);
}
.nav-right { display: flex; align-items: center; gap: 0.6rem; }
.nav-qr-btn {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border-radius: 12px;
}
.nav-qr-btn svg { width: 1.25rem; height: 1.25rem; }
.nav-signout svg { display: none; }

/* ---------------- buttons & chips ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.35rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--plum-950);
  background: linear-gradient(120deg, var(--lemon), var(--mango));
  box-shadow: 0 5px 0 var(--magenta-deep), 0 14px 28px -12px rgba(255, 46, 151, 0.55);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), filter 0.25s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:active { transform: translateY(1px) scale(0.98); box-shadow: 0 2px 0 var(--magenta-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid color-mix(in srgb, var(--teal) 70%, transparent);
  box-shadow: none;
}
.btn-ghost:hover { background: color-mix(in srgb, var(--teal) 16%, transparent); }

.btn-danger {
  background: linear-gradient(120deg, var(--tangerine), var(--magenta));
  color: var(--ink);
  box-shadow: 0 5px 0 #7a0b41, 0 14px 28px -12px rgba(255, 122, 26, 0.5);
}

.btn-danger-ghost {
  border-color: color-mix(in srgb, var(--tangerine) 55%, transparent);
  color: var(--tangerine);
}
.btn-danger-ghost:hover { background: color-mix(in srgb, var(--tangerine) 16%, transparent); border-color: var(--tangerine); }

.btn-sm { padding: 0.45rem 0.95rem; font-size: 0.85rem; }

.chip {
  border: 2px solid color-mix(in srgb, var(--ink) 18%, transparent);
  background: color-mix(in srgb, var(--plum-800) 70%, transparent);
  color: var(--ink-dim);
  border-radius: 999px;
  padding: 0.42rem 1.05rem;
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform 0.2s var(--ease-out), background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { transform: translateY(-1px); color: var(--ink); }
.chip:active { transform: scale(0.96); }
.chip.is-on {
  color: var(--plum-950);
  border-color: transparent;
  background: linear-gradient(120deg, var(--teal), var(--sky));
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}
.chip.q-on { background: linear-gradient(120deg, var(--magenta), var(--tangerine)); }

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  padding-block: clamp(3rem, 8vh, 6rem) clamp(2.5rem, 6vh, 4.5rem);
}
.hero-copy-stack > * {
  opacity: 0;
  animation: hero-in 0.75s var(--ease-out) forwards;
}
.hero-copy-stack > :nth-child(2) { animation-delay: 80ms; }
.hero-copy-stack > :nth-child(3) { animation-delay: 150ms; }
.hero-copy-stack > :nth-child(4) { animation-delay: 220ms; }
.hero-copy-stack > :nth-child(5) { animation-delay: 290ms; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.overline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
}
.overline::before {
  content: "";
  width: 2.2rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--magenta), var(--mango));
}
.hero h1 {
  margin: 1rem 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.7rem, 7.2vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero h1 .line-2 {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px var(--mango);
  text-stroke: 2px var(--mango);
}
.hero h1 .line-3 {
  display: block;
  color: var(--magenta);
  text-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
}
.hero-copy {
  max-width: 52ch;
  color: var(--ink-dim);
  font-size: 1.08rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero-stats {
  display: flex;
  gap: 2.2rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}
.hero-stats .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--lemon);
  font-variant-numeric: tabular-nums;
}
.hero-stats .stat span {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hero-art { position: relative; }
.hero-art img {
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 98%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 98%);
  animation: floaty 7s ease-in-out infinite;
  will-change: transform;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 8%;
  background: radial-gradient(circle, rgba(255, 46, 151, 0.32), rgba(255, 182, 55, 0.12) 55%, transparent 72%);
  filter: blur(10px);
  z-index: -1;
  border-radius: 50%;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-16px) rotate(1.2deg); }
}

/* ---------------- marquee ---------------- */

.marquee {
  overflow: hidden;
  border-block: 2px solid color-mix(in srgb, var(--magenta) 45%, transparent);
  background: linear-gradient(90deg, var(--plum-800), var(--plum-700), var(--plum-800));
  padding-block: 0.65rem;
  position: relative;
  z-index: 1;
}
.marquee-track {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  animation: marquee 26s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: var(--ink-dim);
  white-space: nowrap;
}
.marquee span b { color: var(--mango); font-weight: 800; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------- sections ---------------- */

.section { padding-block: clamp(3rem, 7vh, 5.5rem); }
#hall { scroll-margin-top: 5.5rem; min-height: 36rem; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.section-head h2 {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.section-head h2 em {
  font-style: normal;
  color: var(--teal);
}

/* filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  align-items: center;
  margin-bottom: 2rem;
}
.filter-group { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.filter-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-right: 0.3rem;
}
.search-box {
  flex: 1 1 14rem;
  max-width: 22rem;
  margin-left: auto;
  position: relative;
}
.search-box input {
  width: 100%;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--ink) 16%, transparent);
  background: color-mix(in srgb, var(--plum-800) 80%, transparent);
  color: var(--ink);
  padding: 0.55rem 1.1rem;
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s;
}
.search-box input::placeholder { color: var(--ink-faint); }
.search-box input:focus { border-color: var(--sky); outline: none; }

/* ---------------- awardee grid ---------------- */

.hall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  column-gap: clamp(1.8rem, 3vw, 2.4rem);
  row-gap: 1.6rem;
}
.hall-grid[data-count="1"] { grid-template-columns: minmax(18rem, 24rem); }

.rockstar-card {
  --tilt: 0deg;
  --lift: 0px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.45rem;
  min-height: 24rem;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--plum-800);
  border: 0;
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--ink);
  transform: translateY(var(--lift)) rotate(var(--tilt));
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  box-shadow: 0 22px 42px -22px rgba(10, 3, 18, 0.86);
  opacity: 0;
  animation: rise 0.7s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.rockstar-card:hover {
  --lift: -6px;
  box-shadow: 0 30px 52px -20px rgba(10, 3, 18, 0.92);
}
.rockstar-card:active { --lift: -2px; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.card-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--plum-950);
}
.card-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 3, 18, 0.28) 0%, transparent 30%),
    linear-gradient(180deg, transparent 35%, rgba(15, 5, 25, 0.32) 54%, rgba(18, 7, 29, 0.94) 82%, var(--plum-950) 100%);
  pointer-events: none;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; transition: transform 0.65s var(--ease-out), filter 0.35s; }
.rockstar-card:hover .card-photo img { transform: scale(1.06) rotate(0.6deg); }
.card-photo .monogram {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.4rem;
  color: var(--plum-950);
  background: linear-gradient(140deg, var(--candy, var(--magenta)), color-mix(in srgb, var(--candy, var(--magenta)) 55%, #fff 20%));
}

.card-q {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  background: color-mix(in srgb, var(--plum-950) 82%, transparent);
  color: var(--lemon);
  border: 2px solid var(--lemon);
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.18rem 0.55rem;
  letter-spacing: 0.06em;
}

.card-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.35rem; }
.card-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #fffafc;
  text-shadow: 0 2px 16px rgba(10, 3, 18, 0.82);
}
.card-program {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plum-950);
  background: var(--candy, var(--teal));
  border-radius: 6px;
  padding: 0.16rem 0.55rem;
}
.card-award { color: rgba(255, 246, 252, 0.78); font-size: 0.92rem; text-shadow: 0 2px 12px rgba(10, 3, 18, 0.85); }
.card-foot {
  position: relative;
  z-index: 1;
  margin-top: 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 246, 252, 0.68);
  font-size: 0.82rem;
}
.card-foot .wall-cta { color: var(--candy, var(--mango)); font-weight: 800; text-shadow: 0 2px 12px rgba(10, 3, 18, 0.9); }

/* empty + loading states */
.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border: 2px dashed color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: var(--radius);
  color: var(--ink-dim);
}
.empty-state img {
  width: 150px;
  margin: 0 auto 1.2rem;
  border-radius: 24px;
  animation: floaty 6s ease-in-out infinite;
}
.empty-state h3 { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 0.4rem; color: var(--ink); }

.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--plum-800) 40%, var(--plum-700) 50%, var(--plum-800) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------- wall ---------------- */

.wall-hero {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  margin-bottom: 2.2rem;
}
.wall-hero img.wall-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(1.15);
}
.wall-hero .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(23, 10, 36, 0.94) 22%, rgba(23, 10, 36, 0.55) 58%, rgba(23, 10, 36, 0.25));
}
.wall-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(13rem, 38%) 1fr;
  align-items: stretch;
}
.wall-photo {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--plum-950);
}
.wall-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 72%, rgba(23, 10, 36, 0.85));
  pointer-events: none;
}
.wall-title {
  align-self: center;
  padding: clamp(1.4rem, 4vw, 2.6rem);
}
.wall-photo img, .wall-photo .monogram { width: 100%; height: 100%; object-fit: cover; }
.wall-photo .monogram { display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 3rem; color: var(--plum-950); }
.wall-title h1 {
  margin: 0.3rem 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.wall-title .award-line { color: var(--lemon); font-weight: 600; font-size: 1.05rem; }
.wall-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.share-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-right: 0.15rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 2px solid color-mix(in srgb, var(--teal) 55%, transparent);
  background: rgba(23, 10, 36, 0.55);
  color: var(--teal);
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), border-color 0.2s, color 0.2s;
}
.share-btn svg { width: 15px; height: 15px; }
.share-btn:hover { transform: translateY(-2px) rotate(-3deg); border-color: var(--lemon); color: var(--lemon); }
.share-btn:active { transform: scale(0.94); }
.tag {
  border-radius: 999px;
  padding: 0.22rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid;
}
.tag.program { color: var(--teal); border-color: var(--teal); }
.tag.quarter { color: var(--mango); border-color: var(--mango); }
.tag.count { color: var(--magenta); border-color: var(--magenta); }

.wall-layout {
  display: grid;
  grid-template-columns: minmax(0, 22rem) 1fr;
  gap: 2rem;
  align-items: start;
}

.leave-note {
  position: sticky;
  top: 5.2rem;
  background: var(--note-lemon);
  color: var(--plum-950);
  border-radius: 4px 18px 18px 18px;
  padding: 1.4rem 1.3rem 1.5rem;
  transform: rotate(-1.4deg);
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.6);
}
.leave-note h3 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}
.leave-note label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0.7rem 0 0.3rem;
  color: color-mix(in srgb, var(--plum-950) 80%, #7a0b41);
}
.leave-note input, .leave-note textarea {
  width: 100%;
  border: 2px solid color-mix(in srgb, var(--plum-950) 25%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, #fff 70%, var(--note-lemon));
  color: var(--plum-950);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 0.7rem;
  resize: vertical;
}
.leave-note input:focus, .leave-note textarea:focus { outline: none; border-color: var(--magenta); }
.leave-note .btn { margin-top: 1rem; width: 100%; justify-content: center; }
.leave-note .form-error { color: var(--magenta-deep); font-size: 0.85rem; font-weight: 600; margin-top: 0.5rem; min-height: 1.2em; }
.field-help {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.35rem;
  color: color-mix(in srgb, var(--plum-950) 62%, transparent);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}
.leave-note .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wall-notes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.2rem;
}
.note {
  --r: 0deg;
  border-radius: 4px 16px 16px 16px;
  padding: 1.1rem 1.1rem 1rem;
  color: var(--plum-950);
  transform: rotate(var(--r));
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  opacity: 0;
  animation: rise 0.6s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 60ms);
  transition: transform 0.3s var(--ease-out);
}
.note.is-in { opacity: 1; animation: none; }
.note.is-in:hover { transform: rotate(0deg) translateY(-4px) scale(1.015); }
.note.bye { animation: note-bye 0.38s var(--ease-out) forwards; }
@keyframes note-bye {
  to { transform: scale(0.7) rotate(6deg); opacity: 0; }
}
.note p { margin: 0; font-size: 0.98rem; line-height: 1.5; overflow-wrap: anywhere; }
.note footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--plum-950) 72%, transparent);
}
.note footer time { font-weight: 500; }
.note-foot { display: inline-flex; align-items: center; gap: 0.45rem; }
.note-report {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: none;
  background: transparent;
  padding: 0;
  color: color-mix(in srgb, var(--plum-950) 55%, transparent);
  opacity: 0.5;
  transition: opacity 0.2s, color 0.2s, transform 0.2s;
}
.note-report svg { width: 13px; height: 13px; }
.note:hover .note-report { opacity: 0.95; }
.note-report:hover { color: var(--magenta-deep); transform: translateY(-1px); }
.note-report:disabled { opacity: 0.3; cursor: default; }
.note.c0 { background: var(--note-pink); }
.note.c1 { background: var(--note-lemon); }
.note.c2 { background: var(--note-mint); }
.note.c3 { background: var(--note-sky); }
.note.c4 { background: var(--note-lilac); }
.note.pop { animation: pop 0.5s var(--ease-out); opacity: 1; }
.note-universal {
  border: 2px dashed color-mix(in srgb, var(--magenta-deep) 45%, transparent);
  box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.6);
}
.note-universal-tag {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--plum-950) 68%, transparent);
}
@keyframes pop {
  0% { transform: scale(0.6) rotate(-6deg); opacity: 0; }
  60% { transform: scale(1.05) rotate(1deg); opacity: 1; }
  100% { transform: scale(1) rotate(var(--r)); }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
  color: var(--ink-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.back-link:hover { color: var(--lemon); }

.wall-topline { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.wall-topline .back-link { margin-bottom: 0; }
.wall-play { display: inline-flex; align-items: center; gap: 0.45rem; }
.wall-play svg { width: 0.9rem; height: 0.9rem; }

/* ---------------- wall show (animated wall replay) ---------------- */

body.wallshow-open { overflow: hidden; }
.wallshow {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60% 55% at 50% 34%, color-mix(in srgb, var(--magenta) 24%, transparent), transparent 70%),
    radial-gradient(45% 42% at 84% 80%, color-mix(in srgb, var(--teal) 13%, transparent), transparent 72%),
    var(--plum-950);
  color: var(--ink);
  transition: opacity 0.4s var(--ease-out);
}
.wallshow.is-out { opacity: 0; }
.wallshow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.wallshow-spot {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 42%, rgba(255, 210, 63, 0.14), transparent 46%);
  animation: ws-spot 3.4s ease-in-out infinite alternate;
}
@keyframes ws-spot {
  from { opacity: 0.55; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1.05); }
}
.wallshow-top { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; }
.wallshow-tag { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mango); }
.wallshow-ctls { display: flex; gap: 0.6rem; align-items: center; }
.wallshow-close {
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--ink) 22%, transparent);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), border-color 0.2s, color 0.2s;
}
.wallshow-close:hover { transform: translateY(-1px); border-color: var(--tangerine); color: var(--tangerine); }
.wallshow-close svg { width: 1rem; height: 1rem; }
.wallshow-stage { position: relative; z-index: 2; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 1.2rem 1.4rem; }

.ws-hero { display: flex; align-items: center; gap: clamp(1.2rem, 4vw, 2.6rem); }
.ws-photo-wrap { position: relative; width: clamp(9rem, 22vw, 13rem); aspect-ratio: 1; animation: ws-photo-in 0.7s cubic-bezier(0.2, 1.4, 0.3, 1) both; }
.ws-ring { position: absolute; inset: -9%; border-radius: 50%; border: 3px dashed color-mix(in srgb, var(--mango) 80%, transparent); animation: ws-ring-spin 9s linear infinite; }
.ws-photo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--lemon);
  box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 0.7), 0 0 0 8px color-mix(in srgb, var(--magenta) 16%, transparent);
}
.ws-photo img { width: 100%; height: 100%; object-fit: cover; }
.ws-monogram { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--font-display); font-weight: 800; font-size: 3rem; color: var(--plum-950); }
@keyframes ws-photo-in {
  from { transform: scale(0.5) rotate(-8deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes ws-ring-spin { to { transform: rotate(360deg); } }
.ws-hero-copy { display: grid; gap: 0.35rem; }
.ws-kicker { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: var(--teal); animation: ws-up 0.55s 0.15s var(--ease-out) both; }
.ws-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.02;
  color: var(--ink);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  animation: ws-up 0.55s 0.25s var(--ease-out) both;
}
.ws-award { color: var(--ink-dim); font-weight: 600; animation: ws-up 0.55s 0.35s var(--ease-out) both; }
@keyframes ws-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Docked phase: hero becomes a badge while the board takes the stage. */
.wallshow.is-board .wallshow-stage { align-items: stretch; justify-content: stretch; }
.wallshow.is-board .ws-hero {
  position: absolute;
  left: 1.1rem;
  top: 0.7rem;
  z-index: 3;
  gap: 0.7rem;
  animation: none;
}
.wallshow.is-board .ws-photo-wrap { width: 3.4rem; animation: none; }
.wallshow.is-board .ws-ring { inset: -12%; border-width: 2px; }
.wallshow.is-board .ws-photo { border-width: 2px; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.7); }
.wallshow.is-board .ws-monogram { font-size: 1rem; }
.wallshow.is-board .ws-hero-copy { gap: 0.1rem; align-content: center; }
.wallshow.is-board .ws-kicker { display: none; }
.wallshow.is-board .ws-name { font-size: 1.1rem; animation: none; text-shadow: none; }
.wallshow.is-board .ws-award { display: none; }

/* Awardee silhouette ghosted into the background, edges feathered. */
.ws-backdrop { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; overflow: hidden; pointer-events: none; }
.ws-backdrop-photo,
.ws-backdrop-silhouette {
  width: min(94vmin, 54rem);
  aspect-ratio: 1;
  -webkit-mask-image: radial-gradient(closest-side, #000 42%, transparent 97%);
  mask-image: radial-gradient(closest-side, #000 42%, transparent 97%);
}
.ws-backdrop-photo {
  object-fit: cover;
  opacity: 0.3;
  mix-blend-mode: luminosity;
  filter: grayscale(1) brightness(0.62) contrast(1.25);
}
.ws-backdrop-silhouette { color: var(--ink-dim); opacity: 0.13; }

.ws-board { position: absolute; left: 3.5vw; right: 3.5vw; top: 15%; bottom: 3%; z-index: 2; pointer-events: none; overflow: hidden; animation: ws-board-in 0.45s var(--ease-out) both; }
@keyframes ws-board-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ws-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--ink-dim); font-size: 1.02rem; line-height: 1.6; padding: 1rem; }

.wnote {
  position: absolute;
  z-index: 2;
  padding: 0.7rem 0.8rem 0.55rem;
  border-radius: 14px;
  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translate(var(--cx, 0px), var(--cy, 0px)) scale(0.5);
}
/* Held big in the middle of the stage before shrinking into its slot. */
.wnote.is-reveal {
  opacity: 1;
  transform: translate(var(--cx, 0px), var(--cy, 0px)) scale(1.75);
  z-index: 8;
  transition: transform 0.45s cubic-bezier(0.2, 1.4, 0.3, 1), opacity 0.2s ease-out;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.8), 0 0 0 3px color-mix(in srgb, var(--lemon) 55%, transparent);
}
.wnote.is-in {
  opacity: 1;
  transform: rotate(var(--r, 0deg));
  z-index: 2;
  transition: transform 0.8s cubic-bezier(0.2, 1.2, 0.3, 1), opacity 0.3s ease-out;
}
.ws-board.is-fade .wnote { opacity: 0; transition: opacity 0.4s ease-out; }
.wnote p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--plum-950);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wnote footer { margin-top: 0.4rem; font-size: 0.62rem; font-weight: 700; opacity: 0.75; color: var(--plum-950); }

.wnote-postit { border-radius: 4px 14px 14px 14px; }
.wnote-postit.wc0 { background: var(--note-pink); }
.wnote-postit.wc1 { background: var(--note-lemon); }
.wnote-postit.wc2 { background: var(--note-mint); }
.wnote-postit.wc3 { background: var(--note-sky); }
.wnote-postit.wc4 { background: var(--note-lilac); }
.wn-tape {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 62px;
  height: 17px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 2px;
}
.wnote-universal {
  background: var(--note-lemon);
  border: 2px solid color-mix(in srgb, var(--lemon) 75%, transparent);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.7);
}
.wn-tag {
  display: block;
  margin-bottom: 0.32rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--plum-950) 62%, transparent);
}

.wnote-bubble {
  padding-left: 2.7rem;
  background: color-mix(in srgb, var(--plum-800) 86%, var(--magenta-deep) 7%);
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  border-radius: 16px 16px 16px 5px;
}
.wnote-bubble::after {
  content: "";
  position: absolute;
  left: -7px;
  bottom: 11px;
  border-top: 9px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 10px solid color-mix(in srgb, var(--plum-800) 86%, var(--magenta-deep) 7%);
}
.wnote-bubble p, .wnote-bubble footer { color: var(--ink); }
.wn-avatar {
  position: absolute;
  left: 0.55rem;
  top: 0.55rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--plum-950);
}
.wnote-bubble.wc0 .wn-avatar { background: var(--magenta); }
.wnote-bubble.wc1 .wn-avatar { background: var(--lemon); }
.wnote-bubble.wc2 .wn-avatar { background: var(--teal); }
.wnote-bubble.wc3 .wn-avatar { background: var(--lime); }
.wnote-bubble.wc4 .wn-avatar { background: var(--tangerine); }

.ws-more-chip {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  border: 1.5px dashed color-mix(in srgb, var(--lemon) 55%, transparent);
  color: var(--ink-dim);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: none;
}

@media (max-width: 700px) {
  .wallshow-top { padding: 0.8rem 0.9rem; }
  .wallshow-tag { font-size: 0.6rem; letter-spacing: 0.16em; }
  .ws-board { left: 4vw; right: 4vw; top: 19%; }
  .wallshow.is-board .ws-hero { left: 0.9rem; }
  .wnote p { font-size: 0.74rem; }
  .wnote.is-reveal { transform: translate(var(--cx, 0px), var(--cy, 0px)) scale(1.3); }
}

@media (prefers-reduced-motion: reduce) {
  .ws-ring, .wallshow-spot, .ws-photo-wrap, .ws-kicker, .ws-name, .ws-award, .ws-board { animation: none; }
  .wnote, .wnote.is-reveal, .wnote.is-in { transition: opacity 0.3s ease-out; }
}

/* ---------------- footer ---------------- */

.footer {
  border-top: 1px solid color-mix(in srgb, var(--magenta) 25%, transparent);
  padding-block: 2rem 2.6rem;
  margin-top: 2rem;
  color: var(--ink-faint);
  font-size: 0.88rem;
}
.footer .shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}
.footer a { color: var(--ink-dim); }
.footer a:hover { color: var(--lemon); }
.footer-brand { justify-self: center; }
.footer-brand img { width: 40px; height: 40px; border-radius: 10px; }
.footer-powered { justify-self: end; letter-spacing: 0.05em; }
.footer-powered a { font-weight: 800; text-underline-offset: 0.2em; }

/* ---------------- admin ---------------- */

.admin-shell { padding-block: 2.2rem 4rem; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.admin-head h1 { font-family: var(--font-display); font-size: 1.7rem; margin: 0; }
.admin-head .who { color: var(--ink-dim); font-size: 0.9rem; }
.admin-head .who b { color: var(--lemon); }

.tabs { display: flex; gap: 0.5rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.tab {
  border: 2px solid color-mix(in srgb, var(--ink) 16%, transparent);
  background: transparent;
  color: var(--ink-dim);
  border-radius: 12px 12px 0 0;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
}
.tab.is-on {
  border-color: var(--mango);
  border-bottom-color: transparent;
  color: var(--lemon);
  background: var(--plum-800);
}
.tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-left: 0.35rem;
  padding-inline: 0.3rem;
  border-radius: 999px;
  background: var(--magenta);
  color: var(--plum-950);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.panel {
  background: var(--plum-800);
  border: 2px solid color-mix(in srgb, var(--mango) 35%, transparent);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 6%, transparent), 0 28px 60px -46px rgba(10, 3, 18, 0.9);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  align-items: end;
}
.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.35rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  border-radius: 12px;
  border: 2px solid color-mix(in srgb, var(--ink) 16%, transparent);
  background: var(--plum-900);
  color: var(--ink);
  padding: 0.6rem 0.8rem;
  font: inherit;
  font-size: 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.field .hint { font-size: 0.76rem; color: var(--ink-faint); margin-top: 0.3rem; }
.field input[type="file"] { padding: 0.45rem; }

.table-wrap { overflow-x: auto; margin-top: 1.8rem; }
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1rem;
  color: var(--ink-faint);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 46rem; }
th {
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0.6rem 0.8rem;
  border-bottom: 2px solid color-mix(in srgb, var(--mango) 40%, transparent);
}
td { padding: 0.7rem 0.8rem; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); vertical-align: middle; }
tr:hover td { background: color-mix(in srgb, var(--ink) 4%, transparent); }
td .mini-photo { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; border: 2px solid var(--plum-600); }
.row-actions { display: flex; gap: 0.4rem; }
.icon-btn {
  border: 2px solid color-mix(in srgb, var(--ink) 18%, transparent);
  background: transparent;
  color: var(--ink-dim);
  border-radius: 10px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  transition: transform 0.2s var(--ease-out), border-color 0.2s, color 0.2s, background-color 0.2s;
}
.icon-btn:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-1px); }
.icon-btn.danger:hover { border-color: var(--tangerine); color: var(--tangerine); }
.icon-btn:active { transform: scale(0.95); }

.msg-cell { max-width: 30rem; }
.msg-cell p { margin: 0 0 0.2rem; overflow-wrap: anywhere; }
.msg-cell .msg-meta { font-size: 0.76rem; color: var(--ink-faint); }
.badge-hidden {
  display: inline-block;
  background: var(--tangerine);
  color: var(--plum-950);
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.1rem 0.45rem;
  margin-left: 0.4rem;
}
.badge-reported {
  display: inline-block;
  background: var(--magenta);
  color: var(--plum-950);
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.1rem 0.45rem;
  margin-left: 0.4rem;
}
.badge-cleared {
  display: inline-block;
  background: var(--teal);
  color: var(--plum-950);
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.1rem 0.45rem;
  margin-left: 0.4rem;
}
.badge-deleted {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--ink-faint) 70%, transparent);
  color: var(--plum-950);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.reason-inline { margin-left: 0.45rem; color: var(--mango); }

/* editable awardee table */
.event-bar {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.9rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--teal) 7%, var(--plum-900));
}
.event-picker { display: grid; gap: 0.3rem; min-width: min(19rem, 100%); }
.event-picker label, .event-create label span {
  color: var(--ink-faint);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.event-picker select, .event-create select, .event-create input, .template-form input {
  min-height: 2.55rem;
  border: 1.5px solid color-mix(in srgb, var(--ink) 16%, transparent);
  border-radius: 10px;
  background: var(--plum-900);
  color: var(--ink);
  padding: 0.5rem 0.7rem;
  font: inherit;
}
.event-picker select:focus, .event-create select:focus, .event-create input:focus, .template-form input:focus { outline: none; border-color: var(--teal); }
.event-delete-btn { color: color-mix(in srgb, var(--tangerine) 78%, var(--ink)); border-color: color-mix(in srgb, var(--tangerine) 56%, transparent); }
.event-delete-btn:hover { color: var(--ink); border-color: var(--tangerine); background: color-mix(in srgb, var(--tangerine) 13%, transparent); }
.event-delete-btn svg { flex: 0 0 auto; width: 1rem; height: 1rem; }
.event-create { display: flex; align-items: end; gap: 0.6rem; flex: 1 1 24rem; }
.event-create[hidden] { display: none; }
.event-create label { display: grid; gap: 0.3rem; }
.event-create input { width: 7rem; }
.event-context { display: flex; align-items: center; gap: 0.75rem; margin: 0.2rem 0 0.8rem; color: var(--ink-dim); }
.event-context > span { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 10px; background: var(--mango); color: var(--plum-950); font-family: var(--font-display); font-weight: 850; }
.event-context strong, .event-context small { display: block; }
.event-context strong { color: var(--ink); font-family: var(--font-display); }
.event-context small { margin-top: 0.12rem; color: var(--ink-faint); }
.event-empty { margin-top: 1rem; }
.awardee-table-shell { margin-top: 0.4rem; }
.awardee-table-wrap {
  max-height: clamp(18rem, calc(100dvh - 24rem), 42rem);
  margin-top: 0;
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: 13px 13px 0 0;
  scrollbar-gutter: stable;
}
.awardee-table-wrap:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.awardee-table-wrap table.editable thead { position: sticky; top: 0; z-index: 2; background: var(--plum-800); }
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1rem;
  flex-wrap: wrap;
  min-height: 4.2rem;
  margin-top: 0;
  padding: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-top: 0;
  border-radius: 0 0 13px 13px;
  background: color-mix(in srgb, var(--plum-900) 88%, transparent);
  box-shadow: 0 16px 30px -28px rgba(10, 3, 18, 0.95);
}
.table-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.import-workbook-btn svg, .bulk-upload-btn svg { flex: 0 0 auto; width: 1rem; height: 1rem; }
.table-toolbar .hint { max-width: 34rem; color: var(--ink-faint); font-size: 0.76rem; line-height: 1.4; text-align: right; }
table.editable td { padding: 0.45rem 0.5rem; }
.cell-input {
  width: 100%;
  min-width: 8rem;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--ink) 14%, transparent);
  border-radius: 9px;
  color: var(--ink);
  padding: 0.42rem 0.55rem;
  font: inherit;
  font-size: 0.88rem;
}
.cell-input:focus { outline: none; border-color: var(--teal); }
/* Locked (saved) cells read as plain values until a double-click edits them. */
.cell-input:read-only,
select.cell-input:disabled {
  background: transparent;
  border-color: transparent;
  cursor: default;
}
.cell-input:read-only:focus,
select.cell-input:disabled:focus { outline: none; border-color: transparent; }
.cell-input:read-only:hover,
select.cell-input:disabled:hover { border-color: color-mix(in srgb, var(--ink) 22%, transparent); }
.employee-id-input { min-width: 8.5rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.025em; text-transform: uppercase; }
.cell-input.num { min-width: 0; width: 5.2rem; }
select.cell-input { min-width: 4.4rem; width: auto; }
.photo-cell { vertical-align: middle; white-space: nowrap; }
.photo-cell .mini-photo { display: block; }
.mini-none { display: inline-block; background: color-mix(in srgb, var(--ink) 8%, transparent); border-style: dashed; }
tr.dirty .cell-input { border-color: var(--lemon); }
tr.invalid .cell-input { border-color: var(--tangerine); }
tr.saving .cell-input { border-color: var(--teal); opacity: 0.78; }
tr.is-new td { background: color-mix(in srgb, var(--lime) 6%, transparent); }
tr.imported-row td { animation: imported-row-in 0.55s var(--ease-out) both; }
@keyframes imported-row-in {
  from { opacity: 0.35; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Excel awardee import */
.import-modal-veil { padding: clamp(0.75rem, 3vw, 2rem); }
.import-modal {
  width: min(54rem, 96vw);
  max-height: 94dvh;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-color: var(--teal);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 9%, transparent), 0 2rem 5rem -2rem rgba(12, 4, 22, 0.88);
}
.import-modal-head { display: flex; align-items: center; gap: 1rem; padding-right: 2rem; }
.import-modal-head h3 { margin: 0.18rem 0 0; font-size: clamp(1.65rem, 4vw, 2.5rem); letter-spacing: -0.035em; }
.import-modal-head .eyebrow { color: var(--teal); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.import-file-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  color: var(--plum-950);
  background: var(--mango);
  border-radius: 14px;
  transform: rotate(-3deg);
  box-shadow: 0 5px 0 var(--magenta-deep);
}
.import-file-icon svg { width: 1.8rem; height: 1.8rem; }
.import-modal > .modal-copy { max-width: 66ch; margin-top: 1rem; }
.import-workflow {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  margin-top: 1.35rem;
  border-block: 1px solid color-mix(in srgb, var(--ink) 13%, transparent);
}
.import-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  min-width: 0;
  padding: 1.2rem 1rem;
}
.import-step + .import-step { border-left: 1px solid color-mix(in srgb, var(--ink) 13%, transparent); }
.import-step-number { color: var(--mango); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; font-weight: 800; }
.import-step h4 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: 1rem; }
.import-step p { min-height: 2.6em; margin: 0.25rem 0 0.85rem; color: var(--ink-faint); font-size: 0.76rem; line-height: 1.4; }
.import-step .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.import-step .btn svg { flex: 0 0 auto; width: 1rem; height: 1rem; }
.import-file-picker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  background: color-mix(in srgb, var(--teal) 7%, transparent);
  border: 1.5px dashed color-mix(in srgb, var(--teal) 72%, transparent);
  border-radius: 11px;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.import-file-picker:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--teal) 12%, transparent); }
.import-file-picker:active { transform: scale(0.985); }
.import-file-picker svg { flex: 0 0 auto; width: 1.35rem; height: 1.35rem; color: var(--teal); }
.import-file-picker strong, .import-file-picker small { display: block; }
.import-file-picker strong { font-size: 0.84rem; }
.import-file-picker small { max-width: 24rem; margin-top: 0.1rem; overflow: hidden; color: var(--ink-faint); font-size: 0.68rem; text-overflow: ellipsis; white-space: nowrap; }
.import-feedback { margin-top: 1rem; padding: 0.75rem 0.9rem; border-radius: 10px; font-size: 0.78rem; line-height: 1.45; }
.import-feedback.is-error { color: #ffd9c7; background: color-mix(in srgb, var(--tangerine) 13%, transparent); border: 1px solid color-mix(in srgb, var(--tangerine) 55%, transparent); }
.import-feedback strong { display: block; }
.import-feedback ul { max-height: 8rem; margin: 0.45rem 0 0; padding-left: 1.2rem; overflow: auto; }
.import-review-note { margin: 0.9rem 0 0; color: var(--ink-faint); font-size: 0.72rem; }

/* Zipped awardee photo import */
.photo-import-modal { width: min(50rem, 96vw); }
.photo-archive-icon { color: var(--plum-950); background: var(--teal); box-shadow: 0 5px 0 color-mix(in srgb, var(--teal) 48%, var(--plum-950)); }
.photo-import-workflow {
  display: grid;
  grid-template-columns: minmax(15rem, 0.88fr) minmax(18rem, 1.12fr);
  margin-top: 1.35rem;
  border-block: 1px solid color-mix(in srgb, var(--ink) 13%, transparent);
}
.photo-naming-guide, .photo-archive-picker { min-width: 0; padding: 1.25rem; }
.photo-archive-picker { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; border-left: 1px solid color-mix(in srgb, var(--ink) 13%, transparent); }
.photo-naming-guide h4, .photo-archive-picker h4 { margin: 0.25rem 0 0; color: var(--ink); font-family: var(--font-display); font-size: 1rem; }
.photo-archive-picker p { margin: 0.35rem 0 0; color: var(--ink-faint); font-size: 0.76rem; line-height: 1.45; }
.photo-filename-example {
  display: block;
  width: fit-content;
  margin-top: 0.9rem;
  padding: 0.62rem 0.75rem;
  color: var(--plum-950);
  background: var(--lemon);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.9rem, 2vw, 1.08rem);
  font-weight: 850;
  letter-spacing: 0.035em;
}
.photo-naming-guide ul { display: grid; gap: 0.32rem; margin: 0.85rem 0 0; padding: 0; list-style: none; color: var(--ink-faint); font-size: 0.74rem; }
.photo-naming-guide li { position: relative; padding-left: 1.05rem; }
.photo-naming-guide li::before { content: ''; position: absolute; top: 0.48em; left: 0; width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--teal); }

/* reusable awardee templates */
.template-intro { display: grid; grid-template-columns: minmax(16rem, 0.8fr) minmax(18rem, 1.2fr); align-items: end; gap: 2rem; margin-bottom: 1.8rem; }
.template-intro .eyebrow, .template-column .eyebrow { margin: 0 0 0.25rem; color: var(--teal); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.17em; text-transform: uppercase; }
.template-intro h1, .template-column h2 { margin: 0; font-family: var(--font-display); }
.template-intro h1 { font-size: clamp(1.45rem, 3vw, 2rem); }
.template-intro > p { max-width: 52ch; margin: 0; color: var(--ink-dim); line-height: 1.55; }
.template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.template-column { min-width: 0; padding: 1.1rem; border-radius: 15px; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.template-column h2 { font-size: 1.25rem; }
.template-description { min-height: 2.8rem; margin: 0.65rem 0 1rem; color: var(--ink-faint); font-size: 0.84rem; line-height: 1.45; }
.template-form { display: grid; grid-template-columns: 1fr auto; gap: 0.55rem; }
.template-form input { width: 100%; min-width: 0; }
.template-list { display: grid; gap: 0.45rem; margin-top: 1rem; }
.template-item { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; min-height: 2.8rem; padding: 0.45rem 0.55rem 0.45rem 0.75rem; border-bottom: 1px solid color-mix(in srgb, var(--ink) 9%, transparent); }
.template-item span { overflow-wrap: anywhere; }
.template-empty { padding: 1rem 0.2rem; color: var(--ink-faint); font-size: 0.84rem; }

/* universal note (admin broadcast) */
.universal-note-form { margin-bottom: 1.1rem; }
.universal-note-status {
  margin-bottom: 1.2rem;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  color: var(--ink-dim);
  font-size: 0.88rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.universal-note-editor { display: grid; gap: 1rem; max-width: 44rem; }
.universal-note-editor .field-help { display: flex; justify-content: space-between; gap: 1rem; }
.badge-live {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lime) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--lime) 60%, transparent);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* reported-notes review queue */
.report-queue { margin-bottom: 1.8rem; }
.inline-error {
  margin-bottom: 1rem;
  border-left: 3px solid var(--tangerine);
  padding: 0.7rem 0.9rem;
  color: var(--ink-dim);
  background: color-mix(in srgb, var(--tangerine) 8%, transparent);
  font-size: 0.88rem;
}
.queue-title { font-family: var(--font-display); color: var(--lemon); margin: 0 0 0.9rem; font-size: 1.08rem; }
.queue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.9rem; }
.queue-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: color-mix(in srgb, var(--magenta) 7%, transparent);
  border: 2px dashed color-mix(in srgb, var(--magenta) 45%, transparent);
  border-radius: 14px;
  padding: 0.95rem;
}
.queue-card p { margin: 0; font-size: 0.92rem; line-height: 1.45; overflow-wrap: anywhere; }
.queue-card .msg-meta { font-size: 0.76rem; color: var(--ink-faint); }
.report-reason {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-dim);
  font-size: 0.78rem;
  font-weight: 650;
}
.report-reason span {
  border-radius: 999px;
  background: var(--magenta);
  color: var(--plum-950);
  padding: 0.12rem 0.45rem;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.moderation-history {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
.history-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.history-head .eyebrow { margin: 0 0 0.2rem; color: var(--teal); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.history-head h3 { margin: 0; font-family: var(--font-display); font-size: 1.15rem; }
.history-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.history-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; }
.history-list li { display: grid; grid-template-columns: 0.75rem 1fr; gap: 0.75rem; padding: 0.9rem 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 9%, transparent); }
.history-list li:last-child { border-bottom: 0; }
.history-list p { margin: 0; }
.history-list strong { color: var(--lemon); text-transform: capitalize; }
.history-message { margin-top: 0.18rem !important; color: var(--ink-dim); font-size: 0.86rem; line-height: 1.45; overflow-wrap: anywhere; }
.history-list .msg-meta { margin-top: 0.3rem; color: var(--ink-faint); font-size: 0.74rem; }
.history-mark { width: 0.65rem; height: 0.65rem; margin-top: 0.28rem; border: 2px solid var(--plum-800); border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 2px var(--teal); }
.history-reported, .history-deleted { background: var(--magenta); box-shadow: 0 0 0 2px var(--magenta); }
.history-hidden { background: var(--tangerine); box-shadow: 0 0 0 2px var(--tangerine); }

/* toasts */
#toasts {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: min(22rem, calc(100vw - 2.4rem));
}
.toast {
  background: var(--plum-700);
  border: 2px solid var(--teal);
  border-radius: 14px;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.7);
  animation: toast-in 0.4s var(--ease-out);
}
.toast.err { border-color: var(--tangerine); }
.toast-action { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.toast-action button { border: 0; border-bottom: 2px solid currentColor; background: transparent; color: var(--lemon); padding: 0.2rem; font: inherit; font-weight: 800; }
@keyframes toast-in {
  from { transform: translateY(14px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* modal */
.modal-veil {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(23, 10, 36, 0.78);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal {
  width: min(34rem, 100%);
  max-height: 90dvh;
  overflow: auto;
  background: var(--plum-800);
  border: 2px solid var(--mango);
  border-radius: var(--radius);
  padding: 1.6rem;
  animation: pop 0.35s var(--ease-out);
}
.modal h3 { margin: 0 0 1.1rem; font-family: var(--font-display); }
.modal .modal-copy { margin: 0; color: var(--ink-dim); font-size: 0.95rem; line-height: 1.55; }
.report-reasons { display: grid; gap: 0.5rem; margin: 1.15rem 0 0; padding: 0; border: 0; }
.report-reasons legend { margin-bottom: 0.55rem; color: var(--ink); font-size: 0.8rem; font-weight: 800; }
.report-reasons label { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 0.7rem; padding: 0.68rem 0.75rem; border: 1.5px solid color-mix(in srgb, var(--ink) 14%, transparent); border-radius: 11px; color: var(--ink); cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.report-reasons label:hover, .report-reasons label:has(input:checked) { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 7%, transparent); }
.report-reasons input { margin-top: 0.18rem; accent-color: var(--teal); }
.report-reasons strong, .report-reasons small { display: block; }
.report-reasons strong { font-size: 0.86rem; }
.report-reasons small { margin-top: 0.15rem; color: var(--ink-faint); font-size: 0.72rem; line-height: 1.35; }
.field-error { margin: 0.65rem 0 0; color: var(--tangerine); font-size: 0.8rem; font-weight: 700; }
.modal .form-grid { grid-template-columns: 1fr 1fr; }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1.4rem; }
.modal.import-modal {
  width: min(54rem, 96vw);
  max-height: 94dvh;
  border-color: var(--teal);
}

body.qr-open { overflow: hidden; }
.qr-modal-veil {
  z-index: 85;
  padding: clamp(0.75rem, 3vw, 2rem);
  background: color-mix(in srgb, var(--plum-950) 88%, transparent);
  backdrop-filter: blur(16px);
}
.qr-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(15rem, 0.72fr) minmax(20rem, 1.28fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  width: min(66rem, 96vw);
  max-height: min(94dvh, 54rem);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  background:
    radial-gradient(32rem 22rem at 12% 0%, color-mix(in srgb, var(--magenta) 14%, transparent), transparent 68%),
    var(--plum-800);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 10%, transparent), 0 2.5rem 6rem -2rem rgba(10, 3, 18, 0.8);
}
.qr-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--ink);
  background: color-mix(in srgb, var(--plum-950) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 17%, transparent);
  border-radius: 12px;
  transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.qr-modal-close:hover { transform: rotate(4deg) scale(1.04); border-color: var(--mango); }
.qr-modal-close:active { transform: scale(0.96); }
.qr-modal-close svg { width: 1.25rem; height: 1.25rem; }
.qr-modal-copy { align-self: center; padding: clamp(0.5rem, 2vw, 1.25rem); }
.qr-modal-copy h3 {
  max-width: 8ch;
  margin: 0.55rem 0 0.9rem;
  font-size: clamp(2.6rem, 5.5vw, 5.25rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
}
.qr-modal-copy .modal-copy { max-width: 34ch; font-size: clamp(0.95rem, 1.5vw, 1.1rem); }
.qr-modal-copy code {
  display: block;
  max-width: 100%;
  margin: 1.15rem 0;
  overflow: hidden;
  color: var(--teal);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qr-code-frame {
  display: grid;
  place-items: center;
  justify-self: end;
  width: min(70vmin, 42rem);
  aspect-ratio: 1;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  color: var(--plum-950);
  background: #ffffff;
  border-radius: clamp(1rem, 2.5vw, 1.75rem);
  box-shadow: 0 2rem 5rem -2.5rem rgba(10, 3, 18, 0.9);
}
.qr-code-frame img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.qr-code-loading {
  width: 72%;
  aspect-ratio: 1;
  background: linear-gradient(105deg, #ece8ef 38%, #ffffff 50%, #ece8ef 62%);
  background-size: 220% 100%;
  animation: qr-shimmer 1.1s ease-in-out infinite;
}
.qr-code-error { max-width: 24ch; margin: 0; text-align: center; font-weight: 700; }
@keyframes qr-shimmer { to { background-position: -220% 0; } }

@media (max-width: 800px) {
  .qr-modal {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1rem;
    width: min(38rem, 96vw);
    padding: 1.15rem;
  }
  .qr-modal-copy { width: 100%; padding: 0.35rem 3rem 0.35rem 0.35rem; }
  .qr-modal-copy h3 { max-width: none; font-size: clamp(2.15rem, 9vw, 3.4rem); }
  .qr-modal-copy .modal-copy { max-width: 44ch; }
  .qr-modal-copy code { margin: 0.75rem 0; }
  .qr-code-frame { order: 2; justify-self: center; width: min(72vw, 25rem); }
}

/* ---------------- reveal show ---------------- */
.btn-show { background: var(--magenta); color: var(--plum-950); box-shadow: 0 4px 0 var(--magenta-deep); }
.btn-show:hover { box-shadow: 0 6px 0 var(--magenta-deep); }
.btn svg { width: 14px; height: 14px; }

body.show-open { overflow: hidden; }
.show {
  position: fixed;
  inset: 0;
  z-index: 90;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(255, 46, 151, 0.22), transparent 60%),
    radial-gradient(50rem 26rem at 10% 110%, rgba(25, 200, 180, 0.18), transparent 60%),
    var(--plum-950);
  overflow: hidden;
}
.show canvas { position: absolute; inset: 0; }
.show-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
}
.show-tag { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.22em; color: var(--ink-dim); }
.show-ctls { display: flex; gap: 0.5rem; }
.show-ctl {
  width: 38px; height: 38px;
  border-radius: 12px;
  border: 2px solid color-mix(in srgb, var(--ink) 22%, transparent);
  background: rgba(23, 10, 36, 0.5);
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s var(--ease-out);
}
.show-ctl svg { width: 16px; height: 16px; }
.show-ctl:hover { color: var(--lemon); border-color: var(--lemon); transform: translateY(-1px); }

.show-stage {
  position: absolute;
  inset: 0 0 30vh 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 4.5rem 1rem 1rem;
}
.show-grid {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 4vh;
  width: min(94vw, 66rem);
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 13rem));
  justify-content: center;
  gap: 0.9rem;
  align-items: end;
}
.show-slot { position: relative; aspect-ratio: 3 / 4; }
.show-slot.is-revealing { z-index: 1; }

/* intro */
.rv-intro { text-align: center; }
.rv-intro-mask {
  width: 7rem; height: 7rem;
  border-radius: 24px;
  margin: 0 auto 1rem;
  border: 3px solid var(--lemon);
  box-shadow: 0 14px 0 rgba(0, 0, 0, 0.35);
  animation: intro-mask 0.9s var(--ease-out) both;
}
@keyframes intro-mask {
  0% { transform: scale(0.2) rotate(-540deg); opacity: 0; }
  70% { transform: scale(1.12) rotate(8deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }
}
.rv-kicker { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.3em; color: var(--teal); animation: rv-fade 0.6s 0.35s both; }
.rv-title {
  margin: 0.4rem 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: 0.06em 0.06em 0 var(--magenta);
  animation: rv-slam 0.7s 0.55s var(--ease-out) both;
}
.rv-sub { font-size: clamp(1.1rem, 3vw, 1.7rem); font-weight: 700; color: var(--lemon); animation: rv-fade 0.6s 0.9s both; }
.rv-sub i { font-style: normal; color: var(--magenta); padding: 0 0.4rem; }
@keyframes rv-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rv-slam {
  0% { opacity: 0; transform: scale(2.2); filter: blur(6px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* per-awardee reveal */
.rv { text-align: center; width: min(30rem, 92vw); }
.rv-card { position: relative; width: clamp(13rem, 25vw, 44vh); margin: 0 auto; }
.rv-photo {
  width: clamp(13rem, 25vw, 44vh); height: clamp(13rem, 25vw, 44vh);
  border-radius: 22px;
  overflow: hidden;
  border: 4px solid var(--candy, var(--lemon));
  box-shadow: 0 16px 0 rgba(0, 0, 0, 0.35);
  background: var(--plum-800);
  transform: rotate(-3deg);
  animation: rv-card 0.55s var(--ease-out) both;
}
.rv-photo img, .rv-photo .rv-mono { width: 100%; height: 100%; object-fit: cover; }
.rv-mono { display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; color: var(--plum-950); background: linear-gradient(140deg, var(--candy, var(--mango)), var(--lemon)); }
@keyframes rv-card {
  0% { transform: scale(0.3) rotate(-30deg); opacity: 0; }
  70% { transform: scale(1.06) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(-3deg); }
}
.rv-veil {
  position: absolute;
  inset: -4px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--plum-900) 82%, transparent);
  animation: rv-veil 0.7s 0.75s var(--ease-out) both;
}
.rv-veil img { width: clamp(6rem, 9vw, 8.5rem); height: clamp(6rem, 9vw, 8.5rem); animation: intro-mask 0.7s 0.1s var(--ease-out) both; }
@keyframes rv-veil {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-130%) rotate(-14deg); }
}
.rv-name {
  margin: 1.1rem 0 0.2rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  line-height: 1.05;
  color: var(--ink);
  text-shadow: 0.05em 0.05em 0 var(--candy, var(--magenta));
  animation: rv-slam 0.5s 1.15s var(--ease-out) both;
}
.rv-award { color: var(--lemon); font-weight: 700; animation: rv-fade 0.5s 1.45s both; }
.rv-prog {
  display: inline-block;
  margin-top: 0.5rem;
  border: 2px solid var(--candy, var(--teal));
  color: var(--candy, var(--teal));
  border-radius: 999px;
  padding: 0.2rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: rv-fade 0.5s 1.65s both;
}

/* landed mini card in the finale grid */
.rv.rv-mini { width: 100%; }
.rv-mini .rv-card { width: 100%; }
.rv-mini .rv-photo {
  width: 100%; height: auto;
  aspect-ratio: 1;
  border-width: 3px;
  border-radius: 16px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3);
  animation: none;
  transform: rotate(0deg);
}
.rv-mini .rv-veil { display: none; }
.rv-mini .rv-name { font-size: 0.95rem; margin: 0.5rem 0 0.15rem; text-shadow: 0.04em 0.04em 0 var(--candy, var(--magenta)); animation: none; opacity: 1; transform: none; filter: none; }
.rv-mini .rv-award, .rv-mini .rv-prog { display: none; }
.show-grid.on .rv-landed { animation: slot-pulse 1.4s calc(var(--i, 0) * 90ms) ease-in-out infinite; }
@keyframes slot-pulse {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-1.5deg); }
}

/* finale banner */
.show-banner { position: absolute; top: 3.5vh; left: 0; right: 0; z-index: 4; display: none; text-align: center; }
.show-banner.on { display: block; }
.fn-band { overflow: hidden; padding: 0.45rem 0; transform: rotate(-2deg); }
.fn-band.fn-a { background: var(--magenta); color: var(--plum-950); }
.fn-band.fn-b { background: var(--teal); color: var(--plum-950); transform: rotate(2deg); }
.fn-track { display: inline-flex; white-space: nowrap; animation: fn-scroll 9s linear infinite; }
.fn-track span { font-weight: 800; letter-spacing: 0.2em; font-size: 0.85rem; padding-right: 2.2rem; }
@keyframes fn-scroll { to { transform: translateX(-50%); } }
.fn-title {
  margin: 0.7rem 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6.5vw, 4.6rem);
  color: var(--lemon);
  text-shadow: 0.05em 0.05em 0 var(--magenta);
  animation: rv-slam 0.7s var(--ease-out) both;
}

/* end card */
.show-end {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: center;
  background: rgba(23, 10, 36, 0.78);
  backdrop-filter: blur(6px);
  padding: 1rem;
}
.show-end[hidden] { display: none; }
.end-card {
  width: min(30rem, 100%);
  text-align: center;
  background: var(--plum-800);
  border: 2px solid var(--mango);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  animation: rv-card 0.6s var(--ease-out) both;
}
.end-qr {
  width: 11rem; height: 11rem;
  border-radius: 14px;
  border: 3px solid var(--lemon);
  margin: 0 auto 1rem;
  display: block;
  background: var(--ink);
}
.end-card h2 { margin: 0 0 0.5rem; font-family: var(--font-display); font-size: 1.7rem; }
.end-card p { margin: 0 0 1.2rem; color: var(--ink-dim); font-size: 0.95rem; line-height: 1.55; }
.end-card b { color: var(--lemon); }
.end-actions { display: flex; justify-content: center; gap: 0.7rem; flex-wrap: wrap; }

@media (max-width: 640px) {
  .show-stage { inset: 0 0 36vh 0; }
  .show-grid { grid-template-columns: repeat(auto-fit, minmax(6.5rem, 10rem)); gap: 0.6rem; bottom: 2vh; }
  .rv-card, .rv-photo { width: 13.5rem; }
  .rv-photo { height: 13.5rem; }
}

/* ---------------- responsive ---------------- */

@media (max-width: 900px) {
  .hero { isolation: isolate; overflow: hidden; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy-stack { position: relative; z-index: 2; }
  .hero-art {
    position: absolute;
    z-index: -1;
    width: min(25rem, 90vw);
    top: -1.5rem;
    right: -9rem;
    opacity: 0.24;
    pointer-events: none;
  }
  .hero-art img { max-width: 25rem; animation-duration: 10s; }
  .wall-layout { grid-template-columns: 1fr; }
  .leave-note { position: static; transform: none; }
  .wall-hero-inner { grid-template-columns: 1fr; }
  .wall-photo { height: clamp(14rem, 55vw, 20rem); }
  .wall-photo::after { background: linear-gradient(180deg, transparent 70%, rgba(23, 10, 36, 0.85)); }
  .search-box { margin-left: 0; max-width: none; }
}

@media (max-width: 760px) {
  .admin-page .admin-head { align-items: flex-start; }
  .admin-page .admin-head .who { flex-basis: 100%; }
  .admin-page .tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(7rem, 1fr));
    gap: 0.35rem;
    overflow-x: auto;
    margin-bottom: 0.75rem;
    padding-bottom: 0.15rem;
  }
  .admin-page .tab {
    border-radius: 11px;
    padding: 0.65rem 0.75rem;
    line-height: 1.2;
  }
  .admin-page .tab.is-on { border-bottom-color: var(--mango); }
  .admin-page .panel { border-radius: var(--radius); padding: 1rem; }
  .admin-page .table-toolbar { align-items: stretch; }
  .admin-page .table-toolbar .hint { flex-basis: 100%; text-align: left; }
  .admin-page .table-wrap { overflow: visible; margin-top: 1.25rem; }
  .admin-page .awardee-table-wrap {
    max-height: clamp(18rem, calc(100dvh - 25rem), 34rem);
    margin-top: 0;
    overflow: auto;
  }
  .admin-page table { min-width: 0; }
  .admin-page table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .admin-page table,
  .admin-page table tbody,
  .admin-page table tr,
  .admin-page table td { display: block; width: 100%; }
  .admin-page table tr {
    margin-bottom: 1rem;
    padding: 0.7rem;
    border: 1px solid color-mix(in srgb, var(--ink) 13%, transparent);
    border-radius: 14px;
    background: color-mix(in srgb, var(--ink) 3%, transparent);
  }
  .admin-page table td,
  .admin-page table.editable td {
    display: grid;
    grid-template-columns: minmax(4.8rem, 0.34fr) minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    padding: 0.45rem 0;
    border: 0;
  }
  .admin-page table td::before {
    content: attr(data-label);
    color: var(--ink-faint);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .admin-page .photo-cell { display: grid; white-space: normal; }
  .admin-page .cell-input,
  .admin-page .cell-input.num,
  .admin-page select.cell-input { width: 100%; min-width: 0; }
  .admin-page .row-actions { flex-wrap: wrap; }
  .admin-page .msg-cell { max-width: none; }
  .admin-page .msg-cell p { margin-top: 0; }
  .admin-page .form-grid,
  .admin-page #mod-form { grid-template-columns: 1fr !important; }
  .admin-page .event-bar { align-items: stretch; }
  .admin-page .event-picker { min-width: 100%; }
  .admin-page .event-create { display: grid; grid-template-columns: 1fr 1fr; flex-basis: 100%; }
  .admin-page .event-create[hidden] { display: none; }
  .admin-page .event-create input { width: 100%; }
  .admin-page .event-create .btn { grid-column: 1 / -1; }
  .admin-page .template-intro, .admin-page .template-grid { grid-template-columns: 1fr; }
  .admin-page .template-intro { gap: 0.7rem; }
  .admin-page .template-description { min-height: 0; }
  .import-workflow { grid-template-columns: 1fr; }
  .import-step + .import-step { border-top: 1px solid color-mix(in srgb, var(--ink) 13%, transparent); border-left: 0; }
  .import-step p { min-height: 0; }
  .photo-import-workflow { grid-template-columns: 1fr; }
  .photo-archive-picker { border-top: 1px solid color-mix(in srgb, var(--ink) 13%, transparent); border-left: 0; }
  .import-modal .modal-actions { align-items: stretch; }
  .import-modal .modal-actions .btn { flex: 1; justify-content: center; }
}

@media (max-width: 480px) {
  .footer .shell { grid-template-columns: 1fr; text-align: center; }
  .footer-brand, .footer-powered { justify-self: center; }
  .brand img { width: 38px; height: 38px; border-radius: 10px; }
  .brand-name { font-size: 0.88rem; }
  .brand-name small { font-size: 0.58rem; letter-spacing: 0.16em; }
  .nav-right { gap: 0.4rem; }
  .nav-right .btn { padding: 0.5rem 0.85rem; font-size: 0.8rem; }
  .nav-inner:has(.nav-signout) .brand-name { display: none; }
  .nav-inner:has(.nav-signout) .brand { flex: none; }
  .nav-signout {
    display: grid;
    place-items: center;
    width: 2.55rem;
    height: 2.55rem;
    padding: 0 !important;
    border-radius: 12px;
  }
  .nav-signout svg { display: block; width: 1.2rem; height: 1.2rem; }
  .nav-signout span { display: none; }
  .modal .form-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { padding: 0.62rem 1.1rem; font-size: 0.88rem; }
  .hero { padding-top: 3.4rem; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 3.65rem); max-width: 7.5em; }
  .hero-copy { max-width: 30ch; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
  .hero-stats .stat b { font-size: 1.6rem; }
  .hero-stats .stat span { font-size: 0.62rem; letter-spacing: 0.12em; }
  .hall-grid[data-count="1"] { grid-template-columns: 1fr; }
}

@media (hover: none) {
  .rockstar-card:hover { --lift: 0px; }
  .rockstar-card:hover .card-photo img { transform: none; }
  .note.is-in:hover { transform: rotate(var(--r)); }
}

@media (max-width: 360px) {
  .brand-name { display: none; }
}

/* ---------------- one-at-a-time cinematic reveal ---------------- */

.show {
  isolation: isolate;
  background:
    radial-gradient(48rem 34rem at 78% 20%, rgba(255, 46, 151, 0.22), transparent 64%),
    radial-gradient(42rem 30rem at 16% 84%, rgba(25, 200, 180, 0.18), transparent 66%),
    var(--plum-950);
}
.show::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(color-mix(in srgb, var(--ink) 11%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 11%, transparent) 1px, transparent 1px);
  background-size: 5rem 5rem;
  -webkit-mask-image: radial-gradient(circle at center, #000, transparent 82%);
  mask-image: radial-gradient(circle at center, #000, transparent 82%);
}
.show::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
.show canvas { z-index: 2; pointer-events: none; }
.show-audio { display: none; }
.show-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.show-beam {
  position: absolute;
  top: -30%;
  width: 18vw;
  height: 150%;
  opacity: 0.14;
  background: linear-gradient(180deg, transparent, var(--candy, var(--magenta)) 42%, transparent 78%);
  filter: blur(18px);
  transform: rotate(18deg);
  animation: show-beam-drift 9s ease-in-out infinite alternate;
}
.show-beam.beam-a { left: 8%; --candy: var(--magenta); }
.show-beam.beam-b { right: 7%; --candy: var(--teal); animation-delay: -4.5s; transform: rotate(-20deg); }
.show-ghost-word {
  position: absolute;
  left: -0.08em;
  bottom: -0.18em;
  font-family: var(--font-display);
  font-size: clamp(8rem, 23vw, 23rem);
  font-weight: 850;
  line-height: 0.8;
  letter-spacing: -0.07em;
  color: transparent;
  -webkit-text-stroke: 2px color-mix(in srgb, var(--ink) 12%, transparent);
  text-stroke: 2px color-mix(in srgb, var(--ink) 12%, transparent);
  animation: show-word-drift 14s ease-in-out infinite alternate;
}
@keyframes show-beam-drift {
  from { translate: -4vw 0; opacity: 0.08; }
  to { translate: 5vw 0; opacity: 0.2; }
}
@keyframes show-word-drift {
  from { transform: translate3d(-1.5vw, 0, 0); }
  to { transform: translate3d(1.5vw, -1vh, 0); }
}

.show-top {
  z-index: 9;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
}
.show-tag {
  max-width: min(65vw, 52rem);
  overflow: hidden;
  color: var(--ink-dim);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.show-ctl {
  background: color-mix(in srgb, var(--plum-950) 78%, transparent);
  backdrop-filter: blur(12px);
}
.show-stage {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 4.8rem clamp(1rem, 4vw, 4rem) 2rem;
  overflow: hidden;
}

.show-sound-gate {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: color-mix(in srgb, var(--plum-950) 84%, transparent);
  backdrop-filter: blur(18px);
}
.show-sound-card {
  width: min(34rem, 100%);
  padding: clamp(1.6rem, 4vw, 2.7rem);
  text-align: center;
  background: var(--plum-800);
  border: 2px solid color-mix(in srgb, var(--mango) 65%, transparent);
  border-radius: var(--radius);
  box-shadow: 0 38px 90px -42px rgba(0, 0, 0, 0.95);
  animation: sound-card-in 0.65s var(--ease-out) both;
}
.show-sound-kicker, .end-kicker {
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.show-sound-card h2 { margin: 0.55rem 0 0.5rem; font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 2.7rem); }
.show-sound-card p { margin: 0 0 1.5rem; color: var(--ink-dim); }
.show-sound-card > div { display: flex; justify-content: center; gap: 0.7rem; flex-wrap: wrap; }
@keyframes sound-card-in {
  from { opacity: 0; transform: translateY(24px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

/* Genuine CSS 3D cubes shared by intro, reveals, and finale. */
.rv-cube {
  --cube-size: clamp(2.25rem, 4vw, 3.6rem);
  --cube-half: calc(var(--cube-size) / 2);
  position: absolute;
  width: var(--cube-size);
  height: var(--cube-size);
  opacity: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.rv-cube i {
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--ink) 44%, transparent);
  background: color-mix(in srgb, var(--candy, var(--magenta)) 66%, transparent);
  box-shadow: inset 0 0 1.4rem color-mix(in srgb, var(--ink) 18%, transparent);
  backface-visibility: visible;
}
.rv-cube .front { transform: translateZ(var(--cube-half)); }
.rv-cube .back { transform: rotateY(180deg) translateZ(var(--cube-half)); }
.rv-cube .right { transform: rotateY(90deg) translateZ(var(--cube-half)); }
.rv-cube .left { transform: rotateY(-90deg) translateZ(var(--cube-half)); }
.rv-cube .top { transform: rotateX(90deg) translateZ(var(--cube-half)); }
.rv-cube .bottom { transform: rotateX(-90deg) translateZ(var(--cube-half)); }

.rv-orbit-world, .rv-intro-world, .rv-finale-world {
  transform-style: preserve-3d;
  perspective: 1200px;
}
.rv-orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 2px solid color-mix(in srgb, var(--candy, var(--teal)) 60%, transparent);
  border-radius: 50%;
  opacity: 0;
  transform-style: preserve-3d;
}
.ring-a { width: 112%; height: 74%; }
.ring-b { width: 86%; height: 118%; border-color: color-mix(in srgb, var(--mango) 58%, transparent); }
.ring-c { width: 130%; height: 48%; border-style: dashed; border-color: color-mix(in srgb, var(--ink) 32%, transparent); }
.rv-orb {
  position: absolute;
  width: clamp(0.8rem, 1.5vw, 1.25rem);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle at 30% 25%, var(--ink), var(--candy, var(--mango)) 34%, var(--plum-950) 78%);
  box-shadow: 0 0 1.5rem color-mix(in srgb, var(--candy, var(--mango)) 75%, transparent);
}
.orb-a { top: 5%; left: 52%; }
.orb-b { right: 3%; bottom: 22%; }

/* Intro */
.rv-intro, .rv-finale {
  position: relative;
  display: grid;
  grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  width: min(88vw, 72rem);
  min-height: min(70vh, 44rem);
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}
.rv-intro.is-exiting { opacity: 0; transform: scale(1.08); filter: blur(14px); }
.rv-intro-world, .rv-finale-world {
  position: relative;
  display: grid;
  place-items: center;
  width: min(30vw, 21rem);
  aspect-ratio: 1;
}
.rv-intro-world > img, .rv-finale-world > img {
  position: relative;
  z-index: 4;
  width: 52%;
  border-radius: 24%;
  box-shadow: 0 2rem 5rem -2rem color-mix(in srgb, var(--magenta) 75%, transparent);
  animation: rv-mask-depth-in 1.05s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.rv-intro-world .ring-a, .rv-finale-world .ring-a { animation: rv-ring-a 4.5s 0.1s linear both; }
.rv-intro-world .ring-b, .rv-finale-world .ring-b { animation: rv-ring-b 4.5s 0.2s linear both; }
.rv-intro-world .ring-c, .rv-finale-world .ring-c { animation: rv-ring-c 4.5s 0.3s linear both; }
.rv-intro-world .rv-orb, .rv-finale-world .rv-orb { animation: rv-orb-in 1s 0.6s var(--ease-out) both; }
.rv-intro-world .cube-a, .rv-finale-world .cube-a { top: 2%; left: -3%; --candy: var(--teal); animation: rv-cube-a 3s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; }
.rv-intro-world .cube-b, .rv-finale-world .cube-b { right: -8%; bottom: 8%; --candy: var(--magenta); animation: rv-cube-b 3s 0.55s cubic-bezier(0.16, 1, 0.3, 1) both; }
.rv-intro-copy > span, .rv-finale-copy > span {
  display: block;
  color: var(--teal);
  font-size: clamp(0.72rem, 1.2vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  animation: rv-copy-kicker-in 0.55s 0.32s var(--ease-out) both;
}
.rv-intro-copy h1, .rv-finale-copy h1 {
  margin: 0.5rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8.6rem);
  font-weight: 850;
  line-height: 0.78;
  letter-spacing: -0.075em;
  text-wrap: balance;
  animation: rv-intro-title-in 0.8s 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.rv-intro-copy b, .rv-finale-copy b {
  color: var(--lemon);
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  letter-spacing: 0.2em;
  animation: rv-copy-detail-in 0.5s 0.88s var(--ease-out) both;
}

/* One awardee, one image, one five-second scene. */
.rv-reveal {
  --photo-entry-x: -10vw;
  --photo-entry-ry: 26deg;
  --copy-entry-x: 8vw;
  --copy-entry-ry: -10deg;
  --silhouette-entry-x: 7vw;
  --silhouette-drift-x: -1.2vw;
  --silhouette-exit-x: 7vw;
  --silhouette-peak: 0.24;
  --silhouette-hold: 0.14;
  position: relative;
  display: grid;
  grid-template-columns: minmax(17rem, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  width: min(91vw, 79rem);
  height: min(76vh, 47rem);
  perspective: 1600px;
  transform-style: preserve-3d;
  isolation: isolate;
}
.rv-reveal.is-alt {
  --photo-entry-x: 10vw;
  --photo-entry-ry: -26deg;
  --copy-entry-x: -8vw;
  --copy-entry-ry: 10deg;
  --silhouette-entry-x: -7vw;
  --silhouette-drift-x: 1.2vw;
  --silhouette-exit-x: -7vw;
}
.rv-reveal.is-alt .rv-image-zone { order: 2; }
.rv-reveal.is-alt .rv-copy-zone { order: 1; align-items: flex-end; text-align: right; }
.rv-scene-depth {
  position: absolute;
  inset: -6%;
  z-index: -1;
  overflow: visible;
  pointer-events: none;
  transform-style: preserve-3d;
}
.rv-scene-number {
  position: absolute;
  top: 44%;
  left: 50%;
  color: color-mix(in srgb, var(--candy) 11%, transparent);
  font-family: var(--font-display);
  font-size: clamp(15rem, 34vw, 34rem);
  font-weight: 850;
  line-height: 0.6;
  letter-spacing: -0.1em;
  transform: translate(-50%, -50%) translateZ(-320px);
}
.rv-scene-depth .cube-a {
  top: 10%;
  left: 2%;
  animation: none;
}
.rv-scene-depth .cube-b {
  right: 3%;
  bottom: 8%;
  animation: none;
}
.rv-reveal.is-live .rv-scene-depth .cube-a { --candy: var(--teal); animation: rv-cube-a 5s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both; }
.rv-reveal.is-live .rv-scene-depth .cube-b { --candy: var(--candy); animation: rv-cube-b 5s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; }

.rv-portrait-silhouette {
  position: absolute;
  top: 50%;
  right: -10vw;
  z-index: 0;
  width: min(57vw, 52rem);
  height: 100dvh;
  pointer-events: none;
  background-position: center 18%;
  background-repeat: no-repeat;
  background-size: cover;
  filter: grayscale(1) contrast(1.65) brightness(0.46) blur(14px);
  mix-blend-mode: screen;
  opacity: 0;
  -webkit-mask-image: radial-gradient(ellipse 76% 66% at 62% 48%, #000 0%, rgba(0,0,0,0.92) 44%, rgba(0,0,0,0.38) 69%, transparent 100%);
  mask-image: radial-gradient(ellipse 76% 66% at 62% 48%, #000 0%, rgba(0,0,0,0.92) 44%, rgba(0,0,0,0.38) 69%, transparent 100%);
  transform: translate3d(var(--silhouette-entry-x), -50%, -180px) scale(1.08);
  transform-origin: right center;
  will-change: transform, opacity, filter;
}
.rv-reveal.is-alt .rv-portrait-silhouette {
  right: auto;
  left: -10vw;
  background-position: center 18%;
  -webkit-mask-image: radial-gradient(ellipse 76% 66% at 38% 48%, #000 0%, rgba(0,0,0,0.92) 44%, rgba(0,0,0,0.38) 69%, transparent 100%);
  mask-image: radial-gradient(ellipse 76% 66% at 38% 48%, #000 0%, rgba(0,0,0,0.92) 44%, rgba(0,0,0,0.38) 69%, transparent 100%);
  transform-origin: left center;
}
.rv-reveal.is-live .rv-portrait-silhouette { animation: rv-silhouette-bloom 4.85s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both; }

.rv-image-zone {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  height: 100%;
  transform-style: preserve-3d;
}
.rv-orbit-world {
  position: absolute;
  inset: 9%;
  z-index: 0;
  pointer-events: none;
}
.rv-reveal.is-live .rv-orbit-world .ring-a { animation: rv-ring-a 5s 0.12s linear both; }
.rv-reveal.is-live .rv-orbit-world .ring-b { animation: rv-ring-b 5s 0.2s linear both; }
.rv-reveal.is-live .rv-orbit-world .ring-c { animation: rv-ring-c 5s 0.3s linear both; }
.rv-reveal.is-live .rv-orbit-world .orb-a { animation: rv-orb-in 0.65s 0.45s var(--ease-out) both, rv-orb-float 3.4s 1.1s ease-in-out both; }
.rv-reveal.is-live .rv-orbit-world .orb-b { animation: rv-orb-in 0.65s 0.58s var(--ease-out) both, rv-orb-float-alt 3.4s 1.2s ease-in-out both; }
.rv-photo-frame {
  position: relative;
  z-index: 2;
  width: min(31vw, 24rem);
  aspect-ratio: 4 / 5;
  transform-style: preserve-3d;
}
.rv-photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--candy);
  clip-path: polygon(0 8%, 8% 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
  transform: translate3d(1.1rem, 1.1rem, -40px);
  opacity: 0;
}
.rv-reveal.is-live .rv-photo-frame::before { animation: rv-photo-plate-in 0.65s 0.34s var(--ease-out) both; }
.rv-photo-shell {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--plum-800);
  clip-path: polygon(0 8%, 8% 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
  opacity: 0;
  transform: translate3d(var(--photo-entry-x), 0, -260px) rotateY(var(--photo-entry-ry)) scale(0.82);
  transform-origin: center;
  box-shadow: 0 3rem 6rem -2rem color-mix(in srgb, var(--candy) 55%, transparent);
  will-change: transform, opacity;
}
.rv-reveal.is-live .rv-photo-shell { animation: rv-photo-arrive 1.05s 0.14s cubic-bezier(0.16, 1, 0.3, 1) both; }
.rv-portrait-media, .rv-portrait-mono {
  width: 100%;
  height: 100%;
}
.rv-portrait-media {
  display: block;
  object-fit: cover;
  object-position: center 27%;
  transform: scale(1.12);
  filter: blur(16px) saturate(0.7);
  will-change: transform, filter;
}
.rv-reveal.is-live .rv-portrait-media { animation: rv-portrait-focus 4.1s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both; }
.rv-portrait-mono {
  display: grid;
  place-items: center;
  color: var(--plum-950);
  background: linear-gradient(145deg, var(--candy), var(--lemon));
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 850;
}
.rv-photo-sheen {
  position: absolute;
  inset: -30% 35% -30% -60%;
  background: linear-gradient(100deg, transparent 15%, rgba(255,255,255,0.38) 48%, transparent 70%);
  transform: translateX(-140%) rotate(8deg);
  mix-blend-mode: screen;
}
.rv-reveal.is-live .rv-photo-sheen { animation: rv-photo-sheen 1.15s 1.3s var(--ease-out) both; }
.rv-image-label {
  position: absolute;
  right: 2%;
  bottom: 5%;
  color: var(--ink-faint);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  opacity: 0;
}
.rv-reveal.is-live .rv-image-label { animation: rv-copy-detail-in 0.45s 1.08s var(--ease-out) both; }

.rv-copy-zone {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.rv-copy-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(100%, 28rem);
  color: var(--teal);
  font-size: clamp(0.68rem, 1.1vw, 0.84rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(var(--copy-entry-x));
}
.rv-copy-kicker i { flex: 1; height: 2px; background: var(--candy); transform-origin: left; }
.rv-reveal.is-alt .rv-copy-kicker { flex-direction: row-reverse; }
.rv-reveal.is-live .rv-copy-kicker { animation: rv-copy-kicker-in 0.48s 0.25s var(--ease-out) both; }
.rv-name-stack {
  position: relative;
  display: grid;
  max-width: 10em;
  margin: clamp(0.8rem, 2vh, 1.4rem) 0 1rem;
  font-family: var(--font-body);
  font-size: clamp(3.25rem, 7.4vw, 7.2rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: balance;
  opacity: 0;
  transform: translate3d(var(--copy-entry-x), 0, -180px) rotateY(var(--copy-entry-ry));
  transform-style: preserve-3d;
}
.rv-name-layer {
  grid-area: 1 / 1;
  color: color-mix(in srgb, var(--plum-700) 72%, var(--candy));
  pointer-events: none;
}
.rv-name-layer.layer-4 { transform: translate(5px, 5px) translateZ(-80px); opacity: 0.14; }
.rv-name-layer.layer-3 { transform: translate(4px, 4px) translateZ(-60px); opacity: 0.22; }
.rv-name-layer.layer-2 { transform: translate(3px, 3px) translateZ(-40px); opacity: 0.3; }
.rv-name-layer.layer-1 { transform: translate(1.5px, 1.5px) translateZ(-20px); opacity: 0.46; }
.rv-name-layer.is-front { position: relative; z-index: 5; color: var(--ink); }
.rv-reveal.is-live .rv-name-stack { animation: rv-name-depth-in 0.82s 0.52s cubic-bezier(0.16, 1, 0.3, 1) both; }
.rv-copy-rule {
  width: min(100%, 12rem);
  height: 4px;
  margin-bottom: 1rem;
  background: var(--candy);
  transform: scaleX(0);
  transform-origin: left;
}
.rv-reveal.is-alt .rv-copy-rule { transform-origin: right; }
.rv-reveal.is-live .rv-copy-rule { animation: rv-rule-draw 0.6s 0.8s var(--ease-out) both; }
.rv-copy-zone .rv-award {
  max-width: 35ch;
  margin: 0;
  color: var(--lemon);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(18px);
  animation: none;
}
.rv-reveal.is-live .rv-copy-zone .rv-award { animation: rv-copy-detail-in 0.55s 0.95s var(--ease-out) both; }
.rv-program {
  margin: 0.45rem 0 0;
  color: var(--ink-dim);
  font-size: clamp(0.9rem, 1.5vw, 1.08rem);
  font-weight: 600;
  opacity: 0;
  transform: translateY(14px);
}
.rv-period {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.3rem 0.7rem;
  color: var(--plum-950);
  background: var(--candy);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: scale(0.7);
}
.rv-reveal.is-live .rv-program { animation: rv-copy-detail-in 0.5s 1.12s var(--ease-out) both; }
.rv-reveal.is-live .rv-period { animation: rv-period-pop 0.55s 1.26s cubic-bezier(0.16, 1, 0.3, 1) both; }
.rv-reveal-progress {
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 0;
  height: 3px;
  overflow: hidden;
  background: color-mix(in srgb, var(--ink) 14%, transparent);
  opacity: 0;
  z-index: 4;
}
.rv-reveal-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--candy), var(--lemon));
  transform: scaleX(0);
  transform-origin: left;
}
.rv-reveal.is-live .rv-reveal-progress { opacity: 1; }
.rv-reveal.is-live .rv-reveal-progress span { animation: rv-progress 5s linear both; }
.rv-reveal.is-exiting { animation: rv-scene-resolve 0.9s ease-in both; }
.rv-reveal.is-exiting .rv-image-zone { animation: rv-image-exit 0.85s cubic-bezier(0.7, 0, 0.84, 0) both; }
.rv-reveal.is-exiting .rv-copy-zone { animation: rv-copy-exit 0.7s cubic-bezier(0.7, 0, 0.84, 0) both; }
.rv-reveal.is-exiting .rv-portrait-silhouette { animation: rv-silhouette-exit 0.78s cubic-bezier(0.7, 0, 0.84, 0) both; }
.rv-reveal.is-alt.is-exiting .rv-image-zone { animation-name: rv-image-exit-alt; }
.rv-reveal.is-alt.is-exiting .rv-copy-zone { animation-name: rv-copy-exit-alt; }

/* Finale is graphic-only: no accumulated portraits. */
.rv-finale {
  grid-template-columns: minmax(15rem, 0.7fr) minmax(0, 1.3fr);
}
.rv-finale-copy h1 {
  max-width: 7em;
  font-size: clamp(4.5rem, 11vw, 9rem);
  color: var(--lemon);
}
.rv-finale-world { width: min(28vw, 19rem); }
.rv-finale-copy > span { color: var(--magenta); }
.rv-finale-world,
.rv-finale-copy {
  transition: opacity 0.65s ease, filter 0.65s ease, transform 0.65s var(--ease-out);
}
.rv-finale.is-complete .rv-finale-world {
  opacity: 0.16;
  filter: blur(8px);
  transform: translateX(-3vw) scale(0.88);
}
.rv-finale.is-complete .rv-finale-copy {
  transform: translateX(2vw);
}

.show-end {
  z-index: 10;
  place-items: center start;
  padding: 5.5rem clamp(1rem, 4vw, 4rem) 2rem;
  pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--plum-950) 92%, transparent) 0%, color-mix(in srgb, var(--plum-950) 68%, transparent) 32%, transparent 58%);
  backdrop-filter: none;
}
.end-card {
  width: min(34rem, 42vw);
  padding: clamp(1rem, 2.2vw, 1.5rem);
  text-align: left;
  pointer-events: auto;
  background: color-mix(in srgb, var(--plum-800) 91%, transparent);
  border-color: color-mix(in srgb, var(--mango) 70%, transparent);
  box-shadow: 0 38px 100px -42px rgba(0, 0, 0, 0.95);
}
.end-card-main {
  display: grid;
  grid-template-columns: minmax(7.5rem, 10rem) minmax(0, 1fr);
  gap: clamp(0.9rem, 2vw, 1.35rem);
  align-items: center;
}
.end-card-copy { min-width: 0; }
.end-card .end-qr {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin: 0;
}
.end-card h2 { margin-top: 0.38rem; }
.end-card p { margin-bottom: 0; }
.end-card .end-actions { margin-top: 1.1rem; justify-content: flex-start; }
.end-kicker { display: block; margin-bottom: 0.5rem; }
.show-credit {
  display: block;
  margin-top: 1.2rem;
  color: var(--ink-faint);
  font-size: 0.68rem;
}
.rv-empty {
  max-width: 34rem;
  padding: 2rem;
  text-align: center;
}
.rv-empty h1 { margin: 0.4rem 0; font-family: var(--font-display); font-size: clamp(2.5rem, 8vw, 5rem); }
.rv-empty p { color: var(--ink-dim); }

@keyframes rv-mask-depth-in {
  0% { opacity: 0; transform: translateZ(-420px) rotateX(75deg) rotateY(-80deg) scale(0.35); filter: blur(18px); }
  68% { opacity: 1; transform: translateZ(70px) rotateX(-5deg) rotateY(8deg) scale(1.08); filter: blur(0); }
  100% { opacity: 1; transform: translateZ(0) rotateX(0) rotateY(0) scale(1); filter: blur(0); }
}
@keyframes rv-cube-a {
  0% { opacity: 0; transform: translate3d(-4rem, 3rem, -320px) rotateX(-120deg) rotateY(80deg) scale(0.3); }
  25% { opacity: 0.8; }
  100% { opacity: 0.58; transform: translate3d(1.2rem, -1.2rem, 80px) rotateX(260deg) rotateY(420deg) scale(1); }
}
@keyframes rv-cube-b {
  0% { opacity: 0; transform: translate3d(4rem, -3rem, -360px) rotateX(110deg) rotateY(-95deg) scale(0.35); }
  25% { opacity: 0.75; }
  100% { opacity: 0.5; transform: translate3d(-1rem, 1.4rem, 40px) rotateX(-320deg) rotateY(-390deg) scale(0.88); }
}
@keyframes rv-ring-a {
  0% { opacity: 0; transform: translate(-50%, -50%) rotateX(72deg) rotateZ(0deg) scale(0.55); }
  18% { opacity: 0.58; }
  100% { opacity: 0.38; transform: translate(-50%, -50%) rotateX(72deg) rotateZ(330deg) scale(1); }
}
@keyframes rv-ring-b {
  0% { opacity: 0; transform: translate(-50%, -50%) rotateY(68deg) rotateZ(20deg) scale(0.5); }
  20% { opacity: 0.5; }
  100% { opacity: 0.32; transform: translate(-50%, -50%) rotateY(68deg) rotateZ(-300deg) scale(1); }
}
@keyframes rv-ring-c {
  0% { opacity: 0; transform: translate(-50%, -50%) rotateX(78deg) rotateY(20deg) rotateZ(45deg) scale(0.45); }
  24% { opacity: 0.42; }
  100% { opacity: 0.24; transform: translate(-50%, -50%) rotateX(78deg) rotateY(20deg) rotateZ(405deg) scale(1); }
}
@keyframes rv-orb-in {
  from { opacity: 0; transform: translateZ(-220px) rotateX(90deg) scale(0.25); }
  to { opacity: 0.9; transform: translateZ(80px) rotateX(0) scale(1); }
}
@keyframes rv-orb-float {
  from { transform: translate3d(-1rem, 0, 70px) scale(1); }
  to { transform: translate3d(1.6rem, 1.2rem, 140px) scale(1.25); }
}
@keyframes rv-orb-float-alt {
  from { transform: translate3d(1rem, 0, 50px) scale(0.8); }
  to { transform: translate3d(-1.4rem, -1rem, 120px) scale(1.15); }
}
@keyframes rv-copy-kicker-in {
  from { opacity: 0; transform: translateX(var(--copy-entry-x, 4rem)); }
  to { opacity: 1; transform: none; }
}
@keyframes rv-intro-title-in {
  from { opacity: 0; transform: translate3d(10vw, 0, -260px) rotateY(-35deg) scale(0.82); filter: blur(12px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes rv-copy-detail-in {
  from { opacity: 0; transform: translateY(18px); filter: blur(5px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes rv-photo-plate-in {
  from { opacity: 0; transform: translate3d(0, 0, -80px) scale(0.7); }
  to { opacity: 0.95; transform: translate3d(1.1rem, 1.1rem, -40px) scale(1); }
}
@keyframes rv-photo-arrive {
  0% { opacity: 0; transform: translate3d(var(--photo-entry-x), 0, -260px) rotateY(var(--photo-entry-ry)) scale(0.82); filter: blur(18px); }
  70% { opacity: 1; transform: translate3d(0, 0, 36px) rotateY(-4deg) scale(1.025); filter: blur(0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotateY(0) scale(1); filter: blur(0); }
}
@keyframes rv-portrait-focus {
  0% { transform: scale(1.12); filter: blur(16px) saturate(0.7); }
  22% { transform: scale(1.065); filter: blur(0) saturate(1.05); }
  100% { transform: scale(1.015); filter: blur(0) saturate(1.05); }
}
@keyframes rv-silhouette-bloom {
  0% { opacity: 0; transform: translate3d(var(--silhouette-entry-x), -50%, -180px) scale(1.08); filter: grayscale(1) contrast(1.65) brightness(0.46) blur(14px); }
  24% { opacity: var(--silhouette-peak); transform: translate3d(0, -50%, -90px) scale(1.035); filter: grayscale(1) contrast(1.65) brightness(0.54) blur(2px); }
  72% { opacity: calc(var(--silhouette-hold) + 0.035); transform: translate3d(calc(var(--silhouette-drift-x) * 0.45), -50%, -110px) scale(1.015); filter: grayscale(1) contrast(1.7) brightness(0.5) blur(0); }
  100% { opacity: var(--silhouette-hold); transform: translate3d(var(--silhouette-drift-x), -50%, -125px) scale(1); filter: grayscale(1) contrast(1.72) brightness(0.48) blur(1px); }
}
@keyframes rv-silhouette-exit {
  from { opacity: var(--silhouette-hold); transform: translate3d(var(--silhouette-drift-x), -50%, -125px) scale(1); filter: grayscale(1) contrast(1.72) brightness(0.48) blur(1px); }
  to { opacity: 0; transform: translate3d(var(--silhouette-exit-x), -50%, -260px) scale(1.08); filter: grayscale(1) contrast(1.6) brightness(0.42) blur(18px); }
}
@keyframes rv-photo-sheen {
  from { transform: translateX(-140%) rotate(8deg); opacity: 0; }
  20% { opacity: 0.9; }
  to { transform: translateX(360%) rotate(8deg); opacity: 0; }
}
@keyframes rv-name-depth-in {
  0% { opacity: 0; transform: translate3d(var(--copy-entry-x), 0, -180px) rotateY(var(--copy-entry-ry)); filter: blur(12px); }
  65% { opacity: 1; transform: translate3d(0, 0, 24px) rotateY(3deg) scale(1.025); filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes rv-rule-draw { to { transform: scaleX(1); } }
@keyframes rv-period-pop {
  0% { opacity: 0; transform: scale(0.7) rotate(-6deg); }
  70% { opacity: 1; transform: scale(1.08) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes rv-progress { to { transform: scaleX(1); } }
@keyframes rv-scene-resolve {
  0%, 35% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes rv-image-exit {
  to { opacity: 0; transform: translate3d(18vw, -2vh, 240px) rotateY(-35deg) scale(1.12); filter: blur(10px); }
}
@keyframes rv-image-exit-alt {
  to { opacity: 0; transform: translate3d(-18vw, -2vh, 240px) rotateY(35deg) scale(1.12); filter: blur(10px); }
}
@keyframes rv-copy-exit {
  to { opacity: 0; transform: translate3d(-12vw, 0, -180px) rotateY(20deg); filter: blur(10px); }
}
@keyframes rv-copy-exit-alt {
  to { opacity: 0; transform: translate3d(12vw, 0, -180px) rotateY(-20deg); filter: blur(10px); }
}

@media (max-width: 900px) {
  .show-stage { padding: 4.4rem 1rem 1rem; }
  .rv-reveal {
    --silhouette-entry-x: 0;
    --silhouette-drift-x: 0;
    --silhouette-exit-x: 0;
    --silhouette-peak: 0.16;
    --silhouette-hold: 0.09;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(15rem, 50%) minmax(0, 1fr);
    gap: 0.8rem;
    width: min(94vw, 38rem);
    height: calc(100dvh - 5.8rem);
  }
  .rv-portrait-silhouette,
  .rv-reveal.is-alt .rv-portrait-silhouette {
    right: 0;
    left: 0;
    width: 100vw;
    background-position: center 12%;
    -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 58%, #000 0%, rgba(0,0,0,0.72) 50%, transparent 100%);
    mask-image: radial-gradient(ellipse 72% 72% at 50% 58%, #000 0%, rgba(0,0,0,0.72) 50%, transparent 100%);
    transform-origin: center;
  }
  .rv-reveal.is-alt .rv-image-zone { order: 1; }
  .rv-reveal.is-alt .rv-copy-zone { order: 2; align-items: center; text-align: center; }
  .rv-image-zone { order: 1; }
  .rv-copy-zone { order: 2; align-items: center; text-align: center; align-self: start; }
  .rv-photo-frame { width: min(46vw, 15.5rem); }
  .rv-orbit-world { inset: 0 15%; }
  .rv-image-label { right: 10%; bottom: 3%; }
  .rv-copy-kicker { width: min(82vw, 24rem); justify-content: center; }
  .rv-reveal:not(.is-alt) .rv-copy-kicker { flex-direction: row-reverse; }
  .rv-name-stack {
    max-width: 9em;
    margin: 0.45rem 0 0.55rem;
    font-size: clamp(2.4rem, 10.5vw, 4.3rem);
    line-height: 0.94;
  }
  .rv-copy-rule { margin-bottom: 0.65rem; transform-origin: center !important; }
  .rv-copy-zone .rv-award { font-size: clamp(0.9rem, 3.4vw, 1.1rem); }
  .rv-program { margin-top: 0.2rem; font-size: 0.88rem; }
  .rv-period { margin-top: 0.55rem; }
  .rv-scene-number { top: 36%; font-size: clamp(13rem, 58vw, 22rem); }
  .rv-intro, .rv-finale {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.8rem;
    width: min(90vw, 38rem);
    min-height: 76vh;
    text-align: center;
  }
  .rv-intro-world, .rv-finale-world { width: min(48vw, 14rem); }
  .rv-intro-copy h1, .rv-finale-copy h1 { font-size: clamp(3.6rem, 15vw, 6rem); }
  .rv-finale-copy h1 { max-width: none; }
  .rv-finale.is-complete {
    align-content: start;
    gap: 0.5rem;
    min-height: 100%;
    padding-top: 3.5rem;
  }
  .rv-finale.is-complete .rv-finale-world { display: none; }
  .rv-finale.is-complete .rv-finale-copy { transform: none; }
  .rv-finale.is-complete .rv-finale-copy h1 { font-size: clamp(3.4rem, 15vw, 5.6rem); }
  .show-end {
    place-items: end center;
    padding: 13.5rem 0.75rem 0.75rem;
    background: linear-gradient(0deg, color-mix(in srgb, var(--plum-950) 96%, transparent) 0%, color-mix(in srgb, var(--plum-950) 76%, transparent) 58%, transparent 100%);
  }
  .end-card {
    width: min(38rem, 100%);
    padding: 1rem;
  }
  .end-card-main { grid-template-columns: 8rem minmax(0, 1fr); }
  .end-card .end-actions { justify-content: center; }
  .show-credit { text-align: center; }
}

@media (max-width: 520px) {
  .show-top { padding: 0.7rem; }
  .show-tag { max-width: 42vw; font-size: 0.56rem; letter-spacing: 0.12em; }
  .show-ctls { gap: 0.3rem; }
  .show-ctl { width: 34px; height: 34px; border-radius: 10px; }
  .show-stage { padding-top: 3.8rem; }
  .rv-reveal {
    grid-template-rows: minmax(14rem, 48%) minmax(0, 1fr);
    height: calc(100dvh - 4.6rem);
  }
  .rv-photo-frame { width: min(52vw, 14rem); }
  .rv-image-label { display: none; }
  .rv-name-stack { font-size: clamp(2.25rem, 10.8vw, 3.5rem); }
  .rv-copy-zone .rv-award { max-width: 30ch; }
  .rv-scene-depth .cube-a { left: -2%; }
  .rv-scene-depth .cube-b { right: -2%; }
  .show-sound-card { padding: 1.5rem 1.1rem; }
  .end-card { padding: 0.9rem; }
  .end-card-main { grid-template-columns: 6.75rem minmax(0, 1fr); gap: 0.8rem; }
  .end-card h2 { font-size: 1.35rem; }
  .end-card p { font-size: 0.82rem; line-height: 1.35; }
  .end-card .end-actions { margin-top: 0.8rem; gap: 0.45rem; }
  .end-card .end-actions .btn { padding: 0.55rem 0.8rem; font-size: 0.78rem; }
  .show-credit { margin-top: 0.65rem; font-size: 0.58rem; }
}

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