/* ===== Urna gigante da praia: painel de votação (tela clara como a da urna de verdade + teclado) e placar ===== */
#urna-panel { position: fixed; right: 16px; bottom: calc(13.5em + 28px); z-index: 30; display: grid; grid-template-columns: 1fr 168px; gap: 10px;
  width: min(520px, calc(100vw - 32px)); padding: 10px; border-radius: 10px; background: #d9d3c2; box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 -3px 0 rgba(0,0,0,.12);
  font-family: Arial, Helvetica, sans-serif; color: #111; user-select: none; -webkit-user-select: none; }
#urna-panel.hidden { display: none; }
#urna-panel .u-screen { display: flex; flex-direction: column; min-height: 190px; padding: 10px 12px 8px; border-radius: 4px; background: #efefe9; box-shadow: inset 0 0 0 3px #2a2d33; }
#urna-panel .u-main { flex: 1; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
#urna-panel .u-head { font-size: 12px; letter-spacing: .02em; }
#urna-panel .u-head b { display: block; margin: 2px 0 8px; font-size: 20px; }
#urna-panel .u-row { margin: 3px 0; font-size: 14px; }
#urna-panel .u-row b { font-size: 16px; }
#urna-panel .u-num { display: inline-flex; gap: 4px; vertical-align: middle; margin-left: 4px; }
#urna-panel .u-num i { width: 26px; height: 34px; display: grid; place-items: center; border: 2px solid #333; font: 700 26px/1 Arial, Helvetica, sans-serif; font-style: normal; background: #fff; }
#urna-panel .u-tip { margin-top: 8px; font-size: 13px; color: #444; }
#urna-panel .u-big { margin: 10px 0 4px; font-size: 20px; font-weight: 700; }
#urna-panel .u-photo { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: #444; }
#urna-panel .u-photo img, #urna-panel .u-nophoto { display: block; width: 84px; height: 105px; object-fit: cover; border: 2px solid #555; background: #d4d4cc; }
#urna-panel .u-fim { flex: 1; display: grid; place-items: center; font: 700 64px/1 Arial, Helvetica, sans-serif; letter-spacing: .04em; }
#urna-panel .u-fim.small { font-size: 34px; }
#urna-panel .u-sub { text-align: center; font-size: 13px; color: #444; margin-bottom: 6px; }
#urna-panel .u-foot { margin-top: 6px; padding-top: 5px; border-top: 1px solid #b9b9b0; font-size: 11px; color: #333; }
#urna-panel .u-foot .g { color: #11743c; } #urna-panel .u-foot .o { color: #b85a08; }
#urna-panel .u-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 8px; border-radius: 4px; background: #17191d; align-content: start; }
#urna-panel .u-pad button { height: 34px; border: 0; border-radius: 4px; background: #2d3036; color: #f2f2f2; font: 700 18px/1 Arial, Helvetica, sans-serif; cursor: pointer; touch-action: manipulation; }
#urna-panel .u-pad button:active { transform: translateY(1px); filter: brightness(1.2); }
#urna-panel .u-pad button[data-k="0"] { grid-column: 2; }
#urna-panel .u-pad .u-b, #urna-panel .u-pad .u-c, #urna-panel .u-pad .u-ok { height: 30px; font-size: 10px; color: #111; letter-spacing: .02em; }
#urna-panel .u-pad .u-b { grid-row: 5; grid-column: 1; background: #f4f4f0; } #urna-panel .u-pad .u-c { grid-row: 5; grid-column: 2 / -1; background: #f08a24; }
#urna-panel .u-pad .u-ok { grid-row: 6; grid-column: 1 / -1; height: 38px; font-size: 13px; background: #1f9d55; }
/* placar de votos encaixado embaixo do placar do topo (dentro do #hud), como uma aba do relógio da partida */
#urna-chip { position: absolute; top: 3.35em; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: .7em; padding: .16em .8em .22em; border-radius: 0 0 .25em .25em;
  background: rgba(9, 11, 15, .97); font-family: var(--hud, 'Barlow Condensed', system-ui, sans-serif); font-weight: 700; color: #fff; pointer-events: none; white-space: nowrap; }
#urna-chip.hidden { display: none; }
#urna-chip span { display: inline-flex; align-items: baseline; gap: .35em; font-size: .9em; }
#urna-chip span b { padding: 0 .35em; border-radius: .2em; background: var(--c); }
#urna-chip small { font-size: .8em; color: rgba(255,255,255,.7); }
#urna-chip i { font-style: normal; font-size: .68em; letter-spacing: .14em; color: rgba(255,255,255,.55); }
html body.touch #urna-chip { top: 2.82em; } /* placar mais fino no toque */
@media (max-width: 900px), (max-height: 520px) {
  #urna-panel { right: 10px; bottom: auto; top: 50%; transform: translateY(-50%); grid-template-columns: 1fr 150px; width: min(440px, calc(100vw - 20px)); }
  #urna-panel .u-screen { min-height: 160px; }
  #urna-panel .u-pad button { height: 30px; }
}
/* celular/tablet: faixa entre o joystick e os botões de ação (coco e habilidades continuam livres enquanto vota).
   Tela em cima; teclado embaixo numa fileira só (teclas de 44 px de altura) + BRANCO · CORRIGE · CONFIRMA. */
html body.touch #urna-panel { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); right: calc(env(safe-area-inset-right, 0px) + 272px); left: calc(env(safe-area-inset-left, 0px) + 12px);
  width: auto; max-width: 420px; margin-left: auto; transform: none; grid-template-columns: 1fr; gap: 6px; padding: 8px; }
html body.touch #urna-panel .u-screen { min-height: 0; padding: 7px 10px 6px; }
html body.touch #urna-panel .u-main { gap: 8px; }
html body.touch #urna-panel .u-head { font-size: 11px; }
html body.touch #urna-panel .u-head b { margin: 1px 0 4px; font-size: 17px; }
html body.touch #urna-panel .u-row { margin: 2px 0; font-size: 13px; }
html body.touch #urna-panel .u-row b { font-size: 14px; }
html body.touch #urna-panel .u-num i { width: 22px; height: 28px; font-size: 21px; }
html body.touch #urna-panel .u-tip { margin-top: 4px; font-size: 13px; }
html body.touch #urna-panel .u-big { margin: 6px 0 2px; font-size: 17px; }
html body.touch #urna-panel .u-photo img, html body.touch #urna-panel .u-nophoto { width: 58px; height: 72px; }
html body.touch #urna-panel .u-fim { min-height: 78px; font-size: 46px; }
html body.touch #urna-panel .u-fim.small { font-size: 28px; }
html body.touch #urna-panel .u-foot { display: none; }
html body.touch #urna-panel .u-pad { grid-template-columns: repeat(10, 1fr); gap: 4px; padding: 6px; }
html body.touch #urna-panel .u-pad button { height: 44px; min-width: 0; padding: 0; font-size: 19px; }
html body.touch #urna-panel .u-pad button[data-k="0"] { grid-column: auto; }
html body.touch #urna-panel .u-pad .u-b, html body.touch #urna-panel .u-pad .u-c, html body.touch #urna-panel .u-pad .u-ok { grid-row: 2; height: 44px; font-size: 13px; }
html body.touch #urna-panel .u-pad .u-b { grid-column: 1 / 4; } html body.touch #urna-panel .u-pad .u-c { grid-column: 4 / 7; } html body.touch #urna-panel .u-pad .u-ok { grid-column: 7 / -1; font-size: 15px; }
@media (max-height: 380px) { html body.touch #urna-panel .u-pad button, html body.touch #urna-panel .u-pad .u-ok { height: 40px; } }
