* {
    font-family: sans-serif;
    box-sizing: border-box;
}

body {
    background: #b2f2bb;
    transition: background 0.5s;
    margin: 0;
    padding: 10px;
    color: #212529;
}

h1,
h3 {
    margin-top: 0;
    text-align: center;
}

b,
strong {
    font-weight: bold;
}

marquee {
    background: #ffd700;
    color: #000000;
    border: 6px dotted #e67e22;
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.8),
        inset 0 0 10px rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    font-size: 18px;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8);
    padding: 10px;
    top: 10px;
}

marquee[direction="up"] {
    background: #ffd700;
    color: #000000;
    border: 6px dotted #e67e22;
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.8),
        inset 0 0 10px rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    font-size: 18px;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8);
    padding: 10px;
    position: sticky;
    top: 10px;
}

.card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.input-group {
    margin-bottom: 12px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #495057;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    background: #f8f9fa;
    font-family: monospace;
    font-size: 14px;
    color: #212529;
    outline: none;
}

input[type="text"]:focus,
input[type="number"]:focus {
    border-color: #339af0;
}

.vote-btn {
    background: #212529;
    color: #b2f2bb;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: bold;
    cursor: pointer;
    transition:
        background 0.2s,
        transform 0.1s;
}

.vote-btn:hover {
    background: #000000;
}

.vote-btn:active {
    transform: scale(0.98);
}

.progress-container {
    margin: 15px 0;
}

.progress-bar {
    background: #e9ecef;
    display: flex;
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

.progress-fill {
    transition: width 0.5s ease-in-out;
    color: white;
    text-align: center;
    font-size: 12px;
    line-height: 24px;
    white-space: nowrap;
    overflow: hidden;
    font-weight: bold;
}

.progress-fill:nth-child(1) {
    background: #2b8a3e;
    border-right: 2px solid white;
}

.progress-fill:nth-child(2) {
    background: #e03131;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-family: monospace;
    margin-top: 8px;
    color: #495057;
}

.badge {
    background: #f1f3f5;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    font-weight: bold;
    color: #212529;
}

.bet-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
}

.bet-controls input {
    flex: 1;
    margin-bottom: 0;
}

.bet-controls button {
    flex: 1;
}

.admin-panel {
    background: #fff9db;
    border: 2px solid #fcc419;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.admin-btn {
    background: #fcc419;
    color: #212529;
}

.admin-btn:hover {
    background: #fab005;
}

.resolved-msg {
    background: #212529;
    color: #b2f2bb;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 15px;
    font-family: monospace;
    font-size: 16px;
}

@media (max-width: 768px) {
    marquee[direction="up"] {
        display: none !important;
    }

    .bet-controls {
        flex-direction: column;
    }

    .bet-controls button,
    .bet-controls input {
        width: 100%;
    }

    .admin-panel div {
        flex-direction: column;
    }

    .progress-labels {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        text-align: center;
    }
}
