/* ================================================
   STOCK TICKER 2026 - FULL CLEAN CSS
   Retro 1937 + Premium 3D - March 2026
   ================================================ */

/* ==================== GENERAL ==================== */
body {
    margin: 0;
    padding: 30px;
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #003366, #001f3f);
    color: #fff;
    text-align: center;
    min-height: 100vh;
}

/* ==================== LOGO ==================== */
.logo {
    max-width: 70%;
    height: auto;
    margin: 20px auto 35px;
    display: block;
    filter: drop-shadow(4px 4px 12px rgba(0,0,0,0.65));
}

/* ==================== LIFETIME STATS ==================== */
.lifetime-wins {
    background: linear-gradient(145deg, #004499, #002244);
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), inset 0 8px 15px rgba(255,255,255,0.15), inset 0 -8px 15px rgba(0,0,0,0.4);
    border: 5px solid #ffcc00;
    max-width: 70%;
    margin: 30px auto;
}

.lifetime-wins h2 {
    font-size: 2.8em;
    margin: 0 0 30px 0;
    color: #003366;
    background: linear-gradient(#ffd633, #ffcc00);
    padding: 12px 60px;
    border-radius: 15px;
    border: 4px solid #ffaa00;
    box-shadow: 0 8px 0 #000, inset 0 6px 12px rgba(255,255,255,0.7), 0 0 25px rgba(255,204,0,0.6);
    display: inline-block;
    letter-spacing: 4px;
    font-weight: bold;
}

.wins-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.win-box {
    font-size: 1.35em;
    padding: 20px 35px;
    background: rgba(255,204,0,0.12);
    border-radius: 18px;
    box-shadow: inset 0 8px 16px rgba(255,255,255,0.25);
    min-width: 260px;
    text-align: center;
}

.win-box span { font-size: 3.2em; font-weight: bold; color: #ffcc00; text-shadow: 3px 3px 8px #000; }
.gain-loss { font-size: 1.4em; font-weight: bold; }

/* ==================== MODE BADGES ==================== */
.mode-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.mode-card {
    background: linear-gradient(145deg, #0066cc, #004499);
    padding: 40px 30px;
    width: 340px;
    border-radius: 25px;
    border: 6px solid transparent;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), inset 0 10px 20px rgba(255,255,255,0.2), inset 0 -10px 20px rgba(0,0,0,0.4);
}

.mode-card:hover, .mode-card.selected {
    transform: scale(1.08);
    border-color: #ffcc00;
    box-shadow: 0 20px 45px rgba(255,204,0,0.4);
}

.mode-card h2 {
    color: #ffcc00;
    font-size: 2em;
    margin: 10px 0;
    text-shadow: 3px 3px 0 #000;
}

/* ==================== POPUP ==================== */
.popup {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
}

.popup-content {
    background: linear-gradient(#003366, #001f3f);
    width: 90%;
    max-width: 520px;
    margin: 80px auto;
    padding: 30px;
    border-radius: 25px;
    border: 6px solid #ffcc00;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    text-align: left;
}

.popup h3 {
    color: #ffcc00;
    margin: 0 0 20px 0;
    text-align: center;
    font-size: 1.8em;
}

.close-btn {
    float: right;
    font-size: 28px;
    color: #ffcc00;
    cursor: pointer;
}

/* ==================== END CONDITIONS PILL BUTTONS ==================== */
.end-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 35px 0;
    flex-wrap: wrap;
}

.end-btn {
    background: linear-gradient(145deg, #0066cc, #004499);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    border: 4px solid transparent;
    font-size: 1.05em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    min-width: 120px;
}

.end-btn.active {
    background: #ffcc00;
    color: #003366;
    border-color: #ffcc00;
}

.end-input-container {
    max-width: 400px;
    margin: 20px auto;
    background: rgba(255,204,0,0.1);
    padding: 20px;
    border-radius: 15px;
    display: none;
}

/* ==================== CLASSICBOARD - Horizontal Colored Bands + 40 Cells + 3D Circle ==================== */
.classic-board {
    background: #003366;
    border: 10px solid #ffcc00;
    border-radius: 20px;
    padding: 25px;
    margin: 30px auto;
    max-width: 98%;
    box-shadow: 0 25px 60px rgba(0,0,0,0.8);
}

.stock-row {
    display: flex;
    align-items: center;
    margin: 14px 0;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08); /* tinted by JS per stock */
}

.stock-name {
    width: 130px;
    font-weight: bold;
    font-size: 1.45em;
    color: #ffcc00;
}

.ladder {
    flex: 1;
    height: 34px;
    display: flex;
    gap: 2px;
    padding: 3px;
    background: #112233;
    border: 3px solid #ffcc00;
    border-radius: 8px;
}

.ladder-cell {
    flex: 1;
    background: #334455;
    border-radius: 3px;
    position: relative;
}

/* Split & Busted visual lines */
.price-circle {
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 35% 35%, #ffff88, #ffaa00);
    border: 4px solid #ffdd00;
    border-radius: 50%;
    box-shadow: 0 0 18px #ffff00, 0 0 35px #ff8800, inset 0 4px 8px rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    color: #003366;
}

/* ==================== BUTTONS ==================== */
button {
    background: #ffcc00;
    color: #003366;
    font-size: 22px;
    padding: 14px 40px;
    border: none;
    border-radius: 12px;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

button:hover { background: #ffd633; transform: translateY(-3px); }

/* Disabled CREATE GAME button - gray when not ready */
#createGameBtn:disabled {
    background: #888888;
    color: #666666;
    cursor: not-allowed;
    box-shadow: none;
}