/* === ÁLBUM DO CAUÃ - COPA 2026 — Tema Panini oficial === */
:root {
  /* Personalizado pelo usuário */
  --c-accent: #111111;
  --c-accent-dark: #000000;
  /* Paleta inspirada na capa oficial Panini 2026 */
  --c-bg: #ffffff;
  --c-bg-soft: #f6f7f9;
  --c-ink: #111111;
  --c-ink-soft: #444;
  --c-muted: #888;
  --c-border: #ececec;
  --c-card: #ffffff;

  --c-blue: #111111;       /* "principal" = preto (header etc) */
  --c-blue-deep: #000000;
  --c-red: #d4444a;
  --c-gold: #e3b23c;       /* dourado da taça */
  --c-gold-dark: #a87b1a;
  --c-success: #54a96d;

  /* Cores do padrão de folhas */
  --p-red: #d4444a;
  --p-orange: #f06a25;
  --p-yellow: #f5d34c;
  --p-green: #54a96d;
  --p-teal: #4ec0b8;
  --p-blue: #4a8ec6;
  --p-purple: #5d4a9c;
  --p-pink: #e8a4b8;
  --p-rose: #d4607f;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.16);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: 'Nunito', sans-serif;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-tap-highlight-color: transparent;
}

/* Fonte personalizada SÓ em destaques (números, títulos brandey).
   Body, menus, botões, textos ficam SEMPRE em Nunito pra legibilidade. */
.header-name,
.countdown-days,
.countdown-label,
.stat-value,
.ap-stat-value,
.cover-name-big,
.cover-26,
.fcr-pct,
.family-pct,
.brazil-day,
.qs-input,
.sticker-num,
.bk-score,
h1, h2, h3,
.section-title,
.brazil-block h3,
.today-block h3,
.modal-content h2 {
  font-family: var(--font-body, 'Nunito', sans-serif) !important;
}

/* Ajustes específicos quando a fonte é Pixel (precisa MAIS espaço) */
body[data-font="pixel"] .countdown-days { font-size: 34px; letter-spacing: 0; }
body[data-font="pixel"] .stat-value { font-size: 18px; }
body[data-font="pixel"] .stat-card.big .stat-value { font-size: 26px; }
body[data-font="pixel"] .ap-stat-value { font-size: 16px; }
body[data-font="pixel"] .header-name { font-size: 13px; letter-spacing: 0; }
body[data-font="pixel"] .cover-26 { font-size: 32px; letter-spacing: 0; }
body[data-font="pixel"] .cover-name-big { font-size: 14px; }
body[data-font="pixel"] h1 { font-size: 14px; }
body[data-font="pixel"] h2 { font-size: 14px; letter-spacing: 0; }
body[data-font="pixel"] h3 { font-size: 11px; letter-spacing: 0; }
body[data-font="pixel"] .section-title { font-size: 11px; letter-spacing: 0; }
body[data-font="pixel"] .modal-content h2 { font-size: 14px; }
body[data-font="pixel"] .sticker-num { font-size: 14px; }
body[data-font="pixel"] .qs-input { font-size: 22px; }
body[data-font="pixel"] .family-pct { font-size: 11px; }
body[data-font="pixel"] .fcr-pct { font-size: 11px; }
body[data-font="pixel"] .brazil-day { font-size: 14px; }
body[data-font="pixel"] .countdown-label { font-size: 9px; letter-spacing: 1px; }

/* Bebas Neue - alta e fina, fica natural com mais letter-spacing */
body[data-font="bebas"] .header-name,
body[data-font="bebas"] h1, body[data-font="bebas"] h2, body[data-font="bebas"] h3,
body[data-font="bebas"] .section-title { letter-spacing: 1.5px; }
body {
  min-height: 100vh;
  min-height: 100dvh;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; font-size: 16px; }

/* ============ FOLHAS PANINI (padrão decorativo) ============ */
/* Cada "folha" é um SVG com cantos arredondados em forma de pétala */
.leaf-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.leaf {
  position: absolute;
  width: 80px;
  height: 100px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-25deg);
  opacity: .85;
}

/* ============ LOGIN ============ */
.login-body {
  background:
    radial-gradient(circle at 10% 10%, var(--p-yellow) 0%, transparent 35%),
    radial-gradient(circle at 90% 5%, var(--p-orange) 0%, transparent 30%),
    radial-gradient(circle at 5% 95%, var(--p-blue) 0%, transparent 35%),
    radial-gradient(circle at 95% 95%, var(--p-purple) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, var(--p-pink) 0%, transparent 50%),
    linear-gradient(135deg, var(--p-red) 0%, var(--p-orange) 25%, var(--p-yellow) 50%, var(--p-green) 75%, var(--p-blue) 100%);
  background-attachment: fixed;
  color: var(--c-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-overflow-scrolling: touch;
}
.login-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background-image:
    radial-gradient(circle at 15% 20%, var(--p-yellow) 5%, transparent 6%),
    radial-gradient(circle at 85% 25%, var(--p-teal) 5%, transparent 6%),
    radial-gradient(circle at 25% 75%, var(--p-pink) 5%, transparent 6%),
    radial-gradient(circle at 75% 85%, var(--p-orange) 5%, transparent 6%),
    radial-gradient(circle at 50% 10%, var(--p-purple) 4%, transparent 5%),
    radial-gradient(circle at 10% 50%, var(--p-rose) 4%, transparent 5%),
    radial-gradient(circle at 90% 60%, var(--p-green) 4%, transparent 5%);
  pointer-events: none;
  z-index: 0;
  opacity: .65;
}
.login-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.hard-reload-link {
  background: none;
  color: rgba(255,255,255,.45);
  border: none;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: underline;
  margin-top: 4px;
}
.hard-reload-link:hover { color: rgba(255,255,255,.8); }
.install-banner {
  background: linear-gradient(135deg, var(--c-ink) 0%, #333 100%);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  border: 2px solid var(--c-gold);
  animation: install-slide .4s ease-out;
}
.install-banner[hidden] { display: none !important; }
.install-close {
  min-width: 36px;
  min-height: 36px;
}
@keyframes install-slide {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.install-icon { font-size: 24px; flex-shrink: 0; }
.install-text { flex: 1; min-width: 0; }
.install-text strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: var(--c-gold);
}
.install-text small {
  display: block;
  font-size: 11px;
  opacity: .9;
  line-height: 1.2;
}
.install-btn {
  background: var(--c-gold);
  color: var(--c-ink);
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.install-btn:active { transform: scale(.95); }
.install-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.6);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.install-close:hover { color: #fff; }
@media (min-width: 820px) {
  .login-container {
    max-width: 940px;
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }
  .login-container .album-cover {
    flex: 0 0 440px;
    max-height: 580px;
  }
  .login-container .login-card {
    flex: 1;
  }
}

/* Capa do álbum estilo Panini oficial */
.album-cover {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 0;
  aspect-ratio: 3/4;
  max-height: 460px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #eee;
}

/* === MOBILE COMPACTO (capa Panini oficial, sem foto/nome) === */
@media (max-width: 820px) {
  .login-body { padding: 12px !important; align-items: flex-start !important; padding-top: max(12px, env(safe-area-inset-top)) !important; }
  .login-container { max-width: 380px !important; gap: 14px !important; }

  /* Capa estilo Panini real - branca com folhas coloridas */
  .album-cover {
    aspect-ratio: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    background: #fff !important;
    border-radius: 16px !important;
    height: auto !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  /* Folhas: mais finas, cobrem toda a altura */
  .cover-leaves { display: block !important; }
  .cover-leaves .leaf-col {
    width: 38px !important;
    top: 0 !important;
    bottom: 0 !important;
  }
  .cover-leaves .leaf {
    width: 30px !important;
    margin-left: 2px !important;
    margin-bottom: -3px !important;
  }
  .cover-leaves .leaf.shift { margin-left: 10px !important; }
  .cover-inner {
    padding: 14px 50px 12px !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    text-align: center !important;
    background: transparent !important;
    border-radius: 0 !important;
    height: auto !important;
  }
  .cover-top-text {
    display: block !important;
    font-size: 9px !important;
    color: #111 !important;
    font-weight: 900;
    letter-spacing: .5px;
    line-height: 1.1 !important;
    margin: 0 !important;
  }
  .cover-26 {
    display: flex !important;
    font-size: 64px !important;
    letter-spacing: -3px !important;
    margin: 0 !important;
    color: #111 !important;
  }
  .cover-26 .trophy {
    width: 0.9em !important;
    height: 1.2em !important;
    margin: 0 -0.15em !important;
  }
  .cover-fifa {
    display: block !important;
    font-size: 14px !important;
    color: #111 !important;
    margin: 0 !important;
    letter-spacing: .5px;
  }
  /* Esconde foto e nome do Cauã na tela inicial */
  .cover-photo-hero { display: none !important; }
  .cover-name-big { display: none !important; }
  .cover-host-row {
    display: flex !important;
    font-size: 16px !important;
    gap: 6px !important;
    margin: 2px 0 !important;
  }
  .cover-sticker-album {
    display: block !important;
    font-size: 8px !important;
    letter-spacing: .8px;
    margin: 2px 0 !important;
    color: #555 !important;
  }
  .cover-panini {
    display: inline-block !important;
    font-size: 12px !important;
    padding: 2px 10px 1px !important;
    border-width: 2px !important;
    margin: 2px 0 0 !important;
  }

  .login-card { padding: 16px; gap: 12px; }
  .login-card h1 { font-size: 18px; }
  .login-card label span { font-size: 10px; }
  .login-card input { padding: 11px 14px; font-size: 15px; }
  .btn-primary { padding: 13px; font-size: 15px; }
  .login-hint { font-size: 11px; line-height: 1.4; }
  .profile-chip { padding: 4px 12px 4px 4px; font-size: 13px; }
  .profile-avatar { width: 26px; height: 26px; font-size: 13px; }
  .profiles-section h2 { font-size: 11px; }
}

@media (max-width: 420px) {
  .album-cover { max-height: 100px; min-height: 90px; }
  .cover-26 { font-size: 28px; }
  .cover-photo-hero { width: 48px; height: 48px; padding: 2px; }
  .cover-name-big { font-size: 18px; }
  .cover-host-row, .cover-panini { display: none; }
  .login-hint { display: none; }
}
.cover-leaves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.cover-leaves .leaf-col {
  position: absolute;
  top: -8px;
  bottom: -8px;
  width: 100px;
  display: flex;
  flex-direction: column;
}
.cover-leaves .leaf-col.left { left: 0; }
.cover-leaves .leaf-col.right { right: 0; transform: scaleX(-1); }
.cover-leaves .leaf {
  flex: 1 1 auto;
  min-height: 0;
  width: 78px;
  border-radius: 0 90% 90% 90%;
  margin-left: 4px;
  margin-bottom: -10px;
  transform-origin: center;
}
.cover-leaves .leaf.shift { margin-left: 22px; }
/* 14 cores intercaladas (cobrem todo o lado) */
.cover-leaves .leaf:nth-child(1)  { background: var(--p-red);    transform: rotate(-10deg); }
.cover-leaves .leaf:nth-child(2)  { background: var(--p-orange); transform: rotate(6deg); }
.cover-leaves .leaf:nth-child(3)  { background: var(--p-yellow); transform: rotate(-7deg); }
.cover-leaves .leaf:nth-child(4)  { background: var(--p-pink);   transform: rotate(8deg); }
.cover-leaves .leaf:nth-child(5)  { background: var(--p-green);  transform: rotate(-6deg); }
.cover-leaves .leaf:nth-child(6)  { background: #d9d9e8;         transform: rotate(7deg); }
.cover-leaves .leaf:nth-child(7)  { background: var(--p-blue);   transform: rotate(-9deg); }
.cover-leaves .leaf:nth-child(8)  { background: var(--p-purple); transform: rotate(5deg); }
.cover-leaves .leaf:nth-child(9)  { background: var(--p-rose);   transform: rotate(-8deg); }
.cover-leaves .leaf:nth-child(10) { background: #f4d1a8;         transform: rotate(6deg); }
.cover-leaves .leaf:nth-child(11) { background: var(--p-teal);   transform: rotate(-10deg); }
.cover-leaves .leaf:nth-child(12) { background: #cfe5d6;         transform: rotate(7deg); }
.cover-leaves .leaf:nth-child(13) { background: var(--p-red);    transform: rotate(-5deg); }
.cover-leaves .leaf:nth-child(14) { background: var(--p-yellow); transform: rotate(8deg); }
.cover-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 100px 18px;
  gap: 6px;
}
.cover-top-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .5px;
  line-height: 1.15;
  color: #111;
  text-transform: uppercase;
  margin-top: 8px;
}
.cover-26 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(80px, 26vw, 130px);
  color: #111;
  line-height: 1;
  letter-spacing: -6px;
  position: relative;
  margin-top: 14px;
  display: flex;
  align-items: center;
}
.cover-26 .digit-2 { display: inline-block; }
.cover-26 .trophy {
  display: inline-block;
  width: 0.95em;
  height: 1.25em;
  margin: 0 -0.15em;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.25));
}
.cover-26 .trophy svg {
  width: 100%;
  height: 100%;
  display: block;
}
.cover-26 .digit-6 { display: inline-block; }
.cover-host-row {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  justify-content: center;
}
.host-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #ddd;
  display: inline-block;
  font-size: 16px;
  text-align: center;
  line-height: 26px;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.host-can { background: linear-gradient(180deg, #fff 50%, #d80027 50%); position: relative; }
.host-can::after { content: '🍁'; position: absolute; inset: 0; font-size: 14px; line-height: 26px; }
.host-usa { background: linear-gradient(180deg, #b22234 0%, #b22234 50%, #fff 50%, #fff 100%); position: relative; }
.host-usa::after { content: '⭐'; position: absolute; inset: 0; font-size: 12px; line-height: 26px; color: #fff; }
.host-mex { background: linear-gradient(90deg, #006847 33%, #fff 33%, #fff 66%, #ce1126 66%); position: relative; }
.host-mex::after { content: '🦅'; position: absolute; inset: 0; font-size: 13px; line-height: 26px; }
.cover-mascot-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 14px;
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.15));
}
.cover-fifa {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 1px;
  margin-top: 0;
  color: #111;
}
.cover-host-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  justify-content: center;
  font-size: 22px;
}
.cover-sticker-album {
  margin-top: auto;
  margin-bottom: 6px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #555;
  font-weight: 700;
  text-transform: uppercase;
}
/* (substituído acima) */
/* Foto em destaque na capa */
.cover-photo-hero {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 8px auto;
  background: conic-gradient(
    var(--p-red),
    var(--p-orange),
    var(--p-yellow),
    var(--p-green),
    var(--p-teal),
    var(--p-blue),
    var(--p-purple),
    var(--p-pink),
    var(--p-red)
  );
  padding: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  animation: spin-bg 12s linear infinite;
}
@keyframes spin-bg { to { transform: rotate(360deg); } }
.cover-photo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  display: block;
  animation: spin-bg 12s linear infinite reverse;
}
.cover-photo-fallback {
  display: none;
  font-size: 70px;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  align-items: center;
  justify-content: center;
  border: 4px solid #fff;
}
.cover-photo-hero.no-photo .cover-photo-img { display: none; }
.cover-photo-hero.no-photo .cover-photo-fallback { display: flex; }
.cover-name-big {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 7vw, 30px);
  letter-spacing: 1.5px;
  color: #111;
  background: linear-gradient(90deg, var(--p-red), var(--p-orange), var(--p-yellow), var(--p-green), var(--p-blue), var(--p-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 4px;
  white-space: nowrap;
  max-width: 100%;
  overflow: visible;
  line-height: 1;
}
.cover-panini {
  background: #fce247;
  color: #d8242b;
  padding: 6px 18px 4px;
  border-radius: 4px;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 1px;
  font-size: 22px;
  border: 3px solid #d8242b;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transform: skew(-8deg);
}

.login-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-md);
}
.login-card h1 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 24px;
  text-align: center;
  letter-spacing: -.5px;
}
.login-card label { display: flex; flex-direction: column; gap: 6px; }
.login-card label span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--c-muted);
}
.login-card input {
  background: var(--c-bg-soft);
  border: 1.5px solid var(--c-border);
  color: var(--c-ink);
  padding: 12px 14px;
  border-radius: 10px;
  outline: none;
  transition: border-color .15s;
}
.login-card input:focus { border-color: var(--c-ink); }
.login-card input::placeholder { color: #aaa; }
.pin-wrapper { position: relative; }
.pin-wrapper input { width: 100%; padding-right: 48px; }
.pin-toggle-eye {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background .15s;
}
.pin-toggle-eye:hover { background: var(--c-bg-soft); }
.pin-toggle-eye:active { transform: translateY(-50%) scale(.9); }

.btn-primary {
  background: var(--c-accent);
  color: #fff;
  font-weight: 900;
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  letter-spacing: .5px;
  padding: 14px;
  border-radius: 12px;
  transition: transform .1s, background .2s;
  text-transform: uppercase;
}
.btn-primary:active { transform: translateY(1px); }
.btn-primary:hover { background: var(--c-accent-dark); }
.btn-secondary {
  background: var(--c-bg-soft);
  border: 1.5px solid var(--c-border);
  color: var(--c-ink);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
  transition: background .15s;
  font-size: 13px;
}
.btn-secondary:hover { background: #eef0f4; }
.btn-danger {
  background: var(--c-red);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
}

.login-error {
  background: #ffe7e9;
  border: 1px solid var(--c-red);
  color: #8a1f28;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  font-weight: 700;
}
.login-hint {
  font-size: 12px;
  color: var(--c-muted);
  text-align: center;
  line-height: 1.5;
}
.profiles-section h2 {
  font-size: 13px;
  letter-spacing: 0;
  color: var(--c-ink);
  font-weight: 800;
  margin-bottom: 8px;
}
.divider-or {
  text-align: center;
  margin: 14px 0 6px;
  position: relative;
  color: var(--c-muted);
  font-size: 11px;
  font-weight: 700;
}
.divider-or::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--c-border);
  z-index: 0;
}
.divider-or span {
  background: #fff;
  padding: 0 10px;
  position: relative;
  z-index: 1;
}
.new-user-btn {
  background: linear-gradient(135deg, var(--p-blue), var(--p-purple));
  color: #fff;
  border: none;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.new-user-btn:hover { filter: brightness(1.08); }
.new-user-btn:active { transform: scale(.98); }
.name-status {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
}
.name-status.exists {
  background: #fff3cd;
  border: 1px solid #ffe07a;
  color: #856404;
}
.name-status.new {
  background: #d4edda;
  border: 1px solid #a3d8a8;
  color: #155724;
}
.login-flow-hint {
  background: linear-gradient(135deg, #fff8d6, #fffbeb);
  border: 1.5px solid var(--c-gold);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--c-ink);
}
.login-flow-hint strong { color: var(--c-red); }
.login-flow-hint summary {
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 18px;
  user-select: none;
}
.login-flow-hint summary::-webkit-details-marker { display: none; }
.login-flow-hint summary::after {
  content: '▾';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--c-muted);
  transition: transform .2s;
}
.login-flow-hint[open] summary::after { transform: rotate(180deg); }
.login-flow-hint .hint-toggle {
  font-weight: 600;
  font-size: 11px;
  color: var(--c-muted);
  margin-left: 6px;
}
.login-flow-hint[open] .hint-toggle { display: none; }
.login-flow-hint p {
  margin-top: 8px;
  font-size: 12px;
}
.profiles-list { display: flex; flex-wrap: wrap; gap: 8px; }
.profiles-helper { font-size: 11px; color: var(--c-muted); margin-bottom: 8px; line-height: 1.4; }
.profile-chip-wrap { position: relative; display: inline-block; }
.profile-chip-remove {
  position: absolute;
  top: -4px; right: -4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--c-muted);
  color: #fff;
  border: 1.5px solid #fff;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
}
.profile-chip-remove:hover { background: var(--c-red); }
.profile-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--c-bg-soft);
  border: 1.5px solid var(--c-border);
  padding: 5px 12px 5px 5px;
  border-radius: 30px;
  color: var(--c-ink);
  font-weight: 800;
  font-size: 13px;
  transition: background .15s;
}
.profile-chip:hover { background: #eef0f4; }
.profile-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 13px;
}

/* ============ APP ============ */
.app-body {
  background:
    radial-gradient(circle at 0% 0%, rgba(244, 209, 168, .25) 0%, transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(74, 142, 198, .2) 0%, transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(232, 164, 184, .2) 0%, transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(84, 169, 109, .2) 0%, transparent 30%),
    #fbf9f5;
  padding-bottom: 70px;
  min-height: auto !important; /* overriding body min-height 100vh - footer hugs content */
}
.app-header {
  background: #fff;
  color: var(--c-ink);
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, var(--p-red), var(--p-orange), var(--p-yellow), var(--p-green), var(--p-blue), var(--p-purple)) 1;
}
.header-left { display: flex; align-items: center; gap: 10px; }
.header-avatar {
  width: 38px; height: 38px;
  background: var(--c-accent);
  color: var(--c-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 16px;
}
.header-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -.3px;
  line-height: 1;
  color: var(--c-ink);
}
.header-info { min-width: 0; flex: 1; }
.header-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 11px;
  color: var(--c-muted);
  font-weight: 700;
  flex-wrap: wrap;
}
.header-meta > span {
  white-space: nowrap;
}
.header-meta > span + span::before {
  content: '·';
  margin-right: 6px;
  color: var(--c-border);
}
.header-date { color: var(--c-ink); }
.header-weather {
  color: var(--c-ink);
  font-weight: 800;
}
.header-progress {
  color: var(--c-muted);
}
.header-right { display: flex; gap: 6px; }
.icon-btn {
  width: 38px; height: 38px;
  background: var(--c-bg-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: background .15s;
}
.icon-btn:hover { background: #eef0f4; }
.cloud-status {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: help;
  user-select: none;
}
.cloud-status[data-status="syncing"] { animation: pulse 1.5s infinite; }
.cloud-status[data-status="error"] { background: rgba(212,68,74,.15); border-radius: 50%; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.global-progress {
  height: 5px;
  background: var(--c-bg-soft);
  position: sticky;
  top: calc(64px + env(safe-area-inset-top));
  z-index: 49;
}
.global-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--p-red) 0%, var(--p-orange) 25%, var(--p-yellow) 50%, var(--p-green) 75%, var(--p-blue) 100%);
  width: 0%;
  transition: width .4s ease;
}

main { padding: 12px 12px 8px; }
.tab-pane { animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  position: sticky;
  top: calc(70px + env(safe-area-inset-top));
  z-index: 5;
  background: var(--c-bg);
  padding: 8px 0;
}
.search-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
  outline: none;
  background: #fff;
  transition: border-color .15s;
  font-weight: 600;
}
.search-input:focus { border-color: var(--c-ink); }
.filter-chips, .map-toggle {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.filter-chips::-webkit-scrollbar, .map-toggle::-webkit-scrollbar { display: none; }
.chip {
  background: #fff;
  border: 1.5px solid var(--c-border);
  padding: 10px 16px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  transition: all .15s;
  color: var(--c-ink);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.chip:hover { background: var(--c-bg-soft); }
.chip.active {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}

/* === SEÇÕES === */
.section-block {
  background: var(--c-card);
  border-radius: 10px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 16px;
  background: #fff;
  color: var(--c-ink);
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--c-border);
  position: relative;
}
.section-header::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: var(--p-blue);
}
.section-block:nth-child(7n+1) .section-header::before { background: var(--p-red); }
.section-block:nth-child(7n+2) .section-header::before { background: var(--p-orange); }
.section-block:nth-child(7n+3) .section-header::before { background: var(--p-yellow); }
.section-block:nth-child(7n+4) .section-header::before { background: var(--p-green); }
.section-block:nth-child(7n+5) .section-header::before { background: var(--p-blue); }
.section-block:nth-child(7n+6) .section-header::before { background: var(--p-purple); }
.section-block:nth-child(7n) .section-header::before { background: var(--p-pink); }
.section-flag { font-size: 22px; line-height: 1; }
.section-info { flex: 1; min-width: 0; }
.section-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: -.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.section-meta {
  font-size: 10px;
  color: var(--c-muted);
  margin-top: 1px;
  font-weight: 700;
}
.section-progress-mini {
  background: var(--c-bg-soft);
  border-radius: 30px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 900;
  min-width: 56px;
  text-align: center;
  color: var(--c-ink);
}
.section-progress-mini.complete {
  background: var(--c-success);
  color: #fff;
}
.section-toggle {
  font-size: 12px;
  color: var(--c-muted);
  transition: transform .2s;
}
.section-block.collapsed .section-toggle { transform: rotate(-90deg); }
.section-block.collapsed .stickers-grid { display: none; }
.section-progress-bar {
  height: 3px;
  background: var(--c-bg-soft);
}
.section-progress-bar > div {
  height: 100%;
  background: var(--c-gold);
  transition: width .4s ease;
}

.stickers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 6px;
  padding: 8px;
}
.sticker {
  position: relative;
  aspect-ratio: 3/4;
  background: #fafafa;
  border: 1.5px dashed #d8d8d8;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
  overflow: hidden;
  user-select: none;
  padding: 4px 2px;
}
.sticker:active { transform: scale(.92); }
.sticker.owned {
  background: #fff;
  border: 2px solid var(--c-ink);
  color: var(--c-ink);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.sticker.owned.shiny {
  background: linear-gradient(135deg, #fff7d6 0%, #ffe27a 50%, #ffd24a 100%);
  border-color: var(--c-gold);
  box-shadow: 0 2px 10px rgba(227,178,60,.4);
}
.sticker.duplicate {
  border-color: var(--c-red);
  background: linear-gradient(135deg, #ffe7e9 0%, #fff 100%);
}
.dup-badge {
  position: absolute;
  bottom: 3px; right: 3px;
  background: var(--c-red);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1.5px solid #fff;
  min-width: 24px;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  z-index: 2;
}
.dup-minus {
  position: absolute;
  top: 2px; right: 2px;
  width: 36px; height: 36px;
  background: var(--c-red);
  color: #fff;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
  line-height: 22px;
  padding: 0;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,.25);
  z-index: 4;
  touch-action: manipulation;
}
.dup-minus:active { transform: scale(.85); }
.sticker-code {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .3px;
  line-height: 1;
  margin-top: 2px;
}
.sticker-num {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -.5px;
  line-height: 1;
  margin-top: 2px;
}
.sticker:not(.owned) .sticker-num,
.sticker:not(.owned) .sticker-code { color: #b0b0b0; }
.sticker .flag-mini {
  font-size: 14px;
  line-height: 1;
  margin-bottom: 1px;
}

/* === COLEÇÃO EM GRID === */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.collection-card {
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: transform .12s, border-color .15s;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  gap: 4px 10px;
  align-items: center;
}
.collection-card:active { transform: scale(.97); }
.collection-card.partial { border-color: var(--c-gold); }
.collection-card.complete { border-color: var(--c-success); background: linear-gradient(180deg, #fff 0%, #f1fcf4 100%); }
.collection-card .cc-flag {
  font-size: 32px;
  line-height: 1;
  grid-row: 1 / 3;
}
.collection-card .cc-info { min-width: 0; }
.collection-card .cc-name {
  font-weight: 900;
  font-size: 13px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.collection-card .cc-stats {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 800;
}
.collection-card .cc-stat-main {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--c-ink);
  letter-spacing: -.5px;
  line-height: 1;
}
.collection-card.complete .cc-stat-main { color: var(--c-success); }
.collection-card .cc-divider {
  font-size: 13px;
  color: var(--c-muted);
  margin-left: 2px;
}
.collection-card .cc-stat-dup {
  font-size: 11px;
  font-weight: 800;
  color: var(--c-red);
  margin-left: auto;
}
.collection-card .cc-progress {
  grid-column: 1 / -1;
  height: 4px;
  background: var(--c-bg-soft);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
}
.collection-card .cc-progress > div {
  height: 100%;
  background: linear-gradient(90deg, var(--p-red), var(--p-yellow), var(--p-green));
  transition: width .3s;
}

/* === PAÍSES === */
.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.countries-grid[hidden] { display: none !important; }
#worldMapWrap[hidden], #worldMapLegend[hidden] { display: none !important; }
.country-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, border-color .15s;
}
.country-card:active { transform: scale(.96); }
.country-card.complete { border-color: var(--c-success); border-width: 2px; }
.country-card.partial { border-color: var(--c-gold); border-width: 2px; }
.country-flag { font-size: 42px; line-height: 1; margin-bottom: 6px; }
.country-name {
  font-weight: 900;
  font-size: 13px;
  line-height: 1.2;
}
.country-progress {
  font-size: 11px;
  color: var(--c-muted);
  margin-top: 4px;
  font-weight: 800;
}
.country-progress.complete { color: var(--c-success); }
.country-group-tag {
  display: inline-block;
  background: var(--c-ink);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 4px;
  letter-spacing: 1px;
}

.map-actions { display: flex; gap: 8px; margin-bottom: 8px; }
.map-actions .btn-secondary { flex: 1; font-size: 12px; padding: 8px; }
.map-container { position: relative; }
.map-container.fullscreen { flex: 1; min-height: 0; }
.map-controls {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 5;
}
.map-controls button {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--c-border);
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  cursor: pointer;
}
.map-controls button:active { transform: scale(.92); }
.world-map {
  background: linear-gradient(180deg, #d8ecfa 0%, #b8d6ee 100%);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 10px;
  overflow: hidden;
  touch-action: none;
}
.world-map svg { cursor: grab; }
.world-map svg:active { cursor: grabbing; }
.world-map-big {
  height: calc(100vh - 200px);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.world-map-big svg { max-height: 100%; }
.map-fullscreen-modal .modal-content {
  max-width: 98vw;
  width: 98vw;
  max-height: 98vh;
  height: 98vh;
  border-radius: 12px !important;
  display: flex;
  flex-direction: column;
}
.map-fullscreen-content { padding: 14px; }
.map-fullscreen-content h2 { font-size: 18px; margin-bottom: 8px; }
.map-fullscreen-content .world-map-legend { margin-bottom: 8px; }
.map-fullscreen-content > div.world-map { flex: 1; }
.world-map svg { width: 100%; height: auto; display: block; }
.world-map svg path {
  fill: #e0e8d8;
  stroke: #c0cab4;
  stroke-width: .4;
  transition: fill .15s;
}
.world-map svg path.wm-country { stroke: #fff; stroke-width: .6; }
.world-map svg path.wm-participating { fill: var(--p-blue); }
.world-map svg path.wm-partial { fill: var(--p-yellow); }
.world-map svg path.wm-complete { fill: var(--p-green); }
.world-map svg path.wm-country:hover { fill: var(--p-red); }
.world-map-legend {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--c-muted);
  font-weight: 700;
  flex-wrap: wrap;
  justify-content: center;
}
.world-map-legend .swatch {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

/* === JOGOS === */
.next-match {
  background: #111;
  color: #fff;
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--c-gold);
}
.next-match-label {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--c-gold);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.next-match .match-card { background: transparent; box-shadow: none; padding: 0; color: #fff; }
.next-match .match-card .match-day { color: var(--c-gold); }
.next-match .match-card .match-time { color: #fff; }
.next-match .match-card .match-month { color: #fff; opacity: .8; }
.next-match .match-card .match-date { border-color: rgba(255,255,255,.3); }
.next-match .match-card .match-phase { background: var(--c-gold); color: #111; }
.next-match .match-card .match-venue { color: #ccc; }

.match-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}
.match-card.confirmed { border-color: var(--c-gold); border-width: 1.5px; }
.match-date {
  text-align: center;
  border-right: 1.5px solid var(--c-border);
  padding-right: 10px;
  min-width: 50px;
}
.match-day {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: var(--c-ink);
  line-height: 1;
}
.match-month {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-muted);
  font-weight: 800;
}
.match-time {
  font-size: 12px;
  color: var(--c-ink);
  font-weight: 800;
  margin-top: 2px;
}
.match-teams {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  flex-wrap: wrap;
}
.match-team {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}
.match-team .flag-mini { font-size: 18px; }
.match-vs {
  color: var(--c-muted);
  font-size: 11px;
  font-weight: 900;
  padding: 0 2px;
}
.match-meta {
  text-align: right;
}
.match-phase {
  background: var(--c-ink);
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: inline-block;
}
.match-venue {
  font-size: 10px;
  color: var(--c-muted);
  margin-top: 4px;
  max-width: 110px;
  line-height: 1.2;
  font-weight: 600;
}
.match-confirmed-badge {
  display: inline-block;
  background: var(--c-gold);
  color: var(--c-ink);
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 900;
  margin-left: 4px;
  letter-spacing: .5px;
}

/* === TAB BAR === */
.tab-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--c-border);
  display: flex;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 12px rgba(0,0,0,.04);
}
.tab-btn {
  flex: 1;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--c-muted);
  font-weight: 800;
  transition: color .15s;
}
.tab-icon { font-size: 22px; line-height: 1; }
.tab-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.tab-btn.active { color: var(--c-accent); }
.tab-btn.active .tab-icon { transform: scale(1.15); }

/* === MODAL === */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(20,20,20,.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
  animation: fadeIn .2s ease;
  padding-bottom: env(safe-area-inset-bottom);
}
.modal[hidden] { display: none !important; }
@media (min-width: 600px) {
  .modal { align-items: center; }
}
.modal-content {
  background: #fff;
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  padding: 20px;
  position: relative;
  animation: slideUp .25s ease;
}
@media (min-width: 600px) {
  .modal-content { border-radius: 20px; }
}
@keyframes slideUp { from { transform: translateY(40px); } to { transform: translateY(0); } }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  background: var(--c-ink);
  color: #fff;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 900;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transition: transform .15s;
}
.modal-close:hover { transform: scale(1.1); }
.modal-close:active { transform: scale(.92); }
.modal-content h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -.5px;
  margin-bottom: 14px;
  color: var(--c-ink);
}

.country-modal-header {
  text-align: center;
  padding: 10px 0 20px;
}
.country-modal-flag { font-size: 70px; line-height: 1; }
.country-modal-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -.5px;
  color: var(--c-ink);
  margin-top: 6px;
}
.country-modal-meta {
  font-size: 12px;
  color: var(--c-muted);
  margin-top: 4px;
  font-weight: 700;
}
.country-modal-progress {
  background: var(--c-bg-soft);
  border-radius: 10px;
  padding: 10px;
  margin: 12px 0;
  text-align: center;
  font-weight: 800;
}
.country-modal-progress-bar {
  height: 6px;
  background: var(--c-border);
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}
.country-modal-progress-bar > div {
  height: 100%;
  background: var(--c-gold);
  transition: width .4s;
}

/* === SETTINGS === */
.setting-group {
  background: var(--c-bg-soft);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
}
.setting-group h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--c-ink);
}
.setting-group label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin: 10px 0 6px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.setting-group select, .setting-group input {
  width: 100%;
  padding: 10px;
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
}
.color-options { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatch {
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform .15s;
}
.color-swatch.active { border-color: var(--c-gold); transform: scale(1.1); }
.account-info {
  padding: 8px 0;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
}

/* === COUNTDOWN === */
.countdown-card {
  background: linear-gradient(135deg, var(--p-red) 0%, var(--p-orange) 50%, var(--p-yellow) 100%);
  color: #fff;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(212,68,74,.3);
  position: relative;
  overflow: hidden;
}
.countdown-card.live { background: linear-gradient(135deg, var(--c-red) 0%, #8a0a20 100%); animation: pulse-live 2s ease-in-out infinite; }
.countdown-card.ended { background: linear-gradient(135deg, var(--c-ink) 0%, #333 100%); }
@keyframes pulse-live { 0%,100% { box-shadow: 0 4px 14px rgba(212,68,74,.3); } 50% { box-shadow: 0 4px 24px rgba(212,68,74,.6); } }
.countdown-label {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 2px;
  opacity: .95;
}
.countdown-days {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -3px;
  margin: 4px 0;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.countdown-sub {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
}
.countdown-date {
  font-size: 11px;
  background: rgba(0,0,0,.25);
  padding: 6px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
}

/* === JOGOS DE HOJE === */
.today-block {
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.today-block h3 {
  background: var(--c-ink);
  color: #fff;
  margin: 0 !important;
  padding: 10px 14px;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 13px;
}
.today-list {
  display: flex;
  flex-direction: column;
}
.today-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--c-border);
  font-size: 12px;
}
.today-row:last-child { border-bottom: none; }
.today-row.past { opacity: .55; background: var(--c-bg-soft); }
.today-row.live {
  background: linear-gradient(90deg, rgba(212,68,74,.12), transparent);
  border-left: 3px solid var(--c-red);
  animation: pulse-live 2s ease-in-out infinite;
}
.today-row.brazil {
  background: linear-gradient(90deg, rgba(255,215,0,.18), rgba(0,156,59,.08));
  border-left: 3px solid #009C3B;
  font-weight: 800;
}
.today-time {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 14px;
  min-width: 50px;
  color: var(--c-ink);
}
.today-match { flex: 1; min-width: 0; }
.today-teams { font-weight: 700; line-height: 1.2; }
.today-score { font-weight: 900; color: var(--c-ink); padding: 0 4px; }
.today-meta { font-size: 10px; color: var(--c-muted); margin-top: 2px; font-weight: 700; }

/* === JOGOS DO BRASIL === */
.brazil-block {
  background: linear-gradient(135deg, #FFD700 0%, #009C3B 50%, #002776 100%);
  padding: 2px;
  border-radius: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0,156,59,.2);
}
.brazil-block h3 {
  background: linear-gradient(90deg, #FFD700, transparent);
  margin: 0 !important;
  padding: 8px 14px;
  color: #002776;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 14px;
  border-radius: 12px 12px 0 0;
  background: #FFD700;
}
.brazil-list {
  background: #fff;
  border-radius: 0 0 12px 12px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brazil-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,215,0,.08), transparent);
  border-left: 3px solid #009C3B;
}
.brazil-row.past { opacity: .65; }
.brazil-date {
  text-align: center;
  flex-shrink: 0;
  min-width: 38px;
  border-right: 1.5px solid var(--c-border);
  padding-right: 8px;
}
.brazil-day {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: #002776;
  line-height: 1;
}
.brazil-month {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 800;
}
.brazil-match { flex: 1; min-width: 0; }
.brazil-teams {
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
}
.brazil-venue {
  font-size: 10px;
  color: var(--c-muted);
  font-weight: 700;
  margin-top: 2px;
}
.brazil-score {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 14px;
  padding: 0 4px;
}

/* === DASHBOARD === */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.stat-card.big { grid-column: 1 / -1; background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.stat-value {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  color: var(--c-ink);
}
.stat-card.big .stat-value { color: var(--c-gold); font-size: 40px; }
.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-muted);
  margin-top: 6px;
  font-weight: 800;
}
.stat-card.big .stat-label { color: #fff; opacity: .8; }
.dashboard-section { margin-bottom: 16px; }
.dashboard-section h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--c-ink);
}
.country-missing-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  margin-bottom: 6px;
  cursor: pointer;
}
.country-missing-row:active { transform: scale(.99); }
.country-missing-row .flag { font-size: 24px; }
.country-missing-row .name { flex: 1; font-weight: 800; font-size: 14px; }
.country-missing-row .count {
  font-weight: 900;
  font-size: 13px;
  background: var(--c-bg-soft);
  padding: 4px 10px;
  border-radius: 30px;
  color: var(--c-ink);
}
.country-missing-row .progress-mini {
  flex: 0 0 60px;
  height: 4px;
  background: var(--c-bg-soft);
  border-radius: 2px;
  overflow: hidden;
}
.country-missing-row .progress-mini > div {
  height: 100%;
  background: var(--c-gold);
}

/* === BOTÃO REMOVER FIGURINHA (errei) === */
.sticker-remove {
  position: absolute;
  top: 2px; left: 2px;
  width: 36px; height: 36px;
  background: #6b7280;
  color: #fff;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 900;
  line-height: 22px;
  padding: 0;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,.25);
  z-index: 4;
  touch-action: manipulation;
}
.sticker-remove:hover { background: #444; }
.sticker-remove:active { transform: scale(.85); background: #222; }

/* === MATCH CARD COM PLACAR === */
.match-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 50px 1fr;
  grid-template-rows: auto auto;
  gap: 8px 10px;
  align-items: stretch;
}
.match-card.played { border-color: var(--c-success); border-width: 1.5px; }
.match-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  min-width: 0;
}
.match-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.match-team-side {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 14px;
  min-width: 0;
  line-height: 1.2;
}
.match-team-side .flag-mini { font-size: 18px; flex-shrink: 0; }
.match-team-side > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--c-border);
  text-align: left;
}
.match-venue {
  font-size: 10px;
  color: var(--c-muted);
  font-weight: 600;
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}
.match-group {
  font-size: 10px;
  color: var(--c-ink);
  font-weight: 800;
  background: var(--c-bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
}
.score-input {
  width: 52px;
  height: 44px;
  border: 2px solid var(--c-ink);
  border-radius: 8px;
  text-align: center;
  font-weight: 900;
  font-size: 20px;
  padding: 0;
  background: #fffceb;
  color: var(--c-ink);
  -webkit-appearance: none;
  appearance: none;
  -moz-appearance: textfield;
  touch-action: manipulation;
}
.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.score-input:focus {
  outline: 3px solid var(--c-gold);
  outline-offset: 1px;
  background: #fff;
}
.score-input:disabled { background: #f5f5f5; color: #aaa; border-color: var(--c-border); cursor: not-allowed; }
.score-input:hover:not(:disabled) { border-color: var(--p-blue); }
.pen-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 10px;
  color: var(--c-muted);
  flex-wrap: wrap;
}
.pen-toggle {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
}
.pen-toggle.active { background: var(--c-gold); color: #111; border-color: var(--c-gold-dark); }
.match-group {
  font-size: 9px;
  color: var(--c-muted);
  margin-top: 2px;
  font-weight: 800;
}

/* === CHAVE (BRACKET) === */
.bracket-section { margin-bottom: 18px; }
.bracket-section > h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 10px;
}
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.group-standings {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 10px 12px;
  overflow: hidden;
}
.group-standings h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--c-border);
}
.group-standings table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.group-standings th {
  font-size: 9px;
  color: var(--c-muted);
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 2px;
  text-align: center;
}
.group-standings td {
  padding: 4px 2px;
  text-align: center;
  font-weight: 700;
}
.group-standings td.team {
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}
.group-standings td.pts { font-weight: 900; background: var(--c-bg-soft); }
.group-standings td.pos { font-weight: 900; color: var(--c-muted); }
.group-standings tr.pos-1 td { background: linear-gradient(90deg, rgba(84,169,109,.18), transparent); }
.group-standings tr.pos-1 td.pos { color: var(--c-success); }
.group-standings tr.pos-2 td { background: linear-gradient(90deg, rgba(74,142,198,.15), transparent); }
.group-standings tr.pos-2 td.pos { color: var(--p-blue); }
.group-standings tr.pos-3 td.pos { color: var(--c-gold-dark); }
.group-standings tr.pos-4 { opacity: .65; }

.thirds-list { display: flex; flex-direction: column; gap: 4px; }
.third-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}
.third-pos {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-gold);
  color: #111;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 11px;
}
.third-flag { font-size: 18px; }
.third-name { flex: 1; }
.third-group { font-size: 10px; color: var(--c-muted); }
.third-pts { font-weight: 900; font-size: 13px; }

.bracket-tree {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px;
}
.bk-round {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bk-round h4 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--c-ink);
  text-align: center;
  padding: 4px 6px;
  background: var(--c-bg-soft);
  border-radius: 6px;
}
.bk-final h4 { background: var(--c-gold); }
.bk-match {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
}
.bk-id {
  position: absolute;
  top: -8px;
  left: 6px;
  background: var(--c-ink);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 3px;
}
.bk-side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 0;
  gap: 4px;
}
.bk-side.win { font-weight: 900; }
.bk-side.win .bk-score { color: var(--c-success); }
.bk-team {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.bk-team.bk-empty { color: var(--c-muted); font-style: italic; font-size: 10px; }
.bk-flag { font-size: 14px; }
.bk-score {
  font-weight: 900;
  font-family: 'Nunito', sans-serif;
  min-width: 22px;
  text-align: center;
  background: var(--c-bg-soft);
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 13px;
}
.bk-side.win .bk-score { background: var(--c-success); color: #fff; }
.bk-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-date {
  font-size: 9px;
  color: var(--c-muted);
  text-align: center;
  margin-top: 3px;
  font-weight: 700;
}

/* === GRUPOS === */
.groups-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.groups-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}
.groups-tabs::-webkit-scrollbar { display: none; }
.group-tab {
  background: var(--c-bg-soft);
  border: 1.5px solid var(--c-border);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  color: var(--c-ink);
  cursor: pointer;
}
.group-tab.active {
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
}
.group-info-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--c-bg-soft);
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 12px;
}
.group-info-name { font-weight: 900; font-size: 13px; }
.group-admin-badge {
  background: var(--c-gold);
  color: #111;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 900;
  font-size: 10px;
}
.pending-requests-box {
  background: linear-gradient(135deg, #fff8d6, #fffbeb);
  border: 1.5px solid var(--c-gold);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
}
.pending-title { font-weight: 900; font-size: 12px; margin-bottom: 6px; }
.pending-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
.pending-name { flex: 1; font-weight: 700; font-size: 13px; }

.group-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
}
.group-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
}
.group-badge.member { background: var(--c-success); color: #fff; }

/* === FAMÍLIA (top 3 em 1 linha + lista compacta) === */
.family-list {
  display: block;
}
.podium-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.podium-row .family-card {
  padding: 8px 6px;
  gap: 4px;
}
.podium-row .family-medal {
  font-size: 22px;
  top: -8px;
  left: -6px;
}
.podium-row .family-card-top {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.podium-row .family-avatar {
  width: 36px; height: 36px;
  font-size: 14px;
}
.podium-row .family-name-block {
  text-align: center;
  align-items: center;
  width: 100%;
}
.podium-row .family-name {
  font-size: 12px;
  text-align: center;
  width: 100%;
}
.podium-row .family-pct {
  font-size: 16px;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  color: var(--c-ink);
}
.podium-row .family-meta {
  font-size: 10px;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.family-card {
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: transform .12s, border-color .15s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.family-medal {
  position: absolute;
  top: -10px;
  left: -10px;
  font-size: 28px;
  z-index: 3;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
  animation: medal-bounce .6s ease-out;
}
@keyframes medal-bounce {
  0% { transform: scale(0) rotate(-180deg); }
  60% { transform: scale(1.3) rotate(20deg); }
  100% { transform: scale(1) rotate(0); }
}
.family-card.has-medal { padding-top: 14px; }
.family-card.medal-1, .family-card[class*="medal-1"]:not(.medal-12) { /* ouro */ }
.family-card.has-medal .medal-1 ~ * { opacity: 1; }
.family-pos {
  display: inline-block;
  background: var(--c-bg-soft);
  color: var(--c-ink);
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  margin-right: 4px;
  letter-spacing: -.5px;
}
.podium-banner {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--c-gold) 0%, #ffe27a 50%, #ffd24a 100%);
  color: var(--c-ink);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 2px 8px rgba(227,178,60,.3);
  margin-bottom: 4px;
}
.podium-banner strong { font-weight: 900; }
.family-remove {
  display: none; /* não usado em grupos (admin aprova/recusa) */
}
.family-card:not(.me):active { transform: scale(.97); }
.family-card.me {
  background: linear-gradient(160deg, rgba(227,178,60,.12), #fff);
  border-color: var(--c-gold);
  border-width: 2px;
  cursor: default;
}
.family-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.family-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 14px;
  flex-shrink: 0;
}
.family-name-block {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.family-name {
  font-weight: 900;
  font-size: 13px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.family-pct {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 11px;
  color: var(--c-muted);
}
.family-progress-bar {
  height: 4px;
  background: var(--c-bg-soft);
  border-radius: 2px;
  overflow: hidden;
}
.family-progress-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--p-red), var(--p-yellow), var(--p-green));
  transition: width .3s;
}
.family-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--c-muted);
  font-weight: 700;
}

/* === LISTA COMPACTA (4º em diante) === */
.family-rest {
  grid-column: 1 / -1;
  margin-top: 4px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 8px 12px;
}
.family-rest summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  color: var(--c-muted);
  list-style: none;
  text-align: center;
  user-select: none;
  padding: 4px 0;
}
.family-rest summary::-webkit-details-marker { display: none; }
.family-rest[open] summary { color: var(--c-ink); }
.family-rest-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
.family-compact-row {
  display: grid;
  grid-template-columns: 28px 28px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.family-compact-row.me { background: linear-gradient(90deg, rgba(227,178,60,.15), transparent); }
.family-compact-row:not(.me):active { background: var(--c-bg-soft); }
.fcr-pos {
  font-weight: 900;
  font-size: 11px;
  color: var(--c-muted);
  text-align: center;
}
.fcr-avatar {
  width: 26px; height: 26px;
  background: var(--c-ink);
  color: var(--c-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
}
.fcr-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fcr-count {
  font-weight: 800;
  font-size: 12px;
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
}
.fcr-pct {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 13px;
  text-align: right;
  color: var(--c-ink);
  background: var(--c-bg-soft);
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 42px;
}

/* "Você está em Nº" - card destacado se usuário não tá no pódio */
.my-pos-card {
  grid-column: 1 / -1;
  border: 2px solid var(--c-gold);
  background: linear-gradient(90deg, rgba(227,178,60,.12), #fff);
  border-radius: 10px;
  padding: 6px 8px;
  margin-top: 4px;
}
.my-pos-card .family-compact-row { background: transparent !important; cursor: default; }

/* === VIEW MODE (visualizando álbum de outra pessoa) === */
.view-banner {
  background: linear-gradient(90deg, var(--p-purple), var(--p-blue));
  color: #fff;
  padding: 10px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 60;
}
.view-banner a {
  color: var(--c-gold);
  font-weight: 900;
  margin-left: 6px;
  text-decoration: underline;
}
.view-mode .sticker { cursor: default !important; }
.view-mode .sticker:active { transform: none; }
.view-mode .sticker-remove,
.view-mode .dup-minus { display: none !important; }
.view-mode .score-input { background: #f0f0f0 !important; pointer-events: none; color: #333; }
.view-mode .pen-toggle { pointer-events: none; opacity: .8; }
.view-mode .logout-btn,
.view-mode .settings-btn { display: none; }

/* === FOOTER === */
.app-footer {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,.8);
  padding: 16px 12px;
  margin-top: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.youtube-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FF0000;
  color: #fff !important;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .3px;
  box-shadow: 0 3px 10px rgba(255,0,0,.4);
  transition: transform .15s, box-shadow .15s;
  border: 2px solid rgba(255,255,255,.3);
}
.youtube-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(255,0,0,.5);
}
.youtube-link:active { transform: scale(.96); }
.yt-icon {
  background: #fff;
  color: #FF0000;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  padding-left: 1px;
}
.app-footer strong {
  background: linear-gradient(90deg, var(--p-red), var(--p-orange), var(--p-yellow), var(--p-green), var(--p-blue), var(--p-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  font-size: 12px;
}
.app-footer.in-app {
  color: var(--c-muted);
  border-top: 1px solid var(--c-border);
  padding: 14px 12px 12px;
  margin: 8px 12px 0;
  background: transparent;
}
.app-footer.in-app .youtube-link {
  border-color: rgba(0,0,0,.1);
}

/* === FAQ === */
.faq-section { margin-bottom: 18px; }
.faq-section > h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--c-ink);
  border-bottom: 2px solid var(--c-gold);
  padding-bottom: 4px;
}
.faq-section details {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 6px;
  transition: background .15s;
}
.faq-section details[open] { background: var(--c-bg-soft); border-color: var(--c-gold); }
.faq-section summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 24px;
  user-select: none;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after {
  content: '▾';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 14px;
  color: var(--c-muted);
  transition: transform .2s;
}
.faq-section details[open] summary::after { transform: rotate(180deg); color: var(--c-ink); }
.faq-section details p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-ink-soft);
}
.faq-section details ul {
  margin: 6px 0 0 18px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-ink-soft);
}
.faq-section details strong { color: var(--c-red); font-weight: 800; }
.faq-footer {
  text-align: center;
  margin-top: 20px;
  padding: 12px;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--p-red), var(--p-yellow), var(--p-green), var(--p-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === LISTA ADMIN (todos os perfis) === */
#allProfilesModal { z-index: 250; }
.all-profiles-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.ap-stat-box {
  background: var(--c-ink);
  color: #fff;
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}
.ap-stat-value {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: var(--c-gold);
  line-height: 1;
}
.ap-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 4px;
  opacity: .85;
  font-weight: 700;
}
.ap-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  margin-bottom: 4px;
}
.ap-row.me { border-color: var(--c-gold); background: linear-gradient(90deg, rgba(227,178,60,.1), #fff); }
.ap-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 13px;
  flex-shrink: 0;
}
.ap-info { flex: 1; min-width: 0; }
.ap-name { font-weight: 900; font-size: 13px; }
.ap-meta { font-size: 11px; color: var(--c-muted); font-weight: 700; margin-top: 2px; }

/* === WELCOME MODAL === */
.welcome-content { max-width: 480px; }
.welcome-content h2 {
  font-size: 22px;
  text-align: center;
  margin-bottom: 6px;
}
.welcome-group-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
  margin-bottom: 6px;
  transition: border-color .15s, background .15s;
}
.welcome-group-card.joined {
  border-color: var(--c-success);
  background: linear-gradient(90deg, rgba(84,169,109,.15), #fff);
}
.welcome-group-card button {
  font-size: 12px;
  padding: 6px 12px;
  flex-shrink: 0;
}
.welcome-group-card.joined button {
  background: var(--c-success);
  cursor: default;
}

/* === QUICK SCORE MODAL === */
.today-row, .brazil-row { cursor: pointer; transition: background .15s; }
.today-row:active, .brazil-row:active { transform: scale(.98); }
.today-action, .brazil-action {
  font-size: 18px;
  opacity: .5;
  margin-left: auto;
  padding-left: 8px;
}
.quick-score-content { max-width: 500px; }
.qs-info {
  text-align: center;
  background: var(--c-bg-soft);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 14px;
}
.qs-phase {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: var(--c-ink);
}
.qs-date { font-size: 12px; color: var(--c-muted); margin-top: 2px; font-weight: 700; }
.qs-venue { font-size: 11px; color: var(--c-muted); margin-top: 2px; }
.qs-score-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.qs-team { text-align: center; }
.qs-flag { font-size: 36px; line-height: 1; }
.qs-name { font-weight: 800; font-size: 12px; margin-top: 4px; line-height: 1.2; }
.qs-input {
  width: 56px;
  height: 56px;
  border: 2px solid var(--c-ink);
  border-radius: 10px;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 28px;
  background: #fffceb;
  color: var(--c-ink);
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}
.qs-input::-webkit-outer-spin-button,
.qs-input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.qs-input:focus { outline: 3px solid var(--c-gold); background: #fff; }
.qs-vs {
  font-weight: 900;
  font-size: 18px;
  color: var(--c-muted);
}
.qs-pen-row {
  background: #fff8d6;
  border: 1px solid var(--c-gold);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
}
.qs-pen {
  font-size: 13px;
  font-weight: 800;
  padding: 8px 14px;
}
.qs-pen.active {
  background: var(--c-gold) !important;
  color: var(--c-ink) !important;
  border-color: var(--c-gold-dark) !important;
}
.qs-buttons {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.qs-buttons button { flex: 1; padding: 12px; font-size: 14px; }

/* === TOAST === */
#toastHost {
  position: fixed;
  bottom: 90px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  z-index: 500;
  pointer-events: none;
}
.toast {
  background: #111;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  max-width: 380px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .2s, transform .2s;
  pointer-events: auto;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: linear-gradient(135deg, #10b981, #059669); }
.toast-error { background: linear-gradient(135deg, var(--c-red), #8a0a20); }
.toast-info { background: #111; }

/* === BOTÃO FLUTUANTE VIEW MODE === */
.view-back-btn {
  position: fixed;
  bottom: 92px;
  right: 14px;
  background: var(--c-gold);
  color: var(--c-ink);
  font-weight: 900;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  z-index: 90;
  border: 2px solid #111;
}
.view-back-btn:active { transform: scale(.96); }

/* === CONFETE === */
#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 300;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  width: 8px; height: 8px;
  animation: confetti-fall 1.2s cubic-bezier(.3,.7,.6,1) forwards;
}
@keyframes confetti-fall {
  0% { transform: translate(0,0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(720deg); opacity: 0; }
}
.star-burst {
  position: absolute;
  font-size: 22px;
  pointer-events: none;
  animation: star-up .9s ease-out forwards;
}
@keyframes star-up {
  0% { transform: translate(-50%, -50%) scale(.4); opacity: 1; }
  100% { transform: translate(-50%, -180%) scale(1.4); opacity: 0; }
}

/* Mobile refinements */
@media (max-width: 380px) {
  .stickers-grid { grid-template-columns: repeat(3, 1fr); }
  .countries-grid { grid-template-columns: repeat(2, 1fr); }
}
