/* ============================================================
   Reset & Base
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(ellipse at top, #fffae6 0%, #fff8db 35%, #f5f5f5 100%);
  color: #1a1a1a;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

/* ============================================================
   Brasil flag accent stripes
   ============================================================ */
.flag-stripe {
  position: fixed;
  left: 0;
  width: 100%;
  height: 14px;
  z-index: 1;
}
.flag-stripe.top {
  top: 0;
  background: linear-gradient(90deg, #009c3b 50%, #ffdf00 50%);
}
.flag-stripe.bottom {
  bottom: 0;
  background: linear-gradient(90deg, #009c3b 50%, #ffdf00 50%);
}

/* ============================================================
   HERO (contagem)
   ============================================================ */
.container {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 16px 0;
}

.shield {
  width: 180px;
  height: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 6px 14px rgba(0, 156, 59, 0.25));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.title {
  font-family: 'Anton', 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 0.95;
  margin-bottom: 18px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.title-line {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #009c3b;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.title-main {
  font-size: clamp(5rem, 16vw, 10rem);
  background: linear-gradient(180deg, #ffdf00 0%, #f5c500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 0 rgba(0, 156, 59, 0.15);
  line-height: 0.9;
}

.subtitle {
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  color: #444;
  margin-bottom: 32px;
  font-weight: 500;
}

.subtitle strong {
  color: #009c3b;
  font-weight: 800;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.5vw, 18px);
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 156, 59, 0.2);
  border-radius: 24px;
  padding: clamp(20px, 4vw, 36px) clamp(16px, 3vw, 28px);
  box-shadow:
    0 20px 60px -20px rgba(0, 156, 59, 0.25),
    0 0 0 1px rgba(255, 223, 0, 0.3) inset;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}

.time-value {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1;
  color: #009c3b;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 0 rgba(255, 223, 0, 0.5);
  min-width: 1.8em;
  text-align: center;
}

.time-label {
  margin-top: 8px;
  font-size: clamp(0.7rem, 1.6vw, 0.9rem);
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
}

.separator {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #ffdf00;
  -webkit-text-stroke: 1px #009c3b;
  text-stroke: 1px #009c3b;
  font-weight: 400;
  align-self: flex-start;
  margin-top: 4px;
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.footer {
  margin-top: 32px;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: #009c3b;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ============================================================
   AD SECTION
   ============================================================ */
.ad-section {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.ad-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #888;
  font-weight: 600;
}

.ad-placeholder {
  width: 100%;
  max-width: 728px;
  min-height: 120px;
  background: repeating-linear-gradient(
    45deg,
    #f4f4f0,
    #f4f4f0 12px,
    #ebebe3 12px,
    #ebebe3 24px
  );
  border: 2px dashed #c8c8b8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ad-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #888;
  text-align: center;
}

.ad-icon { font-size: 1.6rem; }

.ad-text {
  font-weight: 700;
  font-size: 0.95rem;
}

.ad-hint {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #aaa;
}

/* ============================================================
   GAME SECTION
   ============================================================ */
.game-section {
  width: 100%;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 156, 59, 0.2);
  border-radius: 28px;
  padding: clamp(20px, 3vw, 36px);
  box-shadow: 0 20px 60px -20px rgba(0, 156, 59, 0.25);
  position: relative;
  z-index: 2;
}

.game-header {
  text-align: center;
  margin-bottom: 24px;
}

.game-header h2 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: #1a1a1a;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.game-header h2 span {
  color: #009c3b;
  -webkit-text-stroke: 1px #ffdf00;
  text-stroke: 1px #ffdf00;
}

.game-header p {
  color: #555;
  font-size: 0.95rem;
}

/* ----- Formation bar ----- */
.formation-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px;
  background: linear-gradient(90deg, rgba(0, 156, 59, 0.08), rgba(255, 223, 0, 0.12));
  border-radius: 14px;
}

.formation-label {
  font-weight: 700;
  color: #009c3b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.formation-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.formation-btn {
  font-family: 'Anton', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  padding: 8px 14px;
  background: #fff;
  color: #444;
  border: 2px solid #e0e0d0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.formation-btn:hover {
  border-color: #009c3b;
  color: #009c3b;
  transform: translateY(-1px);
}

.formation-btn.active {
  background: linear-gradient(135deg, #009c3b, #00702a);
  color: #ffdf00;
  border-color: #009c3b;
  box-shadow: 0 4px 12px -4px rgba(0, 156, 59, 0.5);
}

/* ----- Game grid ----- */
.game-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}

@media (max-width: 880px) {
  .game-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Player pool (esquerda) ----- */
.player-pool {
  background: #fafaf2;
  border: 1.5px solid #ececd8;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  max-height: 720px;
}

.pool-header h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1a1a1a;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

#pool-count {
  background: #009c3b;
  color: #ffdf00;
  font-family: 'Anton', sans-serif;
  font-size: 0.85rem;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.pool-filters {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 9px;
  background: #fff;
  color: #666;
  border: 1px solid #d8d8c0;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.12s ease;
}

.filter-btn:hover { border-color: #009c3b; color: #009c3b; }

.filter-btn.active {
  background: #009c3b;
  color: #ffdf00;
  border-color: #009c3b;
}

.player-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #009c3b #e0e0c8;
}

.player-list::-webkit-scrollbar { width: 6px; }
.player-list::-webkit-scrollbar-track { background: #e0e0c8; border-radius: 3px; }
.player-list::-webkit-scrollbar-thumb { background: #009c3b; border-radius: 3px; }

/* Section header (quando filtrando por slot) */
.list-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #555;
  background: #fff;
  border-radius: 8px;
  border: 1px dashed #d8d8c0;
  position: sticky;
  top: 0;
  z-index: 1;
}
.list-section-header .count {
  margin-left: auto;
  background: #009c3b;
  color: #ffdf00;
  font-family: 'Anton', sans-serif;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.7rem;
}
.list-section-header .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.list-section-header .dot.pos-GOL { background: #f5c500; }
.list-section-header .dot.pos-ZAG { background: #0d47a1; }
.list-section-header .dot.pos-LD  { background: #00695c; }
.list-section-header .dot.pos-LE  { background: #1b5e20; }
.list-section-header .dot.pos-VOL { background: #e65100; }
.list-section-header .dot.pos-MEI { background: #4a148c; }
.list-section-header .dot.pos-ATA { background: #b71c1c; }

.player-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #fff;
  border: 1.5px solid #e8e8d0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.12s ease;
  text-align: left;
  font-family: inherit;
}

.player-card:hover:not(:disabled) {
  border-color: #009c3b;
  transform: translateX(2px);
  box-shadow: 0 2px 8px -2px rgba(0, 156, 59, 0.3);
}

.player-card.selected {
  background: linear-gradient(90deg, #fffbe6, #fff5cc);
  border-color: #ffdf00;
  opacity: 0.6;
  cursor: not-allowed;
}

.player-card:disabled {
  cursor: not-allowed;
}

.player-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #aaa, #888);
  overflow: hidden;
}

.player-avatar.has-photo {
  object-fit: cover;
  background: #e0e0c8;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.player-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.player-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-meta {
  font-size: 0.72rem;
  color: #777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-pos {
  font-family: 'Anton', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 3px 6px;
  border-radius: 4px;
  background: #f0f0e0;
  color: #555;
  flex-shrink: 0;
}

/* Cores por posição (avatar e badge) */
.pos-GOL .player-avatar { background: linear-gradient(135deg, #f5c500, #d4a800); color: #1a1a1a; }
.pos-GOL .player-pos { background: #fff4cc; color: #8a7000; }
.pos-ZAG .player-avatar { background: linear-gradient(135deg, #1e88e5, #0d47a1); }
.pos-ZAG .player-pos { background: #d6e9f8; color: #0d47a1; }
.pos-LD  .player-avatar { background: linear-gradient(135deg, #26a69a, #00695c); }
.pos-LD  .player-pos { background: #d3efed; color: #00695c; }
.pos-LE  .player-avatar { background: linear-gradient(135deg, #43a047, #1b5e20); }
.pos-LE  .player-pos { background: #d8efd9; color: #1b5e20; }
.pos-VOL .player-avatar { background: linear-gradient(135deg, #fb8c00, #e65100); }
.pos-VOL .player-pos { background: #ffe5cc; color: #e65100; }
.pos-MEI .player-avatar { background: linear-gradient(135deg, #8e24aa, #4a148c); }
.pos-MEI .player-pos { background: #ecd9f0; color: #4a148c; }
.pos-ATA .player-avatar { background: linear-gradient(135deg, #e53935, #b71c1c); }
.pos-ATA .player-pos { background: #ffd9d6; color: #b71c1c; }

/* ----- Pitch (campo) ----- */
.pitch-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pitch {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: inset 0 0 0 2px rgba(0, 156, 59, 0.2);
}

.pitch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 10px;
  gap: 10px;
}

.pitch-shield {
  width: 38px;
  height: auto;
}

.pitch-title {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.pitch-title strong {
  font-family: 'Anton', sans-serif;
  font-size: 1.4rem;
  color: #009c3b;
  letter-spacing: 0.12em;
}

.pitch-title span {
  font-size: 0.8rem;
  color: #888;
  letter-spacing: 0.1em;
}

.pitch-credits {
  font-size: 0.7rem;
  color: #888;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: right;
  max-width: 100px;
  line-height: 1.1;
}

.pitch-field {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.2;
  background:
    radial-gradient(circle at 50% 50%, #2e8b3a 0%, #1f6f29 100%);
  border-radius: 10px;
  border: 3px solid #fff;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

/* Linhas do campo */
.pitch-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}
.center-line { left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-1px); }
.center-circle {
  width: 30%;
  aspect-ratio: 1;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  border-radius: 50%;
}
.penalty-top {
  top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 22%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-top: none;
  background: rgba(255, 255, 255, 0.05);
}
.penalty-bottom {
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 22%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-bottom: none;
  background: rgba(255, 255, 255, 0.05);
}
.goal-top {
  top: 0; left: 50%; transform: translateX(-50%);
  width: 30%; height: 4%;
  background: rgba(255, 255, 255, 0.95);
}
.goal-bottom {
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 30%; height: 4%;
  background: rgba(255, 255, 255, 0.95);
}

/* Slot de jogador no campo */
.slot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.15s ease;
}

.slot:hover { transform: translate(-50%, -50%) scale(1.06); }

.slot-avatar {
  width: clamp(38px, 7vw, 56px);
  height: clamp(38px, 7vw, 56px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: clamp(0.7rem, 1.6vw, 0.9rem);
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #aaa, #888);
  letter-spacing: 0.05em;
  overflow: hidden;
}

.slot-avatar.has-photo {
  object-fit: cover;
  background: #444;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.5),
    0 0 0 2px #fff,
    0 0 0 4px #009c3b;
}

.slot-avatar.empty-plus {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.7);
}

.slot-name {
  font-size: clamp(0.6rem, 1.4vw, 0.75rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  background: rgba(0, 0, 0, 0.35);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-pos {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Anton', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 1px 5px;
  background: #ffdf00;
  color: #009c3b;
  border-radius: 3px;
  border: 1px solid #009c3b;
  pointer-events: none;
}

/* Slot vazio: mostra só a posição */
.slot.empty .slot-avatar {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.7);
}

.slot.empty .slot-name { display: none; }
.slot.empty .slot-pos {
  position: static;
  transform: none;
  font-size: 0.7rem;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.9);
  color: #009c3b;
  border: 1.5px solid #009c3b;
}

.slot.active-pick {
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* Shake animation (incompatibilidade) */
@keyframes shake {
  0%, 100% { transform: translate(-50%, -50%); }
  10%, 30%, 50%, 70%, 90% { transform: translate(calc(-50% - 4px), -50%); }
  20%, 40%, 60%, 80% { transform: translate(calc(-50% + 4px), -50%); }
}

.slot.shake {
  animation: shake 0.45s ease-in-out;
}

.pitch-footer {
  margin-top: 10px;
  padding: 6px 8px;
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  background: #fafaf2;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pitch-hint {
  display: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: #009c3b;
  background: linear-gradient(90deg, #fffbe6, #fff5cc);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #ffdf00;
  animation: hintIn 0.25s ease;
}

.pitch-hint.show { display: inline-block; }
.pitch-hint strong { color: #b71c1c; }

@keyframes hintIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----- Actions ----- */
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(18, 140, 126, 0.5);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -4px rgba(18, 140, 126, 0.6);
}
.btn-primary:disabled {
  background: #cccccc;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-secondary {
  background: #fff;
  color: #009c3b;
  border: 2px solid #009c3b;
}
.btn-secondary:hover { background: #f0fff4; }

.btn-ghost {
  background: transparent;
  color: #888;
  border: 2px solid transparent;
  opacity: 0;
  pointer-events: none;
  transition: all 0.15s ease;
}
.btn-ghost.show {
  opacity: 1;
  pointer-events: auto;
  border-color: #e0e0d0;
  color: #b71c1c;
}
.btn-ghost.show:hover {
  background: #fff5f5;
  border-color: #b71c1c;
}

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

/* ============================================================
   SHARE MODAL
   ============================================================ */
.share-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.share-modal.open {
  display: flex;
}

.share-modal-content {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
}

.share-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #888;
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
}
.share-modal-close:hover { color: #1a1a1a; }

.share-modal h3 {
  font-family: 'Anton', sans-serif;
  font-size: 1.5rem;
  color: #009c3b;
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.share-modal p {
  text-align: center;
  color: #666;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.share-preview {
  background: #f5f5e8;
  padding: 8px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
}

.share-preview canvas,
.share-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.share-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ----- Toasts ----- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: #1a1a1a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 200;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ----- Responsivo ----- */
@media (max-width: 520px) {
  body { padding: 16px; gap: 24px; }
  .separator { display: none; }
  .countdown { gap: 6px; padding: 20px 12px; }
  .time-block { min-width: 70px; }
  .game-section { padding: 16px; }
  .pitch-field { aspect-ratio: 3 / 4.4; }
  .slot-avatar { width: 40px; height: 40px; font-size: 0.7rem; }
  .slot-name { font-size: 0.6rem; max-width: 60px; }
  .formation-options { justify-content: center; }
  .player-pool { max-height: 480px; }
}
