/* =============================================================
   Seleção Brasileira — Copa do Mundo 2026
   Single-file stylesheet. No external deps.
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Paleta Brasil */
  --verde-brasil: #009c3b;
  --verde-escuro: #0d6e2c;
  --verde-mais-escuro: #08501f;
  --amarelo-brasil: #ffdf00;
  --amarelo-quente: #ffd400;
  --azul-brasil: #002776;
  --azul-escuro: #001a4d;

  /* Campo (mowing pattern) */
  --campo-claro: #2e8b3e;
  --campo-escuro: #256b30;
  --linha-campo: #ffffff;

  /* Neutros */
  --text-light: #ffffff;
  --text-dark: #1a1a1a;
  --text-muted: #b7c1ba;
  --bg-bench: #0f1d12;
  --bg-bench-item: #16261b;
  --bg-bench-hover: #1e3325;
  --bg-footer: #0a0a0a;
  --border-soft: rgba(255, 255, 255, 0.12);
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.45);

  /* Placeholder gradient pra foto de jogador vazia */
  --placeholder-gradient: linear-gradient(
    135deg,
    var(--verde-brasil) 0%,
    var(--verde-brasil) 45%,
    var(--amarelo-brasil) 55%,
    var(--amarelo-brasil) 100%
  );

  /* Tamanhos responsivos via clamp */
  --chip-size: clamp(56px, 7vw, 84px);
  --chip-photo: clamp(48px, 6vw, 72px);
  --chip-font: clamp(9px, 0.95vw, 11px);
  --bench-width: 280px;

  /* Tipografia */
  --font-stack:
    "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

/* ---------- Reset leve ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #051a0c;
  color: var(--text-light);
  font-family: var(--font-stack);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
select {
  font-family: inherit;
}

/* Focus ring acessível, amarelo Brasil */
:focus-visible {
  outline: 2px solid var(--amarelo-brasil);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout do app ---------- */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at top, #0e3b1d 0%, #051a0c 70%) fixed;
}

/* ---------- Toolbar ---------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: linear-gradient(
    180deg,
    var(--verde-escuro) 0%,
    var(--verde-mais-escuro) 100%
  );
  color: var(--text-light);
  box-shadow: var(--shadow-soft);
  border-bottom: 2px solid var(--amarelo-brasil);
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 50;
}

.toolbar-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.toolbar h1 {
  margin: 0;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toolbar h1 strong {
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--amarelo-brasil);
}

.toolbar .flag {
  font-size: 1.2em;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
}

.subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.formation-label {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.78);
}

.formation-select {
  appearance: none;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 8px 28px 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23ffffff' d='M6 8 0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
  min-width: 110px;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.formation-select:hover {
  background-color: rgba(0, 0, 0, 0.5);
  border-color: var(--amarelo-brasil);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  min-height: 38px;
  min-width: 44px;
  transition:
    transform 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease,
    color 150ms ease;
  white-space: nowrap;
  user-select: none;
}

.btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-soft);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: var(--amarelo-brasil);
  color: var(--text-dark);
  box-shadow: 0 2px 0 #b89a00;
}

.btn-primary:hover {
  background: var(--amarelo-quente);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--amarelo-brasil);
}

.btn-secondary:hover {
  background: var(--amarelo-brasil);
  color: var(--text-dark);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ---------- Main: campo + bench ---------- */
.main {
  flex: 1;
  display: flex;
  gap: 16px;
  padding: 16px;
  min-height: 0;
}

/* =============================================================
   CAMPO DE FUTEBOL (TV style, sharp em qualquer resolução)
   ============================================================= */
.campo-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

/* Botao "Baixar imagem" abaixo do campo (desktop), na largura do campo */
.campo-download-btn {
  display: none; /* mobile usa o botao do action-dock */
}

@media (min-width: 768px) {
  /* Altura do campo = altura da viewport (cabe na tela, sem campo gigante).
     A bench usa a MESMA altura exata. */
  .main {
    --field-h: min(calc(100vh - 150px), 1020px);
    justify-content: center;   /* campo + bench centralizados como grupo */
    align-items: flex-start;   /* topo alinhado */
    gap: 8px;                  /* bench colada no campo */
  }

  .campo-wrap {
    flex: 0 0 auto;            /* encolhe pra largura do campo (nao expande) */
  }

  /* Campo dimensionado pela ALTURA; largura derivada do aspect-ratio */
  .campo {
    height: var(--field-h);
    width: auto;
    max-width: none;
  }

  /* Bench com a altura EXATA do campo, colada ao lado */
  .bench {
    height: var(--field-h);
    max-height: var(--field-h);
    align-self: flex-start;
  }

  /* "Baixar imagem" abaixo do campo, na largura exata do campo */
  .campo-download-btn {
    display: block;
    align-self: stretch;       /* = largura do campo-wrap = largura do campo */
    margin: 10px 0 0;
    padding: 13px;
    font-size: 15px;
  }

  /* evita duplicata: esconde o "Baixar imagem" do header no desktop */
  .toolbar-actions .download-image-btn {
    display: none;
  }
}

.campo {
  position: relative;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 680 / 1020; /* ~2/3 vertical */
  /* Listras horizontais alternadas (mowing pattern) + verde base */
  background:
    repeating-linear-gradient(
      0deg,
      var(--campo-claro) 0,
      var(--campo-claro) 8.33%,
      var(--campo-escuro) 8.33%,
      var(--campo-escuro) 16.66%
    );
  border-radius: 6px;
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.35),
    var(--shadow-strong);
  overflow: hidden;
  isolation: isolate;
}

/* Durante export (download imagem), esconde o background do campo + bordas
   pra deixar html2canvas capturar SO os chips sobre transparente. O fundo
   verde + linhas sao desenhados manualmente no Canvas 2D. */
.campo.exporting {
  background: transparent !important;
  box-shadow: none !important;
}

.campo.exporting::before,
.campo.exporting::after {
  display: none !important;
}

/* Vinheta radial sutil (centro mais claro). Antes era diagonal e dava
   sensacao de campo torto, agora e simetrica. */
.campo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(0, 0, 0, 0.18) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Borda externa do campo */
.campo::before {
  content: "";
  position: absolute;
  inset: 4%;
  border: 3px solid var(--linha-campo);
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
}

/* Marcações brancas via SVG inline (sharp em qualquer DPI) */
.campo > svg.campo-lines,
.campo .campo-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/*
  Como temos só CSS (sem JS injetando SVG), criamos as marcações
  centrais via pseudo-elementos em divs internas. Mas como o DOM
  do campo já é fixo no spec (slots dentro), usamos uma camada
  decorativa que NÃO existe no HTML — então construimos toda a
  geometria com background-image SVG inline no .campo, sobre as
  listras. Tudo escala perfeitamente com o aspect-ratio fixo.
*/
.campo {
  background-image:
    /* === Marcações brancas (SVG inline) === */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 680 1020' preserveAspectRatio='none'>\
<g fill='none' stroke='%23ffffff' stroke-width='4'>\
<!-- borda externa -->\
<rect x='28' y='28' width='624' height='964'/>\
<!-- linha do meio horizontal -->\
<line x1='28' y1='510' x2='652' y2='510'/>\
<!-- circulo central -->\
<circle cx='340' cy='510' r='86'/>\
<!-- ponto central -->\
<circle cx='340' cy='510' r='5' fill='%23ffffff' stroke='none'/>\
<!-- Grande area TOPO -->\
<rect x='118' y='28' width='444' height='150'/>\
<!-- Pequena area TOPO -->\
<rect x='220' y='28' width='240' height='56'/>\
<!-- Marca penalti TOPO -->\
<circle cx='340' cy='128' r='5' fill='%23ffffff' stroke='none'/>\
<!-- Arco penalti TOPO -->\
<path d='M 264,178 A 86,86 0 0 0 416,178'/>\
<!-- Grande area FUNDO -->\
<rect x='118' y='842' width='444' height='150'/>\
<!-- Pequena area FUNDO -->\
<rect x='220' y='936' width='240' height='56'/>\
<!-- Marca penalti FUNDO -->\
<circle cx='340' cy='892' r='5' fill='%23ffffff' stroke='none'/>\
<!-- Arco penalti FUNDO -->\
<path d='M 264,842 A 86,86 0 0 1 416,842'/>\
<!-- Escanteios (quartos de circulo) -->\
<path d='M 28,40 A 12,12 0 0 1 40,28'/>\
<path d='M 652,40 A 12,12 0 0 0 640,28'/>\
<path d='M 28,980 A 12,12 0 0 0 40,992'/>\
<path d='M 652,980 A 12,12 0 0 1 640,992'/>\
</g>\
</svg>"),
    /* listras (mowing pattern) */
    repeating-linear-gradient(
      0deg,
      var(--campo-claro) 0,
      var(--campo-claro) 8.33%,
      var(--campo-escuro) 8.33%,
      var(--campo-escuro) 16.66%
    );
  background-size: 100% 100%, auto;
  background-repeat: no-repeat, repeat;
}

/* Remove a borda branca via ::before já que SVG cobre */
.campo::before {
  content: none;
}

/* =============================================================
   DONATE BUTTON (verde Brasil chamativo)
   ============================================================= */
.btn-donate,
.donate-btn {
  background: linear-gradient(135deg, #00c853 0%, #009c3b 100%);
  color: #fff;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 12px rgba(0, 200, 83, 0.35);
}

.donate-btn:hover {
  background: linear-gradient(135deg, #1be269 0%, #00b347 100%);
  box-shadow: 0 6px 16px rgba(0, 200, 83, 0.45);
  transform: translateY(-1px);
}

/* =============================================================
   DONATE MODAL — PIX via Asaas
   ============================================================= */
.donate-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 16px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: backdrop-in 180ms ease-out;
}

.donate-backdrop.hidden { display: none; }

.donate-modal {
  background: #ffffff;
  color: var(--text-dark);
  border-radius: 16px;
  padding: 28px 24px 24px;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border-top: 5px solid #00c853;
  position: relative;
  animation: modal-in 220ms cubic-bezier(0.2, 0.8, 0.3, 1.2);
}

.donate-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.06);
  color: #555;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 120ms ease;
}

.donate-close:hover { background: rgba(0,0,0,0.12); color: #000; }

.donate-heart {
  font-size: 48px;
  text-align: center;
  line-height: 1;
  margin-bottom: 4px;
}

.donate-modal h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  color: var(--verde-mais-escuro);
  text-align: center;
}

.donate-intro {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: #4a5b50;
  text-align: center;
}

.donate-modal h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: var(--verde-mais-escuro);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.donate-amounts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.donate-amount-btn {
  padding: 14px 8px;
  border-radius: 10px;
  border: 2px solid #d0d6d2;
  background: #fff;
  font-weight: 800;
  font-size: 15px;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 120ms ease;
}

.donate-amount-btn:hover {
  border-color: #00c853;
  background: #effaf2;
  transform: translateY(-1px);
}

.donate-amount-btn.selected {
  border-color: #00c853;
  background: #00c853;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 200, 83, 0.3);
}

.donate-amount-other { font-style: italic; }

.donate-custom-wrap,
.donate-name-wrap {
  margin-bottom: 12px;
}

.donate-custom-wrap.hidden { display: none; }

.donate-custom-wrap label,
.donate-name-wrap label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4a5b50;
}

.donate-custom-input,
.donate-name-input {
  padding: 10px 12px;
  border: 2px solid #d0d6d2;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  background: #fff;
  color: var(--text-dark);
  letter-spacing: normal;
  text-transform: none;
  font-family: inherit;
}

.donate-custom-input:focus,
.donate-name-input:focus {
  border-color: #00c853;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.15);
}

.donate-next {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  background: linear-gradient(135deg, #00c853 0%, #009c3b 100%);
  color: #fff;
  border: none;
  margin-top: 4px;
}

.donate-next:disabled {
  background: #d0d6d2;
  color: #888;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.donate-error {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff0f0;
  border: 1px solid #ffaaaa;
  color: #c00;
  font-size: 13px;
}

.donate-error.hidden { display: none; }

/* Step PIX */
.donate-step-pix.hidden,
.donate-step-loading.hidden,
.donate-step-amount.hidden { display: none; }

.donate-amount-display {
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  color: #00c853;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.donate-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 2px solid #f0f3f0;
  margin-bottom: 14px;
}

.donate-qr-img {
  width: 220px;
  height: 220px;
  display: block;
  image-rendering: pixelated;
}

.donate-pix-box label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4a5b50;
  margin-bottom: 4px;
}

.donate-pix-code {
  width: 100%;
  height: 80px;
  padding: 8px 10px;
  border: 2px solid #d0d6d2;
  border-radius: 8px;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", monospace;
  font-size: 11px;
  word-break: break-all;
  background: #f7faf8;
  color: var(--text-dark);
  resize: none;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.donate-copy {
  width: 100%;
  margin-top: 8px;
  background: linear-gradient(135deg, #00c853 0%, #009c3b 100%);
  color: #fff;
  border: none;
}

.donate-copy.copied {
  background: var(--verde-mais-escuro);
}

.donate-instructions {
  margin: 16px 0 8px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: #4a5b50;
}

.donate-pix-meta {
  font-size: 11px;
  color: #6b7a72;
  text-align: center;
  margin: 8px 0 12px;
}

.donate-back {
  width: 100%;
}

/* Loading state */
.donate-step-loading {
  text-align: center;
  padding: 40px 20px;
}

.donate-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e0e7e3;
  border-top-color: #00c853;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: donate-spin 800ms linear infinite;
}

@keyframes donate-spin {
  to { transform: rotate(360deg); }
}

/* Mobile */
@media (max-width: 767px) {
  .donate-modal {
    padding: 20px 16px;
    max-height: calc(100vh - 16px);
  }
  .donate-amounts {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .donate-amount-btn { padding: 12px 4px; font-size: 14px; }
  .donate-qr-img { width: 180px; height: 180px; }
  .donate-btn { grid-column: 1 / -1; }
}

/* =============================================================
   AD SLOTS — header e footer pra Google AdSense
   ============================================================= */
.ad-slot {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.ad-slot-top {
  min-height: 90px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ad-slot-bottom {
  min-height: 250px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ad-placeholder {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.4;
  font-weight: 600;
}

/* Quando o adsense carregar (ins.adsbygoogle ja com height), esconde o placeholder */
.ad-slot ins.adsbygoogle:not(:empty) ~ .ad-placeholder,
.ad-slot ins.adsbygoogle[data-ad-status="filled"] ~ .ad-placeholder {
  display: none;
}

/* =============================================================
   SHARE BUTTONS (WhatsApp, X/Twitter, Copy link, Sistema)
   ============================================================= */
.share-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
  color: #fff;
  font-family: inherit;
}

.btn-share:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  filter: brightness(1.1);
}

.btn-share:active { transform: translateY(0); }

.btn-share-whatsapp { background: #25D366; color: #062f1e; }
.btn-share-twitter  { background: #000000; color: #fff; }
.btn-share-copy     { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.2); }
.btn-share-system   { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.2); }

.btn-share svg { flex-shrink: 0; }

.btn-share-copy.copied {
  background: var(--verde-brasil);
  color: #fff;
}

.btn-share[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

/* =============================================================
   BRAND — minhaescalação.com.br
   ============================================================= */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 150ms ease, transform 150ms ease;
}

.brand:hover {
  background: rgba(255, 223, 0, 0.18);
  transform: translateY(-1px);
}

/* Versao grande do brand — substitui o titulo do header */
.brand-large {
  font-size: clamp(20px, 3.6vw, 32px);
  font-weight: 900;
  padding: 8px 18px;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, rgba(255,223,0,0.14), rgba(0,156,59,0.18));
  border: 1px solid rgba(255, 223, 0, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.brand-large .brand-mark {
  font-size: 1.05em;
}

.brand-large:hover {
  background: linear-gradient(135deg, rgba(255,223,0,0.28), rgba(0,156,59,0.32));
}

.brand-mark {
  font-size: 14px;
  line-height: 1;
}

.brand-text {
  white-space: nowrap;
}

.brand-accent {
  color: var(--amarelo-brasil);
}

/* =============================================================
   SLOTS (posicionados absolutamente via inline style left/top)
   ============================================================= */
.slot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: var(--chip-size);
  height: var(--chip-size);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  touch-action: none;
}

/* Slot vazio: borda tracejada + botão + label */
.slot.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.18);
  animation: slot-pulse 2s ease-in-out infinite;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.slot.empty:hover {
  background: rgba(0, 0, 0, 0.32);
  border-color: var(--amarelo-brasil);
  transform: translate(-50%, -50%) scale(1.06);
}

.slot.empty.drag-over {
  border-color: var(--amarelo-brasil);
  border-style: solid;
  background: rgba(255, 223, 0, 0.18);
  transform: translate(-50%, -50%) scale(1.1);
}

@keyframes slot-pulse {
  0%, 100% { opacity: 0.65; }
  50%      { opacity: 1; }
}

.slot-add {
  width: 60%;
  height: 60%;
  border-radius: 50%;
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 300;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background: transparent;
  transition: color 150ms ease, transform 150ms ease;
  /* touch target mínimo */
  min-width: 44px;
  min-height: 44px;
}

.slot-add:hover {
  color: var(--amarelo-brasil);
  transform: scale(1.15);
}

.slot-label {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--verde-mais-escuro);
  color: var(--text-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}

/* =============================================================
   PLAYER CHIP (jogador no campo)
   ============================================================= */
.player-chip {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: grab;
  user-select: none;
  transition: transform 200ms ease, opacity 200ms ease;
}

.player-chip:active {
  cursor: grabbing;
}

.player-chip.dragging {
  opacity: 0.7;
  transform: scale(1.1);
  z-index: 100;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}

.player-photo {
  width: var(--chip-photo);
  height: var(--chip-photo);
  border-radius: 50%;
  background-color: #1a1a1a;
  background-image: var(--placeholder-gradient);
  background-size: cover;
  background-position: center;
  border: 3px solid var(--text-light);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  position: relative;
}

/* Iniciais via data-attribute, fallback APENAS quando foto vazia */
.player-photo[data-initials]::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: calc(var(--chip-photo) * 0.36);
  color: var(--text-dark);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  letter-spacing: 0.02em;
}

/* Esconde iniciais quando tem foto carregada */
.player-photo.has-photo::after {
  content: none !important;
  display: none !important;
}

.player-photo.has-photo {
  background-image: var(--placeholder-gradient);
}

.player-photo.small {
  width: 40px;
  height: 40px;
  border-width: 2px;
}

.player-photo.small[data-initials]::after {
  font-size: 14px;
}

.player-name {
  margin-top: 4px;
  background: var(--verde-mais-escuro);
  color: var(--text-light);
  font-size: var(--chip-font);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  /* permite o nome completo sem truncar */
  max-width: none;
  width: max-content;
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
  /* mantém centralizado em relação à foto mesmo quando largo */
  position: relative;
}

/* Botão remover (aparece no hover) */
.chip-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d92027;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 150ms ease, transform 150ms ease, background 150ms ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  z-index: 6;
}

.chip-remove:hover {
  background: #ff3742;
  transform: scale(1.1);
}

.player-chip:hover .chip-remove,
.player-chip:focus-within .chip-remove {
  opacity: 1;
  transform: scale(1);
}

/* Em mobile/touch, sempre visível pra ser acessível */
@media (hover: none) {
  .chip-remove {
    opacity: 1;
    transform: scale(0.9);
  }
}

/* =============================================================
   BENCH (reservas) — direita no desktop, embaixo no mobile
   ============================================================= */
.bench {
  width: var(--bench-width);
  flex-shrink: 0;
  background: var(--bg-bench);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  max-height: calc(100vh - 130px);
}

.bench-header {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #16261b 0%, var(--bg-bench) 100%);
  flex-shrink: 0;
}

.bench-header h2 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amarelo-brasil);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bench-header h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 16px;
  background: var(--amarelo-brasil);
  border-radius: 2px;
}

.bench-search {
  width: 100%;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 13px;
  transition: border-color 150ms ease, background 150ms ease;
}

.bench-search::placeholder {
  color: var(--text-muted);
}

.bench-search:focus {
  border-color: var(--amarelo-brasil);
  background: rgba(0, 0, 0, 0.55);
  outline: none;
}

.bench-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--verde-escuro) transparent;
}

.bench-list::-webkit-scrollbar {
  width: 8px;
}

.bench-list::-webkit-scrollbar-track {
  background: transparent;
}

.bench-list::-webkit-scrollbar-thumb {
  background: var(--verde-escuro);
  border-radius: 4px;
}

/* Header de secao da bench (Goleiros / Laterais / etc) */
.bench-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px 4px;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amarelo-brasil);
  border-bottom: 1px solid rgba(255, 223, 0, 0.18);
  cursor: default;
  user-select: none;
}

.bench-section-header:first-child {
  margin-top: 0;
}

.bench-section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bench-section-label::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 12px;
  background: var(--amarelo-brasil);
  border-radius: 2px;
}

.bench-section-count {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 1px 8px;
  letter-spacing: normal;
}

.bench-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-bench-item);
  border: 1px solid transparent;
  cursor: grab;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    transform 120ms ease;
  user-select: none;
  min-height: 56px;
}

.bench-item:hover {
  background: var(--bg-bench-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
}

.bench-item:active {
  cursor: grabbing;
}

.bench-item.dragging {
  opacity: 0.5;
}

.bench-item.hidden-by-search {
  display: none;
}

.bench-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.bench-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bench-meta {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================================
   FOOTER
   ============================================================= */
/* =============================================================
   CONTEUDO EDITORIAL (abaixo do campo) — texto original p/ SEO + leitores
   ============================================================= */
.conteudo {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bloco {
  background: #ffffff;
  color: #1a2b20;
  border-radius: 14px;
  padding: 24px 26px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  border-top: 4px solid var(--amarelo-brasil);
}

.bloco h2 {
  margin: 0 0 12px;
  font-size: clamp(20px, 3.2vw, 25px);
  color: var(--verde-mais-escuro);
  font-weight: 900;
  line-height: 1.25;
}

.bloco h3 {
  margin: 20px 0 6px;
  font-size: 17px;
  color: var(--verde-escuro);
  font-weight: 800;
}

.bloco p {
  margin: 0 0 12px;
  font-size: 15.5px;
  line-height: 1.65;
  color: #2a3b30;
}

.bloco ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.bloco li {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 6px;
  color: #2a3b30;
}

.lista-jogadores,
.lista-jogos {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 6px;
}

.lista-jogadores { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.lista-jogadores li,
.lista-jogos li {
  background: #f1f6f3;
  border: 1px solid #dcebe2;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 0;
}

.lista-jogadores li strong { color: var(--verde-mais-escuro); }

/* Contagem regressiva */
.bloco-countdown {
  background: linear-gradient(135deg, #0d6e2c 0%, #08501f 100%);
  color: #fff;
  border-top-color: var(--amarelo-brasil);
}

.bloco-countdown h2 { color: #fff; }
.bloco-countdown p { color: rgba(255, 255, 255, 0.9); }

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.cd-item {
  flex: 1;
  min-width: 64px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 223, 0, 0.35);
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
}

.cd-num {
  display: block;
  font-size: clamp(26px, 7vw, 40px);
  font-weight: 900;
  color: var(--amarelo-brasil);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cd-lbl {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 767px) {
  .bloco { padding: 18px 16px; }
  .lista-jogadores { grid-template-columns: 1fr; }
}

.footer {
  background: var(--bg-footer);
  color: var(--text-muted);
  text-align: center;
  padding: 14px 16px;
  font-size: 12px;
  letter-spacing: 0.02em;
  border-top: 1px solid var(--border-soft);
}

.footer-tips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  justify-content: center;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}

.footer-links a {
  color: var(--amarelo-brasil);
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover { text-decoration: underline; }

.footer-copy {
  margin-top: 8px;
  opacity: 0.65;
  font-size: 11px;
}

/* =============================================================
   MODAL (adicionar/editar jogador)
   ============================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: backdrop-in 180ms ease-out;
}

.modal-backdrop.hidden {
  display: none;
}

/* Quando o picker (selecao-lista) abre, escondemos o form e vice-versa.
   O JS adiciona .hidden no elemento que nao deve aparecer. */
.modal .hidden {
  display: none !important;
}

/* O titulo "Adicionar jogador" pertence ao form. Esconde quando picker aberto. */
.modal:has(.selecao-lista) #modal-title {
  display: none;
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: #ffffff;
  color: var(--text-dark);
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-strong);
  border-top: 4px solid var(--amarelo-brasil);
  animation: modal-in 220ms cubic-bezier(0.2, 0.8, 0.3, 1.2);
  overflow: hidden;
}

.modal h3,
.modal .selecao-titulo {
  flex: 0 0 auto;
}

.modal .player-form,
.modal .selecao-lista {
  flex: 1 1 auto;
  min-height: 0;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
  color: var(--verde-mais-escuro);
}

.player-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4a5b50;
}

.player-form input,
.player-form select {
  padding: 9px 12px;
  border: 1px solid #d0d6d2;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: var(--text-dark);
  transition: border-color 120ms ease, box-shadow 120ms ease;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.player-form input:focus,
.player-form select:focus {
  border-color: var(--verde-brasil);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 156, 59, 0.18);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.modal-actions .btn-ghost {
  color: #4a5b50;
  border-color: #c8d0cb;
}

.modal-actions .btn-ghost:hover {
  background: #f1f4f2;
  color: var(--text-dark);
}

/* =============================================================
   SELECAO LISTA (picker dentro do modal — botao + dos slots)
   ============================================================= */
.selecao-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.selecao-titulo {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--verde-mais-escuro);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.selecao-titulo::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 16px;
  margin-right: 8px;
  background: var(--amarelo-brasil);
  border-radius: 2px;
  vertical-align: -2px;
}

.selecao-items {
  list-style: none;
  margin: 0;
  padding: 0 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 60vh;
}

.selecao-items::-webkit-scrollbar { width: 8px; }
.selecao-items::-webkit-scrollbar-track { background: #f1f4f2; border-radius: 4px; }
.selecao-items::-webkit-scrollbar-thumb { background: var(--verde-brasil); border-radius: 4px; }

.selecao-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f4f7f5;
  border: 1px solid #e1e7e3;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
}

.selecao-item:hover,
.selecao-item:focus-visible {
  background: #e6f4ec;
  border-color: var(--verde-brasil);
  outline: none;
}

.selecao-item:active {
  transform: scale(0.98);
}

/* Foto pequena no item da lista — sobrescreve o background dark do bench */
.selecao-item .player-photo {
  width: 40px;
  height: 40px;
  border-width: 2px;
  background-color: #d9e5dd;
}

.selecao-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.selecao-nome {
  font-weight: 800;
  font-size: 14px;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selecao-meta {
  font-size: 11px;
  font-weight: 600;
  color: #5b6c63;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selecao-empty {
  padding: 20px;
  text-align: center;
  color: #5b6c63;
  background: #f4f7f5;
  border-radius: 10px;
  list-style: none;
}

/* =============================================================
   RESPONSIVO (mobile <768px)
   ============================================================= */
@media (max-width: 767px) {
  .main {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  .campo-wrap {
    width: 100%;
  }

  .campo {
    max-width: 100%;
  }

  .bench {
    width: 100%;
    max-height: 40vh;
  }

  /* Toolbar compacta — header em 2 linhas, botoes em grid 2 colunas */
  .toolbar {
    padding: 10px 12px;
    gap: 8px;
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-left h1 { font-size: 18px; margin: 4px 0 2px; }
  .toolbar-left .subtitle { font-size: 11px; }
  .brand { font-size: 11px; padding: 3px 8px; }
  /* brand-large mantem tamanho grande mesmo em mobile */
  .brand-large {
    font-size: clamp(18px, 5.5vw, 28px);
    padding: 8px 14px;
  }

  .toolbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    justify-content: initial;
  }

  .formation-label {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    grid-column: 1 / -1;
    font-size: 11px;
  }

  .formation-label .formation-select {
    flex: 1;
  }

  .btn {
    padding: 8px 10px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .download-image-btn {
    /* Botoes primarios em destaque ocupam linha cheia */
    grid-column: 1 / -1;
  }

  .share-group {
    grid-column: 1 / -1;
    justify-content: center;
    gap: 4px;
  }

  .btn-share {
    flex: 1;
    justify-content: center;
    padding: 8px 4px;
    font-size: 11px;
  }

  .btn-share .share-label {
    display: none;
  }

  .ad-slot-top { min-height: 60px; }
  .ad-slot-bottom { min-height: 100px; }

  .modal {
    padding: 16px;
    max-height: calc(100vh - 16px);
  }

  .selecao-items {
    max-height: 70vh;
  }
}

/* Tablets / telas estreitas mas não mobile */
@media (max-width: 1024px) and (min-width: 768px) {
  :root {
    --bench-width: 240px;
  }
}

/* Telas muito grandes: limita largura útil */
@media (min-width: 1440px) {
  .main {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
  }
}

/* =============================================================
   Reduce motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .slot.empty {
    animation: none;
    opacity: 0.85;
  }
}


/* =============================================================
   LAYOUT RESPONSIVO MOBILE (override) - formacao ACIMA do campo,
   botoes ABAIXO do campo. So a marca fica fixa no header.
   Bloco no fim do arquivo: vence a cascata sobre as regras antigas.
   ============================================================= */
.formation-dock:empty,
.action-dock:empty { display: none; }

@media (max-width: 767px) {
  /* Header sticky com SO a marca (toolbar-actions fica vazio no mobile) */
  .toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
  .toolbar-left {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  /* Conteudo do toolbar-actions e movido pros docks pelo JS no mobile */
  .toolbar-actions { display: none; }

  /* campo-wrap empilha em coluna: formacao, campo, botoes (ordem do DOM) */
  .campo-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  /* Formacao acima do campo */
  .formation-dock {
    width: 100%;
    margin: 0 0 10px;
  }
  .formation-dock .formation-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .formation-dock .formation-select { flex: 1; }

  /* Botoes abaixo do campo */
  .action-dock {
    width: 100%;
    margin-top: 14px;
  }
  .action-dock .action-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }
  .action-dock .reset-btn,
  .action-dock .donate-btn,
  .action-dock .download-image-btn {
    grid-column: 1 / -1;
  }
  .action-dock .share-group {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 4px;
  }
}
