/* ALIGN - The Game of Life */
/* A PNEUMA Experience */

:root {
    /* Core Colors */
    --bg-deep: #0a0a12;
    --bg-mid: #12121f;
    --bg-light: #1a1a2e;
    
    /* Energy Colors */
    --energy-low: #ff6b6b;
    --energy-mid: #ffd93d;
    --energy-high: #6bcb77;
    --energy-full: #4ecdc4;
    
    /* Alignment Colors */
    --align-glow: #ffd700;
    --align-core: #ffaa00;
    --align-soft: rgba(255, 215, 0, 0.3);
    
    /* Accent Colors */
    --accent-calm: #7b68ee;
    --accent-growth: #98d8aa;
    --accent-release: #c9b1ff;
    --accent-courage: #ff8c42;
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    /* Spacing */
    --safe-top: env(safe-area-inset-top, 20px);
    --safe-bottom: env(safe-area-inset-bottom, 20px);
    
    /* Fonts */
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Quicksand', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    overflow: hidden;
    touch-action: manipulation;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
}

#app {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Particle Background */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5;
}

/* Screens */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    z-index: 1;
}

.screen.active {
    display: flex;
}

/* ==================== START SCREEN ==================== */

#start-screen {
    justify-content: center;
    align-items: center;
    background: radial-gradient(ellipse at center, var(--bg-mid) 0%, var(--bg-deep) 70%);
}

.start-content {
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

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

.logo-container {
    margin-bottom: 2rem;
}

.orb-preview {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.orb-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--align-soft) 0%, transparent 70%);
    animation: orbPulse 3s ease-in-out infinite;
}

.orb-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 30% 30%, #fff5cc, var(--align-glow) 40%, var(--align-core) 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 40px var(--align-soft),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
    animation: orbFloat 4s ease-in-out infinite;
}

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

@keyframes orbFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-10px); }
}

.game-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--align-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-subtitle {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.game-tagline {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.primary-btn {
    position: relative;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bg-deep);
    background: linear-gradient(135deg, var(--align-glow) 0%, var(--align-core) 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.primary-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
}

.primary-btn:active {
    transform: scale(0.98);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: btnShine 3s infinite;
}

@keyframes btnShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.hint-text {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* ==================== WORLD SCREEN ==================== */

#world-screen {
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 50%, #1a2030 100%);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--safe-top) + 10px) 20px 15px;
    z-index: 10;
}

.energy-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.energy-icon {
    font-size: 1.2rem;
}

.energy-bar {
    width: 100px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.energy-fill {
    height: 100%;
    width: 75%;
    background: linear-gradient(90deg, var(--energy-mid), var(--energy-high));
    border-radius: 4px;
    transition: width 0.5s ease, background 0.5s ease;
}

.energy-text {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 35px;
}

.alignment-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.alignment-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.alignment-indicator {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, var(--align-glow), var(--align-core));
    border-radius: 50%;
    box-shadow: 0 0 20px var(--align-soft);
    animation: alignPulse 2s ease-in-out infinite;
}

@keyframes alignPulse {
    0%, 100% { box-shadow: 0 0 20px var(--align-soft); }
    50% { box-shadow: 0 0 30px var(--align-glow); }
}

.world-container {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#world-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* The Alignment Orb - Interactive */
.orb-interactive {
    position: relative;
    width: 180px;
    height: 180px;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.3s ease;
}

.orb-interactive:active {
    transform: scale(0.92);
}

.orb-outer-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250%;
    height: 250%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 60%);
    animation: outerGlow 4s ease-in-out infinite;
}

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

.orb-inner-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 50%);
    animation: innerGlow 3s ease-in-out infinite;
}

@keyframes innerGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.08); }
}

.orb-body {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at 35% 35%, 
        #fffde7 0%, 
        #ffd54f 20%, 
        #ffb300 50%, 
        #ff8f00 80%, 
        #e65100 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 60px rgba(255, 215, 0, 0.6),
        inset 0 0 40px rgba(255, 255, 255, 0.4),
        inset -20px -20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease;
}

.orb-highlight {
    position: absolute;
    top: 15%;
    left: 20%;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 50%;
    filter: blur(5px);
}

.orb-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.world-ui {
    position: absolute;
    top: 80px;
    right: 20px;
    z-index: 10;
}

.creature-count {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.creature-icon {
    font-size: 1.2rem;
}

.creature-num {
    font-weight: 600;
}

/* Bottom Navigation */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    padding: 15px 10px calc(var(--safe-bottom) + 10px);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn.active {
    color: var(--align-glow);
}

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

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

.nav-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==================== QUEST SCREEN ==================== */

#quest-screen {
    background: linear-gradient(180deg, var(--bg-deep) 0%, #1a1525 100%);
}

.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--safe-top) + 10px) 20px 15px;
}

.screen-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
}

.back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
}

.header-spacer {
    width: 40px;
}

.quest-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.quest-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.quest-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(90deg, var(--accent-courage), #ff6b42);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.quest-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 15px;
}

.quest-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.8;
}

.quest-rewards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.reward {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.reward-icon {
    font-size: 1.2rem;
}

.reward-text {
    font-size: 0.85rem;
    font-weight: 500;
}

.quest-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-courage), #ff6b42);
    border: none;
    border-radius: 16px;
    color: white;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.quest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.3);
}

.quest-alt-btn {
    width: 100%;
    margin-top: 15px;
    padding: 14px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.quest-alt-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.quest-complete {
    text-align: center;
}

.complete-animation {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.complete-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--energy-high) 0%, transparent 70%);
    border-radius: 50%;
    animation: completeBurst 1s ease-out;
}

@keyframes completeBurst {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.complete-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
}

/* ==================== RELEASE SCREEN ==================== */

#release-screen {
    background: linear-gradient(180deg, #0f0f1a 0%, #1a1530 100%);
}

.release-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.release-prompt {
    text-align: center;
}

.release-question {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.release-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.release-option {
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
}

.release-option:hover {
    background: rgba(201, 177, 255, 0.1);
    border-color: var(--accent-release);
}

.release-input {
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.release-instruction {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--accent-release);
}

#release-text {
    width: 100%;
    height: 150px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 177, 255, 0.3);
    border-radius: 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    resize: none;
    margin-bottom: 20px;
}

#release-text:focus {
    outline: none;
    border-color: var(--accent-release);
    box-shadow: 0 0 20px rgba(201, 177, 255, 0.2);
}

#release-text::placeholder {
    color: var(--text-muted);
}

.release-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--accent-release), #a78bfa);
    border: none;
    border-radius: 16px;
    color: var(--bg-deep);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.release-btn:hover {
    transform: scale(1.02);
}

.release-animation {
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.butterflies-container {
    height: 300px;
    position: relative;
    margin-bottom: 20px;
}

.butterfly {
    position: absolute;
    font-size: 2rem;
    animation: flyAway 3s ease-out forwards;
}

@keyframes flyAway {
    0% { 
        opacity: 1; 
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    100% { 
        opacity: 0; 
        transform: translate(var(--fly-x), -300px) rotate(var(--fly-rotate)) scale(0.5);
    }
}

.release-message {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--accent-release);
}

/* ==================== CREATURES SCREEN ==================== */

#creatures-screen {
    background: linear-gradient(180deg, var(--bg-deep) 0%, #1a2020 100%);
}

.creatures-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.creatures-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.creature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.creature-card.locked {
    opacity: 0.4;
    filter: grayscale(1);
}

.creature-card.unlocked {
    border-color: var(--align-soft);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.creature-avatar {
    font-size: 3rem;
    margin-bottom: 10px;
}

.creature-card-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.creature-card-trait {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==================== CREATURE MODAL ==================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    width: 360px;
    padding: 40px 30px;
    text-align: center;
}

.creature-discovery {
    animation: modalPop 0.5s ease;
}

@keyframes modalPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.discovery-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: discoveryPulse 2s ease-in-out infinite;
}

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

.discovery-label {
    font-size: 0.85rem;
    color: var(--align-glow);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}

.creature-reveal {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    animation: creatureFloat 3s ease-in-out infinite;
}

@keyframes creatureFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.creature-emoji {
    font-size: 4rem;
}

.creature-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.creature-wisdom {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.creature-unlock {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* ==================== BOSS BATTLE ==================== */

#boss-screen {
    background: linear-gradient(180deg, #0a0510 0%, #150820 50%, #0a0a15 100%);
}

.boss-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: calc(var(--safe-top) + 20px) 20px var(--safe-bottom);
}

.boss-header {
    text-align: center;
    margin-bottom: 30px;
}

.boss-label {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(90deg, #ff4444, #ff6666);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
}

.boss-name {
    font-family: var(--font-display);
    font-size: 2rem;
}

.boss-arena {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.boss-visual {
    text-align: center;
    margin-bottom: 40px;
}

.storm-cloud {
    font-size: 6rem;
    animation: stormShake 0.5s ease-in-out infinite;
}

@keyframes stormShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.battle-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.bar-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bar-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    width: 80px;
}

.boss-health-bar,
.player-calm-bar {
    flex: 1;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.boss-health-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #ff4444, #ff6666);
    transition: width 0.3s ease;
}

.player-calm-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--accent-calm), #a78bfa);
    transition: width 0.3s ease;
}

.boss-instructions {
    text-align: center;
    margin-bottom: 30px;
}

.boss-instructions p {
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.breath-guide {
    display: flex;
    justify-content: center;
}

.breath-circle {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123, 104, 238, 0.2);
    border: 2px solid var(--accent-calm);
    border-radius: 50%;
    animation: breathGuide 6s ease-in-out infinite;
}

@keyframes breathGuide {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.breath-text {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--accent-calm);
}

.breath-circle.breathing-in {
    transform: scale(1.4) !important;
    background: rgba(123, 104, 238, 0.4);
    border-color: #a78bfa;
}

.breath-circle {
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

/* ==================== VICTORY SCREEN ==================== */

#victory-screen {
    background: radial-gradient(ellipse at center, #1a2030 0%, var(--bg-deep) 100%);
    justify-content: center;
    align-items: center;
}

.victory-container {
    text-align: center;
    padding: 40px;
    position: relative;
}

.victory-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(107, 203, 119, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: victoryPulse 2s ease-in-out infinite;
}

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

.victory-title {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.victory-message {
    color: var(--text-secondary);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.victory-rewards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.victory-reward {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-weight: 500;
}

/* ==================== UTILITIES ==================== */

.hidden {
    display: none !important;
}

/* Haptic feedback visual */
.haptic-flash {
    animation: hapticFlash 0.15s ease;
}

@keyframes hapticFlash {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
    100% { filter: brightness(1); }
}

/* Touch ripple effect */
.touch-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.3);
    transform: scale(0);
    animation: rippleExpand 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleExpand {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

