/* ============================================
   Anatomy Blaster - Medical Edition
   Screen Styles
   ============================================ */

/* ---------- Screen Overlay Base ---------- */
.screen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-screens);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: 
        radial-gradient(ellipse at center, rgba(0, 20, 40, 0.88) 0%, rgba(0, 8, 20, 0.96) 100%),
        linear-gradient(to bottom, rgba(0, 20, 40, 0.9), rgba(0, 5, 15, 0.96));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
    padding: var(--space-lg);
    padding-top: 60px;
    padding-bottom: 80px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.screen-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Main menu centers content */
#mainMenu {
    justify-content: center;
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
}

/* ---------- Game Title (Main Menu) ---------- */
.game-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 8vw, 56px);
    font-weight: 900;
    color: var(--med-bright);
    text-align: center;
    margin-bottom: var(--space-xs);
    line-height: 1.1;
    flex-shrink: 0;
    text-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(0, 200, 255, 0.5),
        0 0 40px rgba(0, 200, 255, 0.2);
    letter-spacing: 2px;
    filter: drop-shadow(0 0 18px rgba(0, 200, 255, 0.5));
    animation: medPulse 4s ease-in-out infinite;
}

@keyframes medPulse {
    0%, 100% { filter: drop-shadow(0 0 18px rgba(0, 200, 255, 0.5)); }
    50%       { filter: drop-shadow(0 0 32px rgba(0, 240, 255, 0.75)); }
}

.game-subtitle {
    font-family: var(--font-display);
    font-size: clamp(10px, 3vw, 14px);
    color: var(--text-muted);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-align: center;
    flex-shrink: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    animation: scanway 6s ease-in-out infinite;
}

@keyframes scanway {
    0%, 100% { letter-spacing: 5px; opacity: 0.6; }
    50%       { letter-spacing: 7px; opacity: 0.85; }
}

.menu-hint {
    margin-top: 20px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.7;
    flex-shrink: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* ---------- Screen Title (Sub-screens) ---------- */
.screen-title {
    font-family: var(--font-display);
    font-size: clamp(20px, 5vw, 36px);
    font-weight: 900;
    color: var(--med-bright);
    text-align: center;
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-shrink: 0;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(0, 200, 255, 0.4);
    letter-spacing: 2px;
}

/* Medical cross accent before screen titles */
.screen-title::before {
    content: '⚕️ ';
    font-size: 0.8em;
    opacity: 0.8;
}
.screen-title::after {
    content: ' ⚕️';
    font-size: 0.8em;
    opacity: 0.8;
}

.game-over-title {
    color: #d4855a;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(212, 133, 90, 0.5);
    font-size: clamp(22px, 6vw, 40px);
}

.level-complete-title {
    color: #00f0ff;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(0, 240, 255, 0.5);
    font-size: clamp(22px, 6vw, 40px);
}

/* ---------- Stats Grid ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin: 20px 0;
    width: min(90%, 350px);
    flex-shrink: 0;
}

.stats-grid.compact {
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
}

.stat-card {
    background: linear-gradient(135deg, rgba(0, 20, 50, 0.8), rgba(0, 8, 25, 0.9));
    border: 1px solid rgba(0, 180, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: 
        inset 2px 2px 4px rgba(0, 0, 0, 0.5),
        inset -2px -2px 4px rgba(0, 200, 255, 0.05),
        0 3px 8px rgba(0, 0, 0, 0.4);
}

.stat-card:hover {
    border-color: rgba(0, 200, 255, 0.4);
    box-shadow: 
        inset 2px 2px 4px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(0, 200, 255, 0.15);
}

.stat-card .stat-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    color: var(--med-bright);
    text-shadow: 
        0 0 10px rgba(0, 200, 255, 0.6),
        1px 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: var(--space-xs);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* ---------- New High Score ---------- */
.new-high-score {
    color: #00f0ff;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    margin: 5px 0;
    animation: comboPulse 1s ease infinite;
    text-align: center;
    text-shadow: 
        0 0 12px rgba(0, 240, 255, 0.8),
        1px 1px 3px rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.new-high-score.hidden {
    display: none;
}

/* ---------- Difficulty Selector ---------- */
.difficulty-selector {
    display: flex;
    gap: var(--space-sm);
    margin: 15px 0;
    flex-wrap: wrap;
    justify-content: center;
    flex-shrink: 0;
}

.diff-btn {
    font-family: var(--font-display);
    font-size: 11px;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-stone);
    border: 1px solid rgba(0, 150, 200, 0.3);
    background: linear-gradient(135deg, rgba(0, 20, 50, 0.7), rgba(0, 10, 30, 0.8));
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
    outline: none;
    box-shadow: 
        inset 1px 1px 3px rgba(0, 0, 0, 0.4),
        inset -1px -1px 3px rgba(0, 200, 255, 0.05),
        0 2px 6px rgba(0, 0, 0, 0.4);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.diff-btn:hover {
    border-color: rgba(0, 200, 255, 0.5);
    color: var(--med-bright);
}

.diff-btn:active {
    transform: scale(0.95);
}

.diff-btn.active {
    border-color: rgba(0, 200, 255, 0.6);
    color: var(--med-bright);
    background: linear-gradient(135deg, rgba(0, 30, 70, 0.8), rgba(0, 15, 40, 0.9));
    box-shadow: 
        inset 2px 2px 5px rgba(0, 0, 0, 0.6),
        0 0 12px rgba(0, 200, 255, 0.3);
    text-shadow: 0 0 8px rgba(0, 200, 255, 0.5);
}

.diff-btn[data-diff="easy"].active {
    border-color: rgba(0, 200, 150, 0.6);
    color: #00f0c0;
    box-shadow: 
        inset 2px 2px 5px rgba(0, 0, 0, 0.6),
        0 0 10px rgba(0, 200, 150, 0.3);
}

.diff-btn[data-diff="normal"].active {
    border-color: rgba(0, 200, 255, 0.6);
    color: var(--med-bright);
}

.diff-btn[data-diff="hard"].active {
    border-color: #c87a3a;
    color: #e8a855;
    box-shadow: 
        inset 2px 2px 5px rgba(0, 0, 0, 0.6),
        0 0 10px rgba(232, 168, 85, 0.3);
}

.diff-btn[data-diff="insane"].active {
    border-color: #a84432;
    color: #d4855a;
    box-shadow: 
        inset 2px 2px 5px rgba(0, 0, 0, 0.6),
        0 0 10px rgba(212, 133, 90, 0.3);
}

/* ---------- Leaderboard ---------- */
.leaderboard {
    width: min(90%, 350px);
    max-height: 40vh;
    overflow-y: auto;
    margin-bottom: var(--space-lg);
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(0, 20, 50, 0.4), rgba(0, 8, 25, 0.4));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 150, 200, 0.2);
    box-shadow: 
        inset 1px 1px 3px rgba(0, 0, 0, 0.5),
        0 3px 8px rgba(0, 0, 0, 0.4);
}

.leaderboard-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.lb-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid rgba(0, 200, 255, 0.08);
    transition: background var(--transition-fast);
}

.lb-entry:hover {
    background: rgba(0, 200, 255, 0.06);
}

.lb-rank {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    width: 30px;
    flex-shrink: 0;
    color: var(--text-muted);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.lb-rank.gold {
    color: var(--med-bright);
    text-shadow: 0 0 8px rgba(0, 200, 255, 0.6);
}

.lb-rank.silver {
    color: #c0c0c0;
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.4);
}

.lb-rank.bronze {
    color: #cd7f32;
    text-shadow: 0 0 8px rgba(205, 127, 50, 0.4);
}

.lb-info {
    flex: 1;
    margin-left: var(--space-sm);
}

.lb-score {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--med-bright);
    text-shadow: 0 0 6px rgba(0, 200, 255, 0.5);
}

.lb-details {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* ---------- Settings Panel ---------- */
.settings-panel {
    width: min(90%, 400px);
    max-height: 55vh;
    overflow-y: auto;
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(0, 20, 50, 0.4), rgba(0, 8, 25, 0.4));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 150, 200, 0.2);
    box-shadow:
        0 0 0 1px rgba(0, 80, 120, 0.15),
        0 8px 24px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(0, 200, 255, 0.08);
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(0, 200, 255, 0.08);
    position: relative;
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-row:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 12px;
    right: 12px;
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%,
        rgba(0, 150, 200, 0.2) 20%,
        rgba(0, 200, 255, 0.35) 50%,
        rgba(0, 150, 200, 0.2) 80%,
        transparent 100%
    );
}

.setting-label {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* ---------- Level Complete Stars ---------- */
.level-complete-stars {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    justify-content: center;
    flex-shrink: 0;
}

.level-star {
    width: 48px;
    height: 48px;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.level-star.earned {
    filter: 
        brightness(1.2)
        drop-shadow(0 0 10px rgba(0, 200, 255, 0.6));
    animation: starEarn 0.5s ease;
}

.level-star.empty {
    filter: brightness(0.3);
    opacity: 0.3;
}

.level-star:nth-child(1).earned { animation-delay: 0.1s; }
.level-star:nth-child(2).earned { animation-delay: 0.3s; }
.level-star:nth-child(3).earned { animation-delay: 0.5s; }

@keyframes starEarn {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    60% { transform: scale(1.3) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ---------- Level Select Grid ---------- */
.level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: var(--space-sm);
    width: min(95%, 500px);
    max-height: 50vh;
    overflow-y: auto;
    padding: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-shrink: 0;
}

.level-cell {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-stone);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid rgba(0, 150, 200, 0.25);
    background: linear-gradient(135deg, rgba(0, 20, 50, 0.7), rgba(0, 10, 30, 0.85));
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 
        inset 1px 1px 3px rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.4);
}

.level-cell:hover:not(.locked) {
    border-color: rgba(0, 200, 255, 0.5);
    background: linear-gradient(135deg, rgba(0, 30, 70, 0.8), rgba(0, 15, 45, 0.9));
    transform: scale(1.05);
    box-shadow: 
        inset 1px 1px 3px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(0, 200, 255, 0.25);
}

.level-cell:active:not(.locked) {
    transform: scale(0.95);
}

.level-cell .level-number {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--med-bright);
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.level-cell .level-stars-mini {
    display: flex;
    gap: 2px;
    margin-top: 3px;
}

.level-cell .level-stars-mini .mini-star {
    width: 8px;
    height: 8px;
}

.level-cell .mini-star.earned {
    filter: brightness(1.2) drop-shadow(0 0 2px rgba(0, 200, 255, 0.6));
}

.level-cell .mini-star.empty {
    filter: brightness(0.3);
    opacity: 0.3;
}

.level-cell.locked {
    opacity: 0.4;
    cursor: not-allowed;
}

.level-cell.locked .level-number {
    display: none;
}

.level-cell .lock-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0.5);
    opacity: 0.6;
}

.level-cell.current {
    border-color: rgba(0, 200, 255, 0.7);
    box-shadow: 
        inset 1px 1px 3px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(0, 200, 255, 0.5);
    animation: levelPulse 2s ease infinite;
}

@keyframes levelPulse {
    0%, 100% { box-shadow: inset 1px 1px 3px rgba(0,0,0,0.4), 0 0 15px rgba(0,200,255,0.5); }
    50%       { box-shadow: inset 1px 1px 3px rgba(0,0,0,0.4), 0 0 22px rgba(0,200,255,0.75); }
}

.level-cell.completed {
    border-color: rgba(0, 200, 150, 0.5);
    background: linear-gradient(135deg, rgba(0, 30, 60, 0.8), rgba(0, 15, 40, 0.85));
}

.level-cell.boss-level {
    border-color: #a84432;
}

.level-cell.boss-level.current {
    box-shadow: 
        inset 1px 1px 3px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(212, 133, 90, 0.5);
}

.level-cell .boss-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 14px;
    height: 14px;
    filter: brightness(1.1) drop-shadow(0 0 4px rgba(212, 133, 90, 0.5));
}

/* Leaderboard entries */
.leaderboard-entry {
    border-left: 3px solid rgba(0, 150, 200, 0.4);
    background: rgba(0, 15, 35, 0.5);
}
.leaderboard-entry:hover {
    border-left-color: var(--med-bright);
    background: rgba(0, 25, 55, 0.7);
}

/* Rank badge */
.rank-badge {
    background: linear-gradient(135deg, rgba(0, 100, 180, 0.6), rgba(0, 60, 120, 0.6));
    border: 1px solid var(--med-bright);
    color: var(--text-primary);
}
.rank-badge.rank-1 { background: linear-gradient(135deg, #d4a800, #8a6c00); border-color: #f0c040; }
.rank-badge.rank-2 { background: linear-gradient(135deg, #8a8a8a, #4a4a4a); border-color: #c0c0c0; }
.rank-badge.rank-3 { background: linear-gradient(135deg, #a06030, #603a18); border-color: #c88050; }

/* ============================================
   HOW TO PLAY MODAL
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-container {
    background: linear-gradient(135deg, rgba(0, 20, 50, 0.98) 0%, rgba(0, 8, 22, 0.98) 100%);
    border: 2px solid rgba(0, 180, 255, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: 
        inset 2px 2px 6px rgba(0, 0, 0, 0.5),
        inset -2px -2px 6px rgba(0, 200, 255, 0.06),
        0 10px 40px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 150, 255, 0.1);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

@keyframes modalSlideIn {
    from { transform: translateY(-30px) scale(0.95); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 2px solid rgba(0, 180, 255, 0.2);
    flex-shrink: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--med-bright);
    text-shadow: 
        0 0 15px rgba(0, 200, 255, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.9);
}

.modal-close-btn {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(0, 180, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 20, 50, 0.8), rgba(0, 10, 30, 0.9));
    border-radius: var(--radius-stone);
    color: #d4855a;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 
        inset 1px 1px 3px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.5);
}

.modal-close-btn:hover {
    background: linear-gradient(135deg, #a84432, #8a3828);
    border-color: #d4855a;
    transform: scale(1.05);
    box-shadow: 
        inset 2px 2px 4px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(212, 133, 90, 0.4);
}

.modal-close-btn:active {
    transform: scale(0.95);
}

.modal-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 28px;
    scroll-behavior: smooth;
}

.modal-content::-webkit-scrollbar { width: 10px; }
.modal-content::-webkit-scrollbar-track { background: rgba(0, 10, 30, 0.8); border-radius: 5px; margin: 4px 0; }
.modal-content::-webkit-scrollbar-thumb { background: rgba(0, 150, 200, 0.5); border-radius: 5px; border: 2px solid rgba(0, 20, 50, 0.8); }
.modal-content::-webkit-scrollbar-thumb:hover { background: var(--med-bright); }

/* How to Play Content */
.how-to-play-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.htp-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
    border: 1px solid rgba(0, 150, 200, 0.2);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all 0.3s ease;
    border-left: 3px solid rgba(0, 150, 200, 0.5);
}

.htp-section:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.15));
    border-left-color: var(--med-bright);
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.15);
}

.htp-heading {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--med-bright);
    margin-bottom: 12px;
    text-shadow: 
        0 0 8px rgba(0, 200, 255, 0.5),
        1px 1px 3px rgba(0, 0, 0, 0.8);
}

.htp-text {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.htp-text:last-child { margin-bottom: 0; }

.htp-text strong {
    color: var(--med-bright);
    font-weight: 600;
}

.htp-text code {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 150, 200, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #00f0ff;
}

.htp-example {
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid rgba(0, 200, 150, 0.5);
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 4px;
}

.htp-example-challenge {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.htp-example-answer {
    font-family: var(--font-body);
    font-size: 15px;
    color: #00f0c0;
    text-shadow: 0 0 6px rgba(0, 200, 150, 0.5);
}

.htp-example-answer code {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 200, 150, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #00f0c0;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-container { max-height: 90vh; margin: 10px; }
    .modal-header { padding: 20px; }
    .modal-title { font-size: 24px; }
    .modal-close-btn { width: 40px; height: 40px; font-size: 20px; }
    .modal-content { padding: 20px; }
    .htp-heading { font-size: 18px; }
    .htp-text { font-size: 15px; }
    .htp-section { padding: 16px; }
}

@media (max-width: 480px) {
    .modal-overlay { padding: 10px; }
    .modal-container { border-radius: var(--radius-md); max-height: 92vh; }
    .modal-header { padding: 16px; }
    .modal-title { font-size: 20px; }
    .modal-close-btn { width: 38px; height: 38px; font-size: 18px; }
    .modal-content { padding: 16px; }
    .htp-section { padding: 14px; }
    .htp-heading { font-size: 16px; }
    .htp-text { font-size: 14px; }
}
