/* ========================================
   Roleta Brasileira - Signal System
   ======================================== */

:root {
    --bg-dark: #0a0e1a;
    --bg-darker: #060913;
    --text-primary: #ffffff;
    --text-muted: #8b92a7;
    --green-primary: #00ff00;
    --green-dark: #00cc00;
    --red-primary: #ff4444;
    --gray-box: #2a2a2a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.roleta-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Header */
.roleta-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 10px 0;
}

.btn-back {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.roleta-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Round History */
.rounds-history {
    margin-bottom: 20px;
}

.rounds-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.round-box {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    transition: transform 0.2s ease;
}

.round-box.green {
    background: var(--green-primary);
    color: #000;
}

.round-box.red {
    background: var(--red-primary);
    color: #fff;
}

.round-box.empty {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    opacity: 0.5;
}

.round-time {
    font-size: 0.65rem;
    margin-bottom: 2px;
}

.round-result {
    font-size: 0.6rem;
    font-weight: 700;
}

/* Info Text */
.info-text {
    background: var(--gray-box);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.info-text p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-primary);
    text-align: center;
}

/* Wait Button */
.wait-button {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 12px;
    background: var(--green-primary);
    color: #000;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.wait-button:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.wait-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.5);
}

/* Signal Box */
.signal-box {
    background: #000;
    border: 2px solid var(--green-primary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.signal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.signal-item:last-child {
    margin-bottom: 0;
}

.signal-icon {
    font-size: 1.3rem;
}

.signal-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Platform Section */
.platform-section {
    margin-bottom: 30px;
}

.platform-button {
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(0, 200, 0, 0.3));
    border: 2px solid rgba(0, 255, 0, 0.5);
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.2);
}

.platform-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 255, 0, 0.4);
    border-color: rgba(0, 255, 0, 0.8);
}

.platform-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .roleta-container {
        padding: 15px;
    }

    .roleta-header h1 {
        font-size: 1.5rem;
    }

    .rounds-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .round-box {
        font-size: 0.65rem;
        padding: 6px 3px;
    }

    .wait-button {
        font-size: 1rem;
        padding: 15px;
    }

    .platform-button {
        font-size: 1.1rem;
        padding: 18px;
    }
}
