/* widget/mobile.css */
body {
    margin: 0;
    padding: 0;
    font-family: 'Press Start 2P', cursive;
    /* Google Font */
    background: transparent;
    color: white;
    overflow: hidden;
}

a.widget-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100vh;
}

.pixel-card {
    background: #fff;
    border: 4px solid #000;
    box-sizing: border-box;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.pixel-header {
    background: #1a252f;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 0.6rem;
    border-bottom: 4px solid #000;
}

.pixel-body {
    background: #3498db;
    /* Blueish */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
    position: relative;
}

#m-question {
    font-size: 1rem;
    text-align: center;
    margin: 0 0 15px 0;
    line-height: 1.4;
    text-shadow: 2px 2px 0px #000;
}

.versus-area {
    display: flex;
    flex-grow: 1;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 10px;
    margin-bottom: 50px;
    /* Space for footer */
}

.team-group {
    display: flex;
    width: 48%;
    /* Leave space for divider */
    align-items: flex-end;
    /* Align bottom */
    gap: 8px;
}

.left-team {
    flex-direction: row;
    /* Avatar Left, Stats Right */
}

.right-team {
    flex-direction: row;
    /* Stats Left, Avatar Right */
    justify-content: flex-end;
}

.avatar-box {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.pixel-avatar {
    width: 100%;
    max-width: 90px;
    /* Buen tamaño */
    height: auto;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(4px 4px 0px rgba(0, 0, 0, 0.5));
}

.stats-box {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50px;
    /* Fixed width for bar alignment */
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 5px;
    font-size: 1rem;
    text-shadow: 2px 2px 0 #000;
    white-space: nowrap;
}

.bar-wrapper {
    width: 40px;
    background: rgba(0, 0, 0, 0.3);
    height: 220px;
    /* Taller bars */
    display: flex;
    align-items: flex-end;
    border: 3px solid #000;
    margin-bottom: 5px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
}

.pixel-bar {
    width: 100%;
    transition: height 1s ease-out;
}

.bar-red {
    background: repeating-linear-gradient(45deg, #c0392b, #c0392b 4px, #e74c3c 4px, #e74c3c 8px);
}

.bar-blue {
    background: repeating-linear-gradient(45deg, #f39c12, #f39c12 4px, #f1c40f 4px, #f1c40f 8px);
}

.part-count {
    font-size: 0.45rem;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 #000;
    text-align: center;
}

.divider {
    width: 2px;
    background: rgba(255, 255, 255, 0.3);
    height: 90%;
    align-self: center;
}

.pixel-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1a252f;
    padding: 8px 0;
    text-align: center;
    border-top: 4px solid #000;
    font-size: 0.6rem;
}

.total-users {
    margin-bottom: 4px;
}

.timer {
    color: #e74c3c;
}

/* Animations */
@keyframes blink {
    50% {
        opacity: 0;
    }
}

.timer {
    animation: blink 2s infinite;
}

/* BUTTONS */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    /* Above Footer */
    padding: 0 10px;
}

.pixel-btn {
    display: flex;
    /* Flexbox for centering */
    justify-content: center;
    /* Horiz Center */
    align-items: center;
    /* Vert Center */
    text-decoration: none;
    color: #fff;
    font-size: 0.7rem;
    padding: 12px 10px;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    text-shadow: 1px 1px 0 #000;
    text-transform: uppercase;
    transition: transform 0.1s, box-shadow 0.1s;
    text-align: center;
    flex: 1;
    line-height: normal;
    /* Reset line-height */
}

.pixel-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000;
}

.btn-play {
    background: #27ae60;
    /* Green */
}

.btn-play:hover {
    background: #2ecc71;
}

.btn-help {
    background: #e67e22;
    /* Orange */
}

.btn-help:hover {
    background: #d35400;
}