/* Telas do jogo: "Escolher a rádio" (game-radios.js) e "Campinho" (game-sheet.js + campinho-draw.js).
   Casa em branco, visitante em azul, nos dois desenhos (campo e escalação) e nas barras. */

/* ---------- cartões de rádio (Escolher a rádio e tela do time) ---------- */
.nr-sec { display: grid; gap: 10px; margin-top: 18px; }
.nr-sec h4 { margin: 0; font: 700 17px var(--ui); letter-spacing: -.02em; }
.nr-sec .hint { margin: -6px 0 0; }
.nr-cards { display: grid; gap: 10px; }
.nr-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; align-items: center; width: 100%; padding: 14px; border-radius: 20px; text-align: left;
  background: linear-gradient(150deg, rgb(var(--accent-rgb) / .1), var(--s1) 58%); border: 1px solid rgb(var(--accent-rgb) / .24); transition: border-color .2s, transform .12s; }
.nr-card:hover { border-color: rgb(var(--accent-rgb) / .5); }
.nr-card:active, .nr-row:active { transform: scale(.985); }
.nr-card .art { width: 52px; height: 52px; border-radius: 14px; }
.nr-tx { display: grid; gap: 2px; min-width: 0; }
.nr-tx b { font: 700 16px/1.2 var(--ui); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nr-tx small { font: 500 11.5px var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nr-why { font: 600 12px var(--ui); font-style: normal; color: var(--accent-text); margin-top: 2px; }
.nr-go { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.nr-go .pill { flex: none; min-height: 38px; padding: 0 16px; font-size: 13px; }
.nr-crowd { font: 500 12px var(--ui); color: var(--muted); min-width: 0; }
.nr-crowd b { font: 700 12.5px var(--mono); color: var(--text); }
.nr-rows { display: grid; }
.nr-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 11px 2px; border-bottom: 1px solid var(--line); text-align: left; }
.nr-row:last-child { border-bottom: 0; }
.nr-row .art { width: 42px; height: 42px; border-radius: 12px; }
.nr-row .nr-tx b { font-size: 14.5px; font-weight: 600; }
.nr-row .nr-crowd { font-size: 11.5px; }
.nr-btn { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line-2); font: 600 12.5px var(--ui); }
.nr-row:hover .nr-btn { border-color: var(--text); }

/* ---------- Escolher a rádio ---------- */
.gr { display: grid; gap: 14px; }

/* ---------- Campinho ---------- */
.cp { display: grid; gap: 14px; }
.cp-top { display: grid; gap: 10px; }
.cp-board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 8px; padding: 18px 12px 16px; border-radius: 24px;
  background: radial-gradient(120% 90% at 50% 0%, rgb(var(--ov) / .05), transparent 70%), var(--s1); border: 1px solid var(--line); }
.cp-team { display: grid; justify-items: center; gap: 8px; min-width: 0; text-align: center; }
.cp-team > b { font: 600 13px/1.2 var(--ui); overflow-wrap: anywhere; }
.cp-crest { display: grid; place-items: center; width: var(--s); height: var(--s); flex: none; font: 700 11px var(--mono); color: var(--muted); }
.cp-crest img { width: 100%; height: 100%; object-fit: contain; }
.cp-scorers { display: grid; gap: 2px; font: 500 11.5px/1.3 var(--ui); color: var(--muted); }
.cp-scorers em { font: 600 11px var(--mono); font-style: normal; color: var(--text); }
.cp-mid { display: grid; justify-items: center; gap: 8px; padding-top: 6px; }
.cp-score { font: 600 46px/1 var(--mono); letter-spacing: -.05em; white-space: nowrap; }
.cp-score s { text-decoration: none; color: var(--muted); font-size: .5em; margin: 0 .2em; vertical-align: .22em; }
.cp-score.vs { color: var(--muted); font-size: 30px; }
.cp-st { padding: 5px 10px; border-radius: 99px; background: var(--s3); font: 600 11px var(--mono); color: var(--muted); letter-spacing: .04em; white-space: nowrap; }
.cp-st.live { display: inline-flex; align-items: center; gap: 6px; background: rgb(var(--live-rgb) / .14); color: var(--live); }
.cp-st.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: cp-blink 1.6s ease-in-out infinite; }
@keyframes cp-blink { 50% { opacity: .3; } }
.cp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.cp-chips span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 99px; background: var(--s2); font: 500 11.5px var(--ui); color: var(--muted); }
.cp-chips span svg { width: 13px; height: 13px; }
.cp-chips .sync { background: rgb(var(--accent-rgb) / .1); color: var(--accent-text); font-family: var(--mono); font-weight: 600; }

.cp-action:empty { display: none; }
.cp-cta { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 18px; text-align: left; background: var(--accent); color: var(--accent-ink); }
.cp-cta > svg { width: 22px; height: 22px; flex: none; }
.cp-cta b { display: block; font: 700 15px var(--ui); }
.cp-cta small { display: block; font: 500 12px var(--ui); opacity: .75; }
.cp-cta.ghost { background: var(--s2); color: var(--text); border: 1px solid var(--line-2); }

.cp-body { display: grid; gap: 12px; }
.cp-pitch { border-radius: 20px; overflow: hidden; border: 1px solid #1f4a2f; box-shadow: 0 14px 40px rgb(0 0 0 / .35); }
.cp-field { display: block; width: 100%; height: auto; }
.cp-pulse { transform-box: fill-box; transform-origin: center; animation: cp-pulse 1.8s ease-out infinite; }
@keyframes cp-pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.cp-legend { display: flex; justify-content: space-between; gap: 10px; margin-top: -4px; font: 500 11.5px var(--ui); color: var(--muted); }
.cp-legend span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.cp-legend i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.cp-legend em { font: 500 10.5px var(--mono); font-style: normal; opacity: .75; }
.cp-last { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--s1); border: 1px solid var(--line); }
.cp-last small { display: block; font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cp-last b { display: block; font: 600 14.5px/1.3 var(--ui); margin-top: 2px; }
.cp-last em { display: block; font: 500 12px var(--ui); font-style: normal; color: var(--muted); }
.cp-last .cp-ic { width: 38px; height: 38px; }
.cp-last.goal { border-color: rgb(var(--accent-rgb) / .5); background: linear-gradient(120deg, rgb(var(--accent-rgb) / .14), var(--s1) 70%); }
.cp-last.goal b { color: var(--accent-text); }

/* abas: ficam presas no topo enquanto a pessoa rola os detalhes */
.cp-tabs { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin-top: 6px; border-radius: 16px;
  background: rgb(16 16 21 / .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); }
.cp-tabs button { display: grid; place-items: center; text-align: center; min-height: 40px; border-radius: 12px; font: 600 13px var(--ui); color: var(--muted); transition: background .2s, color .2s; }
.cp-tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.cp-pane { display: grid; gap: 12px; }
.cp-pane[hidden] { display: none; }
.cp-empty { margin: 8px 0; padding: 20px 16px; border-radius: 18px; background: var(--s1); border: 1px dashed var(--line-2); color: var(--muted); text-align: center; }
.cp-card { padding: 16px; border-radius: 20px; background: var(--s1); border: 1px solid var(--line); }

/* lances */
.cp-tl { list-style: none; margin: 0; padding: 0; display: grid; }
.cp-ev { display: grid; grid-template-columns: 40px 28px minmax(0, 1fr); gap: 10px; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.cp-ev:last-child { border-bottom: 0; }
.cp-ev time { font: 600 12px var(--mono); color: var(--muted); }
.cp-ev b { display: block; font: 500 13.5px/1.3 var(--ui); }
.cp-ev small { display: block; font: 400 11.5px var(--ui); color: var(--muted); }
.cp-ev.new b { color: var(--accent-text); }
.cp-ev.k-goal, .cp-ev.k-owngoal { margin: 4px 0; padding: 12px 10px; border-radius: 14px; border-bottom: 0; background: linear-gradient(120deg, rgb(var(--accent-rgb) / .12), transparent 80%); }
.cp-ev.k-goal b, .cp-ev.k-owngoal b { font-weight: 700; }
.cp-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--s2); color: var(--muted); }
.cp-ic svg { width: 62%; height: 62%; }
.cp-ic.k-goal { background: transparent; }
.cp-ic.k-goal svg { width: 100%; height: 100%; }
.cp-ic.k-yellow::before, .cp-ic.k-red::before { content: ""; width: 36%; height: 54%; border-radius: 2px; background: var(--gold, #ffd23f); transform: rotate(8deg); }
.cp-ic.k-red::before { background: var(--live); }
.cp-ic.k-sub { color: var(--win); }
.cp-ic.k-other::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }

/* estatísticas */
.cp-stats { display: grid; gap: 16px; }
.cp-stats-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cp-stats-head span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font: 600 13px var(--ui); }
.cp-stat { display: grid; gap: 7px; }
.cp-stat-n { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: baseline; text-align: center; }
.cp-stat-n span { font: 500 12.5px var(--ui); color: var(--muted); }
.cp-stat-n b { font: 600 15px var(--mono); color: var(--muted); }
.cp-stat-n b:first-child { text-align: left; } .cp-stat-n b:last-child { text-align: right; }
.cp-stat-n b.lead { color: var(--text); font-weight: 700; }
.cp-stat-bar { display: grid; grid-template-columns: calc(var(--a) * 100%) 1fr; gap: 3px; height: 8px; }
.cp-stat-bar i { display: block; height: 100%; min-width: 3px; }
.cp-stat-bar .h { background: #f4f4f6; border-radius: 99px 0 0 99px; }
.cp-stat-bar .a { background: #5b9bff; border-radius: 0 99px 99px 0; }

/* escalações */
.cp-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--s2); }
.cp-sides button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 8px; border-radius: 11px; font: 600 13px var(--ui); color: var(--muted); }
.cp-sides button span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-sides button[aria-pressed="true"] { background: var(--s3); color: var(--text); }
.cp-formation { display: flex; align-items: baseline; justify-content: space-between; margin: 2px 2px 0; }
.cp-formation span { font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cp-formation b { font: 700 18px var(--mono); letter-spacing: .04em; }
.cp-xi { position: relative; aspect-ratio: 72 / 109; max-width: 100%; border-radius: 20px; overflow: hidden; border: 1px solid #1f4a2f; box-shadow: 0 14px 40px rgb(0 0 0 / .35); }
.cp-xi-field { position: absolute; inset: 0; width: 100%; height: 100%; }
.cp-pl { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; width: 23%; }
.cp-pl i { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 700 13px var(--mono); font-style: normal; background: #f4f4f6; color: #0a0a0a; border: 2px solid rgb(0 0 0 / .35); box-shadow: 0 4px 12px rgb(0 0 0 / .5); }
.cp-xi.away .cp-pl i { background: #2f6bff; color: #fff; border-color: rgb(var(--ov) / .25); }
.cp-pl span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; padding: 1px 6px; border-radius: 6px; background: rgb(0 0 0 / .45); font: 600 10.5px/1.2 var(--ui); text-align: center; overflow: hidden; overflow-wrap: anywhere; }
.cp-pl.out i::after { content: ""; position: absolute; top: -6px; right: -8px; width: 14px; height: 14px; border-radius: 50%; background: var(--live) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 3.5v6M4.5 7.5 7 10l2.5-2.5' stroke='%23fff' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 100%; border: 1.5px solid #0c2617; }
.cp-group { display: grid; gap: 8px; }
.cp-lbl { font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cp-chips2 { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-chips2 span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; background: var(--s2); font: 500 12.5px var(--ui); color: var(--muted); }
.cp-chips2 span b { font: 700 11px var(--mono); color: var(--text); }
.cp-chips2.in span { background: rgb(74 222 128 / .1); color: #b8f0cb; }
.cp-meta { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 13px; }
.cp-meta dt { color: var(--muted); }
.cp-meta dd { margin: 0; text-align: right; }

.cp-masked, .cp-pre { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 26px 18px; }
.cp-masked b, .cp-pre b { font: 700 17px var(--ui); }
.cp-masked small, .cp-pre small { color: var(--muted); max-width: 34ch; }
.cp-masked .pill, .cp-pre .pill { margin-top: 6px; }
.cp-h { margin: 8px 0 -2px; font: 700 17px var(--ui); }
.cp-ad { margin-top: 6px; }
.cp-foot { margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  .cp-pulse, .cp-st.live::before { animation: none; }
}
