/* Vintage global theme overrides. Home and Calendar live in dedicated files. */

body.vintage {
  font-family: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  background: #e8dcc8;
  color: #3a2a14;
}

body.vintage h1,
body.vintage h2,
body.vintage h3,
body.vintage .brand,
body.vintage .vintage-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
}

body.vintage .btn,
body.vintage .home-kicker,
body.vintage .home-section-head span,
body.vintage .home-group-head span,
body.vintage .home-status-chip {
  font-family: 'Bebas Neue', Arial, sans-serif;
  letter-spacing: 0.06em;
}

body.vintage .topbar {
  background: #e8dcc8;
  border-bottom: 2px solid #c4a882;
}

body.vintage .topbar-line-1 {
  background: linear-gradient(135deg, #2a1f0e 0%, #3d2c12 50%, #4a1a0a 100%);
}

body.vintage .topbar-line-2 {
  background: #ede0c8;
  border-top: 1px solid #c4a882;
  padding: 0.5rem 0.8rem;
  gap: 0.4rem;
  min-height: 56px;
  align-items: center;
  overflow: visible;
  flex-wrap: nowrap;
}

body.vintage .stats-bar {
  background: #f0e6d4;
  border-color: #c4a882;
  color: #3a2a14;
}

body.vintage .stats-bar strong {
  color: #3a2a14;
}

body.vintage .container {
  background: #e8dcc8;
}

body.vintage .btn-dark-topbar {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
}

body.vintage #vintageToggle {
  border-style: dashed;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  transform: rotate(-1deg);
}

body.vintage #vintageToggle::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  pointer-events: none;
  filter: blur(0.2px);
}

body.vintage #vintageToggle:focus-visible {
  outline: 3px solid #d4a853;
  outline-offset: 3px;
}

body.vintage .countdown-badge {
  color: #d4a853;
}

body.vintage select,
body.vintage input,
body.vintage .search-wrap input,
body.vintage .topbar-line-2 select {
  background: #f5ede3;
  border-color: #c4a882;
  color: #3a2a14;
}

body.vintage .tz-topbar {
  border-color: rgba(255, 255, 255, 0.2);
}

body.vintage .tz-topbar option {
  background: #f5ede3;
  color: #3a2a14;
}

body.vintage .vintage-card,
body.vintage .vintage-paper,
body.vintage .vintage-ticket {
  position: relative;
  background: #f5ede3;
  border: 1px solid #c4a882;
  color: #3a2a14;
  box-shadow: 0 12px 24px rgba(60, 42, 20, 0.08);
}

body.vintage .vintage-paper {
  background: linear-gradient(135deg, #f7efe2, #eadcc8);
}

body.vintage .vintage-ticket {
  border-style: dashed;
  border-radius: 14px;
}

body.vintage .vintage-section-title {
  color: #3a2a14;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.vintage-ticket-btn,
.vintage-ticket-tab,
.vintage-status-stamp,
.vintage-stat-ticket,
.vintage-paper-card,
.vintage-passport-panel,
.vintage-stadium-card,
.vintage-match-ticket,
.vintage-cta-ticket {
  position: relative;
  isolation: isolate;
}

.vintage-ticket-btn::before,
.vintage-ticket-tab::before,
.vintage-paper-card::before,
.vintage-passport-panel::before,
.vintage-stadium-card::before,
.vintage-match-ticket::before,
.vintage-cta-ticket::before {
  content: '';
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0.16;
  z-index: -1;
  pointer-events: none;
}

.vintage-status-stamp::before,
.vintage-stat-ticket::before {
  content: '';
  position: absolute;
  inset: 0;
  background: center / contain no-repeat;
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}

body.vintage .section-intro,
body.vintage .match-card,
body.vintage .stadium-card,
body.vintage .group-card,
body.vintage .sim-group-card,
body.vintage .sim-section,
body.vintage .squad-widget-card,
body.vintage .group-standings,
body.vintage .games-standings-panel,
body.vintage .games-rounds-panel,
body.vintage .calendar-toolbar,
body.vintage .knockout-info,
body.vintage .phase-card {
  background: #f5ede3;
  border-color: #c4a882;
  box-shadow: 0 12px 24px rgba(60, 42, 20, 0.08);
}

body.vintage .section-intro h2,
body.vintage .stadium-card h3,
body.vintage .group-header .gname,
body.vintage .games-section-title,
body.vintage .sim-group-card h3,
body.vintage .sim-section h3 {
  color: #3a2a14;
}

body.vintage .group-card-title,
body.vintage .btn.active,
body.vintage .games-group-chip.active,
body.vintage .calendar-stage-tab.active,
body.vintage .simulator-tab.active,
body.vintage .cal-day.active {
  background: #3a2a14;
  border-color: #3a2a14;
  color: #f5ede3;
}

body.vintage .btn-outline,
body.vintage .games-group-chip,
body.vintage .calendar-stage-tab,
body.vintage .round-arrow,
body.vintage .ko-team {
  background: #f5ede3;
  border-color: #c4a882;
  color: #3a2a14;
}

body.vintage .btn-outline:hover,
body.vintage .games-group-chip:hover,
body.vintage .calendar-stage-tab:hover,
body.vintage .round-arrow:hover,
body.vintage .ko-team:hover {
  border-color: #8b6a3a;
  color: #8b6a3a;
}

body.vintage .match-card-header,
body.vintage .match-meta,
body.vintage .games-standings th,
body.vintage .games-standings td,
body.vintage .group-standings th,
body.vintage .group-standings td,
body.vintage .round-match,
body.vintage .round-block {
  background: transparent;
  border-color: #c4a882;
}

body.vintage .match-card .group-tag {
  background: #3a2a14;
  color: #f5ede3;
}

body.vintage .match-card .group-tag.knockout {
  background: #5c4a32;
}

body.vintage .match-card .group-tag.final {
  background: #8b6a3a;
}

body.vintage .channel {
  background: #e0d4c4;
  color: #3a2a14;
}

body.vintage .stadium-link,
body.vintage .map-link,
body.vintage a {
  color: #8b6a3a;
}

body.vintage .cal-day {
  background: #f5ede3;
  border-color: #c4a882;
  color: #3a2a14;
}

body.vintage .cal-day .cd-count {
  background: rgba(139, 106, 58, 0.12);
  color: #8b6a3a;
}

body.vintage .cal-day.today {
  background: #3a2a14;
  border-color: #8b6a3a;
  color: #f5ede3;
}

body.vintage .cal-day.past {
  background: #e5d9c8;
  color: #9a8a7a;
}

body.vintage .simulator-hero {
  background: #f0e6d4;
  border-color: #c4a882;
  box-shadow: 0 12px 24px rgba(60, 42, 20, 0.08);
}

body.vintage .simulator-metrics div,
body.vintage .simulator-tabs,
body.vintage .third-row,
body.vintage .ko-match {
  background: rgba(139, 106, 58, 0.06);
  border-color: #c4a882;
}

body.vintage .ko-team.selected {
  background: #3a2a14;
  border-color: #3a2a14;
  color: #f5ede3;
}

body.vintage.view-day .games-group-chip {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-style: dashed;
  border-radius: 8px;
  background: #f5ede3;
  color: #3a2a14;
  background-image: url("assets/vintage/buttons/05_grupo-verde.png") !important;
  padding: 0.62rem 0.95rem !important;
  min-height: 38px;
}

body.vintage.view-day .games-group-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("assets/vintage/buttons/05_grupo-verde.png") center / cover no-repeat;
  opacity: 0.16;
  z-index: -1;
  pointer-events: none;
}

body.vintage.view-day .games-group-chip.active {
  outline: 2px solid rgba(139, 106, 58, 0.50);
  outline-offset: 2px;
  color: #2f2213 !important;
}

body.vintage.view-day .games-rules {
  background-image: linear-gradient(135deg, rgba(250, 244, 233, 0.96), rgba(238, 226, 208, 0.94)),
    url("assets/vintage/papers/Rodadas.png");
  background-size: cover;
  border-color: #c4a882;
  border-left-color: #8b6a3a;
  color: #3a2a14;
}

body.vintage.view-day .games-standings-panel,
body.vintage.view-day .games-rounds-panel {
  background-image: linear-gradient(135deg, rgba(250, 244, 233, 0.97), rgba(238, 226, 208, 0.95)),
    url("assets/vintage/papers/Rodadas.png");
  background-size: cover;
}

body.vintage.view-day .round-match {
  background: rgba(245, 237, 227, 0.45);
  border: 1px dashed #c4a882;
  border-radius: 10px;
  margin: 0.35rem 0;
  padding: 0.55rem;
}

body.vintage .view-toggle {
  gap: 0.35rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  align-items: center;
  padding: 0.1rem 0;
}

body.vintage .view-toggle::-webkit-scrollbar {
  display: none;
}

body.vintage .view-toggle .btn {
  position: relative;
  isolation: isolate;
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background-color: transparent !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
  color: #3a2a14 !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.70) !important;
  text-indent: 0 !important;
  white-space: nowrap !important;
  line-height: 1.1 !important;
  padding: 0.35rem 0.72rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: auto !important;
  min-width: 104px !important;
  height: 42px !important;
  transition: filter 0.18s, transform 0.18s;
}

body.vintage .view-toggle .btn[data-view="day"],
body.vintage .view-toggle .btn[data-view="simulator"] {
  width: auto !important;
  min-width: 132px !important;
}

body.vintage .view-toggle .btn::before,
body.vintage .view-toggle .btn::after {
  display: none !important;
}

body.vintage .view-toggle .btn[data-view="home"] {
  background-image: url("assets/vintage/buttons/19_bola-azul.png") !important;
}

body.vintage .view-toggle .btn[data-view="day"] {
  background-image: url("assets/vintage/buttons/classificacao-removebg-preview.png") !important;
}

body.vintage .view-toggle .btn[data-view="calendar"] {
  background-image: url("assets/vintage/buttons/calendario.png") !important;
}

body.vintage .view-toggle .btn[data-view="stadiums"] {
  background-image: url("assets/vintage/buttons/estadios.png") !important;
}

body.vintage .view-toggle .btn[data-view="squads"] {
  background-image: url("assets/vintage/buttons/seleções.png") !important;
}

body.vintage .view-toggle .btn[data-view="simulator"] {
  background-image: url("assets/vintage/buttons/simulador.png") !important;
}

body.vintage .view-toggle .btn:hover {
  filter: brightness(1.08) drop-shadow(0 3px 6px rgba(60, 42, 20, 0.30));
  transform: translateY(-2px);
  outline: none !important;
}

body.vintage .view-toggle .btn.active {
  filter: saturate(1.2) brightness(1.05) drop-shadow(0 4px 8px rgba(60, 42, 20, 0.35));
  transform: translateY(-2px);
  outline: none !important;
}

body.vintage .vintage-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
  min-height: 0;
  padding: 0;
  line-height: 1;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  text-shadow: none;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
}

body.vintage .vintage-button::before,
body.vintage .vintage-button::after {
  display: none !important;
}

body.vintage .vintage-button--home {
  width: 132px;
  height: 44px;
  background-image: url("assets/vintage/buttons/19_bola-azul.png");
}

body.vintage .vintage-button--classification {
  width: 148px;
  height: 44px;
  background-image: url("assets/vintage/buttons/classificacao-removebg-preview.png");
}

body.vintage .vintage-button--calendar {
  width: 132px;
  height: 44px;
  background-image: url("assets/vintage/buttons/calendario.png");
}

body.vintage .vintage-button--stadiums {
  width: 132px;
  height: 44px;
  background-image: url("assets/vintage/buttons/estadios.png");
}

body.vintage .vintage-button--callups {
  width: 132px;
  height: 44px;
  background-image: url("assets/vintage/buttons/seleções.png");
}

body.vintage .vintage-button--simulator {
  width: 148px;
  height: 44px;
  background-image: url("assets/vintage/buttons/simulador.png");
}

body.vintage .vintage-button--view-stadiums {
  width: 160px;
  height: 48px;
  background-image: url("assets/vintage/buttons/estadios.png");
}

body.vintage .vintage-stamp {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 32px;
  padding: 0.25rem 0.6rem;
  border: 1px dashed #8b6a3a;
  border-radius: 999px;
  color: #3a2a14;
  background: rgba(245, 237, 227, 0.82);
  font-family: 'Bebas Neue', Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

body.vintage .vintage-stamp::before {
  content: '';
  position: absolute;
  inset: -6px;
  background: center / contain no-repeat;
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
}

body.vintage .vintage-stamp--next::before {
  background-image: url("assets/vintage/stamps/proximo.png");
}

body.vintage .vintage-stamp--ended::before {
  background-image: url("assets/vintage/stamps/encerrado.png");
}

body.vintage .vintage-stamp--soon::before {
  background-image: url("assets/vintage/stamps/breve.png");
}

body.vintage .vintage-stamp--live::before {
  background-image: url("assets/vintage/stamps/ao-vivo.png");
}

body.vintage .vintage-panel,
body.vintage .vintage-ticket,
body.vintage .vintage-card,
body.vintage .vintage-stat,
body.vintage .vintage-table,
body.vintage .vintage-match-ticket {
  position: relative;
  isolation: isolate;
  background: #f5ede3;
  color: #3a2a14;
  border: 1px solid #c4a882;
  box-shadow: 0 12px 24px rgba(60, 42, 20, 0.08);
}

body.vintage .vintage-panel,
body.vintage .vintage-card {
  border-radius: 18px;
  padding: 1rem;
}

body.vintage .vintage-ticket,
body.vintage .vintage-match-ticket {
  border-style: dashed;
  border-radius: 14px;
  padding: 0.85rem;
  background-image: linear-gradient(135deg, rgba(250, 244, 233, 0.94), rgba(232, 220, 200, 0.9)),
    url("assets/vintage/papers/Rodadas.png");
  background-size: cover;
  background-position: center;
}

body.vintage .vintage-stat {
  border-radius: 16px;
  padding: 0.85rem;
  overflow: hidden;
}

body.vintage .vintage-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f8efe2;
}

body.vintage .vintage-table th,
body.vintage .vintage-table td {
  border-bottom: 1px solid #d7bf99;
  color: #3a2a14;
  background: transparent;
}

body.vintage .vintage-panel::before,
body.vintage .vintage-card::before,
body.vintage .vintage-stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("assets/vintage/papers/Rodadas.png") center / cover no-repeat;
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}

body.vintage .vintage-button:focus-visible,
body.vintage .vintage-ticket:focus-visible,
body.vintage .vintage-match-ticket:focus-visible,
body.vintage .vintage-card:focus-visible,
body.vintage.view-day .games-group-chip:focus-visible {
  outline: 3px solid #8b6a3a !important;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  body.vintage #vintageToggle {
    transform: none;
  }
}

@media (max-width: 640px) {
  body.vintage .vintage-panel,
  body.vintage .vintage-card,
  body.vintage .vintage-ticket,
  body.vintage .vintage-match-ticket {
    padding: 0.75rem;
  }

  body.vintage .vintage-button {
    width: 100%;
    min-height: 44px;
  }

  body.vintage .vintage-table {
    display: block;
    overflow-x: auto;
  }

  body.vintage .view-toggle .btn {
    min-width: 92px !important;
    height: 38px !important;
    font-size: 0.68rem !important;
  }

  body.vintage .view-toggle .btn[data-view="day"],
  body.vintage .view-toggle .btn[data-view="simulator"] {
    min-width: 92px !important;
    height: 38px !important;
  }
}

/* ——— Vintage Explorer Gallery ——— */

body.vintage .stadium-explorer-section {
  gap: 1rem;
}

body.vintage .stadium-explorer-item {
  background: transparent;
  border: none;
  box-shadow: none;
  opacity: 0.7;
  filter: sepia(0.25) saturate(0.5) brightness(0.88);
  outline: 1px solid rgba(196, 168, 130, 0.2);
  outline-offset: -1px;
  border-radius: 12px;
}

body.vintage .stadium-explorer-item:hover {
  opacity: 0.9;
  filter: sepia(0.1) saturate(0.75) brightness(0.95);
  outline-color: #8b6a3a;
  z-index: 1;
}

body.vintage .stadium-explorer-item.active {
  opacity: 1;
  filter: sepia(0) saturate(1) brightness(1);
  outline: 0;
  box-shadow: 0 10px 24px rgba(0,0,0,0.30), 0 0 0 1px rgba(139,106,58,0.25);
  border-radius: 18px;
  z-index: 2;
}

body.vintage .stadium-explorer-item:focus-visible {
  outline: 2px solid #8b6a3a;
  outline-offset: 2px;
}

body.vintage .stadium-explorer-item::after {
  background: linear-gradient(to top, rgba(42, 31, 14, 0.78), transparent);
}

body.vintage .stadium-explorer-item img {
  border-radius: 0;
  outline: none;
}

body.vintage .explorer-item-name {
  font-family: 'Playfair Display', Georgia, serif;
  color: #f0e6d4;
  padding: 4px 8px 6px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

body.vintage .explorer-item-name--main {
  font-size: 0.72rem;
}

body.vintage .explorer-item-name--sub {
  font-size: 0.6rem;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 1px;
}

body.vintage .stadium-explorer-detail {
  background: #f5ede3;
}

body.vintage .stadium-map-divider {
  color: #8b6a3a;
}

body.vintage .stadium-map-divider::before,
body.vintage .stadium-map-divider::after {
  background: #c4a882;
}

/* ——— Vintage Sim Completion ——— */

body.vintage .sim-complete-modal {
  background: #f5ede3;
  border-color: #c4a882;
  box-shadow: 0 24px 60px rgba(60,42,20,0.25);
}

body.vintage .sim-complete-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #3a2a14;
}

body.vintage .sim-complete-header p {
  color: #5c4a32;
}

body.vintage .sim-btn--outline {
  background: #f5ede3;
  border-color: #c4a882;
  color: #3a2a14;
}

body.vintage .sim-btn--outline:hover {
  border-color: #8b6a3a;
  color: #8b6a3a;
}

body.vintage .sim-btn--finalize {
  background: linear-gradient(135deg, #c49a4a, #a07830);
  border-color: #8b6a3a;
}

body.vintage .sim-locked-label {
  color: #8b6a3a;
  background: rgba(139,106,58,0.1);
}

body.vintage .sim-btn--reset {
  background: linear-gradient(135deg, #6b8f71, #4a7a52);
  border-color: #3d6b45;
}

body.vintage .sim-btn--ghost {
  color: #8b6a3a;
}

body.vintage .sim-btn--ghost:hover {
  color: #3a2a14;
  background: rgba(139,106,58,0.06);
}

body.vintage #simCompleteWidget {
  background: rgba(42,31,14,0.5);
}
