/* ==========================================================================
   Placar de Vôlei — estilo placar eletrônico esportivo
   Mobile-first, fundo escuro, números gigantes, alto contraste
   ========================================================================== */

:root {
  --bg: #0d1117;
  --surface: #161b22;
  --text: #f0f6fc;
  --text-muted: #8b949e;
  --toolbar-h: 48px;
  --bottom-toolbar-h: 72px;
  --divider-w: 3px;
  --color-a: #1673e0;
  --color-b: #e63946;
  --accent: #f97316;
  --winner-glow: rgba(250, 204, 21, 0.45);
  --winner-border: #facc15;
  --radius: 12px;
  --transition: 150ms ease;
  --font-ui: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-score: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--color-a);
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-tap-highlight-color: transparent;
}

.hidden { display: none !important; }

/* --------------------------------------------------------------------------
   Toolbar
   -------------------------------------------------------------------------- */
.toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  height: var(--toolbar-h);
  padding: 0 8px;
  padding-top: env(safe-area-inset-top, 0);
  background: linear-gradient(to bottom, rgba(13, 17, 23, 0.92), rgba(13, 17, 23, 0));
  pointer-events: none;
}

.toolbar-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 8px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.toolbar-btn:hover,
.toolbar-btn:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
  outline: none;
}

.toolbar-btn:active {
  transform: scale(0.95);
}

.toolbar-btn--install {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 10px;
  gap: 4px;
  color: #fff;
  background: rgba(249, 115, 22, 0.85);
}

.toolbar-btn--install:hover,
.toolbar-btn--install:focus-visible {
  background: rgba(249, 115, 22, 1);
  color: #fff;
}

.toolbar-btn__icon {
  flex-shrink: 0;
}

.toolbar-btn__label {
  line-height: 1;
}

@media (max-width: 380px) {
  .toolbar .toolbar-btn__label {
    display: none;
  }

  .toolbar .toolbar-btn--install {
    min-width: 40px;
    padding: 8px;
  }
}

/* --------------------------------------------------------------------------
   Bottom toolbar — ações principais (mobile: base; desktop: topo)
   -------------------------------------------------------------------------- */
.bottom-toolbar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.bottom-toolbar .toolbar-btn {
  pointer-events: auto;
}

/* Desktop / tablet: botões flutuantes no topo, sem faixa escura */
@media (min-width: 601px) {
  .toolbar {
    z-index: 101;
    background: transparent;
  }

  .bottom-toolbar {
    top: 0;
    bottom: auto;
    justify-content: flex-end;
    gap: 6px;
    height: var(--toolbar-h);
    padding: 0 8px;
    padding-top: env(safe-area-inset-top, 0);
    padding-right: 56px;
    background: transparent;
  }

  .bottom-toolbar .toolbar-btn {
    flex-direction: row;
    min-width: 40px;
    min-height: 40px;
    padding: 8px;
    gap: 0;
    background: rgba(13, 17, 23, 0.88);
    color: #f0f6fc;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  .bottom-toolbar .toolbar-btn:hover,
  .bottom-toolbar .toolbar-btn:focus-visible {
    background: rgba(13, 17, 23, 0.96);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.32);
  }

  .bottom-toolbar .toolbar-btn__label {
    display: none;
  }
}

/* Mobile: barra fixa na base com ícone + texto */
@media (max-width: 600px) {
  .bottom-toolbar {
    bottom: 0;
    justify-content: space-around;
    padding: 8px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .bottom-toolbar .toolbar-btn {
    flex-direction: column;
    gap: 4px;
    min-width: 64px;
    min-height: 56px;
    padding: 6px 8px;
  }

  .bottom-toolbar .toolbar-btn__label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.1;
  }

  .bottom-toolbar .toolbar-btn:hover .toolbar-btn__label,
  .bottom-toolbar .toolbar-btn:focus-visible .toolbar-btn__label {
    color: var(--text);
  }

  .scoreboard {
    box-sizing: border-box;
    padding-bottom: calc(var(--bottom-toolbar-h) + env(safe-area-inset-bottom, 0px) + 16px);
  }

  .game-over {
    bottom: calc(var(--bottom-toolbar-h) + env(safe-area-inset-bottom, 0px) + 1rem);
  }

  .install-banner {
    bottom: calc(var(--bottom-toolbar-h) + env(safe-area-inset-bottom, 0px));
  }

  .team-inner {
    padding-bottom: 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   Scoreboard — duas metades em coluna (portrait) ou linha (landscape)
   -------------------------------------------------------------------------- */
.scoreboard {
  position: relative;
  display: grid;
  grid-template-rows: 1fr var(--divider-w) 1fr;
  grid-template-columns: 1fr;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
}

@media (orientation: landscape) {
  .scoreboard {
    grid-template-rows: 1fr;
    grid-template-columns: 1fr var(--divider-w) 1fr;
  }

  .team-a,
  .team-b {
    padding-top: calc(var(--toolbar-h) + env(safe-area-inset-top, 0px));
  }
}

.divider {
  background: #ffffff;
  width: 100%;
  height: 100%;
  min-height: var(--divider-w);
  flex-shrink: 0;
  z-index: 1;
}

@media (orientation: landscape) {
  .divider {
    width: 100%;
    height: auto;
  }
}

/* Crédito do autor */
.credit {
  margin: 0;
  font-family: var(--font-ui);
  line-height: 1.3;
}

.credit a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.credit a:hover,
.credit a:focus-visible {
  text-decoration: underline;
}

.credit--scoreboard {
  position: fixed;
  top: calc(var(--toolbar-h) + env(safe-area-inset-top, 0px) + 0.15rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  pointer-events: auto;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: clamp(0.6rem, 2.2vw, 0.8rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  opacity: 0.45;
}

.credit--scoreboard a {
  color: inherit;
  font-weight: 500;
}

.credit--scoreboard a:hover,
.credit--scoreboard a:focus-visible {
  opacity: 1;
}

@media (max-height: 500px) {
  .credit--scoreboard {
    display: none;
  }
}

.credit--share {
  text-align: center;
  font-size: clamp(0.6rem, 2.2vw, 0.8rem);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.2;
  opacity: 0.65;
  padding-top: 1rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.credit--share a {
  color: inherit;
  font-weight: 500;
}

.credit__version {
  font-weight: 400;
  color: var(--text-muted);
}

.team {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: filter var(--transition), box-shadow var(--transition);
  min-height: 0;
  min-width: 0;
}

.team-a {
  background: var(--color-a);
  /* Reserva espaço da toolbar sem deslocar o conteúdo interno do time B */
  padding-top: calc(var(--toolbar-h) + env(safe-area-inset-top, 0px));
}

.team-b {
  background: var(--color-b);
}

.team-inner {
  display: grid;
  grid-template-rows: minmax(2rem, auto) minmax(0, 1fr) auto;
  grid-template-areas:
    "name"
    "score"
    "hint";
  align-items: center;
  justify-items: center;
  gap: clamp(0.15rem, 1vh, 0.5rem);
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  width: 100%;
  height: 100%;
  min-height: 0;
  text-align: center;
  pointer-events: none;
}

.team-name {
  grid-area: name;
  pointer-events: auto;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: clamp(0.95rem, 3.8vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  margin: 0;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  transition: background var(--transition);
  width: 100%;
  max-width: 100%;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}

.team-name:hover,
.team-name:focus-visible {
  background: rgba(0, 0, 0, 0.2);
  outline: none;
}

.score-wrap {
  grid-area: score;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.score {
  font-family: var(--font-score);
  /* Tamanho inicial; JS ajusta para ocupar o máximo do score-wrap */
  font-size: min(42vh, 48vw);
  font-weight: 900;
  line-height: 0.85;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: transform 120ms ease;
}

.score.pulse {
  animation: score-pulse 180ms ease;
}

@keyframes score-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.trophy {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: clamp(1.75rem, 7vw, 3.25rem);
  height: clamp(1.75rem, 7vw, 3.25rem);
  color: var(--winner-border);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  animation: trophy-bounce 600ms ease;
}

.trophy svg {
  width: 100%;
  height: 100%;
}

@keyframes trophy-bounce {
  0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
  60%  { transform: scale(1.2) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}

.team-hint {
  grid-area: hint;
  font-size: clamp(0.6rem, 2.2vw, 0.8rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
  pointer-events: none;
  line-height: 1.2;
  width: 100%;
  text-align: center;
}

/* Telas muito baixas: esconde dica para priorizar o placar */
@media (max-height: 500px) {
  .team-hint {
    display: none;
  }

  .team-name {
    font-size: 0.9rem;
  }
}

@media (orientation: landscape) and (max-height: 450px) {
  .team-inner {
    padding: 0.5rem 0.75rem;
    gap: 0.1rem;
  }
}

/* Estado: partida encerrada — vencedor destacado */
.team.is-winner {
  box-shadow: inset 0 0 0 4px var(--winner-border), 0 0 40px var(--winner-glow);
  z-index: 2;
}

.team.is-loser {
  filter: brightness(0.65) saturate(0.7);
}

.team.is-frozen {
  /* Toques de +1 bloqueados; gesto de desfazer continua ativo */
}

.team.is-frozen .team-hint::after {
  content: " · Partida encerrada";
  color: rgba(255, 255, 255, 0.6);
}

/* Feedback visual ao arrastar para desfazer */
.team.is-dragging {
  filter: brightness(1.15);
}

/* --------------------------------------------------------------------------
   Game over overlay
   -------------------------------------------------------------------------- */
.game-over {
  position: fixed;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0));
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.25rem;
  max-width: min(320px, calc(100vw - 2rem));
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-up 400ms ease;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.game-over-text {
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

.btn-reset-win {
  width: 100%;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
}

.btn-share-image--win {
  width: 100%;
  max-width: none;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
}

/* --------------------------------------------------------------------------
   Modais (dialog nativo)
   -------------------------------------------------------------------------- */
.modal {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: min(420px, calc(100vw - 2rem));
  width: 100%;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
}

.modal--small {
  max-width: min(340px, calc(100vw - 2rem));
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.modal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-body--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  width: 100%;
}

.modal-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
}

/* Campos de formulário */
.field-group {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.field-group legend {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.field input[type="text"] {
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}

.field input[type="text"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.field-color {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.field-color input[type="color"] {
  width: 48px;
  height: 36px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
}

.limit-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.chip:has(input:checked) {
  background: rgba(249, 115, 22, 0.2);
  border-color: var(--accent);
  color: var(--accent);
}

.chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Toggle switch */
.toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.35;
}

.toggle.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  transition: background var(--transition);
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.toggle input:checked + .toggle-track {
  background: var(--accent);
}

.toggle input:checked + .toggle-track .toggle-thumb {
  transform: translateX(18px);
}

/* Botões */
.btn {
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25d366;
  color: #fff;
  width: 100%;
  max-width: 280px;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  background: #20bd5a;
  color: #fff;
}

.btn-share-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  width: 100%;
  max-width: 280px;
}

.btn-share-image:hover,
.btn-share-image:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.btn-share-image.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

/* Durante captura do print: placar limpo sem dicas */
body.is-capturing .team-hint {
  visibility: hidden;
}

body.is-capturing .team.is-winner {
  overflow: visible;
  box-shadow: none !important;
  outline: 4px solid var(--winner-border);
  outline-offset: -4px;
}

body.is-capturing .team.is-loser {
  filter: brightness(0.65) saturate(0.7);
}

body.is-capturing .trophy {
  animation: none;
  opacity: 1;
  transform: none;
}

.modal-body--center .btn,
.share-mobile-only .btn {
  width: 100%;
  max-width: 280px;
}

/* Compartilhar / QR */
.share-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.qrcode {
  display: inline-block;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  line-height: 0;
  width: fit-content;
  max-width: 100%;
}

.qrcode canvas,
.qrcode img {
  display: block;
  width: 200px;
  height: 200px;
}

/* Após gerar, a lib oculta o canvas e exibe o img — só o canvas oculto não deve ocupar espaço */
.qrcode canvas[style*="display: none"],
.qrcode canvas[style*="display:none"] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0;
  margin: 0;
}

.share-url {
  font-size: 0.8rem;
  color: var(--text-muted);
  word-break: break-all;
}

/* Fallback para navegadores sem suporte a :has() */
.chip.is-selected {
  background: rgba(249, 115, 22, 0.2);
  border-color: var(--accent);
  color: var(--accent);
}

/* Acessibilidade: reduzir movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Banner e fluxo de instalação PWA
   -------------------------------------------------------------------------- */
.install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0));
  background: var(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  animation: slide-up-banner 300ms ease;
}

@keyframes slide-up-banner {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.install-banner__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
  line-height: 1.3;
}

.install-banner__text strong {
  font-weight: 700;
}

.install-banner__text span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.install-banner__action {
  flex-shrink: 0;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.install-banner__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.share-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.share-block + .share-block {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.share-block__title {
  font-size: 0.95rem;
  font-weight: 700;
}

.install-block .btn-install-native {
  width: 100%;
}

.install-steps {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.install-steps strong {
  color: var(--text);
}

.step-icon {
  font-size: 0.95rem;
}

.install-already {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  font-size: 0.9rem;
}

.install-already__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.25);
  color: #4ade80;
  font-weight: 700;
}

.install-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.install-note strong {
  color: var(--text);
}

/* Esconde QR no celular (já está no próprio aparelho) */
@media (max-width: 768px) {
  #share-qr-section {
    display: none;
  }

  #share-mobile-only {
    display: flex !important;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.share-mobile-only {
  display: none;
}

/* Esconde seção de instalar no desktop (usa QR para enviar ao celular) */
@media (min-width: 769px) {
  #share-install-section .install-steps,
  #share-install-section .btn-install-native,
  #share-install-section #install-already {
    display: none !important;
  }
}
