:root { --ouro: #f5c542; --ouro2: #ffdf7e; --sombra: 0 6px 18px rgba(0,0,0,.45); --fonte: "Baloo 2", "Nunito", "Trebuchet MS", system-ui, sans-serif; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #140b25; color: #fff8e7; font-family: var(--fonte); touch-action: manipulation; }
button { font-family: inherit; cursor: pointer; border: 0; }
img { user-select: none; -webkit-user-drag: none; }
.tela { position: fixed; inset: 0; display: none; }
.tela.ativa { display: flex; }
.fundo-palco { background: #140b25 url(../assets/img/palco.jpg) center/cover; }
.fundo-palco::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(20,11,37,.1), rgba(20,11,37,.75)); pointer-events: none; transition: background .3s; }
.bt { background: linear-gradient(#ffe27a, #f2b420); color: #3a1d00; font-weight: 800; font-size: 1.05rem; padding: .65em 1.2em; border-radius: 999px; box-shadow: 0 4px 0 #b37a00, var(--sombra); transition: transform .12s; }
.bt:hover { transform: translateY(-2px); } .bt:active { transform: translateY(2px); }
.bt.sec { background: linear-gradient(#7d5bd1, #553199); color: #fff; box-shadow: 0 4px 0 #2c1561, var(--sombra); }
.bt.verm { background: linear-gradient(#ff8a7e, #dc3a2f); color: #fff; box-shadow: 0 4px 0 #8a1b14, var(--sombra); }
.bt:disabled { filter: grayscale(.8) brightness(.7); cursor: default; transform: none; }
.bt.peq { font-size: .85rem; padding: .45em .9em; }
.icone-bt { background: rgba(255,255,255,.12); color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 1.2rem; display: grid; place-items: center; }
#tela-abertura { background: #000 url(../assets/img/capa.jpg) center/cover; align-items: flex-end; justify-content: center; padding-bottom: 7vh; }
#tela-abertura .bt { font-size: 1.4rem; animation: pulsa 1.4s ease-in-out infinite; }
@keyframes pulsa { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.titulo-jogo { position: relative; text-align: center; font-size: clamp(2.2rem, 7vw, 4.6rem); font-weight: 900; color: var(--ouro2); line-height: .95; text-shadow: 0 4px 0 #7a3b00, 0 8px 24px #000; transform: rotate(-2deg); }
.titulo-jogo small { display: block; font-size: .42em; color: #fff; text-shadow: 0 3px 0 #3d2366, 0 6px 16px #000; }
#tela-menu { flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
.banda-menu { position: relative; display: flex; gap: 6px; height: 16vh; align-items: flex-end; }
.banda-menu img { height: 100%; filter: drop-shadow(0 6px 6px #000a); animation: balanca 1s ease-in-out infinite alternate; }
@keyframes balanca { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-8px) rotate(3deg); } }
.menu-grade { position: relative; display: grid; grid-template-columns: repeat(3, minmax(200px, 260px)); gap: 12px; }
.menu-item { background: linear-gradient(160deg, rgba(61,35,102,.94), rgba(30,15,55,.94)); border: 2px solid rgba(245,197,66,.55); border-radius: 16px; padding: 12px 14px; text-align: left; color: #fff; box-shadow: var(--sombra); display: flex; gap: 10px; align-items: center; transition: transform .15s; }
.menu-item:hover { transform: translateY(-3px) rotate(-.5deg); border-color: var(--ouro); }
.menu-item .ic { font-size: 2rem; } .menu-item b { display: block; font-size: 1.1rem; color: var(--ouro2); } .menu-item span { font-size: .8rem; opacity: .85; }
#tela-turne { flex-direction: column; align-items: center; padding: 14px; overflow-y: auto; }
.topo { position: relative; width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.topo h2 { margin: 0; font-size: 1.6rem; color: var(--ouro2); text-shadow: 0 3px 0 #000; }
.shows { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; width: min(1150px, 100%); }
.show { display: flex; gap: 12px; align-items: center; text-align: left; background: linear-gradient(160deg, rgba(61,35,102,.95), rgba(25,12,48,.95)); border: 2px solid rgba(245,197,66,.5); border-radius: 16px; padding: 10px; color: #fff; box-shadow: var(--sombra); transition: transform .15s; }
.show:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--ouro); }
.show:disabled { filter: grayscale(.9) brightness(.55); cursor: default; }
.show img { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; flex: none; }
.show b { display: block; color: var(--ouro2); font-size: 1.05rem; } .show span { display: block; font-size: .82rem; opacity: .9; }
.estr { color: var(--ouro); letter-spacing: 2px; } .estr i { color: rgba(255,255,255,.25); font-style: normal; }

#tela-jogo { flex-direction: column; }
.barra { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: linear-gradient(rgba(20,11,37,.95), rgba(20,11,37,.4)); }
.barra h2 { margin: 0; font-size: 1.15rem; color: var(--ouro2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contador { background: rgba(255,255,255,.12); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 1rem; white-space: nowrap; } .contador b { color: var(--ouro2); font-size: 1.15rem; }
.lugar-mini { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; }
.palco { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 0; padding: 8px; }
.tabuleiro { position: relative; width: min(84vh, 94vw); aspect-ratio: 1; }
.disco { width: 100%; height: 100%; filter: drop-shadow(0 14px 22px rgba(0,0,0,.6)); transition: transform .85s cubic-bezier(.5,0,.3,1); }
.disco.gira { transform: rotate(360deg) scale(.92); }
.setor { cursor: pointer; transition: fill .08s; stroke: rgba(0,0,0,.35); stroke-width: 1; }
.setor.aceso { filter: url(#brilho); }
.musico { position: absolute; width: 21%; height: 21%; transform: translate(-50%, -55%); pointer-events: none; display: flex; flex-direction: column; align-items: center; transition: opacity .3s, transform .3s; }
.musico img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0,0,0,.55)); transition: transform .12s; }
.musico span { font-size: clamp(.55rem, 1.4vh, .8rem); font-weight: 800; background: rgba(0,0,0,.45); padding: 0 6px; border-radius: 999px; margin-top: -4px; }
.musico.toca img { transform: scale(1.18) translateY(-6%); }
.musico.some { opacity: 0; transform: translate(-50%, -55%) scale(.4) rotate(180deg); }
.escuro .setor { fill: #2b2b35 !important; } .escuro .musico { opacity: .25; }
.escuro .fundo-palco::before, .tela.escuro::before { background: rgba(0,0,0,.82); }
.centro { position: absolute; left: 50%; top: 50%; width: 30%; height: 30%; transform: translate(-50%, -50%); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; text-align: center; }
.c-txt { font-size: clamp(1.4rem, 5vh, 2.6rem); font-weight: 900; color: var(--ouro2); line-height: 1; }
.c-sub { font-size: clamp(.65rem, 1.8vh, .95rem); font-weight: 700; }
.anel { position: absolute; inset: 4%; border-radius: 50%; background: conic-gradient(rgba(255,107,107,.55) calc(var(--f, 0) * 360deg), transparent 0); -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%); mask: radial-gradient(circle, transparent 62%, #000 63%); }
.tremor { animation: tremor .45s; } @keyframes tremor { 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
.livre-bts { position: relative; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

#host { position: fixed; left: 10px; bottom: 10px; z-index: 30; display: flex; align-items: flex-end; gap: 8px; pointer-events: none; max-width: min(520px, 80vw); }
#host .av { width: 64px; height: 64px; border-radius: 50%; border: 4px solid var(--ouro); background: #f7b45a; object-fit: cover; box-shadow: var(--sombra); flex: none; }
#host.falando .av { animation: fala .35s ease-in-out infinite alternate; } @keyframes fala { from { transform: rotate(-4deg); } to { transform: translateY(-5px) rotate(4deg); } }
#host .balao { background: #fff8e7; color: #2a1747; border-radius: 18px 18px 18px 4px; padding: 10px 14px; font-weight: 700; box-shadow: var(--sombra); opacity: 0; transform: translateY(10px) scale(.9); transition: .25s; }
#host.visivel .balao { opacity: 1; transform: none; }
#fx { position: fixed; inset: 0; z-index: 27; pointer-events: none; }
#modal { position: fixed; inset: 0; z-index: 40; display: none; align-items: center; justify-content: center; background: rgba(10,4,20,.72); backdrop-filter: blur(3px); padding: 14px; }
#modal.on { display: flex; }
.janela { background: linear-gradient(160deg, #3d2366, #1c0e36); border: 3px solid var(--ouro); border-radius: 22px; padding: 18px 20px; width: min(560px, 100%); max-height: 94vh; overflow-y: auto; box-shadow: 0 20px 60px #000c; text-align: center; animation: entra .4s cubic-bezier(.2,1.5,.4,1); }
@keyframes entra { from { transform: scale(.6) translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.janela h2 { margin: 0 0 6px; color: var(--ouro2); font-size: 1.6rem; }
.banda-fim { display: flex; justify-content: center; gap: 4px; height: 140px; align-items: flex-end; margin: 6px 0; }
.banda-fim img { height: 100%; max-width: 16%; object-fit: contain; filter: drop-shadow(0 6px 6px #000a); animation: balanca .6s ease-in-out infinite alternate; }
.estrelas-grandes { font-size: 2.8rem; letter-spacing: 6px; height: 1.3em; }
.estrelas-grandes span { display: inline-block; color: rgba(255,255,255,.2); }
.estrelas-grandes span.ganha { color: var(--ouro); animation: estrela .6s cubic-bezier(.2,1.8,.4,1); text-shadow: 0 0 18px var(--ouro); }
@keyframes estrela { from { transform: scale(3) rotate(90deg); opacity: 0; } to { transform: none; opacity: 1; } }
.linha-bts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.opcoes { display: grid; gap: 10px; text-align: left; } .opcoes label { display: block; font-weight: 700; margin-bottom: 4px; color: var(--ouro2); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; } .seg button { background: rgba(255,255,255,.1); color: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 700; } .seg button.on { background: var(--ouro); color: #3a1d00; }
.texto-ajuda { text-align: left; line-height: 1.45; } .texto-ajuda li { margin-bottom: 4px; }
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .menu-grade { grid-template-columns: 1fr 1fr; width: 94vw; } .menu-item span { display: none; }
  .tabuleiro { width: min(94vw, 70vh); }
  #host { top: 54px; bottom: auto; } #host .av { width: 46px; height: 46px; border-width: 3px; } #host .balao { font-size: .85rem; padding: 7px 10px; }
  .barra h2 { font-size: .95rem; }
}
@media (max-height: 520px) { .banda-menu { display: none; } .tabuleiro { width: min(78vh, 94vw); } .barra { padding: 4px 10px; } #host .av { width: 44px; height: 44px; } .menu-grade { grid-template-columns: repeat(3, 1fr); width: 96vw; } .menu-item { padding: 8px; } }
.palco.livre .tabuleiro { width: min(72vh, 94vw); }
