:root {
  --ink: #07111c;
  --navy: #091a2a;
  --panel: #0c2132;
  --cyan: #54dfd7;
  --mint: #b4f9dc;
  --violet: #7a66ff;
  --paper: #eef1e8;
  --muted: #8b9ba5;
  --line: rgba(150, 206, 212, .18);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--ink); color: var(--paper); font-family: Manrope, sans-serif; font-size: 19.2px; }
button, input { font: inherit; }
button { color: inherit; }
.noise { position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
.screen { display: none; min-height: 100vh; animation: reveal .55s ease both; }
.screen.active { display: flex; }
@keyframes reveal { from { opacity: 0; } to { opacity: 1; } }

.brand { display: flex; gap: 13px; align-items: center; font: 700 18px/1 DM Mono, monospace; letter-spacing: .12em; }
.brand b { color: var(--cyan); font-weight: 500; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--cyan); color: var(--cyan); position: relative; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 5px; height: 5px; border: 1px solid var(--cyan); border-radius: 50%; }
.brand-mark::before { top: -4px; left: -4px; }.brand-mark::after { right: -4px; bottom: -4px; }
.brand.small .brand-mark { width: 31px; height: 31px; font-size: 14.4px; }

.login-shell { min-height: 100vh; width: 100%; overflow: hidden; position: relative; padding: 38px 5.5vw; background: radial-gradient(circle at 75% 48%, rgba(41, 135, 144, .24), transparent 26%), radial-gradient(circle at 18% 82%, rgba(96, 66, 163, .12), transparent 25%), linear-gradient(125deg, #07121c 25%, #09202d); }
.login-shell::before { content: ""; position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(109, 190, 195, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(109, 190, 195, .16) 1px, transparent 1px); background-size: 52px 52px; mask-image: radial-gradient(circle at 70%, #000, transparent 58%); }
.login-copy { position: relative; z-index: 1; max-width: 720px; margin-top: clamp(120px, 17vh, 190px); }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--cyan); text-transform: uppercase; letter-spacing: .22em; font: 500 13.2px DM Mono, monospace; }
.eyebrow > span { width: 32px; height: 1px; background: currentColor; }
h1, h2 { letter-spacing: -.055em; margin: 18px 0; line-height: .98; font-size: clamp(57.6px, 7.2vw, 98.4px); }
h1 em, h2 em { color: var(--cyan); font-style: normal; font-weight: 500; }
.lead { color: #9dafb6; max-width: 590px; line-height: 1.7; font-size: 19.2px; }
.login-form { margin-top: 48px; max-width: 620px; }
.login-form label { display: block; color: #dfeae6; font-size: 14.4px; margin-bottom: 10px; }
.name-row { display: flex; gap: 10px; }
.name-row input { min-width: 0; flex: 1; border: 1px solid rgba(150, 206, 212, .28); background: rgba(5, 17, 27, .62); color: white; padding: 16px 17px; outline: 0; border-radius: 2px; transition: .2s; }
.name-row input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(84, 223, 215, .08); }
.name-row input::placeholder { color: #667985; }
.primary-button { border: 0; padding: 16px 21px; min-width: 175px; background: var(--cyan); color: #06151b; font-weight: 800; cursor: pointer; border-radius: 2px; box-shadow: 0 10px 30px rgba(84, 223, 215, .12); transition: .2s; }
.primary-button:hover { transform: translateY(-2px); background: #7ceae2; }
.primary-button span { float: right; margin-left: 16px; }
.form-error { min-height: 18px; color: #ff938f; font-size: 14.4px; }
.login-foot { position: absolute; left: 5.5vw; bottom: 28px; color: #526875; font: 12px DM Mono, monospace; letter-spacing: .18em; }.login-foot b { color: var(--cyan); }

.molecule { position: absolute; width: 430px; height: 430px; right: 7vw; top: 16vh; border: 1px solid rgba(104, 213, 211, .12); border-radius: 50%; animation: rotate 24s linear infinite; }
.molecule::before, .molecule::after, .molecule i { content: ""; position: absolute; border-radius: 50%; background: #0f3340; border: 1px solid rgba(100, 230, 218, .5); box-shadow: 0 0 30px rgba(84,223,215,.15); }
.molecule::before { width: 120px; height: 120px; left: 155px; top: 155px; }
.molecule::after { width: 55px; height: 55px; left: 25px; top: 165px; }
.molecule i { width: 38px; height: 38px; }.molecule i:nth-child(1) { right: 15px; top: 78px; }.molecule i:nth-child(2) { right: 45px; bottom: 70px; }.molecule i:nth-child(3) { left: 75px; bottom: 18px; }.molecule i:nth-child(4) { left: 80px; top: 40px; }
.molecule-b { width: 130px; height: 130px; right: 38vw; top: 11vh; opacity: .35; animation-direction: reverse; }
.molecule-b::before { width: 22px; height: 22px; left: 52px; top: 52px; }.molecule-b::after { width: 14px; height: 14px; left: -7px; top: 55px; }.molecule-b i { width: 11px; height: 11px; }
@keyframes rotate { to { transform: rotate(360deg); } }

#dashboard-screen { flex-direction: column; background: #071521; }
#dashboard-screen.game-overlay { position: fixed; z-index: 60; inset: 0; min-height: 100vh; overflow-y: auto; background: rgba(3, 13, 21, .42); backdrop-filter: blur(3px) saturate(.82); }
#dashboard-screen.game-overlay .topbar { background: rgba(5, 17, 27, .78); box-shadow: 0 8px 30px rgba(0,0,0,.2); }
#dashboard-screen.game-overlay .dashboard-heading { padding: 18px 22px; background: rgba(4, 17, 27, .58); border: 1px solid rgba(150,206,212,.15); backdrop-filter: blur(8px); }
#dashboard-screen.game-overlay .level-card { background: linear-gradient(145deg, rgba(12,35,51,.82), rgba(7,21,33,.78)); backdrop-filter: blur(9px); box-shadow: 0 14px 38px rgba(0,0,0,.2); }
.game-screen.level-menu-background .enter-3d { display: none; }
.game-screen.level-menu-background .game-hud, .game-screen.level-menu-background .objective-panel, .game-screen.level-menu-background .interaction-prompt, .game-screen.level-menu-background .instruction-popup, .game-screen.level-menu-background .orientation-subtitle, .game-screen.level-menu-background .scanner-stack, .game-screen.level-menu-background .ph-meter-panel { opacity: .18; }
.topbar { height: 80px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; border-bottom: 1px solid var(--line); background: rgba(5, 17, 27, .7); }
.dashboard-actions { display: flex; align-items: center; gap: 20px; }
.menu-shortcut { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; color: var(--cyan); background: rgba(84,223,215,.06); border: 1px solid rgba(84,223,215,.28); border-radius: 2px; cursor: pointer; font: 500 10.8px DM Mono, monospace; letter-spacing: .1em; }
.menu-shortcut:hover { background: rgba(84,223,215,.13); border-color: var(--cyan); }
.menu-shortcut kbd, .hud-button kbd { min-width: 24px; height: 24px; display: inline-grid; place-items: center; padding: 0 5px; color: #06151b; background: var(--cyan); border: 0; border-radius: 2px; box-shadow: 0 2px 0 #218e89; font: 800 12px Manrope, sans-serif; }
.player-pill { display: flex; align-items: center; gap: 10px; font-size: 14.4px; text-transform: uppercase; letter-spacing: .08em; }.player-pill button { border: 0; background: none; color: #6d8792; cursor: pointer; font-size: 21.6px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.dashboard-wrap { width: min(1500px, 94vw); margin: 0 auto; padding: 44px 0 64px; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.dashboard-heading h2 { font-size: clamp(43.2px, 4.8vw, 70.8px); margin: 12px 0; }.dashboard-heading > div > p:last-child { color: #82959f; margin: 0; }
.progress-dial { width: 105px; height: 105px; border: 1px solid rgba(84,223,215,.34); border-radius: 50%; display: grid; place-content: center; text-align: center; position: relative; }
.progress-dial::after { content: ""; position: absolute; inset: 7px; border: 1px dashed rgba(84,223,215,.22); border-radius: 50%; }
.progress-dial strong { font-size: 27.6px; color: var(--cyan); }.progress-dial small { margin-top: 4px; font: 9.6px/1.4 DM Mono, monospace; letter-spacing: .12em; color: #718793; }
.level-grid { display: grid; grid-template-columns: repeat(6, minmax(165px, 1fr)); gap: 12px; overflow-x: auto; padding: 0 0 12px; scrollbar-color: rgba(84,223,215,.42) rgba(150,206,212,.08); }
.level-card { min-width: 165px; min-height: 258px; position: relative; overflow: hidden; text-align: left; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(12,35,51,.92), rgba(7,21,33,.9)); padding: 15px; border-radius: 3px; transition: .25s; }
button.level-card { cursor: pointer; }
.level-card.unlocked:hover { border-color: var(--cyan); transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,.24); }
.level-card.locked { color: #7a8a92; filter: saturate(.5); }
.level-card h3 { position: relative; font-size: 17px; line-height: 1.25; margin: 7px 0; }.level-card > p:not(.card-state) { position: relative; margin: 0; max-width: 220px; color: #80929b; font-size: 11px; line-height: 1.45; }
.level-number { position: absolute; top: 9px; right: 12px; color: rgba(170,220,220,.12); font: 600 38px DM Mono, monospace; }
.card-state { position: relative; margin: 89px 0 0; min-height: 26px; text-transform: uppercase; font: 8.4px/1.45 DM Mono, monospace; letter-spacing: .08em; color: #677d87; }.unlocked .card-state { color: var(--cyan); }.card-state span { display: inline-block; width: 5px; height: 5px; background: currentColor; border-radius: 50%; margin-right: 5px; box-shadow: 0 0 8px currentColor; }
.card-foot { position: absolute; left: 15px; right: 15px; bottom: 13px; padding-top: 9px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #5e747e; font: 8.4px DM Mono, monospace; letter-spacing: .08em; }.unlocked .card-foot { color: var(--cyan); }
.level-visual { position: absolute; height: 92px; left: 0; right: 0; top: 0; display: grid; place-items: center; font: 34px DM Mono, monospace; color: rgba(93,215,209,.35); background: radial-gradient(circle, rgba(71,185,182,.14), transparent 60%); }
.visual-one .flask { font-size: 66px; color: var(--cyan); filter: drop-shadow(0 0 22px rgba(84,223,215,.35)); }.visual-one i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); animation: bubble 2s ease-in infinite; }.visual-one i:nth-of-type(1) { left: 42%; top: 39%; }.visual-one i:nth-of-type(2) { left: 58%; top: 55%; animation-delay: .7s; }.visual-one i:nth-of-type(3) { left: 51%; top: 30%; animation-delay: 1.2s; }
@keyframes bubble { 50% { transform: translateY(-18px); opacity: .3; } }

.loading-screen { flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle, #103243 0, #07131f 48%); }
.loader-orbit { width: 170px; height: 170px; border: 1px solid rgba(84,223,215,.18); border-radius: 50%; position: relative; display: grid; place-items: center; margin-bottom: 32px; }
.loader-orbit::before, .loader-orbit::after { content: ""; position: absolute; border-radius: 50%; inset: 18px; border: 1px dashed rgba(84,223,215,.35); animation: rotate 5s linear infinite; }.loader-orbit::after { inset: -9px; border-style: solid; border-color: transparent var(--violet); animation-direction: reverse; animation-duration: 2.5s; }
.loader-orbit span { font: 500 45.6px DM Mono, monospace; color: var(--cyan); text-shadow: 0 0 20px rgba(84,223,215,.6); }.loader-orbit i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); }.loader-orbit i:nth-child(1) { top: 15px; }.loader-orbit i:nth-child(2) { left: 16px; bottom: 38px; background: var(--violet); }.loader-orbit i:nth-child(3) { right: 5px; bottom: 62px; }
.eyebrow.centered { justify-content: center; }.loading-screen h2 { font-size: 55.2px; margin: 8px; }.loading-screen > p:not(.eyebrow) { color: #7f939c; font-size: 15.6px; }
.loading-track { width: min(330px, 78vw); height: 2px; background: rgba(255,255,255,.1); margin: 28px 0 12px; }.loading-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan)); box-shadow: 0 0 10px var(--cyan); transition: width .1s linear; }.loading-screen small { color: var(--cyan); font: 12px DM Mono, monospace; }

.activity-screen { flex-direction: column; min-height: 100vh; overflow-y: auto; background: radial-gradient(circle at 85% 12%, rgba(84,223,215,.12), transparent 26%), linear-gradient(135deg, #07131f, #0a2130); }
.activity-topbar { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 0 4vw; border-bottom: 1px solid var(--line); background: rgba(5,17,27,.72); }.activity-topbar .hud-button { justify-self: start; }.activity-level-tag { justify-self: end; color: var(--cyan); font: 10.8px DM Mono, monospace; letter-spacing: .14em; }
.activity-shell { width: min(980px, calc(100% - 36px)); margin: 0 auto; padding: 52px 0 80px; }.activity-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }.activity-heading h2 { margin: 12px 0; font-size: clamp(44px, 6vw, 72px); }.activity-heading > div:first-child > p:last-child { max-width: 700px; margin: 0; color: #8ea2ab; line-height: 1.6; }
.activity-score { width: 112px; height: 112px; flex: 0 0 auto; display: grid; place-content: center; text-align: center; border: 1px solid rgba(84,223,215,.42); border-radius: 50%; }.activity-score strong { color: var(--cyan); font-size: 33px; line-height: 1; }.activity-score small { margin-top: 6px; color: #76909a; font: 9px/1.4 DM Mono, monospace; letter-spacing: .12em; }
.activity-track { height: 3px; margin: 34px 0 22px; overflow: hidden; background: rgba(137,190,195,.16); }.activity-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan)); box-shadow: 0 0 12px var(--cyan); transition: width .35s ease; }
.quiz-skip-bar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:16px; padding:13px 16px; background:rgba(118,88,244,.09); border:1px solid rgba(140,118,244,.28); }.quiz-skip-bar small, .quiz-skip-bar strong { display:block; }.quiz-skip-bar small { margin-bottom:4px; color:#a997ff; font:8px DM Mono,monospace; letter-spacing:.16em; }.quiz-skip-bar strong { color:#b8c8ce; font-size:12px; }.quiz-skip-bar .secondary-button { flex:0 0 auto; color:#c5baff; border-color:rgba(140,118,244,.5); }
.learning-panel { padding: clamp(24px, 4vw, 42px); background: rgba(7,25,37,.9); border: 1px solid var(--line); border-left: 3px solid var(--cyan); box-shadow: 0 24px 65px rgba(0,0,0,.22); }.learning-panel-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }.learning-panel-head small, .learning-panel-head > span { color: var(--cyan); font: 10px DM Mono, monospace; letter-spacing: .15em; }.learning-panel-head h3 { margin: 7px 0 0; font-size: 30px; }.panel-instruction { color: #8ea2ab; font-size: 15px; }
.jumble-word { margin: 34px 0; padding: 24px; color: #efffff; text-align: center; font: 700 clamp(29px, 5vw, 49px) DM Mono, monospace; letter-spacing: .2em; overflow-wrap: anywhere; background: rgba(84,223,215,.07); border: 1px dashed rgba(84,223,215,.45); }
.answer-form label { display: block; margin-bottom: 9px; color: #adc0c5; font-size: 13px; }.answer-form > div { display: flex; gap: 10px; }.answer-form input { min-width: 0; flex: 1; padding: 15px 17px; color: white; background: #061620; border: 1px solid rgba(150,206,212,.3); outline: none; }.answer-form input:focus { border-color: var(--cyan); }.answer-form input:disabled { opacity: .72; }
.activity-feedback { min-height: 25px; margin: 18px 0; font-size: 14px; line-height: 1.55; }.activity-feedback.correct { color: #87edbd; }.activity-feedback.incorrect { color: #ff9e98; }.secondary-button { padding: 12px 17px; color: var(--cyan); background: transparent; border: 1px solid rgba(84,223,215,.45); cursor: pointer; }.secondary-button:hover { background: rgba(84,223,215,.08); }#jumble-next { min-width: 175px; }
.matching-list { display: grid; gap: 10px; margin: 28px 0 20px; }.matching-row { display: grid; grid-template-columns: minmax(170px, .65fr) 1.35fr; align-items: center; gap: 16px; padding: 13px 15px; background: rgba(4,18,28,.7); border: 1px solid rgba(150,206,212,.14); }.matching-row label { font-weight: 700; font-size: 14px; }.matching-row select { min-width: 0; width: 100%; padding: 11px 12px; color: #eaffff; background: #0a202d; border: 1px solid rgba(150,206,212,.28); outline: none; }.matching-row select:focus { border-color: var(--cyan); }.matching-row.correct { border-color: rgba(92,226,157,.65); background: rgba(46,127,89,.12); }.matching-row.incorrect { border-color: rgba(255,125,116,.65); background: rgba(146,55,55,.12); }.match-correction { grid-column: 1 / -1; color: #ffb7b2; font-size: 12px; line-height: 1.5; }.matching-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#jumble-answer { text-transform: uppercase; font: 700 15px DM Mono, monospace; letter-spacing: .08em; }
.matching-mission-status { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px 24px; margin-top: 24px; padding: 17px 19px; background: linear-gradient(105deg, rgba(84,223,215,.09), rgba(112,86,231,.08)); border: 1px solid rgba(84,223,215,.25); }
.matching-mission-status small, .match-equipment small, .match-select-wrap > small { display: block; color: var(--cyan); font: 8px DM Mono, monospace; letter-spacing: .16em; }
.matching-mission-status > div:first-child strong { display: block; margin-top: 5px; font-size: 13px; }
.matching-linked-count { display: flex; align-items: baseline; gap: 5px; color: #829aa3; font: 9px DM Mono, monospace; letter-spacing: .12em; }
.matching-linked-count strong { color: var(--cyan); font-size: 28px; line-height: 1; }
.matching-mini-track { grid-column: 1 / -1; height: 3px; overflow: hidden; background: rgba(255,255,255,.08); }
.matching-mini-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan)); box-shadow: 0 0 10px var(--cyan); transition: width .28s ease; }
.matching-list { gap: 12px; margin-top: 18px; }
.matching-row { position: relative; grid-template-columns: minmax(230px, .72fr) 1.28fr; gap: 22px; min-height: 92px; padding: 14px 16px; overflow: hidden; background: linear-gradient(105deg, rgba(4,18,28,.92), rgba(8,31,43,.72)); transition: border-color .22s, transform .22s, background .22s; }
.matching-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #304851; transition: background .22s, box-shadow .22s; }
.matching-row:hover { transform: translateX(3px); border-color: rgba(84,223,215,.36); }
.match-equipment { display: grid; grid-template-columns: 31px 48px 1fr; align-items: center; gap: 10px; }
.match-number { color: #607982; font: 9px DM Mono, monospace; }
.match-equipment-code { width: 48px; height: 48px; display: grid; place-items: center; color: var(--cyan); background: rgba(84,223,215,.08); border: 1px solid rgba(84,223,215,.3); border-radius: 50%; font: 800 13px DM Mono, monospace; box-shadow: inset 0 0 18px rgba(84,223,215,.05); }
.matching-row label { display: grid; gap: 5px; cursor: pointer; }
.match-link-control { display: grid; grid-template-columns: 30px minmax(0, 1fr) 60px; align-items: center; gap: 10px; }
.match-connector { position: relative; display: block; height: 1px; background: rgba(137,190,195,.25); }
.match-connector::before, .match-connector::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: #38525b; }
.match-connector::before { left: 0; }.match-connector::after { right: 0; }
.match-select-wrap { min-width: 0; }
.matching-row select { margin-top: 5px; padding: 11px 34px 11px 12px; cursor: pointer; }
.matching-row select:focus { box-shadow: 0 0 0 2px rgba(84,223,215,.08); }
.match-state { color: #68818a; text-align: right; font: 8px DM Mono, monospace; letter-spacing: .12em; }
.matching-row.has-selection { border-color: rgba(84,223,215,.42); background: linear-gradient(105deg, rgba(9,37,47,.96), rgba(23,47,61,.76)); }
.matching-row.has-selection::before { background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.matching-row.has-selection .match-state { color: var(--cyan); }
.matching-row.has-selection .match-connector, .matching-row.has-selection .match-connector::before, .matching-row.has-selection .match-connector::after { background: var(--cyan); }
.matching-row.correct::before { background: #5ce29d; }.matching-row.correct .match-state { color: #87edbd; }
.matching-row.incorrect::before { background: #ff7d74; }.matching-row.incorrect .match-state { color: #ff9e98; }
.match-correction { margin: -2px 0 2px 89px; }
.matching-actions .primary-button:disabled { color: #59717a; background: #17303a; cursor: not-allowed; box-shadow: none; transform: none; }
.activity-complete { text-align: center; border-left-width: 1px; }.complete-mark { width: 76px; height: 76px; display: grid; place-items: center; margin: 0 auto 18px; color: var(--cyan); border: 1px solid var(--cyan); border-radius: 50%; font-size: 38px; box-shadow: 0 0 35px rgba(84,223,215,.2); }.activity-complete h3 { margin: 10px 0; font-size: clamp(32px, 5vw, 52px); }.activity-complete h3 em { color: var(--cyan); font-style: normal; }.activity-complete > p:not(.eyebrow) { color: #92a7ae; }.activity-complete-actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }.activity-complete-actions .primary-button, .activity-complete-actions .secondary-button { margin: 0; }

.game-screen { position: relative; overflow: hidden; background: #eaf2f1; }
.lab-backdrop { position: absolute; inset: 0; overflow: hidden; background: #eaf2f1; }
.lab-backdrop canvas { display: block; width: 100%; height: 100%; }
.webgl-message { position: absolute; inset: 0; display: grid; place-items: center; color: #147d7a; background: #eaf2f1; font: 12px DM Mono, monospace; letter-spacing: .15em; text-transform: uppercase; }
@keyframes labIn { from { transform: scale(1.12); filter: blur(7px); } }
.game-vignette { position: absolute; inset: 0; background: radial-gradient(circle at 50% 47%, transparent 52%, rgba(12,50,56,.09) 100%), linear-gradient(180deg, rgba(5,22,28,.22), transparent 18%, rgba(5,22,28,.05)); pointer-events: none; }
.game-hud { position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 76px; display: flex; justify-content: space-between; align-items: center; padding: 0 30px; border-bottom: 1px solid rgba(185,229,227,.15); background: linear-gradient(#04101bb8, transparent); }
.hud-button { border: 1px solid var(--line); background: rgba(5,18,28,.7); padding: 10px 13px; cursor: pointer; font: 12px DM Mono, monospace; letter-spacing: .12em; }.hud-button:hover { border-color: var(--cyan); }
.mission-title { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; }.mission-title small { display: block; color: var(--cyan); font: 9.6px DM Mono, monospace; letter-spacing: .18em; }.mission-title strong { font-size: 16.8px; }
.hud-status { display: flex; align-items: center; gap: 8px; color: #b8ced0; font: 10.8px DM Mono, monospace; letter-spacing: .1em; }.hud-status > i { width: 1px; height: 15px; background: rgba(185,229,227,.28); margin: 0 4px; }.player-height { color: #d8e7e6; }
.objective-panel { position: absolute; z-index: 4; left: 28px; top: 105px; width: 285px; padding: 20px; background: rgba(5,18,28,.84); backdrop-filter: blur(12px); border: 1px solid var(--line); border-left: 2px solid var(--cyan); }
.panel-label { color: var(--cyan); font: 9.6px DM Mono, monospace; letter-spacing: .15em; }.objective-panel h3 { font-size: 20.4px; margin: 9px 0; }.objective-panel p { color: #8da1aa; font-size: 13.2px; line-height: 1.55; margin: 0; }.objective-progress { margin-top: 16px; color: #708790; font: 9.6px DM Mono, monospace; }.objective-progress i { display: block; margin-top: 7px; height: 2px; background: #263a44; }.objective-progress b { display: block; height: 100%; width: 0; background: var(--cyan); transition: .4s; }
.crosshair { position: absolute; z-index: 2; left: 50%; top: 50%; width: 28px; height: 28px; border: 1px solid rgba(191,246,239,.4); border-radius: 50%; transform: translate(-50%,-50%); }.crosshair::before, .crosshair::after { content: ""; position: absolute; background: rgba(191,246,239,.55); }.crosshair::before { height: 1px; width: 38px; top: 13px; left: -6px; }.crosshair::after { width: 1px; height: 38px; left: 13px; top: -6px; }.crosshair i { position: absolute; inset: 11px; background: var(--cyan); border-radius: 50%; }
.three-enabled .experiment-bench, .three-enabled .fallback-hands { display: none; }
.enter-3d { position: absolute; z-index: 15; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle at 50% 46%, rgba(12,39,52,.45), rgba(3,10,17,.9) 64%); backdrop-filter: blur(8px); transition: opacity .3s; }
.enter-3d.hidden { opacity: 0; pointer-events: none; }
.enter-3d h2 { margin: 10px 0; font-size: clamp(45.6px, 6vw, 76.8px); }.enter-3d > p:not(.eyebrow) { margin: 0 20px; color: #91a6ae; }
.mouse-icon { width: 42px; height: 62px; margin-bottom: 22px; border: 1px solid rgba(84,223,215,.7); border-radius: 22px; position: relative; box-shadow: 0 0 25px rgba(84,223,215,.15); }.mouse-icon i { position: absolute; width: 3px; height: 10px; top: 11px; left: 18px; border-radius: 3px; background: var(--cyan); animation: scrollMouse 1.5s ease infinite; }
@keyframes scrollMouse { 50% { transform: translateY(7px); opacity: .3; } }
.key-guide { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; margin: 30px 0; color: #7c919a; font: 9.6px DM Mono, monospace; letter-spacing: .1em; }.key-guide > span { display: flex; gap: 5px; align-items: center; }.key-guide b { min-width: 25px; height: 25px; padding: 0 5px; display: grid; place-items: center; color: #c8dbd8; border: 1px solid rgba(164,215,213,.28); background: rgba(9,29,42,.8); border-radius: 3px; }
.game-screen.pointer-active .crosshair { border-color: var(--cyan); }.game-screen.pointer-active .crosshair i { box-shadow: 0 0 9px var(--cyan); }
.game-screen.interactable .crosshair { transform: translate(-50%,-50%) scale(1.28); border-color: #fff; box-shadow: 0 0 15px rgba(84,223,215,.65); }
.interaction-prompt { position: absolute; z-index: 7; left: 50%; bottom: 17%; display: flex; align-items: center; gap: 11px; padding: 10px 14px; color: #efffff; background: rgba(5,27,38,.94); border: 1px solid rgba(84,223,215,.55); border-radius: 3px; box-shadow: 0 12px 35px rgba(5,22,30,.26); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: .2s ease; }.interaction-prompt.show { opacity: 1; transform: translate(-50%, 0); }.interaction-prompt kbd { width: 32px; height: 32px; display: grid; place-items: center; color: #09212a; background: var(--cyan); border: 0; border-radius: 3px; box-shadow: 0 0 14px rgba(84,223,215,.35); font: 700 14.4px DM Mono, monospace; }.interaction-prompt strong { font-size: 14.4px; white-space: nowrap; }
.instruction-popup { position: absolute; z-index: 12; left: 50%; top: 92px; width: min(390px, calc(100vw - 30px)); padding: 14px 17px; display: flex; align-items: center; gap: 14px; color: #e9ffff; background: rgba(7,31,42,.94); border: 1px solid rgba(84,223,215,.5); border-radius: 3px; box-shadow: 0 15px 45px rgba(5,24,31,.25); transform: translate(-50%, -18px); opacity: 0; pointer-events: none; transition: .35s ease; }.instruction-popup.show { opacity: 1; transform: translate(-50%, 0); }.instruction-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; color: var(--cyan); border: 1px solid rgba(84,223,215,.38); border-radius: 50%; font-size: 21.6px; }.instruction-popup small, .instruction-popup strong { display: block; }.instruction-popup small { margin-bottom: 3px; color: var(--cyan); font: 8.4px DM Mono, monospace; letter-spacing: .18em; }.instruction-popup strong { font-size: 15.6px; }
.orientation-subtitle[hidden] { display: none; }
.orientation-subtitle { position: absolute; z-index: 14; left: 50%; bottom: 7%; width: min(900px, calc(100vw - 32px)); padding: 17px 20px; color: #eaffff; background: rgba(3,17,26,.94); border: 1px solid rgba(84,223,215,.48); border-top: 3px solid var(--cyan); border-radius: 3px; box-shadow: 0 18px 55px rgba(0,0,0,.42); transform: translateX(-50%); backdrop-filter: blur(10px); }
.orientation-subtitle small { display: block; color: var(--cyan); font: 8.5px DM Mono, monospace; letter-spacing: .18em; }.orientation-subtitle p { margin: 8px 0 13px; font-size: 15px; line-height: 1.55; text-wrap: balance; }.orientation-subtitle > div { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--cyan); font: 9px DM Mono, monospace; letter-spacing: .14em; }.orientation-subtitle kbd { min-width: 30px; height: 28px; display: inline-grid; place-items: center; color: #06151b; background: var(--cyan); border-radius: 3px; box-shadow: 0 2px 0 #218e89; font: 800 13px Manrope, sans-serif; }
.experiment-bench { position: absolute; z-index: 5; width: min(620px, 80vw); left: 50%; bottom: 16%; transform: translateX(-50%); display: flex; align-items: end; justify-content: space-around; }
.sample, .mix-station { border: 0; background: none; cursor: pointer; text-align: center; filter: drop-shadow(0 18px 18px rgba(0,0,0,.55)); transition: .25s; }.sample:hover { transform: translateY(-10px) scale(1.03); }.sample.inspected { opacity: .6; }.sample b, .sample small, .mix-station b { display: block; text-shadow: 0 2px 4px black; }.sample b { margin-top: 9px; font: 9.6px DM Mono, monospace; letter-spacing: .15em; }.sample small { color: #a5bac1; font: 8.4px DM Mono, monospace; margin-top: 4px; }
.vessel { position: relative; display: block; width: 72px; height: 95px; margin: auto; border: 2px solid rgba(220,246,244,.6); border-radius: 8px 8px 30px 30px; background: linear-gradient(90deg, rgba(255,255,255,.12), transparent 30%, rgba(255,255,255,.06)); overflow: hidden; }.vessel::before { content: ""; position: absolute; width: 34px; height: 25px; left: 17px; top: -18px; border: 2px solid rgba(220,246,244,.6); }.vessel i { position: absolute; left: 4px; right: 4px; bottom: 4px; height: 56%; border-radius: 0 0 24px 24px; background: #31ccda99; box-shadow: 0 0 25px #29dced; animation: liquid 2.5s ease-in-out infinite; }.sample-violet .vessel i { background: #8264f0aa; box-shadow: 0 0 24px #8164f0; height: 45%; animation-delay: .5s; }
@keyframes liquid { 50% { transform: skewY(3deg); } }
.mix-station:disabled { cursor: not-allowed; }.mix-station:not(:disabled):hover { transform: translateY(-8px); }.mix-station:not(:disabled) b { color: var(--cyan); }
.mix-vessel { display: block; position: relative; margin: auto; width: 110px; height: 115px; border: 2px solid rgba(220,246,244,.68); border-radius: 10px 10px 50px 50px; overflow: hidden; background: rgba(193,236,232,.06); }.mix-vessel::after { content: ""; position: absolute; width: 48px; height: 45px; border: 2px solid rgba(220,246,244,.68); border-bottom: 0; left: 29px; top: -33px; }.mix-vessel i { position: absolute; inset: auto 5px 5px; height: 24%; border-radius: 0 0 43px 43px; background: #52666d99; transition: .5s; }.mix-station.ready .mix-vessel i { height: 50%; background: linear-gradient(#6b52e7aa, #32d5d3bb); box-shadow: 0 0 25px #4fdcd0; }.mix-station b { margin-top: 10px; color: #73878f; font: 9.6px DM Mono, monospace; letter-spacing: .1em; }
.scanner-stack { position: absolute; z-index: 6; left: 50%; bottom: 8%; width: min(900px, calc(100vw - 32px)); display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); pointer-events: none; }
.scanner-card { min-width: 270px; padding: 10px 15px; text-align: center; background: rgba(5,18,28,.86); border: 1px solid var(--line); backdrop-filter: blur(10px); transition: .2s; }.scanner-card small, .scanner-card strong { display: block; }.scanner-card small { color: var(--cyan); font: 8.4px DM Mono, monospace; letter-spacing: .16em; }.scanner-card strong { margin-top: 4px; font-size: 13.2px; font-weight: 500; }
.poster-viewer[hidden] { display: none; }
.poster-viewer { position: absolute; z-index: 30; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(2,10,17,.78); backdrop-filter: blur(10px); }
.tablet-frame { position: relative; width: min(1080px, 94vw); height: min(790px, 91vh); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 22px 24px 15px; overflow: hidden; color: #e9ffff; background: linear-gradient(145deg, #152b38, #07131d); border: 2px solid #61808a; border-radius: 26px; box-shadow: 0 28px 90px rgba(0,0,0,.62), inset 0 0 0 5px #071018; }
.tablet-camera { position: absolute; top: 8px; left: 50%; width: 7px; height: 7px; border-radius: 50%; background: #020609; border: 1px solid #36505a; transform: translateX(-50%); }
.tablet-bar { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 5px 3px 12px; }.tablet-bar small, .tablet-bar strong { display: block; }.tablet-bar small { color: var(--cyan); font: 8px DM Mono, monospace; letter-spacing: .18em; }.tablet-bar strong { margin-top: 3px; font-size: 17px; }.tablet-bar button { width: 37px; height: 37px; flex: 0 0 auto; color: #dff; background: rgba(255,255,255,.06); border: 1px solid rgba(174,225,224,.25); border-radius: 50%; cursor: pointer; font-size: 24px; line-height: 1; }.tablet-bar button:hover { color: #07131d; background: var(--cyan); }
.tablet-screen { min-height: 0; display: grid; place-items: center; overflow: auto; padding: 12px; background: #e9e8e1; border: 1px solid #02070b; border-radius: 7px; box-shadow: inset 0 0 22px rgba(0,0,0,.18); }.tablet-screen img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.tablet-frame > p { margin: 10px 0 0; color: #7f969e; text-align: center; font: 9px DM Mono, monospace; letter-spacing: .09em; }.tablet-frame kbd { display: inline-grid; place-items: center; min-width: 22px; height: 20px; margin: 0 2px; color: var(--cyan); border: 1px solid rgba(84,223,215,.35); border-radius: 3px; }
.fire-extinguisher-modal[hidden] { display: none; }
.fire-extinguisher-modal { position: absolute; z-index: 32; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(2,10,17,.84); backdrop-filter: blur(12px); }
.fire-training-card { width: min(760px, 94vw); padding: 30px; text-align: center; background: linear-gradient(145deg, #142b37, #07131d); border: 1px solid rgba(84,223,215,.42); border-radius: 18px; box-shadow: 0 28px 90px rgba(0,0,0,.65); }
.fire-training-card h2 { margin: 8px 0 22px; font-size: clamp(30px, 4.8vw, 54px); }
.training-video-screen { height: min(440px, 56vh); display: grid; place-items: center; overflow: hidden; background: #02070b; border: 8px solid #061018; border-radius: 10px; }
.training-video-screen video, .fume-hood-tablet-screen video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.training-video-screen video[hidden] { display: none; }
.training-video-missing { display: grid; gap: 10px; max-width: 460px; padding: 24px; text-align: center; }.training-video-missing[hidden] { display: none; }
.training-video-missing small { color: var(--cyan); font: 11px DM Mono, monospace; letter-spacing: .14em; }.training-video-missing strong { font-size: clamp(20px, 2.6vw, 28px); }.training-video-missing p { margin: 0; color: #91a7ae; }
.fire-animation { position: relative; height: min(390px, 48vh); overflow: hidden; background: radial-gradient(circle at 72% 76%, rgba(255,91,43,.18), transparent 26%), linear-gradient(#dce9e7 0 72%, #9dafae 72%); border: 8px solid #061018; border-radius: 10px; }
.animated-extinguisher { position: absolute; left: 18%; bottom: 16%; width: 105px; height: 190px; animation: extinguisherAim 1.6s ease-in-out infinite; transform-origin: 50% 100%; }
.extinguisher-body { position: absolute; inset: 38px 12px 0; display: block; border-radius: 24px 24px 18px 18px; background: linear-gradient(90deg, #9f1416, #ed3336 48%, #8a1013); border: 4px solid #4b0b0c; box-shadow: 0 12px 22px rgba(0,0,0,.3); }
.extinguisher-body::after { content: "FIRE"; position: absolute; top: 62px; left: 14px; right: 14px; padding: 5px 0; color: #621012; background: #fff4dc; font: 800 13px DM Mono, monospace; }
.extinguisher-handle { position: absolute; left: 37px; top: 5px; width: 55px; height: 38px; border: 9px solid #20292b; border-bottom-width: 5px; border-radius: 8px 16px 3px 3px; }
.extinguisher-hose { position: absolute; z-index: 2; left: 74px; top: 24px; width: 118px; height: 66px; border: 9px solid #20292b; border-left-color: transparent; border-bottom-color: transparent; border-radius: 0 48px 0 0; transform: rotate(-10deg); }
.extinguisher-hose::after { content: ""; position: absolute; right: -18px; bottom: -6px; width: 35px; height: 15px; background: #20292b; border-radius: 2px 10px 10px 2px; transform: rotate(20deg); }
.extinguisher-spray { position: absolute; left: calc(18% + 190px); top: 34%; width: 43%; height: 36%; filter: blur(1px); }
.extinguisher-spray i { position: absolute; left: 0; width: 20px; height: 9px; border-radius: 50%; background: rgba(246,255,252,.9); animation: sprayCloud 1.15s linear infinite; }.extinguisher-spray i:nth-child(2) { top: 18%; animation-delay: -.2s; }.extinguisher-spray i:nth-child(3) { top: 42%; animation-delay: -.44s; }.extinguisher-spray i:nth-child(4) { top: 64%; animation-delay: -.7s; }.extinguisher-spray i:nth-child(5) { top: 82%; animation-delay: -.92s; }
.animated-fire { position: absolute; right: 12%; bottom: 13%; width: 120px; height: 150px; animation: fireSuppression 3.2s ease-in-out infinite; transform-origin: 50% 100%; }.animated-fire i { position: absolute; bottom: 0; width: 64px; height: 130px; border-radius: 55% 45% 58% 42% / 72% 68% 32% 28%; background: linear-gradient(#ffd44b, #ff6a24 52%, #c51e12); transform: rotate(45deg); animation: flameFlicker .42s ease-in-out infinite alternate; }.animated-fire i:nth-child(2) { left: 45px; height: 105px; animation-delay: -.18s; }.animated-fire i:nth-child(3) { left: 20px; height: 80px; background: linear-gradient(#fff39b, #ffb022 58%, #ee3d17); animation-delay: -.3s; }
.modal-key-hint { margin: 20px 0 0; color: #91a7ae; font: 10px DM Mono, monospace; letter-spacing: .1em; }.modal-key-hint kbd { display: inline-grid; place-items: center; min-width: 28px; height: 26px; color: #07131d; background: var(--cyan); border: 0; border-radius: 3px; font-weight: 800; }
@keyframes extinguisherAim { 50% { transform: rotate(-3deg) translateY(-4px); } }
@keyframes sprayCloud { 0% { transform: translate(0, 0) scale(.35); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(280px, 22px) scale(2.8); opacity: 0; } }
@keyframes flameFlicker { to { transform: rotate(42deg) scale(.88, 1.08); } }
@keyframes fireSuppression { 0%, 32% { transform: scale(1); opacity: 1; } 72%, 92% { transform: scale(.2, .08); opacity: .18; } 100% { transform: scale(1); opacity: 1; } }
.first-aid-training-card { border-color: rgba(84,223,215,.55); }
.first-aid-animation { position: relative; height: min(390px, 48vh); overflow: hidden; background: radial-gradient(circle at 50% 42%, rgba(84,223,215,.22), transparent 34%), linear-gradient(#dce9e7 0 72%, #9dafae 72%); border: 8px solid #061018; border-radius: 10px; }
.first-aid-beacon { position: absolute; left: 50%; top: 12%; width: 118px; height: 190px; transform: translateX(-50%); animation: firstAidBeacon 1.7s ease-in-out infinite; }.first-aid-beacon i { position: absolute; left: 51px; top: 62px; width: 16px; height: 128px; border-radius: 8px; background: #536b70; box-shadow: 0 7px 12px rgba(0,0,0,.28); }.first-aid-beacon strong { position: absolute; z-index: 2; inset: 0 auto auto 0; width: 118px; height: 118px; display: grid; place-items: center; color: white; background: #21aab0; border: 7px solid #ecffff; border-radius: 50%; box-shadow: 0 0 35px rgba(84,223,215,.75); font: 800 78px/1 Manrope, sans-serif; }
.first-aid-pulse { position: absolute; left: 50%; top: 12%; width: 118px; height: 118px; transform: translateX(-50%); }.first-aid-pulse i { position: absolute; inset: 0; border: 3px solid rgba(84,223,215,.7); border-radius: 50%; animation: firstAidPulse 2s ease-out infinite; }.first-aid-pulse i:nth-child(2) { animation-delay: -.66s; }.first-aid-pulse i:nth-child(3) { animation-delay: -1.32s; }
.first-aid-kit { position: absolute; left: 50%; bottom: 10%; width: 190px; height: 110px; display: grid; place-items: center; color: #f6ffff; background: linear-gradient(135deg, #158e94, #0a5961); border: 5px solid #e9ffff; border-radius: 15px; box-shadow: 0 18px 32px rgba(0,0,0,.3); transform: translateX(-50%); animation: firstAidKit 1.7s ease-in-out infinite; }.first-aid-kit::before { content: ""; position: absolute; top: -28px; width: 72px; height: 28px; border: 8px solid #e9ffff; border-bottom: 0; border-radius: 12px 12px 0 0; }.first-aid-kit span { font: 900 58px/1 Manrope, sans-serif; }.first-aid-kit b { position: absolute; bottom: 8px; font: 700 10px DM Mono, monospace; letter-spacing: .18em; }
@keyframes firstAidBeacon { 50% { transform: translateX(-50%) translateY(-5px); } }
@keyframes firstAidPulse { from { transform: scale(.8); opacity: .8; } to { transform: scale(2.25); opacity: 0; } }
@keyframes firstAidKit { 50% { transform: translateX(-50%) scale(1.04); } }
.fume-hood-tablet-screen { overflow: hidden; padding: 0; background: #000; }
.fume-hood-animation { position: relative; width: min(620px, 88%); height: min(500px, 92%); color: #07131d; }
.fume-hood-shell { position: absolute; inset: 5% 18% 8%; background: linear-gradient(90deg, #788d90, #dce8e6 16% 84%, #71868a); border: 8px solid #334b50; border-radius: 8px 8px 3px 3px; box-shadow: 0 22px 35px rgba(0,0,0,.28); }.fume-hood-shell::before { content: "FUME HOOD"; position: absolute; left: 8%; right: 8%; top: 5%; padding: 8px; color: #dffffb; background: #183a43; text-align: center; font: 700 12px DM Mono, monospace; letter-spacing: .15em; }.fume-hood-shell::after { content: ""; position: absolute; left: 12%; right: 12%; top: 22%; bottom: 22%; background: linear-gradient(rgba(203,239,236,.42), rgba(91,144,148,.2)); border: 6px solid #47666a; }
.fume-sash { position: absolute; z-index: 2; left: 12%; right: 12%; top: 22%; height: 36%; border: 5px solid #9bc7c7; border-top-width: 11px; background: linear-gradient(110deg, rgba(255,255,255,.28), rgba(130,205,204,.08)); animation: fumeSash 3s ease-in-out infinite; }
.fume-worktop { position: absolute; z-index: 3; left: 7%; right: 7%; bottom: 18%; height: 9%; background: #152e34; border-radius: 3px; }
.fume-vessel { position: absolute; z-index: 4; left: 45%; bottom: 28%; width: 62px; height: 80px; border: 5px solid #4b6d70; border-radius: 4px 4px 24px 24px; background: linear-gradient(transparent 50%, rgba(118,88,244,.55) 51%); }.fume-vessel::before { content: ""; position: absolute; left: 15px; top: -27px; width: 23px; height: 27px; border: 5px solid #4b6d70; border-bottom: 0; }.fume-vessel i { position: absolute; left: 24px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: rgba(118,88,244,.7); box-shadow: 0 0 16px #7658f4; animation: fumeParticle 1.8s linear infinite; }
.fume-airflow { position: absolute; z-index: 5; inset: 13% 27% 25%; }.fume-airflow i { position: absolute; left: 16%; bottom: 8%; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: fumeAirflow 2.1s linear infinite; }.fume-airflow i:nth-child(2) { left: 38%; animation-delay: -.55s; }.fume-airflow i:nth-child(3) { left: 61%; animation-delay: -1.1s; }.fume-airflow i:nth-child(4) { left: 78%; animation-delay: -1.65s; }
.fume-hood-animation > strong { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; color: #176d70; font: 800 12px DM Mono, monospace; letter-spacing: .14em; }
@keyframes fumeSash { 0%, 25%, 100% { transform: translateY(0); } 55%, 80% { transform: translateY(36%); } }
@keyframes fumeParticle { from { transform: translate(0, 0) scale(.6); opacity: 0; } 25% { opacity: 1; } to { transform: translate(12px, -150px) scale(1.7); opacity: 0; } }
@keyframes fumeAirflow { from { transform: translate(0, 0) scale(.5); opacity: 0; } 20% { opacity: 1; } to { transform: translate(25px, -220px) scale(1.5); opacity: 0; } }
.hands { position: absolute; pointer-events: none; z-index: 3; left: 0; right: 0; bottom: -38px; height: 180px; }
.hand { position: absolute; bottom: 0; width: 145px; height: 190px; border-radius: 52% 52% 25% 25%; background: linear-gradient(90deg, #b6d9d5, #ecf9f2 46%, #97c9c8); border: 2px solid #dff4ec; box-shadow: inset -10px -5px 20px rgba(16,65,75,.25), 0 10px 30px rgba(0,0,0,.4); }.hand span { position: absolute; bottom: 0; left: 18px; right: 18px; height: 65px; background: #163c55; border-top: 5px solid #50a0a8; border-radius: 12px 12px 0 0; }
.left-hand { left: 16%; transform: rotate(18deg); animation: handFloat 3.5s ease-in-out infinite; }.right-hand { right: 16%; transform: rotate(-18deg); animation: handFloatR 3.5s ease-in-out infinite; }
.finger { position: absolute; top: -45px; width: 30px; height: 95px; border-radius: 22px; background: linear-gradient(90deg, #aed4d2, #effbf4 55%, #9ccbc9); border: 2px solid #dff4ec; }.f1 { left: 5px; top: -22px; }.f2 { left: 37px; top: -48px; }.f3 { left: 70px; top: -52px; }.f4 { left: 102px; top: -30px; }.thumb { position: absolute; width: 43px; height: 90px; background: #cde7e2; border: 2px solid #dff4ec; border-radius: 25px; left: -22px; top: 25px; transform: rotate(-35deg); }.right-hand .thumb { left: auto; right: -22px; transform: rotate(35deg); }
@keyframes handFloat { 50% { transform: rotate(18deg) translateY(-5px); } }@keyframes handFloatR { 50% { transform: rotate(-18deg) translateY(-5px); } }
.success-modal { display: none; position: absolute; z-index: 20; inset: 0; background: rgba(3,11,18,.83); backdrop-filter: blur(12px); flex-direction: column; align-items: center; justify-content: center; text-align: center; }.success-modal.show { display: flex; animation: reveal .4s ease; }.success-icon { width: 75px; height: 75px; display: grid; place-items: center; margin-bottom: 20px; border: 1px solid var(--cyan); border-radius: 50%; color: var(--cyan); font-size: 36px; box-shadow: 0 0 35px rgba(84,223,215,.22); }.success-modal h2 { font-size: clamp(45.6px, 6vw, 74.4px); }.success-modal p:not(.eyebrow) { color: #94a8b0; }.success-modal .primary-button { margin-top: 25px; }

@media (max-width: 920px) {
  .molecule { opacity: .32; right: -150px; }.molecule-b { display:none; }
  .level-grid { grid-template-columns: repeat(6, 165px); }
  .objective-panel { width: 240px; }
  .left-hand { left: 6%; }.right-hand { right: 6%; }
}
@media (max-width: 760px) {
  .activity-topbar { grid-template-columns: 1fr auto; }.activity-topbar .brand { display: none; }
  .activity-heading { align-items: start; }.activity-score { width: 88px; height: 88px; }.activity-score strong { font-size: 27px; }
  .answer-form > div { flex-direction: column; }.answer-form .primary-button, #jumble-next { width: 100%; }.quiz-skip-bar { align-items:stretch; flex-direction:column; }.quiz-skip-bar .secondary-button { width:100%; }
  .matching-row { grid-template-columns: 1fr; gap: 14px; }.match-link-control { grid-template-columns: 20px minmax(0, 1fr) 60px; }.match-correction { margin-left: 0; }
}
@media (max-width: 620px) {
  .login-shell { padding: 25px 22px; }.login-copy { margin-top: 110px; }.name-row { flex-direction: column; }.primary-button { width: 100%; }.login-foot { left: 22px; }
  .topbar { padding: 0 20px; }.dashboard-wrap { width: calc(100% - 36px); padding-top: 35px; }.dashboard-heading { align-items: start; }.progress-dial { display: none; }.level-grid { grid-template-columns: repeat(6, 165px); }.menu-shortcut span { display: none; }.dashboard-actions { gap: 10px; }
  .activity-shell { width: min(100% - 24px, 980px); padding-top: 32px; }.activity-heading { display: block; }.activity-score { margin-top: 20px; }.activity-level-tag { font-size: 8.5px; }.jumble-word { letter-spacing: .12em; }.matching-mission-status { grid-template-columns: 1fr; }.matching-linked-count { justify-content: flex-start; }.match-equipment { grid-template-columns: 27px 42px 1fr; }.match-equipment-code { width: 42px; height: 42px; }.match-link-control { grid-template-columns: minmax(0, 1fr) 54px; }.match-connector { display: none; }
  .game-hud { padding: 0 12px; }.hud-button span, .hud-status { display: none; }.objective-panel { top: 148px; left: 12px; right: 12px; width: auto; }.instruction-popup { top: 82px; }.experiment-bench { width: 94vw; bottom: 18%; }.vessel { transform: scale(.8); margin-bottom: -5px; }.mix-vessel { transform: scale(.8); margin-bottom: -5px; }.hands { opacity: .65; }.left-hand { left: -7%; }.right-hand { right: -7%; }.scanner-stack { bottom: 7%; }.scanner-card { min-width: 220px; }
  .orientation-subtitle { bottom: 4%; padding: 14px 15px; }.orientation-subtitle p { font-size: 13px; line-height: 1.45; }
  .poster-viewer { padding: 10px; }.tablet-frame { width: 98vw; height: 92vh; padding: 20px 14px 12px; border-radius: 18px; }.tablet-bar strong { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }

/* Level 3 digital pH meter panel: right-hand side, level with the objective
   panel, so the beaker and probe in the middle of the view stay clear. */
.ph-meter-panel { --ph-color: #7d8c91; position: absolute; z-index: 5; right: 28px; top: 105px; width: min(330px, calc(100vw - 56px)); max-height: calc(100vh - 230px); overflow: auto; padding: 16px 18px 18px; color: #e9ffff; background: rgba(5,18,28,.88); backdrop-filter: blur(12px); border: 1px solid var(--line); border-top: 3px solid var(--ph-color); box-shadow: 0 18px 45px rgba(0,0,0,.28); transition: border-color .2s; }
.ph-meter-panel[hidden] { display: none; }
.ph-meter-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; font: 9.6px DM Mono, monospace; letter-spacing: .16em; }
.ph-meter-panel__head small { color: var(--cyan); }
.ph-meter-panel__head span { color: #9fb4bb; }
.ph-lcd { position: relative; display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 12px 14px; background: linear-gradient(#b8c7a2, #a7b891); border: 4px solid #1b2a24; border-radius: 6px; box-shadow: inset 0 2px 8px rgba(0,0,0,.28); color: #10231a; }
.ph-lcd strong { position: relative; font: 700 50px/1 DM Mono, monospace; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.ph-lcd__digits { position: relative; display: inline-block; }
.ph-lcd__ghost { position: absolute; inset: 0; font: 700 50px/1 DM Mono, monospace; letter-spacing: .06em; color: rgba(16,35,26,.08); }
.ph-lcd em { position: relative; font: 700 16px DM Mono, monospace; font-style: normal; }
.ph-scale { position: relative; display: grid; grid-template-columns: repeat(14, 1fr); gap: 2px; height: 12px; margin-top: 14px; }
.ph-scale i { background: var(--c); border-radius: 1px; }
.ph-scale__marker { position: absolute; top: -5px; width: 4px; height: 22px; margin-left: -2px; background: #fff; border-radius: 2px; box-shadow: 0 0 0 2px rgba(5,18,28,.9); transition: left .05s linear; }
.ph-scale__labels { display: flex; justify-content: space-between; margin-top: 7px; color: #8da1aa; font: 8.4px DM Mono, monospace; letter-spacing: .08em; }
.ph-result { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); text-align: center; }
.ph-result[hidden], .ph-summary[hidden], .ph-meter-panel__hint[hidden] { display: none; }
.ph-result__value { margin: 0; color: #9fb4bb; font: 12px DM Mono, monospace; letter-spacing: .12em; }
.ph-result h3 { margin: 6px 0 8px; font-size: 21px; letter-spacing: .04em; }
.ph-result__class { display: inline-block; padding: 4px 10px; border-radius: 2px; font: 700 10.8px DM Mono, monospace; letter-spacing: .14em; }
.ph-result__copy { margin: 10px 0 0; color: #c3d3d8; font-size: 13.2px; line-height: 1.55; }
.ph-summary { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ph-summary h3 { margin: 0 0 10px; font-size: 19px; text-align: center; }
.ph-summary ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.ph-summary li { display: flex; align-items: center; gap: 10px; }
.ph-summary li i { width: 22px; height: 10px; background: var(--c); border-radius: 1px; }
.ph-meter-panel__hint { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 14px 0 0; color: #dffcff; font-size: 13.2px; }
.ph-meter-panel__hint kbd { width: 26px; height: 26px; display: grid; place-items: center; color: #09212a; background: var(--cyan); border-radius: 3px; font: 700 12px DM Mono, monospace; }
@media (max-width: 760px) {
  .ph-meter-panel { left: 16px; right: 16px; top: 84px; width: auto; max-height: 46vh; }
  .ph-lcd strong, .ph-lcd__ghost { font-size: 38px; }
}
/* Shorter screens: tighten the pH panel so the explanation and the E hint
   stay in view above the scanner card. */
@media (max-height: 760px) and (min-width: 761px) {
  .ph-meter-panel { top: 92px; max-height: calc(100vh - 196px); padding: 12px 14px 14px; }
  .ph-meter-panel__head { margin-bottom: 8px; }
  .ph-lcd { padding: 7px 12px; }
  .ph-lcd strong, .ph-lcd__ghost { font-size: 34px; }
  .ph-scale { margin-top: 10px; height: 10px; }
  .ph-scale__labels { margin-top: 5px; }
  .ph-result, .ph-summary { margin-top: 9px; padding-top: 8px; }
  .ph-result h3 { margin: 3px 0 5px; font-size: 17px; }
  .ph-result__copy { margin-top: 6px; font-size: 12.4px; line-height: 1.45; }
  .ph-summary h3 { margin-bottom: 6px; font-size: 16px; }
  .ph-summary ul { gap: 4px; font-size: 13px; }
  .ph-meter-panel__hint { margin-top: 9px; font-size: 12.4px; }
}
@media (max-height: 600px) and (min-width: 761px) {
  /* The LCD already shows the value; drop the repeats to keep the hint visible. */
  .ph-result__value, .ph-scale__labels { display: none; }
  .ph-lcd strong, .ph-lcd__ghost { font-size: 30px; }
}

/* Level 5 · scenarios and knowledge check (a still card: no animation) */
.level5-panel { position: absolute; z-index: 5; right: 28px; top: 100px; width: min(400px, calc(100vw - 56px)); max-height: calc(100vh - 230px); overflow: auto; padding: 16px 20px 14px; color: #e9ffff; background: rgba(5,18,28,.92); border: 1px solid var(--line); border-top: 3px solid #f4a742; box-shadow: 0 18px 45px rgba(0,0,0,.35); }
.level5-panel[hidden] { display: none; }
.level5-panel__head { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; }
.level5-panel__head small { font: 500 12px/1 DM Mono, monospace; letter-spacing: .14em; color: #f4a742; }
.level5-panel__head strong { font-size: 18px; }
.level5-panel__text { margin: 0 0 12px; font-size: 16px; line-height: 1.45; }
.level5-choices { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.level5-choices[hidden] { display: none; }
.level5-choice { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 9px 12px; font-size: 15px; line-height: 1.35; color: #e9ffff; background: rgba(84,223,215,.08); border: 1px solid var(--line); cursor: pointer; }
.level5-choice kbd { flex: 0 0 auto; min-width: 26px; padding: 3px 7px; text-align: center; font: 500 14px/1 DM Mono, monospace; color: #07111c; background: var(--cyan); border-radius: 4px; }
.level5-choice:hover { background: rgba(84,223,215,.18); }
.level5-choice.good { background: rgba(56,211,159,.28); border-color: #38d39f; }
.level5-choice.bad { background: rgba(236,95,95,.25); border-color: #ec5f5f; }
.level5-feedback { margin: 0 0 10px; padding: 9px 12px; font-size: 15px; line-height: 1.4; border-left: 4px solid; }
.level5-feedback[hidden] { display: none; }
.level5-feedback.good { background: rgba(56,211,159,.16); border-color: #38d39f; }
.level5-feedback.bad { background: rgba(236,95,95,.16); border-color: #ec5f5f; }
.level5-panel__foot { display: flex; flex-direction: column; gap: 6px; font: 500 13px/1.3 DM Mono, monospace; color: var(--muted); }
.level5-panel__foot kbd { padding: 1px 6px; color: #07111c; background: var(--cyan); border-radius: 3px; }
.game-screen.level-menu-background .level5-panel { opacity: .18; }

/* Level 6 · open laboratory mission (still cards: no animation) */
.level6-panel { border-top-color: #54dfd7; }
.level6-tasks { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.level6-tasks li { display: flex; gap: 10px; align-items: center; font-size: 15px; line-height: 1.3; }
.level6-tasks li i { flex: 0 0 18px; height: 18px; border: 2px solid var(--cyan); border-radius: 4px; }
.level6-tasks li.done { color: #9fe8c9; }
.level6-tasks li.done i { background: #38d39f; border-color: #38d39f; }
.level6-tasks li.done i::after { content: "✓"; display: block; text-align: center; font: 700 14px/14px sans-serif; color: #07111c; }
.level6-count { margin: 0 0 6px; font: 500 13px/1.3 DM Mono, monospace; color: var(--muted); }
.level6-question { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.level6-question small { font: 500 12px/1 DM Mono, monospace; letter-spacing: .14em; color: #f4a742; }
.level6-pass { position: absolute; z-index: 6; left: 50%; top: 130px; transform: translateX(-50%); width: min(520px, calc(100vw - 48px)); padding: 18px 22px; text-align: center; color: #e9ffff; background: rgba(5,18,28,.95); border: 1px solid var(--line); border-top: 3px solid #38d39f; box-shadow: 0 18px 45px rgba(0,0,0,.4); }
.level6-pass[hidden] { display: none; }
.level6-pass strong { display: block; margin-bottom: 8px; font-size: 24px; color: #9fe8c9; letter-spacing: .04em; }
.level6-pass p { margin: 0 0 14px; font-size: 16px; line-height: 1.45; }
.level6-pass-hint { display: block; margin-top: 10px; font-size: 13px; color: #9fb7c4; }
.level6-pass-hint kbd { display: inline-block; min-width: 22px; padding: 1px 6px; font: inherit; font-weight: 700; color: #07111c; background: var(--cyan); border-radius: 3px; }
.level6-pass button { padding: 9px 18px; font-size: 15px; color: #07111c; background: var(--cyan); border: 0; cursor: pointer; }
.game-screen.level-menu-background .level6-panel, .game-screen.level-menu-background .level6-pass { opacity: .18; }

/* The level title in the top bar ("LEVEL 01 / States of Matter") is not shown. */
.game-hud .mission-title { display: none; }

/* Safety shower video ended: "Press E for the next video" over the player. */
.first-aid-video-screen { position: relative; }
.first-aid-next { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; padding: 20px; text-align: center; color: #e9ffff; background: rgba(2, 10, 16, .82); border: 0; cursor: pointer; font: inherit; }
.first-aid-next[hidden] { display: none; }
.first-aid-next small { color: var(--cyan); font: 11px DM Mono, monospace; letter-spacing: .18em; }
.first-aid-next strong { font-size: clamp(20px, 3.4vw, 30px); }
.first-aid-next kbd { display: inline-grid; place-items: center; min-width: 34px; height: 32px; padding: 0 6px; color: #07131d; background: var(--cyan); border-radius: 4px; font: 800 .8em DM Mono, monospace; vertical-align: middle; }
.first-aid-next span { color: #9fb9bd; font-size: 14px; }
.first-aid-next:focus-visible { outline: 2px solid var(--cyan); outline-offset: -6px; }

/* Activity 1 failed: shown above the first question of the new attempt. */
.activity-retry-banner { display: grid; gap: 4px; margin: 0 0 14px; padding: 14px 18px; color: #ffe1dc; background: rgba(120, 28, 24, .35); border: 1px solid rgba(255, 120, 104, .7); border-radius: 8px; text-align: center; }
.activity-retry-banner[hidden] { display: none; }
.activity-retry-banner strong { font-size: 22px; color: #fff; letter-spacing: .02em; }
.activity-retry-banner span { font-size: 14px; color: #f3c2ba; }
