/* Биология кабинеті */
.bio-view { background: #eef6f1; }
.lab-canvas[hidden] { display: none; }
.bio-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bio-modes button { font: inherit; font-size: 14px; font-weight: 700; min-height: 48px; padding: 6px 8px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.bio-modes button[aria-pressed="true"] { border-color: #2f9e44; background: #ebfbee; color: #2b8a3e; }
.bio-dot { float: right; width: 22px; height: 22px; border-radius: 50%; }
.bio-p { font-size: 15.5px; color: var(--ink); margin: 0 0 10px; }
.bio-count { float: right; font-size: 13px; font-weight: 700; color: #2b8a3e; background: #ebfbee; padding: 2px 10px; border-radius: 999px; }
.bio-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.bio-list button { font: inherit; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; text-align: left; min-height: 42px; padding: 6px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.bio-list button i { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.bio-list button[aria-pressed="true"] { border-color: #5533ff; background: #f3f0ff; }
.bio-quiz-btn { width: 100%; }
.bio-rate { margin-top: 12px; display: grid; gap: 10px; }
.bio-nums { display: grid; gap: 4px; font-size: 15px; }
.bio-nums em { font-style: normal; font-weight: 800; color: #e03131; }
.bio-nums .beat { display: inline-block; animation: beat .8s ease-in-out infinite; }
@keyframes beat { 15% { transform: scale(1.3); } 30% { transform: scale(1); } }
.bio-quiz { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; font-size: 20px; padding: 10px 18px; border-radius: 16px; background: #fff; border: 2px solid #5533ff; box-shadow: 0 8px 24px rgba(20,16,44,.15); z-index: 5; }
.bio-quiz span { font-size: 14px; font-weight: 700; color: var(--muted); }
.bio-quiz b { color: #5533ff; }
.bio-quiz button { font: inherit; border: 0; background: #f1f3f5; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }
.bio-chain { position: absolute; inset: 0; overflow: auto; padding: 28px; text-align: center; font-size: clamp(15px, 1.15vw, 22px); background: linear-gradient(#e7f5ff, #ebfbee); }
.bio-chain h2 { font-size: 1.8em; margin-bottom: .2em; }
.bio-chain > p { color: var(--text); }
.bio-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 24px 0; }
.bio-line .slot { width: 7.5em; min-height: 7.5em; border-radius: 1em; border: 3px dashed #b2f2bb; background: rgba(255,255,255,.7); display: grid; place-items: center; align-content: center; gap: 2px; font-weight: 700; }
.bio-line .slot.on { border-style: solid; border-color: #2f9e44; background: #fff; animation: rise .3s ease both; }
.bio-line .slot b, .bio-pool button b { font-size: 2.4em; line-height: 1.1; }
.bio-line .slot small { font-size: .7em; color: #2b8a3e; }
.bio-line .arr { font-style: normal; font-size: 2em; color: #2f9e44; }
.bio-pool { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.bio-pool button { font: inherit; font-weight: 700; display: grid; justify-items: center; width: 7.5em; padding: .6em; border-radius: 1em; border: 2px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.bio-roles { font-size: 1.2em; font-weight: 600; color: #2b8a3e; }
.bio-bad { animation: thshake2 .4s ease; }
@keyframes thshake2 { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.bio-credit { margin: 10px 0 0; font-size: 11.5px; color: var(--muted); }

/* 3D-дегі атаулар: бөліктен сызық шығып, атауы жазылады. Таңдалғаны ерекшеленеді, қалғаны бәсеңдейді. */
.bio-labels { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.bio-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.bio-lines line { stroke: #343a40; stroke-width: 1.5; opacity: .55; }
.bio-lines circle { fill: #fff; stroke: #343a40; stroke-width: 2; }
.bio-lines .off, .bio-lines .back { opacity: .18; }
.bio-lines line.on { stroke: #5533ff; stroke-width: 2.5; opacity: 1; }
.bio-lines circle.on { stroke: #5533ff; }
.bio-lbl { position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; padding: 5px 10px; border-radius: 999px; border: 1.5px solid rgba(20,16,44,.12); background: rgba(255,255,255,.94); color: var(--ink); cursor: pointer; box-shadow: 0 4px 12px rgba(20,16,44,.08); transition: opacity .2s; will-change: transform; }
.bio-lbl i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.bio-lbl.back { opacity: .55; }
.bio-lbl.off { opacity: .35; }
.bio-lbl.on { border-color: #5533ff; background: #5533ff; color: #fff; font-size: 16px; z-index: 2; }
body.touch .bio-lbl { font-size: 16px; padding: 8px 12px; }
.bio-lbl-toggle { margin: -2px 0 10px; font-size: 14px; }
