/* Sukoon - Mental Wellness Game Styles */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #f093fb;
    --accent: #4facfe;
    --success: #48bb78;
    --warning: #ed8936;
    --danger: #f56565;
    --dark: #2d3748;
    --gray: #718096;
    --light-gray: #e2e8f0;
    --light: #f7fafc;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.splash-content {
    text-align: center;
    color: var(--white);
}

.lotus-animation {
    font-size: 5rem;
    animation: lotusFloat 3s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes lotusFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.splash-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: var(--white);
    border-radius: 2px;
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

.loading-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* App Container */
#app {
    min-height: 100vh;
    padding-bottom: 80px;
}

.hidden {
    display: none !important;
}

/* Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 3px solid var(--white);
    box-shadow: var(--shadow);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
}

.user-level {
    font-size: 0.75rem;
    color: var(--gray);
}

.header-right {
    display: flex;
    gap: 16px;
}

.streak-display, .gems-display {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--light);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.streak-display {
    color: var(--warning);
}

.gems-display {
    color: var(--primary);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border: none;
    background: none;
    color: var(--gray);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius);
}

.nav-btn.active {
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

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

/* Main Content */
.main-content {
    padding-top: 70px;
    padding-bottom: 80px;
}

.screen-content {
    display: none;
    padding: 16px;
    animation: fadeIn 0.3s ease;
}

.screen-content.active {
    display: block;
}

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

/* Home Screen */
.daily-welcome {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--gradient-1);
    border-radius: var(--radius-lg);
    color: var(--white);
}

.daily-welcome h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.daily-quote {
    font-size: 0.95rem;
    opacity: 0.9;
    font-style: italic;
}

/* Daily Check-in */
.daily-checkin-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 2px solid var(--light-gray);
}

.daily-checkin-card.completed {
    border-color: var(--success);
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
}

.checkin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.checkin-header h3 {
    font-size: 1.1rem;
    color: var(--dark);
}

.checkin-status {
    font-size: 0.8rem;
    color: var(--gray);
    background: var(--light);
    padding: 4px 10px;
    border-radius: 12px;
}

.checkin-rewards {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--dark);
}

/* Mood Tracker */
.mood-tracker {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.mood-tracker h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--dark);
}

.mood-options {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.mood-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border: 2px solid var(--light-gray);
    background: var(--white);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.mood-btn:hover, .mood-btn.selected {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
}

.mood-emoji {
    font-size: 1.8rem;
}

.mood-label {
    font-size: 0.75rem;
    color: var(--gray);
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 20px;
}

.quick-actions h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--dark);
}

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

.action-card {
    background: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.action-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.action-title {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.action-duration {
    font-size: 0.75rem;
    color: var(--gray);
}

/* Progress Section */
.progress-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.progress-section h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--dark);
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    text-align: center;
    padding: 12px;
    background: var(--light);
    border-radius: var(--radius);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray);
}

.level-progress {
    margin-top: 16px;
}

.level-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.progress-bar {
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Achievements */
.achievements-preview {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
}

.achievements-preview h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--dark);
}

.achievements-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.achievement-item {
    flex-shrink: 0;
    width: 70px;
    text-align: center;
}

.achievement-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 8px;
    box-shadow: var(--shadow);
}

.achievement-item.locked .achievement-badge {
    background: var(--light-gray);
    filter: grayscale(1);
}

.achievement-name {
    font-size: 0.7rem;
    color: var(--gray);
}

/* Screen Headers */
.screen-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--gradient-1);
    border-radius: var(--radius-lg);
    color: var(--white);
    margin: -16px -16px 24px;
}

.screen-header h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.screen-header p {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Breathing Screen */
.breathing-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    margin-bottom: 24px;
}

.breathing-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease;
}

.breathing-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.1; }
}

.breathing-circle.inhale {
    transform: scale(1.3);
}

.breathing-circle.hold {
    transform: scale(1.3);
}

.breathing-circle.exhale {
    transform: scale(1);
}

.breathing-inner {
    text-align: center;
    color: var(--white);
    z-index: 1;
}

.breathing-text {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.breathing-timer {
    font-size: 2rem;
    font-weight: 700;
}

.technique-selector {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.technique-selector h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--dark);
}

.technique-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.technique-btn {
    flex: 1;
    min-width: 100px;
    padding: 16px;
    border: 2px solid var(--light-gray);
    background: var(--white);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.technique-btn.active {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

.technique-name {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.technique-desc {
    font-size: 0.75rem;
    color: var(--gray);
}

/* Meditation Screen */
.meditation-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.meditation-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

.meditation-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.meditation-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border-radius: var(--radius);
}

.meditation-info {
    flex: 1;
}

.meditation-info h4 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.meditation-info p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 4px;
}

.duration {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

.play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-1);
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
}

/* Meditation Player */
.meditation-player {
    position: fixed;
    bottom: 80px;
    left: 16px;
    right: 16px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 90;
}

.player-visual {
    text-align: center;
    margin-bottom: 20px;
}

.meditation-animation {
    font-size: 4rem;
    margin-bottom: 12px;
    animation: gentleFloat 3s ease-in-out infinite;
}

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

.player-timer {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--light);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.control-btn.play-pause {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    color: var(--white);
    font-size: 1.5rem;
}

/* Games Screen */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.game-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.game-preview {
    height: 120px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.coloring-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 20px;
}

.color-block {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.bubbles-preview {
    display: flex;
    gap: 10px;
}

.preview-bubble {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient-3);
    animation: bubbleFloat 2s ease-in-out infinite;
}

.preview-bubble:nth-child(2) { animation-delay: 0.3s; }
.preview-bubble:nth-child(3) { animation-delay: 0.6s; }

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

.garden-preview {
    font-size: 3rem;
}

.memory-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-size: 1.5rem;
}

.game-info {
    padding: 16px;
}

.game-info h4 {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.game-info p {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Game Container */
#game-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 200;
    display: flex;
    flex-direction: column;
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--gradient-1);
    color: var(--white);
}

.back-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.game-score {
    font-weight: 700;
    font-size: 1.2rem;
}

#game-canvas {
    flex: 1;
    overflow: auto;
    padding: 16px;
}

/* Community Screen */
.community-stats {
    display: flex;
    justify-content: space-around;
    background: var(--gradient-1);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: -16px -16px 24px;
    color: var(--white);
}

.community-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

.leaderboard-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.leaderboard-section h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--dark);
}

.leaderboard-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: var(--light);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--primary);
    color: var(--white);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--light);
    border-radius: var(--radius);
}

.leaderboard-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.leaderboard-rank.top {
    background: gold;
    color: var(--dark);
}

.leaderboard-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.leaderboard-xp {
    font-size: 0.75rem;
    color: var(--gray);
}

/* Daily Challenge */
.daily-challenge {
    margin-bottom: 20px;
}

.daily-challenge h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--dark);
}

.challenge-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.challenge-icon {
    font-size: 2.5rem;
}

.challenge-info {
    flex: 1;
}

.challenge-info h4 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.challenge-info p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.challenge-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.challenge-progress .progress-bar {
    flex: 1;
    height: 6px;
}

.challenge-reward {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

/* Invite Section */
.invite-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.invite-section h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.invite-section p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 16px;
}

.invite-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.invite-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.invite-btn.whatsapp {
    background: #25D366;
    color: var(--white);
}

.invite-btn.telegram {
    background: #0088cc;
    color: var(--white);
}

.invite-btn.copy {
    background: var(--light);
    color: var(--dark);
}

/* Community Posts */
.community-posts {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
}

.community-posts h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--dark);
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-item {
    padding: 16px;
    background: var(--light);
    border-radius: var(--radius);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.post-meta {
    flex: 1;
}

.post-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.post-time {
    font-size: 0.75rem;
    color: var(--gray);
}

.post-content {
    font-size: 0.9rem;
    color: var(--dark);
    line-height: 1.6;
}

.post-actions {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.post-action {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--gray);
    cursor: pointer;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: var(--gradient-1);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    width: 100%;
    padding: 12px 24px;
    background: var(--light);
    color: var(--dark);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    max-width: 320px;
    width: 100%;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.achievement-content .achievement-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.modal-content h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 12px;
}

.modal-content p {
    color: var(--gray);
    margin-bottom: 24px;
}

.mood-suggestion {
    background: var(--light);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--dark);
}

/* Game Specific Styles */
.coloring-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.color-palette {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-option.selected {
    border-color: var(--dark);
    transform: scale(1.2);
}

.mandala-container {
    width: 300px;
    height: 300px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.mandala-svg {
    width: 100%;
    height: 100%;
}

.mandala-svg path {
    fill: var(--white);
    stroke: var(--light-gray);
    stroke-width: 1;
    cursor: pointer;
    transition: fill 0.3s ease;
}

.mandala-svg path:hover {
    opacity: 0.8;
}

/* Bubble Game */
.bubble-game {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 100%);
    border-radius: var(--radius);
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), rgba(255,255,255,0.2));
    box-shadow: inset -5px -5px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    animation: bubbleRise 8s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

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

.bubble.pop {
    animation: pop 0.3s ease forwards;
}

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

/* Zen Garden */
.zen-garden {
    width: 100%;
    height: 400px;
    background: #f5e6d3;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    cursor: crosshair;
}

.zen-garden canvas {
    width: 100%;
    height: 100%;
}

.garden-tools {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

.garden-tool {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    border: 2px solid var(--light-gray);
    background: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.garden-tool.active {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

/* Memory Game */
.memory-game {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 350px;
    margin: 0 auto;
}

.memory-card {
    aspect-ratio: 1;
    background: var(--gradient-1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.memory-card.flipped {
    background: var(--white);
    border: 2px solid var(--primary);
}

.memory-card.matched {
    background: var(--success);
    animation: matchPulse 0.5s ease;
}

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

/* Responsive */
@media (max-width: 380px) {
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .mood-options {
        flex-wrap: wrap;
    }
    
    .mood-btn {
        min-width: 60px;
    }
}

@media (min-width: 768px) {
    #app {
        max-width: 480px;
        margin: 0 auto;
        box-shadow: 0 0 40px rgba(0,0,0,0.1);
    }
    
    .bottom-nav {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .app-header {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--light-gray);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}