/* turingtest.quest -- blobitecture, stacked-sections, cool-grays */
:root {
    --bg-cool: #e8eaed;
    --blob-1: #f0f5ff;
    --blob-2: #f5f0ff;
    --blob-3: #f0fff5;
    --blob-4: #fff5f0;
    --text-primary: #2a3040;
    --text-muted: #7a8090;
    --accent-teal: #4ecdc4;
    --accent-teal-2: #a0e0d8;
    --shadow-soft: 0 8px 32px rgba(40, 50, 70, 0.08);
    --morph-organic: 30% 70% 70% 30% / 30% 30% 70% 70%;
    --morph-geometric: 50%;
    --t-morph: 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Quicksand', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-cool);
    overflow-x: hidden;
}

/* === BLOB SECTIONS === */
.blob-section {
    position: relative;
    border-radius: 32px;
    background: var(--blob-1);
    padding: 48px;
    margin: 24px auto;
    max-width: 900px;
    box-shadow: var(--shadow-soft);
    transition: border-radius 800ms cubic-bezier(0.4, 0, 0.2, 1);
    scroll-margin-top: 24px;
}

.blob-section:hover {
    border-radius: 40% 60% 50% 50% / 60% 40% 50% 50%;
}

.blob-tint-1 { background: var(--blob-1); }
.blob-tint-2 { background: var(--blob-2); }
.blob-tint-3 { background: var(--blob-3); }
.blob-tint-4 { background: var(--blob-4); }

.blob-section.welcome-blob:hover { border-radius: 48px; }

/* === WELCOME BLOB === */
.welcome-blob {
    min-height: 80vh;
    border-radius: 48px;
    margin-top: 48px;
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blob-1);
    overflow: hidden;
    position: relative;
}

.welcome-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.welcome-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 32px 16px;
}

.welcome-eyebrow {
    font-family: 'Varela Round', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: lowercase;
    margin-bottom: 18px;
}

.welcome-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(40px, 7vw, 88px);
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.welcome-sub {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(18px, 2.4vw, 26px);
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* === BUTTONS / MORPH === */
.btn-blob {
    display: inline-block;
    font-family: 'Varela Round', sans-serif;
    font-size: 16px;
    color: var(--text-primary);
    background: var(--accent-teal);
    padding: 18px 36px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: var(--morph-organic);
    transition: border-radius var(--t-morph), transform 240ms, background 240ms;
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.3);
}

.btn-blob:hover {
    border-radius: var(--morph-geometric);
    transform: translateY(-2px);
    background: var(--accent-teal-2);
}

/* === BLOB META === */
.blob-meta {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 18px;
}

.blob-num {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 36px;
    color: var(--accent-teal);
    line-height: 1;
}

.blob-label {
    font-family: 'Varela Round', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

.blob-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 3.5vw, 38px);
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.blob-body {
    font-family: 'Quicksand', sans-serif;
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 24px;
    background: rgba(255,255,255,0.6);
    padding: 18px 22px;
    border-radius: 24px;
    line-height: 1.6;
}

.blob-feedback {
    margin-top: 18px;
    font-family: 'Varela Round', sans-serif;
    font-size: 16px;
    color: var(--accent-teal);
    min-height: 22px;
    background: rgba(255,255,255,0.7);
    padding: 12px 18px;
    border-radius: 20px;
    display: none;
}
.blob-feedback.show { display: block; }

/* === MORPH PAIR / DOODLE PAIR === */
.morph-pair, .doodle-pair {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.morph-shape, .doodle-card {
    font-family: 'Varela Round', sans-serif;
    font-size: 16px;
    color: var(--text-primary);
    background: rgba(255,255,255,0.7);
    border: 2px solid transparent;
    cursor: pointer;
    padding: 28px;
    border-radius: var(--morph-organic);
    transition: border-radius var(--t-morph), background 240ms, transform 240ms, border-color 240ms;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.morph-shape svg, .doodle-card svg {
    width: 64px;
    height: 64px;
    color: var(--text-primary);
}

.doodle-card svg { width: 96px; height: 96px; }

.morph-shape:hover, .doodle-card:hover {
    border-radius: var(--morph-geometric);
    background: var(--accent-teal-2);
    transform: translateY(-4px);
}

.morph-shape.is-selected, .doodle-card.is-selected {
    border-color: var(--accent-teal);
    background: var(--accent-teal-2);
}

/* === MORPH SLIDER === */
.morph-slider-wrap {
    margin-top: 24px;
    display: grid;
    gap: 24px;
}

.morph-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 999px;
    background: rgba(78, 205, 196, 0.25);
    outline: none;
    cursor: pointer;
}
.morph-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--accent-teal);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.35);
    cursor: grab;
}
.morph-slider::-moz-range-thumb {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--accent-teal);
    border: 3px solid #ffffff;
    cursor: grab;
}

.morph-canvas {
    position: relative;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.6);
    border-radius: 32px;
    overflow: hidden;
}

.morph-target {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-teal-2));
    border-radius: var(--morph-organic);
    transition: border-radius 200ms ease;
    box-shadow: 0 12px 28px rgba(78,205,196,0.3);
}

.morph-anchor {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Varela Round', sans-serif;
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 0.06em;
}
.anchor-organic { left: 24px; }
.anchor-geometric { right: 24px; }

/* === MEMORY LIST === */
.memory-list {
    list-style: none;
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.memory-card {
    width: 100%;
    text-align: left;
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    color: var(--text-primary);
    background: rgba(255,255,255,0.7);
    border: 2px solid transparent;
    cursor: pointer;
    padding: 20px 24px;
    border-radius: var(--morph-organic);
    transition: border-radius var(--t-morph), border-color 240ms, background 240ms;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    line-height: 1.55;
}

.memory-num {
    flex: 0 0 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-teal);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 16px;
}

.memory-card:hover {
    border-radius: 24px;
    background: rgba(255,255,255,0.9);
}
.memory-card.is-correct {
    border-color: var(--accent-teal);
    background: var(--accent-teal-2);
}
.memory-card.is-wrong {
    border-color: rgba(220, 80, 80, 0.4);
    background: #fff0f0;
}

/* === QUIZ BLOB === */
.quiz-blob {
    max-width: 80vw;
    margin: 48px auto;
    background: var(--accent-teal);
    color: var(--text-primary);
    border-radius: 999px;
    padding: 56px 48px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(78,205,196,0.25);
    transition: border-radius 800ms ease;
}

.quiz-blob:hover {
    border-radius: 80px;
}

.quiz-question {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(22px, 3vw, 34px);
    margin-bottom: 24px;
    line-height: 1.25;
}

.quiz-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.quiz-btn {
    font-family: 'Varela Round', sans-serif;
    font-size: 16px;
    background: #ffffff;
    color: var(--text-primary);
    border: none;
    padding: 14px 28px;
    border-radius: var(--morph-organic);
    cursor: pointer;
    transition: border-radius var(--t-morph), transform 240ms;
}

.quiz-btn:hover {
    border-radius: var(--morph-geometric);
    transform: translateY(-2px);
}

.quiz-result {
    margin-top: 22px;
    font-family: 'Varela Round', sans-serif;
    color: var(--text-primary);
    min-height: 22px;
    opacity: 0;
    transition: opacity 320ms;
}

.quiz-result.show { opacity: 1; }

/* === CITY FOOTER === */
.city-footer {
    margin: 64px auto 0;
    padding: 32px 24px 0;
    background: var(--bg-cool);
    text-align: center;
    max-width: 1200px;
}

.city-tagline {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: clamp(20px, 2.6vw, 28px);
    color: var(--text-primary);
    margin-bottom: 18px;
}

.blob-skyline {
    width: 100%;
    height: auto;
    max-height: 260px;
    display: block;
}

.city-fineprint {
    font-family: 'Varela Round', sans-serif;
    color: var(--text-muted);
    margin-top: 6px;
    padding-bottom: 32px;
}

@media (max-width: 720px) {
    .blob-section { padding: 28px 22px; margin: 16px; }
    .quiz-blob { padding: 36px 24px; max-width: calc(100% - 32px); border-radius: 48px; }
    .morph-pair, .doodle-pair { gap: 12px; }
}
