/* ── Fifty-fifty · Torn Receipt Brutalism ───────────────────── */

:root {
  --ink: #0c0c0b;
  --ink-soft: #1a1a18;
  --paper: #f2f0e8;
  --acid: #d4ff00;
  --acid-dim: #a8c800;
  --hot: #ff3d2e;
  --mint: #00e5a0;
  --muted: #8a8880;
  --font-display: 'Tourney', sans-serif;
  --font-body: 'Karla', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--paper);
  background: var(--ink);
  overflow-x: hidden;
  cursor: crosshair;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
ol { list-style: none; }

/* ── Grain overlay ─────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 255, 0, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

body:hover .cursor-glow { opacity: 1; }

/* ── Header ────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  border-bottom: 2px solid rgba(242, 240, 232, 0.08);
  background: rgba(12, 12, 11, 0.75);
  backdrop-filter: blur(16px);
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-dot {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 2px rgba(138, 136, 128, 0.25);
  transition: background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.status-dot--unknown {
  background: var(--muted);
  box-shadow: 0 0 0 2px rgba(138, 136, 128, 0.25);
}

.status-dot--up {
  background: var(--mint);
  box-shadow: 0 0 0 2px rgba(0, 229, 160, 0.3);
}

.status-dot--down {
  background: var(--hot);
  box-shadow: 0 0 0 2px rgba(255, 61, 46, 0.3);
}

.mark {
  display: flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.mark--sm { font-size: 1.15rem; }

.mark__half--a { color: var(--paper); }
.mark__slash { color: var(--acid); margin: 0 0.1em; font-style: italic; }
.mark__half--b { color: var(--acid); }

.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__link {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.2s;
}

.nav__link:hover { color: var(--acid); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--paper);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.burger[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.25s var(--ease-out), background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn--sm { padding: 0.55rem 1.2rem; font-size: 0.7rem; }
.btn--xl { padding: 1rem 1.75rem; font-size: 0.8rem; }

.btn--acid {
  background: var(--acid);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--paper);
}

.btn--acid:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--paper);
}

.btn--acid:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--wire {
  padding: 1rem 1.5rem;
  font-size: 0.8rem;
  color: var(--paper);
  border: 2px solid rgba(242, 240, 232, 0.25);
}

.btn--wire:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.btn--wire:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--wire:disabled:hover {
  border-color: rgba(242, 240, 232, 0.25);
  color: var(--paper);
}

.btn__arrow {
  font-size: 1.1rem;
  transition: transform 0.25s var(--ease-out);
}

.btn:hover:not(:disabled) .btn__arrow { transform: translateX(4px); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: var(--header-h);
}

.hero__split {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
}

.hero__split--dark {
  background: var(--ink);
  z-index: 2;
}

.hero__split--acid {
  background: var(--acid);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  padding-bottom: clamp(8.5rem, 18vh, 12rem);
  z-index: 1;
}

.hero__diagonal {
  position: absolute;
  top: var(--header-h);
  left: 50%;
  bottom: 0;
  width: 6vw;
  min-width: 40px;
  max-width: 100px;
  background: var(--ink);
  transform: skewX(-6deg) translateX(-50%);
  z-index: 3;
  pointer-events: none;
}

.hero__tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--acid);
  margin-bottom: 1.5rem;
}

.hero__title {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

.hero__word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero__word--ghost {
  color: transparent;
  -webkit-text-stroke: 2px var(--paper);
  margin-left: clamp(1rem, 8vw, 5rem);
  margin-top: -0.15em;
}

.hero__pitch {
  max-width: 26rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  list-style: none;
  max-width: 28rem;
  margin-bottom: 2rem;
}

.hero__highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.7rem;
  border: 1px dashed rgba(212, 255, 0, 0.42);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--acid);
  line-height: 1.3;
}

.hero__highlight-mark {
  font-size: 0.85rem;
  letter-spacing: 0;
  color: var(--acid);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero__stat {
  position: absolute;
  bottom: clamp(1.5rem, 4vw, 3rem);
  right: clamp(1.5rem, 5vw, 4rem);
  z-index: 2;
  text-align: right;
}

.hero__stat-n {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero__stat-l {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

/* ── Hero settlement preview ───────────────────────────────── */
.hero__settlement {
  position: relative;
  z-index: 1;
  width: min(100%, 23.25rem);
  margin-right: clamp(1.5rem, 5vw, 4.5rem);
  margin-bottom: 0.75rem;
}

.hero__settlement-frame {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: rotate(-2.4deg);
  transform-origin: 55% 45%;
  animation: hero-settlement-float 5.5s ease-in-out infinite;
}

@keyframes hero-settlement-float {
  0%, 100% { transform: rotate(-2.4deg) translateY(0); }
  50% { transform: rotate(-1.4deg) translateY(-7px); }
}

.hero__settlement .roster__panel {
  margin-top: 0;
  border-color: rgba(12, 12, 11, 0.38);
  box-shadow: 6px 6px 0 rgba(12, 12, 11, 0.32);
}

.hero__settlement .roster__panel + .roster__panel {
  margin-top: 0;
}

.hero__settlement .roster__panel-head {
  padding: 0.55rem 0.8rem 0.5rem;
  gap: 0.3rem 0.65rem;
}

.hero__settlement .roster__panel-title {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.hero__settlement .roster__status {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.hero__settlement .roster__list {
  min-height: 0;
}

.hero__settlement .roster__list:empty::after {
  content: none;
  height: 0;
}

.hero__settlement .roster__item {
  padding: 0.42rem 0.8rem;
  font-size: 0.82rem;
  gap: 0.5rem;
}

.hero__settlement .roster__item-title {
  font-size: 0.82rem;
}

.hero__settlement .roster__item--breakdown .roster__item-amount {
  font-size: 0.74rem;
}

.hero__settlement .roster__item--breakdown .roster__item-meta {
  font-size: 0.64rem;
}

.hero__settlement .roster__item-body {
  gap: 0.12rem;
}

.hero__settlement .roster__panel > .roster__lead {
  padding: 0.45rem 0.8rem 0.55rem;
  font-size: 0.72rem;
}

/* ── Reveal animations ─────────────────────────────────────── */
.hero__reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: reveal-up 0.9s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes reveal-up {
  to { opacity: 1; transform: translateY(0); }
}

.section-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.section-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Marquee ───────────────────────────────────────────────── */
.marquee {
  border-block: 3px solid var(--acid);
  background: var(--ink-soft);
  padding: 0.85rem 0;
  overflow: hidden;
}

.marquee__track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee 22s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--paper);
}

.marquee__dot { color: var(--acid); }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ── Flow section ──────────────────────────────────────────── */
.flow {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
  max-width: 1100px;
  margin-inline: auto;
}

.section-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--acid);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.section-title--light { color: var(--paper); }

.flow__header { margin-bottom: 4rem; }

.flow__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(242, 240, 232, 0.1);
  transition: padding-left 0.4s var(--ease-out);
}

.step:last-child { border-bottom: 1px solid rgba(242, 240, 232, 0.1); }

.step:hover { padding-left: 1.5rem; }

.step__idx {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 255, 0, 0.35);
}

.step__body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--acid);
}

.step__body p {
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ── Arsenal ───────────────────────────────────────────────── */
.arsenal {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
}

.arsenal__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  gap: 1.25rem;
  max-width: 1100px;
  margin-inline: auto;
}

.arsenal__intro {
  grid-column: 1 / -1;
  margin-bottom: 2rem;
}

.arsenal__intro .section-kicker { color: var(--ink); opacity: 0.5; }

.card {
  padding: 2rem;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  transition: transform 0.35s var(--ease-out), border-color 0.2s, box-shadow 0.35s;
}

.card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  border-color: var(--acid);
  box-shadow: 8px 8px 0 var(--acid);
}

.card--wide { grid-column: span 2; }

.card--tall {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card__glyph {
  display: block;
  font-size: 1.5rem;
  color: var(--acid);
  margin-bottom: 1.25rem;
}

.card__glyph--big {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  margin-bottom: auto;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Manifesto ─────────────────────────────────────────────── */
.manifesto {
  padding: clamp(4rem, 12vw, 9rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}

.manifesto__quote p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.manifesto__quote footer {
  font-size: 0.9rem;
  color: var(--muted);
}

.manifesto__quote strong { color: var(--acid); }

/* ── Finale ────────────────────────────────────────────────── */
.finale {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
}

.finale__inner {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 2rem;
  border: 3px solid var(--acid);
  background:
    linear-gradient(135deg, rgba(212, 255, 0, 0.06) 0%, transparent 50%),
    var(--ink-soft);
}

.finale__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 7rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--acid);
  margin-bottom: 1rem;
}

.finale__sub {
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 28rem;
  margin-inline: auto;
}

/* ── Roster (participants) ─────────────────────────────────── */
.roster {
  min-height: 100vh;
  padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4rem)) clamp(1.5rem, 5vw, 4rem) 4rem;
  background:
    linear-gradient(160deg, rgba(212, 255, 0, 0.04) 0%, transparent 42%),
    var(--ink);
}

.roster__inner {
  max-width: 36rem;
  margin-inline: auto;
}

.roster__header {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

/* Event hub title shows the user-provided description (up to 200 chars): keep it smaller. */
#eventTitle {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.05;
}

.roster__lead {
  margin-top: 1rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.1rem);
}

.roster__lead--pot {
  margin-top: 0.5rem;
  color: var(--acid);
  font-weight: 600;
}

.roster__panel > .roster__lead {
  margin-top: 0;
  max-width: none;
  padding: 1rem 1.5rem 1.25rem;
}

.roster__copy {
  padding: 1.25rem 1.5rem 0.5rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.1rem);
}

.roster__copy p + p {
  margin-top: 0.9rem;
}

.roster__panel {
  border: 2px solid rgba(242, 240, 232, 0.12);
  background: var(--ink-soft);
  box-shadow: 8px 8px 0 rgba(212, 255, 0, 0.2);
}

.roster__panel--stub {
  border-style: dashed;
  border-color: rgba(212, 255, 0, 0.45);
  box-shadow: 8px 8px 0 rgba(212, 255, 0, 0.32);
}

.roster__panel > .participant-form__actions {
  justify-content: flex-start;
  padding: 0 1.5rem 1.5rem;
}

.roster__panel > .roster__status {
  padding: 0 1.5rem 1.25rem;
}

.roster__item-label {
  font-weight: 600;
  color: var(--paper);
}

.roster__panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px dashed rgba(242, 240, 232, 0.15);
}

.roster__panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--acid);
}

.roster__status {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.roster__status--error {
  color: var(--hot);
}

.roster__status--success {
  color: var(--mint);
}

.roster__status-link {
  color: var(--acid);
  margin-left: 0.75rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.roster__list {
  list-style: none;
  min-height: 4.5rem;
}

.roster__list:empty::after {
  content: '';
  display: block;
  height: 4.5rem;
}

.roster__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid rgba(242, 240, 232, 0.08);
  font-size: 1.15rem;
}

.roster__item .btn--sm {
  flex-shrink: 0;
}

.roster__item:last-child {
  border-bottom: none;
}

.roster__item-name {
  font-weight: 600;
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: rgba(212, 255, 0, 0.35);
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease-out), text-decoration-color 0.2s var(--ease-out);
}

.roster__item-name:hover {
  color: var(--acid);
  text-decoration-color: var(--acid);
}

.roster__item-id {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.roster__panel + .roster__panel {
  margin-top: 1.5rem;
}

.roster__header .participant-form {
  padding: 0;
  margin-top: 1.25rem;
  max-width: 28rem;
}

.roster__header .participant-form__actions {
  justify-content: flex-start;
  margin-top: 1.25rem;
}

.roster__header .participant-form .participant-form__actions {
  margin-top: 0.5rem;
}

.participant-form__actions[hidden] {
  display: none;
}

.roster__item--movement {
  position: relative;
  align-items: flex-start;
}

.roster__item-body {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.roster__item-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
}

.roster__item-title {
  font-weight: 600;
  color: var(--paper);
}

.roster__notes {
  position: relative;
  flex-shrink: 0;
}

.roster__notes-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.12rem;
  border: 1.5px solid rgba(212, 255, 0, 0.55);
  background: transparent;
  color: var(--acid);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 2px 2px 0 rgba(212, 255, 0, 0.28);
  cursor: pointer;
}

.roster__notes-cue:hover,
.roster__notes-cue:focus-visible {
  background: var(--acid);
  color: var(--ink);
  outline: none;
}

.roster__notes-tooltip {
  position: absolute;
  z-index: 5;
  top: calc(100% + 0.45rem);
  left: 0;
  width: max-content;
  max-width: min(18rem, calc(100vw - 3rem));
  max-height: min(12rem, 50vh);
  overflow-y: auto;
  padding: 0.65rem 0.8rem;
  border: 2px solid var(--paper);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 6px 6px 0 rgba(212, 255, 0, 0.35);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s var(--ease-out), visibility 0.15s;
}

.roster__item--movement:hover,
.roster__item--movement:focus-within {
  z-index: 3;
}

.roster__item--movement:hover .roster__notes-tooltip,
.roster__item--movement:focus-within .roster__notes-tooltip,
.roster__notes.is-open .roster__notes-tooltip {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.roster__notes--above .roster__notes-tooltip {
  top: auto;
  bottom: calc(100% + 0.45rem);
}

.roster__notes--end .roster__notes-tooltip {
  left: auto;
  right: 0;
}

.roster__item-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.roster__item-source {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--acid);
}

.roster__item-amount {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.roster__item--breakdown .roster__item-amount {
  color: var(--acid);
}

.roster__item--breakdown .roster__item-meta {
  line-height: 1.35;
}

/* ── Participant edit form ─────────────────────────────────── */
.participant-form {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
}

.participant-form[hidden] {
  display: none !important;
}

.participant-form__field {
  display: grid;
  gap: 0.5rem;
}

.participant-form__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.participant-form__input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid rgba(242, 240, 232, 0.18);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 1.1rem;
  color-scheme: dark;
}

.participant-form__input:focus {
  outline: none;
  border-color: var(--acid);
}

.participant-form__select,
.participant-form__textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid rgba(242, 240, 232, 0.18);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 1.1rem;
  color-scheme: dark;
}

.participant-form__select:focus,
.participant-form__textarea:focus {
  outline: none;
  border-color: var(--acid);
}

.participant-form__textarea {
  min-height: 6rem;
  resize: vertical;
}

.participant-form__row {
  display: grid;
  gap: 1.25rem;
}

.participant-form__row[hidden] {
  display: none !important;
}

@media (min-width: 40rem) {
  .participant-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.participant-form__input--readonly {
  color: var(--muted);
  cursor: default;
}

.participant-form__derived {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 2px solid rgba(242, 240, 232, 0.12);
  color: var(--muted);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.participant-form__fieldset {
  margin: 0;
  padding: 0;
  border: none;
  display: grid;
  gap: 0.5rem;
}

.participant-form__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.participant-form__radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  cursor: pointer;
}

.participant-form__radio:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}

.participant-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.participant-form > .roster__status {
  text-align: right;
}

.participant-form__checklist {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.participant-form__check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(242, 240, 232, 0.12);
}

.participant-form__check:last-child {
  border-bottom: none;
}

.participant-form__checkbox {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--acid);
  flex-shrink: 0;
}

.participant-form__check-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  font-size: 1.05rem;
}

.participant-form__check-id {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.participant-form__name-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.participant-form__name-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.participant-form__name-row .participant-form__input {
  flex: 1;
}

.participant-form__name-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.participant-form__required {
  color: var(--acid);
  font-size: 1.05rem;
  line-height: 1;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(242, 240, 232, 0.08);
  font-size: 0.8rem;
  color: var(--muted);
}

.footer__link {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer__link:hover {
  color: var(--acid);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__split--dark { padding-bottom: 3rem; }
  .hero__split--acid { padding: 3rem 1.5rem 2.5rem; min-height: auto; }

  .hero__diagonal { display: none; }

  .hero__word--ghost { margin-left: 2rem; }

  .hero__stat {
    position: static;
    margin-top: 1.75rem;
    text-align: left;
    z-index: auto;
  }

  .hero__settlement {
    width: min(100%, 26rem);
    margin-right: 0;
    margin-bottom: 0;
  }

  .hero__settlement-frame {
    transform: rotate(-1.2deg);
  }

  .hero__highlights {
    max-width: none;
    gap: 0.55rem 0.7rem;
  }

  .arsenal__grid {
    grid-template-columns: 1fr;
  }

  .card--wide,
  .card--tall {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .burger { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem;
    background: var(--ink);
    border-bottom: 2px solid var(--acid);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.3s;
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(242, 240, 232, 0.08);
  }

  .nav .btn { margin-top: 1rem; justify-content: center; }

  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }

  .hero__settlement-frame {
    transform: none;
    animation: none;
  }

  .hero__highlights {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
  }

  .hero__highlight {
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    padding: 0.5rem 0.75rem;
  }

  .cursor-glow { display: none; }
  body { cursor: auto; }
}

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

  .hero__reveal {
    opacity: 1;
    transform: none;
  }

  .hero__settlement-frame {
    animation: none;
    transform: none;
  }

  .marquee__track { animation: none; }
}
