:root {
    color-scheme: light;
    --bg: #fff5df;
    --panel: rgba(255, 251, 242, 0.94);
    --panel-strong: #1e3853;
    --border: #e4cfad;
    --text: #243242;
    --muted: #627386;
    --accent: #ef6b2e;
    --accent-strong: #b34117;
    --accent-soft: #ffe0a8;
    --mint: #c9f0d2;
    --sky: #d6efff;
    --focus: #0a66c2;
    --shadow: 0 20px 48px rgba(31, 40, 51, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 18px;
}

body {
    margin: 0;
    font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 202, 93, 0.34), transparent 24%),
        radial-gradient(circle at 92% 14%, rgba(141, 219, 183, 0.3), transparent 22%),
        radial-gradient(circle at 40% 100%, rgba(139, 216, 255, 0.18), transparent 28%),
        linear-gradient(180deg, #fffaf0 0%, #fff2d9 58%, #f8e8c8 100%);
}

button,
input {
    font: inherit;
}

.skip-link,
.sr-only {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 100;
    background: #fff;
    color: #000;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
}

:focus-visible {
    outline: 4px solid var(--focus);
    outline-offset: 4px;
}

.app-shell {
    min-height: 100vh;
    padding: clamp(0.75rem, 2vw, 1.25rem);
}

.start-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(0.85rem, 2vw, 1.5rem);
}

.start-card,
.sidebar,
.panel {
    background: var(--panel);
    border: 1px solid rgba(223, 208, 187, 0.9);
    border-radius: 1.6rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.start-card {
    width: min(900px, 100%);
    padding: clamp(1.25rem, 3vw, 2.4rem) clamp(1rem, 3vw, 2rem) clamp(1.1rem, 2.8vw, 2rem);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 217, 125, 0.16), transparent 22%),
        linear-gradient(180deg, rgba(255, 251, 243, 0.97), rgba(255, 247, 232, 0.95));
}

.start-badge,
.eyebrow,
.step-marker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.92rem;
    font-weight: 700;
}

.start-badge,
.eyebrow {
    background: rgba(239, 107, 46, 0.14);
    color: var(--accent-strong);
}

.floating-stickers {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: min(42%, 320px);
    z-index: 1;
}

.sticker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(31, 40, 51, 0.08);
    transform: rotate(-4deg);
}

.sticker-star {
    background: #ffe27f;
    color: #7a4b00;
}

.sticker-lab {
    background: #d9f3ff;
    color: #18577f;
    transform: rotate(6deg);
}

.sticker-hint {
    background: #dbf5d1;
    color: #226340;
    transform: rotate(-7deg);
}

.start-card h1,
.brand,
.hero h2,
.panel h2,
.panel h3 {
    margin-top: 0;
    line-height: 1.3;
}

.start-card p,
.panel p,
.brand-subtitle {
    line-height: 1.7;
    overflow-wrap: break-word;
    word-break: keep-all;
}

.scene-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.scene-card {
    padding: 1rem;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, rgba(255, 248, 235, 0.98), rgba(255, 243, 222, 0.94));
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.scene-card strong {
    display: block;
    margin-bottom: 0.45rem;
    line-height: 1.35;
}

.start-story-card {
    margin-top: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, rgba(255, 226, 168, 0.5), rgba(214, 239, 255, 0.55));
    border: 1px dashed rgba(179, 118, 34, 0.35);
}

.start-hero-illustration {
    position: relative;
    height: 240px;
    margin: 1rem 0 1.1rem;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(214, 197, 168, 0.85);
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 226, 153, 0.45), transparent 20%),
        radial-gradient(circle at 78% 20%, rgba(187, 235, 255, 0.48), transparent 24%),
        linear-gradient(180deg, #fff9ef 0%, #fff1d7 58%, #fde2b7 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero-illustration-sky,
.hero-illustration-glow,
.hero-lab-table,
.hero-jar,
.hero-candle,
.hero-question,
.hero-gas,
.hero-orbit {
    position: absolute;
}

.hero-illustration-sky {
    inset: 0;
    background:
        radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.85), transparent 16%),
        radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.55), transparent 14%);
}

.hero-illustration-glow {
    left: 50%;
    bottom: 38px;
    width: 180px;
    height: 180px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 138, 0.55) 0%, rgba(255, 215, 138, 0.14) 48%, transparent 72%);
}

.hero-lab-table {
    left: -4%;
    right: -4%;
    bottom: 0;
    height: 64px;
    background: linear-gradient(180deg, #d8af7e 0%, #b9814d 100%);
    box-shadow: inset 0 8px 0 rgba(255, 255, 255, 0.16);
}

.hero-jar {
    left: 50%;
    bottom: 42px;
    width: 156px;
    height: 150px;
    transform: translateX(-50%);
}

.hero-jar-top {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 0;
    height: 16px;
    border-radius: 999px;
    background: rgba(224, 241, 255, 0.88);
    border: 2px solid rgba(121, 160, 191, 0.55);
}

.hero-jar-body {
    position: absolute;
    left: 0;
    right: 0;
    top: 9px;
    bottom: 0;
    border-radius: 26px 26px 18px 18px;
    background: linear-gradient(180deg, rgba(225, 243, 255, 0.55), rgba(196, 226, 250, 0.18));
    border: 2px solid rgba(121, 160, 191, 0.58);
}

.hero-jar-shine {
    position: absolute;
    top: 24px;
    left: 28px;
    width: 22px;
    height: 96px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.08));
}

.hero-candle {
    left: 50%;
    bottom: 56px;
    width: 60px;
    height: 110px;
    transform: translateX(-50%);
}

.hero-candle-body {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 74px;
    border-radius: 16px 16px 10px 10px;
    background: linear-gradient(180deg, #fff7e4 0%, #ffe3a0 100%);
    border: 2px solid rgba(206, 160, 88, 0.5);
}

.hero-candle-wick {
    position: absolute;
    left: 28px;
    bottom: 70px;
    width: 4px;
    height: 12px;
    border-radius: 999px;
    background: #714726;
}

.hero-candle-flame {
    position: absolute;
    left: 16px;
    bottom: 78px;
    width: 28px;
    height: 38px;
    border-radius: 50% 50% 52% 52%;
    background: radial-gradient(circle at 50% 28%, #fffef0 0%, #ffe995 34%, #ffad46 70%, #e8641f 100%);
    box-shadow: 0 0 26px rgba(255, 173, 70, 0.6);
    transform: rotate(3deg);
    animation: flame-idle 1.6s ease-in-out infinite;
}

.hero-question {
    font-size: 2rem;
    font-weight: 900;
    color: rgba(83, 93, 132, 0.3);
}

.hero-question-1 {
    left: 16%;
    top: 28px;
    transform: rotate(-10deg);
    animation: hero-float 4.2s ease-in-out infinite;
}

.hero-question-2 {
    right: 16%;
    top: 42px;
    transform: rotate(10deg);
    animation: hero-float 4.8s ease-in-out infinite reverse;
}

.hero-gas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(31, 40, 51, 0.08);
}

.hero-gas-1 {
    left: 14%;
    bottom: 104px;
    background: rgba(203, 245, 255, 0.95);
    color: #15607f;
    animation: hero-float 4.6s ease-in-out infinite;
}

.hero-gas-2 {
    right: 14%;
    bottom: 120px;
    background: rgba(255, 230, 193, 0.96);
    color: #9b5a17;
    animation: hero-float 5.1s ease-in-out infinite;
}

.hero-gas-3 {
    right: 20%;
    bottom: 64px;
    background: rgba(225, 231, 239, 0.96);
    color: #526170;
    animation: hero-float 4.1s ease-in-out infinite reverse;
}

.hero-orbit {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 18px rgba(255, 214, 121, 0.55);
    animation: hero-orbit 5.8s linear infinite;
}

.hero-orbit-1 {
    left: 24%;
    bottom: 112px;
    animation-delay: 0s;
}

.hero-orbit-2 {
    left: 68%;
    bottom: 136px;
    width: 10px;
    height: 10px;
    background: rgba(193, 236, 255, 0.95);
    animation-delay: -1.8s;
}

.hero-orbit-3 {
    left: 58%;
    bottom: 86px;
    width: 8px;
    height: 8px;
    background: rgba(255, 228, 182, 0.95);
    animation-delay: -3.2s;
}

.app-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: block;
}

.brand {
    font-size: 1.7rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.brand-subtitle {
    margin: 0;
    color: var(--muted);
}

.guided-card,
.reflection-box,
.journal-card {
    padding: 1rem;
    border-radius: 1.15rem;
    background: linear-gradient(180deg, #fffaf1, #fff4e4);
    border: 1px solid var(--border);
}

.split-line {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.main,
.action-panel {
    display: grid;
    gap: 1rem;
}

.hero {
    padding: 1.5rem;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 232, 166, 0.22), transparent 25%),
        radial-gradient(circle at 85% 10%, rgba(170, 245, 212, 0.12), transparent 24%),
        linear-gradient(135deg, rgba(27, 49, 73, 0.97), rgba(38, 99, 103, 0.95));
    color: #fffdf8;
}

.step-marker {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    margin-bottom: 0.8rem;
}

.panel {
    padding: clamp(1rem, 2.2vw, 1.25rem);
}

.hero-progress-card {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.6rem;
}

.progress-track {
    position: relative;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
}

.progress-track.playful {
    height: 12px;
    background: #f1e3c0;
}

.progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffd45d 0%, #ff9650 52%, #ff6b5a 100%);
    box-shadow: 0 0 18px rgba(255, 180, 88, 0.35);
}

.main-chat-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.panel-head p {
    color: var(--muted);
    margin-top: 0.2rem;
    margin-bottom: 0;
    line-height: 1.6;
    word-break: keep-all;
}

.hero-toolbar,
.hero-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.hero-toolbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: stretch;
}

.status-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.22rem;
    padding: 0.7rem 0.9rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.92rem;
    line-height: 1.35;
    min-width: 0;
    min-height: 82px;
    overflow-wrap: break-word;
    word-break: keep-all;
}

.status-pill span {
    color: rgba(255, 253, 248, 0.78);
    font-size: 0.76rem;
    line-height: 1.2;
}

.status-pill strong {
    display: block;
    max-width: 100%;
    font-size: 1.02rem;
    line-height: 1.28;
    word-break: keep-all;
}

.compact-btn {
    width: auto;
    min-width: 140px;
}

.voice-settings-card {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, rgba(255, 251, 243, 0.98), rgba(255, 243, 227, 0.95));
    border: 1px solid var(--border);
}

.voice-settings-card-start {
    background: linear-gradient(180deg, rgba(255, 248, 235, 0.98), rgba(255, 240, 219, 0.96));
}

.voice-settings-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.voice-settings-head strong {
    display: block;
    margin-bottom: 0.25rem;
}

.voice-settings-head p,
.voice-settings-status {
    margin: 0;
}

.voice-settings-toggle {
    width: auto;
    min-width: 160px;
    align-self: flex-start;
}

.voice-settings-status {
    margin-top: 0.75rem;
    font-weight: 700;
    color: var(--panel-strong);
}

.voice-settings-body {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.75rem;
}

.voice-settings-label {
    font-weight: 700;
    color: var(--panel-strong);
}

.voice-settings-body input {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 0.95rem;
    border: 1px solid var(--border);
    background: #fffdf8;
    color: var(--text);
}

.voice-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-hint {
    margin-top: 0.85rem;
    color: rgba(255, 253, 248, 0.88);
    line-height: 1.6;
    word-break: keep-all;
}

.primary-btn,
.secondary-btn,
.choice-btn {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.primary-btn:hover,
.secondary-btn:hover,
.choice-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(31, 40, 51, 0.1);
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent), #f08c39);
    color: #fff;
    box-shadow: 0 12px 24px rgba(239, 107, 46, 0.26);
}

.secondary-btn {
    background: linear-gradient(180deg, #fffdf8, #fff3df);
    color: var(--panel-strong);
    border-color: var(--border);
}

.large-btn {
    width: min(320px, 100%);
    min-width: 220px;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.choice-btn {
    text-align: left;
    background: linear-gradient(180deg, #ffffff, #fff7ea);
    border-color: var(--border);
    color: var(--text);
    font-weight: 700;
}

.choice-btn span {
    display: block;
    line-height: 1.45;
}

.choice-btn.active {
    background: linear-gradient(180deg, rgba(255, 228, 176, 0.65), rgba(255, 214, 164, 0.5));
    border-color: var(--accent);
    color: var(--accent-strong);
}

.micro-note {
    color: var(--muted);
    margin-bottom: 0;
}

.visual-stage {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    padding: 1.5rem 1.5rem 1.75rem;
    border-radius: 1.4rem;
    background:
        radial-gradient(circle at 50% 15%, rgba(255, 223, 167, 0.22), transparent 25%),
        linear-gradient(180deg, #102030 0%, #14263a 48%, #192535 100%);
    color: #f7f4ed;
    display: grid;
    align-content: end;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.visual-copy {
    position: relative;
    z-index: 3;
    max-width: 420px;
    margin-top: 220px;
    padding-right: 0.5rem;
    min-width: 0;
}

.visual-copy strong {
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    word-break: keep-all;
}

.stage-badges {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    max-width: 100%;
    align-items: flex-start;
    margin-bottom: 0.85rem;
    position: relative;
    z-index: 2;
}

.stage-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0.34rem 0.68rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    position: relative;
    isolation: isolate;
}

.stage-badge-warm {
    background: rgba(255, 214, 129, 0.18);
    color: #ffe6a9;
    border: 1px solid rgba(255, 214, 129, 0.26);
}

.stage-badge-cool {
    background: rgba(190, 230, 255, 0.16);
    color: #d8f2ff;
    border: 1px solid rgba(190, 230, 255, 0.22);
}

.sparkle-note {
    display: inline-flex;
    margin-top: 0.85rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffe8b5;
    font-size: 0.88rem;
    font-weight: 700;
}

.experiment-illustration {
    position: absolute;
    inset: 18px 18px auto 18px;
    display: grid;
    grid-template-columns: minmax(150px, 168px) 1fr;
    gap: 1rem;
    align-items: start;
    z-index: 2;
    pointer-events: none;
}

.apparatus-card {
    position: relative;
    min-height: 140px;
    padding: 1rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    min-width: 0;
}

.apparatus-title {
    display: block;
    margin-bottom: 0.45rem;
    color: rgba(247, 244, 237, 0.78);
    font-size: 0.82rem;
    line-height: 1.4;
    word-break: keep-all;
}

.apparatus-source strong {
    display: block;
    margin-bottom: 0.7rem;
    font-size: 0.96rem;
    line-height: 1.35;
    word-break: keep-all;
}

.gas-source {
    position: relative;
    width: 72px;
    height: 84px;
}

.gas-source-cap {
    position: absolute;
    top: 0;
    left: 22px;
    width: 28px;
    height: 18px;
    border-radius: 8px 8px 4px 4px;
    background: #c5d1dc;
}

.gas-source-body {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 48px;
    height: 62px;
    border-radius: 16px 16px 14px 14px;
    background: linear-gradient(180deg, #8ecae6 0%, #4c7ea9 100%);
    box-shadow: inset -10px 0 0 rgba(255, 255, 255, 0.12);
}

.gas-nozzle {
    position: absolute;
    top: 22px;
    left: 58px;
    width: 76px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #cfd8df 0%, #89afc7 100%);
}

.apparatus-chamber {
    min-height: 150px;
}

.glass-cover {
    position: absolute;
    top: 26px;
    right: 78px;
    width: 122px;
    height: 140px;
}

.glass-rim {
    position: absolute;
    top: 0;
    left: 4px;
    width: 114px;
    height: 16px;
    border-radius: 999px;
    background: rgba(192, 225, 245, 0.18);
    border: 2px solid rgba(192, 225, 245, 0.28);
}

.glass-wall {
    position: absolute;
    top: 12px;
    width: 10px;
    height: 118px;
    background: linear-gradient(180deg, rgba(193, 225, 245, 0.24), rgba(193, 225, 245, 0.08));
    border-radius: 999px;
}

.glass-left { left: 8px; }
.glass-right { right: 8px; }

.glass-base {
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 102px;
    height: 12px;
    border-radius: 999px;
    background: rgba(193, 225, 245, 0.14);
}

.gas-particles {
    position: absolute;
    top: 32px;
    right: 88px;
    width: 102px;
    height: 110px;
}

.gas-particle {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.48);
    opacity: 0.55;
}

.gas-particle-1 { top: 16px; left: 8px; }
.gas-particle-2 { top: 38px; left: 54px; }
.gas-particle-3 { top: 62px; left: 28px; }
.gas-particle-4 { top: 84px; left: 68px; }

.candle-wrapper {
    position: absolute;
    left: 50%;
    bottom: 42px;
    transform: translateX(-50%);
    width: 120px;
    height: 220px;
    z-index: 2;
}

.candle-body {
    position: absolute;
    left: 32px;
    bottom: 18px;
    width: 56px;
    height: 110px;
    border-radius: 10px 10px 14px 14px;
    background: linear-gradient(180deg, #fffefe 0%, #efe3d1 100%);
    box-shadow: inset 0 -12px 22px rgba(0, 0, 0, 0.1);
}

.candle-plate {
    position: absolute;
    left: 10px;
    bottom: 0;
    width: 100px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.candle-wick {
    position: absolute;
    left: 58px;
    bottom: 126px;
    width: 4px;
    height: 20px;
    background: #2e2e2e;
    border-radius: 999px;
}

.candle-flame {
    position: absolute;
    left: 42px;
    bottom: 136px;
    width: 36px;
    height: 62px;
    border-radius: 55% 55% 35% 35%;
    transform-origin: center bottom;
    background: radial-gradient(circle at 50% 25%, #fffef2 0%, #ffe08b 34%, #ff8d3a 72%, transparent 100%);
}

.airflow,
.spark-group {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.air-line {
    position: absolute;
    left: -20%;
    width: 180px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(176, 222, 255, 0.8), transparent);
    opacity: 0;
}

.air-line-1 { top: 24%; }
.air-line-2 { top: 35%; }
.air-line-3 { top: 46%; }

.spark {
    position: absolute;
    bottom: 120px;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 214, 102, 0.95);
    opacity: 0;
}

.spark-1 { margin-left: -32px; }
.spark-2 { margin-left: 4px; }
.spark-3 { margin-left: 28px; }

.stage-idle .candle-flame {
    animation: flame-idle 2.1s infinite ease-in-out;
}

.stage-idle .gas-particle {
    animation: particle-float 3.2s infinite ease-in-out;
}

.stage-oxygen .candle-flame {
    width: 46px;
    height: 84px;
    left: 37px;
    bottom: 132px;
    box-shadow: 0 0 50px rgba(255, 210, 115, 0.42);
    animation: flame-oxygen 0.55s infinite alternate ease-in-out;
}

.stage-oxygen .gas-source-body {
    background: linear-gradient(180deg, #9ef0ff 0%, #50a8b7 100%);
}

.stage-oxygen .gas-particle {
    background: rgba(146, 245, 255, 0.9);
    animation: particle-rise 1.2s infinite ease-in-out;
}

.stage-helium .candle-flame {
    width: 28px;
    height: 42px;
    left: 46px;
    bottom: 146px;
    animation: flame-helium 0.85s infinite alternate ease-in-out;
}

.stage-helium .gas-source-body {
    background: linear-gradient(180deg, #ffd6a5 0%, #f28f3b 100%);
}

.stage-helium .gas-particle {
    background: rgba(255, 219, 165, 0.88);
    animation: particle-drift 1.1s infinite ease-in-out;
}

.stage-co2 .candle-flame {
    animation: flame-out 0.4s forwards ease-out;
}

.stage-co2 .gas-source-body {
    background: linear-gradient(180deg, #d7dce2 0%, #7d8792 100%);
}

.stage-co2 .gas-particle {
    background: rgba(216, 221, 230, 0.88);
    animation: particle-drop 1.1s infinite ease-in-out;
}

.stage-vacuum .candle-flame {
    animation: flame-fade 1.2s forwards ease-out;
}

.stage-vacuum .gas-source-body {
    background: linear-gradient(180deg, #b5c2d3 0%, #6a7486 100%);
}

.stage-vacuum .gas-particle {
    opacity: 0.1;
    animation: particle-disappear 1.5s infinite ease-in-out;
}

.stage-helium .air-line,
.stage-co2 .air-line,
.stage-vacuum .air-line {
    animation: airflow 1.1s infinite linear;
    opacity: 0.8;
}

.stage-oxygen .spark {
    animation: spark-rise 1s infinite ease-out;
    opacity: 1;
}

.chat-panel {
    display: flex;
    flex-direction: column;
    min-height: 500px;
    background:
        radial-gradient(circle at top right, rgba(255, 228, 175, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(255, 251, 243, 0.98), rgba(255, 247, 232, 0.95));
}

.chat-log {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.4rem;
}

.chat-log::-webkit-scrollbar {
    width: 6px;
}

.chat-log::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #cfd7de;
}

.chat-bubble {
    max-width: 88%;
    width: fit-content;
    padding: 0.95rem 1.15rem;
    border-radius: 1.25rem;
    line-height: 1.65;
    overflow-wrap: break-word;
    word-break: keep-all;
}

.chat-bubble.ai {
    align-self: flex-start;
    background: linear-gradient(180deg, #fffaf2, #f7f0e1);
    border: 1px solid #e4d7c4;
    border-bottom-left-radius: 0.3rem;
}

.chat-bubble.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #dc6637, #b94c21);
    color: #fff;
    border-bottom-right-radius: 0.3rem;
}

.chat-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
}

.chat-input-row input {
    min-width: 0;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 2px solid var(--border);
    background: #fffdfa;
}

.journal-answer {
    display: inline-flex;
    min-width: 6rem;
    justify-content: center;
    padding: 0.22rem 0.5rem;
    border-bottom: 3px solid var(--accent);
    color: var(--accent-strong);
    font-weight: 800;
}

.journal-answer.empty {
    color: var(--muted);
    border-bottom-color: #c9bea9;
}

.mini-progress-wrap {
    margin: 0.9rem 0 1rem;
}

.restart-btn {
    width: auto;
    min-width: 0;
    max-width: 220px;
}

@keyframes flame-idle {
    0% { transform: scale(1) rotate(-2deg); opacity: 0.95; }
    50% { transform: scale(1.05) rotate(2deg); opacity: 1; }
    100% { transform: scale(0.98) rotate(1deg); opacity: 0.9; }
}

@keyframes hero-float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes hero-orbit {
    0% { transform: translate3d(0, 0, 0) scale(0.95); opacity: 0.6; }
    25% { transform: translate3d(18px, -16px, 0) scale(1.08); opacity: 1; }
    50% { transform: translate3d(34px, 6px, 0) scale(0.86); opacity: 0.72; }
    75% { transform: translate3d(10px, 18px, 0) scale(1.02); opacity: 0.92; }
    100% { transform: translate3d(0, 0, 0) scale(0.95); opacity: 0.6; }
}

@keyframes flame-oxygen {
    0% { transform: scale(1) rotate(-4deg); }
    100% { transform: scale(1.1) rotate(4deg); }
}

@keyframes flame-helium {
    0% { transform: scale(1) translateX(0); opacity: 0.75; }
    100% { transform: scale(0.72) translateX(10px); opacity: 0.55; }
}

@keyframes flame-out {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0) translateY(12px); opacity: 0; }
}

@keyframes flame-fade {
    0% { transform: scale(1); opacity: 0.95; }
    60% { transform: scale(0.5) translateX(-6px); opacity: 0.4; }
    100% { transform: scale(0) translateY(16px); opacity: 0; }
}

@keyframes airflow {
    0% { transform: translateX(0); opacity: 0; }
    20% { opacity: 0.75; }
    100% { transform: translateX(140%); opacity: 0; }
}

@keyframes spark-rise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(-100px) scale(0.2); opacity: 0; }
}

@keyframes particle-float {
    0% { transform: translateY(0); opacity: 0.45; }
    50% { transform: translateY(-8px); opacity: 0.8; }
    100% { transform: translateY(0); opacity: 0.45; }
}

@keyframes particle-rise {
    0% { transform: translateY(16px) scale(0.9); opacity: 0.2; }
    50% { opacity: 1; }
    100% { transform: translateY(-20px) scale(1.1); opacity: 0.15; }
}

@keyframes particle-drift {
    0% { transform: translateX(0) translateY(0); opacity: 0.3; }
    50% { transform: translateX(12px) translateY(-8px); opacity: 0.9; }
    100% { transform: translateX(0) translateY(-14px); opacity: 0.25; }
}

@keyframes particle-drop {
    0% { transform: translateY(-10px); opacity: 0.25; }
    50% { transform: translateY(12px); opacity: 0.9; }
    100% { transform: translateY(24px); opacity: 0.2; }
}

@keyframes particle-disappear {
    0% { transform: scale(1); opacity: 0.18; }
    100% { transform: scale(0.5); opacity: 0.02; }
}

@media (max-width: 1040px) {
    .main-chat-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .scene-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-toolbar {
        grid-template-columns: 1fr;
    }

    .visual-stage {
        min-height: 500px;
    }

    .experiment-illustration {
        grid-template-columns: 1fr;
    }

    .apparatus-chamber {
        min-height: 138px;
    }

    .visual-copy {
        margin-top: 250px;
        max-width: 100%;
    }

    .stage-badges {
        display: none;
    }
}

@media (max-width: 760px) {
    html {
        font-size: 16px;
    }

    .scene-preview,
    .choice-grid,
    .chat-input-row {
        grid-template-columns: 1fr;
    }

    .experiment-illustration {
        grid-template-columns: 1fr;
    }

    .floating-stickers {
        position: static;
        justify-content: flex-start;
        margin-bottom: 0.8rem;
        max-width: none;
    }

    .hero-toolbar,
    .chat-input-row,
    .choice-grid {
        grid-template-columns: 1fr;
    }

    .visual-stage {
        min-height: 470px;
        padding: 1rem 1rem 1.25rem;
    }

    .visual-copy {
        margin-top: 240px;
        padding-right: 0;
    }

    .stage-badges,
    .sparkle-note {
        display: none;
    }

    .experiment-illustration {
        inset: 14px 12px auto 12px;
        gap: 0.7rem;
    }

    .glass-cover,
    .gas-particles {
        right: 24px;
    }

    .apparatus-card {
        min-height: 144px;
        padding: 0.9rem;
    }

    .apparatus-source strong,
    .apparatus-title {
        max-width: 100%;
    }

    .hero-controls .primary-btn,
    .hero-controls .secondary-btn,
    .large-btn,
    .compact-btn {
        width: 100%;
        min-width: 0;
    }

    .voice-settings-head,
    .voice-settings-actions {
        flex-direction: column;
    }

    .voice-settings-toggle,
    .voice-settings-actions .compact-btn {
        width: 100%;
    }

    .chat-panel {
        min-height: auto;
    }

    .status-pill {
        min-height: auto;
        padding: 0.65rem 0.8rem;
    }

    .status-pill strong {
        font-size: 0.96rem;
    }
}

@media (max-width: 520px) {
    .app-shell {
        padding: 0.65rem;
    }

    .start-card,
    .panel,
    .scene-card,
    .guided-card,
    .reflection-box,
    .journal-card {
        border-radius: 1.1rem;
    }

    .visual-stage {
        min-height: 430px;
    }

    .visual-copy {
        margin-top: 228px;
        font-size: 0.95rem;
    }

    .gas-source {
        transform: scale(0.92);
        transform-origin: left top;
    }

    .glass-cover {
        right: 14px;
        transform: scale(0.92);
        transform-origin: top right;
    }

    .gas-particles {
        right: 22px;
        transform: scale(0.92);
        transform-origin: top right;
    }

    .chat-bubble {
        max-width: 100%;
    }

    .hero-hint {
        font-size: 0.92rem;
    }

    .apparatus-title {
        font-size: 0.78rem;
    }

    .apparatus-source strong {
        font-size: 0.9rem;
    }
}

/* 2026-04 refresh: visual polish and layout fixes */
:root {
    --bg: #f6efe1;
    --panel: rgba(255, 251, 244, 0.9);
    --panel-strong: #173a50;
    --border: rgba(182, 152, 113, 0.28);
    --text: #223548;
    --muted: #5b6f80;
    --accent: #de6a2d;
    --accent-strong: #8f3f18;
    --shadow: 0 24px 60px rgba(37, 43, 51, 0.14);
}

body {
    font-family: "SUIT Variable", "Pretendard Variable", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 208, 118, 0.38), transparent 24%),
        radial-gradient(circle at 92% 14%, rgba(138, 211, 182, 0.34), transparent 22%),
        radial-gradient(circle at 40% 100%, rgba(124, 191, 231, 0.16), transparent 28%),
        linear-gradient(180deg, #fffaf3 0%, #f8eedb 54%, #efe2c7 100%);
}

.app-shell {
    position: relative;
}

.app-shell::before,
.app-shell::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
    filter: blur(8px);
}

.app-shell::before {
    top: 4rem;
    right: 3rem;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 205, 126, 0.34) 0%, rgba(255, 205, 126, 0) 70%);
}

.app-shell::after {
    left: 1rem;
    bottom: 2rem;
    width: 280px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(157, 215, 238, 0.28) 0%, rgba(157, 215, 238, 0) 70%);
}

.app-grid {
    max-width: 1220px;
    position: relative;
    z-index: 1;
}

.brand {
    font-size: clamp(1.9rem, 3.8vw, 3.15rem);
    line-height: 1.05;
    margin-bottom: 0.65rem;
    letter-spacing: -0.03em;
}

.hero {
    padding: clamp(1.1rem, 2.2vw, 1.6rem);
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 220, 142, 0.24), transparent 24%),
        radial-gradient(circle at 88% 10%, rgba(154, 232, 204, 0.16), transparent 24%),
        linear-gradient(135deg, rgba(20, 44, 67, 0.98), rgba(27, 85, 95, 0.97) 54%, rgba(36, 114, 101, 0.93));
    overflow: hidden;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    right: -10%;
    bottom: -35%;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 203, 118, 0.24) 0%, rgba(255, 203, 118, 0) 68%);
}

.hero-progress-card {
    padding: 1rem 1.05rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.progress-track {
    height: 15px;
    background: rgba(255, 255, 255, 0.14);
}

.main-chat-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 1.1rem;
    align-items: start;
}

.status-pill {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
}

.diagnostic-card,
.hero .guided-card[role="status"] {
    margin-top: 0.95rem;
    padding: 0.95rem 1rem;
    border-radius: 1.05rem;
    background: rgba(255, 247, 232, 0.96);
    color: #233748;
    border: 1px solid rgba(245, 210, 159, 0.55);
    box-shadow: 0 10px 24px rgba(16, 28, 43, 0.12);
}

.hero .guided-card[role="status"] p {
    color: #495d70;
}

.scene-card {
    background: linear-gradient(180deg, rgba(255, 251, 243, 0.98), rgba(255, 242, 219, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 22px rgba(44, 50, 57, 0.06);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.scene-card:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 16px 28px rgba(44, 50, 57, 0.1);
    border-color: rgba(202, 132, 65, 0.34);
}

.guided-card,
.reflection-box,
.journal-card {
    background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(255, 244, 228, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.choice-btn {
    background: linear-gradient(180deg, #fffdf8, #fff1dc);
}

.choice-btn.active {
    background: linear-gradient(180deg, rgba(255, 221, 168, 0.78), rgba(255, 205, 151, 0.6));
}

.chat-panel {
    position: sticky;
    top: 0.9rem;
    background:
        radial-gradient(circle at top right, rgba(255, 228, 175, 0.18), transparent 24%),
        linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(255, 247, 232, 0.96));
}

.chat-bubble.ai {
    background: linear-gradient(180deg, #fffaf2, #f3ead8);
    border-color: #e2d2b8;
}

.chat-bubble.user {
    background: linear-gradient(135deg, #dd6b31, #a94522);
    box-shadow: 0 12px 22px rgba(169, 69, 34, 0.22);
}

@media (max-width: 1040px) {
    .chat-panel {
        position: static;
        top: auto;
    }
}

.scene-panel {
    margin-top: 1rem;
    padding: 1rem;
}

.experiment-scene {
    position: relative;
    height: 280px;
    border-radius: 1.5rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 244, 202, 0.78), transparent 22%),
        radial-gradient(circle at 82% 20%, rgba(205, 236, 255, 0.82), transparent 24%),
        linear-gradient(180deg, #fff9ef 0%, #fff1d9 58%, #f7d9a5 100%);
    border: 1px solid rgba(214, 197, 168, 0.85);
}

.scene-backdrop,
.scene-table,
.scene-jar,
.scene-candle,
.scene-gas,
.scene-orbit,
.scene-status-card {
    position: absolute;
}

.scene-backdrop {
    inset: 0;
    background:
        radial-gradient(circle at 14% 22%, rgba(255, 255, 255, 0.85), transparent 16%),
        radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.66), transparent 14%);
}

.scene-table {
    left: -4%;
    right: -4%;
    bottom: 0;
    height: 68px;
    background: linear-gradient(180deg, #d8af7e 0%, #b9814d 100%);
    box-shadow: inset 0 8px 0 rgba(255, 255, 255, 0.16);
}

.scene-jar {
    left: 50%;
    bottom: 46px;
    width: 160px;
    height: 158px;
    transform: translateX(-50%);
}

.scene-jar-top {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 0;
    height: 16px;
    border-radius: 999px;
    background: rgba(224, 241, 255, 0.9);
    border: 2px solid rgba(121, 160, 191, 0.55);
}

.scene-jar-body {
    position: absolute;
    left: 0;
    right: 0;
    top: 9px;
    bottom: 0;
    border-radius: 26px 26px 18px 18px;
    background: linear-gradient(180deg, rgba(225, 243, 255, 0.58), rgba(196, 226, 250, 0.18));
    border: 2px solid rgba(121, 160, 191, 0.58);
}

.scene-jar-shine {
    position: absolute;
    top: 24px;
    left: 28px;
    width: 22px;
    height: 100px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.08));
}

.scene-candle {
    left: 50%;
    bottom: 58px;
    width: 64px;
    height: 116px;
    transform: translateX(-50%);
}

.scene-candle-body {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 78px;
    border-radius: 16px 16px 10px 10px;
    background: linear-gradient(180deg, #fff7e4 0%, #ffe3a0 100%);
    border: 2px solid rgba(206, 160, 88, 0.5);
}

.scene-wick {
    position: absolute;
    left: 30px;
    bottom: 74px;
    width: 4px;
    height: 12px;
    border-radius: 999px;
    background: #714726;
}

.scene-flame-outer,
.scene-flame-inner {
    position: absolute;
    left: 50%;
    transform-origin: 50% 100%;
    animation: flameFlicker 1.4s ease-in-out infinite;
}

.scene-flame-outer {
    bottom: 80px;
    width: 30px;
    height: 50px;
    margin-left: -15px;
    border-radius: 50% 50% 46% 46%;
    background: radial-gradient(circle at 50% 32%, #fff6d6 0%, #ffd966 38%, #ff8c2f 72%, rgba(255, 140, 47, 0.12) 100%);
    filter: drop-shadow(0 0 16px rgba(255, 158, 56, 0.45));
}

.scene-flame-inner {
    bottom: 92px;
    width: 15px;
    height: 25px;
    margin-left: -7px;
    border-radius: 50% 50% 44% 44%;
    background: radial-gradient(circle at 50% 24%, #fffdf1 0%, #fff1a6 45%, rgba(255, 241, 166, 0.08) 100%);
}

.scene-gas {
    font-size: 0.92rem;
    font-weight: 800;
    color: rgba(33, 72, 102, 0.72);
    padding: 0.26rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 18px rgba(41, 70, 91, 0.08);
    animation: gasFloat 5.4s ease-in-out infinite;
}

.scene-gas-1 { left: 18%; top: 32%; animation-delay: 0s; }
.scene-gas-2 { right: 18%; top: 28%; animation-delay: 1.2s; }
.scene-gas-3 { left: 24%; top: 58%; animation-delay: 2s; }
.scene-gas-4 { right: 24%; top: 56%; animation-delay: 2.8s; }

.scene-orbit {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 177, 64, 0.6);
    animation: orbitMove 8s linear infinite;
}

.scene-orbit-a {
    left: calc(50% - 88px);
    top: 46px;
}

.scene-orbit-b {
    left: calc(50% + 66px);
    top: 134px;
    width: 10px;
    height: 10px;
    background: rgba(112, 199, 255, 0.68);
    animation-duration: 6.8s;
    animation-direction: reverse;
}

.scene-status-card {
    right: 1rem;
    bottom: 0.95rem;
    display: grid;
    gap: 0.2rem;
    padding: 0.75rem 0.9rem;
    border-radius: 1rem;
    background: rgba(255, 251, 242, 0.88);
    border: 1px solid rgba(223, 208, 187, 0.9);
    box-shadow: 0 10px 24px rgba(31, 40, 51, 0.08);
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.start-choice-grid {
    margin-top: 1.1rem;
}

.choice-chip {
    min-height: 64px;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(210, 180, 135, 0.85);
    background: linear-gradient(180deg, #fffaf2 0%, #ffefcf 100%);
    color: var(--panel-strong);
    font-weight: 700;
    text-align: center;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
    box-shadow: 0 10px 22px rgba(31, 40, 51, 0.08);
}

.choice-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(179, 118, 34, 0.65);
    box-shadow: 0 14px 24px rgba(31, 40, 51, 0.12);
}

.primary-choice {
    background: linear-gradient(180deg, #fff0d4 0%, #ffd89d 100%);
}

.panel-head {
    margin-bottom: 0.8rem;
}

.chat-log {
    display: grid;
    gap: 0.8rem;
}

.chat-bubble {
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    line-height: 1.65;
}

.chat-bubble.ai {
    background: rgba(214, 239, 255, 0.7);
    border: 1px solid rgba(140, 183, 215, 0.58);
}

.chat-bubble.user {
    background: rgba(255, 236, 195, 0.74);
    border: 1px solid rgba(214, 175, 110, 0.62);
}

.scene-oxygen .scene-flame-outer,
.scene-oxygen .scene-flame-inner {
    transform: scale(1.22);
    filter: drop-shadow(0 0 22px rgba(255, 173, 64, 0.72));
}

.scene-helium .scene-flame-outer,
.scene-helium .scene-flame-inner {
    opacity: 0.34;
    transform: scale(0.55);
    animation-duration: 0.45s;
}

.scene-co2 .scene-flame-outer,
.scene-co2 .scene-flame-inner,
.scene-vacuum .scene-flame-outer,
.scene-vacuum .scene-flame-inner,
.scene-summary .scene-flame-outer,
.scene-summary .scene-flame-inner {
    opacity: 0.16;
    transform: scale(0.35);
    animation: none;
}

.scene-co2 .scene-candle,
.scene-vacuum .scene-candle,
.scene-summary .scene-candle {
    transform: translateX(-50%) translateY(6px);
    opacity: 0.82;
}

.scene-vacuum .scene-gas,
.scene-summary .scene-gas {
    opacity: 0.35;
}

@keyframes flameFlicker {
    0%, 100% { transform: translateX(0) scale(1) rotate(-2deg); }
    50% { transform: translateX(1px) scale(1.06, 0.96) rotate(2deg); }
}

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

@keyframes orbitMove {
    0% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(28px, 18px) scale(1.06); }
    50% { transform: translate(0, 42px) scale(0.94); }
    75% { transform: translate(-24px, 18px) scale(1.02); }
    100% { transform: translate(0, 0) scale(1); }
}

@media (max-width: 720px) {
    .experiment-scene {
        height: 240px;
    }

    .scene-status-card {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .choice-grid {
        grid-template-columns: 1fr;
    }
}
