/* css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

body {
    background-color: #06070a;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Impact', 'Trebuchet MS', sans-serif;
    color: #fff;
    overflow-x: hidden;
}

#arcade-cabinet {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, #1c2230 0%, #10141f 100%);
    padding: 16px 20px 24px 20px;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 0 4px #263045 inset;
    border: 2px solid #3c4b69;
}

#screen-bezel {
    background-color: #020305;
    padding: 12px;
    border-radius: 8px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
    border: 1px solid #1f2738;
}

#game-container {
    position: relative;
    width: 1024px;
    height: 576px;
    background-color: #000;
    overflow: hidden;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    padding: 16px 24px;
}

.hud-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.fighter-stats {
    display: flex;
    flex-direction: column;
    width: 40%;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.character-name {
    font-size: 20px;
    font-weight: 900;
    color: #fbd000;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px #000;
}

.fighter-stats.p2 .character-name {
    color: #00bfff;
}

.round-markers {
    display: flex;
    gap: 6px;
}

.round-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #1a202c;
    border: 2px solid #fbd000;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.8);
}

.round-dot.won {
    background-color: #fbd000;
    box-shadow: 0 0 8px #fbd000;
}

.health-bar-track {
    position: relative;
    width: 100%;
    height: 24px;
    background-color: #12141c;
    border: 2px solid #e0e6ed;
    transform: skewX(-16deg);
    overflow: hidden;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

.health-bar-ghost {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffcc00;
    transition: width 0.75s ease-out;
}

.health-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #ff3823 0%, #a80a00 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: width 0.15s ease-out;
}

.timer-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.round-timer {
    font-size: 44px;
    font-weight: 900;
    color: #ffffff;
    background: linear-gradient(180deg, #2b3345 0%, #151a24 100%);
    padding: 0 16px;
    border: 3px solid #fbd000;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(251, 208, 0, 0.35);
    line-height: 48px;
}

.round-tag {
    font-size: 11px;
    font-weight: bold;
    color: #e5a700;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* Anúncios Gigantes de Tela */
.announcement-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.announcement-overlay.visible {
    opacity: 1;
}

.arcade-shout {
    font-size: 72px;
    font-weight: 900;
    color: #ffd200;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 
        0 0 10px rgba(255, 0, 0, 0.8),
        4px 4px 0 #b30000,
        8px 8px 0 #000;
    transform: scale(0.6);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.announcement-overlay.visible .arcade-shout {
    transform: scale(1);
}

/* Painel Arcade */
#control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 960px;
    margin-top: 16px;
    padding: 14px 30px;
    background: radial-gradient(circle at center, #26334a 0%, #141c2c 100%);
    border-radius: 12px;
    border: 1px solid #3c4c68;
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.6);
}

.stick-assembly {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stick-well {
    width: 72px;
    height: 72px;
    background: radial-gradient(circle, #090c12 50%, #1b2333 100%);
    border-radius: 50%;
    border: 3px solid #3d4a63;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.9);
}

.joystick {
    width: 44px;
    height: 44px;
    background: radial-gradient(circle at 35% 35%, #2a9df4, #0b4f8a);
    border-radius: 50%;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.7), inset 0 2px 4px rgba(255, 255, 255, 0.5);
    transition: transform 0.08s ease;
}

.stick-arrows {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #6b7d9b;
}

.system-buttons {
    display: flex;
    gap: 14px;
}

.btn-metal {
    background: linear-gradient(180deg, #d3d9e2 0%, #8792a6 100%);
    border: 2px solid #222938;
    border-radius: 6px;
    color: #111;
    font-weight: 900;
    font-size: 13px;
    padding: 8px 18px;
    cursor: pointer;
    box-shadow: 0 4px 0 #4a5468, 0 6px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.05s ease;
}

.btn-metal:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #4a5468;
}

.arcade-buttons-cluster {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-group {
    display: flex;
    gap: 18px;
    justify-content: center;
}

.arcade-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
}

.btn-cap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    font-size: 17px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    transition: transform 0.05s ease, box-shadow 0.05s ease;
}

.btn-legend {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-top: 4px;
    color: #a8b9d6;
}

.btn-red .btn-cap { background: radial-gradient(circle at 35% 35%, #ff4d4d, #b30000); box-shadow: 0 5px 0 #7a0000; }
.btn-yellow .btn-cap { background: radial-gradient(circle at 35% 35%, #ffd23f, #c79500); box-shadow: 0 5px 0 #8a6700; }
.btn-green .btn-cap { background: radial-gradient(circle at 35% 35%, #2bd980, #0d8244); box-shadow: 0 5px 0 #08572d; }
.btn-blue .btn-cap { background: radial-gradient(circle at 35% 35%, #38a3fd, #055ba3); box-shadow: 0 5px 0 #023866; }
.btn-purple .btn-cap { background: radial-gradient(circle at 35% 35%, #b854d4, #6e1c85); box-shadow: 0 5px 0 #4a0f5a; }

.arcade-btn.pressed .btn-cap,
.arcade-btn:active .btn-cap {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #333;
    filter: brightness(1.2);
}