/* =========================================================
   Personas das Lendas — interface
   ========================================================= */
:root {
  --bg: #060a14;
  --bg-2: #081022;
  --panel: #0c1528;
  --panel-2: #101b33;
  --raise: #15223f;
  --field: #070e1e;
  --line: rgba(140, 170, 220, .12);
  --line-2: rgba(140, 170, 220, .22);
  --line-3: rgba(140, 170, 220, .34);

  --gold: #e3b765;
  --gold-hi: #fbe6b0;
  --gold-lo: #9c7535;
  --gold-glow: rgba(227, 183, 101, .32);
  --blue: #3cc8ff;
  --blue-hi: #a6e6ff;
  --blue-lo: #1b7fb8;
  --blue-glow: rgba(60, 200, 255, .3);
  --side-blue: #3aa8ff;
  --side-red: #ff5468;

  --ok: #3ddc97;
  --warn: #f5b44a;
  --bad: #ff6b6b;

  --text: #eef2fa;
  --text-2: #b7c2d6;
  --muted: #7d8aa3;
  --faint: #4d5a73;

  --r-stage: 22px;
  --r-card: 16px;
  --r-ctl: 12px;
  --r-chip: 8px;

  --font-display: 'Oxanium', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Barlow', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --shadow-stage: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 40px 80px -40px rgba(0, 0, 0, .9), 0 12px 30px -18px rgba(0, 0, 0, .7);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 18px 40px -22px rgba(0, 0, 0, .9);
  --rail-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); letter-spacing: .01em; }
p { margin: 0; }
em { font-style: normal; color: var(--muted); font-weight: 500; font-family: var(--font-body); font-size: .85em; }
.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; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--gold); color: #1a1206; font-weight: 700; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; }
.ico .fl { fill: currentColor; fill-opacity: .22; }
.ico .dot { fill: currentColor; stroke: none; }

/* Fundo: iluminação azul suave, brilho dourado e trama hexagonal discreta */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 12% -8%, rgba(60, 200, 255, .16), transparent 70%),
    radial-gradient(50vw 40vh at 92% 2%, rgba(227, 183, 101, .10), transparent 70%),
    radial-gradient(70vw 60vh at 50% 110%, rgba(27, 80, 160, .18), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16.2v32.4L28 64.8 0 48.6V16.2zM28 64.8V97' fill='none' stroke='%238cb4ff' stroke-opacity='.045' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #070c19, var(--bg) 40%);
}

/* =========================================================
   Cabeçalho
   ========================================================= */
.masthead { position: relative; }
.masthead::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 183, 101, .5) 30%, rgba(60, 200, 255, .5) 70%, transparent);
}
.masthead-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 20px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}
.masthead { overflow: hidden; }
.brand-h1 { margin: 0; font-size: inherit; }
.brand { display: flex; align-items: center; gap: 22px; text-decoration: none; }
.logo-wrap { position: relative; display: block; width: 184px; aspect-ratio: 560 / 582; flex: none; animation: logo-float 7s ease-in-out infinite; }
.logo { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .65)) drop-shadow(0 0 18px rgba(60, 200, 255, .22)); }
.logo-aura {
  position: absolute; inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, rgba(60, 200, 255, .42), rgba(60, 200, 255, .1) 38%, transparent 66%);
  filter: blur(6px);
  animation: aura 4.5s ease-in-out infinite;
}
/* Reflexo que passa pela logo (recortado no formato da própria imagem) */
.logo-shine {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 248, 225, .55) 48%, rgba(255, 255, 255, .15) 52%, transparent 60%);
  background-size: 300% 100%;
  background-position: 120% 0;
  -webkit-mask: url('assets/logo.webp') center / contain no-repeat;
  mask: url('assets/logo.webp') center / contain no-repeat;
  mix-blend-mode: screen;
  animation: shine 7s ease-in-out infinite 1.2s;
}
.wordmark { display: flex; flex-direction: column; gap: 6px; max-width: 34ch; }
.wm-sub { color: var(--text-2); font-size: 1rem; font-weight: 500; line-height: 1.4; font-family: var(--font-body); }
.wm-sub::before { content: ''; display: block; width: 36px; height: 2px; margin-bottom: 10px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--blue)); box-shadow: 0 0 10px var(--blue-glow); }

/* Partículas do cabeçalho */
.embers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.embers i {
  position: absolute; bottom: -10px;
  border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 8px 1px rgba(227, 183, 101, .8);
  opacity: 0;
  animation-name: ember;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.embers i.blue { background: var(--blue-hi); box-shadow: 0 0 8px 1px rgba(60, 200, 255, .8); }
.masthead-inner { position: relative; z-index: 1; }

.hud {
  display: flex;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: linear-gradient(180deg, #15223f, #0c1528);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.hud-item { padding: 10px 16px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hud-item + .hud-item { border-left: 1px solid var(--line); }
.hud-item span { font-size: .78rem; color: var(--muted); }
.hud-item strong { font-family: var(--font-display); font-weight: 600; font-size: .98rem; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.led { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.hud-status.is-ok strong { color: var(--ok); }
.hud-status.is-warn strong { color: var(--warn); }
.hud-status.is-bad strong { color: var(--bad); }

/* =========================================================
   Trilha de etapas
   ========================================================= */
.rail {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(6, 10, 20, .82);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.rail-list {
  list-style: none;
  margin: 0 auto;
  padding: 10px 20px;
  max-width: 1280px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.rail-item { position: relative; min-width: 0; }
.rail-item + .rail-item::before {
  content: '';
  position: absolute;
  left: -6px; top: 50%;
  width: 6px; height: 2px;
  background: var(--line-2);
}
.rail-step {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 12px 0 6px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s, border-color .2s;
  min-width: 0;
}
.rail-step:hover { background: rgba(255, 255, 255, .04); }
.rail-dot {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  border: 1.5px solid var(--line-3);
  color: var(--muted);
  background: var(--panel);
}
.rail-dot .ico { width: 17px; height: 17px; stroke-width: 2.6; }
.rail-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.rail-name { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-sub { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-item.is-done .rail-dot { background: rgba(61, 220, 151, .12); border-color: rgba(61, 220, 151, .6); color: var(--ok); }
.rail-item.is-done + .rail-item::before { background: rgba(61, 220, 151, .5); }
.rail-item.is-current .rail-step { background: linear-gradient(180deg, rgba(227, 183, 101, .14), rgba(227, 183, 101, .04)); border-color: rgba(227, 183, 101, .4); }
.rail-item.is-current .rail-dot { background: linear-gradient(160deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); border-color: transparent; color: #1b1407; box-shadow: 0 0 16px var(--gold-glow); animation: rail-glow 2.6s ease-in-out infinite; }
.rail-item.is-current .rail-name { color: var(--gold-hi); }
.rail-item.is-current .rail-sub { color: var(--text-2); }
.rail-item.is-locked .rail-name { color: var(--muted); }
.rail-item.is-locked .rail-sub { color: var(--faint); }

/* =========================================================
   Etapas
   ========================================================= */
.stages {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 20px;
  display: grid;
  gap: 22px;
}
.stage {
  position: relative;
  border-radius: var(--r-stage);
  background: linear-gradient(180deg, rgba(16, 27, 51, .96), rgba(10, 18, 35, .96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-stage);
  scroll-margin-top: calc(var(--rail-h) + 12px);
  min-width: 0;
}
.stage::before {
  content: '';
  position: absolute;
  left: 28px; right: 28px; top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 183, 101, .55), transparent);
}
.stage:focus { outline: none; }
.stage-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--line);
}
.stage-num {
  position: relative;
  isolation: isolate;
  width: 46px; height: 52px; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--gold-hi);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.stage-num::after {
  content: '';
  position: absolute;
  inset: 2px;
  z-index: -1;
  background: linear-gradient(160deg, #2a2a2a 0%, #14203a 0%, #0b1426 100%);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.stage-titles { flex: 1; min-width: 0; }
.stage-titles h2 { font-size: clamp(1.3rem, 3.2vw, 1.6rem); font-weight: 700; line-height: 1.15; }
.stage-titles p { color: var(--muted); font-size: .95rem; margin-top: 2px; }
.stage-meta { display: flex; align-items: baseline; gap: 6px; flex: none; }
.meta-num { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--blue-hi); }
.meta-label { color: var(--muted); font-size: .9rem; }
.stage-body { padding: 22px 26px 26px; min-width: 0; }
.stage-body + .stage-body { border-top: 1px solid var(--line); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  white-space: nowrap;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  background: rgba(255, 255, 255, .03);
}
.pill .ico { width: 15px; height: 15px; }
.pill.is-ok { color: var(--ok); border-color: rgba(61, 220, 151, .45); background: rgba(61, 220, 151, .08); }
.pill.is-warn { color: var(--warn); border-color: rgba(245, 180, 74, .45); background: rgba(245, 180, 74, .08); }
.pill.is-bad { color: var(--bad); border-color: rgba(255, 107, 107, .45); background: rgba(255, 107, 107, .08); }
.pill.is-locked { color: var(--muted); }

/* =========================================================
   Controles base
   ========================================================= */
.field-label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.field { margin-top: 22px; }
.hint { color: var(--muted); font-size: .93rem; margin: 2px 0 12px; }
.hint.is-ok { color: var(--ok); }
.hint.is-warn { color: var(--warn); }
.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: var(--r-ctl);
  border: 1px solid var(--line-2);
  background: var(--field);
  color: var(--text);
  font-size: 1rem;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--faint); }
.input:hover { border-color: var(--line-3); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35), 0 0 0 3px var(--blue-glow); }
.input-sm { min-height: 42px; padding: 9px 12px; font-size: .95rem; }
.textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field-msg { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.field-msg:empty { display: none; }
.field-msg.error { color: #ffb3b3; }
.field-msg.ok { color: var(--ok); }

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px;
  padding: 11px 20px;
  border-radius: var(--r-ctl);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, box-shadow .2s, background .2s, border-color .2s, color .2s, filter .2s;
}
.btn .ico { width: 19px; height: 19px; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; filter: grayscale(.85); opacity: .45; box-shadow: none; }
.btn-primary {
  color: #1d1406;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 48%, #c8974a);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 -2px 0 rgba(0, 0, 0, .18) inset, 0 10px 24px -10px var(--gold-glow);
}
.btn-primary { overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: '';
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 45%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg);
  transition: left .55s ease;
  pointer-events: none;
}
.btn-primary:hover:not(:disabled)::after { left: 120%; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.07); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 -2px 0 rgba(0, 0, 0, .18) inset, 0 14px 32px -10px rgba(227, 183, 101, .6); }
.btn-secondary {
  color: var(--blue-hi);
  background: linear-gradient(180deg, rgba(60, 200, 255, .18), rgba(60, 200, 255, .07));
  border-color: rgba(60, 200, 255, .5);
}
.btn-secondary:hover:not(:disabled) { background: linear-gradient(180deg, rgba(60, 200, 255, .26), rgba(60, 200, 255, .1)); border-color: var(--blue); box-shadow: 0 0 22px -6px var(--blue-glow); }
.btn-ghost { color: var(--text-2); background: rgba(255, 255, 255, .03); border-color: var(--line-2); }
.btn-ghost:hover:not(:disabled) { color: var(--text); border-color: var(--line-3); background: rgba(255, 255, 255, .06); }
.btn-danger { color: #fff; background: linear-gradient(180deg, #ff7d86, #e5404f); box-shadow: 0 10px 24px -12px rgba(255, 84, 104, .6); }
.btn-danger:hover { filter: brightness(1.08); }
.btn-danger-text { color: #ff9aa3; background: transparent; }
.btn-danger-text:hover { background: rgba(255, 84, 104, .1); border-color: rgba(255, 84, 104, .35); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .9rem; border-radius: 10px; }
.btn-sm .ico { width: 17px; height: 17px; }
.btn-lg { min-height: 54px; padding: 13px 24px; font-size: 1.05rem; }
.btn-xl { min-height: 60px; padding: 15px 30px; font-size: 1.12rem; border-radius: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.icon-btn {
  width: 40px; height: 40px; flex: none;
  display: inline-grid; place-items: center;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  transition: background .15s, color .15s, border-color .15s;
}
.icon-btn .ico { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, .06); border-color: var(--line-2); }
.icon-btn.is-danger:hover { color: #ff9aa3; border-color: rgba(255, 84, 104, .4); background: rgba(255, 84, 104, .08); }
.icon-btn.is-ok { color: var(--ok); border-color: rgba(61, 220, 151, .35); }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r-ctl);
  border: 1px solid;
  font-size: .95rem;
  line-height: 1.45;
}
.notice > .ico { width: 22px; height: 22px; margin-top: 1px; }
.notice strong { font-family: var(--font-display); font-weight: 700; }
.notice.is-ok { color: #c4f5de; border-color: rgba(61, 220, 151, .35); background: rgba(61, 220, 151, .07); }
.notice.is-ok > .ico, .notice.is-ok strong { color: var(--ok); }
.notice.is-warn { color: #f8e2bb; border-color: rgba(245, 180, 74, .35); background: rgba(245, 180, 74, .07); }
.notice.is-warn > .ico, .notice.is-warn strong { color: var(--warn); }
.notice.is-bad { color: #ffd2d2; border-color: rgba(255, 107, 107, .4); background: rgba(255, 107, 107, .08); }
.notice.is-bad > .ico, .notice.is-bad strong { color: var(--bad); }

/* Avatar com iniciais */
.avatar {
  width: 40px; height: 40px; flex: none;
  display: inline-grid; place-items: center;
  border-radius: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(150deg, var(--av, #4f6fa8), color-mix(in srgb, var(--av, #4f6fa8) 45%, #050a16));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset;
}
.avatar.sm { width: 32px; height: 32px; border-radius: 9px; font-size: .78rem; }
.avatar.xs { width: 24px; height: 24px; border-radius: 7px; font-size: .64rem; }

/* Brasão de time em miniatura */
.crest-mini {
  width: 28px; height: 31px; flex: none;
  display: inline-grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .82rem;
  color: #0a0f1c;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tc, var(--gold)) 70%, #fff), var(--tc, var(--gold)) 55%, color-mix(in srgb, var(--tc, var(--gold)) 70%, #000));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.crest-mini.is-res { --tc: #6b7891; color: #0a0f1c; }

/* =========================================================
   1. Jogadores
   ========================================================= */
.grid-players { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-players { grid-template-columns: 380px 1fr; gap: 30px; } }
.entry { display: grid; gap: 18px; align-content: start; }

.map-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.map-card {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 14px;
  text-align: left;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  color: var(--muted);
  transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.map-card svg { width: 38px; height: 38px; }
.map-text strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--text-2); }
.map-text small { display: block; font-size: .82rem; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.map-check { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-3); }
.map-card:hover { border-color: var(--line-3); color: var(--text-2); }
.map-card[aria-pressed="true"] {
  color: var(--gold);
  border-color: rgba(227, 183, 101, .65);
  background: linear-gradient(180deg, rgba(227, 183, 101, .16), rgba(227, 183, 101, .03)), var(--panel);
  box-shadow: 0 0 0 1px rgba(227, 183, 101, .25), 0 12px 28px -16px var(--gold-glow);
}
.map-card[aria-pressed="true"] .map-text strong { color: var(--gold-hi); }
.map-card[aria-pressed="true"] .map-check { border-color: var(--gold); background: radial-gradient(circle, var(--gold) 0 45%, transparent 50%); }

.add-row { display: flex; gap: 8px; }
.add-row .input { flex: 1; min-width: 0; }

.paste-box { border-radius: var(--r-ctl); border: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.paste-box summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--blue-hi);
  border-radius: var(--r-ctl);
}
.paste-box summary::-webkit-details-marker { display: none; }
.paste-box summary:hover { background: rgba(60, 200, 255, .05); }
.paste-box .chev { margin-left: auto; transition: transform .2s; color: var(--muted); }
.paste-box[open] .chev { transform: rotate(180deg); }
.paste-box[open] summary { border-bottom: 1px solid var(--line); border-radius: var(--r-ctl) var(--r-ctl) 0 0; }
.paste-inner { padding: 14px; }
.paste-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; }
.paste-actions .hint { margin: 0; font-size: .85rem; }

.roster-wrap { min-width: 0; }
.roster { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .roster:not(.is-empty) { grid-template-columns: 1fr 1fr; } }
.roster-item {
  display: flex; align-items: center; gap: 12px;
  min-height: 60px;
  padding: 9px 8px 9px 10px;
  border-radius: var(--r-ctl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 34, 63, .6), rgba(12, 21, 40, .6));
  transition: border-color .15s, background .15s;
  min-width: 0;
}
.roster-item:hover { border-color: var(--line-2); }
.roster-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.roster-name { font-weight: 600; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.roster-actions { display: flex; flex: none; }
.roster-item.is-editing { border-color: rgba(60, 200, 255, .5); background: rgba(60, 200, 255, .06); }
.edit-form { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.edit-form .input { flex: 1; min-width: 0; }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .76rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid;
}
.tag .ico { width: 13px; height: 13px; }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--tc); }
.tag-cap { color: var(--gold-hi); border-color: rgba(227, 183, 101, .45); background: rgba(227, 183, 101, .12); }
.tag-cap .ico { color: var(--gold); }
.tag-team { color: var(--text-2); border-color: color-mix(in srgb, var(--tc) 40%, transparent); background: color-mix(in srgb, var(--tc) 10%, transparent); }
.tag-res { color: var(--muted); border-color: var(--line-2); background: rgba(255, 255, 255, .03); }

.empty-state {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 34px 20px;
  text-align: center;
  border-radius: var(--r-card);
  border: 1px dashed var(--line-2);
  background: radial-gradient(circle at 50% 0%, rgba(60, 200, 255, .06), transparent 70%);
  color: var(--muted);
}
.empty-state strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--text); }
.empty-state span { max-width: 34ch; }
.empty-art { display: flex; gap: 8px; margin-bottom: 12px; }
.empty-art span {
  width: 34px; height: 38px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(180deg, rgba(60, 200, 255, .18), rgba(60, 200, 255, .04));
}
.empty-art span:nth-child(3) { background: linear-gradient(180deg, rgba(227, 183, 101, .4), rgba(227, 183, 101, .08)); transform: translateY(-6px); }

/* =========================================================
   2. Configuração
   ========================================================= */
.config-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .config-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
.steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stepper {
  display: flex; align-items: stretch;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--field);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.step-btn {
  width: 52px; min-height: 64px; flex: none;
  display: grid; place-items: center;
  border: 0;
  background: rgba(255, 255, 255, .025);
  color: var(--gold);
  transition: background .15s, color .15s;
}
.step-btn .ico { width: 20px; height: 20px; stroke-width: 2.4; }
.step-btn:hover:not(:disabled) { background: rgba(227, 183, 101, .12); color: var(--gold-hi); }
.step-btn:disabled { color: var(--faint); cursor: not-allowed; }
.step-val { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.step-val b { font-family: var(--font-display); font-weight: 800; font-size: 1.85rem; }
.step-val small { font-size: .78rem; color: var(--muted); margin-top: 3px; }

.team-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.team-name-field { display: flex; align-items: center; gap: 10px; }
.team-name-field .input { min-width: 0; }
.team-name-field .input:focus { border-color: var(--tc); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35), 0 0 0 3px color-mix(in srgb, var(--tc) 30%, transparent); }

.config-right { display: grid; gap: 14px; align-content: start; }
.capacity {
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 34, 63, .55), rgba(8, 16, 34, .55));
  padding: 16px;
}
.cap-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.cap-stat { padding: 8px 4px; text-align: center; border-radius: 10px; background: rgba(255, 255, 255, .025); }
.cap-stat strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1.1; }
.cap-stat span { font-size: .82rem; color: var(--muted); }
.cap-stat.is-warn strong { color: var(--warn); }
.cap-stat.is-bad strong { color: var(--bad); }
.cap-map { display: grid; gap: 8px; }
.cap-row { display: flex; align-items: center; gap: 10px; }
.pips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.pips em { font-size: .8rem; margin-left: 4px; }
.pip { width: 18px; height: 10px; border-radius: 3px; display: block; }
.pip.on { background: var(--tc); box-shadow: 0 0 8px color-mix(in srgb, var(--tc) 50%, transparent); }
.pip.miss { border: 1.5px dashed rgba(255, 107, 107, .6); }
.pip.res { background: #3c4860; }

/* Quem joga */
.participants { background: rgba(4, 8, 18, .25); border-radius: 0 0 var(--r-stage) var(--r-stage); }
.sub-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 14px; }
.sub-head h3 { font-size: 1.15rem; }
.sub-head p { color: var(--muted); font-size: .93rem; margin-top: 2px; max-width: 56ch; }
.sub-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.counter { font-family: var(--font-display); font-size: .95rem; color: var(--muted); padding: 0 6px; }
.counter b { font-size: 1.4rem; font-weight: 800; }
.counter.is-ok b { color: var(--ok); }
.counter.is-warn b { color: var(--warn); }
.pchips { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.pchip {
  display: flex; align-items: center; gap: 10px;
  min-height: 50px;
  padding: 8px 10px 8px 8px;
  border-radius: var(--r-ctl);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .02);
  color: var(--text-2);
  text-align: left;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.pchip-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pchip-box { width: 22px; height: 22px; flex: none; border-radius: 7px; border: 1.5px solid var(--line-3); display: grid; place-items: center; color: transparent; }
.pchip-box .ico { width: 15px; height: 15px; stroke-width: 2.8; }
.pchip:hover { border-color: var(--line-3); }
.pchip.is-on { color: var(--text); border-color: rgba(60, 200, 255, .6); background: linear-gradient(180deg, rgba(60, 200, 255, .14), rgba(60, 200, 255, .05)); }
.pchip.is-on .pchip-box { background: var(--blue); border-color: var(--blue); color: #04121b; }
.pchip[aria-disabled="true"] { opacity: .45; }
.bench { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.bench-list { display: flex; flex-wrap: wrap; gap: 8px; }
.bench-item { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); color: var(--text-2); font-weight: 500; }

/* =========================================================
   3. Montagem
   ========================================================= */
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.mode-card {
  position: relative;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 44px 16px 16px;
  text-align: left;
  border-radius: var(--r-card);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.mode-ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .04); color: var(--muted); border: 1px solid var(--line); }
.mode-ico .ico { width: 24px; height: 24px; }
.mode-text strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--text-2); }
.mode-text small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.35; margin-top: 3px; }
.mode-radio { position: absolute; top: 18px; right: 16px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-3); }
.mode-card:hover { border-color: var(--line-3); }
.mode-card[aria-pressed="true"] {
  border-color: rgba(227, 183, 101, .65);
  background: linear-gradient(180deg, rgba(227, 183, 101, .14), rgba(227, 183, 101, .02)), var(--panel);
  box-shadow: 0 0 0 1px rgba(227, 183, 101, .25), 0 16px 34px -20px var(--gold-glow);
}
.mode-card[aria-pressed="true"] .mode-ico { color: #1d1406; background: linear-gradient(160deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); border-color: transparent; }
.mode-card[aria-pressed="true"] .mode-text strong { color: var(--gold-hi); }
.mode-card[aria-pressed="true"] .mode-radio { border-color: var(--gold); background: radial-gradient(circle, var(--gold) 0 42%, transparent 47%); }

.build-grid { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1040px) {
  .build-grid { grid-template-columns: 440px minmax(0, 1fr); gap: 28px; }
  .arena { position: sticky; top: calc(var(--rail-h) + 16px); }
}
.control { min-width: 0; }

.locked-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 20px;
  border-radius: var(--r-card);
  border: 1px dashed var(--line-2);
  background: rgba(255, 255, 255, .015);
  color: var(--muted);
}
.locked-card > .ico { width: 28px; height: 28px; color: var(--gold); margin-bottom: 4px; }
.locked-card > strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--text); }
.locked-card span strong { color: var(--warn); }
.locked-card .btn { margin-top: 10px; }

/* Etapas internas (trilha vertical) */
.track { list-style: none; margin: 0; padding: 0; display: grid; }
.track-step { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding-bottom: 22px; }
.track-step:last-child { padding-bottom: 0; }
.track-step::before { content: ''; position: absolute; left: 16px; top: 36px; bottom: 4px; width: 2px; background: var(--line-2); border-radius: 2px; }
.track-step:last-child::before { display: none; }
.track-step.is-done::before { background: rgba(61, 220, 151, .4); }
.track-dot {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  border: 1.5px solid var(--line-3);
  color: var(--muted);
  background: var(--panel);
  position: relative; z-index: 1;
}
.track-dot .ico { width: 17px; height: 17px; stroke-width: 2.6; }
.track-step.is-done .track-dot { background: rgba(61, 220, 151, .14); border-color: rgba(61, 220, 151, .7); color: var(--ok); }
.track-step.is-current .track-dot { background: linear-gradient(160deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); border-color: transparent; color: #1d1406; box-shadow: 0 0 18px var(--gold-glow); }
.track-body { min-width: 0; padding-top: 5px; }
.track-body h4 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.track-step.is-todo .track-body h4 { color: var(--muted); }
.track-count { margin-left: auto; font-size: .85rem; font-weight: 600; color: var(--blue-hi); padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(60, 200, 255, .35); background: rgba(60, 200, 255, .08); }

.cap-chips { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.cap-chip {
  display: flex; align-items: center; gap: 10px;
  min-height: 46px;
  padding: 7px 12px 7px 9px;
  border-radius: var(--r-ctl);
  border: 1px solid color-mix(in srgb, var(--tc) 35%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 14%, transparent), transparent 80%);
}
.cap-chip-name { display: flex; align-items: center; gap: 7px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cap-chip-name .ico { color: var(--gold); }

.order-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.order-list li { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 12px 6px 8px; border-radius: var(--r-ctl); background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.order-pos { width: 30px; text-align: center; font-family: var(--font-display); font-weight: 800; color: var(--tc); }
.order-name { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.order-name strong { font-family: var(--font-display); font-weight: 600; }
.order-name small { color: var(--muted); font-size: .85rem; }

.seq-preview, .seq-block, .next-block, .avail-block { margin-top: 16px; }
.seq { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.seq-chip {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  color: var(--tc);
  border: 1px solid color-mix(in srgb, var(--tc) 45%, transparent);
  background: color-mix(in srgb, var(--tc) 10%, transparent);
}
.seq-chip.round-end { margin-right: 8px; }
.seq-chip.is-done { opacity: .32; }
.seq-chip.is-now { color: #0a0f1c; background: var(--tc); border-color: var(--tc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc) 30%, transparent), 0 0 16px var(--tc); transform: scale(1.1); }
.seq-more { color: var(--muted); }

.spotlight {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 22px;
  border-radius: var(--r-card);
  border: 1px solid color-mix(in srgb, var(--tc) 65%, transparent);
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--tc) 28%, transparent), transparent 60%),
    linear-gradient(180deg, var(--raise), var(--panel));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tc) 20%, transparent), 0 18px 40px -20px color-mix(in srgb, var(--tc) 60%, transparent);
  overflow: hidden;
}
.spot-crest {
  width: 58px; height: 64px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.7rem;
  color: #0a0f1c;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 60%, #fff), var(--tc) 55%, color-mix(in srgb, var(--tc) 60%, #000));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.spot-text { min-width: 0; display: flex; flex-direction: column; }
.spot-kicker { font-size: .85rem; font-weight: 600; color: var(--tc); }
.spot-name { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 4.5vw, 1.6rem); line-height: 1.15; overflow-wrap: anywhere; }
.spot-name .ico { color: var(--gold); width: 22px; height: 22px; }
.spot-team { color: var(--text-2); font-size: .95rem; }
.spot-count { text-align: right; line-height: 1; }
.spot-count b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; }
.spot-count small { color: var(--muted); font-size: .82rem; }
.spot-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .06); }
.spot-bar i { display: block; height: 100%; background: var(--tc); box-shadow: 0 0 10px var(--tc); transition: width .35s ease; }

.next-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.next-list li { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 10px 4px 6px; border-radius: 10px; background: rgba(255, 255, 255, .02); }
.next-list li:first-child { background: color-mix(in srgb, var(--tc) 8%, transparent); }
.next-pos { width: 30px; text-align: center; font-family: var(--font-display); font-size: .85rem; color: var(--muted); }
.next-cap { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-team { margin-left: auto; color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }

.avail-head { display: flex; align-items: baseline; justify-content: space-between; }
.avail-count { font-family: var(--font-display); font-weight: 700; color: var(--blue-hi); }
.avail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.pick-tile {
  display: flex; align-items: center; gap: 10px;
  min-height: 54px;
  padding: 8px 10px 8px 8px;
  border-radius: var(--r-ctl);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--raise), var(--panel-2));
  text-align: left;
  transition: border-color .15s, box-shadow .2s, transform .12s, background .15s;
}
.pick-name { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: break-word; hyphens: auto; line-height: 1.2; }
.pick-plus { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; color: var(--muted); border: 1px solid var(--line-2); transition: background .15s, color .15s, border-color .15s; }
.pick-plus .ico { width: 15px; height: 15px; stroke-width: 2.6; }
.pick-tile:hover { border-color: var(--tc); box-shadow: 0 0 0 1px var(--tc), 0 10px 26px -14px var(--tc); background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 12%, var(--raise)), var(--panel-2)); }
.pick-tile:hover .pick-plus { background: var(--tc); border-color: var(--tc); color: #0a0f1c; }
.pick-tile:active { transform: scale(.97); }

/* Arena / cards dos times */
.arena { min-width: 0; }
.arena-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; min-height: 34px; }
.arena-head h3 { font-size: 1.15rem; }
.arena-hint { color: var(--muted); font-size: .93rem; }
.arena-hint b { color: var(--tc); font-family: var(--font-display); }
.teams-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }

.team-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--tc) 28%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tc) 13%, #0f1a30) 0%, #0b1426 120px);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding-bottom: 12px;
  isolation: isolate;
  transition: border-color .25s, box-shadow .25s, transform .25s, opacity .25s;
}
.team-card::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--tc), transparent);
}
.team-mark {
  position: absolute;
  right: -6px; top: -34px;
  z-index: -1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 9.5rem;
  line-height: 1;
  color: var(--tc);
  opacity: .07;
  pointer-events: none;
}
.team-head { display: flex; align-items: center; gap: 12px; padding: 18px 16px 12px; }
.team-crest {
  width: 50px; height: 56px; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.45rem;
  color: #0a0f1c;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 60%, #fff), var(--tc) 55%, color-mix(in srgb, var(--tc) 60%, #000));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--tc) 50%, transparent));
}
.team-title { flex: 1; min-width: 0; }
.team-title h3 { font-size: 1.2rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-count { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.team-count b { color: var(--tc); font-weight: 700; }
.team-count b::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--tc); margin-right: 6px; vertical-align: 1px; animation: blink 1.2s ease-in-out infinite; }
.side-tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 8px; font-family: var(--font-display); font-weight: 700; font-size: .8rem; white-space: nowrap; }
.side-tag .ico { width: 14px; height: 14px; }
.side-tag.is-blue { color: #cfe9ff; background: rgba(58, 168, 255, .22); border: 1px solid rgba(58, 168, 255, .6); }
.side-tag.is-red { color: #ffd6db; background: rgba(255, 84, 104, .22); border: 1px solid rgba(255, 84, 104, .6); }
.side-tag.is-wait { color: var(--text-2); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); }

.team-meter { display: flex; gap: 4px; padding: 0 16px 12px; }
.team-meter i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .08); transition: background .3s, box-shadow .3s; }
.team-meter i.on { background: var(--tc); box-shadow: 0 0 6px color-mix(in srgb, var(--tc) 70%, transparent); }

.member-list { list-style: none; margin: 0; padding: 0 12px; display: grid; gap: 5px; }
.member {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px;
  padding: 6px 10px 6px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid transparent;
}
.slot-num {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border-radius: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
}
.member-name { flex: 1; min-width: 0; font-weight: 600; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member.is-cap {
  min-height: 52px;
  background: linear-gradient(90deg, rgba(227, 183, 101, .2), rgba(227, 183, 101, .04) 85%);
  border-color: rgba(227, 183, 101, .45);
}
.member.is-cap .slot-num { color: #1d1406; background: linear-gradient(160deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); }
.member.is-cap .slot-num .ico { width: 18px; height: 18px; }
.member.is-cap .member-name { font-size: 1.08rem; color: var(--gold-hi); }
.cap-label { font-size: .75rem; font-weight: 700; color: var(--gold); padding: 2px 8px; border-radius: 6px; border: 1px solid rgba(227, 183, 101, .5); }
.member.is-empty { background: transparent; border: 1px dashed rgba(140, 170, 220, .16); }
.member.is-empty .slot-num { background: transparent; color: var(--faint); }
.member.is-empty .member-name { color: var(--faint); font-weight: 500; }

.team-card.is-full { border-color: color-mix(in srgb, var(--tc) 45%, transparent); }
.team-card.is-turn {
  border-color: var(--tc);
  box-shadow: 0 0 0 1px var(--tc), 0 0 40px -10px var(--tc), var(--shadow-card);
  transform: translateY(-3px);
}
.team-card.is-turn .member.is-empty:first-of-type { border-color: color-mix(in srgb, var(--tc) 60%, transparent); }
.team-card.side-blue { border-color: rgba(58, 168, 255, .65); box-shadow: 0 0 34px -12px rgba(58, 168, 255, .6), var(--shadow-card); }
.team-card.side-blue::before { background: linear-gradient(90deg, transparent, var(--side-blue), transparent); height: 4px; }
.team-card.side-red { border-color: rgba(255, 84, 104, .65); box-shadow: 0 0 34px -12px rgba(255, 84, 104, .6), var(--shadow-card); }
.team-card.side-red::before { background: linear-gradient(90deg, transparent, var(--side-red), transparent); height: 4px; }
.team-card.side-wait { opacity: .78; }
.team-card.just-picked { animation: card-flash .6s ease-out; }

/* =========================================================
   4. Quem começa
   ========================================================= */
.match-headline { text-align: center; font-family: var(--font-display); font-size: 1.05rem; color: var(--text-2); margin-bottom: 16px; }
.match-headline strong { color: var(--gold-hi); font-weight: 700; }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0; }
.vs-side {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 22px 18px 20px;
  text-align: center;
  border-radius: 20px;
  min-width: 0;
  overflow: hidden;
}
.vs-side.is-blue {
  background: radial-gradient(120% 100% at 0% 0%, rgba(58, 168, 255, .35), transparent 65%), linear-gradient(160deg, #0f2547, #0a1426);
  border: 1px solid rgba(58, 168, 255, .55);
  box-shadow: 0 20px 50px -26px rgba(58, 168, 255, .7);
}
.vs-side.is-red {
  background: radial-gradient(120% 100% at 100% 0%, rgba(255, 84, 104, .32), transparent 65%), linear-gradient(200deg, #3a1424, #140c18);
  border: 1px solid rgba(255, 84, 104, .55);
  box-shadow: 0 20px 50px -26px rgba(255, 84, 104, .7);
}
.vs-label { font-family: var(--font-display); font-weight: 700; font-size: .9rem; }
.vs-side.is-blue .vs-label { color: #8fd0ff; }
.vs-side.is-red .vs-label { color: #ff9fac; }
.vs-crest {
  width: 66px; height: 74px;
  display: grid; place-items: center;
  margin: 4px 0;
  font-family: var(--font-display); font-weight: 800; font-size: 2rem;
  color: #0a0f1c;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tc, #7d8aa3) 60%, #fff), var(--tc, #7d8aa3) 55%, color-mix(in srgb, var(--tc, #7d8aa3) 60%, #000));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.vs-team { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 3.4vw, 1.8rem); line-height: 1.1; overflow-wrap: anywhere; }
.vs-roster { list-style: none; margin: 10px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: 100%; }
.vs-roster li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 8px; background: rgba(0, 0, 0, .25); font-weight: 600; font-size: .92rem; }
.vs-roster li.is-cap { color: var(--gold-hi); background: rgba(227, 183, 101, .14); }
.vs-roster li.is-cap .ico { color: var(--gold); width: 15px; height: 15px; }
.vs-center { position: relative; width: 108px; display: grid; place-items: center; z-index: 2; margin: 0 -14px; }
.vs-emblem { width: 96px; height: 96px; filter: drop-shadow(0 0 18px var(--gold-glow)); }
.vs-hex { fill: #0b1426; stroke: var(--gold); stroke-width: 3; }
.vs-hex2 { fill: none; stroke: rgba(227, 183, 101, .35); stroke-width: 1.5; }
.vs-blades { fill: none; stroke: rgba(227, 183, 101, .28); stroke-width: 5; stroke-linecap: round; }
.vs-text { position: absolute; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--gold-hi); letter-spacing: .04em; text-shadow: 0 0 14px var(--gold-glow); }

.versus.is-locked .vs-side, .versus.is-pending .vs-side { filter: saturate(.35); opacity: .6; }
.versus.is-pending .vs-side { filter: saturate(.7); opacity: .85; }
.vs-side.is-unknown .vs-crest { background: rgba(255, 255, 255, .06); color: var(--muted); }
.vs-side.is-unknown .vs-team { color: var(--muted); font-size: 1.15rem; }
.versus.is-locked .vs-emblem { filter: grayscale(1); opacity: .5; }
.match-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; color: var(--muted); }
.match-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 20px; text-align: center; }
.match-cta p { color: var(--text-2); max-width: 46ch; }

.match-summary { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; color: var(--text-2); }
.match-summary li { display: flex; align-items: center; gap: 8px; }
.match-summary strong { color: var(--text); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot.is-blue { background: var(--side-blue); box-shadow: 0 0 8px var(--side-blue); }
.dot.is-red { background: var(--side-red); box-shadow: 0 0 8px var(--side-red); }
.dot.is-wait { background: var(--muted); }
.queue { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.queue .field-label { margin-bottom: 10px; }
.queue-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.queue-list li { display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: var(--r-ctl); border: 1px solid color-mix(in srgb, var(--tc) 35%, transparent); background: color-mix(in srgb, var(--tc) 8%, transparent); font-family: var(--font-display); font-weight: 600; }
.queue-pos { font-weight: 800; color: var(--muted); }
.match-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-top: 22px; }
.match-actions .hint { margin: 0; }

/* =========================================================
   Resultado (dock)
   ========================================================= */
.dock {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  padding: 18px 22px;
  border-radius: var(--r-stage);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 34, 63, .9), rgba(12, 21, 40, .9));
  box-shadow: var(--shadow-stage);
}
.dock.is-ready { border-color: rgba(227, 183, 101, .35); }
.dock-text { display: flex; flex-direction: column; min-width: 0; }
.dock-text strong { font-family: var(--font-display); font-size: 1.1rem; }
.dock-text span { color: var(--muted); font-size: .93rem; }
.dock-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.footer { max-width: 1280px; margin: 0 auto; padding: 10px 20px 40px; text-align: center; color: var(--faint); font-size: .86rem; }

/* =========================================================
   Modal, sorteio e toast
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 5, 12, .75); backdrop-filter: blur(4px); opacity: 0; transition: opacity .18s; }
.modal-box {
  position: relative;
  width: min(460px, 100%);
  padding: 26px 24px 22px;
  border-radius: 20px;
  border: 1px solid rgba(227, 183, 101, .4);
  background: linear-gradient(180deg, var(--raise), var(--panel));
  box-shadow: 0 40px 80px -30px #000;
  transform: translateY(12px) scale(.97);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
}
.modal.open .modal-backdrop { opacity: 1; }
.modal.open .modal-box { transform: none; opacity: 1; }
.modal-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 14px; color: var(--gold); background: rgba(227, 183, 101, .12); border: 1px solid rgba(227, 183, 101, .35); }
.modal-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.modal.is-danger .modal-box { border-color: rgba(255, 84, 104, .45); }
.modal.is-danger .modal-icon { color: #ff9aa3; background: rgba(255, 84, 104, .12); border-color: rgba(255, 84, 104, .4); }
.modal-box h3 { font-size: 1.3rem; margin-bottom: 8px; }
.modal-box p { color: var(--text-2); margin-bottom: 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.roll { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(2, 5, 12, .66); backdrop-filter: blur(5px); opacity: 0; transition: opacity .15s; }
.roll[hidden] { display: none; }
.roll.open { opacity: 1; }
.roll-box { position: relative; width: min(340px, 90vw); aspect-ratio: 1; display: grid; place-items: center; }
.roll-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring { fill: none; transform-origin: 100px 100px; }
.ring.r1 { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 40 18; animation: spin 2.4s linear infinite; filter: drop-shadow(0 0 6px var(--gold-glow)); }
.ring.r2 { stroke: var(--blue); stroke-width: 1.5; stroke-opacity: .7; stroke-dasharray: 6 10; animation: spin 3.2s linear infinite reverse; }
.ring.r3 { fill: rgba(11, 20, 38, .92); stroke: rgba(60, 200, 255, .35); stroke-width: 1; }
.roll-content { position: relative; text-align: center; width: 56%; }
.roll-logo { display: block; width: 64px; height: auto; margin: 0 auto 8px; filter: drop-shadow(0 0 12px rgba(60, 200, 255, .45)); animation: aura 1.2s ease-in-out infinite; }
.roll-label { font-size: .88rem; font-weight: 600; color: var(--blue-hi); }
.roll-name { margin-top: 6px; font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 1.15; color: var(--gold-hi); min-height: 1.2em; overflow-wrap: anywhere; }
.roll-name.flip { animation: flip .08s ease-out; }
body.is-busy main { pointer-events: none; }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 95;
  transform: translate(-50%, 16px);
  max-width: min(92vw, 500px);
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(21, 34, 63, .96);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px -14px #000;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: rgba(61, 220, 151, .5); }
.toast.warn { border-color: rgba(245, 180, 74, .55); }
.toast.error { border-color: rgba(255, 107, 107, .6); }

/* =========================================================
   Animações
   ========================================================= */
.reveal { animation: pop .42s cubic-bezier(.2, .9, .3, 1.25) both; animation-delay: calc(var(--d, 0) * 50ms); }
.member.reveal { animation-name: slot-in; }
.spotlight.turn-in { animation: turn-in .35s ease-out; }
.reveal-match .match-headline { animation: pop .4s ease-out both; }
.reveal-match .vs-side.is-blue { animation: slide-l .55s cubic-bezier(.2, .9, .3, 1.15) both .05s; }
.reveal-match .vs-side.is-red { animation: slide-r .55s cubic-bezier(.2, .9, .3, 1.15) both .05s; }
.reveal-match .vs-center { animation: stamp .5s cubic-bezier(.3, 1.6, .5, 1) both .35s; }
.reveal-match .queue-list li { animation: pop .4s ease-out both; animation-delay: calc(.55s + var(--d, 0) * 80ms); }

@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes slot-in { from { opacity: 0; transform: translateX(-10px); background: color-mix(in srgb, var(--tc) 35%, transparent); } to { opacity: 1; transform: none; } }
@keyframes turn-in { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes slide-l { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes slide-r { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes stamp { from { opacity: 0; transform: scale(1.8); } to { opacity: 1; transform: none; } }
@keyframes card-flash { 0% { box-shadow: 0 0 0 2px var(--tc), 0 0 50px -4px var(--tc); } 100% { box-shadow: var(--shadow-card); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flip { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: .3; } }
@keyframes logo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes aura { 0%, 100% { opacity: .75; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes shine { 0%, 62% { background-position: 120% 0; } 100% { background-position: -20% 0; } }
@keyframes ember {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: .85; }
  80% { opacity: .5; }
  100% { transform: translate(var(--drift, 0), -240px); opacity: 0; }
}
@keyframes rail-glow { 0%, 100% { box-shadow: 0 0 16px var(--gold-glow); } 50% { box-shadow: 0 0 26px rgba(227, 183, 101, .55); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .embers, .logo-shine { display: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 860px) {
  .rail-sub { display: none; }
  .rail-list { padding: 8px 12px; gap: 4px; }
  .rail-step { flex-direction: column; justify-content: center; gap: 3px; height: 54px; padding: 4px 2px; text-align: center; }
  .rail-text { align-items: center; max-width: 100%; }
  .rail-name { font-size: .78rem; max-width: 100%; }
  .rail-dot { width: 26px; height: 26px; border-radius: 8px; font-size: .82rem; }
  .rail-item + .rail-item::before { top: 17px; }
}
@media (max-width: 720px) {
  .masthead-inner { padding: 18px 16px 16px; }
  .brand { flex-direction: column; text-align: center; gap: 10px; width: 100%; }
  .logo-wrap { width: 132px; }
  .wordmark { align-items: center; }
  .wm-sub { font-size: .92rem; }
  .wm-sub::before { margin: 0 auto 8px; }
  .hud { width: 100%; }
  .hud-item { flex: 1; padding: 9px 10px; }
  .hud-item strong { font-size: .86rem; white-space: normal; line-height: 1.2; }
  .stages { padding: 16px 12px 16px; gap: 16px; }
  .stage-head { padding: 18px 16px 14px; gap: 12px; }
  .stage-num { width: 38px; height: 43px; font-size: 1.1rem; }
  .stage-titles p { font-size: .88rem; }
  .meta-num { font-size: 1.6rem; }
  .stage-body { padding: 18px 16px 20px; }
  .mode-switch { grid-template-columns: 1fr; }
  .track-step { display: block; padding-bottom: 20px; }
  .track-step::before { display: none; }
  .track-dot { position: absolute; left: 0; top: 0; width: 30px; height: 30px; font-size: .85rem; }
  .track-body { padding-top: 0; }
  .track-body h4 { min-height: 30px; padding-left: 40px; margin-bottom: 10px; }
  .track-step + .track-step { padding-top: 18px; border-top: 1px solid var(--line); }
  .track-step + .track-step .track-dot { top: 18px; }
  .pick-plus { width: 22px; height: 22px; }
  .versus { grid-template-columns: 1fr; }
  .vs-center { width: auto; height: 64px; margin: -16px 0; }
  .vs-emblem { width: 72px; height: 72px; }
  .vs-text { font-size: 1.2rem; }
  .dock { padding: 16px; }
  .dock-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .dock-actions .btn-primary { grid-column: 1 / -1; }
  .modal-actions .btn { flex: 1; }
}
@media (max-width: 420px) {
  .map-pick { gap: 8px; }
  .map-card { padding: 12px; }
  .map-text small { font-size: .78rem; }
  .steppers { gap: 8px; }
  .step-btn { width: 42px; }
  .step-val b { font-size: 1.6rem; }
  .add-row .btn { padding: 11px 14px; }
  .spotlight { grid-template-columns: auto 1fr; }
  .spot-count { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 6px; text-align: left; }
  .spot-count b { display: inline; font-size: 1.2rem; }
  .avail-grid, .pchips { grid-template-columns: 1fr 1fr; }
  .team-names { grid-template-columns: 1fr; }
}

/* =========================================================
   Elo e times balanceados
   ========================================================= */
.elo-select {
  -webkit-appearance: none;
  appearance: none;
  min-height: 30px;
  max-width: 100%;
  padding: 3px 28px 3px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--elo);
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%237d8aa3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center / 14px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.elo-select:hover { border-color: var(--line-3); border-left-color: var(--elo); }
.elo-select:focus { outline: none; box-shadow: 0 0 0 3px var(--blue-glow); }
.elo-select.has-elo { color: var(--elo); background-color: color-mix(in srgb, var(--elo) 9%, var(--field)); }
.elo-select option, .elo-select optgroup { background: #0c1528; color: #eef2fa; }
.elo-select-lg { min-height: 50px; width: 150px; flex: none; padding-left: 12px; font-size: .95rem; border-radius: var(--r-ctl); border-left-width: 4px; }
.roster-tags { align-items: center; }

.elo-badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .76rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--elo);
  border: 1px solid color-mix(in srgb, var(--elo) 45%, transparent);
  background: color-mix(in srgb, var(--elo) 11%, transparent);
}
.elo-badge.xs { padding: 1px 6px; font-size: .7rem; }
.member .elo-badge { flex: none; }
.team-elo { display: block; margin-top: 2px; font-size: .84rem; font-weight: 600; color: var(--elo); }
.pick-text, .pchip-text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.pick-text .pick-name { flex: none; }
.pchip-text .pchip-name { flex: none; max-width: 100%; }

.mode-switch { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .mode-switch { grid-template-columns: 1fr; } }

.elo-coverage { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; color: var(--text-2); font-size: .93rem; }
.elo-coverage b { color: var(--text); }
.cov-bar { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.cov-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--blue)); }

.balance-card {
  margin: 4px 0 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(21, 34, 63, .7), rgba(10, 18, 35, .7));
}
.balance-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.balance-diff { color: var(--muted); font-size: .9rem; }
.balance-diff b { color: var(--text); font-family: var(--font-display); }
.balance-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.balance-bars li { display: grid; grid-template-columns: 28px 1fr 104px; align-items: center; gap: 10px; }
.bb-track { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bb-track i { display: block; height: 100%; border-radius: 4px; background: var(--tc); box-shadow: 0 0 8px color-mix(in srgb, var(--tc) 60%, transparent); transition: width .5s ease; }
.bb-label { font-size: .85rem; font-weight: 600; color: var(--text-2); text-align: right; white-space: nowrap; }

.add-row { flex-wrap: wrap; }
.add-row .input { flex-basis: 100%; }
.add-row .elo-select-lg { flex: 1; width: auto; min-width: 0; }
