/* Torneio de Integração Institucional — Design system (dark mode institucional, mobile-first) */
:root {
  --bg: #060c18; --bg-2: #0a1426; --surface: #0f1b31; --surface-2: #16253f; --border: #27395c;
  --text: #f3f6fb; --muted: #a9b8d1; --gold: #f6c626; --gold-2: #d9a400; --gold-ink: #1a1400;
  --green: #35c97d; --green-bg: #0d2e22; --red: #ff6b66; --red-bg: #3a1416; --blue: #6ea8ff; --blue-bg: #10264a;
  --pitch: #1c7a45; --pitch-2: #17693b;
  --radius: 14px; --radius-sm: 9px; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg);
  background-image: radial-gradient(1200px 500px at 85% -10%, rgba(246, 198, 38, .09), transparent 60%), radial-gradient(900px 500px at -10% 0%, rgba(53, 120, 255, .12), transparent 60%);
  background-attachment: fixed; min-height: 100vh; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.45rem, 4vw, 2rem); } h2 { font-size: 1.2rem; } h3 { font-size: 1.02rem; }
p { margin: 0 0 1em; } a { color: var(--gold); } a:hover { color: #ffe07a; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; } li { margin-bottom: .3em; }
img, svg { max-width: 100%; } small, .small { font-size: .86rem; } .muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--gold); color: var(--gold-ink); padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 8px; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; }
[hidden] { display: none !important; }

/* ---------- Estrutura ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(6, 12, 24, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); min-width: 0; }
.logo-plate { background: #fff; border-radius: 10px; padding: 4px 8px; display: inline-flex; flex: none; }
.logo-plate img { height: 34px; width: auto; display: block; }
.brand-text { font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; min-width: 0; }
.brand-text span { display: block; color: var(--gold); font-weight: 600; letter-spacing: .03em; text-transform: none; font-size: .8rem; }
.topbar-spacer { flex: 1; }
.menu-toggle { display: inline-flex; }
.shell { display: block; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); background: var(--bg-2); border-right: 1px solid var(--border); padding: 18px 12px; transform: translateX(-102%); transition: transform .2s ease; z-index: 50; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.sidebar.open { transform: none; box-shadow: var(--shadow); }
.backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 40; }
.nav-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 12px 12px 4px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; min-height: 44px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; font-family: inherit; }
.nav-link:hover { background: var(--surface); color: var(--text); }
.nav-link[aria-current="page"] { background: var(--surface-2); color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.nav-user { margin-top: auto; padding: 12px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.nav-user strong { display: block; color: var(--text); }
main { padding: 20px 16px 48px; max-width: 1180px; margin: 0 auto; }
main.narrow { max-width: 760px; }
.page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.page-head p { margin: 0; color: var(--muted); }
.footer { text-align: center; color: var(--muted); font-size: .82rem; padding: 22px 16px 30px; border-top: 1px solid var(--border); }
.footer a { color: var(--muted); margin: 0 8px; }
@media (min-width: 1024px) {
  .menu-toggle, .backdrop { display: none !important; }
  .shell.has-nav { display: grid; grid-template-columns: 264px minmax(0, 1fr); }
  .shell.has-nav .sidebar { position: sticky; top: 59px; height: calc(100vh - 59px); transform: none; width: auto; z-index: 1; }
  main { padding: 28px 32px 60px; }
}

/* ---------- Componentes ---------- */
.card { background: linear-gradient(180deg, var(--surface), #0c172a); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.card > :last-child { margin-bottom: 0; }
.card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-title .icon { color: var(--gold); }
.card.gold { border-color: rgba(246, 198, 38, .55); background: linear-gradient(180deg, #1c1a10, #0f1626); }
.grid { display: grid; gap: 14px; } .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.g2, .grid.g3 { grid-template-columns: repeat(2, 1fr); } .grid.g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid.g3 { grid-template-columns: repeat(3, 1fr); } .grid.g4 { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); min-height: 108px; }
a.stat:hover { border-color: var(--gold); color: var(--text); }
.stat .icon { color: var(--gold); width: 1.5em; height: 1.5em; }
.stat-value { font-size: 2rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: .88rem; }
.stat.danger .stat-value, .stat.danger .icon { color: var(--red); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .08s ease, background .15s ease; }
.btn:hover { background: #1d3052; color: var(--text); } .btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, var(--gold), var(--gold-2)); border-color: var(--gold-2); color: var(--gold-ink); }
.btn.primary:hover { background: linear-gradient(180deg, #ffd84d, var(--gold)); color: var(--gold-ink); }
.btn.danger { background: var(--red-bg); border-color: #7a2a2c; color: #ffd0ce; }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 38px; padding: 6px 12px; font-size: .88rem; border-radius: 9px; }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(0, 0, 0, .35); border-top-color: var(--gold-ink); animation: spin .7s linear infinite; }
.btn:not(.primary).loading::after { border-color: rgba(255, 255, 255, .3); border-top-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions.end { justify-content: flex-end; } .actions.between { justify-content: space-between; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); white-space: nowrap; }
.badge.ok { background: var(--green-bg); border-color: #1d6b4a; color: #9af0c4; }
.badge.warn { background: #33290a; border-color: #7a6210; color: #ffe38a; }
.badge.bad { background: var(--red-bg); border-color: #7a2a2c; color: #ffc1be; }
.badge.info { background: var(--blue-bg); border-color: #244a8a; color: #bcd6ff; }
.alert { display: flex; gap: 12px; padding: 13px 15px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); margin-bottom: 16px; }
.alert .icon { margin-top: 2px; } .alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert.success { background: var(--green-bg); border-color: #1d6b4a; } .alert.success .icon { color: var(--green); }
.alert.error { background: var(--red-bg); border-color: #7a2a2c; } .alert.error .icon { color: var(--red); }
.alert.info { background: var(--blue-bg); border-color: #244a8a; } .alert.info .icon { color: var(--blue); }
.alert.warn { background: #33290a; border-color: #7a6210; } .alert.warn .icon { color: var(--gold); }

/* ---------- Formulários ---------- */
label, .label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: .84rem; margin-top: 5px; }
input[type=text], input[type=password], input[type=date], input[type=time], input[type=number], input[type=email], input[type=tel], input[type=search], input[type=datetime-local], input[type=file], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: #091425; color: var(--text); font: inherit; }
textarea { min-height: 96px; resize: vertical; } textarea.tall { min-height: 420px; font-family: ui-monospace, Consolas, monospace; font-size: .88rem; }
input:hover, select:hover, textarea:hover { border-color: #3a5182; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--red); }
.field { margin-bottom: 14px; } .field-error { color: #ffb3b0; font-size: .85rem; margin-top: 5px; }
.actions form:has(.inline-password) { display: flex; gap: 6px; align-items: center; }
input.inline-password { width: 9.5em; min-height: 36px; padding: 6px 10px; }
.form-grid { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } .form-grid.c3 { grid-template-columns: repeat(3, 1fr); } .form-grid.c4 { grid-template-columns: repeat(4, 1fr); } .span-2 { grid-column: span 2; } .span-all { grid-column: 1 / -1; } }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #091425; cursor: pointer; font-weight: 600; margin-bottom: 12px; }
.check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--gold); }
.check.inline { border: 0; background: none; padding: 6px 0; margin: 0; }
.input-group { position: relative; } .input-group input { padding-right: 52px; }
.input-group .toggle { position: absolute; right: 4px; top: 4px; width: 40px; height: 38px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; margin: 0 0 16px; } legend { font-weight: 800; padding: 0 8px; color: var(--gold); }
progress { width: 100%; height: 10px; border-radius: 99px; overflow: hidden; border: 0; background: #091425; accent-color: var(--gold); }
progress::-webkit-progress-bar { background: #091425; } progress::-webkit-progress-value { background: var(--gold); } progress::-moz-progress-bar { background: var(--gold); }

/* ---------- Tabelas (viram cartões no celular) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { background: var(--surface-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; } tbody tr:hover { background: rgba(255, 255, 255, .025); }
td.num, th.num { text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border-bottom: 1px solid var(--border); padding: 10px 4px; } table.stack tr:last-child { border-bottom: 0; }
  table.stack td { border: 0; padding: 4px 10px; display: flex; gap: 10px; justify-content: space-between; text-align: right; align-items: center; }
  table.stack td::before { content: attr(data-label); color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; text-align: left; flex: none; }
  table.stack td.primary { font-weight: 800; font-size: 1rem; justify-content: flex-start; text-align: left; } table.stack td.primary::before { content: none; }
  table.stack td.num { text-align: right; }
}

/* ---------- Login / boas-vindas ---------- */
.hero { display: grid; gap: 22px; align-items: center; max-width: 1080px; margin: 0 auto; padding: 22px 16px 40px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.15fr .85fr; min-height: calc(100vh - 150px); gap: 44px; } }
.hero-logo { background: #fff; border-radius: 18px; padding: 10px 18px; display: inline-flex; margin-bottom: 18px; box-shadow: var(--shadow); }
.hero-logo img { height: 92px; width: auto; display: block; }
.eyebrow { color: var(--gold); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; margin-bottom: 8px; }
.hero h1 { font-size: clamp(1.7rem, 5.2vw, 2.9rem); text-transform: uppercase; letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub { font-size: 1.08rem; font-weight: 700; margin-bottom: 14px; }
.pitch-strip { height: 10px; border-radius: 99px; margin: 18px 0; background: repeating-linear-gradient(90deg, var(--pitch) 0 28px, var(--pitch-2) 28px 56px); }
.login-card { padding: 24px; box-shadow: var(--shadow); }

/* ---------- Wizard ---------- */
.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 20px; counter-reset: step; overflow-x: auto; }
.steps li { flex: 1; min-width: 56px; counter-increment: step; text-align: center; font-size: .74rem; color: var(--muted); font-weight: 700; margin: 0; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 6px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); font-size: .9rem; color: var(--muted); }
.steps li.done::before { content: "✓"; background: var(--green-bg); border-color: var(--green); color: var(--green); }
.steps li.current { color: var(--gold); } .steps li.current::before { border-color: var(--gold); color: var(--gold-ink); background: var(--gold); }
.steps a { color: inherit; text-decoration: none; }
@media (max-width: 480px) { .steps li span { display: none; } .steps li.current span { display: block; } }
.reg-section { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--surface); }
.reg-section summary { cursor: pointer; padding: 14px 16px; font-weight: 800; min-height: 48px; list-style: none; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.reg-section summary::-webkit-details-marker { display: none; } .reg-section summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.reg-section[open] summary::after { content: "–"; } .reg-section[open] summary { border-bottom: 1px solid var(--border); color: var(--gold); }
.reg-body { padding: 14px 16px 4px; }
.sticky-bar { position: sticky; bottom: 0; background: rgba(6, 12, 24, .95); backdrop-filter: blur(8px); border-top: 1px solid var(--border); padding: 12px 16px; margin: 20px -16px -48px; z-index: 5; }
.counter { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.counter strong { font-size: 1.15rem; }
.athlete { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px 12px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 8px; }
.shirt-no { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.athlete.starter .shirt-no { background: var(--gold); color: var(--gold-ink); border-color: var(--gold-2); }
.athlete-name { font-weight: 800; overflow-wrap: anywhere; } .athlete-meta { color: var(--muted); font-size: .84rem; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.athlete-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.athlete-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: space-between; border-top: 1px dashed var(--border); padding-top: 8px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--gold); } .icon-btn.danger:hover { border-color: var(--red); color: var(--red); }
dialog { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); padding: 22px; width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0, 0, 0, .7); }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--gold); padding: 12px 18px; border-radius: 12px; z-index: 90; box-shadow: var(--shadow); font-weight: 700; max-width: calc(100vw - 32px); }
.toast.error { border-color: var(--red); }
dl.kv { display: grid; grid-template-columns: 1fr; gap: 2px 16px; margin: 0; } dl.kv dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; margin-top: 8px; } dl.kv dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
@media (min-width: 640px) { dl.kv { grid-template-columns: max-content 1fr; } dl.kv dt { margin-top: 0; padding: 5px 0; } dl.kv dd { padding: 5px 0; } }

/* ---------- Apresentação ---------- */
.deck { position: relative; }
.scene { background: linear-gradient(180deg, #0b1830, #081120); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; text-align: center; }
.scene svg { width: 100%; height: auto; max-height: 300px; display: block; margin: 0 auto 12px; }
.scene h2 { font-size: 1.35rem; color: var(--gold); } .scene p { max-width: 620px; margin: 0 auto 8px; color: #d6deec; }
.js .deck .scene { display: none; } .js .deck .scene.active { display: block; animation: fadeUp .5s ease both; }
.dots { display: flex; justify-content: center; gap: 8px; margin: 12px 0; } .dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid var(--muted); background: transparent; cursor: pointer; } .dots button[aria-current="true"] { background: var(--gold); border-color: var(--gold); }
.deck-controls { display: none; } .js .deck-controls { display: flex; }

/* Cena "Participantes e convite": brasões das 16 equipes, passos da inscrição e requisitos */
.scene.invite { text-align: left; padding: 22px 18px 20px; }
.scene.invite p { max-width: none; margin-left: 0; margin-right: 0; }
.scene.invite .eyebrow { margin-bottom: 2px; }
.scene.invite h2 { color: var(--text); font-size: clamp(1.55rem, 3.4vw, 2.35rem); font-weight: 800; letter-spacing: -.01em; margin: 0 0 18px; }
.invite-teams { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 8px; }
@media (min-width: 900px) { .invite-teams { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.invite-teams li { display: flex; flex-direction: column; align-items: center; gap: 9px; margin: 0; text-align: center; }
.seal { position: relative; display: grid; place-items: center; width: min(100%, 104px); aspect-ratio: 1; border-radius: 50%; padding: 6%;
  background: linear-gradient(145deg, #ffe58a 0%, #e2ab1e 36%, #a8740a 60%, #f8d75e 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .45), 0 0 22px rgba(246, 198, 38, .16); }
.seal img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; }
.seal.contain img { object-fit: contain; padding: 7%; }
.seal > svg.icon { width: 100%; height: 100%; max-height: none; margin: 0; padding: 24%; border-radius: 50%; background: #fff; color: var(--gold-2); }
.seal-group { position: absolute; right: 0; bottom: 2%; width: 28%; min-width: 22px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  background: var(--gold); color: var(--gold-ink); border: 2px solid #0b1830; font-weight: 900; font-size: .85rem; line-height: 1; }
.seal-name { font-weight: 700; font-size: .78rem; line-height: 1.25; color: var(--text); hyphens: auto; overflow-wrap: break-word; }
@media (min-width: 480px) { .seal-name { font-size: .86rem; } }
.invite-how { border: 1px solid rgba(246, 198, 38, .55); border-radius: var(--radius); padding: 16px 18px 18px; background: rgba(6, 12, 24, .55); margin-bottom: 14px; }
.scene.invite .invite-how-title { color: var(--gold); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin-bottom: 14px; }
.invite-steps { list-style: none; counter-reset: istep; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .invite-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 34px; } }
.invite-steps li { position: relative; counter-increment: istep; margin: 0; text-align: center; }
.invite-steps li::before { content: counter(istep); display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 8px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font-weight: 900; }
@media (min-width: 720px) { .invite-steps li:not(:last-child)::after { content: "›"; position: absolute; right: -25px; top: 0; color: var(--gold); font-size: 2rem; font-weight: 900; line-height: 1; } }
.invite-steps b { display: block; font-size: 1.02rem; color: var(--text); }
.invite-steps span { display: block; color: var(--muted); font-size: .9rem; }
.invite-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.invite-chips li { margin: 0; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; font-size: .9rem; }
.invite-chips em { font-style: normal; color: var(--gold); }
.beam { transform-origin: 50% 0; animation: beam 3.2s ease-in-out infinite alternate; } .beam.b2 { animation-delay: -1.6s; }
.ball-bounce { animation: bounce 1.6s cubic-bezier(.3, 0, .7, 1) infinite alternate; }
.pulse { animation: pulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; } .pulse.d2 { animation-delay: -.8s; } .pulse.d3 { animation-delay: -1.6s; }
.draw-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 3s ease forwards infinite; }
.rise { animation: rise .7s ease both; } .rise.r2 { animation-delay: .35s; } .rise.r3 { animation-delay: .7s; } .rise.r4 { animation-delay: 1.05s; } .rise.r5 { animation-delay: 1.4s; }
.twinkle { animation: twinkle 1.8s ease-in-out infinite; transform-origin: center; transform-box: fill-box; } .twinkle.d2 { animation-delay: -.6s; } .twinkle.d3 { animation-delay: -1.2s; }
.paused * { animation-play-state: paused !important; }
/* Pausado: as animações de entrada vão direto ao estado final — congeladas no início, a cena seguinte ficaria invisível. */
.paused .scene.active, .paused .rise { animation: none !important; }
.paused .draw-line { animation: none !important; stroke-dashoffset: 0; }
@keyframes beam { from { opacity: .18; transform: rotate(-4deg); } to { opacity: .5; transform: rotate(4deg); } }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-46px); } }
@keyframes pulse { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fall { from { transform: translateY(-20vh) rotate(0); opacity: 1; } to { transform: translateY(105vh) rotate(540deg); opacity: .9; } }
@keyframes roll { from { transform: translateX(0) rotate(0); } to { transform: translateX(238px) rotate(720deg); } }

/* ---------- Sucesso ---------- */
.celebrate { position: relative; overflow: hidden; text-align: center; }
.celebrate svg { max-height: 240px; width: 100%; }
.ball-roll { animation: roll 2.2s cubic-bezier(.2, .7, .3, 1) .3s both; transform-box: fill-box; transform-origin: center; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 60; }
.confetti i { position: absolute; top: 0; width: 10px; height: 16px; border-radius: 2px; background: var(--gold); animation: fall 3.4s linear 2 both; }
.confetti i:nth-child(3n) { background: var(--green); } .confetti i:nth-child(4n) { background: #fff; } .confetti i:nth-child(5n) { background: var(--blue); }
.confetti i:nth-child(1) { left: 4%; animation-delay: .1s; } .confetti i:nth-child(2) { left: 12%; animation-delay: .7s; } .confetti i:nth-child(3) { left: 20%; animation-delay: .3s; }
.confetti i:nth-child(4) { left: 28%; animation-delay: 1.1s; } .confetti i:nth-child(5) { left: 36%; animation-delay: .5s; } .confetti i:nth-child(6) { left: 44%; animation-delay: 0s; }
.confetti i:nth-child(7) { left: 52%; animation-delay: .9s; } .confetti i:nth-child(8) { left: 60%; animation-delay: .2s; } .confetti i:nth-child(9) { left: 68%; animation-delay: 1.3s; }
.confetti i:nth-child(10) { left: 76%; animation-delay: .6s; } .confetti i:nth-child(11) { left: 84%; animation-delay: .4s; } .confetti i:nth-child(12) { left: 92%; animation-delay: 1s; }
.confetti i:nth-child(13) { left: 8%; animation-delay: 1.5s; } .confetti i:nth-child(14) { left: 48%; animation-delay: 1.7s; } .confetti i:nth-child(15) { left: 88%; animation-delay: 1.9s; }

/* ---------- Chaveamento ---------- */
.bracket { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.round { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.round-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 800; text-align: center; padding: 6px; border-bottom: 2px solid var(--border); margin-bottom: 4px; }
.match { display: block; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); overflow: hidden; text-decoration: none; color: var(--text); font-size: .88rem; }
a.match:hover { border-color: var(--gold); color: var(--text); }
.match-head { display: flex; justify-content: space-between; gap: 8px; padding: 5px 10px; background: var(--surface-2); color: var(--muted); font-size: .74rem; font-weight: 700; }
.match-team { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--border); align-items: center; }
.match-team .who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.match-team .name { overflow-wrap: anywhere; font-weight: 600; } .match-team.tbd .name { color: var(--muted); font-weight: 400; font-style: italic; }
.match-team.win { background: rgba(53, 201, 125, .1); } .match-team.win .name { font-weight: 800; }
.match-team.mine .name { color: var(--gold); }
.match-team .score { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.match.final { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(246, 198, 38, .25); }
.podium { display: grid; gap: 10px; grid-template-columns: 1fr; } @media (min-width: 640px) { .podium { grid-template-columns: repeat(3, 1fr); } }
.podium div { padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); text-align: center; } .podium .p1 { border-color: var(--gold); }
.podium b { display: block; color: var(--gold); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
/* Brasão pequeno com anel dourado (chaves e pódio) */
.crest { flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 2px; border-radius: 50%;
  background: linear-gradient(145deg, #ffe58a 0%, #e2ab1e 36%, #a8740a 60%, #f8d75e 100%); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.crest img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; }
.crest.contain img { object-fit: contain; padding: 8%; }
.crest > svg.icon { width: 100%; height: 100%; padding: 22%; border-radius: 50%; background: #fff; color: var(--gold-2); }
.crest.empty { background: none; box-shadow: none; border: 1.5px dashed var(--border); }
.podium .crest { width: 68px; height: 68px; padding: 4px; margin: 10px auto 8px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 6px 16px rgba(0, 0, 0, .4); }
.card .invite-teams { margin-bottom: 4px; }
.team-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); font-weight: 700; font-size: .93rem; }
.team-chip span { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--gold); font-size: .8rem; }
.route { list-style: none; padding: 0; margin: 0; counter-reset: r; } .route li { counter-increment: r; position: relative; padding: 0 0 18px 48px; margin: 0; }
.route li::before { content: counter(r); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; font-weight: 800; }
.route li::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--border); } .route li:last-child::after { display: none; }
.cred { font-family: ui-monospace, Consolas, monospace; font-size: 1.25rem; letter-spacing: .04em; background: #091425; border: 1px dashed var(--gold); padding: 12px 14px; border-radius: 10px; user-select: all; overflow-wrap: anywhere; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; } .filters a { flex: none; }
.filters a[aria-current="true"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold-2); }
.uniform-grid { display: grid; gap: 14px; grid-template-columns: 1fr; } @media (min-width: 720px) { .uniform-grid { grid-template-columns: 300px 1fr; } }
.uniform-grid svg { max-height: 340px; display: block; margin: 0 auto; }
.checklist { list-style: none; padding: 0; } .checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--border); } .checklist .icon { color: var(--green); margin-top: 3px; } .checklist li.no .icon { color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .draw-line { stroke-dashoffset: 0; } .confetti { display: none; }
}
@media print {
  body { background: #fff; color: #000; } .topbar, .sidebar, .footer, .btn, .actions, .sticky-bar, .confetti, .steps, .no-print { display: none !important; }
  .card, .athlete, .stat { border-color: #999; background: #fff; color: #000; } .muted, .athlete-meta { color: #333; } main { max-width: none; padding: 0; } a { color: #000; }
  .badge { border-color: #666; background: #fff; color: #000; } .shirt-no { background: #fff; color: #000; }
}
.stat-value.small { font-size: 1.3rem; line-height: 1.25; }
.grid > *, .form-grid > * { min-width: 0; }
.round { position: relative; padding-top: 44px; }
.round-title { position: absolute; top: 0; left: 0; right: 0; }
