/* Monte sua Copa – Raio-X Futebol de Mulheres */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #f2f1f6; font-family: Inter, system-ui, sans-serif; color: #1f2933; }
a { color: #5b3fa0; }
a:hover { color: #432c7a; }
button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; }
h1, h2 { font-family: Georgia, 'DejaVu Serif', serif; }

/* Barra social */
.social { background: #2e1d5c; color: #fff; padding: 12px 24px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; font-size: 17px; line-height: 1.4; }
.social-links { display: flex; gap: 14px; }
.social-links a { color: #fff; font-weight: 700; text-underline-offset: 3px; }

.page { max-width: 1320px; margin: 0 auto; padding: 40px 32px 56px; display: flex; flex-direction: column; gap: 28px; }

/* Caixas de aviso */
.box { border-radius: 12px; padding: 14px 20px; font-size: 16px; line-height: 1.5; }
.box-red { background: #c81e1e; color: #fff; border: 2px solid #c81e1e; text-align: center; }
.box-red a { color: #fff; font-weight: 700; }
.box-dark { background: #2e1d5c; color: #fff; }
.box-center { text-align: center; padding: 12px 20px; }

.card { background: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(31,41,51,.08); }

/* Topo */
.top { display: flex; flex-wrap: wrap; gap: 24px 28px; align-items: stretch; }
.top-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.intro { display: flex; flex-direction: column; gap: 10px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #5b3fa0; }
.intro h1 { margin: 0; font-size: 40px; line-height: 1.15; color: #1f2933; }
.intro p { margin: 0; font-size: 17px; line-height: 1.55; color: #52606d; }

.options { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: flex-end; padding: 18px 22px; }
.options-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #616e7c; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { min-height: 44px; padding: 0 16px; border-radius: 8px; font-size: 15px; font-weight: 600; border: 1px solid #cbd2d9; background: #fff; color: #3e4c59; }
.pill.on { border-color: #7a5cc4; background: #7a5cc4; color: #fff; }
.arena { flex: 1 1 100%; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid #e4e7eb; padding-top: 14px; }
.arena[hidden] { display: none; }
.arena-q { font-size: 15px; font-weight: 700; color: #1f2933; }
.arena-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 4px; }
.arena-grid .pill { padding: 4px; font-size: 13px; line-height: 1.2; text-align: center; }
.arena-grid .pill span { display: block; white-space: nowrap; }
.arena-grid .pill .uf { font-size: 11px; font-weight: 600; opacity: .75; }
.hint { margin: 0; flex: 1 1 100%; font-size: 14px; line-height: 1.5; color: #432c7a; background: #efe9fb; border: 1px solid #d4c6f2; border-radius: 10px; padding: 10px 14px; }

/* Resumo */
.summary-wrap { flex: 1 1 430px; min-width: 0; min-height: 300px; position: relative; }
.summary { position: absolute; inset: 0; background: #fff; border: 2px solid #5b3fa0; border-radius: 14px; padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.summary h2 { margin: 0; font-size: 22px; color: #5b3fa0; }
.summary-head { font-size: 14px; color: #52606d; }
.summary-list { flex: 1 1 0; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.summary-list ul { list-style: none; margin: 0; padding: 0 4px 0 0; display: flex; flex-direction: column; gap: 8px; }
.summary-list li { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14px; border-bottom: 1px solid #e4e7eb; padding-bottom: 4px; }
.summary-list .where { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary-list .price { white-space: nowrap; font-weight: 600; }
.remove { flex: none; width: 32px; height: 32px; margin: 0; display: flex; align-items: center; justify-content: center; border: none; border-radius: 8px; background: transparent; color: #7b8794; }
.remove:hover { background: #f2f1f6; color: #1f2933; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid #1f2933; padding-top: 12px; }
.summary-total span { font-size: 15px; font-weight: 700; }
.summary-total strong { font-size: 32px; font-weight: 800; color: #1f2933; }
.warn { margin: 0; font-size: 13px; line-height: 1.5; color: #7a4100; background: #fff4e0; border-radius: 8px; padding: 10px 12px; }

/* Rota do Brasil */
.route { padding: 0; overflow: hidden; display: flex; flex-wrap: wrap; align-items: stretch; }
.route h2 { margin: 0; flex: 0 0 180px; box-sizing: border-box; display: flex; align-items: center; background: #002776; color: #fff; padding: 12px 18px; font-size: 20px; line-height: 1.2; }
.route-scroll { flex: 1 1 0; min-width: 0; overflow-x: auto; padding: 4px 16px; }
.route-grid { display: grid; grid-template-columns: 106px 20px 106px 20px 106px 170px 106px 20px 106px 20px 106px 40px 106px; grid-template-rows: 26px 26px 26px; row-gap: 4px; padding: 10px 0; justify-content: end; align-items: center; min-width: 1032px; }
.rl { text-align: center; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #7b8794; }
.rt { display: flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; padding: 4px 6px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; line-height: 1.2; background: #c5d5f0; color: #002776; }
.rt.certo { background: #002776; color: #fff; }
.route-grid svg path { stroke: #2c4f8f; stroke-width: 1.5; fill: none; }
.route-grid svg path.f { stroke: none; fill: #2c4f8f; }
.route-grid svg text { font-size: 10.5px; font-weight: 600; fill: #2c4f8f; text-anchor: middle; font-family: Inter, system-ui, sans-serif; }
.ra { width: 20px; height: 26px; }
.rsplit { position: relative; width: 170px; height: 86px; }
.rsplit svg { position: absolute; inset: 0; width: 170px; height: 86px; overflow: visible; }
.rsplit-label { position: absolute; left: 0; width: 96px; text-align: center; font-size: 10.5px; font-weight: 600; line-height: 1; color: #2c4f8f; white-space: nowrap; }
.rjoin { width: 40px; height: 86px; }

/* Legenda das tags de rota */
.route-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0 0 10px; font-size: 12px; color: #3e4c59; }
.tag-sample { display: inline-block; padding: 2px 6px; border-radius: 4px; font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .5px; line-height: 1.2; margin-right: 6px; vertical-align: 1px; text-transform: uppercase; background: #c5d5f0; color: #002776; }
.tag-sample.br { background: #002776; color: #fff; }

/* Elementos só do celular (escondidos no desktop) */
.route-mobile, .map-mobile, .mobile-bar, .swipe-hint { display: none; }

/* Estádios */
.cities { display: flex; flex-direction: column; gap: 18px; }
.loading { margin: 0; color: #616e7c; }
.city { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.city-body { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.games { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.games-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; padding: 0 15px 4px; }
.games-head h2 { margin: 0; flex: 1 1 200px; font-size: 24px; color: #1f2933; }
.games-head h2 span { font-family: Inter, sans-serif; font-size: 14px; font-weight: 500; color: #616e7c; }
.col-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #616e7c; }
.col-cat { width: 124px; }
.col-price { width: 78px; margin-left: -2px; text-align: right; }

.game { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 2px 12px; min-height: 46px; border-radius: 10px; border: 2px solid #e4e7eb; background: #f8f9fb; }
.game.sel { border-color: #5b3fa0; background: #efe9fb; }
.game-sub { flex: 0 0 76px; display: flex; flex-direction: column; line-height: 1.25; font-size: 13px; color: #52606d; }
.game-sub b { color: #1f2933; }
.game-info { flex: 1 1 150px; min-width: 0; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
.game.no-price .game-info { flex: 0 0 auto; }
.game-phase { flex: none; width: 84px; text-align: center; padding: 3px 6px; border-radius: 999px; font-size: 12.5px; font-weight: 800; line-height: 1.25; }
/* fase em escala de vinho: quanto mais escuro, mais perto da final */
.ph-grupos, .ph-brasil { background: #fff; color: #8a2a5a; box-shadow: inset 0 0 0 1.5px #ebc7d6; }
.ph-oitavas { background: #f2d3df; color: #6e1f45; }
.ph-quartas { background: #c0628c; color: #fff; }
.ph-semifinal { background: #92305e; color: #fff; }
.ph-final, .ph-terceiro { background: #5c1a3a; color: #fff; }
.game-match { flex: 0 0 auto; white-space: nowrap; font-size: 13px; line-height: 1.35; color: #52606d; }
.tag { flex: none; width: 50px; align-self: center; display: inline-block; padding: 3px 6px; border-radius: 6px; font-size: 9.5px; line-height: 1.2; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; text-align: center; background: #c5d5f0; color: #002776; }
.tag.br { background: #002776; color: #fff; }
.cats { display: flex; gap: 4px; }
.cat { width: 28px; min-height: 26px; padding: 0; border-radius: 6px; font-size: 12px; font-weight: 700; border: 2px solid #9aa5b1; background: #fff; color: #1f2933; }
.cat.c1 { border-color: #c78800; }
.cat.c2 { border-color: #ad0000; }
.cat.c3 { border-color: #006bd6; }
.cat.on { background: #e4e7eb; color: #3e4c59; }
.cat.c1.on { background: #c78800; color: #1f2933; }
.cat.c2.on { background: #ad0000; color: #fff; }
.cat.c3.on { background: #006bd6; color: #fff; }
.cat:disabled { opacity: .35; }
.game-price { width: 78px; margin-left: -10px; text-align: right; white-space: nowrap; font-size: 12px; color: #5b3fa0; font-weight: 600; }
.game-price.val { font-size: 15px; font-weight: 700; color: #1f2933; }
.no-price-box { flex: 1 1 220px; min-width: 0; min-height: 34px; display: flex; flex-direction: column; justify-content: center; background: #e4e7eb; border-radius: 8px; padding: 2px 12px; }
.no-price-box span { font-size: 10.5px; line-height: 1.3; color: #52606d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.no-price-box b { font-size: 13px; color: #3e4c59; }

.map { flex: 1 1 380px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.map span { font-size: 13px; color: #616e7c; padding-top: 6px; }
.map img { width: 100%; height: auto; display: block; }

/* Tabela por fase */
.phases { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.phases-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; }
.phases-head h2 { margin: 0; font-size: 22px; color: #1f2933; }
.phases-head h2 span { font-family: Inter, sans-serif; font-size: 14px; font-weight: 500; color: #616e7c; }
.legend { display: flex; gap: 14px; font-size: 13px; color: #3e4c59; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.sq { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.sq.c1 { background: #c78800; } .sq.c2 { background: #ad0000; } .sq.c3 { background: #006bd6; }
.phases-scroll { overflow-x: auto; }
.phases table { width: 100%; border-collapse: collapse; min-width: 900px; color: #1f2933; }
.phases th, .phases td { padding: 8px 10px; text-align: center; vertical-align: middle; }
.phases thead th { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #616e7c; border-bottom: 2px solid #1f2933; }
.phases tbody th, .phases tbody td { border-bottom: 1px solid #e4e7eb; }
.phases .left { text-align: left; }
.phases tbody th { text-align: left; white-space: nowrap; }
.phases tbody th b { font-size: 14px; }
.phases tbody th span { font-size: 12px; font-weight: 500; color: #616e7c; }
.phases td.none { color: #9aa5b1; }
.vals { display: inline-flex; gap: 10px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.v { display: inline-flex; align-items: center; gap: 4px; }
.v .sq { width: 8px; height: 8px; }
.v-est { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.cell-note { display: block; font-size: 10px; font-weight: 700; color: #616e7c; margin-bottom: 2px; }
.ic { flex: none; }
.ic-16 { width: 16px; height: 16px; }
.ic-14 { width: 14px; height: 14px; }
.ic-12 { width: 12px; height: 12px; }
.chip-gray { display: inline-block; background: #e4e7eb; border-radius: 6px; padding: 4px 8px; font-size: 11px; line-height: 1.3; color: #52606d; }
.chip-gray b { color: #3e4c59; }
.phases-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 4px 16px; }
.phases-foot p { margin: 0; flex: 1 1 420px; font-size: 12px; line-height: 1.9; color: #616e7c; }
.ic-wrap { display: inline-flex; }
.ic-red { vertical-align: -3px; }
.ic-yel { vertical-align: -2px; }
.chip-red { display: inline-block; margin-left: 8px; background: #c81e1e; color: #fff; border-radius: 6px; padding: 2px 10px; font-size: 12px; font-weight: 700; line-height: 1.6; }
.signature { flex: none; background: #2e1d5c; color: #fff; border-radius: 8px; padding: 6px 14px; font-size: 16px; font-weight: 800; letter-spacing: .3px; }

/* Rodapé */
.footer { border-top: 1px solid #cbd2d9; padding-top: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.55; }
.footer p { margin: 0; font-size: 13px; color: #616e7c; }
.footer .footer-strong { font-size: 16px; font-weight: 700; color: #5b3fa0; }

/* Celular (até 640 px): nada daqui afeta o desktop */
@media (max-width: 640px) {
  .page { padding: 24px 14px 40px; gap: 22px; }
  .intro h1 { font-size: 32px; }
  .social { font-size: 15px; padding: 10px 14px; }

  /* aviso vermelho: continua centralizado, letra menor */
  .box-red { font-size: 14px; padding: 12px 14px; }

  /* Seu resumo: só a altura do conteúdo */
  .summary-wrap { min-height: 0; }
  .summary { position: static; }
  .summary-list { flex: none; max-height: 280px; }

  /* Rota: título em cima e lista vertical no lugar do fluxograma */
  .route { flex-direction: column; }
  .route h2 { flex: none; padding: 10px 16px; font-size: 19px; }
  .route-scroll { display: none; }
  .route-mobile { display: block; padding: 12px 16px 4px; }
  .route-mobile ol { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
  .route-mobile li { display: flex; flex-direction: column; gap: 4px; }
  .rm-label { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #616e7c; }
  .rm-path { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
  .rm-path i { font-style: normal; color: #2c4f8f; font-weight: 700; }
  .rm-path .rt { display: inline-block; font-size: 10px; padding: 4px 6px; }
  .rm-ko { display: grid; grid-template-columns: 36px minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr); align-items: center; gap: 6px 4px; }
  .rm-ko > i { font-style: normal; color: #2c4f8f; font-weight: 700; text-align: center; }
  .rm-ko > i.rm-ph-arrow { color: #7b8794; }
  .rm-ph { font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #7b8794; text-align: center; }
  .rm-pos { font-size: 12px; font-weight: 700; color: #3e4c59; }
  .rm-ko .rt { display: flex; align-items: center; justify-content: center; min-height: 34px; font-size: 10px; padding: 3px 4px; white-space: normal; text-align: center; line-height: 1.15; }

  /* Linhas dos jogos em 3 faixas: código e data | fase; confronto | tag; categorias | preço */
  .city { padding: 14px 12px 16px; }
  .games-head { padding: 0 4px 4px; }
  .games-head .col-label { display: none; }
  .game { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 8px; padding: 8px 10px 10px; }
  .game-info { display: contents; }
  .game-sub { grid-column: 1; grid-row: 1; flex-direction: row; align-items: baseline; gap: 6px; font-size: 13px; }
  .game-sub b::after { content: " ·"; font-weight: 400; color: #7b8794; }
  .game-phase { grid-column: 2; grid-row: 1; justify-self: end; }
  .game-match { grid-column: 1; grid-row: 2; white-space: normal; font-size: 14px; }
  .tag { grid-column: 2; grid-row: 2; justify-self: end; }
  .cats { grid-column: 1; grid-row: 3; gap: 6px; }
  .game-price { grid-column: 2; grid-row: 3; width: auto; margin: 0; }
  .no-price-box { grid-column: 1 / -1; grid-row: 3; }
  .no-price-box span { white-space: normal; }

  /* botões de categoria maiores para o dedo */
  .cat { width: 40px; min-height: 36px; font-size: 14px; }

  /* mapa recolhido */
  .map { display: none; }
  .map-mobile { display: block; padding: 0 4px 6px; }
  .map-mobile summary { cursor: pointer; font-size: 14px; font-weight: 700; color: #5b3fa0; padding: 6px 0; }
  .map-mobile img { width: 100%; height: auto; display: block; margin-top: 8px; }

  /* tabela de preços: dica de arraste */
  .swipe-hint { display: block; margin: 0; font-size: 12px; font-weight: 600; color: #5b3fa0; }

  /* barra fixa com o total */
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #2e1d5c; color: #fff; font-size: 15px; box-shadow: 0 -2px 10px rgba(0,0,0,.2); }
  .mobile-bar strong { font-size: 17px; }
  .mobile-bar a { color: #fff; font-weight: 700; font-size: 14px; text-underline-offset: 3px; }
  body.has-bar { padding-bottom: 64px; }
}
