/* ============ Mundialzinho — tema escuro moderno, responsivo ============ */
:root {
  --bg: #070b16;
  --bg-2: #0d1426;
  --surface: rgba(22, 31, 54, 0.72);
  --surface-solid: #131c32;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef2ff;
  --muted: #93a0c4;
  --green: #16d97a;
  --green-2: #0fae5f;
  --accent: #4f7cff;
  --accent-2: #8a5cff;
  --gold: #ffce4d;
  --red: #ff4d5e;
  --yellow: #ffd23f;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --pitch-1: #14823f;
  --pitch-2: #16924a;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; } /* atributo hidden vence o display:flex/grid */
html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
#app { min-height: 100dvh; position: relative; }

/* ---- Screens / router ---- */
.screen {
  display: none;
  min-height: 100dvh;
  padding: 22px max(16px, env(safe-area-inset-left)) calc(22px + env(safe-area-inset-bottom));
  flex-direction: column;
  animation: fade .35s ease;
}
.screen.active { display: flex; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.btn {
  border: 0; cursor: pointer; font-family: inherit; font-weight: 700;
  font-size: 1rem; padding: 15px 26px; border-radius: 14px; color: #fff;
  transition: transform .12s ease, box-shadow .2s ease, opacity .2s; letter-spacing: .2px;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  background: linear-gradient(135deg, var(--green), var(--green-2));
  box-shadow: 0 10px 28px rgba(22, 217, 122, 0.32);
}
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.back-btn {
  background: none; border: 0; color: var(--muted); font-size: 1rem; font-weight: 600;
  cursor: pointer; align-self: flex-start; padding: 8px 4px; margin-bottom: 10px;
}
.back-btn:hover { color: var(--text); }
.screen-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; }

/* ============ HOME ============ */
.screen--home { justify-content: center; align-items: center; text-align: center; gap: 8px; }
.home-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 50% -8%, rgba(79, 124, 255, 0.22), transparent 60%),
    radial-gradient(700px 500px at 90% 100%, rgba(138, 92, 255, 0.18), transparent 55%),
    radial-gradient(600px 400px at 5% 90%, rgba(22, 217, 122, 0.14), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
.home-hero { margin-bottom: 26px; }
.logo { display: flex; align-items: center; justify-content: center; gap: 14px; }
.logo__ball { font-size: 2.6rem; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-9px) rotate(12deg); } }
.logo__title {
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(3rem, 13vw, 5.5rem);
  letter-spacing: 3px; line-height: .9;
  background: linear-gradient(135deg, #fff 20%, var(--green) 60%, var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.home-tag { color: var(--muted); max-width: 440px; margin: 14px auto 0; font-size: 1.02rem; line-height: 1.55; }

.home-modes { display: flex; gap: 16px; width: 100%; max-width: 560px; margin-top: 6px; }
.mode-card {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 26px 18px; border-radius: var(--radius); cursor: pointer; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(14px);
  transition: transform .18s ease, border-color .2s, box-shadow .25s; text-align: center;
}
.mode-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.22); box-shadow: var(--shadow); }
.mode-card__icon { font-size: 2.3rem; }
.mode-card__title { font-size: 1.18rem; font-weight: 800; }
.mode-card__desc { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.mode-card--mp:hover { border-color: rgba(255, 77, 94, .45); }
.mode-card__badge {
  position: absolute; top: 12px; right: 12px; background: var(--red); color: #fff;
  font-size: .62rem; font-weight: 800; padding: 3px 8px; border-radius: 20px; letter-spacing: 1px;
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 50% { opacity: .55; } }
.rules-link {
  margin-top: 22px; background: none; border: 0; color: var(--muted);
  font-size: .9rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.rules-link:hover { color: var(--text); }
.home-stats { margin-top: 28px; color: var(--muted); font-size: .82rem; opacity: .8; }

/* ============ DIFICULDADE ============ */
.difficulty-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 520px; }
.diff-card {
  padding: 22px; border-radius: var(--radius); cursor: pointer; color: var(--text); text-align: left;
  background: var(--surface); border: 1px solid var(--line); transition: transform .15s, border-color .2s;
}
.diff-card:hover { transform: translateY(-3px); border-color: var(--green); }
.diff-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.diff-card p { color: var(--muted); font-size: .82rem; }

/* ============ CONFIG (solo) ============ */
.screen--config { max-width: 620px; margin: 0 auto; width: 100%; }
.config-group { margin-bottom: 22px; }
.config-label { display: block; color: var(--muted); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  font-weight: 700; font-size: .92rem; padding: 11px 16px; border-radius: 11px; cursor: pointer;
  transition: .15s; font-family: inherit;
}
.chip:hover { border-color: rgba(255,255,255,.25); }
.chip.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode-pick {
  text-align: left; background: var(--surface); border: 1px solid var(--line); color: var(--text);
  padding: 16px; border-radius: 14px; cursor: pointer; transition: .15s; font-family: inherit;
}
.mode-pick:hover { border-color: rgba(255,255,255,.25); }
.mode-pick.active { border-color: var(--green); background: rgba(22,217,122,.1); }
.mode-pick h3 { font-size: 1.05rem; margin-bottom: 4px; }
.mode-pick p { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.config-start { width: 100%; margin-top: 10px; }

/* mini-campo de preview da formação */
.mini-pitch {
  position: relative; margin-top: 12px; height: 200px; border-radius: 14px;
  background: repeating-linear-gradient(0deg, var(--pitch-1) 0 12.5%, var(--pitch-2) 12.5% 25%);
  border: 2px solid rgba(255,255,255,.18); overflow: hidden;
}
.mini-pitch::before { content:""; position:absolute; inset:8px; border:2px solid rgba(255,255,255,.3); border-radius:6px; }
.mini-pitch::after { content:""; position:absolute; left:8px; right:8px; top:50%; height:2px; background:rgba(255,255,255,.3); }
.mini-dot {
  position: absolute; width: 22px; height: 22px; border-radius: 50%; transform: translate(-50%,-50%);
  background: linear-gradient(160deg,#fff,#d8e0f5); border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.4);
  display: grid; place-items: center; font-size: .5rem; font-weight: 800; color: #0a0e1a;
  transition: left .25s ease, top .25s ease;
}
.mini-dot.gk { background: linear-gradient(160deg, var(--gold), #f0a93a); }

.btn--ghost {
  background: var(--surface-solid); border: 1px solid var(--line); color: var(--text);
  box-shadow: none; padding: 13px 18px; font-size: .92rem;
}
.btn--ghost:hover:not(:disabled) { border-color: var(--accent); }

/* ============ QUEUE ============ */
.screen--queue { justify-content: center; align-items: center; }
.queue-box { text-align: center; }
.queue-box h2 { margin: 24px 0 8px; font-size: 1.5rem; }
.queue-box p { color: var(--muted); }
.queue-spinner {
  width: 64px; height: 64px; margin: 0 auto; border-radius: 50%;
  border: 5px solid rgba(255,255,255,.1); border-top-color: var(--green); animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ DRAFT ============ */
.draft-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px; backdrop-filter: blur(12px); margin-bottom: 14px;
}
.draft-info { display: flex; flex-direction: column; }
.draft-nation { font-weight: 800; font-size: 1.05rem; }
.draft-edition { color: var(--muted); font-size: .76rem; }
.draft-stage {
  font-family: 'Bebas Neue', sans-serif; letter-spacing: 1.5px; font-size: 1.35rem;
  color: var(--gold); text-align: center;
}
.draft-hint { color: var(--muted); font-size: .82rem; font-weight: 600; margin-left: auto; }

/* painel de seleção sorteada */
.draw-head { padding: 14px 14px 10px; border-bottom: 1px solid var(--line); }
.draw-tag { font-size: .66rem; font-weight: 800; letter-spacing: 1.5px; color: var(--green); }
.draw-title { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 12px; }
.draw-nation { font-size: 1.3rem; font-weight: 800; }
.draw-year { font-size: 1rem; color: var(--gold); font-weight: 700; }
.reroll-row { display: flex; gap: 8px; }
.reroll-btn {
  flex: 1; background: var(--surface-solid); border: 1px solid var(--line); color: var(--text);
  font-weight: 700; font-size: .76rem; padding: 9px 8px; border-radius: 10px; cursor: pointer;
  transition: .15s; font-family: inherit;
}
.reroll-btn:hover:not(:disabled) { border-color: var(--accent); }
.reroll-btn:disabled { opacity: .35; cursor: not-allowed; }
.reroll-btn b { color: var(--green); }

.slot.target .slot__disc {
  border-color: var(--green); background: rgba(22,217,122,.25);
  box-shadow: 0 0 0 4px rgba(22,217,122,.25); animation: pulse 1.3s infinite;
}
.slot__pos-label {
  position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  font-size: .54rem; font-weight: 800; color: rgba(255,255,255,.7); letter-spacing: .5px;
}
.draft-timer {
  font-weight: 800; font-size: 1.2rem; min-width: 48px; text-align: right;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.draft-timer.warn { color: var(--red); animation: pulse .6s infinite; }

.draft-body { display: grid; grid-template-columns: 1fr 320px; gap: 16px; flex: 1; min-height: 0; }

/* Pitch */
.pitch-wrap { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.pitch {
  position: relative; flex: 1; min-height: 380px; border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(0deg, var(--pitch-1) 0 9%, var(--pitch-2) 9% 18%);
  border: 2px solid rgba(255,255,255,.18); box-shadow: var(--shadow);
}
.pitch::before {
  content: ""; position: absolute; inset: 10px; border: 2px solid rgba(255,255,255,.35); border-radius: 8px;
}
.pitch::after {
  content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 2px;
  background: rgba(255,255,255,.35);
}
.pitch__circle {
  position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; transform: translate(-50%,-50%);
  border: 2px solid rgba(255,255,255,.35); border-radius: 50%;
}
.slot {
  position: absolute; transform: translate(-50%, -50%); width: 66px;
  display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer;
}
.slot__disc {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10,14,26,.55); border: 2px dashed rgba(255,255,255,.5);
  font-size: .7rem; color: #fff; transition: transform .15s, background .2s, border .2s;
}
.slot.filled .slot__disc {
  background: linear-gradient(160deg, #fff, #d8e0f5); border: 2px solid #fff; color: #0a0e1a;
  font-weight: 800; box-shadow: 0 6px 16px rgba(0,0,0,.4);
}
.slot.filled.gk .slot__disc { background: linear-gradient(160deg, var(--gold), #f0a93a); }
.slot:active .slot__disc { transform: scale(.92); }
.slot__name {
  font-size: .64rem; font-weight: 600; max-width: 74px; text-align: center; line-height: 1.05;
  text-shadow: 0 1px 3px rgba(0,0,0,.8); color: #fff;
}
.slot__ov {
  position: absolute; top: -4px; right: 6px; background: var(--accent); color: #fff;
  font-size: .58rem; font-weight: 800; padding: 1px 5px; border-radius: 8px; border: 1px solid rgba(255,255,255,.3);
}
.slot.susp .slot__disc { opacity: .4; }

.formation-row {
  display: flex; align-items: center; gap: 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
}
.formation-row label { color: var(--muted); font-size: .85rem; font-weight: 600; }
#formation-select {
  flex: 1; background: var(--surface-solid); color: var(--text); border: 1px solid var(--line);
  border-radius: 9px; padding: 10px; font-family: inherit; font-size: .95rem; font-weight: 700; cursor: pointer;
}

/* Squad panel */
.squad-panel {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(12px); overflow: hidden;
}
.squad-panel__head { padding: 14px 14px 8px; }
.squad-panel__head h3 { font-size: 1rem; margin-bottom: 10px; }
.squad-filter { display: flex; gap: 6px; }
.squad-filter button {
  flex: 1; background: var(--surface-solid); border: 1px solid var(--line); color: var(--muted);
  font-size: .72rem; font-weight: 700; padding: 7px 4px; border-radius: 8px; cursor: pointer; transition: .15s;
}
.squad-filter button.active { background: var(--accent); color: #fff; border-color: transparent; }
.squad-list { flex: 1; overflow-y: auto; padding: 6px 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.player-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 11px;
  background: var(--surface-solid); border: 1px solid transparent; cursor: pointer; transition: .15s;
}
.player-row:hover { border-color: rgba(255,255,255,.2); }
.player-row.selected { border-color: var(--green); background: rgba(22,217,122,.12); }
.player-row.suspended { opacity: .45; cursor: not-allowed; }
.player-row__pos {
  font-size: .62rem; font-weight: 800; width: 30px; height: 24px; border-radius: 6px;
  display: grid; place-items: center; flex-shrink: 0;
}
.pos-GK { background: #f0a93a33; color: var(--gold); }
.pos-DF { background: #4f7cff33; color: #8fb0ff; }
.pos-MF { background: #16d97a33; color: var(--green); }
.pos-FW { background: #ff4d5e33; color: #ff8d98; }
.player-row__name { flex: 1; font-size: .88rem; font-weight: 600; }
.player-row__susp { font-size: .62rem; color: var(--red); font-weight: 700; }
.player-row__ov {
  font-weight: 800; font-size: .9rem; width: 34px; text-align: center; border-radius: 7px; padding: 3px 0;
}
.ov-elite { background: linear-gradient(135deg, var(--gold), #f0a93a); color: #0a0e1a; }
.ov-good { background: rgba(79,124,255,.25); color: #aac1ff; }
.ov-norm { background: var(--surface); color: var(--muted); }

.draft-footer {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}
.lineup-status { color: var(--muted); font-weight: 700; font-size: .92rem; margin-right: auto; }
.lineup-status.ready { color: var(--green); }

/* ============ MATCH ============ */
.screen--match { justify-content: flex-start; }
.match-stage {
  font-family: 'Bebas Neue', sans-serif; letter-spacing: 2px; text-align: center;
  color: var(--gold); font-size: 1.4rem; margin-bottom: 14px;
}
.scoreboard {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; backdrop-filter: blur(12px); box-shadow: var(--shadow);
}
.team { text-align: center; }
.team__name { font-weight: 800; font-size: 1.05rem; }
.team--home { text-align: right; }
.team--away { text-align: left; }
.score { display: flex; align-items: center; gap: 12px; font-size: 2.6rem; font-weight: 900; position: relative; }
.score__x { font-size: 1.3rem; color: var(--muted); }
.score span { font-variant-numeric: tabular-nums; }
.score span.bump { animation: bump .4s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); color: var(--green); } }
.match-clock {
  position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%);
  font-size: .8rem; color: var(--muted); font-weight: 700;
}
.match-feed {
  flex: 1; margin-top: 26px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
  max-width: 560px; width: 100%; align-self: center;
}
.feed-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); animation: slidein .35s ease;
}
@keyframes slidein { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.feed-item.left { align-self: flex-start; }
.feed-item.right { align-self: flex-end; flex-direction: row-reverse; text-align: right; }
.feed-item__min { font-weight: 800; color: var(--muted); font-size: .82rem; min-width: 34px; }
.feed-item__icon { font-size: 1.3rem; }
.feed-item__txt { font-size: .9rem; }
.feed-item__txt b { font-weight: 800; }
.feed-item--goal { border-color: rgba(22,217,122,.4); }
.feed-item--yellow { border-color: rgba(255,210,63,.4); }
.feed-item--red { border-color: rgba(255,77,94,.5); }
.match-pens {
  margin: 18px auto 0; max-width: 420px; width: 100%; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
}
.match-pens h4 { color: var(--gold); margin-bottom: 8px; font-family: 'Bebas Neue'; letter-spacing: 1px; font-size: 1.2rem; }

/* ============ RESULT ============ */
.screen--result, .screen--end { justify-content: center; align-items: center; }
.result-card, .end-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 30px 26px; max-width: 460px; width: 100%; text-align: center;
  backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.result-title { font-family: 'Bebas Neue'; letter-spacing: 1.5px; font-size: 1.6rem; color: var(--gold); }
.result-score { font-size: 3rem; font-weight: 900; margin: 8px 0 4px; }
.result-cards { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.result-card-row { font-size: .85rem; color: var(--muted); }
.result-standings { margin: 16px 0; }
.standings-row {
  display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 10px;
  background: var(--surface-solid); margin-bottom: 6px; font-weight: 700;
}
.standings-row.lead { border: 1px solid var(--green); }
.standings-row small { color: var(--muted); font-weight: 600; }
.result-msg { color: var(--muted); margin: 6px 0 18px; min-height: 1.2em; }
.susp-tag {
  display: inline-flex; align-items: center; gap: 4px; background: rgba(255,77,94,.15);
  color: var(--red); padding: 4px 9px; border-radius: 8px; font-size: .78rem; font-weight: 700; margin: 2px;
}

/* ============ END ============ */
.end-emoji { font-size: 4.5rem; animation: bob 2s ease-in-out infinite; }
.end-title { font-family: 'Bebas Neue'; letter-spacing: 2px; font-size: 2.4rem; margin: 8px 0; }
.end-title.win { color: var(--gold); }
.end-title.lose { color: var(--red); }
.end-sub { color: var(--muted); margin-bottom: 24px; line-height: 1.5; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.confetti i {
  position: absolute; top: -12px; width: 9px; height: 14px; opacity: .9; animation: fall linear forwards;
}
@keyframes fall { to { transform: translateY(105dvh) rotate(540deg); opacity: 0; } }

/* ============ MODAL / TOAST ============ */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal__box {
  background: var(--surface-solid); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px 24px; max-width: 440px; width: 100%; position: relative; box-shadow: var(--shadow);
}
.modal__box h3 { margin-bottom: 16px; font-size: 1.2rem; }
.modal__close {
  position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--muted);
  font-size: 1.8rem; cursor: pointer; line-height: 1;
}
.rules-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.rules-list li { padding-left: 14px; position: relative; color: var(--muted); line-height: 1.5; font-size: .92rem; }
.rules-list li::before { content: "⚽"; position: absolute; left: -6px; font-size: .8rem; }
.rules-list strong { color: var(--text); }
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: var(--surface-solid); border: 1px solid var(--line); color: var(--text);
  padding: 13px 20px; border-radius: 12px; font-weight: 600; font-size: .9rem; z-index: 200;
  box-shadow: var(--shadow); animation: toastin .3s ease;
}
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translateX(-50%); } }

/* ============ BUILD (layout 3 colunas estilo mundialzinho) ============ */
.screen--build { padding: 0; height: 100dvh; }
.app-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 22px; border-bottom: 1px solid var(--line);
  background: rgba(10,14,26,.4); backdrop-filter: blur(10px);
}
.app-brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  font-family: 'Bebas Neue', sans-serif; font-size: 2.4rem; line-height: 1; color: var(--gold);
  letter-spacing: 1px;
}
.brand-dash { color: var(--muted); }
.brand-text { display: flex; flex-direction: column; border-left: 1px solid var(--line); padding-left: 14px; }
.brand-text b { font-family: 'Bebas Neue'; letter-spacing: 2px; font-size: 1.3rem; }
.brand-text span { color: var(--muted); font-size: .6rem; letter-spacing: 2px; }
.app-header-right { display: flex; align-items: center; gap: 16px; }
.header-summary { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: 1.5px; }

.build-grid {
  display: grid; grid-template-columns: 340px 1fr 280px; gap: 18px;
  padding: 18px 22px; height: calc(100dvh - 64px); min-height: 0;
}
.build-left, .build-right { min-height: 0; overflow-y: auto; }
.build-center { display: flex; align-items: stretch; justify-content: center; min-height: 0; }
.build-center .pitch { width: 100%; max-width: 560px; height: 100%; min-height: 0; align-self: center; }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; backdrop-filter: blur(12px);
}
.chip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chip-grid .chip { padding: 11px 4px; text-align: center; }
.btn--roll {
  width: 100%; margin-top: 18px; background: linear-gradient(135deg, var(--red), #d62f3f);
  font-family: 'Bebas Neue'; letter-spacing: 2px; font-size: 1.4rem; padding: 16px;
  box-shadow: 0 10px 28px rgba(255,77,94,.32);
}

.draw-card {
  background: linear-gradient(135deg, #0e1530, #14203f);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px;
}
.draw-tag { font-size: .62rem; font-weight: 800; letter-spacing: 2px; color: var(--muted); }
.draw-title { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; }
.draw-flag { font-size: 1.8rem; }
.draw-nation { font-size: 1.5rem; font-weight: 800; }
.draw-copa { color: var(--red); font-weight: 800; font-size: 1rem; }
.reroll-label { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .5px; margin-bottom: 8px; }
.reroll-label b { color: var(--green); }
.draw-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 38dvh; overflow-y: auto; }
.btn-block { width: 100%; margin-top: 12px; }

/* box score (direita) */
.box-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.box-title { font-size: .8rem; font-weight: 800; letter-spacing: 1.5px; color: var(--muted); }
.box-title b { color: var(--text); }
.box-strength { display: flex; gap: 18px; padding: 10px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.box-strength span { font-size: .72rem; font-weight: 700; letter-spacing: 1px; color: var(--muted); }
.box-strength b { color: var(--green); font-size: 1rem; }
.box-list { display: flex; flex-direction: column; }
.box-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: .82rem;
}
.box-row__role { font-weight: 800; color: var(--muted); width: 42px; font-size: .72rem; letter-spacing: .5px; }
.box-row__name { flex: 1; font-weight: 600; }
.box-row__name.empty { color: rgba(255,255,255,.25); font-weight: 500; }
.box-row__ov { font-weight: 800; color: var(--gold); }

/* slot mostra a função (role) PT-BR */
.slot__role { position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  font-size: .54rem; font-weight: 800; color: rgba(255,255,255,.75); letter-spacing: .5px; }

/* ============ RESPONSIVO ============ */
@media (max-width: 880px) {
  .build-grid { grid-template-columns: 1fr; height: auto; padding: 14px; gap: 14px; }
  .build-center { order: -1; }
  .build-center .pitch { height: 56dvh; }
  .build-right { display: none; }
  .app-header { padding: 12px 14px; }
  .header-summary { display: none; }
  .screen--build { height: auto; min-height: 100dvh; }
}

@media (max-width: 760px) {
  .draft-body { grid-template-columns: 1fr; }
  .pitch { min-height: 300px; }
  .squad-panel { max-height: 38dvh; }
  .home-modes { flex-direction: column; }
  .difficulty-grid { grid-template-columns: 1fr; }
  .score { font-size: 2.1rem; }
  .team__name { font-size: .92rem; }
}
@media (min-width: 761px) {
  .squad-panel { max-height: calc(100dvh - 180px); }
}

/* ============ Tabela da fase de grupos ============ */
.group-table { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 4px; text-align: left; }
.grow {
  display: grid; grid-template-columns: 24px 1fr auto auto; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 10px; background: var(--surface-solid); font-weight: 700;
}
.grow.qualify { border-left: 3px solid var(--green); }
.grow.you { background: rgba(79,124,255,.16); border: 1px solid var(--accent); }
.grow__pos { color: var(--muted); font-weight: 800; text-align: center; }
.grow__pts { color: var(--gold); }
.grow__gd { color: var(--muted); font-size: .82rem; }
.group-legend { color: var(--muted); font-size: .78rem; text-align: center; margin-top: 8px; }

/* ============ A CAMPANHA (jogo a jogo) ============ */
.screen--campaign { padding: 0; }
.camp-titlewrap { display: flex; flex-direction: column; }
.camp-eyebrow { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: 2px; }
.camp-eyebrow b { color: var(--gold); }
.camp-title { font-family: 'Bebas Neue'; font-size: 2.4rem; letter-spacing: 1px; line-height: .95; }
.seg { display: inline-flex; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { background: none; border: 0; color: var(--muted); font-family: inherit; font-weight: 700; font-size: .82rem; padding: 9px 14px; cursor: pointer; }
.seg button.active { background: var(--accent); color: #fff; }

.camp-feed { max-width: 760px; width: 100%; margin: 0 auto; padding: 20px 16px 60px; }
.camp-reveal { width: 100%; margin-top: 6px; }
.cmatch { background: #0c1222; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; animation: slidein .3s ease; }
.cmatch-head { display: grid; grid-template-columns: 84px 1fr auto auto; align-items: center; gap: 12px; padding: 14px 16px; }
.cmatch-stage { font-size: .64rem; font-weight: 800; letter-spacing: 1.5px; color: var(--muted); }
.cmatch-opp { display: flex; align-items: center; gap: 8px; font-size: 1.18rem; font-weight: 800; }
.cmatch-opp .vs { color: var(--muted); font-size: .8rem; font-weight: 600; margin-right: 2px; }
.cmatch-opp .flag { font-size: 1.3rem; }
.cmatch-score { font-family: 'Bebas Neue'; font-size: 1.9rem; color: var(--green); letter-spacing: 1px; }
.cmatch-score.lose { color: var(--red); }
.cmatch-score .pen { font-size: .7rem; color: var(--muted); margin-left: 4px; font-family: 'Inter'; font-weight: 700; }
.cmatch-status { font-weight: 800; font-size: 1rem; min-width: 28px; text-align: right; }
.clock-badge { background: rgba(255,77,94,.18); color: var(--red); font-size: .7rem; font-weight: 800; padding: 3px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.tick-win { color: var(--green); } .tick-lose { color: var(--red); }
.cmatch-body { border-top: 1px solid var(--line); border-left: 3px solid var(--green); padding: 8px 16px 12px; }
.cmatch.collapsed .cmatch-body { display: none; }
.cmatch-sub { display: none; padding: 0 16px 12px; font-size: .82rem; color: var(--muted); }
.cmatch.collapsed .cmatch-sub { display: block; }
.cmatch-sub b { color: var(--text); text-transform: uppercase; font-size: .64rem; letter-spacing: 1px; margin-right: 4px; }
.ev { display: flex; align-items: center; gap: 10px; padding: 5px 2px; font-weight: 700; font-size: .92rem; animation: slidein .25s ease; }
.ev__min { color: var(--muted); width: 34px; font-variant-numeric: tabular-nums; font-size: .82rem; }
.ev__icon { width: 18px; text-align: center; }
.ev--home .ev__name { color: #fff; text-transform: uppercase; letter-spacing: .5px; }
.ev--away .ev__name { color: #ff7a5c; text-transform: uppercase; letter-spacing: .5px; }
.ev--away .ev__icon { color: #ff7a5c; }

.pens { border: 1px dashed var(--gold); border-radius: 10px; margin: 12px 0 4px; padding: 12px 14px; }
.pens h4 { color: var(--gold); font-family: 'Bebas Neue'; letter-spacing: 1px; font-size: 1rem; margin-bottom: 4px; }
.pens .pen-result { text-align: center; font-family: 'Bebas Neue'; font-size: 1.3rem; color: var(--gold); margin-bottom: 8px; }
.pen-row { display: grid; grid-template-columns: 1fr 24px 1fr; gap: 8px; align-items: center; padding: 3px 0; font-size: .82rem; font-weight: 600; }
.pen-row .ph { text-align: right; } .pen-row .pa { text-align: left; }
.pen-miss { opacity: .4; text-decoration: line-through; }

.camp-summary { background: #0c1222; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; display: flex; align-items: center; gap: 28px; margin-top: 10px; flex-wrap: wrap; }
.cs-score { font-family: 'Bebas Neue'; font-size: 4rem; line-height: .9; color: #fff; text-shadow: 3px 3px 0 var(--gold); }
.cs-stats { display: flex; gap: 26px; }
.cs-stats b { font-family: 'Bebas Neue'; font-size: 2rem; color: var(--gold); display: block; line-height: 1; }
.cs-stats span { color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: 1px; }
.cs-outcome { margin-left: auto; font-family: 'Bebas Neue'; font-size: 1.4rem; letter-spacing: 1px; }
.cs-outcome.win { color: var(--gold); } .cs-outcome.lose { color: var(--red); }
.camp-actions { display: flex; gap: 12px; margin-top: 16px; }

/* ============ CARD compartilhável ============ */
.screen--card { align-items: center; justify-content: center; gap: 16px; }
.share-card {
  width: 380px; max-width: 100%; background: linear-gradient(180deg, #0b1224, #060a14);
  border-radius: 18px; padding: 22px 22px 18px; box-shadow: var(--shadow);
}
.share-card.win { border: 3px solid var(--gold); }
.share-card.lose { border: 3px solid #5a3a1a; }
.sc-top { display: flex; justify-content: space-between; align-items: center; font-size: .7rem; color: var(--muted); font-weight: 700; letter-spacing: 1px; }
.sc-top .mark { font-family: 'Bebas Neue'; font-size: 1.3rem; color: var(--gold); letter-spacing: 1px; }
.sc-stamp { text-align: center; margin: 14px 0 6px; position: relative; }
.sc-stamp .word { font-family: 'Bebas Neue'; font-size: 1.8rem; letter-spacing: 2px; }
.sc-stamp .word.win { color: var(--gold); } .sc-stamp .word.lose { color: #e8e0d0; }
.sc-stamp .tag { display: inline-block; border: 2px solid; padding: 1px 8px; border-radius: 4px; font-size: .7rem; font-weight: 800; transform: rotate(-6deg); margin-left: 6px; letter-spacing: 1px; }
.sc-stamp .tag.win { color: var(--green); border-color: var(--green); } .sc-stamp .tag.lose { color: var(--red); border-color: var(--red); }
.sc-bigscore { text-align: center; font-family: 'Bebas Neue'; font-size: 4.5rem; line-height: .9; margin-bottom: 14px; }
.sc-bigscore.win { color: var(--gold); } .sc-bigscore.lose { color: #e8e0d0; }
.sc-statgrid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.sc-statgrid div { text-align: center; padding: 10px 4px; border-right: 1px solid var(--line); }
.sc-statgrid div:last-child { border-right: 0; }
.sc-statgrid b { font-family: 'Bebas Neue'; font-size: 1.7rem; display: block; line-height: 1; color: var(--green); }
.sc-statgrid span { font-size: .54rem; color: var(--muted); font-weight: 800; letter-spacing: .5px; }
.sc-roster { display: flex; flex-direction: column; gap: 5px; }
.sc-prow { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; padding: 7px 10px; background: rgba(255,255,255,.03); border-radius: 8px; font-size: .82rem; }
.sc-prow.star { border: 1px solid var(--gold); }
.sc-prow.star .sc-name { color: var(--gold); }
.sc-prow__ov { color: var(--muted); font-weight: 800; font-size: .72rem; text-align: center; }
.sc-name { font-weight: 700; }
.sc-from { color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .5px; }
.sc-foot { text-align: center; color: var(--muted); font-size: .64rem; margin-top: 14px; letter-spacing: 1px; }
.card-actions { display: flex; gap: 12px; }

/* ============ multi-posição + confirmação ============ */
.slot.eligible .slot__disc {
  border-color: var(--green); background: rgba(22,217,122,.3);
  box-shadow: 0 0 0 5px rgba(22,217,122,.3); animation: pulse 1s infinite; cursor: pointer;
}
.confirm-box { max-width: 460px; }
.confirm-strength { display: flex; gap: 12px; margin: 8px 0 16px; }
.confirm-strength div { flex: 1; text-align: center; background: var(--surface-solid); border-radius: 10px; padding: 12px 4px; }
.confirm-strength b { font-family: 'Bebas Neue'; font-size: 2rem; color: var(--green); display: block; line-height: 1; }
.confirm-strength span { font-size: .58rem; color: var(--muted); font-weight: 800; letter-spacing: 1px; }
.confirm-list { max-height: 40dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.cf-row { display: grid; grid-template-columns: 46px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; background: var(--surface-solid); border-radius: 8px; font-size: .85rem; }
.cf-row__role { font-weight: 800; color: var(--muted); font-size: .64rem; letter-spacing: .5px; }
.cf-row__name { font-weight: 700; }
.cf-row__from { color: var(--muted); font-size: .64rem; font-weight: 700; }
.cf-row__ov { font-weight: 800; color: var(--gold); }
.confirm-actions { display: flex; gap: 10px; }
.confirm-actions .btn { flex: 1; }

/* ============ HOME nova (estilo mundialzinho) ============ */
.screen--home {
  justify-content: flex-start; align-items: stretch; padding: 0; overflow-y: auto;
  background: radial-gradient(1200px 600px at 70% 0%, #3a3119, transparent 60%), linear-gradient(160deg, #2e2814, #221d0f);
  color: #f0ead8;
}
body.light .screen--home { background: radial-gradient(1200px 600px at 70% 0%, #fff, transparent 60%), linear-gradient(160deg, #f1ecdd, #e7dfca); color: #241d0d; }
.home-topbar { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 28px; }
.pill { background: transparent; border: 1px solid currentColor; color: inherit; opacity: .75; border-radius: 22px; padding: 7px 16px; font-weight: 700; font-size: .78rem; cursor: pointer; font-family: inherit; letter-spacing: 1px; }
.pill:hover { opacity: 1; }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 6px 44px 26px; width: 100%; flex: 1; }
.hero-eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: 3px; opacity: .55; }
.hero-bignum { font-family: 'Bebas Neue'; font-size: clamp(5.5rem, 15vw, 11rem); line-height: .78; display: flex; align-items: center; gap: .12em; margin: 4px 0 2px; }
.hero-bignum .dash { width: .42em; height: .13em; background: var(--gold); border-radius: 4px; box-shadow: 0 4px 14px rgba(255,206,77,.4); }
.hero-title { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 900; line-height: 1.0; letter-spacing: -1px; margin-bottom: 16px; }
.hero-desc { opacity: .72; max-width: 380px; line-height: 1.55; font-size: .98rem; margin-bottom: 24px; }
.hero-cta {
  background: #d8392a; color: #fff; font-family: 'Bebas Neue'; font-size: 1.5rem; letter-spacing: 1.5px;
  padding: 15px 34px; border-radius: 7px; box-shadow: 0 12px 28px rgba(216,57,42,.4);
}
.hero-cta:hover { filter: brightness(1.08); }
.hero-mp { display: block; margin-top: 16px; background: none; border: 0; color: inherit; opacity: .6; font-weight: 700; cursor: pointer; font-size: .9rem; font-family: inherit; }
.hero-mp .legacy-tag { font-size: .62rem; background: rgba(127,127,127,.25); padding: 2px 7px; border-radius: 10px; margin-left: 4px; letter-spacing: 1px; }
.hero-mp:hover { opacity: 1; }

.hero-right { display: flex; justify-content: center; }
.home-pitch {
  position: relative; width: 100%; max-width: 330px; aspect-ratio: 3 / 3.6; border-radius: 10px;
  background: repeating-linear-gradient(0deg, #1c7a3e 0 11%, #1e8744 11% 22%);
  border: 3px solid rgba(255,255,255,.5); box-shadow: var(--shadow);
}
.home-pitch::before { content: ""; position: absolute; inset: 8px; border: 2px solid rgba(255,255,255,.4); border-radius: 4px; }
.home-pitch::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 2px; background: rgba(255,255,255,.4); }
.hd { position: absolute; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; z-index: 1; }
.hd__n { width: 34px; height: 34px; border-radius: 50%; background: #0c0c0c; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .8rem; border: 2px solid rgba(255,255,255,.25); }
.hd__nm { font-size: .54rem; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.9); }

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1180px; margin: 0 auto 18px;
  width: calc(100% - 88px); border: 1px solid rgba(127,127,127,.25); border-radius: 8px; overflow: hidden; background: rgba(0,0,0,.22);
}
body.light .steps { background: rgba(0,0,0,.04); }
.step { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-right: 1px solid rgba(127,127,127,.2); }
.step:last-child { border-right: 0; }
.step-n { font-family: 'Bebas Neue'; font-size: 2rem; color: #d8392a; }
.step-tx b { display: block; font-family: 'Bebas Neue'; letter-spacing: 1px; font-size: 1.05rem; }
.step-tx span { font-size: .72rem; opacity: .6; }
.screen--home .home-stats { text-align: center; opacity: .5; padding: 4px 0 24px; margin: 0; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 20px; padding: 6px 22px 20px; }
  .hero-right { order: -1; }
  .home-pitch { max-width: 240px; }
  .steps { grid-template-columns: 1fr; width: calc(100% - 44px); }
  .step { border-right: 0; border-bottom: 1px solid rgba(127,127,127,.2); }
}

/* light theme global (toggle CLARO) */
body.light {
  --bg: #efe9da; --bg-2: #e4dcc8; --surface: rgba(255,255,255,.75); --surface-solid: #fbf8f0;
  --line: rgba(0,0,0,.12); --text: #241d0d; --muted: #7a7158;
}

/* overall texto limpo (sem caixa) no confirma-time */
.cf-row__ov.ovt-elite { color: var(--gold); }
.cf-row__ov.ovt-good { color: #8fb0ff; }
.cf-row__ov.ovt-norm { color: var(--muted); }
.confirm-list { padding-right: 6px; }

/* ============ Campo AO VIVO na campanha ============ */
.camp-live {
  position: sticky; top: 8px; z-index: 5; margin-bottom: 14px;
  background: #0c1222; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow);
}
.cl-bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; }
.cl-stage { font-size: .62rem; font-weight: 800; letter-spacing: 1.5px; color: var(--muted); }
.cl-team { font-weight: 800; font-size: 1rem; flex: 1; text-align: right; }
.cl-team--away { text-align: left; }
.cl-score { font-family: 'Bebas Neue'; font-size: 1.9rem; letter-spacing: 1px; display: flex; align-items: baseline; gap: 7px; color: var(--green); }
.cl-score i { font-size: 1rem; color: var(--muted); font-style: normal; }
.cl-score b.bump { animation: bump .4s ease; }
.cl-clock { background: rgba(255,77,94,.18); color: var(--red); font-size: .72rem; font-weight: 800; padding: 4px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; min-width: 38px; text-align: center; }

.live-pitch {
  position: relative; height: 230px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, transparent 58px, rgba(255,255,255,.16) 58px 60px, transparent 61px),
    repeating-linear-gradient(90deg, #198a45 0 9%, #1b9a4d 9% 18%);
  border-top: 1px solid var(--line);
}
.live-pitch::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 2px; background: rgba(255,255,255,.18); transform: translateX(-50%); }
.live-pitch::after { content: ""; position: absolute; inset: 6px; border: 2px solid rgba(255,255,255,.16); border-radius: 4px; }
.lp-goal { position: absolute; top: 50%; transform: translateY(-50%); width: 7px; height: 64px; background: rgba(255,255,255,.5); }
.lp-goal.l { left: 2px; } .lp-goal.r { right: 2px; }
.lp-box { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 120px; border: 2px solid rgba(255,255,255,.14); }
.lp-box.l { left: 6px; border-left: 0; } .lp-box.r { right: 6px; border-right: 0; }
.lp-dot {
  position: absolute; width: 18px; height: 18px; border-radius: 50%; transform: translate(-50%,-50%);
  transition: left linear, top linear; z-index: 2; box-shadow: 0 2px 5px rgba(0,0,0,.5);
  display: grid; place-items: center; font-size: .5rem; font-weight: 800; color: #fff;
}
.lp-dot.home { background: linear-gradient(160deg,#4f7cff,#2f5be0); }
.lp-dot.away { background: linear-gradient(160deg,#ff5a6a,#d83040); }
.lp-dot.gk { background: linear-gradient(160deg,var(--gold),#e0a52f); color:#0a0e1a; }
.lp-dot.has { box-shadow: 0 0 0 3px rgba(255,255,255,.5), 0 2px 6px rgba(0,0,0,.5); }
.lp-ball {
  position: absolute; width: 13px; height: 13px; border-radius: 50%; transform: translate(-50%,-50%);
  background: radial-gradient(circle at 35% 30%, #fff, #cfd6e6); border: 1px solid rgba(0,0,0,.3);
  z-index: 3; transition: left linear, top linear; left: 50%; top: 50%;
}
.lp-flash {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-family: 'Bebas Neue'; font-size: 2.6rem; letter-spacing: 2px; color: #fff; opacity: 0;
  text-shadow: 0 3px 14px rgba(0,0,0,.7); z-index: 4;
}
.lp-flash.show { animation: flashgol 1.1s ease; }
@keyframes flashgol { 0%{opacity:0;transform:scale(.6)} 20%{opacity:1;transform:scale(1.1)} 75%{opacity:1;transform:scale(1)} 100%{opacity:0} }
.lp-flash .gtxt { color: var(--green); }
.lp-flash .gname { display:block; font-size: 1.1rem; color:#fff; letter-spacing:1px; margin-top:2px; }
@media (max-width: 700px){ .live-pitch{ height: 180px; } .cl-team{ font-size:.82rem } }

/* pênaltis ao vivo */
.pen-rows { display: flex; flex-direction: column; }
.pvs { text-align: center; color: var(--muted); font-size: .78rem; }
.pa.pending { color: var(--muted); opacity: .45; }
.pen-result { transition: color .2s; }

/* ============ Polish do montar-time (build) ============ */
.screen--build { background: radial-gradient(1000px 500px at 80% -10%, rgba(79,124,255,.10), transparent 60%), radial-gradient(800px 500px at 0% 110%, rgba(22,217,122,.08), transparent 55%), var(--bg); }
.build-left .panel { background: linear-gradient(180deg, rgba(26,36,62,.85), rgba(16,23,42,.85)); box-shadow: var(--shadow); }
.config-label { color: var(--muted); }

/* chips de formação/estilo mais elegantes */
.chip { transition: transform .12s, border-color .2s, background .2s; }
.chip:hover { transform: translateY(-1px); }
.chip.active { box-shadow: 0 6px 16px rgba(79,124,255,.35); }
.btn--roll { transition: transform .12s, filter .2s; }
.btn--roll:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* card da seleção sorteada */
.draw-card { background: linear-gradient(135deg, #14213f, #0c1326); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); position: relative; overflow: hidden; }
.draw-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; background: radial-gradient(circle, rgba(255,206,77,.12), transparent 70%); }
.draw-tag { color: var(--green); }
.draw-flag { font-size: 2.1rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.draw-nation { font-size: 1.6rem; }
.reroll-btn { transition: border-color .2s, transform .1s; }
.reroll-btn:hover:not(:disabled) { transform: translateY(-1px); }

/* lista de jogadores sorteados — cards com borda por posição */
.draw-list .player-row, #draw-list .player-row {
  padding: 11px 12px; border-radius: 12px; border-left: 3px solid transparent;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  transition: transform .12s, border-color .2s, background .2s;
}
.draw-list .player-row:hover { transform: translateX(2px); background: rgba(255,255,255,.06); }
.player-row.pos-left-GK, .player-row:has(.pos-GK) { border-left-color: var(--gold); }
.player-row:has(.pos-DF) { border-left-color: #4f7cff; }
.player-row:has(.pos-MF) { border-left-color: var(--green); }
.player-row:has(.pos-FW) { border-left-color: #ff7a5c; }
.player-row.selected { border-left-color: var(--green) !important; background: rgba(22,217,122,.14); }
.player-row__pos { border-radius: 7px; padding: 3px 6px; min-width: 38px; }
.player-row__name { font-size: .9rem; }
/* overall vira pílula circular limpa */
.player-row__ov { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; }
.player-row__ov.ov-elite { background: linear-gradient(160deg, var(--gold), #e0a52f); color: #1a1206; box-shadow: 0 3px 8px rgba(255,206,77,.3); }
.player-row__ov.ov-good { background: rgba(79,124,255,.22); color: #aac1ff; }
.player-row__ov.ov-norm { background: rgba(255,255,255,.06); color: var(--muted); }

/* box score à direita */
.build-right { background: linear-gradient(180deg, rgba(26,36,62,.5), rgba(16,23,42,.5)); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.box-row { transition: background .2s; border-radius: 8px; padding: 9px 8px; }
.box-row:hover { background: rgba(255,255,255,.03); }
.box-row__role { background: rgba(255,255,255,.05); border-radius: 6px; padding: 3px 7px; min-width: 40px; text-align: center; }
.box-row__name.empty { font-style: italic; }
.box-strength b { text-shadow: 0 0 14px rgba(22,217,122,.4); }

/* discos no campo (build) mais bonitos */
.slot.filled .slot__disc { box-shadow: 0 4px 12px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.6); }
.slot__name { font-weight: 700; }
.slot.target .slot__disc, .slot.eligible .slot__disc { cursor: pointer; }

/* ============ BUILD no tema MARROM (igual mundialzinho) ============ */
.screen--build {
  background: radial-gradient(1100px 600px at 75% -8%, #3a3119, transparent 60%), linear-gradient(160deg, #2e2814, #221d0f);
  color: #f0ead8;
}
body.light .screen--build { background: radial-gradient(1100px 600px at 75% -8%, #fff, transparent 60%), linear-gradient(160deg, #f1ecdd, #e7dfca); color: #241d0d; }
.screen--build .app-header { background: transparent; border-bottom: 1px solid rgba(240,234,216,.18); }
.screen--build .brand-text b, .screen--build .brand-text span { color: inherit; }
.screen--build .header-summary { color: rgba(240,234,216,.55); }
.screen--build .back-btn { color: rgba(240,234,216,.6); }
.screen--build .back-btn:hover { color: #f0ead8; }

/* coluna esquerda: cards navy com moldura dourada */
.screen--build .panel { background: transparent; border: 0; padding: 0; backdrop-filter: none; }
.screen--build .config-label { color: rgba(240,234,216,.55); }
.screen--build #panel-config { background: #0c1326; border: 1px solid rgba(255,206,77,.25); border-radius: 14px; padding: 18px; }
.screen--build .chip { background: #131c32; border-color: rgba(255,255,255,.1); color: #f0ead8; }
.screen--build .chip.active { background: linear-gradient(135deg, #d8392a, #b62f22); box-shadow: 0 6px 16px rgba(216,57,42,.35); }

.draw-card {
  background: #0c1326; border: 2px solid rgba(255,206,77,.4); border-radius: 14px; padding: 18px 20px;
}
.draw-card .draw-tag { color: rgba(240,234,216,.55); letter-spacing: 3px; }
.draw-card .draw-nation { color: #f6f1e3; font-size: 1.7rem; }
.draw-card .draw-copa { color: #ff5a3c; font-size: 1.05rem; }
.reroll-label { color: rgba(240,234,216,.55); }
.reroll-btn { background: transparent; border: 1px solid rgba(240,234,216,.3); color: #f0ead8; border-radius: 8px; font-weight: 800; letter-spacing: .5px; }
.reroll-btn:hover:not(:disabled) { border-color: var(--gold); }

/* lista de jogadores: moldura dourada + linhas navy */
.draw-list { border: 1px solid rgba(255,206,77,.25); border-radius: 12px; padding: 8px; max-height: 42dvh; background: rgba(0,0,0,.18); }
.screen--build .player-row {
  display: grid; grid-template-columns: 30px 1fr auto 30px; align-items: center; gap: 10px;
  background: #0d1424; border: 1px solid rgba(255,255,255,.05); border-left: 1px solid rgba(255,255,255,.05);
  border-radius: 9px; padding: 10px 12px; transition: background .15s, transform .1s;
}
.screen--build .player-row:hover { background: #15203a; transform: none; }
.screen--build .player-row.selected { background: rgba(216,57,42,.2); border-color: #d8392a; }
.player-row__jersey { color: rgba(240,234,216,.4); font-weight: 800; font-size: .76rem; }
.screen--build .player-row__name { color: #f0ead8; font-weight: 700; }
.screen--build .player-row__pos { background: transparent; color: rgba(240,234,216,.5); font-weight: 800; font-size: .72rem; padding: 0; min-width: auto; letter-spacing: .5px; }
.screen--build .player-row__ov { background: transparent; color: var(--gold); width: auto; height: auto; font-size: .95rem; }
.screen--build .player-row__ov.ov-norm { color: rgba(240,234,216,.6); }
.screen--build .player-row.suspended { opacity: .4; }
.btn--roll { background: linear-gradient(135deg, #d8392a, #b62f22); }

/* coluna direita: box score só com linhas (sem caixa) */
.screen--build .build-right { background: transparent; border: 0; padding: 0; }
.box-title, .screen--build .box-title b { color: rgba(240,234,216,.6); }
.screen--build .box-strength { border-color: rgba(240,234,216,.15); }
.screen--build .box-strength span { color: rgba(240,234,216,.55); }
.screen--build .box-strength b { color: #ff5a3c; }
.screen--build .box-row { border-bottom: 1px solid rgba(240,234,216,.1); border-radius: 0; padding: 11px 2px; }
.screen--build .box-row:hover { background: transparent; }
.screen--build .box-row__role { background: transparent; color: rgba(240,234,216,.5); padding: 0; min-width: 38px; text-align: left; }
.screen--build .box-row__name { color: #f0ead8; }
.screen--build .box-row__name.empty { color: rgba(240,234,216,.3); }
.screen--build .box-row__ov { color: var(--gold); }

/* campo central: moldura dourada/oliva */
.build-center .pitch { border: 3px solid rgba(255,206,77,.35); box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.slot__role { color: rgba(255,255,255,.8); }

/* ============ Campo ao vivo: 11 x 11 com nomes ============ */
.live-pitch { height: 320px; }
@media (max-width: 700px) { .live-pitch { height: 230px; } }
.lp-dot { width: 15px; height: 15px; }
.lp-dot.has { box-shadow: 0 0 0 3px rgba(255,255,255,.6), 0 2px 6px rgba(0,0,0,.6); z-index: 3; }
.lp-name {
  position: absolute; bottom: 105%; left: 50%; transform: translateX(-50%);
  font-size: .48rem; font-weight: 700; color: #fff; white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.95); pointer-events: none; letter-spacing: .2px;
}
.lp-dot.away .lp-name { color: #ffe3e3; }
.slot.moving .slot__disc { outline: 3px solid var(--gold); outline-offset: 2px; }

/* goleiro pulando */
.lp-dot.gk { animation: gkbob 1.3s ease-in-out infinite; }
@keyframes gkbob { 0%,100% { transform: translate(-50%,-50%); } 50% { transform: translate(-50%,-72%); } }

/* ============ HOME nas MINHAS cores (sobrescreve o marrom do mundialzinho) ============ */
.screen--home {
  background:
    radial-gradient(900px 500px at 50% -8%, rgba(79,124,255,.22), transparent 60%),
    radial-gradient(700px 500px at 88% 100%, rgba(138,92,255,.20), transparent 55%),
    radial-gradient(620px 420px at 6% 92%, rgba(22,217,122,.16), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
}
body.light .screen--home {
  background:
    radial-gradient(900px 500px at 50% -8%, rgba(79,124,255,.16), transparent 60%),
    radial-gradient(620px 420px at 6% 92%, rgba(22,217,122,.14), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
}
.hero-eyebrow { color: var(--muted); opacity: 1; letter-spacing: 3px; }
.hero-bignum { color: var(--text); }
.hero-bignum .dash { background: linear-gradient(135deg, var(--green), var(--accent)); box-shadow: 0 4px 18px rgba(22,217,122,.45); }
.hero-title {
  color: var(--text);
  background: linear-gradient(120deg, var(--text) 40%, var(--green) 75%, var(--accent));
  -webkit-background-clip: text; background-clip: text;
}
.hero-desc { color: var(--muted); opacity: 1; }
.hero-cta { background: linear-gradient(135deg, var(--green), var(--green-2)); color: #051; box-shadow: 0 12px 28px rgba(22,217,122,.4); }
.hero-cta:hover { filter: brightness(1.06); }
.hero-mp { color: var(--muted); opacity: 1; }
.hero-mp:hover { color: var(--text); }
.pill { color: var(--text); opacity: .78; }
.steps { border-color: var(--line); background: var(--surface); backdrop-filter: blur(8px); }
.step { border-color: var(--line); }
.step-n { color: var(--green); }
.step-tx b { color: var(--text); }
.step-tx span { color: var(--muted); }
.screen--home .home-stats { color: var(--muted); }
.home-pitch { border-color: rgba(79,124,255,.45); box-shadow: 0 16px 50px rgba(79,124,255,.18), var(--shadow); }

/* ============ Conta (auth) + Placar ============ */
.auth-box { max-width: 380px; }
.auth-box h3 { margin-bottom: 2px; }
.auth-sub { color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 16px; background: var(--surface-solid); border-radius: 10px; padding: 4px; }
.auth-tabs button { flex: 1; background: none; border: 0; color: var(--muted); font-family: inherit; font-weight: 700; padding: 9px; border-radius: 8px; cursor: pointer; }
.auth-tabs button.active { background: var(--accent); color: #fff; }
.auth-input { width: 100%; background: var(--surface-solid); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 13px 14px; font-family: inherit; font-size: .95rem; margin-bottom: 10px; }
.auth-input:focus { outline: 0; border-color: var(--accent); }
.auth-err { color: var(--red); font-size: .82rem; min-height: 1em; margin-bottom: 8px; font-weight: 600; }
.auth-note { color: var(--muted); font-size: .74rem; margin-top: 10px; line-height: 1.4; }
.auth-stats { display: flex; gap: 12px; margin: 6px 0 16px; }
.auth-stats div { flex: 1; text-align: center; background: var(--surface-solid); border-radius: 10px; padding: 12px 4px; }
.auth-stats b { font-family: 'Bebas Neue'; font-size: 1.8rem; color: var(--gold); display: block; line-height: 1; }
.auth-stats span { font-size: .56rem; color: var(--muted); font-weight: 800; letter-spacing: 1px; }

.screen--leaderboard { padding: 0; }
.lb-wrap { max-width: 680px; width: 100%; margin: 0 auto; padding: 22px 18px; }
.lb-list { display: flex; flex-direction: column; gap: 6px; }
.lb-loading { color: var(--muted); text-align: center; padding: 40px; }
.lb-row { display: grid; grid-template-columns: 36px 1fr 60px 60px 70px; align-items: center; gap: 8px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.lb-row.lb-head { background: transparent; border: 0; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 4px 14px; }
.lb-row.me { border-color: var(--green); background: rgba(22,217,122,.1); }
.lb-pos { font-family: 'Bebas Neue'; font-size: 1.4rem; color: var(--gold); text-align: center; }
.lb-team b { display: block; font-weight: 800; }
.lb-team small { color: var(--muted); font-size: .72rem; }
.lb-won { font-family: 'Bebas Neue'; font-size: 1.5rem; color: var(--green); }
.lb-row span:nth-child(4), .lb-row span:nth-child(5) { color: var(--muted); font-weight: 700; }

/* sobe o eyebrow (descola do 7-0) */
.hero-eyebrow { display: block; margin-bottom: 18px; }

/* ============ Multiplayer ============ */
.mp-lobby { display: flex; gap: 18px; max-width: 720px; margin: 40px auto 0; padding: 0 18px; flex-wrap: wrap; }
.mp-card { flex: 1; min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; }
.mp-card__ic { font-size: 2.2rem; }
.mp-card h3 { font-size: 1.2rem; margin: 8px 0 6px; }
.mp-card p { color: var(--muted); font-size: .86rem; margin-bottom: 16px; line-height: 1.45; }
.mp-code-input { text-align: center; font-family: 'Bebas Neue'; font-size: 1.6rem; letter-spacing: 6px; }

.mpw-body { max-width: 560px; width: 100%; margin: 0 auto; padding: 30px 18px; }
.mpw-box { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px 24px; }
.mpw-box h3 { font-size: 1.4rem; margin-bottom: 12px; }
.mpw-label { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: 2px; }
.mpw-code-big { font-family: 'Bebas Neue'; font-size: 4rem; letter-spacing: 8px; color: var(--gold); line-height: 1; margin: 6px 0 10px; }
.mpw-spin { width: 48px; height: 48px; margin: 18px auto; border-radius: 50%; border: 5px solid rgba(255,255,255,.1); border-top-color: var(--green); animation: spin 1s linear infinite; }
.mpw-status { color: var(--muted); font-weight: 600; margin-top: 8px; }
.mpw-sub { color: var(--muted); font-size: .85rem; margin-bottom: 14px; }

.mpw-reveal h3 { font-size: 1.4rem; text-align: center; }
.mpw-reveal .mpw-sub { text-align: center; }
.rv-card { background: var(--surface-solid); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
.rv-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: rgba(255,77,94,.12); border-bottom: 1px solid var(--line); }
.rv-head b { font-size: 1.05rem; } .rv-head span { color: var(--muted); font-size: .76rem; font-weight: 700; }
.rv-list { padding: 8px; display: flex; flex-direction: column; gap: 4px; max-height: 44dvh; overflow-y: auto; }
.rv-row { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: .85rem; }
.rv-row:hover { background: rgba(255,255,255,.03); }
.rv-pos { color: var(--muted); font-weight: 800; font-size: .66rem; }
.rv-row b { font-weight: 700; } .rv-row i { color: var(--gold); font-weight: 800; font-style: normal; }

.mpw-final { text-align: center; }
.mf-head { font-family: 'Bebas Neue'; font-size: 1.8rem; letter-spacing: 1px; margin-bottom: 20px; }
.mf-head.win { color: var(--gold); } .mf-head.lose { color: var(--red); }
.mf-cols { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 22px; }
.mf-side { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 12px; }
.mf-side.win { border-color: var(--gold); background: rgba(255,206,77,.08); }
.mf-side h4 { font-size: 1rem; margin-bottom: 8px; }
.mf-pts { font-family: 'Bebas Neue'; font-size: 2.6rem; color: var(--green); line-height: 1; }
.mf-pts small { font-size: .9rem; color: var(--muted); margin-left: 3px; }
.mf-meta { color: var(--muted); font-size: .74rem; margin-top: 6px; }
.mf-vs { font-family: 'Bebas Neue'; font-size: 1.6rem; color: var(--muted); }

/* reveal: dois times lado a lado */
.rv-cols { display: flex; gap: 14px; margin: 14px 0; }
.rv-card { flex: 1; min-width: 0; }
.rv-card.mine { border-color: var(--green); }
.rv-card.mine .rv-head { background: rgba(22,217,122,.12); }
.rv-head { display: flex; justify-content: space-between; align-items: center; }
.rv-ov { font-family: 'Bebas Neue'; font-size: 1.5rem; color: var(--gold); }
.rv-tag { font-size: .58rem; font-weight: 800; letter-spacing: 1.5px; color: var(--muted); padding: 4px 16px 0; }
@media (max-width: 620px) { .rv-cols { flex-direction: column; } }

/* tabela do grupo dentro da campanha */
.group-card { background: #0c1222; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; animation: slidein .3s ease; }
.gc-head { font-size: .72rem; font-weight: 800; letter-spacing: 1px; color: var(--gold); text-transform: uppercase; margin-bottom: 10px; }

/* lobby: vagas de jogadores */
.lobby-slots { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.lb-slot { padding: 10px 14px; border-radius: 10px; background: var(--surface-solid); border: 1px solid var(--line); font-weight: 700; }
.lb-slot.filled { border-color: var(--green); }
.lb-slot i { color: var(--muted); font-weight: 500; }
.mp-count .chip { min-width: 48px; }

/* ranking final do confronto */
.rank-list { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 18px; text-align: left; }
.rank-row { display: grid; grid-template-columns: 38px 1fr auto 48px; align-items: center; gap: 10px; padding: 11px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.rank-row.first { border-color: var(--gold); background: rgba(255,206,77,.08); }
.rank-row.me { box-shadow: inset 3px 0 0 var(--green); }
.rank-pos { font-family: 'Bebas Neue'; font-size: 1.4rem; color: var(--gold); text-align: center; }
.rank-team b { display: block; font-weight: 800; }
.rank-team small { color: var(--muted); font-size: .72rem; }
.rank-pts { font-family: 'Bebas Neue'; font-size: 1.5rem; color: var(--green); }
.rank-pts small { font-size: .8rem; color: var(--muted); margin-left: 2px; }
.rank-gd { color: var(--muted); font-weight: 700; text-align: right; }

/* Multiplayer destacado na home (disponível, não mais "em breve") */
.hero-mp {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px;
  background: rgba(255,77,94,.12); border: 1px solid var(--red); color: var(--text);
  font-weight: 800; font-size: .92rem; padding: 11px 18px; border-radius: 12px; cursor: pointer;
  font-family: inherit; opacity: 1; transition: transform .12s, box-shadow .2s, background .2s;
}
.hero-mp:hover { transform: translateY(-2px); background: rgba(255,77,94,.2); box-shadow: 0 8px 22px rgba(255,77,94,.3); }
.hero-mp__live {
  background: var(--red); color: #fff; font-size: .6rem; font-weight: 900; letter-spacing: 1.5px;
  padding: 3px 8px; border-radius: 20px; animation: pulse 1.5s infinite;
}

/* wordmark MUNDIALZINHO no lugar do antigo 7-0 (fonte condensada Bebas + gradiente) */
.hero-word {
  font-size: clamp(2.4rem, 8.5vw, 6rem); letter-spacing: 1.5px; line-height: .92; font-weight: 400;
  background: linear-gradient(120deg, #fff 22%, var(--green) 62%, var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin: 2px 0 6px;
}

/* reveal responsivo p/ 2-5 times (grid que quebra, cards compactos) */
.mpw-body { max-width: 820px; }
.mpw-reveal .rv-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px; margin: 14px 0; align-items: start;
}
.mpw-reveal .rv-card { flex: none; min-width: 0; margin-bottom: 0; }
.mpw-reveal .rv-head { padding: 10px 12px; }
.mpw-reveal .rv-head b { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpw-reveal .rv-ov { font-size: 1.3rem; }
.mpw-reveal .rv-list { max-height: 210px; padding: 6px; }
.mpw-reveal .rv-row { grid-template-columns: 36px 1fr auto; padding: 5px 8px; font-size: .76rem; gap: 8px; }
.mpw-reveal .rv-tag { padding: 3px 12px 0; }
@media (max-width: 440px) { .mpw-reveal .rv-cols { grid-template-columns: 1fr; } }

/* ============ Copa multiplayer sincronizada (grupos + chave) ============ */
.cup-status { text-align: center; font-weight: 800; color: var(--gold); padding: 6px 10px; margin-bottom: 14px; font-size: .92rem; min-height: 1.2em;
  background: rgba(247,201,72,.08); border: 1px solid rgba(247,201,72,.22); border-radius: 999px; }

.cup-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.cup-grp { background: linear-gradient(180deg, #101b36, #0b1326); border: 1px solid var(--line); border-radius: 14px; padding: 0 0 8px; overflow: hidden; }
.cup-grp.mine { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), 0 6px 22px rgba(22,217,122,.12); }
.cg-h { font-family: 'Bebas Neue', sans-serif; font-size: 1.05rem; letter-spacing: 1.5px; color: #0c1222;
  background: linear-gradient(90deg, var(--gold), #ffe49a); padding: 6px 12px; margin-bottom: 6px; font-weight: 700; }
.cup-grp.mine .cg-h { background: linear-gradient(90deg, var(--green), #7ef0b3); }
.cg-row { display: grid; grid-template-columns: 22px 1fr 26px 34px 30px; align-items: center; gap: 6px; padding: 5px 10px; font-size: .82rem; }
.cg-row + .cg-row { border-top: 1px solid rgba(255,255,255,.05); }
.cg-head { font-size: .58rem; font-weight: 800; letter-spacing: .5px; color: var(--muted); text-transform: uppercase; padding-top: 2px; padding-bottom: 2px; }
.cg-head .cg-name { text-align: left; }
.cg-pos { color: var(--muted); font-weight: 800; text-align: center; }
.cg-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cg-col { text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.cg-pts { text-align: center; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.cg-row.q { background: linear-gradient(90deg, rgba(22,217,122,.14), transparent); box-shadow: inset 3px 0 0 var(--green); }
.cg-row.q .cg-pos { color: var(--green); }
.cg-row.you { background: linear-gradient(90deg, rgba(79,124,255,.28), rgba(79,124,255,.08)); }
.cg-row.you .cg-name { font-weight: 800; color: #cdd9ff; }
.cg-row.you.q { box-shadow: inset 3px 0 0 var(--green); }

.cup-bracket { display: flex; flex-direction: column; gap: 16px; }
.cb-col { width: 100%; }
.cb-h { font-family: 'Bebas Neue', sans-serif; font-size: 1.05rem; letter-spacing: 2px; color: var(--gold); margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px; }
.cb-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(247,201,72,.4), transparent); }
.cb-ties { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.cb-tie { background: linear-gradient(180deg, #101b36, #0b1326); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cb-tie.pend { opacity: .65; border-style: dashed; }
.cb-side { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; font-size: .82rem; }
.cb-side span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-side b { font-variant-numeric: tabular-nums; color: #fff; }
.cb-side.win { font-weight: 800; background: linear-gradient(90deg, rgba(22,217,122,.14), transparent); box-shadow: inset 3px 0 0 var(--green); }
.cb-side.win b { color: var(--green); }
.cb-side:first-child { border-bottom: 1px solid rgba(255,255,255,.06); }
.cb-side.you { background: linear-gradient(90deg, rgba(79,124,255,.26), transparent); }

/* resultados dos confrontos de jogadores na rodada (multiplayer) */
.cup-results:not(:empty) { margin-top: 12px; background: #0c1222; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.cr-h { font-size: .62rem; font-weight: 800; letter-spacing: 1px; color: var(--gold); text-transform: uppercase; margin-bottom: 6px; text-align: center; }
.cr-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 4px 0; font-size: .82rem; }
.cr-row + .cr-row { border-top: 1px solid rgba(255,255,255,.06); }
.cr-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-t:first-child { text-align: right; }
.cr-t.you { color: var(--green); font-weight: 800; }
.cr-sc { font-weight: 800; color: #fff; white-space: nowrap; }

/* layout multiplayer: usa a página inteira — tabela de um lado, campo no meio, gols embaixo */
.camp-feed.mp { max-width: 1320px; width: min(96vw, 1320px); display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(380px, 42vw, 620px);
  grid-template-areas: "live table" "goals table"; gap: 20px; align-items: start; }
.camp-feed.mp #camp-live { grid-area: live; margin: 0; }
.camp-feed.mp #camp-goals { grid-area: goals; }
.camp-feed.mp #camp-matches { grid-area: table;
  background: linear-gradient(180deg, #0c1426, #0a1020); border: 1px solid var(--line); border-radius: 18px; padding: 16px 16px 18px; }
.camp-feed.mp .live-pitch { height: 400px; }
@media (max-width: 880px) {
  .camp-feed.mp { width: 100%; grid-template-columns: 1fr; grid-template-areas: "live" "goals" "table"; gap: 14px; }
  .camp-feed.mp .live-pitch { height: 300px; }
}

/* feed de gols ao vivo */
.camp-goals:not(:empty) { background: #0c1222; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.gf-h, .pk-title { font-size: .62rem; font-weight: 800; letter-spacing: 1px; color: var(--gold); text-transform: uppercase; margin-bottom: 6px; }
.gf-row { display: flex; align-items: center; gap: 8px; padding: 5px 0 5px 6px; font-size: .88rem; border-top: 1px solid rgba(255,255,255,.05); animation: gfin .3s ease; }
.gf-row.home { border-left: 3px solid var(--green); }
.gf-row.away { border-left: 3px solid var(--gold); }
.gf-min { color: var(--muted); font-weight: 700; min-width: 30px; }
.gf-scorer { font-weight: 700; }
.gf-team { color: var(--muted); margin-left: auto; font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; }
@keyframes gfin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* disputa de pênaltis */
.pk-title { text-align: center; margin-bottom: 10px; }
.pk-team { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.pk-name { min-width: 84px; max-width: 40%; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-dots { display: flex; gap: 5px; flex-wrap: wrap; }
.pk-dot { width: 13px; height: 13px; border-radius: 50%; display: inline-block; animation: pkpop .25s ease; }
.pk-dot.in { background: var(--green); }
.pk-dot.out { background: transparent; border: 2px solid #d9534f; }
.pk-now { margin-top: 10px; text-align: center; font-size: .92rem; min-height: 1.2em; }
.pk-sc { color: var(--gold); font-weight: 800; }
@keyframes pkpop { from { transform: scale(0); } to { transform: scale(1); } }
/* log dos pênaltis com nome de quem marcou/perdeu */
.pk-log { margin-top: 12px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.pk-k { display: grid; grid-template-columns: 16px 1fr auto auto; align-items: center; gap: 8px; font-size: .82rem; padding: 3px 2px; animation: gfin .25s ease; }
.pk-kmark { width: 11px; height: 11px; border-radius: 50%; }
.pk-k.in .pk-kmark { background: var(--green); }
.pk-k.out .pk-kmark { background: transparent; border: 2px solid #d9534f; }
.pk-k b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-kteam { color: var(--muted); font-size: .72rem; }
.pk-kres { font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; }
.pk-k.in .pk-kres { color: var(--green); }
.pk-k.out .pk-kres { color: #e87a7a; }

/* flash da vaga onde o jogador entrou / foi trocado */
.slot.flash .slot__disc { animation: slotflash .7s ease; }
@keyframes slotflash { 0% { box-shadow: 0 0 0 0 rgba(247,201,72,.9); } 100% { box-shadow: 0 0 0 16px rgba(247,201,72,0); } }

/* efeito roleta no sorteio da seleção */
#draw-list.spinning { opacity: .35; filter: blur(1px); pointer-events: none; transition: opacity .2s; }
.spin-final { animation: spinpop .35s ease; display: inline-block; }
@keyframes spinpop { 0% { transform: scale(1.35); opacity: .4; } 60% { transform: scale(.96); } 100% { transform: scale(1); opacity: 1; } }

/* pódio do ranking final mais bonito */
.rank-row.top1 .rank-pos { color: #ffce4d; text-shadow: 0 0 10px rgba(255,206,77,.5); }
.rank-row.top2 .rank-pos { color: #cdd6e4; }
.rank-row.top3 .rank-pos { color: #e0a06a; }
.rank-row.top1 { border-color: var(--gold); background: linear-gradient(90deg, rgba(255,206,77,.16), rgba(255,206,77,.04)); }
.rank-row.top2 { border-color: rgba(205,214,228,.5); }
.rank-row.top3 { border-color: rgba(224,160,106,.45); }
.rank-row.champ .rank-team b { color: #ffce4d; }
.rank-row.me { box-shadow: inset 3px 0 0 var(--green); }
.rank-row.me .rank-team b { color: #cdd9ff; }
