/* Step 2 content; the shared Biology Brain shell is unchanged. */
.metabolism-scene { overflow-y: auto; }
.metabolism-intro { margin: 0 0 20px; color: var(--muted); font-size: .91rem; line-height: 1.5; }
.metabolic-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.metabolic-card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 14px; font: inherit; color: var(--ink); text-align: center; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.metabolic-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(31,70,48,.13); }
.metabolic-card > strong { font-size: 1.03rem; }
.metabolic-card > span:not(.reaction-symbol) { font-size: .8rem; line-height: 1.45; }
.metabolic-card > span:nth-of-type(2) { color: var(--muted); min-height: 2.9em; }
.reaction-symbol { display: grid; place-content: center; width: 100%; min-height: 116px; color: var(--bb-green-dark); background: var(--bb-green-soft); border-radius: 16px; font-size: 1.8rem; line-height: 1.25; }
.digestion-symbol { font-size: 1.2rem; }
.metabolic-card.explored { border-color: #91c4a3; }
.card-open-label, .card-viewed { color: var(--bb-green-dark); font-weight: 750; }
.metabolic-progress { color: var(--bb-green-dark); font-size: .85rem; margin: 20px 0 12px; }
#exploreATPButton { margin: 16px 0; }
.reaction-detail { width: min(740px,calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: white; padding: 30px; box-shadow: var(--shadow); }
.reaction-detail::backdrop { background: rgba(17,43,29,.42); backdrop-filter: blur(4px); }
.reaction-detail[open] { animation: reaction-reveal .28s ease-out; }
@keyframes reaction-reveal { from { opacity: 0; transform: perspective(1000px) rotateY(-12deg) scale(.92); } to { opacity: 1; transform: perspective(1000px) rotateY(0) scale(1); } }
.detail-close { position: absolute; right: 14px; top: 12px; font-size: 1.4rem; }
.reaction-detail h3 { margin: 14px 24px 12px 0; font-size: 1.4rem; line-height: 1.3; }
.reaction-detail p { line-height: 1.55; font-size: .92rem; }
.reaction-equation { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; gap: 12px; background: #f3f8f5; border: 1px solid var(--line); padding: 20px; border-radius: 14px; margin: 20px 0; }
.reaction-equation div { display: grid; gap: 10px; }
.reaction-equation div > span { text-transform: uppercase; color: var(--muted); font-size: .68rem; letter-spacing: .06em; }
.reaction-equation strong { font-size: .94rem; line-height: 1.45; }
.reaction-arrow { color: var(--bb-green); font-size: 1.6rem; text-align: center; }
.enzyme-role { padding: 16px 18px; border-radius: 12px; background: var(--bb-green-soft); }
.enzyme-role > strong { font-size: .9rem; color: var(--bb-green-dark); }
.enzyme-role p { margin: 7px 0 0; }
.atp-back { margin-bottom: 14px; }
.atp-panel { padding: 24px; text-align: center; }
.atp-panel h3 { margin: 12px 0; font-size: 1.35rem; }
.atp-panel p { font-size: .9rem; line-height: 1.55; }
.atp-reveal-button { border: none; background: transparent; display: flex; flex-direction: column; align-items: center; margin: 10px auto; cursor: pointer; max-width: 100%; }
.atp-reveal-button img { width: 360px; max-width: 100%; height: 200px; object-fit: cover; transition: transform .2s; }
.atp-reveal-button:hover img { transform: scale(1.06); }
.atp-reveal-button > span { display: inline-flex; align-items: center; }
.atp-symbol-note, .atp-description { color: var(--muted); }
.atp-diagram { margin: 16px 0 6px; overflow-x: auto; background: #f8fbf9; border-radius: 16px; border: 1px solid var(--line); }
.atp-diagram svg { display: block; width: 100%; min-width: 500px; }
.atp-diagram text { fill: #334039; font-family: inherit; font-size: 17px; font-weight: 700; }
.retained-phosphates circle, .terminal-phosphate circle { fill: #ffe4a5; stroke: #c7922d; stroke-width: 3; }
.retained-phosphates text, .terminal-phosphate text { text-anchor: middle; }
.retained-phosphates path { fill: none; stroke: #698977; stroke-width: 4; }
.terminal-phosphate { transition: transform 1s ease; }
.terminal-link, .hydrolysis-water { transition: opacity .6s ease; }
.pi-label, .adp-label, .hydrolysis-water { opacity: 0; }
.atp-diagram.reacting .hydrolysis-water { opacity: 1; }
.atp-diagram.hydrolysed .terminal-phosphate { transform: translateX(85px); }
.atp-diagram.hydrolysed .terminal-link, .atp-diagram.hydrolysed .phosphate-group-label { opacity: 0; }
.atp-diagram.hydrolysed .pi-label, .atp-diagram.hydrolysed .adp-label { opacity: 1; }
.atp-diagram.hydrolysed .hydrolysis-water { opacity: 0; }
.atp-panel .molecule-key { font-size: .72rem; color: var(--muted); }
.hydrolysis-equation { font-size: 1.15rem; font-weight: 850; margin: 18px 0 10px; color: var(--bb-green-dark); }
.hydrolysis-feedback { min-height: 3em; }
.cellular-work { background: var(--bb-green-soft); border: 1px solid #c5dfce; border-radius: 12px; margin-top: 20px; padding: 18px 12px; animation: reaction-reveal .3s ease-out; }
.cellular-work > strong { font-size: .9rem; color: var(--bb-green-dark); }
.work-examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.work-examples span { background: white; border: 1px solid #d9e5dd; border-radius: 9px; padding: 9px 12px; font-size: .8rem; }
.cellular-work p { font-size: .78rem; margin: 12px 0 0; }
.atp-recycling { color: var(--muted); }
@media (min-width:721px) and (max-width:950px) { .metabolism-scene { padding-right:325px; } .metabolism-scene .comparison-heading { padding-right:0; } .metabolic-cards { grid-template-columns:1fr; } .reaction-symbol { min-height:75px; } }
@media (max-width:720px) { .metabolism-scene .comparison-heading { padding-top:42px; } .metabolic-cards { grid-template-columns:1fr; } .reaction-symbol { min-height:82px; } .metabolic-card { gap:10px; padding:18px; } .metabolic-card > span:nth-of-type(2) { min-height:0; } .atp-panel { padding:18px 12px; } .reaction-detail { padding:26px 18px; } .reaction-equation { padding:14px; gap:8px; grid-template-columns:1fr 22px 1fr; } }
