/* VORTEX GAME CSS - CLEAN & STABLE */
:root {
    --vortex-bg: #0f0c29;
    --vortex-primary: #a29bfe;
    --vortex-secondary: #6c5ce7;
    --vortex-gold: #ffd700;
}

#vortex-game-container {
    font-family: 'Segoe UI', sans-serif;
    display: flex; justify-content: center; align-items: center;
    min-height: 600px;
}

#vortex-card {
    width: 100%; max-width: 400px; height: 750px;
    background: radial-gradient(circle at top, #302b63, #0f0c29);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative; overflow: hidden; color: white;
    /* FLEXBOX - EZ TARTJA EGYBEN A LAYOUTOT */
    display: flex; flex-direction: column;
}

/* 1. HEADER (Fix méret: 70px) */
#vortex-header {
    flex: 0 0 70px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* 2. TIMER (Fix méret: 8px - NEM NŐHET!) */
#vortex-timer-container {
    flex: 0 0 8px; height: 8px; width: 100%;
    background: #111;
}
#vortex-timer-bar {
    height: 100%; width: 100%;
    background: #00d4ff;
    box-shadow: 0 0 10px #00d4ff;
    transition: width 1s linear;
}

/* 3. CHAT (Ez tölti ki a maradék helyet: flex: 1) */
#vortex-chat-area {
    flex: 1; /* Ez a kulcs! Ez nyomja össze a többit */
    overflow-y: auto; padding: 20px;
    display: flex; flex-direction: column; gap: 10px;
}

/* 4. INPUT (Fix méret alul) */
#vortex-input-area {
    flex: 0 0 auto;
    padding: 20px;
    background: rgba(15, 12, 41, 0.95);
    display: flex; gap: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Elemek kinézete */
.chat-bubble { padding: 12px 16px; border-radius: 16px; max-width: 85%; font-size: 15px; }
.chat-ai { background: rgba(255,255,255,0.1); align-self: flex-start; }
.chat-user { background: var(--vortex-primary); color: #000; align-self: flex-end; font-weight: bold; }
.game-btn { 
    flex: 1; padding: 15px; background: rgba(255,255,255,0.1); 
    border: 1px solid rgba(255,255,255,0.2); color: white; border-radius: 50px; 
    text-align: center; cursor: pointer; font-weight: bold;
}
.game-btn:hover { background: var(--vortex-primary); color: black; }

/* SHOP Overlay */
.vortex-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 12, 41, 0.98); z-index: 100;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.shop-item {
    border: 1px solid rgba(255,255,255,0.3); padding: 20px; border-radius: 15px;
    margin: 10px; text-align: center; cursor: pointer; width: 120px;
}
.shop-item:hover { background: gold; color: black; }