/* =====================================================================
   Pablito — azul e branco, mobile-first, alto contraste (uso ao ar livre)
   Celular: barra inferior · Tablet: conteúdo em 2 colunas · PC: barra lateral
   ===================================================================== */

:root {
  color-scheme: dark;
  --bg: #04102b;
  --bg-2: #071a44;
  --surface: #0b2052;
  --surface-2: #102a66;
  --surface-3: #17357a;
  --border: rgba(165, 192, 255, 0.18);
  --border-strong: rgba(190, 210, 255, 0.34);
  --text: #ffffff;
  --text-2: #d3def7;
  --text-3: #9fb3dc;
  --brand: #2557d6;
  --brand-hover: #2f64ea;
  --brand-strong: #1a3f9e;
  --brand-soft: rgba(84, 132, 255, 0.18);
  --accent: #7aa7ff;
  --on-brand: #ffffff;
  --white: #ffffff;
  --success: #3ddc97;
  --success-soft: rgba(61, 220, 151, 0.16);
  --warning: #ffc94d;
  --warning-soft: rgba(255, 201, 77, 0.16);
  --danger: #ff7a7a;
  --danger-soft: rgba(255, 122, 122, 0.16);
  --shadow: 0 10px 30px rgba(0, 6, 25, 0.45);
  --shadow-sm: 0 2px 10px rgba(0, 6, 25, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 68px;
  --header-h: 60px;
  --sidebar-w: 268px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Arial Black", "Segoe UI Black", "Helvetica Neue", Impact, var(--font);
  --stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='120' viewBox='0 0 160 120'%3E%3Cg fill='%23ffffff' fill-opacity='0.07'%3E%3Cpath d='M20 14l2.4 5 5.4.6-4 3.7 1.1 5.4L20 26l-4.9 2.7 1.1-5.4-4-3.7 5.4-.6z'/%3E%3Cpath d='M118 30l1.8 3.7 4 .5-3 2.8.8 4L118 39l-3.6 2 .8-4-3-2.8 4-.5z'/%3E%3Cpath d='M74 78l2.4 5 5.4.6-4 3.7 1.1 5.4L74 90l-4.9 2.7 1.1-5.4-4-3.7 5.4-.6z'/%3E%3Cpath d='M144 92l1.5 3 3.3.4-2.4 2.3.6 3.3-3-1.7-3 1.7.6-3.3-2.4-2.3 3.3-.4z'/%3E%3Cpath d='M40 100l1.2 2.5 2.7.3-2 1.9.5 2.7-2.4-1.4-2.4 1.4.5-2.7-2-1.9 2.7-.3z'/%3E%3C/g%3E%3C/svg%3E");
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eaf0fb;
  --bg-2: #dfe8f8;
  --surface: #ffffff;
  --surface-2: #f2f6fd;
  --surface-3: #e4ecfa;
  --border: #d3ddf0;
  --border-strong: #b5c4e3;
  --text: #0a1a40;
  --text-2: #24365f;
  --text-3: #4b5d86;
  --brand: #1f4fc4;
  --brand-hover: #1a45ad;
  --brand-strong: #163a93;
  --brand-soft: rgba(31, 79, 196, 0.1);
  --accent: #1f4fc4;
  --success: #0f8a55;
  --success-soft: rgba(15, 138, 85, 0.12);
  --warning: #9a6200;
  --warning-soft: rgba(201, 132, 0, 0.14);
  --danger: #c62828;
  --danger-soft: rgba(198, 40, 40, 0.1);
  --shadow: 0 10px 28px rgba(16, 42, 102, 0.14);
  --shadow-sm: 0 2px 8px rgba(16, 42, 102, 0.1);
  --stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='120' viewBox='0 0 160 120'%3E%3Cg fill='%23ffffff' fill-opacity='0.12'%3E%3Cpath d='M20 14l2.4 5 5.4.6-4 3.7 1.1 5.4L20 26l-4.9 2.7 1.1-5.4-4-3.7 5.4-.6z'/%3E%3Cpath d='M118 30l1.8 3.7 4 .5-3 2.8.8 4L118 39l-3.6 2 .8-4-3-2.8 4-.5z'/%3E%3Cpath d='M74 78l2.4 5 5.4.6-4 3.7 1.1 5.4L74 90l-4.9 2.7 1.1-5.4-4-3.7 5.4-.6z'/%3E%3C/g%3E%3C/svg%3E");
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(1200px 520px at 50% -180px, var(--bg-2), transparent 70%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ */
/* Estrutura                                                          */
/* ------------------------------------------------------------------ */

.app { min-height: 100dvh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, #1c48b8 0%, #163c9c 100%);
  background-image: var(--stars), linear-gradient(180deg, #1c48b8 0%, #163c9c 100%);
  color: #fff;
  box-shadow: 0 2px 14px rgba(0, 10, 40, 0.35);
}
.topbar__logo { width: 40px; height: 44px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)); }
.topbar__title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.topbar__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar__sub { font-size: 12.5px; opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__actions { display: flex; gap: 6px; }

.main {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 16px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom));
}

.sidebar { display: none; }

.bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding: 0 4px env(safe-area-inset-bottom);
  display: flex;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.navlink {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-3);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 14px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.navlink svg { width: 24px; height: 24px; }
.navlink[aria-current="page"] { color: var(--text); }
.navlink[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 8px;
  width: 52px;
  height: 32px;
  border-radius: 16px;
  background: var(--brand-soft);
  z-index: -1;
}
.navlink .dot {
  position: absolute;
  top: 9px;
  right: calc(50% - 18px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 2px var(--surface);
}

/* Tablet */
@media (min-width: 720px) {
  .main { padding-left: 24px; padding-right: 24px; }
  .navlink { font-size: 12.5px; }
}

/* PC: barra lateral */
@media (min-width: 1100px) {
  .topbar { display: none; }
  .bottomnav { display: none; }
  .sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    padding: 22px 16px 18px;
    z-index: 30;
    color: #fff;
    background-image: var(--stars), linear-gradient(185deg, #1d4bbd 0%, #12358f 55%, #0b2463 100%);
    box-shadow: 4px 0 24px rgba(0, 8, 32, 0.35);
  }
  .sidebar__brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 4px 8px 18px; }
  .sidebar__logo { width: 116px; height: auto; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35)); }
  .sidebar__name { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.1; }
  .sidebar__sub { font-size: 13px; opacity: 0.88; }
  .sidebar nav { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
  .sidebar .navlink {
    flex: none;
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    padding: 0 16px;
    min-height: 50px;
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.86);
  }
  .sidebar .navlink:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
  .sidebar .navlink[aria-current="page"] { background: #fff; color: #12358f; box-shadow: var(--shadow-sm); }
  .sidebar .navlink[aria-current="page"]::before { display: none; }
  .sidebar .navlink .dot { position: static; margin-left: auto; box-shadow: none; }
  .sidebar__foot { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.18); display: flex; align-items: center; gap: 10px; font-size: 14px; }
  .sidebar__foot .avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); }
  .main { margin-left: var(--sidebar-w); width: auto; max-width: none; padding: 28px 36px 48px; }
  .main > .view { max-width: 1180px; margin: 0 auto; }
}

/* ------------------------------------------------------------------ */
/* Tipografia e blocos                                                */
/* ------------------------------------------------------------------ */

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 16px; flex-wrap: wrap; }
.page-title { margin: 0; font-family: var(--font-display); font-size: 24px; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.15; }
.page-sub { margin: 4px 0 0; color: var(--text-3); font-size: 14.5px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 26px 0 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.section-title .count { color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; letter-spacing: 0; font-size: 13px; }
.muted { color: var(--text-3); }
.small { font-size: 14px; }
.strong { font-weight: 800; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.spacer { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 12px; }

.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2 { grid-column: span 2; }
}
@media (min-width: 1100px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout-side { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
  .sticky-col { position: sticky; top: 28px; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.card--flush { padding: 0; overflow: hidden; }
.card__title { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-link { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; min-height: 84px; transition: transform 0.12s, border-color 0.12s; }
.card-link:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.card-link .icon-tile { flex: none; }

.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--accent);
}
.icon-tile svg { width: 26px; height: 26px; }

/* Herói (cartão do jogo) */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 20px 18px 18px;
  color: #fff;
  background-image: var(--stars), linear-gradient(140deg, #2a5ee0 0%, #1a43ad 48%, #0e2a74 100%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 26px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.hero__date { font-family: var(--font-display); font-size: 30px; line-height: 1.05; letter-spacing: 0.01em; text-transform: uppercase; margin: 8px 0 6px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; color: rgba(255, 255, 255, 0.92); }
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta svg { width: 18px; height: 18px; opacity: 0.9; }
.hero .pill { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.hero .pill--ok { background: #ffffff; color: #12358f; border-color: #fff; }
.hero__bars { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
@media (min-width: 520px) { .hero__bars { grid-template-columns: 2fr 1fr; } .hero__date { font-size: 34px; } }
.meter__label { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; color: rgba(255, 255, 255, 0.95); }
.meter { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.meter > i { display: block; height: 100%; width: 0; border-radius: inherit; background: #fff; transition: width 0.4s ease; }
.meter--full > i { background: var(--warning); }

.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.cta-row .btn { min-height: 58px; font-size: 18px; }

/* ------------------------------------------------------------------ */
/* Botões e formulários                                               */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-decoration: none;
  background: var(--brand);
  color: var(--on-brand);
  transition: background 0.15s, transform 0.08s, box-shadow 0.15s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  white-space: nowrap;
}
.btn:hover { background: var(--brand-hover); }
.btn:active { transform: scale(0.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--block { width: 100%; }
.btn--lg { min-height: 56px; font-size: 17px; border-radius: 16px; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14.5px; border-radius: 12px; }
.btn--white { background: #fff; color: #12358f; }
.btn--white:hover { background: #eef3ff; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--soft { background: var(--brand-soft); color: var(--accent); }
.btn--soft:hover { background: var(--surface-3); }
.btn--danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn--danger:hover { background: color-mix(in srgb, var(--danger) 24%, transparent); }
.btn--success { background: #12a46b; color: #fff; }
.btn--success:hover { background: #0f915e; }
.btn--whatsapp { background: #1fae54; color: #fff; }
.btn--whatsapp:hover { background: #189447; }
.btn--glass { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.22); }
.btn--icon { width: 48px; padding: 0; }
.btn--icon.btn--sm { width: 40px; }
.btn.is-on { background: #fff; color: #12358f; }
.btn .spinner { width: 18px; height: 18px; border-width: 2.5px; }

.iconbtn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: inherit;
}
.iconbtn:hover { background: rgba(127, 160, 255, 0.14); }
.iconbtn svg { width: 22px; height: 22px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 14px; font-weight: 700; color: var(--text-2); }
.hint { font-size: 13px; color: var(--text-3); }
.input, .select, .textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { padding: 12px 14px; min-height: 90px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--brand-soft); }
.input::placeholder { color: var(--text-3); }
.select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-3); pointer-events: none; }
.input-icon .input { padding-left: 44px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }

/* Controle segmentado */
.seg { display: flex; padding: 4px; gap: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button, .seg a {
  flex: 1;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-3);
  font-weight: 800;
  font-size: 14.5px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.seg [aria-pressed="true"], .seg [aria-selected="true"] { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }

/* Interruptor */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; cursor: pointer; }
.switch input { appearance: none; flex: none; width: 54px; height: 32px; border-radius: 999px; background: var(--surface-3); border: 1.5px solid var(--border-strong); position: relative; transition: background 0.2s; cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 23px; height: 23px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); transition: transform 0.2s; }
.switch input:checked { background: var(--brand); border-color: var(--brand); }
.switch input:checked::after { transform: translateX(22px); }

/* Faixa de nota (admin) */
.range { width: 100%; accent-color: var(--brand); height: 32px; }

/* ------------------------------------------------------------------ */
/* Selos, avatares e listas                                           */
/* ------------------------------------------------------------------ */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  white-space: nowrap;
}
.pill svg { width: 15px; height: 15px; }
.pill--ok { background: var(--success-soft); color: var(--success); border-color: transparent; }
.pill--warn { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.pill--danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.pill--brand { background: var(--brand-soft); color: var(--accent); border-color: transparent; }
.pill--live { background: #e11d48; color: #fff; border-color: transparent; }
.pill--live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

.tag { display: inline-grid; place-items: center; min-width: 38px; height: 22px; padding: 0 6px; border-radius: 6px; font-size: 11.5px; font-weight: 900; letter-spacing: 0.05em; background: var(--surface-3); color: var(--text-2); }
.tag--GOL { background: #f59e0b; color: #1f1300; }
.tag--DEF { background: #3b82f6; color: #fff; }
.tag--MEI { background: #10b981; color: #022c1c; }
.tag--ATA { background: #ef4444; color: #fff; }

.avatar {
  --size: 44px;
  width: var(--size);
  height: var(--size);
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-weight: 900;
  font-size: calc(var(--size) * 0.38);
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(140deg, #3d6ef0, #183c9c);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { --size: 34px; border-width: 1.5px; }
.avatar--lg { --size: 72px; }
.avatar--xl { --size: 104px; border-width: 3px; }
.avatar.c1 { background: linear-gradient(140deg, #3d6ef0, #183c9c); }
.avatar.c2 { background: linear-gradient(140deg, #0ea5e9, #075985); }
.avatar.c3 { background: linear-gradient(140deg, #6366f1, #312e81); }
.avatar.c4 { background: linear-gradient(140deg, #2563eb, #0b2a6f); }
.avatar.c5 { background: linear-gradient(140deg, #38bdf8, #1d4ed8); }
.avatar.c6 { background: linear-gradient(140deg, #1e40af, #0f172a); }

.list { display: flex; flex-direction: column; }
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  background: transparent;
  width: 100%;
  text-align: left;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}
.list-row:last-child { border-bottom: 0; }
button.list-row:hover, a.list-row:hover { background: var(--surface-2); }
.list-row.is-me { background: var(--brand-soft); }
.list-row__num { width: 26px; flex: none; text-align: right; font-weight: 900; color: var(--text-3); font-variant-numeric: tabular-nums; }
.list-row__main { flex: 1; min-width: 0; }
.list-row__name { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row__sub { font-size: 13.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row__end { display: flex; align-items: center; gap: 6px; flex: none; }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.kpi__label { font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.kpi__value { font-family: var(--font-display); font-size: 26px; line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi__value.pos { color: var(--success); }
.kpi__value.neg { color: var(--danger); }
.kpi__foot { font-size: 13px; color: var(--text-3); margin-top: 2px; }

/* ------------------------------------------------------------------ */
/* Estados: carregando, vazio, erro                                   */
/* ------------------------------------------------------------------ */

.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3.5px solid var(--brand-soft); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 44px 20px; }
.state__art { width: 120px; height: 120px; color: var(--accent); }
.state__title { margin: 0; font-size: 19px; font-weight: 800; }
.state__text { margin: 0; color: var(--text-3); max-width: 420px; }
.state--error .state__art { color: var(--danger); }
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton--hero { height: 230px; border-radius: 22px; }
.skeleton--row { height: 64px; margin-top: 10px; }

/* ------------------------------------------------------------------ */
/* Toasts e modais                                                    */
/* ------------------------------------------------------------------ */

.toasts {
  position: fixed;
  z-index: 100;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(92vw, 440px);
  pointer-events: none;
}
@media (min-width: 1100px) { .toasts { left: calc(50% + var(--sidebar-w) / 2); bottom: 28px; } }
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 14px;
  background: #ffffff;
  color: #0a1a40;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  animation: toast-in 0.22s ease;
  pointer-events: auto;
  border-left: 6px solid var(--brand);
}
.toast svg { width: 22px; height: 22px; flex: none; }
.toast--success { border-left-color: #12a46b; }
.toast--success svg { color: #12a46b; }
.toast--error { border-left-color: #d93636; }
.toast--error svg { color: #d93636; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: 0.2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

.modal-root { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(1, 8, 28, 0.66); backdrop-filter: blur(3px); animation: fade 0.2s ease; }
.modal {
  position: relative;
  width: 100%;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow);
  animation: sheet-in 0.24s cubic-bezier(0.2, 0.9, 0.3, 1);
  padding-bottom: env(safe-area-inset-bottom);
}
.modal::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--border-strong); margin: 10px auto 0; }
.modal__head { display: flex; align-items: center; gap: 10px; padding: 12px 18px 6px; }
.modal__title { margin: 0; font-size: 19px; font-weight: 900; flex: 1; }
.modal__body { padding: 8px 18px 16px; overflow-y: auto; overscroll-behavior: contain; }
.modal__foot { display: flex; gap: 10px; padding: 12px 18px 18px; border-top: 1px solid var(--border); }
.modal__foot .btn { flex: 1; }
@media (min-width: 720px) {
  .modal-root { align-items: center; padding: 24px; }
  .modal { max-width: 520px; border-radius: 24px; animation: pop-in 0.2s ease; }
  .modal--wide { max-width: 760px; }
  .modal::before { display: none; }
  .modal__head { padding-top: 18px; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.96); } }

/* ------------------------------------------------------------------ */
/* Telas específicas                                                  */
/* ------------------------------------------------------------------ */

/* Boas-vindas / entrar */
.welcome { max-width: 560px; margin: 0 auto; text-align: center; padding-top: 8px; }
.welcome__crest { width: min(54vw, 220px); margin: 0 auto 6px; filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.welcome__title { font-family: var(--font-display); font-size: 30px; text-transform: uppercase; letter-spacing: 0.03em; margin: 8px 0 4px; line-height: 1.1; }
.steps { display: grid; gap: 12px; margin: 22px 0; text-align: left; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
@media (min-width: 720px) { .step { flex-direction: column; } }
.step__num { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: var(--brand); color: #fff; }
.step__title { font-weight: 800; margin: 0 0 2px; }
.step__text { margin: 0; color: var(--text-3); font-size: 14px; }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px 12px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: inherit;
  text-align: center;
  min-height: 128px;
}
.pick:hover { border-color: var(--accent); }
.pick__name { font-weight: 800; font-size: 14.5px; line-height: 1.2; overflow-wrap: anywhere; }
.pick__sub { font-size: 12px; color: var(--text-3); }

.pin-dots { display: flex; justify-content: center; gap: 16px; margin: 18px 0 8px; }
.pin-dots span { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--border-strong); transition: 0.15s; }
.pin-dots span.on { background: var(--accent); border-color: var(--accent); transform: scale(1.1); }
.pin-dots.shake { animation: shake 0.35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 330px; margin: 14px auto 0; }
.keypad button {
  min-height: 64px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
.keypad button:active { background: var(--brand); color: #fff; transform: scale(0.97); }
.keypad .muted-key { background: transparent; border-color: transparent; font-size: 15px; }

/* Times */
.team-card { position: relative; overflow: hidden; padding: 0; }
.team-card__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.team-card__name { font-family: var(--font-display); font-size: 18px; text-transform: uppercase; letter-spacing: 0.03em; flex: 1; }
.team-card__body { padding: 6px 8px 10px; }
.team-card.drop-hover { outline: 3px dashed var(--accent); outline-offset: -3px; }
.team-card--reserve .team-card__head { background: var(--surface-2); }
.shield { --c: #fff; --on: #0a1a40; flex: none; width: 34px; height: 38px; display: grid; place-items: center; color: var(--on); font-weight: 900; font-size: 14px; background: var(--c); clip-path: path("M17 0 L34 6 V20 C34 30 26 35 17 38 C8 35 0 30 0 20 V6 Z"); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.2); }
.shield--lg { width: 58px; height: 64px; font-size: 22px; clip-path: path("M29 0 L58 10 V34 C58 51 44 59 29 64 C14 59 0 51 0 34 V10 Z"); }
.team-stripe { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c); }
.tc-preto { --c: #111827; --on: #fff; }
.tc-branco { --c: #ffffff; --on: #0a1a40; }
.tc-azul { --c: #2563eb; --on: #fff; }
.tc-vermelho { --c: #dc2626; --on: #fff; }
.tc-verde { --c: #16a34a; --on: #fff; }
.tc-amarelo { --c: #facc15; --on: #1f1600; }
.tc-laranja { --c: #f97316; --on: #1f0d00; }
.tc-roxo { --c: #7c3aed; --on: #fff; }
.shield.tc-preto { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); }

.chip-player {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 6px 8px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  background: transparent;
  color: inherit;
  text-align: left;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.chip-player.is-editable:hover { background: var(--surface-2); }
.chip-player.is-selected { border-color: var(--accent); background: var(--brand-soft); }
.chip-player.is-dragging { opacity: 0.35; }
.chip-player .name { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drag-ghost { position: fixed; z-index: 120; pointer-events: none; padding: 8px 14px; border-radius: 14px; background: var(--brand); color: #fff; font-weight: 800; box-shadow: var(--shadow); transform: translate(-50%, -120%); }

.balance { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.balance--ótimo { color: var(--success); }
.balance--bom { color: var(--accent); }
.balance--regular { color: var(--warning); }

/* Placar */
.scoreboard {
  position: relative;
  border-radius: 24px;
  padding: 18px 14px 16px;
  color: #fff;
  background-image: var(--stars), linear-gradient(160deg, #0d2a72 0%, #071a4a 60%, #04102e 100%);
  border: 1px solid rgba(140, 175, 255, 0.28);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.scoreboard__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.scoreboard__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 14px; }
.sb-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.sb-team__name { font-family: var(--font-display); font-size: 17px; text-transform: uppercase; letter-spacing: 0.04em; overflow-wrap: anywhere; }
.sb-team__streak { font-size: 12px; opacity: 0.8; min-height: 16px; }
.sb-score { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 64px; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 4px 20px rgba(80, 140, 255, 0.45); }
.sb-score .x { font-size: 28px; opacity: 0.55; }
.sb-clock { margin: 16px auto 0; width: fit-content; min-width: 200px; text-align: center; padding: 8px 22px; border-radius: 16px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.14); font-family: "Consolas", "SF Mono", "Roboto Mono", monospace; font-weight: 800; font-size: 54px; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.sb-clock.is-paused { color: var(--warning); }
.sb-clock.is-over { color: #ff8b8b; animation: pulse 1s infinite; }
.sb-progress { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); margin: 12px 4px 0; overflow: hidden; }
.sb-progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7aa7ff, #fff); border-radius: inherit; }
@media (min-width: 720px) {
  .sb-score { font-size: 92px; }
  .sb-clock { font-size: 72px; min-width: 280px; }
  .sb-team__name { font-size: 22px; }
}
.goal-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.goal-btns .btn { min-height: 64px; font-size: 18px; }
.ctrl-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.ctrl-row .btn { flex: 1 1 140px; }

.queue { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.queue__item { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); font-weight: 800; }
.queue__pos { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 13px; }

.timeline { display: flex; flex-direction: column; gap: 8px; }
.goal-line { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.goal-line .min { width: 38px; text-align: right; font-weight: 900; color: var(--text-3); font-variant-numeric: tabular-nums; }

.match-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.match-card:last-child { border-bottom: 0; }
.match-card__team { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 800; }
.match-card__team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-card__team--b { justify-content: flex-end; text-align: right; }
.match-card__score { font-family: var(--font-display); font-size: 22px; font-variant-numeric: tabular-nums; padding: 0 6px; }
.match-card .win { color: var(--success); }

/* Ranking */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 10px; margin: 8px 0 18px; }
.podium__slot { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; color: inherit; text-decoration: none; }
.podium__name { font-weight: 800; font-size: 14.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium__block { width: 100%; border-radius: 14px 14px 6px 6px; display: grid; place-items: center; font-family: var(--font-display); font-size: 26px; color: #fff; background: linear-gradient(180deg, #2f64ea, #163c9c); }
.podium__slot--1 .podium__block { height: 110px; background: linear-gradient(180deg, #ffffff, #c9d8ff); color: #12358f; }
.podium__slot--2 .podium__block { height: 82px; }
.podium__slot--3 .podium__block { height: 64px; background: linear-gradient(180deg, #2552c2, #102c78); }
.podium__value { font-size: 13px; color: var(--text-3); font-weight: 700; }

/* Perfil */
.profile-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 16px; border-radius: 22px; color: #fff; background-image: var(--stars), linear-gradient(150deg, #2a5ee0, #12358f 70%); box-shadow: var(--shadow); }
.profile-head__name { font-family: var(--font-display); font-size: 24px; text-transform: uppercase; letter-spacing: 0.03em; margin: 4px 0 0; }
.stat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
@media (min-width: 720px) { .stat-tiles { grid-template-columns: repeat(4, 1fr); } }
.stat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-align: center; }
.stat-tile__value { font-family: var(--font-display); font-size: 32px; line-height: 1.1; }
.stat-tile__label { font-size: 12.5px; color: var(--text-3); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

.pix-box { display: grid; gap: 14px; align-items: center; }
@media (min-width: 560px) { .pix-box { grid-template-columns: 180px 1fr; } }
.pix-qr { width: 180px; height: 180px; margin: 0 auto; border-radius: 16px; background: #fff; padding: 8px; }
.pix-code { font-family: "Consolas", "SF Mono", monospace; font-size: 12px; word-break: break-all; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--border-strong); color: var(--text-2); max-height: 92px; overflow: auto; }

.money { font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }
.money.pos { color: var(--success); }
.money.neg { color: var(--danger); }

.month-nav { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px; }
.month-nav__label { min-width: 150px; text-align: center; font-weight: 800; text-transform: capitalize; }

.qr-img { width: 200px; height: 200px; border-radius: 16px; background: #fff; padding: 8px; }

.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid var(--border); }
.banner svg { width: 24px; height: 24px; flex: none; color: var(--accent); margin-top: 1px; }
.banner--warn { background: var(--warning-soft); }
.banner--warn svg { color: var(--warning); }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar .btn { flex: 1 1 auto; }
@media (min-width: 720px) { .toolbar .btn { flex: 0 0 auto; } }

.filters { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .filters { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.player-admin-row .list-row__sub .tag { margin-right: 4px; }
.rating { display: inline-grid; place-items: center; min-width: 34px; height: 30px; border-radius: 10px; background: var(--brand-soft); color: var(--accent); font-weight: 900; font-variant-numeric: tabular-nums; }
.is-inactive { opacity: 0.55; }

.footer-note { margin-top: 30px; text-align: center; font-size: 13px; color: var(--text-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ------------------------------------------------------------------ */
/* Cartinha do jogador (posição declarada + média dos votos)          */
/* ------------------------------------------------------------------ */

.pcard {
  --bg1: #3b72f2;
  --bg2: #173f9f;
  --bg3: #0a2263;
  --ink: #ffffff;
  --edge: #ffffff;
  --rule: rgba(255, 255, 255, 0.38);
  --shape: polygon(50% 0%, 100% 5.5%, 100% 87%, 50% 100%, 0% 87%, 0% 5.5%);
  position: relative;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 210px;
  max-width: 100%;
  aspect-ratio: 5 / 7.3;
  margin: 0 auto;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--edge);
  clip-path: var(--shape);
  font-family: var(--font);
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s;
}
button.pcard { cursor: pointer; }
button.pcard:hover { transform: translateY(-3px) rotate(-0.4deg); }
.pcard::before {
  content: "";
  position: absolute;
  inset: 3.5px;
  clip-path: var(--shape);
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.28), transparent 46%),
    var(--stars),
    linear-gradient(165deg, var(--bg1), var(--bg2) 56%, var(--bg3));
}
.pcard > * { position: relative; z-index: 1; }
.pcard--sm { width: 180px; }
.pcard--lg { width: min(290px, 82vw); }
.pcard--prata { --bg1: #ffffff; --bg2: #dbe6ff; --bg3: #a9c1f5; --ink: #0d2a72; --edge: #ffffff; --rule: rgba(13, 42, 114, 0.3); }
.pcard--craque { --bg1: #1d4bbd; --bg2: #0d2a72; --bg3: #061743; --edge: #f2c94c; --rule: rgba(242, 201, 76, 0.55); }
.pcard--craque .pcard__ovr, .pcard--craque .pcard__attr b { color: #ffe08a; }
.pcard--novo::before { filter: saturate(0.75); }
.pcard__shine { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.28) 48%, transparent 60%); background-size: 250% 100%; background-position: 120% 0; }
.pcard--craque .pcard__shine, button.pcard:hover .pcard__shine { animation: card-shine 2.6s ease-in-out infinite; }
@keyframes card-shine { to { background-position: -120% 0; } }
.pcard__top { position: absolute; left: 9cqw; top: 11cqw; display: flex; flex-direction: column; align-items: center; gap: 0.5cqw; z-index: 3; }
.pcard__ovr { font-family: var(--font-display); font-size: 17cqw; line-height: 0.95; }
.pcard__pos { font-weight: 900; font-size: 6.6cqw; letter-spacing: 0.06em; }
.pcard__crest { width: 12cqw; height: auto; margin-top: 1.5cqw; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)); }
.pcard__photo { width: 60cqw; aspect-ratio: 1; margin: 9cqw 0 0 16cqw; border-radius: 16%; overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); -webkit-mask-image: linear-gradient(#000 78%, transparent 100%); mask-image: linear-gradient(#000 78%, transparent 100%); }
.pcard__photo img { width: 100%; height: 100%; object-fit: cover; }
.pcard__initials { font-family: var(--font-display); font-size: 20cqw; opacity: 0.9; }
.pcard__name { width: 80cqw; margin-top: 1cqw; padding-bottom: 1.6cqw; border-bottom: 1px solid var(--rule); font-family: var(--font-display); font-size: 8cqw; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__attrs { display: grid; grid-template-columns: 1fr 1fr; width: 76cqw; margin-top: 2.2cqw; }
.pcard__attrs > span { display: flex; flex-direction: column; gap: 0.6cqw; padding: 0 2cqw; }
.pcard__attrs > span:first-child { border-right: 1px solid var(--rule); }
.pcard__attr { display: flex; align-items: baseline; gap: 2cqw; font-size: 6.2cqw; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }
.pcard__attr b { font-family: var(--font-display); font-weight: 900; min-width: 8.5cqw; text-align: right; }
.pcard__foot { margin-top: auto; margin-bottom: 15cqw; font-size: 4.2cqw; font-weight: 700; opacity: 0.85; letter-spacing: 0.02em; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 18px 14px; }
@media (min-width: 720px) { .card-grid { grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 22px 18px; } }
.card-cell { display: flex; flex-direction: column; align-items: center; gap: 10px; filter: drop-shadow(0 10px 18px rgba(0, 8, 32, 0.35)); }
.card-cell .pcard { width: 100%; }
.center-col { display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 14px 26px rgba(0, 8, 32, 0.4)); }
.center-col > .btn, .center-col > .card, .center-col > .hint, .center-col > .row-wrap { filter: none; }
.center-col > .card { width: 100%; }
.justify-center { justify-content: center; }
.mb-2 { margin-bottom: 16px; }

.vote { display: grid; gap: 18px; }
@media (min-width: 720px) { .vote { grid-template-columns: 200px 1fr; align-items: start; } }
.vote__card { filter: drop-shadow(0 10px 18px rgba(0, 8, 32, 0.35)); }
.vote__row { padding: 8px 0; border-bottom: 1px solid var(--border); }
.vote__row:last-child { border-bottom: 0; }
.vote__label { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.vote__value { margin-left: auto; font-weight: 900; color: var(--accent); font-variant-numeric: tabular-nums; }

.attr-bar { flex: 0 0 34%; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.attr-bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #3b72f2, #9cc0ff); }
.rank-value { min-width: 40px; text-align: right; font-family: var(--font-display); font-size: 22px; font-variant-numeric: tabular-nums; }

.cropper__frame { position: relative; width: min(100%, 360px); aspect-ratio: 1; margin: 0 auto; border-radius: 20px; overflow: hidden; touch-action: none; cursor: grab; background: var(--surface-2); }
.cropper__frame:active { cursor: grabbing; }
.cropper__frame canvas { width: 100%; height: 100%; display: block; }
.cropper__mask { position: absolute; inset: 0; pointer-events: none; border-radius: 20px; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.85), inset 0 0 0 9999px rgba(0, 0, 0, 0); }

.list-row a, .pick, .podium__slot { text-decoration: none; }
.welcome .avatar { margin: 0 auto; }

/* Tamanho padrão dos ícones dentro de textos (as regras específicas acima têm prioridade) */
:where(svg) { width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.2em; }
.state__art svg { width: 100%; height: 100%; }
.card__title svg { width: 20px; height: 20px; color: var(--accent); margin-right: 4px; }
a.eyebrow { text-decoration: none; }
.month-nav__label { text-transform: none; }
.month-nav__label::first-letter { text-transform: uppercase; }
