:root {
    /* Premium Deep Sea Theme */
    --bg-color: #030508;
    --panel-bg: rgba(10, 15, 30, 0.6);
    --panel-border: rgba(0, 255, 255, 0.1);
    --text-primary: #e0f2fe;
    --text-secondary: #7dd3fc;
    --accent-color: #0ea5e9;
    --accent-glow: rgba(14, 165, 233, 0.5);
    --danger-color: #f43f5e;
    --danger-glow: rgba(244, 63, 94, 0.5);
    --success-color: #10b981;
    --biomass-color: #a855f7;
    
    --font-main: 'Outfit', sans-serif;
    --border-radius: 16px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, #081120 0%, #020406 100%);
}

#app {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--panel-border);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.glass-panel:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.1);
}

.glass-panel.wide {
    width: 90%;
    max-width: 1100px; /* Lekkie rozszerzenie by karty miały więcej miejsca */
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.scrollable-panel {
    overflow-y: auto;
}
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
}

h1.game-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 300;
}

.neon-text {
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--accent-glow);
}

/* Buttons */
.btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    padding: 16px 32px;
    font-size: 1.2rem;
    font-weight: 500;
    font-family: var(--font-main);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(0, 0, 0, 0.85);
    border-left: 4px solid #00ffcc;
    color: #fff;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    animation: slideInRight 0.3s forwards, fadeOutToast 0.5s 4.5s forwards;
    font-size: 1rem;
    pointer-events: auto;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOutToast {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(-10px); }
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent-color), #0284c7);
    border: none;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn.primary:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn.secondary {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}
.btn.secondary:hover:not(:disabled) {
    background: rgba(14, 165, 233, 0.2);
}

.btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.05);
    color: #666;
}

/* Screens */
.screen {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 10;
}

.screen.active {
    opacity: 1;
    pointer-events: all;
}

.hidden {
    display: none !important;
}

.header-actions {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
}
.header-actions .btn {
    width: auto;
    padding: 10px 20px;
    font-size: 1rem;
}

/* Background Particles (Bubbles) */
.bubbles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.bubble {
    position: absolute;
    bottom: -20px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 50%;
    animation: rise infinite ease-in;
}
@keyframes rise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(1.5); opacity: 0; }
}

button:focus-visible, 
input:focus-visible, 
select:focus-visible, 
[tabindex="0"]:focus-visible,
body.gamepad-active button:focus,
body.gamepad-active input:focus,
body.gamepad-active select:focus,
body.gamepad-active [tabindex="0"]:focus {
    outline: 3px solid #0ea5e9;
    outline-offset: 2px;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.8) !important;
}
