/* ============================================
   NB DISTILLERS — TASTING ROOM APP
   Premium responsive design for iPhone/Samsung/iPad/Laptop
   ============================================ */

:root {
    /* Core palette */
    --gold: #D4A84C;
    --gold-light: #F5DC9C;
    --gold-dark: #A07C2A;
    --gold-glow: rgba(212, 168, 76, 0.4);
    --cream: #F5F0E8;
    --charcoal: #1A1A1A;
    --dark: #0A0A0A;
    --dark-1: #0F0F11;
    --dark-2: #16161A;
    --dark-3: #1E1E24;

    /* Vibrant accents */
    --rose: #E5647A;
    --amber: #F0924C;
    --teal: #4FC1B5;
    --violet: #A884E8;
    --pink: #E890C0;
    --emerald: #5DC88E;

    /* Text */
    --text-primary: #F5F0E8;
    --text-secondary: rgba(245, 240, 232, 0.7);
    --text-muted: rgba(245, 240, 232, 0.4);

    /* Surfaces */
    --glass: rgba(255, 255, 255, 0.05);
    --glass-strong: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-hover: rgba(255, 255, 255, 0.12);

    /* Shadows & effects */
    --shadow-sm: 0 4px 16px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(212, 168, 76, 0.2);

    /* Radii */
    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 24px;
    --r-xl: 32px;
    --r-full: 999px;

    /* Transitions */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Safe areas */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

/* ============ RESET ============ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

button {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

img { display: block; max-width: 100%; }

/* ============ ANIMATED MESH BACKGROUND ============ */
.mesh-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(ellipse at top, #1a1625 0%, #0A0A0A 60%);
}

.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    mix-blend-mode: screen;
    animation: blobFloat 25s infinite ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #D4A84C 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #E5647A 0%, transparent 70%);
    top: 50%;
    right: -15%;
    animation-delay: -8s;
    opacity: 0.35;
}

.blob-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #A884E8 0%, transparent 70%);
    bottom: -20%;
    left: 20%;
    animation-delay: -15s;
    opacity: 0.3;
}

.blob-4 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #4FC1B5 0%, transparent 70%);
    top: 20%;
    right: 30%;
    animation-delay: -20s;
    opacity: 0.25;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(80px, -60px) scale(1.1); }
    66% { transform: translate(-60px, 80px) scale(0.95); }
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#particles {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--gold-light);
    box-shadow: 0 0 8px var(--gold-glow);
    opacity: 0;
    animation: floatParticle 8s infinite ease-in-out;
}

@keyframes floatParticle {
    0% { opacity: 0; transform: translateY(105vh) scale(0); }
    15% { opacity: 0.8; }
    85% { opacity: 0.4; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1.2); }
}

/* ============ SCREENS ============ */
.screen {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    padding: calc(20px + var(--safe-top)) calc(20px + var(--safe-right)) calc(20px + var(--safe-bottom)) calc(20px + var(--safe-left));
    transition: opacity 0.4s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.screen.active {
    display: flex;
    opacity: 1;
    animation: screenFadeIn 0.55s var(--ease) forwards;
}

@keyframes screenFadeIn {
    0% { opacity: 0; transform: translateY(16px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============ WELCOME SCREEN ============ */
.welcome-content {
    text-align: center;
    max-width: 640px;
    width: 100%;
    padding: 20px;
}

.logo-container {
    position: relative;
    width: clamp(140px, 28vw, 200px);
    height: clamp(140px, 28vw, 200px);
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: ringPulse 4s infinite ease-in-out;
}

.logo-ring.delay-1 {
    width: 130%;
    height: 130%;
    top: -15%;
    left: -15%;
    opacity: 0.2;
    animation-delay: 1s;
}

.logo-ring.delay-2 {
    width: 160%;
    height: 160%;
    top: -30%;
    left: -30%;
    opacity: 0.12;
    animation-delay: 2s;
}

.logo-ring.delay-3 {
    width: 190%;
    height: 190%;
    top: -45%;
    left: -45%;
    opacity: 0.06;
    animation-delay: 3s;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.08); opacity: 0.5; }
}

.logo-img {
    width: 70%;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 0 24px var(--gold-glow));
    animation: logoFloat 6s infinite ease-in-out;
}

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

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(212, 168, 76, 0.1);
    border: 1px solid rgba(212, 168, 76, 0.25);
    border-radius: var(--r-full);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--gold-light);
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-glow);
    animation: dotPulse 2s infinite;
}

.welcome-title,
.question-title,
.generating-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.welcome-title {
    font-size: clamp(36px, 7.5vw, 68px);
    margin-bottom: 20px;
}

.welcome-title em,
.question-title em,
.generating-title em {
    font-style: italic;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--amber) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 16px rgba(212, 168, 76, 0.3));
}

.welcome-subtitle {
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 300;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.footer-tag {
    padding: 6px 14px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-full);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ============ BUTTONS ============ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    color: var(--dark);
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(14px, 1.8vw, 16px);
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--r-full);
    cursor: pointer;
    transition: all 0.35s var(--ease);
    box-shadow: 0 6px 24px rgba(212, 168, 76, 0.3), inset 0 1px 0 rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
    min-height: 52px;
    min-width: 180px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.8s ease;
}

.btn-primary:active::before,
.btn-primary:hover::before {
    left: 120%;
}

.btn-primary:active,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(212, 168, 76, 0.45), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-primary:disabled {
    opacity: 0.35;
    pointer-events: none;
    transform: none;
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:active svg,
.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--glass-strong);
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    border-radius: var(--r-full);
    cursor: pointer;
    transition: all 0.35s var(--ease);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-height: 48px;
}

.btn-secondary:active,
.btn-secondary:hover {
    background: var(--glass-hover);
    border-color: rgba(212, 168, 76, 0.3);
    transform: translateY(-1px);
}

.pulse-glow {
    animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 6px 24px rgba(212, 168, 76, 0.3), inset 0 1px 0 rgba(255,255,255,0.3); }
    50% { box-shadow: 0 8px 48px rgba(212, 168, 76, 0.6), 0 0 80px rgba(212, 168, 76, 0.25), inset 0 1px 0 rgba(255,255,255,0.3); }
}

/* ============ QUESTION CONTAINER ============ */
.question-container {
    width: 100%;
    max-width: 760px;
    padding: 20px;
    text-align: center;
    animation: screenFadeIn 0.5s var(--ease);
}

.progress-bar {
    width: 100%;
    max-width: 300px;
    height: 4px;
    margin: 0 auto 20px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--r-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    border-radius: var(--r-full);
    box-shadow: 0 0 10px var(--gold-glow);
    transition: width 0.8s var(--ease);
}

.step-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.question-title {
    font-size: clamp(30px, 6vw, 52px);
    margin-bottom: 10px;
}

.question-desc {
    font-size: clamp(14px, 1.8vw, 17px);
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ============ NAME INPUT ============ */
.input-group {
    position: relative;
    max-width: 420px;
    margin: 0 auto 36px;
}

.text-input {
    width: 100%;
    padding: 18px 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 600;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
    caret-color: var(--gold);
}

.text-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.input-line {
    width: 100%;
    height: 2px;
    background: var(--glass-border);
    border-radius: var(--r-full);
    position: relative;
    overflow: hidden;
}

.input-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--gold-light), var(--gold));
    transition: all 0.4s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--gold-glow);
}

.text-input:focus ~ .input-line::after {
    width: 100%;
}

/* ============ OPTIONS GRID ============ */
.options-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
}

.mood-grid { grid-template-columns: repeat(2, 1fr); max-width: 520px; margin-left: auto; margin-right: auto; }
.occasion-grid { grid-template-columns: repeat(2, 1fr); max-width: 520px; margin-left: auto; margin-right: auto; }
.style-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; gap: 10px; }
.base-grid { grid-template-columns: repeat(3, 1fr); max-width: 580px; margin-left: auto; margin-right: auto; }
.pairing-grid { grid-template-columns: repeat(3, 1fr); max-width: 620px; margin-left: auto; margin-right: auto; gap: 10px; }

.option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 16px;
    background: var(--glass);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    min-height: 110px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.option-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 168, 76, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.option-card:active::before,
.option-card:hover::before { opacity: 1; }

.option-card:active,
.option-card:hover {
    border-color: rgba(212, 168, 76, 0.4);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.option-card.selected {
    border-color: var(--gold);
    background: rgba(212, 168, 76, 0.1);
    box-shadow: 0 0 30px rgba(212, 168, 76, 0.25), inset 0 0 20px rgba(212, 168, 76, 0.05);
}

.option-card.selected::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12l5 5L20 7' stroke='%231A1A1A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 13px;
    animation: checkPop 0.4s var(--ease-bounce);
    box-shadow: 0 2px 10px rgba(212, 168, 76, 0.5);
}

@keyframes checkPop {
    0% { transform: scale(0) rotate(-180deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.option-emoji {
    font-size: clamp(36px, 7vw, 44px);
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    transition: transform 0.4s var(--ease-bounce);
}

.option-card:active .option-emoji,
.option-card:hover .option-emoji,
.option-card.selected .option-emoji { transform: scale(1.2) rotate(-5deg); }

.option-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(13px, 1.7vw, 15px);
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.25;
    text-align: center;
}

.option-sub {
    font-size: clamp(11px, 1.4vw, 13px);
    font-weight: 300;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.3;
}

/* Horizontal card */
.option-card.horizontal {
    flex-direction: row;
    padding: 18px 20px;
    gap: 16px;
    text-align: left;
    min-height: 72px;
}

.option-card.horizontal .option-label,
.option-card.horizontal .option-sub { text-align: left; }

.option-emoji-sm {
    font-size: clamp(30px, 5vw, 36px);
    line-height: 1;
    flex-shrink: 0;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    transition: transform 0.35s var(--ease-bounce);
}

.option-card.horizontal:active .option-emoji-sm,
.option-card.horizontal:hover .option-emoji-sm,
.option-card.horizontal.selected .option-emoji-sm { transform: scale(1.18) rotate(-8deg); }

.option-text { display: flex; flex-direction: column; gap: 4px; flex: 1; }

/* ============ PILLS (FLAVOUR) ============ */
.flavour-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 620px;
    margin: 0 auto 28px;
}

.option-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    background: var(--glass);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--r-full);
    cursor: pointer;
    transition: all 0.35s var(--ease);
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(13px, 1.6vw, 15px);
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 44px;
}

.option-pill:active,
.option-pill:hover {
    border-color: rgba(212, 168, 76, 0.4);
    background: rgba(212, 168, 76, 0.06);
    transform: translateY(-1px);
}

.option-pill.selected {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(212, 168, 76, 0.18), rgba(240, 146, 76, 0.1));
    color: var(--gold-light);
    box-shadow: 0 4px 20px rgba(212, 168, 76, 0.2);
}

.pill-icon { font-size: 18px; line-height: 1; }

/* ============ PAIRING CARDS (NUTS & FRUITS) ============ */
.pairing-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    background: var(--glass);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
    min-height: 92px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pairing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(240, 146, 76, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pairing-card:active::before,
.pairing-card:hover::before { opacity: 1; }

.pairing-card:active,
.pairing-card:hover {
    border-color: rgba(240, 146, 76, 0.4);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.pairing-card.selected {
    border-color: var(--amber);
    background: rgba(240, 146, 76, 0.1);
    box-shadow: 0 0 24px rgba(240, 146, 76, 0.25);
}

.pairing-card.selected::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--amber), var(--gold));
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12l5 5L20 7' stroke='%231A1A1A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px;
    animation: checkPop 0.4s var(--ease-bounce);
}

.pairing-emoji {
    font-size: clamp(32px, 6vw, 40px);
    line-height: 1;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,0.3));
    transition: transform 0.4s var(--ease-bounce);
}

.pairing-card:active .pairing-emoji,
.pairing-card:hover .pairing-emoji,
.pairing-card.selected .pairing-emoji { transform: scale(1.25) rotate(-8deg); }

/* ============ BASE VISUAL ============ */
.base-visual {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-bottom: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3), inset 0 2px 6px rgba(255,255,255,0.15);
    transition: transform 0.4s var(--ease-bounce);
}

.base-card:active .base-visual,
.base-card:hover .base-visual,
.base-card.selected .base-visual { transform: scale(1.12); }

.base-shine {
    position: absolute;
    top: 8%;
    left: 15%;
    width: 40%;
    height: 25%;
    background: rgba(255,255,255,0.35);
    border-radius: 50%;
    filter: blur(2px);
}

.vodka-visual { background: radial-gradient(circle at 30% 25%, #f0f8ff, #c0d8f0 60%, #8098b0); }
.gin-visual { background: radial-gradient(circle at 30% 25%, #d8f0e0, #88c8a0 60%, #487860); }
.whisky-visual { background: radial-gradient(circle at 30% 25%, #f0c888, #d48040 60%, #8c4818); }
.rum-visual { background: radial-gradient(circle at 30% 25%, #e89078, #b85040 60%, #6c2820); }
.open-visual { background: conic-gradient(from 0deg, #D4A84C, #E5647A, #A884E8, #4FC1B5, #D4A84C); animation: openRotate 8s linear infinite; }

@keyframes openRotate { to { transform: rotate(360deg); } }

/* ============ SLIDER ============ */
.slider-container {
    max-width: 480px;
    margin: 0 auto 36px;
    padding: 0 10px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(11px, 1.4vw, 13px);
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
    text-align: center;
}

.slider-labels span { display: flex; flex-direction: column; gap: 4px; font-size: 20px; }
.slider-labels span { font-size: 11px; }
.slider-labels span:first-line { font-size: 24px; }

.slider-track {
    position: relative;
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--r-full);
    cursor: pointer;
    touch-action: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--gold), var(--amber), var(--rose));
    border-radius: var(--r-full);
    transition: width 0.1s ease;
    box-shadow: 0 0 12px var(--gold-glow);
}

.slider-thumb {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border: 4px solid var(--dark);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    transition: transform 0.15s ease;
    touch-action: none;
    box-shadow: 0 4px 16px rgba(212, 168, 76, 0.5);
}

.thumb-pulse {
    position: absolute;
    inset: -8px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: thumbRipple 2s infinite ease-out;
}

@keyframes thumbRipple {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

.slider-thumb:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 6px 24px rgba(212, 168, 76, 0.7);
}

.intensity-value {
    margin-top: 22px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 600;
    font-style: italic;
    color: var(--gold-light);
    text-align: center;
}

/* ============ CAMERA SCREEN ============ */
.camera-container { max-width: 620px; }

.camera-preview-wrap {
    position: relative;
    width: clamp(220px, 55vw, 300px);
    height: clamp(220px, 55vw, 300px);
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--dark-2);
    border: 2px solid var(--glass-border);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 60px rgba(212, 168, 76, 0.15);
}

.camera-preview-wrap video,
.camera-preview-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transform: scaleX(-1);
    display: block;
}

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

.camera-ring {
    position: absolute;
    width: 94%;
    height: 94%;
    border: 2px dashed rgba(212, 168, 76, 0.4);
    border-radius: 50%;
    animation: cameraRingSpin 20s linear infinite;
}

.camera-ring-inner {
    position: absolute;
    width: 88%;
    height: 88%;
    border: 1px solid rgba(212, 168, 76, 0.2);
    border-radius: 50%;
    animation: cameraRingSpin 30s linear infinite reverse;
}

@keyframes cameraRingSpin { to { transform: rotate(360deg); } }

.camera-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.btn-skip {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.btn-skip:active,
.btn-skip:hover { color: var(--gold-light); }

/* ============ GENERATING SCREEN ============ */
.generating-container {
    text-align: center;
    padding: 20px;
    max-width: 580px;
}

.orb-container {
    position: relative;
    width: clamp(140px, 32vw, 180px);
    height: clamp(140px, 32vw, 180px);
    margin: 0 auto 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb {
    width: 45%;
    height: 45%;
    background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold) 50%, var(--gold-dark));
    border-radius: 50%;
    animation: orbPulse 2s infinite ease-in-out;
    box-shadow: 0 0 60px rgba(212, 168, 76, 0.6), 0 0 120px rgba(212, 168, 76, 0.3), inset 0 -6px 16px rgba(0,0,0,0.2);
}

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

.orb-ring {
    position: absolute;
    width: 70%;
    height: 70%;
    border: 1px solid var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: orbRingExpand 3s infinite ease-out;
}

.orb-ring.delay-1 { animation-delay: 1s; }
.orb-ring.delay-2 { animation-delay: 2s; }

@keyframes orbRingExpand {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(2.2); opacity: 0; }
}

.orb-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold-light);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--gold-glow);
    animation: sparkle 2s infinite;
}

.orb-sparkle.s1 { top: 10%; left: 30%; animation-delay: 0s; }
.orb-sparkle.s2 { top: 30%; right: 5%; animation-delay: 0.5s; }
.orb-sparkle.s3 { bottom: 20%; left: 10%; animation-delay: 1s; }
.orb-sparkle.s4 { bottom: 10%; right: 25%; animation-delay: 1.5s; }

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

.generating-title {
    font-size: clamp(28px, 5vw, 40px);
    margin-bottom: 36px;
}

.generating-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.gen-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(13px, 1.6vw, 15px);
    font-weight: 400;
    color: var(--text-muted);
    transition: all 0.5s ease;
    padding: 6px 16px;
    border-radius: var(--r-full);
}

.gen-step.active { color: var(--text-primary); background: rgba(212, 168, 76, 0.08); }
.gen-step.done { color: var(--gold); }

.gen-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all 0.4s ease;
}

.gen-step.active .gen-dot {
    background: var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
    animation: dotPulse 1s infinite;
}

.gen-step.done .gen-dot { background: var(--gold); }

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

/* ============ PROFILE SCREEN ============ */
#screen-profile {
    align-items: flex-start;
    padding-top: 0;
    padding-bottom: 0;
}

.profile-container {
    width: 100%;
    max-width: 760px;
    height: 100dvh;
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: calc(36px + var(--safe-top)) 20px calc(36px + var(--safe-bottom));
    scrollbar-width: none;
}

.profile-container::-webkit-scrollbar { display: none; }

.profile-header {
    text-align: center;
    margin-bottom: 40px;
}

.avatar-wrapper {
    width: clamp(200px, 40vw, 260px);
    height: clamp(200px, 40vw, 260px);
    margin: 0 auto 24px;
    position: relative;
}

.avatar-particle-field {
    position: absolute;
    inset: -20px;
    pointer-events: none;
    overflow: hidden;
    border-radius: 50%;
}

.avatar-particle-field .ap {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold-light);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--gold-glow);
    animation: avatarOrbit 8s linear infinite;
}

@keyframes avatarOrbit {
    from { transform: rotate(0deg) translateX(140px) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    to { transform: rotate(360deg) translateX(140px) rotate(-360deg); opacity: 0; }
}

.avatar-wrapper::before {
    content: '';
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(212, 168, 76, 0.2);
    border-radius: 50%;
    animation: ringPulse 4s infinite ease-in-out;
}

#avatarCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: avatarReveal 1.2s var(--ease-bounce);
}

@keyframes avatarReveal {
    0% { opacity: 0; transform: scale(0.6) rotate(-10deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.profile-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(30px, 5.5vw, 44px);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.profile-archetype {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(12px, 1.6vw, 14px);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 16px;
}

.profile-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
    font-style: italic;
}

/* ============ FLAVOUR DNA ============ */
.flavour-dna { margin-bottom: 40px; }

.section-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(12px, 1.6vw, 14px);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 24px;
    text-align: center;
}

.dna-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 560px;
    margin: 0 auto;
}

.dna-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dna-label {
    width: clamp(70px, 14vw, 100px);
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(12px, 1.4vw, 13px);
    font-weight: 500;
    color: var(--text-secondary);
    text-align: right;
    flex-shrink: 0;
}

.dna-track {
    flex: 1;
    height: 10px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--r-full);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

.dna-fill {
    height: 100%;
    border-radius: var(--r-full);
    width: 0;
    transition: width 1.4s var(--ease);
    box-shadow: 0 0 8px currentColor;
}

.dna-value {
    width: 42px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(12px, 1.4vw, 13px);
    font-weight: 700;
    color: var(--gold-light);
    text-align: left;
}

/* ============ RECOMMENDATIONS ============ */
.recommendations { margin-bottom: 36px; }

.reco-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 620px;
    margin: 0 auto;
}

.reco-card {
    display: flex;
    gap: 18px;
    padding: 20px;
    background: linear-gradient(135deg, var(--glass-strong), var(--glass));
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    transition: all 0.4s var(--ease);
    animation: cardSlideIn 0.7s var(--ease) both;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.reco-card:nth-child(1) { animation-delay: 0.1s; }
.reco-card:nth-child(2) { animation-delay: 0.3s; }
.reco-card:nth-child(3) { animation-delay: 0.5s; }

@keyframes cardSlideIn {
    0% { opacity: 0; transform: translateY(24px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.reco-card:active,
.reco-card:hover {
    border-color: rgba(212, 168, 76, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.reco-bottle {
    width: clamp(80px, 15vw, 100px);
    height: clamp(110px, 20vw, 130px);
    border-radius: var(--r-sm);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.reco-bottle-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5));
    transition: transform 0.4s var(--ease-bounce);
}

.reco-card:active .reco-bottle-img,
.reco-card:hover .reco-bottle-img { transform: scale(1.1) rotate(-3deg); }

.reco-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.reco-match {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-light);
}

.reco-match-dot {
    width: 7px;
    height: 7px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--gold-glow);
    animation: dotPulse 2s infinite;
}

.reco-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 700;
    line-height: 1.2;
    margin: 2px 0;
}

.reco-type {
    font-size: clamp(12px, 1.4vw, 13px);
    font-weight: 500;
    color: var(--text-secondary);
}

.reco-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(13px, 1.6vw, 15px);
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: 6px;
}

.reco-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(15px, 1.8vw, 17px);
    font-weight: 700;
    color: var(--gold-light);
    margin-top: 6px;
}

/* Cocktail suggestion */
.reco-cocktail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(212, 168, 76, 0.08), rgba(240, 146, 76, 0.04));
    border: 1px solid rgba(212, 168, 76, 0.15);
    border-radius: var(--r-sm);
    transition: all 0.3s ease;
}

.reco-card:active .reco-cocktail,
.reco-card:hover .reco-cocktail {
    background: linear-gradient(135deg, rgba(212, 168, 76, 0.12), rgba(240, 146, 76, 0.06));
    border-color: rgba(212, 168, 76, 0.25);
}

.cocktail-emoji { font-size: 26px; line-height: 1; flex-shrink: 0; margin-top: 2px; }

.cocktail-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.cocktail-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.8;
}

.cocktail-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(14px, 1.8vw, 16px);
    font-weight: 700;
}

.cocktail-recipe {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(12px, 1.5vw, 14px);
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ============ PROFILE ACTIONS & FOOTER ============ */
.profile-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.profile-footer {
    text-align: center;
    padding-top: 28px;
    border-top: 1px solid var(--glass-border);
}

.nb-badge {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.footer-logo {
    height: 36px;
    width: auto;
    opacity: 0.5;
    filter: drop-shadow(0 0 10px rgba(212, 168, 76, 0.1));
}

.profile-footer p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

/* ============ MODAL ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 20px;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    position: relative;
    background: linear-gradient(135deg, var(--dark-3), var(--dark-2));
    border: 1px solid var(--glass-border);
    border-radius: var(--r-xl);
    padding: 36px 28px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s var(--ease-bounce);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:active,
.modal-close:hover { background: var(--glass-hover); color: var(--text-primary); transform: rotate(90deg); }

.modal-emoji { font-size: 48px; margin-bottom: 12px; }

.modal-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 3.5vw, 30px);
    font-weight: 700;
    margin-bottom: 10px;
}

.modal-content > p {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

.tasting-options {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.tasting-tier {
    flex: 1;
    padding: 18px 8px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    transition: all 0.3s ease;
}

.tasting-tier.featured {
    border-color: var(--gold);
    background: rgba(212, 168, 76, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(212, 168, 76, 0.15);
}

.tier-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.tasting-tier.featured .tier-badge { color: var(--gold); }

.tier-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.2;
}

.tier-price {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--gold-light);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* iPhone SE, small Androids (≤375px wide) */
@media (max-width: 380px) {
    .welcome-title { font-size: 34px; }
    .question-title { font-size: 26px; }
    .option-card { padding: 16px 10px; min-height: 96px; }
    .option-emoji { font-size: 32px; }
    .mood-grid, .occasion-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .base-grid { grid-template-columns: repeat(2, 1fr); }
    .pairing-grid { grid-template-columns: repeat(2, 1fr); }
    .option-pill { padding: 10px 16px; font-size: 13px; }
    .btn-primary { padding: 14px 28px; min-width: 160px; }
    .welcome-footer { gap: 6px; }
    .footer-tag { font-size: 10px; padding: 5px 10px; }
}

/* iPhone 12/13/14/15 portrait (~390-430px wide) */
@media (min-width: 381px) and (max-width: 480px) {
    .base-grid { grid-template-columns: repeat(2, 1fr); }
    .pairing-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .pairing-card { padding: 12px 6px; min-height: 80px; }
    .pairing-emoji { font-size: 30px; }
    .option-label { font-size: 13px; }
}

/* Small tablets & large phones landscape (481px-767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .base-grid { grid-template-columns: repeat(3, 1fr); }
    .pairing-grid { grid-template-columns: repeat(4, 1fr); }
}

/* iPad portrait (768-834px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .mood-grid, .occasion-grid { grid-template-columns: repeat(4, 1fr); max-width: 720px; }
    .base-grid { grid-template-columns: repeat(5, 1fr); max-width: 720px; }
    .pairing-grid { grid-template-columns: repeat(4, 1fr); max-width: 720px; }
    .style-grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
    .welcome-title { font-size: 56px; }
    .question-title { font-size: 44px; }
}

/* iPad Pro & laptop (1024px+) */
@media (min-width: 1024px) {
    .mood-grid, .occasion-grid { grid-template-columns: repeat(4, 1fr); max-width: 840px; }
    .base-grid { grid-template-columns: repeat(5, 1fr); max-width: 860px; }
    .pairing-grid { grid-template-columns: repeat(6, 1fr); max-width: 900px; }
    .style-grid { grid-template-columns: repeat(2, 1fr); max-width: 820px; }
    .question-container { max-width: 900px; }
}

/* Large desktops (1440px+) */
@media (min-width: 1440px) {
    .welcome-content { max-width: 720px; }
    .question-container { max-width: 960px; }
    .welcome-title { font-size: 68px; }
    .question-title { font-size: 52px; }
}

/* Landscape phones (short viewport) */
@media (max-height: 520px) and (orientation: landscape) {
    .logo-container { width: 90px; height: 90px; margin-bottom: 16px; }
    .welcome-title { font-size: 28px; margin-bottom: 12px; }
    .welcome-subtitle { margin-bottom: 20px; font-size: 13px; }
    .welcome-footer { margin-top: 20px; }
    .question-title { font-size: 24px; }
    .question-desc { margin-bottom: 20px; font-size: 13px; }
    .option-card { padding: 14px 10px; min-height: 80px; }
    .option-emoji { font-size: 28px; }
    .btn-primary { padding: 12px 24px; min-height: 44px; }
    .orb-container { width: 90px; height: 90px; margin-bottom: 16px; }
    .generating-title { font-size: 22px; margin-bottom: 16px; }
    .generating-steps { gap: 8px; }
    .gen-step { font-size: 12px; }
    .camera-preview-wrap { width: 180px; height: 180px; margin-bottom: 14px; }
    .step-label { margin-bottom: 12px; }
    .progress-bar { margin-bottom: 12px; }
}

/* Short heights even in portrait */
@media (max-height: 700px) and (orientation: portrait) {
    .welcome-subtitle { margin-bottom: 24px; }
    .welcome-footer { margin-top: 24px; }
    .question-title { font-size: clamp(26px, 5vw, 38px); }
    .question-desc { margin-bottom: 20px; }
    .options-grid { margin-bottom: 20px; }
    .option-card { padding: 16px 12px; min-height: 96px; }
    .pairing-card { min-height: 80px; padding: 12px 8px; }
}
