/* =============================================
   花十二 · Lusion-Inspired Design System
   Phase 1 + Phase 2 Upgrade: Enhanced Visual Fidelity & Advanced Interactions
   ============================================= */

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-1: rgba(255,255,255,0.92);
    --gray-2: rgba(255,255,255,0.58);
    --gray-3: rgba(255,255,255,0.28);
    --gray-4: rgba(255,255,255,0.1);
    
    /* Dynamic accent colors (updated by JS) */
    --accent: #8faa8a;
    --accent-dim: rgba(143, 170, 138, 0.12);

    --font-sans: 'Space Grotesk', -apple-system, sans-serif;
    --font-serif: 'Noto Serif SC', Georgia, serif;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    font-size: 16px;
    /* Lenis handles smooth scrolling */
}

body {
    font-family: var(--font-sans);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { 
    color: inherit; 
    text-decoration: none; 
    cursor: none; 
}

button { 
    cursor: none; 
    border: none;
    background: none;
}

/* ===== WebGL Canvas ===== */
#webgl-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ===== Enhanced Custom Cursor (Morphing States) ===== */
.cursor {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: difference;
    transition: opacity 0.3s;
}

.cursor-dot {
    width: 6px; 
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    position: absolute;
    top: -3px; 
    left: -3px;
    transition: transform 0.15s var(--ease);
}

.cursor-ring {
    width: 40px; 
    height: 40px;
    border: 1.5px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    position: absolute;
    top: -20px; 
    left: -20px;
    transition: all 0.4s var(--ease);
}

.cursor-radiate {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    position: absolute;
    top: -30px;
    left: -30px;
    opacity: 0;
    transition: all 0.4s var(--ease);
    animation: radiate 2s ease-in-out infinite;
}

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

/* Cursor mode: text (vertical line) */
.cursor-text .cursor-ring {
    width: 2px;
    height: 50px;
    border-radius: 1px;
    top: -25px;
    left: -1px;
    border: none;
    background: var(--white);
}

.cursor-text .cursor-dot {
    opacity: 0;
}

/* Cursor mode: card (magnify) */
.cursor-card .cursor-ring {
    width: 80px;
    height: 80px;
    top: -40px;
    left: -40px;
    border-color: var(--accent);
    border-width: 2px;
}

.cursor-card .cursor-dot {
    transform: scale(2);
}

/* Cursor mode: cta (radiate) */
.cursor-cta .cursor-radiate {
    opacity: 1;
}

.cursor-cta .cursor-ring {
    border-color: var(--accent);
    border-width: 2px;
}

/* ===== Loading Screen ===== */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--black);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 60px;
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.loader.done {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.loader-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.loader-counter {
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 6px;
    font-variant-numeric: tabular-nums;
    color: var(--gray-1);
}

.loader-bar {
    width: 240px;
    height: 2px;
    background: var(--gray-4);
    overflow: hidden;
    border-radius: 1px;
}

.loader-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--white));
    transition: width 0.1s linear;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 32px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    mix-blend-mode: difference;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 4px;
    transition: letter-spacing 0.3s var(--ease);
}

.nav-logo:hover {
    letter-spacing: 6px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-2);
    transition: color 0.4s var(--ease);
}

.nav-contact:hover { 
    color: var(--white); 
}

.nav-contact-dot {
    width: 8px; 
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.5); }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--white);
    font-size: 14px;
    font-family: var(--font-sans);
    font-weight: 400;
    padding: 10px 0;
    transition: gap 0.3s var(--ease);
}

.nav-menu:hover {
    gap: 18px;
}

.menu-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 28px;
}

.menu-lines span {
    height: 2px;
    background: var(--white);
    transition: transform 0.3s var(--ease);
}

.nav-menu:hover .menu-lines span:first-child {
    transform: translateX(6px);
}

.nav-menu:hover .menu-lines span:last-child {
    transform: translateX(-6px);
}

/* ===== Full-screen Menu Overlay (Enhanced) ===== */
.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s var(--ease);
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.menu-link {
    font-family: var(--font-serif);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    color: var(--gray-2);
    position: relative;
    display: inline-block;
    overflow: hidden;
    transition: color 0.4s var(--ease);
}

.menu-link::before {
    content: attr(data-index);
    position: absolute;
    left: -60px;
    top: 0;
    font-size: 16px;
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--gray-3);
}

.menu-link:hover {
    color: var(--white);
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease);
}

.menu-link:hover::after {
    transform: translateX(0);
}

/* ===== Hero Section (Upgraded Typography) ===== */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 48px;
}

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

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(64px, 10vw, 140px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 80px;
    text-shadow: 0 0 60px rgba(212, 175, 55, 0.3);
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .word {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
}

.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.hero-scroll:hover {
    opacity: 1;
}

.scroll-text {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
}

.scroll-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--white), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 0.6; }
    50% { transform: scaleY(1.3); opacity: 1; }
}

/* ===== Section Base ===== */
.section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 160px 48px;
}

.section-inner {
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== About Section ===== */
.about-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 60px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-3);
}

.label-index {
    font-variant-numeric: tabular-nums;
    color: var(--accent);
}

.label-text {
    font-weight: 500;
}

.about-heading {
    font-family: var(--font-serif);
    font-size: clamp(48px, 6vw, 88px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 48px;
}

.about-heading .line {
    display: block;
    overflow: hidden;
}

.about-heading .word {
    display: inline-block;
}

.about-desc {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.7;
    color: var(--gray-2);
    max-width: 800px;
}

/* ===== Work Section ===== */
.work-header {
    margin-bottom: 80px;
}

.work-sub {
    font-size: 18px;
    color: var(--gray-2);
    margin-top: 16px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.project-card {
    position: relative;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--gray-4);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.card-img {
    position: relative;
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, 
        hsla(var(--hue), 60%, 40%, 0.3), 
        hsla(var(--hue), 70%, 50%, 0.15)
    );
    overflow: hidden;
}

.card-distortion-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.8;
}

.card-content {
    padding: 32px;
}

.card-tag {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 15px;
    color: var(--gray-2);
}

.card-arrow {
    position: absolute;
    bottom: 32px;
    right: 32px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-3);
    border-radius: 50%;
    transition: all 0.4s var(--ease);
}

.project-card:hover .card-arrow {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.2) rotate(45deg);
}

/* ===== Intelligence Section ===== */
.intel-heading {
    font-family: var(--font-serif);
    font-size: clamp(56px, 7vw, 96px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 80px;
    background: linear-gradient(135deg, var(--white), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intel-heading .line {
    display: block;
    overflow: hidden;
}

.intel-heading .word {
    display: inline-block;
}

.intel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
}

.intel-item {
    padding: 40px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--gray-4);
    border-radius: 12px;
    transition: all 0.5s var(--ease);
}

.intel-item:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--accent);
    transform: translateY(-4px);
}

.intel-num {
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    margin-bottom: 24px;
    font-weight: 300;
    letter-spacing: 2px;
}

.intel-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.intel-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-2);
}

/* ===== Contact Section ===== */
.contact-inner {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-heading {
    font-family: var(--font-serif);
    font-size: clamp(64px, 9vw, 120px);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 60px;
    text-shadow: 0 0 80px rgba(255, 215, 0, 0.4);
}

.contact-heading .line {
    display: block;
    overflow: hidden;
}

.contact-heading .word {
    display: inline-block;
}

.contact-cta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 18px;
    font-weight: 500;
    padding: 24px 48px;
    background: var(--white);
    color: var(--black);
    border-radius: 50px;
    transition: all 0.4s var(--ease);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
}

.contact-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 80px rgba(255, 215, 0, 0.5);
}

.contact-cta svg {
    transition: transform 0.4s var(--ease);
}

.contact-cta:hover svg {
    transform: translateX(8px);
}

/* ===== Footer ===== */
.footer {
    position: relative;
    z-index: 1;
    padding: 80px 48px 40px;
    border-top: 1px solid var(--gray-4);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 4px;
    display: block;
    margin-bottom: 16px;
}

.footer-left p {
    color: var(--gray-2);
    font-size: 14px;
}

.footer-right {
    display: flex;
    gap: 80px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-col a {
    font-size: 14px;
    color: var(--gray-2);
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--gray-4);
}

.footer-bottom p {
    font-size: 12px;
    color: var(--gray-3);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor {
        display: none;
    }

    .nav {
        padding: 24px 24px;
    }

    .nav-logo {
        font-size: 18px;
    }

    .nav-right {
        gap: 20px;
    }

    .hero {
        padding: 60px 24px;
    }

    .hero-title {
        margin-bottom: 60px;
    }

    .section {
        padding: 100px 24px;
    }

    .about-heading {
        margin-bottom: 32px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .intel-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 40px;
    }

    .footer-right {
        flex-direction: column;
        gap: 40px;
    }

    .menu-link {
        font-size: 48px;
    }

    .menu-link::before {
        left: -40px;
        font-size: 14px;
    }
}

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

/* ===== Phase 3: Product Images, Detail Modal, Quiz ===== */

/* Product Card Images */
.card-real-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s var(--ease-out);
}

.project-card:hover .card-real-img {
    opacity: 1;
}

/* Tea Detail Modal */
.tea-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease);
}

.tea-detail-modal.active {
    opacity: 1;
    pointer-events: all;
}

.detail-close {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--gray-4);
    border: 1px solid var(--gray-3);
    border-radius: 50%;
    color: var(--white);
    font-size: 32px;
    line-height: 1;
    cursor: none;
    transition: all 0.3s var(--ease);
    z-index: 10;
}

.detail-close:hover {
    background: var(--gray-3);
    transform: rotate(90deg);
}

.detail-content {
    display: flex;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    gap: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out) 0.2s;
}

.tea-detail-modal.active .detail-content {
    opacity: 1;
    transform: translateY(0);
}

.detail-hero {
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

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

.detail-3d-canvas {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 200px;
    height: 200px;
    pointer-events: none;
}

.detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    padding-right: 20px;
}

.detail-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    border-radius: 20px;
    font-size: 14px;
    width: fit-content;
}

.detail-title {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
}

.detail-ingredients,
.detail-brewing,
.detail-suitable {
    padding: 24px;
    background: var(--gray-4);
    border: 1px solid var(--gray-3);
    border-radius: 8px;
}

.detail-ingredients h4,
.detail-brewing h4,
.detail-suitable h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent);
}

.detail-ingredients ul {
    list-style: none;
}

.detail-ingredients li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-4);
}

.detail-ingredients li:last-child {
    border-bottom: none;
}

.detail-brewing p,
.detail-suitable p {
    line-height: 1.6;
    color: var(--gray-2);
}

/* Quiz Modal */
.quiz-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease);
}

.quiz-modal.active {
    opacity: 1;
    pointer-events: all;
}

.quiz-close {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--gray-4);
    border: 1px solid var(--gray-3);
    border-radius: 50%;
    color: var(--white);
    font-size: 32px;
    line-height: 1;
    cursor: none;
    transition: all 0.3s var(--ease);
    z-index: 10;
}

.quiz-close:hover {
    background: var(--gray-3);
    transform: rotate(90deg);
}

.quiz-container {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
}

.quiz-progress {
    width: 100%;
    height: 4px;
    background: var(--gray-4);
    border-radius: 2px;
    margin-bottom: 60px;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.5s var(--ease-out);
}

.quiz-content {
    position: relative;
}

.quiz-step {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateX(100px);
    transition: all 0.6s var(--ease-out);
}

.quiz-step.active {
    opacity: 1;
    pointer-events: all;
    position: relative;
    transform: translateX(0);
}

.quiz-step.prev {
    transform: translateX(-100px);
}

.quiz-title {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    background: var(--gray-4);
    border: 1px solid var(--gray-3);
    border-radius: 8px;
    color: var(--white);
    font-size: 18px;
    font-weight: 500;
    cursor: none;
    transition: all 0.3s var(--ease);
    text-align: left;
}

.quiz-option:hover {
    background: var(--gray-3);
    border-color: var(--accent);
    transform: translateX(10px);
}

.option-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.option-text {
    flex: 1;
}

.option-desc {
    font-size: 14px;
    color: var(--gray-2);
}

/* Quiz Result */
.quiz-result {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.quiz-particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.result-card {
    position: relative;
    background: var(--gray-4);
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    opacity: 0;
    transform: scale(0.8);
    animation: resultAppear 0.8s var(--ease-out) 0.5s forwards;
}

@keyframes resultAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.result-image {
    width: 100%;
    max-width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 24px;
}

.result-name {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.result-tag {
    color: var(--accent);
    font-size: 16px;
    margin-bottom: 16px;
}

.result-desc {
    color: var(--gray-2);
    line-height: 1.6;
    margin-bottom: 32px;
}

.result-view-btn {
    padding: 16px 40px;
    background: var(--accent);
    color: var(--black);
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: none;
    transition: all 0.3s var(--ease);
}

.result-view-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

/* Mobile Responsive for Detail & Quiz */
@media (max-width: 768px) {
    .detail-content {
        flex-direction: column;
        width: 95%;
        height: 90vh;
        gap: 30px;
        overflow-y: auto;
    }

    .detail-hero {
        height: 50vh;
    }

    .detail-3d-canvas {
        width: 120px;
        height: 120px;
        bottom: 20px;
        right: 20px;
    }

    .detail-title {
        font-size: 32px;
    }

    .detail-close,
    .quiz-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .quiz-title {
        font-size: 28px;
    }

    .quiz-option {
        padding: 20px;
        font-size: 16px;
    }

    .option-icon {
        font-size: 24px;
    }

    .result-card {
        padding: 30px 20px;
    }

    .result-image {
        max-width: 200px;
        height: 200px;
    }

    .result-name {
        font-size: 24px;
    }
}

/* View Transitions API Support */
@media (prefers-reduced-motion: no-preference) {
    .tea-detail-modal {
        view-transition-name: tea-detail;
    }
}

/* Lazy Load Fade-in */
.card-real-img {
    animation: fadeIn 0.6s var(--ease-out);
}

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