
/* 
 * ==========================================
 * DESIGN SYSTEM & COMPONENT LIBRARY
 * ==========================================
 */

:root {
    /* Updated Palette - User Requested */
    --bg-color: #FAFAFA;        
    --primary-orange: #FFDAB9;  /* Cream Orange */
    --primary-green: #90EE90;   /* Mint Green */
    --accent-pink: #FFB6C1;     /* Sakura Pink */
    --accent-blue: #6BCBFF;
    --card-bg: #FFFFFF;
    
    /* Typography Colors */
    --text-title: #0A0A0A;      /* Source Han Sans Heavy */
    --text-body: #1F1F1F;       /* LXGW WenKai Light */
    --text-aux: #B2BEC3;
    --text-color: var(--text-body);
    
    /* Shadows & Effects */
    --shadow-soft: 0 10px 40px rgba(45, 52, 54, 0.08);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
    --text-shadow-3d: 0.5px 0.5px 0px rgba(0,0,0,0.2); /* 3D Effect */
    --border-radius-card: 32px;
    --border-radius-inner: 20px;
    
    /* Fonts */
    --font-serif: 'Noto Sans SC', sans-serif; /* Replaced */
    --font-sans: 'LXGW WenKai Lite', sans-serif; /* Replaced */
    --font-art: 'Ma Shan Zheng', cursive;
}

body {
    background: radial-gradient(circle at center, #FAFAFA 0%, #E8E8E8 100%);
    font-family: var(--font-sans);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
}

/* Background Layer - Replaces pattern */
.bg-gradient-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #FAFAFA 0%, #E8E8E8 100%);
}

.bg-pattern-layer {
    display: none; /* Removed */
}

/* Typography Overrides */
h1, h2, h3, .title-large {
    font-family: var(--font-serif);
    font-weight: 900;
    color: var(--text-title);
}

.shadow-text {
    text-shadow: var(--text-shadow-3d);
}

/* Pet Illustration Styles - Paw Print */
.pet-hero-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0 2rem 0;
}

.pet-illustration.paw-print {
    width: 140px;
    height: 140px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.pet-illustration.paw-print:hover {
    transform: scale(0.95); /* Press effect */
}

/* Input Group Vertical */
.input-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 2rem auto;
}

.input-field {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 2px solid #EEE;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--text-body);
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
}

.input-field:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 159, 67, 0.1);
    outline: none;
    transform: translateY(-2px);
}

/* Code Block - Now Visible */
.code-block {
    display: block;
    width: 100%;
}

.code-block.hidden {
    display: none;
}

/* Button Refinement */
.btn-start {
    font-family: var(--font-serif);
    font-weight: 900;
    letter-spacing: 1px;
}

/* Refined Result Card */
.result-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-card);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-soft);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(0,0,0,0.02);
}

.result-subtitle {
    font-size: 0.9rem;
    color: var(--primary-orange);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.archetype-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--text-title);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.result-photo-frame {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    padding: 10px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transform: rotate(-2deg);
    border-radius: 4px;
}

.result-pet-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.result-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.tag-pill {
    background: rgba(255, 159, 67, 0.1);
    color: var(--primary-orange);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Remove old tips box styles if present */
.tips-box { display: none; }


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-body);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background Animations */
.bg-pattern-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('cat-dog-pattern.svg');
    background-size: 300px 300px;
    opacity: 0.15; /* Subtle background */
    animation: bgScroll 60s linear infinite;
    pointer-events: none;
}

@keyframes bgScroll {
    from { background-position: 0 0; }
    to { background-position: 300px 300px; }
}

/* Old Scenes - Deprecated but kept for reference if needed, can be removed */
.bg-scene {
    display: none;
}


.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

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

.landing-subtitle {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-aux);
    text-transform: uppercase;
    margin: 0.5rem 0 2.5rem;
}

.code-block {
    margin: -0.75rem auto 0;
    width: 100%;
    max-width: 520px;
}

.code-block .input-field {
    font-size: 1.1rem;
}

.code-error {
    margin-top: 0.75rem;
    color: #FF6B6B;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
    min-height: 1.2em;
}

.question-card {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(44, 62, 80, 0.08);
    border-radius: 28px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.upload-error {
    display: none;
    margin-top: 1rem;
    color: #FF6B6B;
    font-weight: 700;
    text-align: center;
}

.result-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.result-extra-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.8rem;
    position: relative;
    z-index: 1;
}

.result-extra-box {
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid rgba(44, 62, 80, 0.08);
    border-radius: 22px;
    padding: 1.2rem 1.2rem;
    box-shadow: 0 12px 24px rgba(44, 62, 80, 0.06);
}

.result-extra-box.dark {
    background: #2C3E50;
    border-color: rgba(255, 140, 66, 0.35);
    color: #fff;
    box-shadow: 0 18px 30px rgba(44, 62, 80, 0.25);
}

.result-extra-title {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(127, 140, 141, 0.9);
    margin-bottom: 0.6rem;
}

.result-extra-box.dark .result-extra-title {
    color: rgba(255, 178, 56, 0.9);
}

.result-extra-content {
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 600;
    color: rgba(52, 73, 94, 0.9);
}

.result-extra-box.dark .result-extra-content {
    color: rgba(255, 255, 255, 0.92);
}

.result-extra-content.quote {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.2px;
}

@media (min-width: 520px) {
    .result-extra-grid {
        grid-template-columns: 1fr 1fr;
    }

    .result-actions {
        grid-template-columns: 1fr 1fr;
    }
}

/* Typography */
.title-large {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-title);
    text-shadow: 2px 2px 0px #FFF, 4px 4px 0px var(--accent-pink);
}

.serif {
    font-family: var(--font-serif);
}

/* Utilities */
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

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

/* Input with Ears */
.input-wrapper {
    position: relative;
    margin-bottom: 2rem;
    transition: transform 0.3s;
}

.ear {
    position: absolute;
    top: -15px;
    width: 40px;
    height: 40px;
    background: var(--primary-orange);
    border-radius: 50% 50% 0 0;
    z-index: -1;
    transition: all 0.3s;
}

.ear.left { left: 20px; transform: rotate(-15deg); }
.ear.right { right: 20px; transform: rotate(15deg); }

.input-wrapper:focus-within .ear.left { transform: rotate(-25deg) translateY(-5px); }
.input-wrapper:focus-within .ear.right { transform: rotate(25deg) translateY(-5px); }

.input-field {
    width: 100%;
    padding: 1.2rem;
    border: 3px solid var(--text-body);
    border-radius: var(--border-radius-paw);
    background: #FFF;
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--text-body);
    text-align: center;
    box-shadow: 5px 5px 0px var(--text-body);
    transition: all 0.2s;
}

.input-field:focus {
    outline: none;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--text-body);
}

/* Buttons */
.btn-start, .btn-contact, .btn-reupload, .btn-back {
    background: var(--primary-orange);
    color: #FFF;
    border: 3px solid var(--text-body);
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 5px 5px 0px var(--text-body);
    transition: all 0.1s;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto 0;
    display: block;
}

.btn-start:hover, .btn-contact:hover, .btn-reupload:hover, .btn-back:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px var(--text-body);
    background: #FF9E66;
}

.btn-start:active, .btn-contact:active, .btn-reupload:active, .btn-back:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--text-body);
}

.btn-start:disabled {
    background: #CCC;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Progress Bar with Running Pet */
.progress-container {
    width: 100%;
    height: 20px;
    background: rgba(255,255,255,0.5);
    border-radius: 20px;
    border: 2px solid var(--text-body);
    margin-bottom: 2rem;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--primary-green);
    border-radius: 20px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.progress-pet {
    position: absolute;
    right: -15px;
    top: -25px;
    font-size: 2rem;
    transition: transform 0.2s;
    animation: bounce 0.5s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

/* Quiz Section */
.quiz-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary-green);
}

.question-text {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 2rem;
    line-height: 1.3;
    text-align: center;
    color: var(--text-title);
}

.option-btn {
    background: #FFF;
    padding: 1.5rem;
    border-radius: var(--border-radius-paw);
    cursor: pointer;
    font-size: 1.1rem;
    border: 3px solid transparent;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--text-body);
}

.option-btn:hover {
    transform: scale(1.02);
    border-color: var(--primary-orange);
    background: #FFF9F0;
}

.option-btn:active {
    transform: scale(0.95);
    background: var(--primary-orange);
    color: #FFF;
}

.option-btn.modified {
    border: 3px solid var(--primary-orange);
}

/* Upload Section */
.upload-card {
    text-align: center;
}

.upload-area {
    border: 3px dashed var(--primary-green);
    border-radius: 20px;
    padding: 2rem;
    background: #FFF;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-area:hover {
    background: #F0FFFF;
    border-color: var(--accent-pink);
}

.photo-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    object-fit: contain;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-reupload {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    margin: 0;
    width: auto;
    display: inline-block;
}

/* Loader */
.loader-content {
    text-align: center;
}

.paw-loader {
    font-size: 4rem;
    animation: pawSwipe 1s infinite alternate;
    margin-bottom: 1rem;
}

@keyframes pawSwipe {
    0% { transform: rotate(-20deg) translateX(-10px); }
    100% { transform: rotate(20deg) translateX(10px); }
}

/* 
 * ==========================================
 * PASSPORT / MAGAZINE POSTER STYLES
 * ==========================================
 */

/* 1. Visual Container: Physical Folder */
.passport-folder-outer {
    position: relative;
    padding: 10px; /* Space for gradient border */
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); /* Default Gradient */
    border-radius: 5.5rem; /* Extreme Rounded Corner (~88px) */
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.1),
        0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.passport-folder-inner {
    background: #FFF;
    border-radius: 5rem; /* Slightly smaller than outer */
    padding: 4rem 2.5rem 3rem; /* Increased padding for breathing room */
    position: relative;
    overflow: hidden; /* Clip contents to rounded corners */
    min-height: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Texture Overlay */
.texture-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%239C92AC' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

/* 2. Header: Identity */
.passport-header {
    text-align: center;
    margin-bottom: 2.5rem;
    z-index: 2;
    width: 100%;
}

.passport-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--text-aux);
    border: 1px solid var(--text-aux);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.8);
}

.archetype-name {
    font-family: var(--font-serif);
    font-size: 3.2rem; /* Big Identity Title */
    font-weight: 700;
    line-height: 1;
    color: var(--text-title);
    margin: 0;
}

.archetype-subtitle {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-body);
    margin-top: 0.5rem;
    font-weight: 600;
}

/* 3. Visual Center: Photo & Code */
.passport-visual-core {
    position: relative;
    width: 100%;
    max-width: 100%; /* Allow full width */
    margin-bottom: 4rem;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.magazine-photo-frame {
    width: 280px; /* Increased size 1.5-2x */
    height: 210px; /* 4:3 Aspect Ratio */
    border-radius: 24px; /* Soft rounded corners */
    background: #FFF;
    position: relative;
    overflow: visible; 
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.15),
        0 0 0 8px rgba(255, 255, 255, 0.5); /* Border effect */
    transform: rotate(-2deg); /* Slight organic tilt */
}

.magazine-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px; /* Inner radius */
    filter: sepia(0.05) contrast(1.05); 
}

/* Floating MBTI Code */
.floating-mbti-code {
    position: absolute;
    bottom: -25px;
    right: -30px;
    font-family: 'Dancing Script', cursive;
    font-size: 5rem; 
    font-weight: 700;
    line-height: 1;
    
    /* Gradient Text */
    background: linear-gradient(45deg, #FF9F43, #FF9FF3, #54E0C7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; 
    
    transform: rotate(-12deg); 
    z-index: 10;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

/* Art Font Optimization for Conflict Zone */
.conflict-card .conflict-content {
    font-family: 'Ma Shan Zheng', 'ZCOOL XiaoWei', serif; /* Art font */
    font-size: 1.4rem;
    line-height: 1.5;
    text-align: left;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4); /* Enhance contrast */
}

.conflict-card.yellow-paper .conflict-content {
    color: #2D3436;
    font-weight: 500; /* Ensure legibility */
}

.conflict-card.dark-soul .conflict-content {
    color: #FDFBF7;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5); /* Dark background contrast */
    font-style: normal; /* Ma Shan Zheng is already artistic */
}

@media (max-width: 480px) {
    .magazine-photo-frame {
        width: 240px;
        height: 180px;
    }
    
    .floating-mbti-code {
        font-size: 4rem;
        right: -10px;
    }

    .conflict-card .conflict-content {
        font-size: 1.25rem; /* Mobile readability */
    }
}

/* 4. Information Layer */
.passport-tags {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem; /* Increased margin */
    z-index: 2;
}

.passport-tags .tag-pill {
    background: #4A4A4A; /* Dark Grey */
    color: #FFF;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Persona Reveal */
.persona-reveal-box {
    width: 100%;
    max-width: 480px;
    margin-bottom: 3.5rem; /* Increased margin */
    padding-left: 1.5rem;
    border-left: 4px solid var(--primary-orange);
    text-align: left;
    z-index: 2;
}

.persona-content {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    font-style: italic;
    color: var(--text-title);
    line-height: 1.4;
}

/* Minimal Dimensions */
.passport-dimensions {
    display: none; /* Hidden as per user request */
    width: 100%;
    max-width: 300px;
    margin-bottom: 3rem;
    z-index: 2;
}

.mini-dim-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace; /* Technical feel */
    font-size: 0.75rem;
    color: var(--text-aux);
}

.mini-dim-track {
    flex-grow: 1;
    height: 4px;
    background: #EEE;
    margin: 0 10px;
    border-radius: 2px;
    overflow: hidden;
}

.mini-dim-fill {
    height: 100%;
    background: var(--text-body);
}

/* Conflict Zone: Humor vs Emotion */
.conflict-zone-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem; /* Increased gap */
    width: 100%;
    margin-bottom: 4rem; /* Increased margin */
    z-index: 2;
}

.conflict-card {
    padding: 1.5rem;
    position: relative;
    /* Rough edge effect could be added here */
}

/* Hidden Truth - Yellow Paper */
.conflict-card.yellow-paper {
    background: #FFF9C4; /* Light Yellow */
    color: #5D4037;
    transform: rotate(-1deg);
    box-shadow: 2px 4px 10px rgba(0,0,0,0.05);
}

/* Soul Quote - Dark Soul */
.conflict-card.dark-soul {
    background: #2D3436;
    color: #FFF;
    transform: rotate(1deg);
    box-shadow: 2px 4px 15px rgba(0,0,0,0.15);
}

.conflict-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    opacity: 0.7;
}

.conflict-content {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 600;
}

.conflict-content.italic {
    font-style: italic;
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

/* Closing Slogan */
.closing-slogan {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-aux);
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
    opacity: 0.8;
    z-index: 2;
}

/* 5. Footer: SN Code */
.passport-footer {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px dashed #DDD;
    padding-top: 1.5rem;
    z-index: 2;
}

.sn-code {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--text-aux);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.brand-signature {
    font-family: 'Great Vibes', cursive, var(--font-serif); /* Fallback */
    font-size: 0.8rem;
    color: var(--text-aux);
    opacity: 0.6;
}

/* Responsive */
@media (min-width: 600px) {
    .conflict-zone-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.btn-back-container {
    position: absolute;
    left: 0;
    bottom: -60px;
}

.btn-back-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-green);
    color: #FFF;
    border: 2px solid var(--text-body);
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 3px 3px 0px var(--text-body);
    transition: all 0.2s;
}

.btn-back-circle:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px var(--text-body);
}

.btn-back-circle:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--text-body);
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(93, 64, 55, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { background: #FFF; padding: 1rem; border-radius: 20px; max-width: 90%; }
.qr-image { width: 100%; max-width: 300px; border-radius: 10px; }

/* Shake Animation */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px) rotate(-5deg); }
    50% { transform: translateX(10px) rotate(5deg); }
    75% { transform: translateX(-10px) rotate(-5deg); }
    100% { transform: translateX(0); }
}
