:root {
  --bg: #170b28;
  --bg2: #241140;
  --ink: #f3ead7;
  --mute: #b9a9d6;
  --or: #ff7a1a;
  --pu: #8a4dff;
  --ac: #c6ff3d;
  --red: #ff3d5a;
  --line: #000;
  --shadow: 4px 4px 0 #000;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  background-image: radial-gradient(rgba(255,122,26,.10) 1.2px, transparent 1.3px), radial-gradient(circle at 50% -20%, #3b1a6b 0, transparent 60%);
  background-size: 9px 9px, 100% 100%;
  color: var(--ink);
  font-family: Archivo, system-ui, sans-serif;
  font-size: 15px;
}
h1, h2, h3, .poster { font-family: Bungee, Impact, sans-serif; font-weight: 400; letter-spacing: .5px; margin: 0; }
button { font: inherit; cursor: pointer; }
.hidden { display: none !important; }
#app { max-width: 1280px; margin: 0 auto; padding: 18px; }

/* ---------- peças ---------- */
.card {
  background: var(--bg2);
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 6px;
  padding: 12px;
  position: relative;
}
.btn {
  background: var(--or); color: #1a0d00; border: 3px solid #000; box-shadow: var(--shadow);
  padding: 10px 18px; border-radius: 6px; font-family: Bungee, sans-serif; font-size: 15px;
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #000; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--mute); box-shadow: none; }
.btn.small { padding: 4px 10px; font-size: 12px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 99px; border: 2px solid #000; font-size: 12px; font-weight: 800; background: var(--pu); color: #fff; }
.tag.or { background: var(--or); color: #1a0d00; }
.tag.ac { background: var(--ac); color: #142000; }
.tag.red { background: var(--red); }
.mute { color: var(--mute); }
.small { font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- escolha de líder ---------- */
.titulo { text-align: center; margin: 10px 0 24px; }
.titulo h1 { font-size: 56px; color: var(--or); text-shadow: 4px 4px 0 #000, 7px 7px 0 var(--pu); line-height: 1; }
.titulo p { color: var(--mute); margin: 8px 0 0; }
.lideres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lider { cursor: pointer; transition: transform .12s; display: flex; flex-direction: column; gap: 8px; }
.lider:hover { transform: rotate(-1deg) translateY(-4px); }
.lider.sel { outline: 4px solid var(--or); }
.retrato {
  aspect-ratio: 1; border: 3px solid #000; border-radius: 4px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, var(--pu) 0, #2a0f52 70%);
  font-size: 92px; position: relative;
}
.retrato img { width: 100%; height: 100%; object-fit: cover; display: block; }
.retrato .ph { filter: drop-shadow(4px 4px 0 #000); }
.retrato .ph-tag { position: absolute; bottom: 6px; right: 6px; font-size: 10px; }
.lider h2 { font-size: 26px; color: var(--or); }
.lider .frase { font-style: italic; color: var(--mute); }
.lider ul { margin: 0; padding-left: 18px; font-size: 13px; }

/* ---------- tela da turnê ---------- */
.topo { display: flex; gap: 14px; align-items: stretch; margin-bottom: 14px; flex-wrap: wrap; }
.topo .card { padding: 8px 12px; }
.semana h3 { font-size: 22px; color: var(--or); }
.cal { display: flex; gap: 6px; }
.dia { width: 64px; text-align: center; padding: 6px 2px; border: 2px solid #000; border-radius: 4px; background: #1c0d33; font-size: 11px; color: var(--mute); }
.dia b { display: block; font-family: Bungee; font-size: 12px; color: var(--ink); }
.dia.hoje { background: var(--or); color: #1a0d00; transform: translateY(-3px); box-shadow: 3px 3px 0 #000; }
.dia.hoje b { color: #1a0d00; }
.dia.passou { opacity: .45; }
.placar { font-family: Bungee; font-size: 20px; }
.placar .v { color: var(--ac); } .placar .d { color: var(--red); }
.stat { font-family: Bungee; font-size: 20px; }
.fama-bar { display: flex; gap: 3px; margin-top: 4px; }
.fama-bar i { width: 16px; height: 10px; border: 2px solid #000; background: #2d1650; }
.fama-bar i.on { background: var(--ac); }
.fama-bar i.tit { border-color: var(--or); }

.layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; }
.col { display: flex; flex-direction: column; gap: 14px; }
.sec-t { font-family: Bungee; font-size: 14px; color: var(--or); margin-bottom: 6px; }
.lider-mini { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.lider-mini .retrato { font-size: 48px; }
.titulo-tag { font-family: Bungee; font-size: 12px; color: var(--ac); }
.pas { font-size: 12px; padding: 4px 6px; border-left: 3px solid var(--pu); margin-top: 4px; background: #1c0d33; }
.pas.lenda { border-color: var(--or); }
.pas.rara { border-color: var(--ac); }
.pas.maldicao { border-color: var(--red); }
.membro { display: flex; gap: 8px; align-items: center; padding: 6px; background: #1c0d33; border: 2px solid #000; border-radius: 4px; margin-top: 6px; font-size: 13px; }
.membro .ic { font-size: 26px; }
.rel { font-size: 12px; margin-top: 4px; }
.rel.bom { color: var(--ac); } .rel.mau { color: var(--red); }
.equip-slots { display: flex; gap: 6px; flex-wrap: wrap; }
.slot-eq { width: 56px; height: 56px; border: 2px dashed var(--mute); border-radius: 6px; display: grid; place-items: center; font-size: 26px; background: #1c0d33; }
.slot-eq.cheio { border: 2px solid #000; background: var(--bg2); }

/* hoje */
.hoje-box { display: grid; grid-template-columns: 1fr 220px; gap: 14px; }
.hoje-box h2 { font-size: 26px; }
.ofertas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.oferta { cursor: pointer; display: flex; flex-direction: column; gap: 6px; min-height: 130px; transition: transform .1s; }
.oferta:hover { transform: translateY(-3px) rotate(.5deg); }
.oferta .ic { font-size: 34px; }
.oferta h3 { font-size: 16px; color: var(--or); }
.oferta.off { opacity: .4; pointer-events: none; }
.plateia {
  background: linear-gradient(160deg, var(--or), #ff3d8b); color: #1a0d00; text-align: center;
  border: 3px solid #000; box-shadow: var(--shadow); border-radius: 6px; padding: 12px; transform: rotate(1.5deg);
}
.plateia .ic { font-size: 48px; }
.plateia h3 { font-size: 17px; }
.plateia .sab { font-family: Bungee; font-size: 11px; letter-spacing: 2px; }

/* setlist */
.setlist-wrap { margin-top: 14px; }
.setlist { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-top: 8px; position: relative; }
.pos { min-height: 92px; border: 2px dashed #5b3e8a; border-radius: 6px; padding: 4px; font-size: 11px; color: var(--mute); position: relative; }
.pos .n { font-family: Bungee; font-size: 12px; }
.pos.bis { border-color: var(--or); }
.pos.bis .n::after { content: " BIS"; color: var(--or); }
.musica {
  background: var(--ink); color: #1a0d00; border: 3px solid #000; border-radius: 6px; box-shadow: 3px 3px 0 #000;
  padding: 6px 7px; font-size: 12px; display: flex; flex-direction: column; gap: 3px; position: relative; min-height: 92px;
}
.musica b { font-family: Bungee; font-size: 12px; font-weight: 400; }
.musica .i { position: absolute; top: 4px; right: 6px; font-size: 16px; }
.musica .tx { font-size: 11px; line-height: 1.2; }
.musica.live { background: var(--ac); }
.musica.bloq { opacity: .45; }
.musica .ctl { display: flex; gap: 3px; margin-top: auto; }
.musica .ctl button { border: 2px solid #000; background: #fff; border-radius: 4px; font-size: 11px; padding: 0 6px; }
.colecao { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; margin-top: 8px; }
.colecao .musica { cursor: pointer; min-height: 84px; }
.colecao .musica.no-set { outline: 3px solid var(--or); outline-offset: -6px; }
.estimativa { font-family: Bungee; color: var(--ac); }

/* modal */
#modal { position: fixed; inset: 0; background: rgba(10, 4, 20, .82); display: grid; place-items: center; z-index: 20; padding: 20px; }
.modal-box { max-width: 880px; width: 100%; }
.modal-box h2 { font-size: 30px; color: var(--or); text-align: center; margin-bottom: 6px; }
.modal-box p.sub { text-align: center; color: var(--mute); margin: 0 0 14px; }
.modal-ops { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }

/* palco (show) */
#palco { position: fixed; inset: 0; z-index: 30; background: #0d0518; overflow: auto; }
.palco-in { max-width: 1180px; margin: 0 auto; padding: 18px; }
.palco-in::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: conic-gradient(from 200deg at 50% -10%, transparent 0 20deg, rgba(255,122,26,.13) 20deg 34deg, transparent 34deg 60deg, rgba(138,77,255,.14) 60deg 76deg, transparent 76deg); }
.banda-linha { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center; margin: 10px 0; }
.banda-id { text-align: center; }
.banda-id .retrato { width: 110px; margin: 0 auto 4px; font-size: 56px; }
.banda-id h3 { font-size: 16px; }
.show-sl { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.show-sl .musica { min-height: 70px; transition: transform .2s, box-shadow .2s; }
.show-sl .musica.tocando { transform: translateY(-8px) scale(1.05); box-shadow: 0 0 0 4px var(--or), 6px 6px 0 #000; }
.show-sl .musica.calada { background: #6e6380; text-decoration: line-through; }
.show-sl .musica.desaf { background: #ffb3be; }
.pop { position: absolute; left: 50%; top: -6px; transform: translate(-50%, -100%); font-family: Bungee; font-size: 22px; color: var(--ac); text-shadow: 2px 2px 0 #000; animation: subir 1s ease-out forwards; pointer-events: none; white-space: nowrap; }
.pop.zero { color: var(--red); font-size: 15px; }
@keyframes subir { from { opacity: 0; transform: translate(-50%, -60%); } 20% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -190%); } }
.barra-wrap { margin: 18px 0; }
.barra { height: 46px; border: 3px solid #000; border-radius: 99px; position: relative; overflow: hidden; background: linear-gradient(90deg, var(--red) 0 50%, var(--pu) 50% 100%); box-shadow: var(--shadow); }
.barra .meio { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: #000; }
.barra .marcador { position: absolute; top: 50%; width: 54px; height: 54px; transform: translate(-50%, -50%); font-size: 36px; display: grid; place-items: center; transition: left .5s cubic-bezier(.3,1.6,.5,1); filter: drop-shadow(2px 2px 0 #000); }
.barra-leg { display: flex; justify-content: space-between; font-family: Bungee; font-size: 13px; margin-top: 4px; }
.log { height: 150px; overflow: auto; background: #170b28; border: 3px solid #000; border-radius: 6px; padding: 8px 10px; font-size: 13px; }
.log div { padding: 2px 0; border-bottom: 1px solid #2b1747; }
.log .eu { color: var(--ac); } .log .ele { color: #ff9bab; }
.carimbo { font-family: Bungee; font-size: 72px; text-align: center; margin: 10px 0; transform: rotate(-4deg); text-shadow: 5px 5px 0 #000; animation: carimbar .35s cubic-bezier(.2,1.8,.4,1); }
.carimbo.win { color: var(--ac); } .carimbo.lose { color: var(--red); }
@keyframes carimbar { from { transform: scale(2.4) rotate(-12deg); opacity: 0; } to { transform: scale(1) rotate(-4deg); opacity: 1; } }
.palco-ctl { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }

@media (max-width: 980px) {
  .lideres { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .hoje-box { grid-template-columns: 1fr; }
  .setlist, .show-sl { grid-template-columns: repeat(4, 1fr); }
}
