/* ==========================================================================
   Breakout.app — Steve Jobs & Wozniak 1976 Classic Arcade Brick Breaker
   ========================================================================== */

#breakout-window {
    width: 660px;
    height: 580px;
    min-width: 540px;
    min-height: 480px;
    border-radius: 12px;
    overflow: hidden;
    background: #0f1015;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.breakout-container {
    display: flex;
    flex-direction: column;
    height: calc(100% - 38px);
    background: #0d0e12;
    color: #fff;
    user-select: none;
    position: relative;
    overflow: hidden;
}

/* Header bar with score, lives, level */
.breakout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: linear-gradient(180deg, #181920 0%, #121318 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.breakout-stat-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.breakout-stat {
    display: flex;
    flex-direction: column;
}

.breakout-stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
}

.breakout-stat-val {
    font-size: 18px;
    font-weight: 700;
    font-family: 'SF Pro Display', -apple-system, sans-serif;
    color: #00e676;
    letter-spacing: -0.02em;
}

.breakout-lives {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ff3b30;
    font-size: 14px;
}

.breakout-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breakout-btn {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breakout-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.breakout-btn.active {
    background: #007aff;
}

/* Canvas stage */
.breakout-stage {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 20%, #171822 0%, #090a0d 100%);
    overflow: hidden;
}

#breakout-canvas {
    display: block;
    background: transparent;
    cursor: none;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

/* Overlay dialogs (Pause, Game Over, Victory) */
.breakout-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 10, 13, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    text-align: center;
    padding: 20px;
}

.breakout-overlay.open {
    display: flex;
}

.breakout-overlay-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    color: #ffd60a;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.breakout-overlay-title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.breakout-overlay-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 320px;
    margin-bottom: 24px;
    line-height: 1.4;
}

.breakout-play-btn {
    padding: 10px 24px;
    background: #007aff;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4);
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.breakout-play-btn:hover {
    background: #0062cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.5);
}

.breakout-tip {
    margin-top: 18px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}
