/* ============================================
   OCEAN EXPLORER — Game Styles
   ============================================ */

body.ocean-page {
    background: #001a2e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
}

#oe-hud {
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    margin-top: 8px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 180, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.oe-hud-left { display: flex; align-items: center; gap: 8px; }
.oe-hud-right { display: flex; align-items: center; gap: 6px; }

.oe-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #38bdf8;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.oe-score-display {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.12);
    padding: 4px 16px;
    border-radius: 20px;
}

.oe-timer-display {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    background: rgba(56, 189, 248, 0.15);
    padding: 4px 14px;
    border-radius: 20px;
}

.oe-reset-btn { margin-left: 8px !important; }

/* ===== GAME AREA ===== */
#oe-game-area {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    margin-top: 8px;
}

.oe-canvas-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #00284a;
    border: 2px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.08);
}

#oe-canvas {
    display: block;
    background: #00284a;
}

/* ===== OVERLAYS ===== */
.oe-overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    z-index: 10;
    border-radius: 16px;
    animation: fadeIn 0.3s ease;
}

.oe-overlay.hidden { display: none; }

.oe-overlay-content {
    text-align: center;
    background: rgba(255,255,255,0.08);
    padding: 36px 48px;
    border-radius: 24px;
    backdrop-filter: blur(4px);
    animation: modalPop 0.4s ease;
}

.oe-overlay-icon { font-size: 4rem; margin-bottom: 8px; animation: float 2s ease-in-out infinite; }
.oe-overlay-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 6px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.oe-overlay-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.oe-controls-hint {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.oe-btn {
    padding: 12px 40px;
    border-radius: 100px;
    border: none;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}
.oe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.5);
}
.oe-btn:active { transform: translateY(0); }

/* ===== COLLECTION PANEL ===== */
.oe-collection {
    width: 100%;
    max-width: 540px;
    margin-top: 8px;
}
.oe-collection-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 6px;
    text-align: center;
}
.oe-collection-grid {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}
.oe-collection-item {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.1);
    transition: all 0.3s ease;
}
.oe-collection-item.discovered {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
}
.oe-collection-item.unseen {
    background: rgba(56, 189, 248, 0.04);
    border-color: rgba(56, 189, 248, 0.08);
    color: rgba(255,255,255,0.3);
    font-size: 1.2rem;
}

/* ===== SCORE FEED ===== */
.oe-feed {
    position: absolute;
    font-weight: 800;
    font-size: 1.3rem;
    color: #ffd700;
    pointer-events: none;
    animation: oeFeedUp 0.8s ease forwards;
    z-index: 5;
}
@keyframes oeFeedUp {
    0%   { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-50px) scale(1.2); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 540px) {
    #oe-hud {
        padding: 8px 12px;
        flex-wrap: wrap;
        gap: 4px;
    }
    .oe-title { font-size: 0.95rem; }
    .oe-score-display { font-size: 0.9rem; padding: 3px 10px; }
    .oe-timer-display { font-size: 0.8rem; padding: 3px 8px; }
    .oe-overlay-content { padding: 24px 20px; }
    .oe-overlay-title { font-size: 1.4rem; }
    .oe-overlay-icon { font-size: 3rem; }
    .oe-btn { padding: 10px 30px; font-size: 0.9rem; }
    .oe-collection-item { width: 40px; height: 40px; font-size: 1.1rem; }
}
