@font-face {
  font-family: 'Nomination Poster';
  src: url('./poster.ttf') format('truetype');
  font-display: swap;
}

.nomination-preview {
  --paper: #f8f3e8;
  --white: #fffdf6;
  --ink: #251827;
  --muted: #624e64;
  --pink: #ff7f9f;
  --pink-soft: #ffdbdf;
  --purple: #dfd3f7;
  --yellow: #ffdb68;
  --green: #dae785;
  --line: #d6c8d0;
  --hero-ink: #251827;
  --rules-accent: #762e51;
  --button-paper: #fff5e1;
  --border-shadow: #251827;
  width: min(1120px, 100%);
  margin: 0 auto 28px;
  padding: 0 clamp(5px, 1.35vw, 16px);
  font-size: 15px;
  line-height: 1.52;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 10%, transparent) .65px, transparent .8px);
  background-size: 6px 6px;
}
:root[data-theme="dark"] .nomination-preview {
  --paper: #27212c;
  --white: #302735;
  --ink: #f2e7f0;
  --muted: #cfb8ca;
  --pink: #f18aaa;
  --pink-soft: #63364d;
  --purple: #493655;
  --line: #674f65;
  --rules-accent: #f8b3cb;
  --button-paper: #3c2d42;
  --border-shadow: #150f18;
}
:root[data-theme="dark"] .nomination-preview :is(#nomination-title, #nomination-rules-title, .phase-mark, .nomination-hero-rule, .round-current) {
  color: var(--hero-ink);
}
:root[data-theme="dark"] .nomination-preview .deadline-at :is(time, span) { color: #493454; }
:root[data-theme="dark"] .nomination-preview :is(.rules dt, .nominee-people summary) { color: var(--rules-accent); }
@media(max-width: 700px) {
  .nomination-page .mascot-widget { display: none; }
}

@scope (.nomination-preview) {
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.ink-definitions { position: absolute; inset: 0 auto auto 0; overflow: hidden; pointer-events: none; }
:is(h1,h2,h3,p,ul,figure) { margin: 0; }
:where(input,select,button) { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
:where(button,input,select,summary,a):focus-visible { outline: 3px solid #6631c0; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.sources, .roster-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.sources button, .roster-tabs button {
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 730;
}
.sources button[aria-pressed="true"], .roster-tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}
.sources button:hover, .roster-tabs button:hover { box-shadow: 2px 2px 0 var(--border-shadow); transform: translateY(-1px); }

.nomination-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(120px, 15vw, 166px) minmax(224px, 25%);
  align-items: center;
  gap: 7px clamp(27px, 4.1vw, 60px);
  min-height: 226px;
  margin-top: 5px;
  padding: 16px 14px 24px 23px;
  border-bottom: 2px solid var(--ink);
}
.nomination-hero-stripe {
  position: absolute;
  z-index: -1;
  inset: 3px 12% 20px 2px;
  background: var(--pink);
  clip-path: polygon(0 8%, 96% 0, 100% 62%, 93% 95%, 1% 100%);
}
.nomination-hero-stripe::after {
  content: "";
  position: absolute;
  inset: 0 0 0 53%;
  opacity: .64;
  background: repeating-linear-gradient(-34deg, transparent 0 17px, #3121333a 18px 20px, transparent 21px 26px);
  mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.nomination-hero-copy { position: relative; display: grid; justify-items: start; gap: 15px; min-width: 0; z-index: 2; color: var(--hero-ink); }
.phase-mark { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 8px; border: 1px solid var(--hero-ink); background: #fff9ef; color: var(--hero-ink); font-size: 12px; box-shadow: 3px 3px 0 var(--hero-ink); transform: rotate(-2deg); }
.phase-mark strong { color: var(--hero-ink); }
.phase-mark i { height: 7px; width: 7px; border-radius: 50%; background: #ae2054; }
:scope.nomination-archive .phase-mark i { background: #526a12; }
.nomination-hero h1 {
  margin: 0;
  font-family: 'Nomination Poster', "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-size: clamp(45px, 6.75vw, 99px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.045em;
  color: var(--hero-ink);
}
.nomination-hero-rule { max-width: 430px; font-weight: 760; font-size: 14px; color: var(--hero-ink); }
.mascot {
  position: relative;
  width: 100%;
  height: 168px;
  color: var(--hero-ink);
  transform: rotate(6deg);
}
.mascot-print {
  position: absolute;
  inset: 8px 11px 4px auto;
  width: 145px;
  border-radius: 50%;
  background: radial-gradient(#803b6a 1.1px, transparent 1.45px) 0 0 / 5px 5px, #dfd3f7;
  border: 2px solid var(--hero-ink);
  box-shadow: 5px 5px 0 var(--hero-ink);
  transform: skew(-8deg);
}
.mascot img {
  position: absolute;
  z-index: 1;
  width: 142px;
  height: 151px;
  object-fit: contain;
  right: 17px;
  top: 7px;
  filter: drop-shadow(3px 3px 0 #3d20483a);
}
.mascot-spark { position: absolute; right: -10px; top: -5px; width: 62px; z-index: 2; }
.deadline {
  position: relative;
  z-index: 3;
  align-self: end;
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 10px 12px;
  background: var(--yellow);
  border: 2px solid var(--hero-ink);
  box-shadow: 4px 4px 0 var(--hero-ink);
  color: var(--hero-ink);
  transform: rotate(-2.5deg);
  font-size: 12px;
}
.deadline::after {
  content: "";
  position: absolute;
  inset: 5px 4px 5px auto;
  width: 4px;
  background: repeating-linear-gradient(to bottom, var(--hero-ink) 0 3px, transparent 3px 6px);
  opacity: .38;
  pointer-events: none;
}
.deadline-flare { position: absolute; top: -41px; right: 5px; color: var(--ink); width: 50px; pointer-events: none; }
.deadline > span { font-weight: 720; }
.deadline-clock { font-size: clamp(16px, 1.65vw, 22px); line-height: 1.16; font-variant-numeric: tabular-nums; }
.deadline-at { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; color: #493454; }
.deadline-at :is(time, span) { color: #493454; }
.deadline-at time { font-size: 12px; font-weight: 710; }
.deadline-at span { font-size: 11px; }

.board { display: grid; grid-template-columns: minmax(0,1fr) 270px; grid-template-areas: "field mine" "field rules"; grid-template-rows: auto 1fr; gap: 15px 23px; align-items: start; padding-top: 23px; }
.main-column { grid-area: field; min-width: 0; }
.search-ticket {
  position: relative;
  padding: 12px 19px 15px 15px;
  border: 2px solid var(--ink);
  border-right: 1px dashed var(--ink);
  box-shadow: 4px 4px 0 var(--border-shadow);
  background: var(--white);
}
.search-ticket::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: -2px -5px -2px auto;
  width: 10px;
  background: radial-gradient(circle at right 5px, var(--paper) 0 4px, transparent 4.5px) right top / 10px 14px repeat-y;
}
.search-head { display: flex; align-items: center; justify-content: space-between; gap: 7px 12px; flex-wrap: wrap; margin-bottom: 9px; }
.search-head h2, .mine h2, .roster h2, .rules h2 {
  font-family: 'Nomination Poster', "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-weight: 850;
  line-height: 1.15;
}
.search-head h2 { display: flex; align-items: center; gap: 8px; font-size: 26px; }
.search-seal { display: grid; place-items: center; width: 35px; height: 31px; background: var(--purple); border: 1px solid var(--ink); transform: rotate(-8deg); box-shadow: 2px 2px 0 var(--border-shadow); }
.search-seal svg { width: 21px; height: 21px; }
.sources button { min-width: 53px; }
.sources button { border-radius: 5px 5px 0 0; transition: transform .14s, box-shadow .14s, background-color .14s; }
.sources button[aria-pressed="true"] { box-shadow: inset 0 -3px 0 var(--pink); }
.role-search, .roster-filters { display: flex; align-items: stretch; gap: 8px; }
input[type="search"] {
  min-width: 0;
  min-height: 42px;
  padding: 6px 9px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
}
input[type="search"] { flex: 1; width: 100%; }
input::placeholder { color: var(--muted); }
.search-submit { display: inline-flex; align-items: center; white-space: nowrap; gap: 8px; border: 1px solid var(--ink); background: var(--pink); color: var(--hero-ink); padding: 4px 10px; font-weight: 850; box-shadow: 2px 2px 0 var(--border-shadow); transition: transform .14s, box-shadow .14s, background-color .14s; }
.search-submit svg { width: 19px; height: 19px; transition: transform .16s; }
.search-submit:hover { background: var(--yellow); }
.search-submit:hover svg { transform: translate(2px,-2px); }
.search-submit:active { transform: translate(2px,2px); box-shadow: none; }
.search-results { padding-top: 9px; }
.search-results > p { color: var(--muted); font-size: 12px; }
.search-result {
  display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 6px 9px;
  padding: 7px 0; border-bottom: 1px dashed var(--line);
}
.search-result:last-child { border: 0; padding-bottom: 0; }
.result-title { overflow-wrap: anywhere; }
.result-title p { color: var(--muted); font-size: 13px; }
.searched-nominated { padding: 3px 6px; border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.source-fallbacks { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.source-fallbacks button { background: var(--purple); border: 1px solid var(--ink); min-height: 36px; }

.mobile-controls { display: none; }
.mine {
  grid-area: mine;
  position: relative;
  min-width: 0;
  margin: 9px 0 3px;
  padding: 16px 12px 12px;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--border-shadow);
  background: linear-gradient(154deg, transparent 70%, color-mix(in srgb, var(--white) 18%, transparent) 70% 72%, transparent 72% 76%, color-mix(in srgb, var(--white) 18%, transparent) 76% 78%, transparent 78%), var(--purple);
}
.mine-tape {
  position: absolute;
  top: -9px;
  right: 23px;
  width: 65px;
  height: 17px;
  pointer-events: none;
  border: 1px solid var(--ink);
  background: repeating-linear-gradient(-42deg, #eed873 0 5px, var(--yellow) 5px 10px);
  transform: rotate(7deg);
}
.mine-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 3px 9px; }
.mine h2 { display: flex; gap: 5px; align-items: center; font-size: 27px; }
.mine h2 svg { width: 23px; height: 23px; transform: rotate(-11deg); }
.quota { white-space: nowrap; font-variant-numeric: tabular-nums; }
.quota strong { font-size: 34px; line-height: 1; }
.quota span { font-size: 14px; font-weight: 720; }
.quota-meter {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 5px 6px;
  padding: 8px;
  margin: 8px 0 6px;
  border: 1px dashed var(--ink);
  background: var(--white);
}
.stamp-slot {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.26;
  border: 1px dashed var(--line);
  background: radial-gradient(color-mix(in srgb, var(--ink) 13%, transparent) .65px, transparent .85px) 0 0 / 4px 4px;
  font: 650 10px/1 system-ui, sans-serif;
  color: var(--muted);
}
.stamp-slot.used { border-color: var(--rules-accent); }
.stamp-slot.used .stamp-number { opacity: .32; }
.stamp-imprint {
  --stamp-rotation: -11deg;
  position: absolute;
  inset: 2px 5px;
  display: grid;
  place-items: center;
  border: 1.5px double var(--rules-accent);
  border-radius: 50%;
  color: var(--rules-accent);
  transform: rotate(-11deg);
}
.stamp-imprint svg { width: 16px; height: 16px; }
.stamp-slot.fresh-stamp .stamp-imprint { animation: ink-stamp .43s cubic-bezier(.2,.8,.25,1); }
.stamp-slot.fresh-clear { animation: ink-clear .35s ease-out; }
.mine-list { padding: 0; list-style: none; }
.mine-list li { display: grid; grid-template-columns: 29px minmax(0,1fr) auto; gap: 6px; align-items: center; padding: 7px 0; border-bottom: 1px dashed #8e789c; overflow-wrap: anywhere; }
.mine-list .empty { display: block; font-size: 13px; }
.withdraw-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 32px;
  padding: 2px 6px 2px 5px;
  border: 1px solid var(--ink);
  border-left-style: dashed;
  border-radius: 0 5px 5px 0;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 720;
  transition: transform .15s, background-color .15s, box-shadow .15s;
}
.withdraw-tab svg { width: 15px; height: 15px; transition: transform .18s; }
.withdraw-tab:hover { background: var(--pink-soft); transform: translateX(2px) rotate(2deg); box-shadow: 2px 2px 0 var(--border-shadow); }
.withdraw-tab:hover svg { transform: translateX(-2px); }
.withdraw-tab:active { transform: translateX(-1px) rotate(-6deg); box-shadow: none; }
.mine-help { margin-top: 9px; font-size: 12px; color: var(--muted); }

.rules {
  grid-area: rules;
  padding: 13px 12px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--border-shadow);
  background: linear-gradient(142deg, var(--white) 0 89%, var(--pink-soft) 89% 100%);
  scroll-margin-top: 44px;
}
.rules h2 {
  width: fit-content;
  position: relative;
  padding: 2px 15px 4px 4px;
  font-size: 25px;
  background: var(--yellow);
  color: var(--hero-ink);
  clip-path: polygon(0 0, 100% 0, 89% 100%, 0 100%);
}
.rules dl { display: grid; gap: 7px; margin: 7px 0 0; }
.rules dl > div { padding-top: 7px; border-top: 1px dashed var(--line); }
.rules dt { font-size: 13px; font-weight: 760; color: var(--rules-accent); }
.rules dd { margin: 2px 0 0; font-size: 13px; }
.round-plan { margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--line); }
.round-plan h3 { font-size: 13px; }
.nom-timeline { list-style: none; margin: 10px 0; padding: 0 0 0 8px; display: grid; gap: 10px; }
.nom-timeline li { display: grid; gap: 1px; position: relative; padding-left: 15px; font-size: 12px; }
.nom-timeline li::before { content: ""; position: absolute; top: 5px; left: -4px; width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--ink); background: var(--white); z-index: 1; }
.nom-timeline li:not(:last-child)::after { content: ""; position: absolute; height: calc(100% + 10px); top: 5px; left: 0; border-left: 1px dashed var(--rules-accent); }
.nom-timeline .round-current::before { background: var(--pink); }
:scope.nomination-archive .nom-timeline .round-current::before { background: var(--green); }
.nom-timeline span { color: var(--muted); }
.nom-schedule-link { display: flex; min-height: 37px; align-items: center; justify-content: space-between; gap: 6px; border-block: 1px solid var(--line); color: var(--rules-accent); font-weight: 780; font-size: 13px; }
.nom-schedule-link:hover { text-decoration: underline; }

.roster { margin-top: 27px; }
.roster-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 9px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  background: repeating-linear-gradient(-48deg, transparent 0 3px, color-mix(in srgb, var(--ink) 24%, transparent) 3px 4px, transparent 4px 8px) right bottom / 76px 4px no-repeat;
}
.roster-head h2 { display: flex; align-items: flex-end; gap: 4px; position: relative; z-index: 0; max-width: 100%; font-size: 35px; }
.roster-head h2::after { content: ""; position: absolute; z-index: -1; inset: auto 45px 1px 2px; height: 12px; background: var(--pink); transform: rotate(-4deg); clip-path: polygon(0 20%, 100% 0, 96% 78%, 2% 100%); }
.chapter-lines { width: 58px; height: 34px; color: var(--rules-accent); flex: none; }
.roster-counter { flex: none; letter-spacing: .01em; color: var(--ink); background: var(--yellow); color: var(--hero-ink); border: 1px solid var(--hero-ink); padding: 3px 7px; transform: rotate(3deg); font-size: 12px; font-weight: 760; font-variant-numeric: tabular-nums; }
.roster-filters, .roster-tabs, .release { margin-top: 9px; }
.roster-filters { align-items: start; }
.roster-page-size { display: flex; align-items: center; gap: 6px; flex: none; min-height: 42px; color: var(--muted); font-size: 13px; }
.roster-page-size select { min-height: 42px; padding: 4px 6px; border: 1px solid var(--ink); background: var(--white); color: var(--ink); font: inherit; }
.sort-picker { position: relative; flex: none; z-index: 5; }
.sort-picker summary {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 42px;
  padding: 5px 7px;
  border: 1px solid var(--ink);
  background: var(--purple);
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 2px 2px 0 var(--border-shadow);
  transition: transform .14s, box-shadow .14s;
}
.sort-picker summary::-webkit-details-marker { display: none; }
.sort-picker summary > svg { width: 17px; height: 17px; }
.sort-picker summary > .sort-chevron { width: 14px; height: 14px; transition: transform .18s; }
.sort-picker[open] summary, .sort-picker summary:active { transform: translate(2px,2px); box-shadow: none; }
.sort-picker[open] .sort-chevron { transform: rotate(180deg); }
.sort-options {
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  min-width: 140px;
  padding: 4px;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 3px 3px 0 var(--border-shadow);
  animation: ticket-dropdown .17s ease-out both;
}
.sort-options button {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 34px;
  text-align: left;
  padding: 4px 7px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}
.sort-options button::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--rules-accent); }
.sort-options button:hover, .sort-options button[aria-pressed="true"] { background: var(--pink-soft); }
.sort-options button[aria-pressed="true"]::before { background: var(--rules-accent); }
.release { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; }
.release strong, .qualified { background: var(--green); color: #293019; border: 1px solid #454b28; padding: 2px 5px; font-weight: 760; }
.release a { color: var(--rules-accent); text-decoration: underline; font-weight: 760; }
.roster-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 12px; align-items: start; padding: 3px 4px 4px 0; margin-top: 12px; }
.nominee {
  --ticket-color: var(--pink-soft);
  --ticket-notch: 55px;
  min-width: 0;
  position: relative;
  padding: 1.5px;
  background: var(--ink);
  mask-image:
    radial-gradient(circle at 0 var(--ticket-notch), transparent 0 5px, #000 5.7px),
    radial-gradient(circle at 100% var(--ticket-notch), transparent 0 5px, #000 5.7px);
  mask-composite: intersect;
}
.ticket-face {
  position: relative;
  min-width: 0;
  padding: 7px 9px 4px 12px;
  background: var(--white);
}
.ticket-face::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: repeating-linear-gradient(-35deg, transparent 0 3px, var(--border-shadow) 3px 4px, transparent 4px 7px), var(--ticket-color);
  pointer-events: none;
}
.nominee:nth-child(even) { --ticket-color: var(--purple); }
.nominee:nth-child(4n+3) { --ticket-color: #ffe8a2; }
.nominee.mine-picked { background: var(--rules-accent); }
.nominee-line {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  min-height: 78px;
  gap: 8px;
  align-items: center;
}
.portrait { display: grid; place-items: center; min-width: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--portrait-paper, #f3e7dc); color: #773359; font-weight: 850; border: 1px solid #5e426655; }
.nominee .portrait {
  inline-size: 58px;
  block-size: 73px;
  border-color: color-mix(in srgb, var(--ink) 38%, transparent);
  background: radial-gradient(var(--rules-accent) .7px, transparent .85px) 0 0 / 4px 4px, var(--ticket-color);
}
.portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 27%; }
.nominee-copy { display: grid; gap: 3px; align-content: center; min-width: 0; overflow-wrap: anywhere; }
.ticket-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 5px; }
.ticket-serial {
  width: fit-content;
  padding: 2px 4px;
  border-left: 2px solid var(--rules-accent);
  color: var(--ink);
  background: color-mix(in srgb, var(--ticket-color) 42%, var(--white));
  font: 740 10px/1.05 ui-monospace, Consolas, monospace;
  letter-spacing: .02em;
}
.shortlist-mark {
  padding: 1px 4px;
  border: 1px dashed var(--rules-accent);
  color: var(--rules-accent);
  font-size: 10px;
  font-weight: 720;
  line-height: 1.2;
  white-space: nowrap;
}
.nom-seed { padding: 2px 4px; border: 1px solid var(--line); background: var(--purple); color: var(--ink); font-size: 11px; font-weight: 750; }
.nom-seed:hover { text-decoration: underline; }
.nominee-copy h3 { font-size: 16px; line-height: 1.24; }
.nominee-work { color: var(--muted); font-size: 12px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ticket-stub {
  display: grid;
  justify-items: center;
  place-content: center;
  min-width: 87px;
  min-height: 64px;
  border-left: 1px dashed var(--line);
  padding-left: 6px;
}
.nominee-people { min-width: 0; margin-inline-start: 66px; border-top: 1px dashed var(--line); }
.nominee-people summary {
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  cursor: pointer;
  width: fit-content;
  min-height: 26px;
  padding: 2px 0;
  color: var(--rules-accent);
  font-weight: 760;
  font-size: 12px;
}
.nominee-people summary::-webkit-details-marker { display: none; }
.nominee-people summary > svg { width: 13px; height: 13px; transform: rotate(-90deg); transition: transform .15s; }
.nominee-people[open] summary > svg { transform: rotate(0); }
.people-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.popularity { display: flex; align-items: flex-end; gap: 2px; height: 11px; margin-left: 3px; }
.popularity i { display: block; width: 3px; height: 5px; border-radius: 1px; background: var(--line); transform: skew(-12deg); }
.popularity i:nth-child(2) { height: 6px; }
.popularity i:nth-child(3) { height: 7px; }
.popularity i:nth-child(4) { height: 9px; }
.popularity i:nth-child(5) { height: 11px; }
.popularity .filled { background: var(--rules-accent); }
.nominee-people p { margin: 4px 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.nominate {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  flex: none;
  white-space: nowrap;
  min-width: 72px;
  min-height: 36px;
  padding: 3px 6px;
  border: 1.5px solid var(--ink);
  border-radius: 5px 4px 7px 3px;
  color: var(--ink);
  background: var(--button-paper);
  box-shadow: 2px 2px 0 var(--border-shadow);
  font-size: 12px;
  font-weight: 780;
  transition: transform .15s, color .15s, background-color .15s, box-shadow .15s;
}
.nominate svg { width: 16px; height: 16px; flex: none; transition: transform .15s; }
.nominate:hover:not(:disabled) { background: var(--yellow); color: var(--hero-ink); transform: translateY(-2px) rotate(-3deg); box-shadow: 2px 4px 0 var(--border-shadow); }
.nominate:hover:not(:disabled) svg { transform: rotate(-12deg); }
.nominate[aria-pressed="true"] {
  border: 3px double var(--rules-accent);
  border-radius: 34% 28% 32% 26% / 32% 30% 31% 28%;
  background: var(--pink-soft);
  color: var(--rules-accent);
  box-shadow: none;
  transform: rotate(-4deg);
}
.nominate[aria-pressed="true"]:hover { background: var(--pink); color: var(--hero-ink); transform: rotate(0); }
.nominate:active:not(:disabled) { transform: translate(1px,2px) scale(.95); box-shadow: none; }
.nominate:disabled { opacity: .6; }
.nominate.fresh-stamp { animation: ink-stamp .43s cubic-bezier(.2,.8,.25,1); }
.nominate.fresh-clear { animation: ink-clear .36s ease-out; }
.qualified { display: inline-flex; align-items: center; gap: 3px; width: fit-content; font-size: 12px; transform: rotate(-3deg); box-shadow: 1px 1px 0 #454b28; }
.qualified svg { width: 14px; height: 14px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 13px; font-size: 12px; }
.pagination button { min-height: 36px; padding: 4px 9px; border: 1px solid var(--ink); background: var(--white); color: var(--ink); }
.pagination button:hover:not(:disabled) { background: var(--yellow); color: var(--hero-ink); }
.pagination button:disabled { opacity: .5; }
.roster-empty { grid-column: 1 / -1; padding: 12px 0; color: var(--muted); }
.unranked-roster { margin-top: 22px; padding-top: 12px; border-top: 1px dashed var(--line); }
.unranked-roster h3 { margin: 0; font-size: 17px; }
.unranked-roster > p, .unranked-label { color: var(--muted); font-size: 13px; }
.unranked-roster > .roster-grid { margin-top: 8px; }
.toast {
  position: fixed;
  z-index: 10;
  bottom: 18px;
  right: 22px;
  max-width: calc(100vw - 44px);
  padding: 7px 11px;
  border: 1px solid var(--hero-ink);
  box-shadow: 3px 3px 0 var(--hero-ink);
  background: var(--yellow);
  color: var(--hero-ink);
  font-weight: 750;
  pointer-events: none;
  animation: ticket-dropdown .19s ease-out;
}
.toast::before {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -7px;
  width: 12px;
  height: 11px;
  background: var(--yellow);
  border-right: 1px solid var(--hero-ink);
  border-bottom: 1px solid var(--hero-ink);
  transform: skewY(-35deg);
}

@keyframes ink-stamp {
  0% { transform: translateY(-8px) scale(1.23) rotate(-14deg); opacity: .38; }
  44% { transform: translateY(1px) scale(.94) rotate(var(--stamp-rotation, -4deg)); opacity: 1; }
  69% { transform: scale(1.04) rotate(var(--stamp-rotation, -4deg)); }
  100% { transform: scale(1) rotate(var(--stamp-rotation, -4deg)); }
}
@keyframes ink-clear {
  0% { transform: scale(.9); opacity: .38; }
  53% { transform: scale(1.035); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes ticket-dropdown {
  from { transform: translateY(-5px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media(max-width: 950px) {
  .board { grid-template-columns: minmax(0,1fr) 225px; gap: 14px 17px; }
  .roster-grid { grid-template-columns: 1fr; }
  .nomination-hero { gap: 7px 28px; }
  .mascot-print { width: 113px; inset: 21px 9px 15px auto; }
  .mascot img { width: 114px; height: 129px; right: 10px; top: 14px; }
  .mascot-spark { width: 53px; right: -13px; top: 4px; }
}
@media(max-width: 760px) and (min-width: 701px) {
  .nomination-hero { grid-template-columns: minmax(0, 1fr) 112px minmax(188px, 25%); gap: 7px 18px; }
  .mascot-spark { width: 39px; right: -3px; }
  .deadline-clock { font-size: 15px; }
}
@media(max-width: 700px) {
  .nomination-hero { grid-template-columns: minmax(0, 1fr) 112px; min-height: 0; gap: 7px 5px; padding: 12px 10px 12px; }
  .nomination-hero-stripe { inset: 5px 0 34px; }
  .nomination-hero h1 { font-size: clamp(46px, 11vw, 71px); }
  .nomination-hero-rule { font-size: 12px; }
  .mascot { width: 110px; height: 123px; }
  .mascot-print { width: 103px; inset: 10px 7px 5px auto; box-shadow: 3px 3px 0 var(--ink); }
  .mascot img { width: 96px; height: 114px; right: 12px; top: 1px; }
  .mascot-spark { width: 46px; right: -9px; top: 0; }
  .deadline { grid-column: 1 / -1; justify-self: end; max-width: 100%; margin-top: 3px; padding: 5px 8px; gap: 2px; box-shadow: 3px 3px 0 var(--hero-ink); font-size: 11px; }
  .deadline-flare { display: none; }
  .deadline-clock { font-size: 17px; }
  .deadline-at time { font-size: 11px; }
  .deadline-at span { font-size: 10px; }
  .board { display: flex; flex-direction: column; gap: 10px; padding-top: 13px; align-items: stretch; }
  .mobile-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .mobile-controls a { display: grid; align-items: center; min-height: 42px; color: var(--rules-accent); font-size: 13px; font-weight: 720; }
  .mine-jump { display: flex; align-items: center; gap: 6px; min-height: 41px; background: var(--purple); border: 1px solid var(--ink); color: var(--ink); box-shadow: 2px 2px 0 var(--border-shadow); font-size: 12px; padding: 5px 8px; }
  .mine { display: none; margin: 4px 3px 7px 0; }
  .mine.open { display: block; }
  .search-ticket { margin-right: 3px; padding: 8px 9px; }
  .search-head h2 { font-size: 22px; }
  .search-seal { width: 26px; height: 25px; }
  .search-seal svg { width: 17px; height: 17px; }
  .roster { margin-top: 18px; }
  .roster-head h2 { font-size: 30px; }
  .search-head { gap: 6px; }
  .sources button { min-width: 0; padding-inline: 6px; }
  .rules { margin: 5px 3px 3px 0; }
}
@media(max-width: 435px) {
  .nomination-hero { grid-template-columns: minmax(0, 1fr) 83px; padding-inline: 6px; }
  .nomination-hero h1 { font-size: clamp(35px, 10.8vw, 50px); }
  .nomination-hero-copy { gap: 11px; }
  .phase-mark { padding-block: 2px; font-size: 11px; }
  .mascot { width: 86px; height: 104px; }
  .mascot-print { width: 86px; }
  .mascot img { width: 77px; height: 96px; right: 10px; }
  .mascot-spark { right: -3px; }
  .roster-grid { gap: 6px 9px; }
  .ticket-face { padding-inline: 10px 6px; }
  .nominee-line { grid-template-columns: 45px minmax(0,1fr) auto; gap: 6px; min-height: 62px; }
  .nominee .portrait { inline-size: 45px; block-size: 60px; }
  .nominee-copy h3 { font-size: 15px; }
  .nominee-work { font-size: 12px; }
  .nominee-people { margin-inline-start: 51px; }
  .ticket-stub { padding-left: 4px; min-width: 71px; min-height: 48px; }
  .nominate { padding-inline: 4px; min-width: 64px; }
  .nominate svg { width: 14px; height: 14px; }
  .search-submit { gap: 4px; padding-inline: 6px; }
  .search-submit svg { width: 15px; height: 15px; }
}
@media(max-width: 350px) {
  .nomination-hero { grid-template-columns: minmax(0, 1fr) 65px; }
  .mascot { width: 67px; height: 95px; }
  .mascot-print { width: 68px; inset-inline-end: 3px; }
  .mascot img { width: 65px; height: 84px; inset-inline-end: 4px; }
}
@media(max-width: 480px) {
  .roster-filters { flex-wrap: wrap; }
  .roster-filters > input { flex-basis: 100%; }
  .roster-page-size { margin-inline-start: auto; }
}
@media(pointer: coarse) {
  :is(.sources,.roster-tabs,.pagination,.mine-list,.sort-options) button, .sort-picker summary, .roster-page-size select, .mine-jump, .nominate { min-height: 44px; }
  .nominee-people summary { min-height: 38px; align-content: center; }
  input[type="search"] { font-size: 16px; }
}
}
