/* ============================================
   SUPER BUILDER — Stylesheet
   ============================================ */

body.super-builder-page {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 50%, #718096 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    user-select: none;
}

#sb-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.32);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.sb-hud-left, .sb-hud-center, .sb-hud-right { display: flex; align-items: center; gap: 8px; }
.sb-hud-right { gap: 6px; }
.sb-title { font-size: 1.2rem; font-weight: 700; color: #f6ad55; }
.sb-level-display { font-size: 0.95rem; font-weight: 700; color: white; background: rgba(255,255,255,0.12); padding: 4px 16px; border-radius: 20px; }
.sb-score-display { font-size: 1.1rem; font-weight: 700; color: #ecc94b; background: rgba(255,215,0,0.12); padding: 4px 16px; border-radius: 20px; }
.sb-reset-btn:hover { transform: rotate(-30deg) !important; }

#sb-game-area { width: 100%; max-width: 900px; margin-top: 16px; display: flex; flex-direction: column; align-items: center; }
.sb-canvas-wrapper { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 30px rgba(0,0,0,0.35); }
#sb-canvas { display: block; width: 500px; height: 550px; }

.sb-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.55); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 10; animation: fadeIn 0.3s ease; border-radius: 16px; }
.sb-overlay.hidden { display: none; }
.sb-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; }
.sb-overlay-icon { font-size: 4rem; margin-bottom: 8px; animation: float 2s ease-in-out infinite; }
.sb-overlay-title { font-size: 1.8rem; font-weight: 800; color: white; text-shadow: 0 2px 20px rgba(0,0,0,0.4); margin-bottom: 6px; }
.sb-overlay-sub { font-size: 0.95rem; color: rgba(255,255,255,0.85); margin-bottom: 20px; }

.sb-btn { padding: 12px 36px; border: none; border-radius: 14px; background: linear-gradient(135deg, #f6ad55, #e53e3e); color: #1a202c; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: all 0.2s ease; font-family: inherit; box-shadow: 0 4px 16px rgba(245,101,101,0.3); }
.sb-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245,101,101,0.5); }

#sb-bottom-hud { width: 100%; max-width: 900px; display: flex; justify-content: space-between; gap: 16px; padding: 12px 24px; margin-top: 14px; background: rgba(0,0,0,0.32); backdrop-filter: blur(10px); border-radius: 16px; box-shadow: 0 2px 20px rgba(0,0,0,0.12); flex-wrap: wrap; }
.sb-stat { font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,0.85); text-align: center; }
.sb-stat-label { font-size: 0.65rem; color: rgba(255,255,255,0.5); display: block; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

.sb-palette { width: 100%; max-width: 900px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 14px; }
.sb-palette-btn { flex: 1 1 120px; min-width: 120px; border: none; border-radius: 14px; background: rgba(255,255,255,0.12); color: white; padding: 12px 18px; font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: all 0.2s ease; }
.sb-palette-btn.selected { background: rgba(246,173,85,0.9); color: #1a202c; }
.sb-palette-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,0.18); }

.sb-status { width: 100%; max-width: 900px; margin-top: 12px; padding: 14px 18px; background: rgba(255,255,255,0.08); border-radius: 16px; color: #f7fafc; text-align: center; font-size: 0.95rem; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalPop { 0% { transform: scale(0.8); opacity: 0; } 50% { transform: scale(1.05); } 100% { transform: scale(1); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

@media (max-width: 540px) {
    #sb-canvas { width: 100%; height: auto; aspect-ratio: 500 / 550; }
    #sb-hud { padding: 10px 16px; flex-wrap: wrap; gap: 8px; justify-content: center; }
    .sb-title { font-size: 1rem; }
    #sb-bottom-hud { padding: 10px 16px; }
    .sb-overlay-content { padding: 24px 20px; }
}
