/* CODESP Internacional — elementos de evento: save the date, letreiro de países, mapa e ingresso da inscrição.
   Cores dos dias: 10 dez = verde · 11 dez = azul-claro · 12 dez = dourado (as mesmas da Programação). */

/* ---------- Save the date: 10 · 11 · 12 DEZ 2026, cada dia na sua cor, com luz da mesma cor atrás ---------- */
.data-evento {
  position: relative; isolation: isolate; overflow: clip; text-align: center;
  padding-block: clamp(64px, 8vw, 112px) clamp(72px, 9vw, 128px);
  background: var(--navy-900);
}
.data-luzes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.data-luzes .luz { position: absolute; top: 46%; width: min(78vw, 820px); aspect-ratio: 3 / 2; translate: -50% -50%; opacity: .72; }
.data-luzes .luz:nth-child(1) { left: 20%; }
.data-luzes .luz:nth-child(2) { left: 50%; }
.data-luzes .luz:nth-child(3) { left: 80%; }
.data-grade { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 16px; }
.data-titulo {
  flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .06em .3em;
  margin-bottom: clamp(12px, 2vw, 28px);
  font: 800 clamp(3.3rem, 14.5vw, 10rem)/.9 var(--fonte-display); font-stretch: 125%; letter-spacing: -.035em;
}
.data-dias { display: inline-flex; align-items: center; gap: .16em; }
.data-dias i { width: .13em; height: .13em; border-radius: 50%; background: #fff; opacity: .85; box-shadow: 0 0 .2em rgb(255 255 255 / .6); }
.d-10 { color: var(--verde); text-shadow: 0 0 .28em rgb(0 163 108 / .6); }
.d-11 { color: var(--azul); text-shadow: 0 0 .28em rgb(63 169 245 / .6); }
.d-12 {
  background: var(--ouro-texto); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 .2em rgb(242 178 51 / .55));
}
.data-mes { display: inline-flex; flex-direction: column; align-items: flex-start; font-size: .31em; line-height: .98; letter-spacing: .02em; text-transform: uppercase; }
.data-local {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 22px 8px 8px; border-radius: var(--pill);
  background: linear-gradient(rgb(255 255 255 / .08), rgb(255 255 255 / .03)), rgb(5 15 46 / .6); border: 1px solid rgb(255 255 255 / .18); box-shadow: var(--brilho-topo), var(--sombra-funda);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.375rem);
}
.data-local strong { font-weight: 800; }
/* contagem regressiva: dias em número grande */
.data-conta {
  display: inline-flex; align-items: center; gap: 14px; padding: 8px 26px; border-radius: var(--pill);
  font-weight: 600; font-size: clamp(1rem, .95rem + .3vw, 1.25rem); color: var(--tinta);
}
.data-conta strong { font: 800 clamp(2.6rem, 5vw, 3.75rem)/1 var(--fonte-display); font-stretch: 125%; letter-spacing: -.02em; color: #fff; }
@media (max-width: 599px) {
  .data-mes { flex-direction: row; gap: .3em; font-size: .36em; }
  .data-local { padding-right: 16px; }
}

/* ---------- Letreiro: os 38 países rolando, pontos nas três cores ---------- */
.letreiro { position: relative; z-index: 3; overflow: clip; padding-block: clamp(28px, 3.5vw, 48px); background: var(--navy-900); }
.letreiro-faixa {
  rotate: -2deg; margin-inline: -4%; padding-block: clamp(14px, 1.6vw, 20px);
  background: linear-gradient(90deg, color-mix(in srgb, var(--verde) 55%, var(--navy-900)), color-mix(in srgb, var(--azul) 45%, var(--navy-900)) 50%, color-mix(in srgb, var(--ouro) 40%, var(--navy-900)));
  border-block: 1px solid rgb(255 255 255 / .22);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 26px 60px -24px rgb(0 0 0 / .85);
}
.letreiro-trilho { display: flex; width: max-content; animation: letreiro 90s linear infinite; }
.letreiro ul { display: flex; }
.letreiro li {
  display: flex; align-items: center; white-space: nowrap; color: #fff;
  font: 700 clamp(1.125rem, 2vw, 1.75rem)/1.2 var(--fonte-display); font-stretch: 112%; letter-spacing: .04em; text-transform: uppercase;
}
.letreiro li::after {
  content: ""; flex: none; width: .42em; height: .42em; margin-inline: .9em; border-radius: 50%;
  background: var(--verde); box-shadow: 0 0 0 2px rgb(255 255 255 / .9), 0 0 14px var(--verde);
}
.letreiro li:nth-child(3n+2)::after { background: var(--azul); box-shadow: 0 0 0 2px rgb(255 255 255 / .9), 0 0 14px var(--azul); }
.letreiro li:nth-child(3n)::after { background: var(--ouro); box-shadow: 0 0 0 2px rgb(255 255 255 / .9), 0 0 14px var(--ouro); }
@keyframes letreiro { to { transform: translateX(-50%); } }

/* ---------- Mapa de pontos dos Diálogos continentais (SVG de scripts/gerar-mapa.py; comportamento em mapa.js) ---------- */
[data-continente="africa"], [data-continente="oceania"] { --cor: var(--ouro); }
[data-continente="america-norte"], [data-continente="europa"] { --cor: var(--azul); }
[data-continente="america-sul"], [data-continente="asia"] { --cor: var(--verde); }
.mapa { margin-bottom: clamp(40px, 5vw, 64px); }
.mapa-palco { position: relative; max-width: 1120px; margin-inline: auto; }
.mapa-svg { width: 100%; height: auto; overflow: visible; }
.mapa-svg .grupo {
  fill: none; stroke: rgb(201 214 240 / .34); stroke-width: var(--ponto); stroke-linecap: round; cursor: pointer;
  transition: stroke .8s var(--ease), opacity .4s var(--ease);
}
.mapa.is-ativo .grupo { stroke: color-mix(in srgb, var(--cor) 60%, var(--tinta)); opacity: .85; }
.mapa.tem-selecao .grupo { opacity: .2; }
.mapa .grupo.is-selecionado { stroke: var(--cor); opacity: 1; filter: drop-shadow(0 0 5px var(--cor)); }
.arco {
  fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 4px rgb(63 169 245 / .9));
  transition: stroke-dashoffset 1.6s var(--ease) calc(var(--i) * 260ms + 150ms), opacity .4s var(--ease), stroke-width .3s var(--ease);
}
.mapa.is-ativo .arco { stroke-dashoffset: 0; }
.mapa.tem-selecao .arco { opacity: .2; }
.mapa .arco.is-selecionado { opacity: 1; stroke-width: 4; }
.particula { fill: #fff; opacity: 0; filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 8px var(--azul)); transition: opacity .4s; }
.particula.is-correndo { opacity: .95; }
.curitiba { fill: var(--ouro); stroke: #fff1c9; stroke-width: 2; filter: drop-shadow(0 0 8px var(--ouro)); }
.curitiba-pulso { fill: none; stroke: var(--ouro); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulso 2.2s ease-out infinite; }
@keyframes pulso { from { scale: 1; opacity: .9; } to { scale: 4.2; opacity: 0; } }
.mapa-rotulo {
  position: absolute; left: var(--x); top: var(--y); translate: 16px -50%;
  padding: 6px 12px; border-radius: var(--pill); white-space: nowrap;
  background: rgb(5 15 46 / .78); border: 1px solid rgb(242 178 51 / .7); box-shadow: 0 8px 24px -10px rgb(0 0 0 / .8);
  font-size: .8125rem; font-weight: 700;
}
.mapa-pilulas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: clamp(20px, 3vw, 32px); }
.pilula {
  flex: none; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px 0 14px;
  border: 1px solid rgb(255 255 255 / .2); border-radius: var(--pill); background: rgb(255 255 255 / .06);
  color: #fff; font-weight: 600; font-size: .9375rem; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .3s var(--ease);
}
.pilula::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cor); box-shadow: 0 0 10px var(--cor); }
.pilula:hover { background: rgb(255 255 255 / .12); }
.pilula[aria-pressed="true"] { background: var(--cor); color: var(--navy-900); border-color: transparent; box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 10px 26px -8px var(--cor); }
.pilula[aria-pressed="true"]::before { background: var(--navy-900); box-shadow: none; }
.continente { transition: box-shadow .4s var(--ease), translate .4s var(--ease); }
.continente.is-selecionado { translate: 0 -4px; box-shadow: 0 0 0 2px var(--cor), 0 0 60px -12px var(--cor), var(--sombra-funda); }
@media (max-width: 699px) {
  /* celular: pílulas roláveis; ao tocar, só o cartão do continente escolhido aparece logo abaixo */
  .mapa-pilulas { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--margem)); padding: 4px var(--margem); }
  .mapa-rotulo { translate: 12px -50%; padding: 4px 9px; font-size: .6875rem; }
  .continentes.tem-selecao .continente:not(.is-selecionado) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .curitiba-pulso, .particula { display: none; } }

/* ---------- Inscrição: ingresso (corpo de vidro + canhoto com picote) e crachá em 3D ---------- */
.final-grade { display: grid; justify-items: center; }
.ingresso { position: relative; isolation: isolate; display: grid; width: min(100%, 880px); }
.ingresso::before { /* sombra do ingresso (o recorte do picote cortaria uma box-shadow) */
  content: ""; position: absolute; inset: 30px 24px -24px; z-index: -1; border-radius: 40px;
  background: rgb(0 0 0 / .6); filter: blur(40px);
}
/* picote: meio-círculos recortados nas duas pontas da linha de corte (celular: horizontal; computador: vertical) */
.ingresso-corpo, .ingresso-canhoto {
  --r: 18px;
  -webkit-mask: radial-gradient(circle var(--r) at var(--n1), #0000 96%, #000 100%), radial-gradient(circle var(--r) at var(--n2), #0000 96%, #000 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.ingresso-corpo { --n1: 0 100%; --n2: 100% 100%; overflow: clip; border-radius: 30px 30px 0 0; padding: 0 clamp(22px, 3vw, 40px) clamp(26px, 3vw, 40px); box-shadow: var(--brilho-topo); }
.ingresso-corpo .tricolor { height: 8px; margin: 0 calc(-1 * clamp(22px, 3vw, 40px)) clamp(22px, 3vw, 32px); }
.ingresso-topo { display: flex; align-items: center; gap: 16px; }
.ingresso-evento { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta); }
.ingresso-titulo { margin-top: 2px; font: 800 clamp(1.5rem, 2.6vw, 2.1rem)/1.1 var(--fonte-display); font-stretch: 112%; letter-spacing: -.015em; }
.ingresso-sub { margin: clamp(24px, 3vw, 32px) 0 14px; font-weight: 700; font-size: 1.0625rem; }
.inclui { display: grid; gap: 4px; }
.inclui li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid rgb(255 255 255 / .1); line-height: 1.4; }
.inclui li:first-child { border-top: 0; }
.ingresso-canhoto {
  --n1: 0 0; --n2: 100% 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  padding: clamp(26px, 3vw, 40px) clamp(22px, 3vw, 36px); border-radius: 0 0 30px 30px;
  border-top: 2px dashed rgb(255 255 255 / .45);
  background: radial-gradient(90% 60% at 100% 0%, rgb(63 169 245 / .45), transparent 70%), linear-gradient(160deg, color-mix(in srgb, var(--verde) 55%, var(--navy-700)), color-mix(in srgb, var(--azul) 40%, var(--navy-700)));
  box-shadow: inset 0 -1px 0 rgb(255 255 255 / .15);
}
.ingresso-data { font: 800 clamp(1.6rem, 3vw, 2rem)/1 var(--fonte-display); font-stretch: 125%; letter-spacing: -.01em; text-transform: uppercase; }
.ingresso-local { font-weight: 600; }
/* preço: hoje valor único (.preco); para lotes, 1 a 3 cartões .lote (modelo comentado no HTML) */
.lotes { display: grid; gap: 10px; width: 100%; margin-block: 8px 6px; }
.preco, .lote { padding: 14px 16px; border-radius: 18px; background: rgb(5 15 46 / .4); border: 1px solid rgb(255 255 255 / .2); }
.preco { display: grid; gap: 4px; padding-block: 16px 14px; }
.preco strong { white-space: nowrap; font: 800 clamp(2.4rem, 4vw, 2.75rem)/1 var(--fonte-display); font-stretch: 125%; letter-spacing: -.03em; text-shadow: 0 4px 24px rgb(5 15 46 / .5); }
.preco span { font-size: .875rem; font-weight: 600; }
.lote-nome { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.lote-valor { font: 800 1.75rem/1.1 var(--fonte-display); font-stretch: 112%; }
.lote-prazo { font-size: .875rem; }
.ingresso-canhoto .btn { margin-top: 6px; }
.final-nota { font-size: .875rem; }
@media (min-width: 900px) {
  .ingresso { grid-template-columns: minmax(0, 1fr) 320px; }
  .ingresso-corpo { --n1: 100% 0; --n2: 100% 100%; border-radius: 30px 0 0 30px; }
  .ingresso-canhoto { --n1: 0 0; --n2: 0 100%; justify-content: center; border-top: 0; border-left: 2px dashed rgb(255 255 255 / .45); border-radius: 0 30px 30px 0; }
}
/* faixa nas três cores dos dias (ingresso) */
.tricolor { display: grid; grid-template-columns: repeat(3, 1fr); height: 12px; }
.tricolor i:nth-child(1) { background: var(--verde); }
.tricolor i:nth-child(2) { background: var(--azul); }
.tricolor i:nth-child(3) { background: var(--ouro); }
