:root {
  /* Бренд «Смешные деньги» — палитра с афиши */
  --neon-gold: #d4af37;
  --neon-gold-soft: #e8c547;
  --neon-blue: #1a4bb5;
  --neon-blue-bright: #3b6fd9;
  --neon-red: #b30000;
  --neon-red-bright: #e53e3e;
  --neon-magenta: #bf00bf;
  --neon-magenta-bright: #e040e0;

  --bg: #0a0a0c;
  --surface: #141418;
  --surface-stage: #12121a;
  --surface-raised: #1e1e26;
  --border: #2a2a36;
  --text: #ffffff;
  --text-muted: #a0a0b0;
  --accent-balance: var(--neon-gold-soft);
  --accent-laugh: var(--neon-magenta);
  --accent-laugh-bright: var(--neon-magenta-bright);
  --accent-laugh-dim: #9b00b3;
  --accent-laugh-glow: rgba(191, 0, 191, 0.45);
  --accent-turbo: var(--neon-red-bright);
  --accent-turbo-bright: #ff6b6b;
  --accent-turbo-glow: rgba(179, 0, 0, 0.48);
  --accent-primary: var(--neon-blue-bright);
  --danger: #ff5757;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --topbar-h: 4.5rem;
  --nav-h: 3.25rem;
  --footer-h: 5.5rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body.page:not(.viewer-page) {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  margin: 0 auto;
  max-width: 42rem;
  padding: 1rem;
  line-height: 1.45;
  color: #1a1a1a;
}

body.page:not(.viewer-page) .card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  background: #fafafa;
}

body.page:not(.viewer-page) .btn {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  color: #1a1a1a;
  cursor: pointer;
  font-size: 0.95rem;
}

body.page:not(.viewer-page) .btn.primary {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

body.page:not(.viewer-page) .muted {
  color: #555;
}

body.page.viewer-page {
  font-family: var(--font);
  margin: 0 auto;
  max-width: 28rem;
  min-height: 100dvh;
  padding: 0;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
}

/* Угловые неоновые засветы как на афише */
body.page.viewer-page::before {
  content: "";
  position: fixed;
  inset: 0;
  left: 50%;
  width: min(100%, 28rem);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 95% 60% at 0% 0%, rgba(212, 175, 55, 0.2), transparent 58%),
    radial-gradient(ellipse 90% 55% at 100% 0%, rgba(26, 75, 181, 0.24), transparent 58%),
    radial-gradient(ellipse 90% 58% at 0% 100%, rgba(179, 0, 0, 0.2), transparent 58%),
    radial-gradient(ellipse 95% 62% at 100% 100%, rgba(191, 0, 191, 0.22), transparent 58%);
}

.viewer-topbar,
.welcome-screen,
.viewer-app,
.vote-footer,
.sheet {
  position: relative;
  z-index: 1;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.85rem;
}

.error {
  color: var(--danger);
}

/* ——— Top bar ——— */

.viewer-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.35rem 0.75rem;
  align-items: start;
  padding: calc(0.75rem + env(safe-area-inset-top, 0px)) 1rem 0.75rem;
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.viewer-topbar-kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--neon-gold-soft), var(--neon-blue-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.viewer-topbar-title {
  margin: 0.1rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}

.viewer-topbar-meta {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}

.viewer-topbar-hint {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.viewer-banner {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

.viewer-banner.error {
  background: rgba(255, 87, 87, 0.12);
  border: 1px solid rgba(255, 87, 87, 0.35);
}

.balance-chip {
  grid-row: 1 / span 2;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  min-width: 6.5rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius);
  background: rgba(20, 20, 24, 0.9);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.12);
  transition: border-color 0.15s, background 0.15s, transform 0.1s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.balance-chip:active {
  transform: scale(0.98);
}

.balance-chip:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.balance-chip-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.balance-chip-amount {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent-balance);
  line-height: 1.1;
}

.balance-chip-action {
  position: absolute;
  opacity: 0;
}

.balance-chip {
  position: relative;
  padding-right: 1.75rem;
}

.balance-chip::after {
  content: "+";
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--accent-primary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}

/* ——— Welcome ——— */

.welcome-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 1.25rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

.welcome-inner {
  width: 100%;
}

.welcome-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--neon-gold-soft), var(--neon-magenta-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.welcome-event-title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.welcome-title {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.welcome-lead {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.welcome-steps {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.welcome-steps li {
  margin-bottom: 0.5rem;
}

.welcome-steps li::marker {
  color: var(--accent-laugh-dim);
}

.event-poster {
  width: 100%;
  max-height: 12rem;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

/* ——— App shell ——— */

.viewer-app {
  padding-bottom: calc(var(--footer-h) + env(safe-area-inset-bottom, 0px));
}

.viewer-nav {
  display: flex;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 12, 0.65);
  backdrop-filter: blur(8px);
}

.viewer-tab {
  position: relative;
  flex: 1;
  min-height: 2.75rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}

.viewer-tab.active {
  background: rgba(26, 75, 181, 0.22);
  color: var(--text);
  border-color: rgba(59, 111, 217, 0.55);
  font-weight: 600;
  box-shadow:
    0 0 16px rgba(26, 75, 181, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.viewer-tab.active::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 4px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-blue-bright));
  box-shadow: 0 0 8px rgba(59, 111, 217, 0.7);
}

.viewer-main {
  padding: 0.85rem 1rem 1rem;
}

.panel-head {
  margin-bottom: 0.85rem;
}

.card-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-blue-bright);
}

.panel-head h2,
.stage-card h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* ——— Cards ——— */

.viewer-page .card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.05rem;
  background: var(--surface);
}

.viewer-page .stage-card {
  position: relative;
  background: rgba(12, 12, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.viewer-page .stage-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(212, 175, 55, 0.45) 0%,
    rgba(26, 75, 181, 0.35) 30%,
    rgba(179, 0, 0, 0.3) 70%,
    rgba(191, 0, 191, 0.45) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.viewer-page .stage-card > * {
  position: relative;
  z-index: 1;
}

.stage-card-head {
  margin-bottom: 0.85rem;
}

.round-meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stage-info {
  font-size: 0.95rem;
}

.stage-info p {
  margin: 0 0 0.45rem;
}

.format-rules {
  padding: 0.85rem;
  border: 1px solid rgba(59, 111, 217, 0.35);
  border-radius: var(--radius);
  background: rgba(26, 75, 181, 0.12);
}

.format-rules > p:nth-child(2) {
  margin-bottom: 0;
  white-space: pre-line;
}

.format-rules-link {
  display: inline-block;
  margin-top: 0.4rem;
  color: #8fb0ff;
  font-size: 0.8rem;
  text-decoration: none;
}

.format-rules-label,
.format-cast-label {
  margin: 0 0 0.45rem !important;
  color: var(--neon-blue-bright);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.format-cast-label {
  margin-top: 1rem !important;
}

.format-actors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.format-actor {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-raised);
}

.format-actor img,
.format-actor > span {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(191, 0, 191, 0.18);
}

.format-actor > span {
  display: grid;
  place-items: center;
  color: var(--neon-magenta-bright);
  font-weight: 700;
}

.format-actor strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.83rem;
}

.battle-team {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--surface-raised);
}

.battle-team:last-child {
  margin-bottom: 0;
}

.battle-team img,
.team-catalog-card img {
  max-width: 100%;
  border-radius: var(--radius);
  margin-top: 0.5rem;
}

/* ——— Teams catalog ——— */

.team-catalog-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  margin-bottom: 0.65rem;
  background: rgba(18, 18, 24, 0.85);
  border-left: 3px solid var(--neon-blue-bright);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.team-catalog-card:nth-child(2n) {
  border-left-color: var(--neon-magenta-bright);
}

.team-catalog-card:nth-child(3n) {
  border-left-color: var(--neon-red-bright);
}

.team-catalog-card:nth-child(4n) {
  border-left-color: var(--neon-gold-soft);
}

.team-catalog-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.team-catalog-photo {
  width: 100%;
  max-height: 11rem;
  object-fit: cover;
  margin: 0 0 0.8rem !important;
}

.team-performers {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.team-performers-title {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.performer-profile {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(30, 30, 38, 0.72);
}

.performer-profile-photo {
  width: 4.5rem;
  height: 5.5rem;
  margin: 0 !important;
  border-radius: 0.7rem !important;
  object-fit: cover;
}

.performer-photo-empty {
  display: grid;
  place-items: center;
  color: var(--neon-gold-soft);
  background: linear-gradient(145deg, #262632, #16161e);
  font-size: 1.5rem;
  font-weight: 700;
}

.performer-profile-body { min-width: 0; }
.performer-profile-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.performer-profile h4 { margin: 0; font-size: 0.95rem; }
.performer-role { margin: 0.18rem 0 0; color: var(--neon-gold-soft); font-size: 0.72rem; }
.performer-bio, .performer-interests { margin: 0.45rem 0 0; color: var(--text-muted); font-size: 0.78rem; }
.performer-interests strong { color: #d5d5df; }
.performer-socials { display: flex; flex-wrap: wrap; gap: 0.35rem 0.65rem; margin-top: 0.55rem; }
.performer-socials a { color: #8eacff; font-size: 0.75rem; text-decoration: none; }
.performer-socials a:focus-visible, .performer-socials a:hover { color: #b9caff; text-decoration: underline; }
.viewer-page .performer-donate-btn { min-height: 2rem; padding: 0.3rem 0.55rem; border-color: rgba(232, 197, 71, .5); color: var(--neon-gold-soft); background: rgba(212, 175, 55, .08); font-size: 0.72rem; }

.teams-catalog .muted {
  padding: 0.5rem 0;
}

/* ——— History ——— */

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.history-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.history-list li:first-child {
  padding-top: 0;
}

/* ——— Buttons ——— */

.viewer-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.viewer-page .btn:active:not(:disabled) {
  transform: scale(0.98);
}

.viewer-page .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.viewer-page .btn.large {
  width: 100%;
  min-height: 3.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
}

.viewer-page .btn-laugh {
  background: linear-gradient(
    135deg,
    #7a0099 0%,
    var(--neon-magenta) 45%,
    var(--neon-magenta-bright) 100%
  );
  color: #fff;
  border-color: var(--neon-magenta-bright);
  box-shadow:
    0 0 24px var(--accent-laugh-glow),
    0 4px 14px rgba(0, 0, 0, 0.28);
  text-shadow: 0 1px 2px rgba(80, 0, 100, 0.4);
}

.viewer-page .btn-laugh:active:not(:disabled) {
  box-shadow:
    0 0 14px var(--accent-laugh-glow),
    0 2px 8px rgba(0, 0, 0, 0.22);
}

.viewer-page .btn-primary {
  background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-blue-bright) 100%);
  color: #fff;
  border-color: var(--neon-blue-bright);
  box-shadow: 0 0 16px rgba(26, 75, 181, 0.35);
}

.viewer-page .btn-turbo {
  background: linear-gradient(
    135deg,
    var(--neon-red) 0%,
    var(--neon-red-bright) 42%,
    var(--accent-turbo-bright) 100%
  );
  color: #fff;
  border-color: var(--accent-turbo-bright);
  box-shadow:
    0 0 22px var(--accent-turbo-glow),
    0 4px 14px rgba(0, 0, 0, 0.28);
  text-shadow: 0 1px 2px rgba(100, 0, 0, 0.35);
  gap: 0.5rem;
}

.viewer-page .btn-turbo:active:not(:disabled) {
  box-shadow:
    0 0 14px var(--accent-turbo-glow),
    0 2px 8px rgba(0, 0, 0, 0.22);
}

.turbo-glyphs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-right: 0.15rem;
  flex-shrink: 0;
}

.turbo-glyphs span {
  display: block;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
  opacity: 0.92;
}

.turbo-glyphs span:nth-child(2) {
  opacity: 0.78;
  transform: scale(0.92);
}

.turbo-glyphs span:nth-child(3) {
  opacity: 0.64;
  transform: scale(0.84);
}

.viewer-page .btn-ghost {
  width: 100%;
  margin-top: 0.5rem;
  background: transparent;
  color: var(--text-muted);
}

.viewer-page .btn-muted {
  background: var(--surface-raised);
  color: var(--text-muted);
}

.viewer-page .btn-not-funny {
  background: #4a4a58;
  color: #c8c8d4;
  border-color: #5c5c6a;
  font-weight: 500;
  box-shadow: none;
}

.form-msg {
  margin: 0.65rem 0 0;
  min-height: 1.2em;
}

.form-msg.error,
#terms-msg.error,
#deposit-msg.error,
#vote-msg.error {
  color: var(--danger);
}

/* ——— Coauthor reward ——— */

.coauthor-offer {
  margin-bottom: 14px;
  border-color: rgba(255, 204, 0, 0.55);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 204, 0, 0.16), transparent 42%),
    var(--surface);
  box-shadow: inset 0 0 0 1px rgba(255, 204, 0, 0.08);
}

.coauthor-offer h2 {
  margin: 0 0 8px;
}

.coauthor-offer-copy {
  margin: 0 0 16px;
  color: var(--text);
  line-height: 1.5;
}

.coauthor-name-form {
  display: grid;
  gap: 9px;
}

.coauthor-name-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.coauthor-name-form .muted {
  margin: 0;
}

.coauthor-format-preview {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 204, 0, 0.55);
  border-radius: 12px;
  line-height: 1.5;
}

.coauthor-format-preview p { margin: 0; }
.coauthor-name-form select { width: 100%; min-width: 0; }
.coauthor-offer button { white-space: normal; }

@media (max-width: 520px) {
  .coauthor-name-row {
    grid-template-columns: 1fr;
  }
}

/* ——— Vote footer ——— */

.vote-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  max-width: 28rem;
  margin: 0 auto;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 10, 12, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}

.vote-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--neon-gold-soft),
    var(--neon-blue-bright),
    var(--neon-red-bright),
    var(--neon-magenta-bright)
  );
  box-shadow: 0 0 12px rgba(191, 0, 191, 0.35);
}

.vote-footer-msg {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  text-align: center;
  color: var(--text-muted);
  min-height: 1em;
}

.vote-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.vote-btn {
  width: 100%;
  min-height: 3.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
}

.vote-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.vote-row-label {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.vote-waiting {
  margin: 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
}

/* ——— Deposit sheet ——— */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.sheet-panel {
  position: relative;
  width: 100%;
  max-width: 28rem;
  max-height: 88dvh;
  overflow-y: auto;
  padding: 0.5rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: rgba(14, 14, 20, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  box-shadow: var(--shadow);
  animation: sheet-up 0.28s ease-out;
}

.sheet-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(
    90deg,
    var(--neon-gold-soft),
    var(--neon-blue-bright),
    var(--neon-magenta-bright)
  );
}

@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.sheet-handle {
  width: 2.5rem;
  height: 0.25rem;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  background: var(--border);
}

.sheet-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.deposit-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1rem 0 0.85rem;
}

.donation-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1rem 0 0.85rem;
}

.donation-preset-featured {
  border-color: var(--neon-magenta-bright);
  color: #ff85ff;
  box-shadow: 0 0 14px rgba(191, 0, 191, 0.22);
}

.donation-sheet-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.donation-performer-photo {
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 50%;
  object-fit: cover;
}

.donation-sheet-header p { margin: 0.2rem 0 0; }

.preset-btn {
  min-height: 3.25rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.preset-btn:active {
  transform: scale(0.98);
}

.preset-btn:disabled {
  opacity: 0.45;
  cursor: wait;
}

.deposit-btn-featured {
  border-color: var(--neon-gold-soft);
  color: var(--neon-gold-soft);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

.deposit-custom {
  margin-bottom: 0.5rem;
}

.field-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.field-input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1rem;
}

.field-input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.deposit-custom-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.deposit-custom-row .btn {
  min-height: 2.75rem;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .performer-profile { grid-template-columns: 3.75rem minmax(0, 1fr); }
  .performer-profile-photo { width: 3.75rem; height: 4.75rem; }
  .performer-profile-heading { flex-direction: column; }
}

/* ——— Legacy helpers (admin / misc) ——— */

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

label {
  display: block;
  margin-bottom: 0.65rem;
}

input,
textarea {
  width: 100%;
  max-width: 24rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.list {
  padding-left: 1.2rem;
}

.list.tight li {
  margin-bottom: 0.25rem;
}

.pre-out {
  background: #111;
  color: #e5e5e5;
  padding: 0.75rem;
  border-radius: 8px;
  overflow: auto;
  font-size: 0.8rem;
  max-height: 18rem;
}
