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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Typography */
h1 {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Onboarding specific typography and color overrides */
.onboarding-screen h1 {
    color: #333;
    text-shadow: none;
}

.onboarding-screen h2 {
    color: #333;
}

.onboarding-screen h3 {
    color: #333;
}

.onboarding-screen p {
    color: #333;
}

.onboarding-screen .tagline {
    color: #666;
}

.onboarding-screen .fusion-text {
    color: #667eea;
}

.onboarding-screen .style-tag {
    color: white; /* Keep white on dark gradient overlay */
}

.onboarding-screen .success-message {
    color: #666;
}

/* Common Button Styles */
.primary-button, .secondary-button {
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.primary-button {
    background: linear-gradient(45deg, #11998e, #38ef7d);
    color: white;
}

.secondary-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* Onboarding button overrides */
.onboarding-screen .secondary-button {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid #667eea;
}

.primary-button:hover, .secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.primary-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* =============================================================================
   ONBOARDING STYLES
   ============================================================================= */

.onboarding-screen {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

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

.logo-section {
    margin-bottom: 40px;
}

.logo {
    font-size: 4rem;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0;
}

.content-section {
    margin-bottom: 30px;
}

.action-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.secondary-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.secondary-link:hover {
    text-decoration: underline;
}

/* Info Points */
.info-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.info-point {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    padding: 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
}

.info-point .icon {
    font-size: 1.5rem;
}

.info-point p {
    margin: 0;
    color: #333;
}

/* Consent Checkbox */
.consent-checkbox {
    margin: 20px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.learn-more {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

/* Camera Section */
.camera-container {
    position: relative;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#camera {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.face-guide {
    width: 200px;
    height: 250px;
    border: 2px dashed rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

.camera-tips {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    text-align: center;
    width: 100%;
}

.captured-photo {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#selfiePreview {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid transparent;
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.3);
}

.photo-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
    color: #11998e;
    font-weight: 600;
}

/* Animal Selection */
.animal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.animal-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.animal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.animal-card.selected {
    border-color: #11998e;
    box-shadow: 0 0 20px rgba(17, 153, 142, 0.4);
}

.animal-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.animal-info {
    padding: 10px;
    text-align: center;
}

.animal-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.animal-description {
    font-size: 12px;
    color: #666;
}

.search-section {
    margin-top: 20px;
}

.text-input {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
}

.text-input:focus {
    border-color: #667eea;
}

/* Banana Fusion */
.fusion-progress {
    text-align: center;
    padding: 40px;
}

.banana-animation {
    font-size: 4rem;
    animation: bounce 1s infinite;
    margin-bottom: 20px;
}

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

.fusion-text {
    font-size: 1.2rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 20px;
}

.progress-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
}

.dot.active {
    background: #667eea;
    animation: pulse-dot 0.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.preview-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.preview-card:hover {
    transform: scale(1.05);
}

.preview-card.selected {
    border-color: #11998e;
    box-shadow: 0 0 15px rgba(17, 153, 142, 0.4);
}

.preview-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.style-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 15px 10px 5px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* Name & Temperament */
.selected-preview {
    margin-bottom: 20px;
}

.selected-preview img {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid #11998e;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.dice-button {
    background: #667eea;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}

.suggestion-names {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.name-suggestion {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.name-suggestion:hover {
    background: #667eea;
    color: white;
}

.temperament-selector {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.temperament-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    min-width: 80px;
}

.temperament-option:hover {
    border-color: #667eea;
}

.temperament-option.selected {
    border-color: #11998e;
    background: rgba(17, 153, 142, 0.1);
}

.temperament-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.temperament-option span:last-child {
    font-size: 14px;
    font-weight: 600;
}

.tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.temperament-option:hover .tooltip {
    opacity: 1;
}

/* Success Screen */
.success-animation {
    text-align: center;
    margin-bottom: 30px;
}

.confetti {
    font-size: 3rem;
    margin-bottom: 20px;
}

@keyframes confetti {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-100px) rotate(180deg); opacity: 0; }
}

.your-bananimon img {
    width: 250px;
    height: 250px;
    border-radius: 20px;
    object-fit: cover;
    border: 4px solid #11998e;
    margin-bottom: 15px;
}

.bananimon-info {
    text-align: center;
}

.bananimon-info .name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.bananimon-info .type {
    color: #666;
    font-size: 1rem;
}

.success-message {
    color: #666;
    font-size: 1.1rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

/* =============================================================================
   HOME SCREEN STYLES
   ============================================================================= */

.home-container {
    max-width: 800px;
}

.home-header {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    align-items: center;
}

.bananimon-portrait {
    position: relative;
    flex-shrink: 0;
}

.bananimon-portrait img {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid #11998e;
}

.evolution-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(45deg, #11998e, #38ef7d);
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.evolution-badge.stage-1 {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.evolution-badge.stage-2 {
    background: linear-gradient(45deg, #f093fb, #f5576c);
}

.evolution-badge.stage-3 {
    background: linear-gradient(45deg, #ffd89b, #19547b);
}

.bananimon-info {
    flex: 1;
}

.bananimon-info h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: left;
    text-shadow: none;
}

.type-info {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.bond-display {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #333;
}

.bond-icon {
    font-size: 1.5rem;
}

.streak-dots {
    display: flex;
    gap: 5px;
}

.streak-dot {
    font-size: 16px;
}

.streak-dot.active {
    animation: flicker 1s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.flame-animation {
    animation: flame 1.5s infinite;
}

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

/* Needs Panel */
.needs-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

.need-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.need-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.need-info {
    flex: 1;
}

.need-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.need-bar {
    width: 100%;
    height: 8px;
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.need-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.need-fill.good {
    background: linear-gradient(90deg, #11998e, #38ef7d);
}

.need-fill.okay {
    background: linear-gradient(90deg, #f7971e, #ffd200);
}

.need-fill.low {
    background: linear-gradient(90deg, #ff6b6b, #ee5a52);
}

.need-value {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

/* Daily Ritual Card */
.daily-ritual-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.ritual-header {
    text-align: center;
    margin-bottom: 20px;
}

.ritual-subtitle {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.ritual-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.ritual-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.ritual-button:hover {
    border-color: #11998e;
    transform: translateY(-2px);
}

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

.ritual-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.ritual-status {
    font-size: 12px;
    color: #666;
}

.ritual-status.completed {
    color: #11998e;
    font-weight: 600;
}

.daily-ritual-card.completed .ritual-button {
    border-color: #11998e;
    background: rgba(17, 153, 142, 0.1);
}

/* Quests Section */
.quests-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.quests-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quest-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.quest-item.completed {
    border-color: #11998e;
    background: rgba(17, 153, 142, 0.1);
}

.quest-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.quest-info {
    flex: 1;
}

.quest-description {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

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

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #11998e, #38ef7d);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.progress-text {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
}

.quest-reward {
    color: #11998e;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    min-width: 60px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
}

.action-button.primary {
    background: linear-gradient(45deg, #11998e, #38ef7d);
    color: white;
}

.action-button.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 2px solid #ddd;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

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

/* Coach Bubble */
.coach-bubble {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 15px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 100;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.coach-avatar {
    font-size: 2rem;
    flex-shrink: 0;
}

.coach-message {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

/* =============================================================================
   MODAL STYLES
   ============================================================================= */

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

.care-modal, .rest-modal, .evolution-modal {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-button:hover {
    background: #f0f0f0;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

/* Care Game Styles */
.care-game {
    text-align: center;
}

.game-instructions {
    margin-bottom: 30px;
    color: #666;
    font-size: 16px;
}

/* Feed Game */
.feed-interface {
    margin: 30px 0;
}

.feed-bowl {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pulse-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 4px solid #11998e;
    border-radius: 50%;
}

.target-ring {
    position: absolute;
    width: 140px;
    height: 140px;
    border: 4px solid #ffdb4a;
    border-radius: 50%;
}

.bowl-icon {
    font-size: 3rem;
    z-index: 10;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Groom Game */
.groom-interface {
    margin: 30px 0;
}

.groom-target {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    cursor: pointer;
    border: 2px dashed #11998e;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 153, 142, 0.1);
    transition: all 0.3s ease;
}

.groom-target:hover {
    background: rgba(17, 153, 142, 0.2);
}

.groom-svg {
    width: 150px;
    height: 150px;
}

/* Train Game */
.train-interface {
    margin: 30px 0;
}

.train-target {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.target-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.target-circle:hover {
    background: #11998e;
}

.flash {
    background: #ffdb4a !important;
    animation: flash-pulse 0.8s ease-in-out;
}

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

.game-progress {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    font-weight: 600;
    color: #333;
}

.game-result {
    text-align: center;
}

.result-message {
    font-size: 18px;
    color: #11998e;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Rest Schedule Modal */
.time-selector {
    margin: 20px 0;
}

.time-input {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
}

.time-input:focus {
    border-color: #11998e;
}

.rest-info {
    background: rgba(17, 153, 142, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.rest-info p {
    margin: 0;
    color: #333;
    font-size: 14px;
}

/* Evolution Modal */
.evolution-modal {
    text-align: center;
    max-width: 600px;
}

.evolution-content {
    padding: 40px;
}

.evolution-animation {
    position: relative;
    margin-bottom: 30px;
}

.evolution-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(17, 153, 142, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.evolution-bananimon {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    object-fit: cover;
    border: 4px solid #11998e;
    position: relative;
    z-index: 2;
}

#evolutionTitle {
    color: #11998e;
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: none;
}

#evolutionMessage {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.evolution-details {
    background: rgba(17, 153, 142, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.stage-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.new-stage {
    font-size: 1.5rem;
    font-weight: 600;
    color: #11998e;
}

.stage-description {
    color: #666;
    font-size: 1rem;
}

@keyframes evolutionGlow {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

/* =============================================================================
   LEGACY STYLES (for backwards compatibility)
   ============================================================================= */

.camera-section, .animal-section, .generate-section, .result-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.camera-section h2, .animal-section h2, .result-section h2 {
    color: #333;
}

.camera-controls {
    text-align: center;
    margin-top: 20px;
}

.camera-controls button {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    margin: 0 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.camera-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#generatePet, #generateAnother, #regenerate {
    display: block;
    margin: 0 auto;
    background: linear-gradient(45deg, #11998e, #38ef7d);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.result-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.result-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.result-option {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Age slider legacy styles */
.age-slider-section {
    margin-top: 30px;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    width: 100%;
}

.age-slider {
    flex: 1;
    max-width: 400px;
    height: 8px;
    border-radius: 5px;
    background: rgba(155, 155, 155, 0.3);
    outline: none;
    -webkit-appearance: none;
}

.age-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.age-display {
    color: #333;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

.age-display span {
    color: #11998e;
    font-size: 20px;
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .home-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .bananimon-info h1 {
        text-align: center;
        font-size: 1.5rem;
    }
    
    .needs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ritual-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .ritual-button {
        padding: 12px 15px;
        min-width: 60px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .animal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .preview-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .temperament-selector {
        flex-direction: column;
        gap: 10px;
    }
    
    .temperament-option {
        flex-direction: row;
        gap: 10px;
        padding: 10px 15px;
    }
    
    .coach-bubble {
        position: static;
        margin: 20px 0;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .result-option {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .onboarding-screen {
        padding: 25px;
        margin: 10px;
    }
    
    .animal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .animal-image {
        height: 80px;
    }
    
    .animal-info {
        padding: 8px;
    }
    
    .animal-name {
        font-size: 14px;
    }
    
    .animal-description {
        font-size: 11px;
    }
    
    .primary-button, .secondary-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .modal-overlay {
        padding: 10px;
    }
    
    .care-modal, .rest-modal {
        max-height: 95vh;
    }
}

/* =============================================================================
   UTILITY CLASSES
   ============================================================================= */

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

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}