/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-grad-a: #667eea;
    --bg-grad-b: #764ba2;
    --surface: rgba(255, 255, 255, 0.95);
    --text: #333;
    --muted: #636e72;
    --primary-a: #4A90E2;
    --primary-b: #357ABD;
    --danger: #e74c3c;
}

.dark {
    --bg-grad-a: #0f172a;
    --bg-grad-b: #1f2937;
    --surface: rgba(20, 24, 35, 0.9);
    --text: #e5e7eb;
    --muted: #9ca3af;
    --primary-a: #60a5fa;
    --primary-b: #3b82f6;
    --danger: #f87171;
}

.low-stimulus * { 
    animation: none !important; 
    transition: none !important; 
}
.low-stimulus .floating-shapes { 
    display: none; 
}
.low-stimulus .pulse-ring { 
    display: none; 
}
.low-stimulus .panic-mode-btn { 
    animation: none !important;
    box-shadow: none !important;
}

body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--bg-grad-a) 0%, var(--bg-grad-b) 100%);
    min-height: 100vh;
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-container {
    max-width: 100%;
    min-height: 100vh;
    background: var(--surface);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="0%" r="100%"><stop offset="0%" stop-color="white" stop-opacity="0.1"/><stop offset="100%" stop-color="white" stop-opacity="0"/></radialGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>');
    pointer-events: none;
}

.app-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
    position: relative;
    z-index: 1;
}
.header-controls { 
    position: absolute; 
    top: 0.75rem; 
    right: 0.75rem; 
    display: flex; 
    gap: 0.5rem; 
    z-index: 2; 
}

.icon-btn { 
    background: rgba(255,255,255,0.2); 
    color: #fff; 
    border: none; 
    padding: 0.4rem 0.6rem; 
    border-radius: 999px; 
    font-size: 0.85rem; 
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: rgba(255,255,255,0.3);
}

.icon-btn[aria-pressed="true"] {
    background: rgba(255,255,255,0.4);
    font-weight: bold;
}

.dark .icon-btn { 
    background: rgba(0,0,0,0.3); 
}

.dark .icon-btn:hover {
    background: rgba(0,0,0,0.4);
}

/* Quick Help Section */
.quick-help {
    padding: 2rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    margin: 1rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.panic-indicator {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.pulse-ring {
    width: 80px;
    height: 80px;
    border: 4px solid #ff6b6b;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

.panic-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #d63031;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.5rem;
    border-radius: 25px;
    border: 3px solid #ff6b6b;
}

.reassurance {
    font-size: 1.3rem;
    font-weight: 500;
    color: #2d3436;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 15px;
}

.emergency-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3); }
    to { box-shadow: 0 4px 25px rgba(231, 76, 60, 0.6); }
}

.emergency-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.panic-mode-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.4);
    animation: pulseGlow 1.5s infinite alternate;
    margin-bottom: 1rem;
    display: block;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes pulseGlow {
    from { 
        box-shadow: 0 6px 25px rgba(255, 107, 107, 0.4);
        transform: scale(1);
    }
    to { 
        box-shadow: 0 8px 35px rgba(255, 107, 107, 0.7);
        transform: scale(1.02);
    }
}

.panic-mode-btn:hover {
    background: linear-gradient(45deg, #e74c3c, #ff6b6b);
    transform: translateY(-3px) scale(1.02);
}

/* Navigation */
.feature-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    margin: 0 1rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.dark .feature-nav { 
    background: rgba(255,255,255,0.08); 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark .nav-btn {
    background: rgba(255,255,255,0.05);
    color: var(--text);
}

.dark .nav-btn:hover {
    background: rgba(255,255,255,0.1);
}

.dark .subtitle, .dark .app-title { 
    color: #fff; 
}

.nav-btn {
    background: #f8f9fa;
    border: none;
    padding: 1.5rem 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    min-height: 80px;
    touch-action: manipulation;
}

.nav-btn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.nav-btn.active {
    background: var(--primary-a);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.nav-icon {
    font-size: 2rem;
}

.nav-text {
    font-size: 1rem;
    font-weight: 600;
}

/* Feature Content */
.feature-content {
    flex: 1;
    padding: 2rem 1rem;
}

.feature-section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.feature-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Breathing Section */
.breathing-container {
    text-align: center;
}

.breathing-circle {
    width: 200px;
    height: 200px;
    border: 4px solid var(--primary-a);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-a), var(--primary-b));
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(74, 144, 226, 0.3);
    transition: all 1s ease;
}

.breathing-circle.inhale {
    transform: scale(1.3);
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.breathing-circle.exhale {
    transform: scale(0.8);
    background: linear-gradient(135deg, #00cec9, #55a3ff);
}

.breathing-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.breathing-instructions {
    background: rgba(74, 144, 226, 0.1);
    padding: 1rem;
    border-radius: 12px;
    color: #2d3436;
    font-size: 1rem;
}

/* Grounding Section */
.grounding-container h2 {
    text-align: center;
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.grounding-intro {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--muted);
}

.grounding-step {
    background: white;
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.grounding-step.active {
    opacity: 1;
    box-shadow: 0 6px 25px rgba(74, 144, 226, 0.2);
    border: 2px solid #4A90E2;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    background: linear-gradient(135deg, var(--primary-a), var(--primary-b));
    color: white;
}

.step-number {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.step-content {
    padding: 1.5rem;
}

.input-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.list-item {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 4px solid #4A90E2;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.grounding-controls {
    text-align: center;
    margin-top: 2rem;
}

/* Calm Section */
.calm-container > div {
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.calm-container h2,
.calm-container h3 {
    color: #2d3436;
    margin-bottom: 1rem;
}

.sound-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.sound-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: inherit;
}

.sound-btn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.sound-btn.active {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

.floating-shapes {
    height: 200px;
    position: relative;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    margin-bottom: 1rem;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 20px;
    height: 20px;
    background: #ffffff;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 15px;
    height: 15px;
    background: #ffeaa7;
    top: 60%;
    left: 70%;
    animation-delay: 2s;
}

.shape-3 {
    width: 25px;
    height: 25px;
    background: #fab1a0;
    top: 40%;
    left: 50%;
    animation-delay: 4s;
}

.shape-4 {
    width: 18px;
    height: 18px;
    background: #a29bfe;
    top: 70%;
    left: 20%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-10px); }
    75% { transform: translateY(-15px) translateX(5px); }
}

.affirmation-text {
    background: linear-gradient(135deg, var(--primary-a), var(--primary-b));
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
}

/* Help Section */
.help-container > div {
    margin-bottom: 2rem;
}

.help-container h2 {
    text-align: center;
    color: var(--text);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #e74c3c;
}

.contact-card h4 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-link {
    display: inline-block;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    margin: 0.25rem 0.5rem 0.25rem 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.contact-card p {
    color: #636e72;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.self-help-tips {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.self-help-tips h3 {
    color: var(--text);
    margin-bottom: 1rem;
}

.self-help-tips ul {
    list-style: none;
    padding: 0;
}

.self-help-tips li {
    background: #f8f9fa;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border-left: 4px solid #00b894;
    position: relative;
    padding-left: 2.5rem;
}

.self-help-tips li::before {
    content: '✓';
    position: absolute;
    left: 1rem;
    color: #00b894;
    font-weight: bold;
}

/* Buttons */
.primary-btn {
    background: linear-gradient(135deg, var(--primary-a), var(--primary-b));
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    font-family: inherit;
    min-height: 60px;
    touch-action: manipulation;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.secondary-btn {
    background: #f8f9fa;
    color: #2d3436;
    border: 2px solid #e9ecef;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.secondary-btn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .sound-buttons {
        grid-template-columns: 1fr;
    }
    
    .breathing-circle {
        width: 150px;
        height: 150px;
    }
    
    .breathing-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .step-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .nav-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .app-title {
        font-size: 1.8rem;
    }
    
    .feature-content {
        padding: 1rem;
    }
    
    .quick-help {
        margin: 0.5rem;
        padding: 1.5rem 1rem;
    }
    
    .feature-nav {
        margin: 0 0.5rem;
        gap: 0.25rem;
    }
    
    .nav-btn {
        padding: 0.75rem 0.25rem;
    }
    
    .nav-icon {
        font-size: 1.2rem;
    }
    
    .nav-text {
        font-size: 0.75rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
button:focus,
.contact-link:focus {
    outline: 3px solid #4A90E2;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .breathing-circle {
        border-width: 6px;
    }
    
    .nav-btn.active {
        background: #000;
        color: #fff;
    }
}

/* Panic Timer Styles */
.panic-timer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-a), var(--primary-b));
    color: white;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.timer-content {
    padding: 1rem;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.timer-message {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timer-elapsed, .timer-remaining {
    font-size: 1rem;
    margin: 0.25rem 0;
}

.timer-elapsed span, .timer-remaining span {
    font-weight: 700;
    font-size: 1.2rem;
}

.timer-progress {
    background: rgba(255, 255, 255, 0.2);
    height: 8px;
    border-radius: 4px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-bar {
    background: #00b894;
    height: 100%;
    width: 0%;
    transition: width 1s ease;
    border-radius: 4px;
}

.timer-content.completion {
    background: linear-gradient(135deg, #00b894, #00a085);
    border-radius: 15px;
    margin: 1rem;
}

.completion-message {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.completion-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Panic Mode Styles */
.panic-mode {
    overflow: hidden;
}

.panic-mode .feature-nav {
    display: none;
}

.panic-mode .quick-help {
    display: none;
}

.panic-mode .breathing-circle {
    width: 250px;
    height: 250px;
    font-size: 1.5rem;
}

.panic-mode .breathing-controls {
    margin-top: 3rem;
}

.panic-mode .primary-btn {
    padding: 2rem 4rem;
    font-size: 1.5rem;
}

.panic-escape-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}
/* Game */
.game-container { 
    background: white; 
    padding: 1.5rem; 
    border-radius: 15px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    text-align: center;
}

.dark .game-container { 
    background: rgba(255,255,255,0.08); 
}

#snakeCanvas { 
    width: 100%; 
    max-width: 360px; 
    height: auto; 
    background: #0b1220; 
    border-radius: 12px; 
    display: block; 
    margin: 0 auto 1rem;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.game-controls { 
    display: flex; 
    gap: 0.75rem; 
    align-items: center; 
    justify-content: center; 
    flex-wrap: wrap; 
    margin-bottom: 1rem;
}

.game-status { 
    color: var(--text); 
    font-size: 1.1rem;
    font-weight: 600;
}

.game-hint {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Mobile game controls */
.mobile-controls {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-width: 200px;
    margin: 1rem auto 0;
}

.mobile-controls.visible {
    display: grid;
}

.direction-btn {
    background: var(--primary-a);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
}

.direction-btn:hover {
    background: var(--primary-b);
}

.direction-btn.empty {
    visibility: hidden;
}

@media (max-width: 768px) {
    .mobile-controls {
        display: grid;
    }
    
    .game-hint {
        font-size: 0.8rem;
    }
}

.panic-escape-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile-First Responsive Enhancements */
@media (max-width: 768px) {
    .panic-mode-btn {
        padding: 2rem 2rem;
        font-size: 1.1rem;
        width: 90%;
    }
    
    .primary-btn {
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
        min-height: 55px;
    }
    
    .nav-btn {
        padding: 1.25rem 0.5rem;
        min-height: 75px;
    }
    
    .nav-icon {
        font-size: 1.75rem;
    }
    
    .nav-text {
        font-size: 0.9rem;
    }
    
    .breathing-circle {
        width: 180px;
        height: 180px;
        font-size: 1.1rem;
    }
    
    .panic-mode .breathing-circle {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 480px) {
    .panic-mode-btn {
        padding: 1.75rem 1.5rem;
        font-size: 1rem;
        width: 95%;
    }
    
    .primary-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 50px;
    }
    
    .nav-btn {
        padding: 1rem 0.25rem;
        min-height: 70px;
    }
    
    .nav-icon {
        font-size: 1.5rem;
    }
    
    .nav-text {
        font-size: 0.8rem;
    }
    
    .breathing-circle {
        width: 160px;
        height: 160px;
        font-size: 1rem;
    }
    
    .panic-mode .breathing-circle {
        width: 200px;
        height: 200px;
    }
    
    .timer-content {
        padding: 0.75rem;
    }
    
    .timer-message {
        font-size: 1rem;
    }
    
    .timer-elapsed, .timer-remaining {
        font-size: 0.9rem;
    }
}

/* Enhanced Touch Targets */
button {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.contact-link {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
}

/* No-scroll mobile optimization */
.panic-mode .main-content {
    height: 100vh;
    overflow: hidden;
}

.panic-mode .feature-content {
    height: calc(100vh - 200px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panic-mode .breathing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: center;
}