* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}
body {
    background-color: #0b0c10;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
}
#game-container {
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.9);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #1f2833;
}
canvas {
    display: block;
    background: radial-gradient(circle at center, #1f2430 0%, #0b0c10 100%);
}
.ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}
.scoreboard {
    display: flex;
    justify-content: space-between;
    font-size: 60px;
    font-weight: 900;
    text-shadow: 0 4px 12px rgba(0,0,0,0.8);
}
.p1-score { color: #ff4757; }
.p2-score { color: #1e90ff; }

.combo-banner {
    position: absolute;
    top: 170px;
    width: 100%;
    text-align: center;
    font-size: 44px;
    font-weight: 900;
    font-style: italic;
    color: #ffd32a;
    text-shadow: 0 0 10px rgba(255, 211, 42, 0.6);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: scale(0.8);
}
.combo-active {
    opacity: 1;
    transform: scale(1.2);
}

.timer-display {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 68px;
    font-weight: 900;
    color: #45f3df;
    text-shadow: 0 0 12px rgba(69, 243, 223, 0.7);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 12, 16, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    pointer-events: auto;
}
.overlay h1 {
    font-size: 46px;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #ff4757, #1e90ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    letter-spacing: 2px;
}
.overlay p {
    font-size: 16px;
    color: #c5c6c7;
    margin-bottom: 25px;
    text-align: center;
}
.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}
.btn {
    background: #45f3df;
    color: #0b0c10;
    border: none;
    padding: 14px 32px;
    font-size: 18px;
    font-weight: 900;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(69, 243, 223, 0.4);
}
.btn-p2 {
    background: #ff4757;
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.4);
}
.btn:hover {
    transform: scale(1.08);
}
.hidden { display: none !important; }

.controls-hint {
    position: absolute;
    bottom: 14px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 28px;
    pointer-events: none;
}

body { height: 100dvh; }
#game-container { transform-origin: center center; flex-shrink: 0; }

.pips { font-size: 36px; letter-spacing: 5px; vertical-align: middle; margin: 0 12px; opacity: 0.85; }
.hearts { letter-spacing: 6px; vertical-align: middle; }
.p2-score { display: flex; flex-direction: row-reverse; align-items: center; }
.p1-score { display: flex; align-items: center; }
.round-label {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.65);
}
.combo-banner.big {
    top: 230px;
    font-size: 150px;
    font-style: normal;
}

/* --- CONTROLES DE TOQUE --- */
.touch {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 14px 14px;
    pointer-events: none;
    z-index: 10;
}
.touch .pad { display: flex; gap: 10px; pointer-events: auto; }
.tbtn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 2px solid var(--pc, #fff);
    background: rgba(31, 40, 51, 0.55);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}
.tbtn.on { background: var(--pc); }
.actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dash-btn { width: calc(66px * var(--cs)) !important; height: calc(66px * var(--cs)) !important; font-size: calc(28px * var(--cs)) !important; }
:root { --cs: 1; --cx: 14px; --cy: 14px; --ss: calc(clamp(92px, 21vmin, 135px) * var(--cs)); }
.touch { padding: 0 calc(var(--cx) + env(safe-area-inset-left)) calc(var(--cy) + env(safe-area-inset-bottom)); }
.touch .pad { align-items: flex-end; }
.tbtn { width: calc(48px * var(--cs)); height: calc(48px * var(--cs)); font-size: calc(20px * var(--cs)); }
.stick {
    position: relative;
    width: var(--ss);
    height: var(--ss);
    border-radius: 50%;
    border: 2px solid var(--pc);
    background: rgba(31, 40, 51, 0.5);
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}
.stick::before, .stick::after {
    content: '';
    position: absolute;
    background: rgba(255,255,255,0.12);
}
.stick::before { left: 50%; top: 10%; bottom: 10%; width: 2px; }
.stick::after { top: 50%; left: 10%; right: 10%; height: 2px; }
.stick .knob {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 42%;
    height: 42%;
    margin: -21% 0 0 -21%;
    border-radius: 50%;
    background: var(--pc);
    opacity: 0.9;
    box-shadow: 0 0 14px var(--pc);
}
.touch-device .controls-hint { display: none; }

/* --- SETTINGS --- */
.gear-btn {
    position: absolute;
    top: 124px;
    right: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #45f3df;
    background: rgba(31, 40, 51, 0.8);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 20;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}
/* Com o menu aberto a engrenagem sobe para o canto, longe das colunas */
#screenMenu:not(.hidden) ~ .gear-btn { top: 16px; right: 16px; width: 52px; height: 52px; font-size: 26px; }
.gear-btn:hover { background: #1f2833; }
.settings { z-index: 30; background: rgba(11, 12, 16, 0.94); }
.settings h2 { font-size: 26px; margin-bottom: 14px; letter-spacing: 2px; }
.set-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(420px, 90%);
    padding: 8px 0;
    border-bottom: 1px solid #1f2833;
    font-weight: 700;
    font-size: 15px;
}
.set-row input[type=range] { flex: 1; max-width: 190px; accent-color: #45f3df; }
.toggle {
    min-width: 76px;
    padding: 6px 14px;
    border-radius: 50px;
    border: 2px solid #45f3df;
    background: #45f3df;
    color: #0b0c10;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}
.toggle.off { background: transparent; color: #c5c6c7; border-color: #3b4452; }
.settings.peek { background: transparent; backdrop-filter: none; }
.settings.peek > *:not(.set-row.active) { visibility: hidden; }
.settings.peek .set-row.active { background: rgba(11,12,16,0.9); border-radius: 12px; padding: 10px 14px; }
.preview-wrap { display: flex; justify-content: center; align-items: center; height: 74px; width: min(420px, 90%); overflow: visible; }
.preview-wrap .stick { --pc: #45f3df; --ss: calc(60px * var(--cs)); pointer-events: none; }
.settings .btn-group { margin-top: 16px; }
.settings .btn { padding: 10px 22px; font-size: 15px; }
.btn-danger { background: #ff4757; color: #fff; box-shadow: 0 4px 20px rgba(255, 71, 87, 0.4); }
.btn-ghost { background: #2c3440; color: #fff; box-shadow: none; }

/* --- MENU: ESCOLHA DE PERSONAGEM E ARENA (tela de seleção estilo jogo de luta) ---
   Medidas no tamanho do palco (1120x630): o jogo inteiro escala junto no celular,
   então nenhum texto fica abaixo de ~12px aqui. */
.overlay.menu {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 34px;
    padding: 22px 36px;
    /* Sem backdrop-filter no menu: o blur atrás dos canvases dos bichos borrava um quadrado escuro */
    backdrop-filter: none;
    background:
        radial-gradient(ellipse 34% 60% at 17% 62%, rgba(255, 71, 87, 0.17), transparent 70%),
        radial-gradient(ellipse 34% 60% at 53% 62%, rgba(30, 144, 255, 0.17), transparent 70%),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.022) 0 2px, transparent 2px 16px),
        rgba(11, 12, 16, 0.98);
}
.overlay.settings > * { zoom: 1.4; }
.menu-fighters { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* Logo: itálico inclinado, vermelho do P1 para o azul do P2, com sombra dura embaixo */
.overlay.menu h1 {
    margin: 0;
    font-size: 46px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.05;
    transform: skew(-6deg);
    background: linear-gradient(90deg, #ff4757 0%, #ff7a8a 42%, #6cb4ff 58%, #1e90ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 4px 0 #05060a) drop-shadow(0 0 22px rgba(255, 255, 255, 0.1));
}
/* Faixa de regras em uma linha (no fim da partida mostra o placar) */
.overlay.menu #menuSub {
    margin: 0;
    max-width: none;
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #c5c6c7;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.select-row { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.select-row .vs {
    font-size: 46px;
    font-weight: 900;
    font-style: italic;
    color: #ffd32a;
    transform: skew(-8deg);
    text-shadow: 0 4px 0 #8a6a00, 0 0 18px rgba(255, 211, 42, 0.6);
}

/* Cartão do lutador: o bicho é a estrela, com um brilho da cor do jogador atrás */
.picker {
    position: relative;
    width: 288px;
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    padding: 12px 12px 12px;
    border: 2px solid var(--pc);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(31, 40, 51, 0.35), rgba(16, 19, 26, 0.92) 60%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 10px 24px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 0, 0, 0.35);
}
.picker-tag {
    position: absolute;
    top: -13px;
    left: 14px;
    padding: 2px 12px;
    border-radius: 4px;
    background: var(--pc);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 1px;
    transform: skew(-10deg);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
}
.arrow {
    position: relative;
    z-index: 1;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--pc);
    background: rgba(11, 12, 16, 0.55);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.1s, background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.arrow:hover { background: var(--pc); transform: scale(1.1); }
.arrow:active { transform: scale(0.92); }
.picker-view {
    position: relative;
    height: 170px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
/* Brilho de holofote atrás e sombra no chão */
.picker-view::before {
    content: '';
    position: absolute;
    inset: 6px -30px 0;
    background: radial-gradient(ellipse 50% 55% at 50% 62%, var(--pc), transparent 72%);
    opacity: 0.33;
}
.picker-view::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 120px;
    height: 16px;
    margin-left: -60px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55), transparent 70%);
}
.picker-view.flip { transform: scaleX(-1); }
.picker-view canvas { position: relative; z-index: 1; width: 170px; height: 170px; background: transparent; }
.picker-view canvas.drop { animation: drop-in 0.45s cubic-bezier(0.3, 1.4, 0.5, 1); }
@keyframes drop-in {
    0% { transform: translateY(-110px) scaleY(1.15); opacity: 0; }
    55% { transform: translateY(6px) scale(1.12, 0.82); opacity: 1; }
    100% { transform: none; }
}
.picker-info { grid-column: 1 / -1; }
.picker-name {
    margin: 2px 0 8px;
    text-align: center;
    font-size: 26px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 3px;
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.6);
}
/* Atributos em blocos (5 gomos), como barra de jogo */
.stat {
    display: grid;
    grid-template-columns: 62px 1fr;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #8b98a8;
}
.bar {
    position: relative;
    height: 10px;
    background: rgba(255, 255, 255, 0.07);
    transform: skew(-14deg);
    overflow: hidden;
}
.bar i { display: block; height: 100%; background: var(--pc); box-shadow: 0 0 8px var(--pc); transition: width 0.25s; }
.bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 3px), #12151c calc(20% - 3px) 20%);
}
/* Golpe especial: etiqueta com a borda na cor do jogador */
.dash-skill {
    display: grid;
    gap: 2px;
    margin-top: 10px;
    padding: 6px 10px;
    border-left: 3px solid var(--pc);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.32);
    font-size: 12px;
    text-align: left;
}
.passive-skill { margin-top: 5px; }
.dash-name { color: var(--pc); font-size: 13px; font-weight: 900; letter-spacing: 1px; }
.dash-description { color: #aab3bf; line-height: 1.25; }

/* Coluna da direita: arena, nível do bot e os botões de jogar */
.menu-side { width: 300px; display: flex; flex-direction: column; gap: 18px; margin-top: 64px; }
.side-label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #8b98a8;
}
.stage-row { display: flex; gap: 8px; }
.stage-card {
    flex: 1;
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
    border: 2px solid #2c3440;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: transform 0.12s, border-color 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.stage-card canvas { display: block; width: 100%; height: 100%; background: transparent; filter: saturate(0.55) brightness(0.65); transition: filter 0.15s; }
.stage-card:hover canvas { filter: none; }
.stage-card.sel { border-color: #45f3df; transform: translateY(-3px); box-shadow: 0 0 14px rgba(69, 243, 223, 0.55); }
.stage-card.sel canvas { filter: none; }
.stage-name { margin-top: 8px; text-align: center; font-size: 15px; font-weight: 900; font-style: italic; letter-spacing: 2px; color: #45f3df; }
.level-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    padding: 3px;
    border: 2px solid #2c3440;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.3);
}
.level-btn {
    padding: 7px 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #8b98a8;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.level-btn:hover { color: #fff; }
.level-btn.sel { color: #0b0c10; }
.level-easy.sel { background: #2ed573; }
.level-normal.sel { background: #ffd32a; }
.level-hard.sel { background: #ff4757; color: #fff; box-shadow: 0 0 12px rgba(255, 71, 87, 0.5); }
.level-insane.sel { background: linear-gradient(90deg, #7b1fd6, #c45bff); color: #fff; box-shadow: 0 0 14px rgba(196, 91, 255, 0.7); }

/* Botões de jogar: angulares, com degrau embaixo que afunda ao apertar */
.menu-side .btn-group { flex-direction: column; flex-wrap: nowrap; gap: 14px; margin-top: 2px; }
.btn-play {
    --edge: #18a493;
    position: relative;
    width: 100%;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 11px 18px;
    border-radius: 7px;
    overflow: hidden;
    font-size: 22px;
    font-style: italic;
    letter-spacing: 1px;
    text-align: left;
    transform: skew(-8deg);
    box-shadow: 0 5px 0 var(--edge), 0 10px 20px rgba(0, 0, 0, 0.45);
    transition: transform 0.1s, box-shadow 0.1s, filter 0.15s;
}
.btn-play::before { content: '▶'; font-size: 14px; font-style: normal; }
.btn-play small { white-space: nowrap; margin-left: auto; font-size: 12px; font-weight: 900; letter-spacing: 1.5px; opacity: 0.75; }
.btn-play.btn-p2 { --edge: #b3202f; }
.btn-play:hover { transform: skew(-8deg) translateY(-2px); filter: brightness(1.1); box-shadow: 0 7px 0 var(--edge), 0 12px 22px rgba(0, 0, 0, 0.45); }
.btn-play:active { transform: skew(-8deg) translateY(4px); box-shadow: 0 1px 0 var(--edge), 0 4px 10px rgba(0, 0, 0, 0.45); }
/* Brilho que passa de tempos em tempos no botão principal */
#btn1Player::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 30%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    animation: btn-shine 3.2s ease-in-out infinite;
}
@keyframes btn-shine { 0%, 60% { left: -40%; } 100% { left: 130%; } }

/* --- AVISO DE VIRAR O APARELHO: celular em pé. Mesma condição de js/ui/orientation.js --- */
#rotateNotice {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
    background: radial-gradient(circle at center, #1a1f2b 0%, #0b0c10 75%);
}
#rotateNotice p { font-size: 20px; font-weight: 900; letter-spacing: 1px; color: #ffd32a; }
#rotateNotice span { font-size: 14px; color: #a7adb8; max-width: 300px; }
.rotate-phone {
    width: 42px;
    height: 70px;
    margin-bottom: 12px;
    border: 3px solid #45f3df;
    border-radius: 10px;
    box-shadow: 0 0 18px rgba(69, 243, 223, 0.45);
    animation: rotate-phone 2.2s ease-in-out infinite;
}
@keyframes rotate-phone {
    0%, 20% { transform: rotate(0deg); }
    55%, 100% { transform: rotate(-90deg); }
}
@media (pointer: coarse) and (orientation: portrait) and (max-width: 599px) {
    #rotateNotice { display: flex; }
}

/* --- MEDIDOR DE ESPECIAL (DASH TURBO) --- */
.special {
    position: absolute;
    top: 92px;
    width: 190px;
    height: 14px;
    background: rgba(11, 12, 16, 0.75);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 9px;
    overflow: hidden;
}
.special-p1 { left: 28px; --pc: #ff4757; }
.special-p2 { right: 28px; --pc: #1e90ff; }
.special i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--pc), #ffd32a); transition: width 0.12s; }
.special span { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; letter-spacing: 2px; color: #0b0c10; }
.special.ready { border-color: #e3a6ff; animation: turbo-glow 0.6s ease-in-out infinite alternate; }
/* Cheia: roxo brilhante com um brilho correndo pela barra */
.special.ready i {
    background: linear-gradient(90deg, #7b1fd6, #c45bff 40%, #f3d4ff 50%, #c45bff 60%, #7b1fd6) 0 0 / 200% 100%;
    animation: turbo-shine 1.1s linear infinite;
}
.special.ready span { display: flex; color: #fff; text-shadow: 0 0 4px #4a0a8a, 0 0 2px #4a0a8a; }
@keyframes turbo-glow { from { box-shadow: 0 0 6px #b14bff; } to { box-shadow: 0 0 22px #c45bff, 0 0 6px #fff; } }
@keyframes turbo-shine { to { background-position: -200% 0; } }

/* --- TECLAS DESENHADAS NO RODAPÉ (js/ui/controls_hint.js): bloco 3x2 no lugar real do teclado --- */
.kc-cluster { display: grid; grid-template-columns: repeat(3, 46px); gap: 6px; opacity: 0.8; }
.kc {
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 8px;
    background: linear-gradient(#2a3040, #171b24);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-bottom: 4px solid var(--pc);
    color: #fff;
    transition: transform 0.06s, background 0.06s, box-shadow 0.06s;
}
.kc b { font-size: 18px; line-height: 1; font-weight: 900; }
.kc.kc-word b { font-size: 10px; letter-spacing: 0.5px; }
.kc small { font-size: 8.5px; line-height: 1; font-weight: 800; letter-spacing: 0.8px; color: rgba(255, 255, 255, 0.6); }
.kc-dash small { color: #45f3df; }
/* Tecla apertada: afunda e acende na cor do jogador */
.kc.kc-pressed {
    background: var(--pc);
    border-bottom-width: 1.5px;
    transform: translateY(3px);
    box-shadow: 0 0 14px var(--pc);
}
.kc.kc-pressed small { color: #fff; }
.kc-bot {
    align-self: flex-end;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1.5px solid rgba(30, 144, 255, 0.6);
    background: rgba(11, 12, 16, 0.6);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* --- TURBO CARREGADO: roxo brilhante, na barra e na tecla de DASH --- */
.kc.kc-turbo {
    border-color: #d58cff;
    background: linear-gradient(#9b30ff, #5a12a8);
    animation: turbo-glow 0.6s ease-in-out infinite alternate;
}
.kc.kc-turbo small { color: #fff; }

/* --- 2 JOGADORES NO CELULAR: metade da tela para cada um (js/ui/touch_controls.js) --- */
.touch-zone {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 50%;
    pointer-events: auto;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}
.zone-left { left: 0; border-right: 1px dashed rgba(255, 255, 255, 0.07); }
.zone-right { right: 0; }
/* Joystick que nasce embaixo do dedo: invisível até o toque */
.stick.float {
    position: absolute;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.12s;
    pointer-events: none;
}
.stick.float.on { opacity: 0.75; }
.stick.float.dash { animation: zone-dash 0.35s ease-out; }
/* Anel que estoura no segundo toque: mostra que o DASH saiu */
@keyframes zone-dash {
    from { box-shadow: 0 0 0 0 var(--pc); }
    to { box-shadow: 0 0 0 36px transparent; }
}
.zone-hint {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 7px 14px;
    text-align: center;
    line-height: 1.5;
    border: 1.5px solid var(--pc);
    border-radius: 8px;
    background: rgba(11, 12, 16, 0.6);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    white-space: pre;
    pointer-events: none;
    transition: opacity 0.6s;
}
.zone-hint.gone { opacity: 0; }

/* --- ESTRELAS (uma por nível do bot vencido com o bicho) E REVANCHE --- */
.picker-stars { display: flex; justify-content: center; gap: 6px; margin: -4px 0 6px; font-size: 17px; line-height: 1; }
.picker-stars.ghost { visibility: hidden; }   /* P2: só guarda o espaço, para os cartões ficarem da mesma altura */
.picker-stars b { color: #2c3440; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); }
.picker-stars b.got.star-easy { color: #2ed573; }
.picker-stars b.got.star-normal { color: #ffd32a; }
.picker-stars b.got.star-hard { color: #ff4757; }
.picker-stars b.got.star-insane { color: #c45bff; text-shadow: 0 0 8px #c45bff; }
.picker-stars b.got { animation: star-pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes star-pop { from { transform: scale(0.3); } }
.star-total { float: right; color: #ffd32a; letter-spacing: 1px; font-weight: 900; }
.btn-play.btn-rematch { --edge: #a88a00; background: #ffd32a; color: #0b0c10; box-shadow: 0 5px 0 var(--edge), 0 0 22px rgba(255, 211, 42, 0.45); }
