/* ============================================
   SHARK DIVE — Game Styles
   ============================================ */

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

#sd-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(56, 189, 248, 0.2);
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

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

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

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

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

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

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

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

#sd-canvas {
    display: block;
    background: #002244;
}

/* ===== OVERLAYS ===== */
.sd-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;
}
.sd-overlay.hidden { display: none; }
.sd-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;
}
.sd-overlay-icon { font-size: 4rem; margin-bottom: 8px; animation: float 2s ease-in-out infinite; }
.sd-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);
}
.sd-overlay-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
    line-height: 1.5;
}

.sd-btn {
    padding: 12px 36px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}
.sd-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(14, 165, 233, 0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 540px) {
    #sd-hud { padding: 8px 12px; flex-wrap: wrap; gap: 4px; }
    .sd-title { font-size: 0.95rem; }
    .sd-overlay-content { padding: 24px 20px; }
    .sd-overlay-title { font-size: 1.4rem; }
    .sd-overlay-icon { font-size: 3rem; }
}
