


@font-face {
  font-family: 'Rye';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/rye-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Special Elite';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/special-elite-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/barlow-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/barlow-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-condensed-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-condensed-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/barlow-condensed-700.woff2') format('woff2');
}


@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/orbitron-900.woff2') format('woff2');
}
@font-face {
  font-family: 'Creepster';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/creepster-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Metal Mania';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/metal-mania-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Pirata One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/pirata-one-400.woff2') format('woff2');
}

:root {
  
  --ink: #0a0a0a;
  --ink-2: #121013;
  --ink-3: #17131b;
  --blood: #cc0000;
  --blood-deep: #6e0505;
  --pumpkin: #ff7518;
  --ember: #ffb347;
  --fog: #8b8894;      
  --fog-lit: #a9a6b1;
  --bone: #ece7dd;
  --oddverse: #2a1035;
  --bulb: #ffd9a0;
  --error: #ff5a5a;
  --ok: #5fbf7a;    

  --display: 'Rye', 'Barlow Condensed', serif;
  --host: 'Special Elite', 'Courier New', monospace;
  --body: 'Barlow', system-ui, sans-serif;
  --cond: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;

  --radius: 3px;
  --hair: 1px solid rgba(236, 231, 221, .10);
  --gutter: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}


.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter) 12px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 8px;
  z-index: 20;
  background: var(--ember);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-family: var(--cond);
  font-weight: 700;
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}


.bulb-rail {
  height: 12px;
  background-image: radial-gradient(circle, var(--bulb) 0 2.1px,
                    rgba(255, 217, 160, .14) 2.4px, transparent 3px);
  background-size: 26px 12px;
  background-position: center;
  filter: drop-shadow(0 0 5px rgba(255, 180, 80, .5));
  animation: flicker 5.5s steps(1, end) infinite;
}
@keyframes flicker {
  0%, 86%, 100% { opacity: 1 }
  88% { opacity: .35 }
  90% { opacity: 1 }
  93% { opacity: .5 }
  95% { opacity: 1 }
}
@media (prefers-reduced-motion: reduce) {
  .bulb-rail { animation: none }
}

.marquee {
  background:
    linear-gradient(180deg, rgba(42, 16, 53, .55), rgba(10, 10, 10, .92) 68%),
    repeating-linear-gradient(115deg, rgba(204, 0, 0, .16) 0 22px, transparent 22px 44px);
  border-bottom: 2px solid rgba(204, 0, 0, .45);
  margin-bottom: 20px;
}
.marquee-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px var(--gutter) 16px;
}


.title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 7vw, 2.4rem);
  line-height: .96;
  margin: 0;
  color: var(--ember);
  text-wrap: balance;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .42em;
  color: inherit;
  text-decoration: none;
  text-shadow: 0 0 26px rgba(255, 117, 24, .3), 0 3px 0 var(--blood-deep);
}
.brand:hover { color: var(--pumpkin); }

.brand-mark {
  width: .92em;
  height: .92em;
  flex: none;
  color: var(--ember);
  filter: drop-shadow(0 2px 0 var(--blood-deep));
}
.brand:hover .brand-mark { color: var(--pumpkin); }
.brand-word { display: inline-block; }


.event-bar {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 7px;
}
.event-name {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .02em;
  color: var(--bone);
}
.event-where {
  font-family: var(--host);
  font-size: .56rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fog);
}

.event-progress {
  flex-basis: 100%;
  font-family: var(--host);
  font-size: .56rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fog);
}


.event-picker { position: relative; align-self: center; }


.event-trigger {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-height: 44px;
  max-width: 100%;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.event-trigger-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.event-trigger-label {
  font-family: var(--host);
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ember);
  opacity: .75;
}
.event-trigger-name {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .02em;
  color: var(--bone);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-trigger-where {
  font-family: var(--host);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fog-lit);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-trigger-caret {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 179, 71, .45);
  display: grid;
  place-items: center;
  margin-bottom: 1px;
}
.event-trigger-caret-icon {
  width: 9px;
  height: 6px;
  color: var(--ember);
  transition: transform .15s ease;
}
.event-trigger[aria-expanded="true"] .event-trigger-caret-icon { transform: rotate(180deg); }


.event-picker-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  z-index: 29;
}
.event-picker-panel {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 30;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border-top: 2px solid rgba(255, 117, 24, .5);
  border-radius: 12px 12px 0 0;
  padding: 8px 0 env(safe-area-inset-bottom);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .5);
}

.event-picker-grabber {
  flex: none;
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: rgba(236, 231, 221, .22);
  margin: 4px auto 8px;
}
.event-picker-header {
  flex: none;
  font-family: var(--host);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fog);
  padding: 0 var(--gutter) 8px;
}
.event-picker-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.event-option {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(236, 231, 221, .08);
  padding: 10px var(--gutter);
  cursor: pointer;
  text-align: left;
  color: var(--bone);
}
.event-picker-list li:first-child .event-option { border-top: 0; }

.event-option:focus-visible { outline-offset: -2px; }
.event-option .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(236, 231, 221, .16);
  flex: none;
}
.event-option-active .dot {
  background: var(--pumpkin);
  box-shadow: 0 0 8px var(--pumpkin);
}
.event-option-active { background: rgba(255, 117, 24, .13); }
.event-option-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.event-option-text .name {
  font-family: var(--cond);
  font-weight: 700;
  font-size: .95rem;
  color: var(--bone);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-option-active .event-option-text .name { color: var(--ember); }
.event-option-text .where {
  font-family: var(--host);
  
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fog);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  border: var(--hair);
  border-radius: var(--radius);
  background: rgba(236, 231, 221, .04);
  padding: 4px;
}

.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: transparent;
  border: 0;
}
.mode-btn {
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fog-lit);
  font-family: var(--cond);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 9px 4px;
  border-radius: var(--radius);
  cursor: pointer;
  line-height: 1.15;
}
.mode-btn[aria-pressed="true"] {
  background: rgba(255, 117, 24, .13);
  border-color: rgba(255, 117, 24, .5);
  color: var(--ember);
}

.filter-bar {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.filter-btn {
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  flex: 1;
  display: flex;
  align-items: center;
  
  gap: .4em;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--bone);
  font-family: var(--cond);
  font-weight: 600;
  font-size: .9rem;
  padding: 10px 12px;
  cursor: pointer;
  
}
.filter-btn-caret {
  flex: none;
  width: 10px;
  height: 6px;
  color: var(--fog);
  margin-left: auto;
}
.filter-btn .count {
  color: var(--pumpkin);
}


.trust-note {
  color: var(--fog);
  font-size: .85rem;
  margin: 0 0 10px;
}
.trust-note:empty { display: none; }


.board {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.board-row { display: block; }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--ink-2);
  border: var(--hair);
  border-left: 2px solid rgba(255, 117, 24, .35);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}
.row:hover, .row:focus-visible {
  border-left-color: var(--pumpkin);
  background: var(--ink-3);
}


.row .bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, rgba(204, 0, 0, .22), rgba(255, 117, 24, .10));
  pointer-events: none;
}
.row > * { position: relative; }


.row .trending-badge {
  position: absolute;
  
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  top: 3px;
  right: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px 2px 5px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pumpkin), var(--ember));
  box-shadow: 0 3px 7px rgba(0, 0, 0, .45);
  line-height: 1;
  animation: trending-in .25s ease-out;
}
.trending-badge svg {
  width: 8px;
  height: 10px;
  color: var(--ink);
  flex: none;
}
.trending-badge span {
  font-family: var(--host);
  font-size: .5rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
@keyframes trending-in {
  from { opacity: 0; transform: translateY(3px) scale(.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .trending-badge { animation: none; }
}


.row-personal { grid-template-columns: 22px 1fr auto auto; }

.rank {
  font-family: var(--cond);
  font-weight: 700;
  font-size: .95rem;
  color: var(--fog);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.row-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.name {
  display: block;
  font-family: var(--cond);
  font-weight: 700;
  
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--bone);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  
  min-width: 0;
}

.name.name-trending { padding-right: 78px; }
.meta {
  display: block;
  font-family: var(--host);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fog);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.yours {
  display: block;
  min-width: 44px;
  text-align: right;
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--ember);
  font-variant-numeric: tabular-nums;
}
.yours-none { color: rgba(236, 231, 221, .3); }




.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;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.tab {
  -webkit-appearance: none;
  appearance: none;
  min-height: 52px;
  padding: 7px 8px;
  border: 0;
  border-right: var(--hair);
  background: var(--ink-2);
  color: var(--fog-lit);
  cursor: pointer;
  text-align: center;
}
.tab:last-child { border-right: 0; }
.tab.on { background: rgba(255, 117, 24, .16); color: var(--ember); }
.tab-name {
  display: block;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.15;
}
.tab-sub {
  display: block;
  font-family: var(--host);
  font-size: .54rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fog);
  margin-top: 2px;
}
.tab.on .tab-sub { color: var(--ember); opacity: .8; }

.rate-view { margin: 0; }
.rate-view .section-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0 8px;
  color: var(--ember);
}
.rate-view .section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 117, 24, .45), transparent);
}
.rate-view .grid + .section-label { margin-top: 18px; }

.grid {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}

.card-done { opacity: .74; }



.card-open {
  flex: 1;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}


.card-plate {
  position: relative;
  
  display: flex;
  flex-direction: column;
  flex: 1;
}


.card-art {
  position: relative;
  
  min-height: 66px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 13px 30px 8px 8px;
  background: linear-gradient(160deg, var(--ink-3), var(--ink));
}

.plate-mark {
  font-family: var(--display);
  line-height: 1.06;
  letter-spacing: .02em;
  text-align: center;
  color: var(--bone);
  
  text-shadow: 0 1px 0 rgba(10, 10, 10, .9), 0 0 14px rgba(10, 10, 10, .75);
  
  overflow-wrap: break-word;
  hyphens: none;
}


.plate-name-xl { --mark: 1.62rem; }
.plate-name-l { --mark: 1.4rem; }
.plate-name-m { --mark: 1.2rem; }
.plate-name-s { --mark: 1.06rem; }
.plate-name-xs { --mark: .95rem; letter-spacing: 0; }
.plate-mark { font-size: calc(var(--mark, 1.2rem) * var(--kit-scale, 1)); }

.card-art .plate-mark {
  display: -webkit-box;
  min-width: 0;
  max-width: 100%;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  
  font-size: calc(var(--mark, 1.2rem) * var(--kit-scale, 1) * .8);
  max-height: calc(1.5em * 2);
  -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
  
  line-height: 1.5;
}

.plate-bulbs {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background-image: radial-gradient(circle, var(--bulb) 0 1.1px,
                                    rgba(255, 217, 160, .16) 1.3px, transparent 1.9px);
  background-size: 11px 5px;
  background-position: center;
  opacity: .85;
}




.kit-carnival { background: linear-gradient(155deg, #5e1206, #1b0705); }
.kit-carnival { --kit-scale: .9; }
.kit-carnival .plate-mark {
  font-family: 'Rye', var(--display);
  color: #f6d9a8;
  text-shadow: 0 2px 0 #2a0a04, 0 0 22px rgba(255, 117, 24, .45);
}


.kit-cold { background: linear-gradient(155deg, #1b2b38, #070d12); }
.kit-cold { --kit-scale: .68; }
.kit-cold .plate-mark {
  font-family: 'Orbitron', var(--cond);
  font-weight: 900;
  color: #bfe8fa;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(120, 210, 245, .6);
}


.kit-spore { background: linear-gradient(155deg, #14301c, #050d08); }
.kit-spore { --kit-scale: 1; }
.kit-spore .plate-mark {
  font-family: 'Creepster', var(--display);
  color: #8ef29a;
  text-shadow: 0 0 20px rgba(110, 240, 140, .55), 0 2px 0 #041007;
}


.kit-gore { background: linear-gradient(155deg, #4a0a0a, #150304); }
.kit-gore { --kit-scale: 1; }
.kit-gore .plate-mark {
  font-family: 'Creepster', var(--display);
  color: #ff8080;
  text-shadow: 0 0 20px rgba(204, 0, 0, .7), 0 2px 0 #140202;
}


.kit-feral { background: linear-gradient(155deg, #45260c, #140903); }
.kit-feral { --kit-scale: .86; }
.kit-feral .plate-mark {
  font-family: 'Metal Mania', var(--display);
  color: #f0c98a;
  text-shadow: 0 2px 0 #1c0d03, 0 0 22px rgba(220, 140, 50, .4);
}


.kit-ember { background: linear-gradient(155deg, #3d1405, #120503); }
.kit-ember { --kit-scale: .86; }
.kit-ember .plate-mark {
  font-family: 'Metal Mania', var(--display);
  color: #ffa552;
  text-shadow: 0 2px 0 #170601, 0 0 22px rgba(255, 120, 30, .5);
}


.kit-crypt { background: linear-gradient(155deg, #2b1035, #0b0510); }
.kit-crypt { --kit-scale: 1; }
.kit-crypt .plate-mark {
  font-family: 'Pirata One', var(--display);
  color: #dcc6f0;
  text-shadow: 0 0 22px rgba(180, 120, 220, .5), 0 2px 0 #0d0512;
}


.kit-rite { background: linear-gradient(155deg, #23202c, #08070b); }
.kit-rite { --kit-scale: 1; }
.kit-rite .plate-mark {
  font-family: 'Pirata One', var(--display);
  color: #ded3bb;
  letter-spacing: .02em;
  text-shadow: 0 0 22px rgba(222, 211, 187, .28), 0 2px 0 #07060a;
}


.kit-broadcast { background: linear-gradient(155deg, #3a2410, #120b04); }
.kit-broadcast { --kit-scale: .86; }
.kit-broadcast .plate-mark {
  font-family: var(--host);
  color: #ffcf7a;
  text-shadow: 0 0 3px rgba(255, 207, 122, .7), 0 0 18px rgba(255, 160, 40, .35);
}


.kit-plain { background: linear-gradient(155deg, #26232c, #0b0a0d); }
.kit-plain { --kit-scale: 1.06; }
.kit-plain .plate-mark {
  font-family: var(--cond);
  font-weight: 700;
  color: var(--bone);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.card-done .card-art { filter: saturate(.5) brightness(.78); }


.card-you {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 28px;
  text-align: center;
  border-radius: 6px;
  
  padding: 3px 6px;
  border: 1px solid rgba(255, 117, 24, .45);
  background: rgba(10, 10, 10, .72);
}
.card-you-n {
  display: block;
  font-family: var(--cond);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.05;
  color: var(--ember);
  font-variant-numeric: tabular-nums;
}
.card-you-l {
  display: block;
  font-family: var(--host);
  font-size: .42rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ember);
  opacity: .75;
  line-height: 1.1;
}
.card-you-none { border-color: rgba(236, 231, 221, .22); }
.card-you-none .card-you-n, .card-you-none .card-you-l {
  color: var(--fog-lit);
  opacity: 1;
}


.card-tonight {
  display: block;
  font-family: var(--host);
  font-size: .46rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--ember);
  padding: 3px 9px;
}

.card-rate {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cond);
  font-weight: 600;
  font-size: .94rem;
  letter-spacing: .03em;
  border: 0;
  border-top: var(--hair);
  background: rgba(255, 117, 24, .1);
  color: var(--ember);
  cursor: pointer;
}
.card-rate:hover { background: rgba(255, 117, 24, .2); }

.score {
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1;
  text-align: right;
  min-width: 56px;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}


.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 16px 0 0;
}

.strip-top {
  margin: 0 0 14px;
}
.stat {
  background: rgba(42, 16, 53, .35);
  border: var(--hair);
  border-radius: var(--radius);
  padding: 10px 8px;
  text-align: center;
}
.stat .v {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--ember);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .l {
  font-family: var(--host);
  font-size: .55rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fog);
  margin-top: 5px;
}


.back {
  display: inline-block;
  font-family: var(--host);
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pumpkin);
  text-decoration: none;
  margin-bottom: 14px;
}
.back:hover { color: var(--ember); }



.art-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  padding: 22px 18px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  border: var(--hair);
  overflow: hidden;
  background: linear-gradient(160deg, var(--ink-3), var(--ink));
}

.art-mark::before {
  content: '';
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 217, 160, .16) 0 12%, transparent 42%),
    repeating-radial-gradient(circle at 50% 52%,
      rgba(236, 231, 221, .055) 0 1px, transparent 1px 26px);
  pointer-events: none;
}

.art-mark .plate-name-xl { --mark: clamp(2rem, 11vw, 3.1rem); }
.art-mark .plate-name-l  { --mark: clamp(1.8rem, 9.5vw, 2.7rem); }
.art-mark .plate-name-m  { --mark: clamp(1.55rem, 8vw, 2.3rem); }
.art-mark .plate-name-s  { --mark: clamp(1.35rem, 6.6vw, 1.95rem); }
.art-mark .plate-name-xs { --mark: clamp(1.15rem, 5.4vw, 1.6rem); letter-spacing: 0; }
.art-mark .plate-mark { line-height: 1.08; }
.plate-bulbs-foot { top: auto; bottom: 0; }

.detail-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.4rem, 6vw, 2.1rem);
  line-height: 1.05;
  color: var(--ember);
  margin: 0 0 8px;
  text-wrap: balance;
}
.chip {
  display: inline-block;
  font-family: var(--host);
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ember);
  border: 1px solid rgba(255, 117, 24, .42);
  background: rgba(255, 117, 24, .07);
  border-radius: 20px;
  padding: 3px 10px;
  
  margin: 8px 0 10px;
}
.blurb {
  color: var(--fog-lit);
  margin: 12px 0 18px;
  max-width: 62ch;
}


.official-link {
  
  display: block;
  
  margin: 12px 0 18px;
  color: var(--ember);
  font-family: var(--cond);
  font-weight: 600;
  font-size: .88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.official-link:hover { color: var(--pumpkin); }

.modes-out {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 20px;
}
.mode-out {
  border: var(--hair);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 12px 8px;
  text-align: center;
}
.mode-out.active {
  border-color: rgba(255, 117, 24, .5);
  background: rgba(255, 117, 24, .08);
}
.mode-out .v {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--ember);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.mode-out .l {
  font-family: var(--host);
  font-size: .54rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fog);
  margin-top: 6px;
  line-height: 1.3;
}


.rewalk-note {
  color: var(--fog-lit);
  margin: 8px 0 0;
}

.section-label {
  font-family: var(--host);
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--fog);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: var(--hair);
}

.ballots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ballot {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(236, 231, 221, .03);
  border-radius: var(--radius);
}
.ballot .who {
  font-family: var(--cond);
  font-weight: 600;
  font-size: .95rem;
}

.ballot .pass {
  font-family: var(--host);
  font-size: .55rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pumpkin);
  border: 1px solid rgba(255, 117, 24, .3);
  border-radius: 20px;
  padding: 2px 8px;
}

.ballot-groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.night-label {
  font-family: var(--host);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 8px;
}
.ballot .val {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ember);
  font-variant-numeric: tabular-nums;
  min-width: 2.5ch;
  text-align: right;
}


.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  z-index: 30;
  display: flex;
  align-items: flex-end;
}

.sheet {
  width: 100%;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border-top: 2px solid rgba(255, 117, 24, .5);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .5);
  padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom));
}
.sheet-head { flex: none; }

.sheet-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.sheet-close {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  background: transparent;
  border: 0;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--fog);
  cursor: pointer;
}
.sheet-close:hover, .sheet-close:focus-visible { color: var(--bone); }


.sheet-body .section-label { margin-top: 20px; }
.sheet-body > *:first-child { margin-top: 0; }

.sheet-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  
  overscroll-behavior: contain;
  
  padding: 4px 4px 0;
  margin: -4px -4px 0;
  
  overflow-x: hidden;
}
.sheet h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--ember);
  margin: 0 0 4px;
}
.sheet .hint {
  color: var(--fog);
  font-size: .88rem;
  margin: 0 0 14px;
}

.hint-warn {
  color: var(--pumpkin);
  margin: 6px 0 0;
}
.hint-warn:empty { display: none; }

.hint a { color: var(--pumpkin); }

.section-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.section-label-count {
  font-family: var(--host);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--fog);
  font-variant-numeric: tabular-nums;
}

.link-btn {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: 0;
  padding: 12px 0;
  min-height: 44px;
  cursor: pointer;
  color: var(--ember);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--pumpkin); }

.scribe-link-row { margin-bottom: 2px; }
.people {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.people > li {
  
  min-width: 0;
}
.person {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 9px;
  padding: 9px 10px;
  background: rgba(236, 231, 221, .04);
  border: var(--hair);
  border-radius: var(--radius);
  font-family: var(--cond);
  font-weight: 600;
  cursor: pointer;
  
  min-width: 0;
}
.person input {
  accent-color: var(--pumpkin);
  width: 17px;
  height: 17px;
  flex: none;
}
.person span {
  
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.person.on {
  border-color: rgba(255, 117, 24, .5);
  background: rgba(255, 117, 24, .1);
  color: var(--ember);
}


.group-manage-rows { display: flex; flex-direction: column; gap: 18px; }
.group-manage-group { display: flex; flex-direction: column; gap: 6px; }
.group-manage-group > .field-row,
.group-manage-group > button,
.group-manage-group > .sheet-error,
.group-manage-group > .hint { margin: 0; }

.group-manage-group > .section-label { margin: 0; }


.groups-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.group-row {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  padding: 9px 10px;
  background: rgba(236, 231, 221, .04);
  border: var(--hair);
  border-radius: var(--radius);
}
.group-row-name {
  flex: 1;
  
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--cond);
  font-weight: 600;
  color: var(--bone);
}
.sheet-actions {
  flex: none;
  display: flex;
  
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  margin-top: 4px;
  border-top: var(--hair);
}
.sheet-actions button, .sheet-actions a {
  
  flex: 1 1 calc(50% - 4px);
  
  min-height: 44px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: var(--radius);
  font-family: var(--cond);
  font-weight: 700;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 12px;
  cursor: pointer;
  
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}
.btn-primary {
  min-height: 44px;
  background: linear-gradient(180deg, var(--blood), var(--blood-deep));
  border: 1px solid rgba(204, 0, 0, .7);
  color: var(--bone);
}
.btn-quiet {
  min-height: 44px;
  background: transparent;
  border: var(--hair);
  color: var(--fog-lit);
}


.loading, .empty, .error {
  padding: 28px 4px;
  color: var(--fog);
  font-family: var(--cond);
  font-size: 1.05rem;
  text-align: center;
}
.error {
  color: var(--bone);
  border: 1px solid rgba(204, 0, 0, .45);
  background: rgba(204, 0, 0, .07);
  border-radius: var(--radius);
  text-align: left;
  padding: 16px;
}
.error strong {
  display: block;
  font-family: var(--cond);
  font-size: 1.1rem;
  color: var(--error);
  margin-bottom: 6px;
}

.error span {
  display: block;
  margin: 0 0 12px;
}
.error button {
  margin-bottom: 10px;
}
.error a {
  display: inline-block;
  margin-top: 4px;
}


.foot {
  border-top: var(--hair);
  margin: 18px auto 0;
  padding: 18px var(--gutter) 30px;
  max-width: 760px;
}
.foot-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.foot-text {
  flex: 1 1 320px;
  min-width: 0;
}
.foot #foot-summary {
  font-family: var(--host);
  font-size: .62rem;
  letter-spacing: .12em;
  color: var(--fog);
  margin: 0 0 8px;
}


@media (min-width: 560px) {
  :root { --gutter: 22px; }
  
  .controls {
    flex-direction: row;
    align-items: stretch;
  }
  
  .modes { flex: 0 0 auto; }
  .filter-bar { flex: 1; }
  .people { grid-template-columns: repeat(3, 1fr); }
  
  .row { grid-template-columns: 32px 1fr auto; padding: 11px 14px; }
  .row-personal { grid-template-columns: 32px 1fr auto auto; }
  
  .board-head { grid-template-columns: 32px 1fr auto auto; }
  .score, .yours { font-size: 1.45rem; }
  
  .name { font-size: 1.3rem; }

  
  .event-picker-backdrop { display: none; }
  .event-picker-panel {
    position: absolute;
    inset: auto auto auto 0;
    top: calc(100% + 8px);
    width: max-content;
    min-width: 260px;
    max-width: 360px;
    max-height: 320px;
    border-radius: 12px;
    border: 1px solid rgba(255, 117, 24, .35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
    padding-top: 4px;
  }
  
  .event-picker-grabber { display: none; }

  
  .sheet-backdrop { align-items: center; justify-content: center; }
  .sheet {
    max-width: 560px;
    border: 2px solid rgba(255, 117, 24, .5);
    border-radius: var(--radius);
    padding-bottom: 16px;
  }
}

@media (min-width: 820px) {
  .marquee-inner { padding: 26px var(--gutter) 22px; }
}




.marquee-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}


.who-chip {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  
  min-height: 44px;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 20px;
  border: 1px solid rgba(255, 117, 24, .6);
  background: rgba(255, 117, 24, .14);
  color: var(--ember);
  font-family: var(--cond);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .03em;
  cursor: pointer;
  white-space: nowrap;
}

.who-chip .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pumpkin);
  flex: none;
  margin-left: 4px;
}
.who-chip-empty {
  border-color: rgba(236, 231, 221, .28);
  background: rgba(236, 231, 221, .05);
  color: var(--fog-lit);
}
.who-chip-empty .dot { background: var(--fog); }

.entry-actions { margin-bottom: 18px; }

.field {
  width: 100%;
  
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  background: rgba(10, 10, 10, .6);
  
  border: 1px solid rgba(236, 231, 221, .40);
  border-radius: var(--radius);
  color: var(--bone);
  font-family: var(--cond);
  font-size: 1rem;
  padding: 10px 12px;
  
  overflow-x: hidden;
  overflow-y: auto;
}

input[type="date"].field {
  width: 0;
  min-width: 100%;
}
.field-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 12px;
}
.field-row .field { flex: 1; }
.field-row button { flex: none; padding: 10px 14px; }


.id-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.id-header-text { min-width: 0; }
.id-header-name {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--bone);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.id-header-handle {
  font-size: .85rem;
  color: var(--fog);
}


.handle-current {
  margin: 0 0 14px;
  font-family: var(--cond);
  font-size: .86rem;
  color: var(--fog);
}
.handle-current-label { color: var(--fog); }
.handle-current-value {
  font-family: var(--host);
  text-decoration: line-through;
  text-decoration-color: rgba(139, 136, 148, .6);
}

.handle-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}
.handle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: var(--hair);
  border-radius: var(--radius);
  background: rgba(236, 231, 221, .035);
}

.handle-card-text {
  font-family: var(--host);
  font-size: .92rem;
  color: var(--bone);
  word-break: break-word;
}
.handle-card .btn-primary { flex: none; }

.sheet-error {
  color: var(--error);
  font-family: var(--cond);
  font-size: .9rem;
  min-height: 1.2em;
  margin: 8px 0 0;
}

button.person {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  text-align: left;
  color: var(--bone);
  font-size: .95rem;
}


.roster {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 12px 0;
}

.claim-link {
  font-size: .85rem;
  padding: 8px 12px;
  margin-top: -3px;
}
.rperson {
  display: grid;
  
  grid-template-columns: auto 1fr auto auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  background: rgba(236, 231, 221, .035);
  border-radius: var(--radius);
}
.rperson .rpn {
  font-family: var(--cond);
  font-weight: 600;
  font-size: .95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rperson-set { background: rgba(255, 117, 24, .08); }
.rps-set { color: var(--ember); }
.mini-clear {
  border-color: rgba(204, 0, 0, .4);
  background: rgba(204, 0, 0, .1);
  color: var(--error);
}
.mini-clear:hover { background: rgba(204, 0, 0, .2); }
.hidden { visibility: hidden; }

.rperson .rps {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ember);
  font-variant-numeric: tabular-nums;
  min-width: 2.2ch;
  text-align: center;
}

.rps-btn {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.rps-btn .rps { pointer-events: none; }

.rps-btn:disabled { opacity: .4; cursor: default; }

.rperson .mini {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 117, 24, .34);
  background: rgba(255, 117, 24, .08);
  color: var(--pumpkin);
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
}


.chips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}
.chip-score {
  -webkit-appearance: none;
  appearance: none;
  min-height: 52px;
  
  min-width: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(236, 231, 221, .16);
  background: rgba(236, 231, 221, .04);
  color: var(--fog-lit);
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  
  position: relative;
}
.chip-score.on {
  border-color: rgba(255, 117, 24, .7);
  background: rgba(255, 117, 24, .16);
  color: var(--ember);
  box-shadow: 0 0 14px rgba(255, 117, 24, .2);
}

.chip-half-mark {
  position: absolute;
  bottom: 3px;
  right: 5px;
  font-family: var(--host);
  font-size: .6rem;
  color: var(--ember);
}
@media (min-width: 460px) {
  .chips { grid-template-columns: repeat(10, 1fr); }
  .chip-score { min-height: 46px; font-size: 1.05rem; }
}


.queue-row { margin-top: 14px; }
.queue-hint {
  color: var(--fog);
  font-size: .88rem;
  margin: 0 0 6px;
}
.queue-toggle {
  display: flex;
  gap: 8px;
}
.queue-btn {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-height: 44px;
  min-width: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(236, 231, 221, .16);
  background: rgba(236, 231, 221, .04);
  color: var(--fog-lit);
  font-family: var(--cond);
  font-weight: 700;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
}
.queue-btn.on {
  border-color: rgba(255, 117, 24, .7);
  background: rgba(255, 117, 24, .16);
  color: var(--ember);
  box-shadow: 0 0 14px rgba(255, 117, 24, .2);
}


.group-pick-row { margin-top: 14px; }
.group-pick-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.group-pick-btn {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 auto;
  min-width: 96px;
  min-height: 44px;
  border-radius: var(--radius);
  border: 1px solid rgba(236, 231, 221, .16);
  background: rgba(236, 231, 221, .04);
  color: var(--fog-lit);
  font-family: var(--cond);
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
}
.group-pick-btn.on {
  border-color: rgba(255, 117, 24, .7);
  background: rgba(255, 117, 24, .16);
  color: var(--ember);
  box-shadow: 0 0 14px rgba(255, 117, 24, .2);
}


textarea.notes {
  resize: vertical;
  min-height: 62px;
  font-family: var(--body);
  
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 4px;
}


.val-edit {
  -webkit-appearance: none;
  appearance: none;
  border: 1px dashed rgba(255, 117, 24, .5);
  background: rgba(255, 117, 24, .08);
  border-radius: var(--radius);
  padding: 4px 12px;
  cursor: pointer;
  
  min-height: 44px;
  min-width: 44px;
}
.val-edit:hover { background: rgba(255, 117, 24, .16); }
.ballot-mine { background: rgba(255, 117, 24, .06); }
.ballot .who {
  color: inherit;
  text-decoration: none;
}
.ballot .who:hover { color: var(--ember); }


.ballot-note {
  margin: -2px 0 6px 10px;
  padding: 6px 12px;
  border-left: 2px solid rgba(255, 117, 24, .35);
  background: rgba(236, 231, 221, .025);
  color: var(--fog-lit);
  font-size: .92rem;
  line-height: 1.55;
}
.note-who {
  font-family: var(--cond);
  font-weight: 700;
  color: var(--ember);
}


.score.up, .stat .v.up { color: var(--ok, #5fbf7a); }
.score.down, .stat .v.down { color: var(--fog-lit); }


.person-row {
  grid-template-columns: 1fr auto;
  border-left-color: rgba(255, 117, 24, .25);
}
.person-row .meta { white-space: normal; }


.person-view .section-label { margin-top: 26px; }
.person-view .strip { margin-bottom: 6px; }

.todo {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
}
.todo-item {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px dashed rgba(236, 231, 221, .18);
  border-radius: var(--radius);
  color: var(--fog-lit);
  font-family: var(--cond);
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.todo-item:hover {
  border-color: rgba(255, 117, 24, .5);
  color: var(--ember);
}



.badge-section { margin-top: 26px; }
.badge-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 8px;
}

.badge-tile {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  width: 100%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px 10px;
  border: var(--hair);
  border-radius: var(--radius);
  background: rgba(42, 16, 53, .35);
  text-align: center;
  
  min-height: 44px;
}
.badge-tile svg { width: 28px; height: 28px; }
.badge-tile.is-earned {
  border-color: rgba(255, 117, 24, .45);
}
.badge-tile.is-earned svg { color: var(--ember); }
.badge-tile.is-locked {
  opacity: .38;
}
.badge-tile.is-locked svg { color: var(--fog); }
.badge-tile .badge-label {
  font-family: var(--host);
  font-size: .55rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fog-lit);
  line-height: 1.3;
  
  min-height: 1.43rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-tile.is-earned .badge-label { color: var(--fog-lit); }


.badge-new {
  animation: badge-glow 1.8s ease-out 2;
}
@keyframes badge-glow {
  0%   { box-shadow: 0 0 0 rgba(255, 117, 24, 0); }
  40%  { box-shadow: 0 0 16px rgba(255, 117, 24, .55); }
  100% { box-shadow: 0 0 0 rgba(255, 117, 24, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .badge-new { animation: none; box-shadow: 0 0 12px rgba(255, 117, 24, .4); }
}


.badge-info-icon {
  display: flex;
  justify-content: center;
  margin: 4px 0 10px;
}
.badge-info-icon svg { width: 40px; height: 40px; }
.badge-info-icon.is-earned svg { color: var(--ember); }
.badge-info-icon.is-locked svg { color: var(--fog); }
.badge-info-status {
  font-family: var(--cond);
  font-size: .95rem;
  color: var(--fog-lit);
  text-align: center;
  margin: 0;
}



.foot .foot-legal {
  font-family: var(--body);
  font-size: .78rem;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fog);
  margin: 0;
  max-width: 58ch;
}
.foot .foot-legal + .foot-legal { margin-top: 6px; }
.foot .foot-legal a { color: var(--pumpkin); }
.foot-faq {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  background: transparent;
  border: 1px solid rgba(255, 117, 24, .35);
  border-radius: var(--radius);
  color: var(--ember);
  font-family: var(--cond);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px 16px;
  cursor: pointer;
  white-space: nowrap;
  min-height: 46px;
}
.foot-faq:hover {
  background: rgba(255, 117, 24, .1);
  border-color: var(--pumpkin);
}


.faq { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.faq-item { border-bottom: var(--hair); }
.faq-q {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: 0;
  color: var(--bone);
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.02rem;
  text-align: left;
  padding: 13px 2px;
  cursor: pointer;
  min-height: 46px;
}
.faq-q:hover { color: var(--ember); }
.faq-mark {
  font-family: var(--cond);
  font-size: 1.2rem;
  color: var(--pumpkin);
  flex: none;
}
.faq-a {
  margin: 0 0 14px;
  padding: 0 2px;
  color: var(--fog-lit);
  font-size: .94rem;
  line-height: 1.6;
}
.faq-a.closed { display: none; }

.faq-a a { color: var(--pumpkin); }


.welcome-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 16px;
}
.welcome-mark {
  flex: none;
  color: var(--ember);
  filter: drop-shadow(0 2px 0 var(--blood-deep));
}
.welcome-hero p {
  margin: 0;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--bone);
  line-height: 1.35;
}


#toasts {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 14px;
}
.toast {
  max-width: 460px;
  background: linear-gradient(180deg, rgba(42, 16, 53, .97), rgba(18, 16, 19, .97));
  border: 1px solid rgba(255, 117, 24, .55);
  border-radius: var(--radius);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .7), 0 0 20px rgba(255, 117, 24, .12);
  color: var(--ember);
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  padding: 12px 18px;
  text-align: center;
  animation: toast-in .22s ease-out;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; }
}


.btn-danger {
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid rgba(204, 0, 0, .6);
  color: var(--error);
  font-family: var(--cond);
  font-weight: 700;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 12px;
  cursor: pointer;
}
.btn-danger:hover { background: rgba(204, 0, 0, .12); }


.note-by {
  display: block;
  margin-top: 4px;
  font-family: var(--host);
  font-size: .55rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fog);
}


.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  pointer-events: auto;
  
  cursor: pointer;
  min-height: 44px;
}
.toast-sticky { border-color: rgba(255, 117, 24, .8); }


.toast-copy { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.toast-text { flex: 1 1 auto; }
.toast-detail {
  font-weight: 400;
  font-size: .82rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--fog);
}
.toast-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toast-icon svg { width: 26px; height: 26px; }
.toast-act {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 117, 24, .55);
  background: rgba(255, 117, 24, .16);
  color: var(--ember);
  font-family: var(--cond);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
}
.toast-act:hover { background: rgba(255, 117, 24, .28); }


.season-link {
  display: block;
  margin-top: 14px;
  padding: 14px 15px;
  border: 1px dashed rgba(255, 117, 24, .38);
  border-radius: var(--radius);
  text-decoration: none;
  background: rgba(42, 16, 53, .3);
  min-height: 44px;
}
.season-link:hover { border-color: var(--pumpkin); background: rgba(42, 16, 53, .55); }
.season-link-title {
  display: block;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ember);
}
.season-link-note {
  display: block;
  margin-top: 2px;
  font-family: var(--host);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fog);
}


.season-view .section-label { margin-top: 26px; }
.season-view .hint { max-width: 62ch; }

.agree-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.agree {
  background: var(--ink-2);
  border: var(--hair);
  border-left: 2px solid rgba(255, 117, 24, .3);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.agree-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  min-height: 44px;
  align-items: center;
}
.agree-head .name {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--bone);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agree-score {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ember);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.agree-score.up { color: var(--ok); }
.agree-score.down { color: var(--fog-lit); }
.agree-meta {
  margin: 8px 0 0;
  font-family: var(--host);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fog);
  line-height: 1.6;
}


.plot {
  display: block;
  width: 100%;
  height: 34px;
  margin-top: 4px;
  overflow: visible;
}
.plot-tall { height: 62px; }
.plot-axis { stroke: rgba(236, 231, 221, .16); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plot-tick { stroke: rgba(236, 231, 221, .12); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plot-dot { fill: var(--fog-lit); opacity: .8; }

.plot-dot-grouped { opacity: 1; }
.plot-mean { stroke: var(--pumpkin); stroke-width: 2; vector-effect: non-scaling-stroke; }
.plot-move { stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .7; }
.plot-move.up { stroke: var(--ok); }
.plot-move.down { stroke: var(--fog); }
.plot-end.up { fill: var(--ok); }
.plot-end.down { fill: var(--fog-lit); }

.agree-drift { border-left-color: rgba(95, 191, 122, .45); }

.empty-explained {
  text-align: left;
  border: 1px dashed rgba(236, 231, 221, .16);
  border-radius: var(--radius);
  padding: 16px;
}
.empty-explained p { margin: 0 0 8px; }
.empty-explained p:last-child { margin-bottom: 0; }


.note-groups { display: flex; flex-direction: column; gap: 20px; }
.note-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.note-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 12px 14px;
  background: var(--ink-2);
  border: var(--hair);
  border-left: 2px solid rgba(255, 117, 24, .35);
  border-radius: var(--radius);
}
.note-where {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ember);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.note-where:hover { color: var(--pumpkin); }
.note-score {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ember);
  font-variant-numeric: tabular-nums;
  align-self: center;
}
.note-body {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--bone);
  font-size: .96rem;
  line-height: 1.55;
}
.note-card .note-by {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  font-family: var(--host);
  font-size: .56rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fog);
}

.type-label { margin-top: 22px; }

.foot-actions { display: flex; gap: 8px; flex-wrap: wrap; flex: none; }




.rperson-here .rpn { color: var(--bone); }
.rperson:not(.rperson-here) .rpn { color: var(--fog-lit); }


.face { flex: none; border-radius: 50%; display: block; }

.who-chip .face { margin-left: -3px; }
.ballot .who { display: flex; align-items: center; gap: 8px; }
.note-card .note-by { display: flex; align-items: center; gap: 7px; }

.person-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.person-head .detail-title { margin: 0; }

.person { gap: 8px; }

.face-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 0 4px;
}
.face-preview .hint { text-align: center; min-height: 1.2em; }

.face-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-bottom: 4px;
}
.face-pick {
  -webkit-appearance: none;
  appearance: none;
  min-height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(236, 231, 221, .14);
  border-radius: var(--radius);
  background: rgba(236, 231, 221, .03);
  cursor: pointer;
}
.face-pick.on {
  border-color: rgba(255, 117, 24, .7);
  background: rgba(255, 117, 24, .14);
}

.face-colors {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 7px;
}
.color-pick {
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
}
.color-pick.on { border-color: var(--bone); }
@media (min-width: 460px) {
  .face-grid { grid-template-columns: repeat(6, 1fr); }
}


.tk-carnival {
  font-family: 'Rye', var(--display);
  color: #f6d9a8;
}
.tk-cold {
  font-family: 'Orbitron', var(--cond);
  font-weight: 900;
  color: #bfe8fa;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tk-spore {
  font-family: 'Creepster', var(--display);
  color: #8ef29a;
}
.tk-gore {
  font-family: 'Creepster', var(--display);
  color: #ff8080;
}
.tk-feral {
  font-family: 'Metal Mania', var(--display);
  color: #f0c98a;
}
.tk-ember {
  font-family: 'Metal Mania', var(--display);
  color: #ffa552;
}
.tk-crypt {
  font-family: 'Pirata One', var(--display);
  color: #dcc6f0;
}
.tk-rite {
  font-family: 'Pirata One', var(--display);
  color: #ded3bb;
  letter-spacing: .02em;
}
.tk-broadcast {
  font-family: var(--host);
  color: #ffcf7a;
}
.tk-plain {
  font-family: var(--cond);
  font-weight: 700;
  color: var(--bone);
  letter-spacing: .06em;
  text-transform: uppercase;
}


.board-head {
  display: grid;
  grid-template-columns: 22px 1fr auto auto;
  gap: 10px;
  padding: 0 12px 5px;
  font-family: var(--host);
  font-size: .5rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fog);
}
.board-head span:nth-child(1) { grid-column: 3; text-align: right; min-width: 44px; }
.board-head span:nth-child(2) { grid-column: 4; min-width: 56px; text-align: right; }
