:root {
  --ink: #e9eef5;
  --muted: #a1afbd;
  --navy: #0d1726;
  --navy-2: #15253a;
  --panel: #172a40;
  --panel-2: #20364f;
  --line: rgba(211, 225, 239, .18);
  --red: #ef735f;
  --gold: #f2c86d;
  --cyan: #72d4d0;
  --white: #f7fafc;
  --sans: "Noto Sans SC", sans-serif;
  --latin: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: auto; }
body { margin: 0; color: var(--ink); background: var(--navy); font-family: var(--sans); }
button, a { font: inherit; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
.noise { position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }

.game-topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 74px; padding: 0 clamp(20px, 5vw, 74px); background: rgba(13, 23, 38, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.game-logo { display: inline-flex; align-items: center; gap: 11px; }
.game-logo strong { display: block; font-size: 15px; letter-spacing: .04em; }
.game-logo small { display: block; margin-top: 3px; color: #8393a4; font: 8px var(--latin); letter-spacing: .12em; }
.logo-orbit { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(114, 212, 208, .55); border-radius: 50%; color: var(--cyan); font: 700 11px var(--latin); }
.logo-orbit::before, .logo-orbit::after { position: absolute; inset: 5px; border: 1px solid rgba(242, 200, 109, .45); border-radius: 50%; content: ""; transform: rotate(45deg); }
.logo-orbit::after { inset: 8px; border-color: rgba(239, 115, 95, .65); transform: rotate(-45deg); }
.logo-orbit i { position: absolute; width: 3px; height: 3px; background: var(--gold); border-radius: 50%; }
.logo-orbit i:first-child { top: 2px; right: 7px; }
.logo-orbit i:nth-child(2) { bottom: 2px; left: 7px; background: var(--red); }
.logo-orbit b { position: relative; z-index: 1; font-weight: 700; }
.case-status { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }
.case-status b { margin-left: 18px; color: var(--gold); font: 600 11px var(--latin); letter-spacing: .1em; }
.status-dot { width: 7px; height: 7px; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 4px rgba(239, 115, 95, .13); animation: blink 1.8s ease-in-out infinite; }
.sound-button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 3px; font-size: 10px; }
.sound-button span { font-size: 9px; }
.sound-button[aria-pressed="true"] { color: var(--cyan); border-color: rgba(114, 212, 208, .55); }

.story-hero { position: relative; display: grid; grid-template-columns: minmax(320px, .9fr) minmax(440px, 1.1fr); align-items: center; min-height: min(560px, calc(100vh - 125px)); gap: clamp(30px, 6vw, 100px); padding: 35px clamp(24px, 9vw, 150px); overflow: hidden; background: radial-gradient(circle at 84% 40%, rgba(38, 83, 112, .38), transparent 31%), linear-gradient(135deg, #0d1726 0%, #122339 100%); }
.story-hero::before { position: absolute; top: -250px; left: -160px; width: 540px; height: 540px; border: 1px solid rgba(114, 212, 208, .1); border-radius: 50%; content: ""; }
.hero-copy { position: relative; z-index: 2; max-width: 590px; }
.case-kicker { display: flex; align-items: center; gap: 10px; color: var(--gold); font: 600 10px var(--latin); letter-spacing: .15em; }
.red-line { display: inline-block; width: 25px; height: 2px; background: var(--red); box-shadow: 0 0 11px rgba(239, 115, 95, .7); }
.hero-copy h1 { margin: 22px 0 18px; color: var(--white); font-size: clamp(35px, 4vw, 48px); line-height: 1.23; letter-spacing: 0; }
.hero-copy h1 em { color: var(--cyan); font-size: .93em; font-style: normal; text-shadow: 0 0 25px rgba(114, 212, 208, .18); }
.hero-sub { max-width: 390px; margin: 0 0 32px; color: #aebdca; font-size: 14px; line-height: 1.9; }
.start-case { display: inline-flex; align-items: center; gap: 13px; padding: 13px 19px; color: var(--navy); background: var(--gold); border-radius: 3px; box-shadow: 0 12px 25px rgba(242, 200, 109, .14); font-size: 13px; font-weight: 700; transition: transform .2s, box-shadow .2s; }
.start-case:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(242, 200, 109, .25); }
.start-case span { font-size: 10px; }
.start-case small { padding-left: 10px; color: #7c6537; border-left: 1px solid rgba(74, 58, 22, .28); font: 9px var(--latin); }
.hero-scene { position: relative; height: min(400px, 55vw); min-height: 350px; overflow: hidden; background: linear-gradient(155deg, #1f384b, #0a1827 65%); border: 1px solid rgba(211, 225, 239, .2); box-shadow: 25px 25px 0 rgba(5, 12, 21, .27); }
.ward-art { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-scene::after { position: absolute; inset: 45% 0 0; pointer-events: none; background: linear-gradient(0deg, rgba(8,20,33,.58), transparent); content: ""; }
.scene-label { position: absolute; top: 15px; left: 17px; z-index: 5; padding: 5px 8px; color: #e1e9ec; background: rgba(10,28,43,.62); font: 9px var(--latin); letter-spacing: .13em; }
.window-glow { position: absolute; top: 50px; right: 11%; width: 33%; height: 50%; background: linear-gradient(180deg, rgba(95, 174, 199, .2), rgba(26, 52, 77, .05)); border: 1px solid rgba(130, 196, 208, .23); transform: skewY(-8deg); }
.window-glow::after { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 23%, rgba(154, 214, 217, .12) 24% 25%); content: ""; }
.room-light { position: absolute; width: 22px; height: 22px; background: #e5bb70; border-radius: 50%; box-shadow: 0 0 32px 12px rgba(229, 187, 112, .17); }
.light-one { top: 26%; left: 14%; }.light-two { top: 27%; right: 10%; }
.monitor { position: absolute; top: 19%; left: 9%; width: 37%; height: 30%; padding: 11px; background: #12212e; border: 1px solid #416078; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.monitor-title { display: block; color: #78a2af; font: 8px var(--latin); letter-spacing: .1em; }.monitor-value { position: absolute; right: 10px; bottom: 8px; color: var(--cyan); font: 9px var(--latin); }
.monitor svg { width: 100%; margin-top: 22px; }.monitor polyline { fill: none; stroke: #78d5ca; stroke-width: 2; filter: drop-shadow(0 0 3px rgba(114,212,208,.8)); stroke-dasharray: 500; animation: ecg 4s linear infinite; }
.patient-bed { position: absolute; bottom: 18%; left: 16%; width: 60%; height: 26%; background: #31475d; border-top: 7px solid #60788c; transform: skewY(-2deg); }.patient-bed::after { position: absolute; right: -7%; bottom: -49px; width: 8px; height: 53px; background: #8193a2; box-shadow: -120px 0 #8193a2; content: ""; }.patient-head { position: absolute; top: -42px; left: 12%; width: 49px; height: 49px; background: #bd816a; border-radius: 50%; }.patient-body { position: absolute; top: -22px; left: 20%; width: 44%; height: 59px; background: #d5e1e8; border-radius: 45% 48% 0 0; }.blanket { position: absolute; top: -17px; left: 38%; width: 55%; height: 47px; background: #5a7790; border-radius: 3px 28px 0 0; }
.doctor { position: absolute; bottom: 13%; }.doctor-head { width: 36px; height: 36px; margin: auto; background: #b77663; border-radius: 50%; }.doctor-coat { width: 74px; height: 112px; margin-top: -2px; background: #e5eced; border-radius: 25px 25px 5px 5px; box-shadow: inset 0 -20px #c2d2d7; }.doctor span { position: absolute; bottom: -20px; left: 50%; color: #b4c5ce; font: 9px var(--latin); transform: translateX(-50%); }.doctor-you { right: 5%; transform: scale(.91); }.doctor-you .doctor-head { background: #a86d61; }.doctor-you .doctor-coat { background: #d5e7e7; }.doctor-colleague { right: 29%; transform: scale(.68); transform-origin: bottom; opacity: .88; }.doctor-colleague .doctor-head { background: #d08d6e; }
.scene-dialogue { position: absolute; right: 7%; bottom: 7%; z-index: 2; width: 48%; padding: 12px 15px; background: rgba(13, 23, 38, .88); border-left: 3px solid var(--red); box-shadow: 0 7px 18px rgba(0,0,0,.2); }.scene-dialogue b { color: var(--gold); font-size: 10px; }.scene-dialogue p { margin: 5px 0 0; color: #e5edf0; font-size: 11px; line-height: 1.6; }
.sticky-note { position: absolute; top: 14%; right: 8%; z-index: 2; padding: 11px 14px; color: #233244; background: #f2d276; box-shadow: 5px 7px 0 rgba(0,0,0,.18); font: 9px var(--latin); transform: rotate(5deg); }.sticky-note strong { display: block; margin-top: 2px; color: #b94e44; font-size: 24px; line-height: 1; }.sticky-note small { font-size: 8px; }.floor-grid { position: absolute; right: 0; bottom: 0; left: 0; height: 18%; opacity: .2; background: repeating-linear-gradient(90deg, transparent 0 42px, #b5c8d4 43px 44px), repeating-linear-gradient(0deg, transparent 0 24px, #b5c8d4 25px 26px); transform: perspective(300px) rotateX(55deg); transform-origin: bottom; }

.case-board { max-width: 1120px; margin: 0 auto; padding: 75px 28px 100px; }
.board-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }.board-hint { color: #8395a5; font-size: 10px; }
.scene-panel { display: none; padding: clamp(22px, 4vw, 42px); background: linear-gradient(135deg, rgba(32,54,79,.96), rgba(20,39,59,.96)); border: 1px solid var(--line); box-shadow: 0 22px 45px rgba(0,0,0,.18); animation: panel-in .35s ease both; }.scene-panel.active { display: block; }.panel-number { color: var(--red); font: 700 11px var(--latin); letter-spacing: .15em; }.panel-copy { margin: 15px 0 26px; }.speaker { color: var(--gold); font: 700 10px var(--latin); letter-spacing: .1em; }.panel-copy p { margin: 7px 0 0; color: var(--white); font-size: clamp(17px, 2.5vw, 24px); line-height: 1.55; }.panel-copy p b { color: var(--cyan); font-family: var(--latin); }
.conversation { display: grid; gap: 10px; max-width: 760px; margin: 0 0 24px; }
.conversation.compact { margin-top: -5px; }
.speech { display: flex; align-items: flex-start; gap: 10px; max-width: 78%; animation: panel-in .3s ease both; }
.speech:nth-child(2) { animation-delay: .13s; }.speech:nth-child(3) { animation-delay: .26s; }
.speech img, .avatar-ldl { flex: 0 0 43px; width: 43px; height: 43px; object-fit: cover; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; }
.speech > div:last-child { min-width: 0; padding: 9px 12px; background: rgba(9, 22, 37, .61); border-left: 2px solid #819caf; }
.speech b { color: var(--gold); font-size: 9px; }.speech p { margin: 3px 0 0; color: #e2edf1; font-size: 11px; line-height: 1.65; }
.speech-you { justify-self: end; flex-direction: row-reverse; }.speech-you > div:last-child { background: rgba(62, 105, 117, .38); border-left: 0; border-right: 2px solid var(--cyan); }.speech-you b { color: var(--cyan); }
.speech-ldl > div:last-child { border-left-color: var(--gold); }.avatar-ldl { display: grid; place-items: center; color: #5d4518; background: #eac46d; border: 5px solid #a47838; border-radius: 50%; font: 700 8px var(--latin); }
.scene-two-layout { display: grid; grid-template-columns: 1fr 245px; align-items: center; gap: 18px; margin-bottom: 23px; }.scene-two-layout .conversation { margin: 0; }.scene-two-layout .speech { max-width: 100%; }
.clue-photo { position: relative; margin: 0; padding: 12px 12px 24px; background: #f1f0e9; box-shadow: 8px 10px 0 rgba(0,0,0,.17); transform: rotate(2deg); }.clue-photo img { display: block; width: 100%; height: 150px; object-fit: contain; background: white; }.clue-photo figcaption { position: absolute; right: 9px; bottom: 6px; color: #4b646e; font-size: 9px; }
.mode-toggle { display: inline-flex; gap: 2px; margin: 0 0 11px; padding: 2px; background: #0c1c2d; border: 1px solid #426076; border-radius: 3px; }
.mode-toggle button { min-width: 95px; padding: 7px 10px; color: #9eb3c2; background: transparent; border-radius: 2px; font-size: 10px; }
.mode-toggle button.active { color: #102532; background: var(--cyan); font-weight: 700; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.choice { position: relative; display: grid; grid-template-columns: 25px 1fr; column-gap: 10px; padding: 15px 17px; color: #c9d7e2; background: rgba(10, 21, 35, .54); border: 1px solid rgba(211, 225, 239, .18); text-align: left; transition: .2s; }.choice:hover, .choice:focus-visible { background: rgba(114, 212, 208, .1); border-color: var(--cyan); transform: translateY(-2px); }.choice > span { grid-row: span 2; display: grid; place-items: center; width: 23px; height: 23px; color: var(--navy); background: var(--gold); font: 700 11px var(--latin); }.choice strong { align-self: center; font-size: 12px; }.choice small { grid-column: 2; margin-top: 4px; color: #8799a8; font-size: 9px; line-height: 1.55; }.choice.is-picked { border-color: var(--cyan); background: rgba(114, 212, 208, .13); }.choice.is-muted { opacity: .55; }
.feedback { min-height: 0; margin-top: 0; overflow: hidden; color: #b5e3dc; font-size: 11px; line-height: 1.7; transition: margin .2s, padding .2s; }.feedback:not(:empty) { margin-top: 18px; padding: 12px 15px; background: rgba(114, 212, 208, .08); border-left: 2px solid var(--cyan); }
.pedigree-game { position: relative; display: grid; grid-template-columns: 1fr 220px; align-items: center; min-height: 180px; margin: 10px 0 24px; padding: 9px 15px; background: rgba(8,18,31,.38); border: 1px solid var(--line); }.pedigree-game svg { width: 100%; height: 155px; }.pedigree-game svg line { stroke: #8ba4b7; stroke-width: 1.5; }.mini-member { cursor: pointer; }.mini-member rect, .mini-member.normal { fill: transparent; stroke: #9db2c2; stroke-width: 2; }.mini-member.affected rect { fill: var(--red); stroke: var(--red); }.mini-member.unknown rect { stroke: var(--gold); }.mini-member.selected rect, .mini-member.selected.normal { stroke: var(--cyan); stroke-width: 3; }.mini-arrow { fill: none; stroke: var(--gold); stroke-width: 2; }.family-readout { align-self: center; padding: 13px; border-left: 2px solid var(--gold); }.family-readout strong { display: block; color: var(--cyan); font-size: 13px; }.family-readout span { display: block; margin-top: 6px; color: #a1b2c0; font-size: 10px; line-height: 1.7; }
.family-picker { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding: 5px 2px 11px; }
.family-picker button { padding: 6px 9px; color: #a9bbc8; background: #253c54; border: 1px solid #4a6378; border-radius: 2px; font-size: 9px; }
.family-picker button.selected { color: #102532; background: var(--cyan); border-color: var(--cyan); }
.molecule-game { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 42px minmax(0,1fr) 42px minmax(0,1fr); align-items: center; gap: 8px; min-height: 250px; margin: 10px 0 24px; padding: 22px 18px 54px; overflow: hidden; background: #0b1a2b; border: 1px solid rgba(114,212,208,.25); }
.clearance-stage { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; align-items: start; min-width: 0; min-height: 178px; padding: 14px 12px 10px; background: #12273a; border: 1px solid rgba(211,225,239,.13); }
.clearance-stage > strong { margin-top: 5px; color: var(--white); font-size: 12px; }.clearance-stage > small { color: #9eb2c0; font-size: 9px; line-height: 1.5; }
.stage-index { position: absolute; top: 12px; right: 12px; color: var(--gold); font: 700 9px var(--latin); }
.particle-cloud { position: relative; height: 92px; margin: 8px 0 2px; overflow: hidden; background: radial-gradient(ellipse, rgba(155,52,60,.27), rgba(42,31,48,.12)); border: 1px solid rgba(239,115,95,.34); border-radius: 50px; }
.ldl-particle { position: absolute; display: grid; place-items: center; width: 37px; aspect-ratio: 1; color: #43371c; background: radial-gradient(circle at 35% 30%, #ffe6a1 0 9%, transparent 10%), radial-gradient(circle at 68% 72%, #c99440 0 8%, transparent 9%), #f2c86d; border: 3px solid #b3853b; border-radius: 50%; font: 700 7px var(--latin); box-shadow: inset 0 0 0 2px rgba(255,255,255,.38), 0 3px 8px rgba(0,0,0,.25); animation: drift 3.6s ease-in-out infinite; }
.p1 { top: 13px; left: 12%; }.p2 { top: 43px; left: 38%; animation-delay: 1s; }.p3 { top: 9px; left: 68%; animation-delay: 2s; }.p4 { top: 43px; left: 78%; animation-delay: .4s; }.p5 { top: 22px; left: 50%; animation-delay: 1.5s; }
.p4, .p5 { opacity: .12; transition: opacity .25s; }
.clearance-link { display: grid; justify-items: center; gap: 6px; color: var(--gold); text-align: center; }.clearance-link > span { font: 27px var(--latin); animation: arrow-pulse 1.8s ease-in-out infinite; }.clearance-link small { color: #8ea8b4; font-size: 8px; line-height: 1.4; white-space: nowrap; }
.membrane-scene { position: relative; height: 92px; margin: 8px 0 2px; overflow: hidden; background: linear-gradient(90deg, rgba(31,69,82,.12), rgba(42,101,95,.2)); }
.membrane-line { position: absolute; top: 4px; right: 17%; bottom: 4px; width: 5px; background: linear-gradient(#488e8a,#72d4d0,#488e8a); box-shadow: 0 0 13px rgba(114,212,208,.2); }
.receptor { position: absolute; z-index: 1; display: grid; place-items: center; width: 51px; height: 16px; border-top: 4px solid var(--cyan); border-radius: 50% 50% 0 0; }
.receptor::before { position: absolute; top: -7px; left: 1px; width: 9px; height: 8px; border-left: 3px solid var(--cyan); border-top: 3px solid var(--cyan); border-radius: 8px 0 0; content: ""; transform: rotate(-22deg); }
.receptor::after { position: absolute; top: -7px; left: 8px; width: 9px; height: 8px; border-right: 3px solid var(--cyan); border-top: 3px solid var(--cyan); border-radius: 0 8px 0 0; content: ""; transform: rotate(22deg); }
.receptor b { position: absolute; left: -30px; top: -15px; color: #9bded7; font: 700 7px var(--latin); white-space: nowrap; }
.receptor-one { top: 24px; right: 17%; transform: translateX(-50%); }.receptor-two { top: 57px; right: 17%; transform: translateX(-50%); }.receptor-three { top: 9px; right: 42%; transform: translateX(-50%); }
.bound-particle { position: absolute; z-index: 2; top: 22px; right: calc(17% + 32px); display: grid; place-items: center; width: 29px; aspect-ratio: 1; color: #43371c; background: #f2c86d; border: 3px solid #b3853b; border-radius: 50%; font: 700 6px var(--latin); box-shadow: 0 0 12px rgba(242,200,109,.45); }
.uptake-scene { position: relative; display: grid; place-items: center; height: 92px; margin: 8px 0 2px; background: rgba(43,91,82,.23); }
.cell-outline { position: relative; display: grid; place-items: center; width: 132px; height: 78px; background: rgba(41,106,94,.35); border: 2px solid #65bbb0; border-radius: 48% 52% 43% 57%; }
.endosome { display: grid; place-items: center; width: 40px; aspect-ratio: 1; color: #503f1d; background: #efbd5c; border: 3px solid #aa7c36; border-radius: 50%; box-shadow: 0 0 0 8px rgba(114,212,208,.1); font: 700 7px var(--latin); animation: drift 3.2s ease-in-out infinite; }
.recycled-receptor { position: absolute; top: 11px; right: 12px; color: var(--cyan); font: 700 18px var(--latin); }
.molecule-caption { position: absolute; right: 18px; bottom: 10px; left: 18px; margin: 0; padding-top: 9px; color: #c7d5df; border-top: 1px solid rgba(211,225,239,.13); font-size: 10px; line-height: 1.5; }
.molecule-game.is-low .stage-blood { border-color: rgba(239,115,95,.45); background: rgba(88,38,49,.25); }.molecule-game.is-low .p4, .molecule-game.is-low .p5 { opacity: 1; }.molecule-game.is-low .receptor-two, .molecule-game.is-low .receptor-three { opacity: .12; }.molecule-game.is-low .bound-particle { opacity: .12; }.molecule-game.is-low .endosome { opacity: .25; box-shadow: none; }.molecule-game.is-low .recycled-receptor { opacity: .3; }
.variant-game { display: flex; align-items: center; gap: 28px; margin: 10px 0 24px; padding: 17px; background: rgba(8,18,31,.38); border: 1px solid var(--line); }.variant-card { display: grid; min-width: 152px; padding: 14px; background: #f1ede0; color: #202d3a; transform: rotate(-2deg); box-shadow: 5px 7px 0 rgba(0,0,0,.19); }.variant-card .variant-code { font: 8px var(--latin); }.variant-card strong { margin-top: 7px; color: #a16f27; font: 700 22px var(--latin); }.variant-card small { font-size: 9px; }.evidence-dots { display: flex; flex-wrap: wrap; gap: 8px; }.evidence-dots span { padding: 6px 9px; color: #8d9eac; border: 1px solid #496174; border-radius: 20px; font-size: 9px; }.evidence-dots .done { color: var(--cyan); border-color: rgba(114,212,208,.55); }
.case-complete { display: grid; grid-template-columns: 140px 1fr; gap: 29px; align-items: center; margin-top: 22px; padding: 31px; background: linear-gradient(135deg, #1b4853, #173246); border: 1px solid rgba(114,212,208,.4); animation: panel-in .4s ease both; }.case-complete h2 { margin: 12px 0 8px; color: var(--white); font-size: 26px; }.case-complete p { max-width: 620px; margin: 0; color: #b3d3d3; font-size: 12px; line-height: 1.8; }.stamp { display: grid; place-items: center; width: 118px; height: 118px; color: var(--red); border: 2px solid var(--red); border-radius: 50%; font: 700 16px/1.2 var(--latin); letter-spacing: .1em; text-align: center; transform: rotate(-12deg); }.evidence-link { display: inline-block; margin-top: 17px; color: var(--gold); font-size: 11px; }.evidence-link span { margin-left: 7px; }
.restart-case { margin-left: 22px; padding: 5px 0; color: var(--cyan); background: transparent; font-size: 11px; }
.restart-case:hover { text-decoration: underline; text-underline-offset: 4px; }

.evidence-dossier { max-width: 1120px; margin: 0 auto; padding: 80px 28px 100px; border-top: 1px solid var(--line); }.dossier-heading { display: flex; justify-content: space-between; align-items: start; }.dossier-heading h2 { margin: 17px 0 7px; color: var(--white); font-size: 36px; }.dossier-heading p { margin: 0; color: #8ea0ae; font-size: 12px; }.dossier-seal { padding: 10px; color: rgba(242,200,109,.7); border: 1px solid rgba(242,200,109,.5); font: 9px/1.5 var(--latin); letter-spacing: .1em; text-align: center; transform: rotate(5deg); }.dossier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 40px; background: var(--line); }.dossier-grid article { min-height: 180px; padding: 20px 17px; background: #14263a; }.dossier-icon { display: grid; place-items: center; width: 25px; height: 25px; margin-bottom: 25px; color: var(--navy); background: var(--gold); font: 700 10px var(--latin); }.dossier-grid h3 { margin: 0 0 8px; color: var(--cyan); font-size: 14px; }.dossier-grid p { margin: 0; color: #9bacba; font-size: 10px; line-height: 1.8; }.research-note { display: grid; grid-template-columns: 180px 1fr; gap: 20px; margin-top: 18px; padding: 18px; background: rgba(242,200,109,.08); border: 1px solid rgba(242,200,109,.25); }.research-note span { color: var(--gold); font: 10px var(--latin); letter-spacing: .08em; }.research-note p { margin: 0; color: #b9b9a7; font-size: 10px; line-height: 1.8; }.references { margin-top: 28px; border-top: 1px solid var(--line); }.references summary { display: flex; justify-content: space-between; padding: 16px 0; color: #a8bac7; cursor: pointer; font-size: 11px; list-style: none; }.references summary::-webkit-details-marker { display: none; }.references summary span { color: var(--gold); font-size: 18px; }.references[open] summary span { transform: rotate(45deg); }.references ol { margin: 0; padding: 0 0 0 18px; color: #8194a3; font-size: 9px; line-height: 2; }
.references a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.game-footer { display: flex; justify-content: space-between; padding: 20px clamp(20px, 5vw, 74px); color: #758898; background: #09121f; border-top: 1px solid var(--line); font-size: 9px; }.game-footer a { color: var(--gold); }

.case-board { scroll-margin-top: 74px; }
.episode-track { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; margin-bottom: 14px; }
.episode-track span { padding: 8px 5px; color: #8294a4; border-top: 2px solid #3b4c5c; font-size: 9px; text-align: center; white-space: nowrap; }
.episode-track span.current { color: var(--gold); border-color: var(--gold); }
.episode-track span.completed { color: var(--cyan); border-color: var(--cyan); }
.scene-panel .panel-copy, .scene-panel .choice-grid { display: none; }
.scene-panel.is-choosing .panel-copy { display: block; margin: 18px 0 18px; padding-left: 12px; border-left: 2px solid var(--gold); animation: panel-in .25s ease both; }
.scene-panel.is-choosing .panel-copy p { font-size: clamp(15px, 2vw, 19px); }
.scene-panel.is-choosing .choice-grid { display: grid; }
.scene-panel .conversation { display: none; }
.patient-file { margin-top: 14px; padding: 15px; background: #10263a; border: 1px solid rgba(114,212,208,.22); border-left: 3px solid var(--cyan); }
.patient-file-heading { display: flex; justify-content: space-between; gap: 10px; color: var(--cyan); font: 700 9px var(--latin); letter-spacing: .08em; }.patient-file-heading b { color: var(--gold); }
.patient-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; margin-top: 12px; background: rgba(211,225,239,.15); }.patient-facts > div { display: grid; gap: 5px; min-width: 0; padding: 10px; background: #172d40; }.patient-facts small { color: #91a9b8; font-size: 8px; }.patient-facts strong { color: var(--white); font-size: 11px; line-height: 1.45; }.patient-file-note { display: grid; grid-template-columns: 115px 1fr; gap: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(211,225,239,.18); }.patient-file-note b { color: #e8b66f; font-size: 10px; }.patient-file-note span { color: #a9bbc6; font-size: 10px; line-height: 1.7; }.patient-file-missing b { color: #e8b66f; }
.patient-imaging-detail { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin-top: 8px; background: rgba(211,225,239,.13); }.patient-imaging-detail article { display: grid; align-content: start; gap: 5px; padding: 10px; background: #13283b; }.patient-imaging-detail b { color: var(--cyan); font-size: 9px; }.patient-imaging-detail span { color: #a9bbc6; font-size: 9px; line-height: 1.6; }
.clinical-record-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(240px,.95fr); gap: 12px; margin-top: 14px; }.clinical-record-grid .lab-visual { margin-top: 0; }.record-checklist { display: grid; align-content: start; gap: 7px; padding: 18px; background: #13283b; border-top: 2px solid var(--gold); }.record-checklist b { margin-bottom: 2px; color: var(--gold); font-size: 11px; }.record-checklist span { position: relative; padding-left: 14px; color: #b4c3cc; font-size: 10px; line-height: 1.55; }.record-checklist span::before { position: absolute; left: 0; top: .55em; width: 5px; height: 5px; background: var(--cyan); border-radius: 50%; content: ""; }
.child-record { display: grid; gap: 10px; padding: 15px; background: #13283b; border-left: 2px solid var(--gold); }.child-result { display: grid; gap: 4px; }.child-result small { color: #9db0bc; font-size: 9px; }.child-result strong { color: var(--white); font: 700 31px var(--latin); }.child-result strong i { color: var(--gold); font-size: 11px; font-style: normal; }.child-result span { color: var(--cyan); font-size: 9px; }.child-unknown, .family-interview-prompts { display: grid; gap: 4px; padding-top: 9px; border-top: 1px solid rgba(211,225,239,.14); }.child-unknown b, .family-interview-prompts b { color: #e8b66f; font-size: 10px; }.child-unknown span, .family-interview-prompts span { color: #a9bbc6; font-size: 9px; line-height: 1.55; }.family-interview-prompts span { position: relative; padding-left: 11px; }.family-interview-prompts span::before { position: absolute; left: 0; content: "·"; color: var(--cyan); font-size: 14px; }
.in-case-genetics { margin: 18px 0 22px; padding-top: 18px; border-top: 1px solid var(--line); }.in-case-genetics .genetic-section-top { margin-bottom: 12px; }.in-case-genetics .genetic-section-top h3 { font-size: 18px; }.in-case-genetics .genetic-detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.in-case-genetics .genetic-readout { padding: 14px; }.in-case-genetics .genetic-detail-grid p { font-size: 10px; }.case-inline-note { margin: 10px 0 0; color: #879ca9; font-size: 9px; line-height: 1.7; }
.action-plan-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin: 15px 0 20px; background: var(--line); }.action-plan-grid article { display: grid; gap: 6px; min-width: 0; padding: 14px; background: #13283b; }.action-plan-grid b { color: var(--cyan); font-size: 11px; }.action-plan-grid span { color: #aabcc6; font-size: 10px; line-height: 1.65; }
.scene-two-layout { display: block; margin: 6px 0 20px; }
.scene-two-layout .clue-photo { width: min(310px, 100%); }
.vn-dialogue { --speaker-accent: var(--cyan); position: relative; display: grid; grid-template-columns: 66px minmax(0,1fr) 42px; align-items: center; gap: 16px; min-height: 112px; margin: 20px 0 0; padding: 17px; background: linear-gradient(112deg, rgba(20,39,58,.98), rgba(8,20,34,.96)); border: 1px solid rgba(211,225,239,.14); border-left: 4px solid var(--speaker-accent); border-radius: 6px; box-shadow: 0 14px 32px rgba(0,0,0,.24); transition: border-color .25s, background .25s; }
.vn-dialogue::before { position: absolute; left: 91px; top: 34px; width: 12px; height: 12px; background: #14273a; border-top: 1px solid rgba(211,225,239,.16); border-left: 1px solid rgba(211,225,239,.16); content: ""; transform: rotate(-45deg); }
.vn-dialogue[data-speaker="patient"] { --speaker-accent: #ee9077; }
.vn-dialogue[data-speaker="teacher"] { --speaker-accent: var(--gold); }
.vn-dialogue[data-speaker="student"] { --speaker-accent: var(--cyan); }
.vn-dialogue[data-speaker="ldl"] { --speaker-accent: #f0bd5e; }
.vn-dialogue.line-in .vn-content { animation: dialogue-in .3s ease both; }
.vn-dialogue.line-in .vn-avatar { animation: portrait-in .32s cubic-bezier(.2,.8,.2,1) both; }
.vn-dialogue.is-choice { grid-template-columns: 66px minmax(0,1fr); background: linear-gradient(112deg, rgba(22,43,60,.98), rgba(9,22,35,.96)); }
.vn-avatar { position: relative; z-index: 1; display: grid; place-items: center; width: 66px; height: 66px; overflow: hidden; color: #493917; background: #eac46d; border: 3px solid var(--speaker-accent); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,255,255,.035), 0 7px 18px rgba(0,0,0,.28); font: 700 10px var(--latin); }
.vn-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.vn-avatar.is-ldl { border: 7px solid #a47838; border-radius: 50%; }
.vn-content { min-width: 0; padding: 4px 12px; }
.vn-content strong { display: inline-block; color: var(--speaker-accent); font-size: 10px; font-weight: 700; }
.vn-content p { margin: 5px 0 0; color: var(--white); font-size: 15px; line-height: 1.7; }
.vn-turn-count { position: absolute; top: 10px; right: 59px; color: #71879a; font: 600 9px var(--latin); letter-spacing: .08em; }
.vn-next { display: grid; place-items: center; width: 40px; aspect-ratio: 1; padding: 0; color: #142633; background: var(--speaker-accent); border-radius: 50%; font: 700 20px/1 var(--latin); transition: transform .18s, filter .18s; }
.vn-next:hover, .vn-next:focus-visible { filter: brightness(1.12); transform: translateX(2px); }
.vn-next:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.continue-scene { padding: 10px 14px; color: #102532; background: var(--gold); border-radius: 3px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.continue-scene:hover { filter: brightness(1.08); }
.continue-scene { display: block; margin: 17px 0 0 auto; }
.scene-inline-art { display: block; width: 100%; max-height: 310px; margin: 14px 0 0; object-fit: cover; object-position: center 45%; border: 1px solid rgba(199,222,230,.24); }
.lab-visual { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 230px; margin-top: 14px; padding: 24px; overflow: hidden; color: #253341; background: #e8ece7; border-left: 7px solid #d7e3e1; }
.lab-stamp { position: absolute; top: 15px; left: 22px; color: #748f99; font: 700 10px var(--latin); letter-spacing: .12em; }
.lab-wave { display: flex; align-items: end; gap: 7px; height: 90px; padding-top: 30px; }
.lab-wave i { width: 13px; height: 24%; background: #8ab9b8; border-radius: 2px 2px 0 0; }
.lab-wave i:nth-child(2), .lab-wave i:nth-child(8) { height: 43%; }.lab-wave i:nth-child(3), .lab-wave i:nth-child(7) { height: 65%; }.lab-wave i:nth-child(4), .lab-wave i:nth-child(6) { height: 82%; }.lab-wave i:nth-child(5) { height: 100%; background: #c26251; }
.lab-result { display: grid; justify-items: end; }.lab-result span { color: #536f75; font: 700 12px var(--latin); }.lab-result strong { color: #b95549; font: 700 clamp(45px,6vw,78px)/1 var(--latin); }.lab-result small { color: #59727c; font: 12px var(--latin); }
.lab-visual p { position: absolute; bottom: 13px; left: 22px; margin: 0; color: #758d94; font-size: 10px; }
.lab-ldl { width: clamp(90px, 14vw, 145px); height: 130px; margin: 15px 0 0 12px; object-fit: contain; filter: drop-shadow(0 9px 8px rgba(44,67,74,.13)); }
.molecule-game.is-low .ldl-particle { filter: drop-shadow(0 0 10px rgba(242,200,109,.8)); }
.clinic-roadmap { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: end; min-height: 245px; margin: 14px 0 0; padding: 95px 20px 22px; overflow: hidden; background: linear-gradient(150deg, #1b3c46, #163044 70%); border: 1px solid rgba(114,212,208,.25); }
.clinic-roadmap::before { position: absolute; right: 8%; bottom: 57px; left: 8%; height: 2px; background: rgba(114,212,208,.4); content: ""; }
.clinic-roadmap > img { position: absolute; top: 14px; right: 30px; width: 120px; height: 90px; object-fit: contain; opacity: .7; }
.clinic-roadmap > div { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; text-align: center; }
.clinic-roadmap b { display: grid; place-items: center; width: 32px; height: 32px; color: #162a38; background: var(--gold); border-radius: 50%; font: 700 10px var(--latin); }
.clinic-roadmap span { color: #c0d8d9; font-size: 10px; white-space: nowrap; }
.asset-credit { color: #8294a3; font-size: 9px; line-height: 1.7; }
.case-time-note { margin: 16px 0 0; padding: 12px 14px; color: #9bb0bd; background: rgba(114,212,208,.06); border-left: 2px solid #4d918c; font-size: 11px; line-height: 1.7; }
.dossier-grid p { font-size: 12px; }
.research-note p { font-size: 11px; }
.references ol { font-size: 10px; }
.gene-map > p { font-size: 13px; }
.science-tabs { display: flex; gap: 2px; margin-top: 42px; border-bottom: 1px solid var(--line); }
.science-tabs button { min-width: 112px; padding: 12px 15px; color: #91a5b3; background: transparent; border-bottom: 2px solid transparent; font-size: 11px; }
.science-tabs button.active { color: var(--gold); border-bottom-color: var(--gold); font-weight: 700; }
.science-panel { min-height: 290px; padding: 26px 0 30px; animation: panel-in .28s ease both; }
.science-heading span { color: var(--red); font: 10px var(--latin); letter-spacing: .1em; }
.science-heading h3 { margin: 9px 0 20px; color: var(--white); font-size: 20px; }
.gene-map { display: grid; grid-template-columns: 160px 1fr; gap: 0 30px; align-items: center; }
.gene-choice { grid-row: span 2; display: grid; gap: 6px; }.gene-choice button { padding: 10px 12px; color: #a7bcc8; background: #1e3448; border-left: 2px solid #4b6877; font: 700 11px var(--latin); text-align: left; }.gene-choice button.active { color: #112c37; background: var(--cyan); border-color: var(--cyan); }
.gene-visual { display: flex; align-items: center; justify-content: space-around; gap: 12px; min-height: 125px; padding: 16px; background: #12273a; border: 1px solid var(--line); }
.gene-particle { display: grid; place-items: center; width: 65px; height: 58px; color: transparent; background: url("assets/bioicon-ldl.svg") center / contain no-repeat; font-size: 0; animation: drift 3s ease-in-out infinite; }.gene-arrow { color: var(--gold); font: 26px var(--latin); }.gene-gate { display: grid; place-items: center; width: 70px; height: 67px; color: var(--cyan); border: 4px solid var(--cyan); border-top: 0; border-radius: 0 0 25px 25px; font: 700 10px var(--latin); }.gene-cell { display: grid; place-items: center; width: 91px; height: 70px; color: #c7e4df; background: #275754; border: 2px solid #4c9b91; border-radius: 45%; font-size: 10px; }.gene-visual[data-active-gene="APOB"] .gene-particle { filter: hue-rotate(110deg); }.gene-visual[data-active-gene="PCSK9"] .gene-gate { opacity: .35; border-color: var(--red); color: var(--red); }.gene-visual[data-active-gene="LDLRAP1"] .gene-arrow:last-of-type { color: var(--red); opacity: .35; }
.gene-map > p { grid-column: 2; margin: 11px 0 0; color: #a9bac5; font-size: 13px; line-height: 1.75; }
.risk-map { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; gap: 12px; padding: 20px; background: #173347; border: 1px solid var(--line); }.risk-parent { display: grid; justify-items: center; gap: 4px; }.risk-parent b { color: #b5cbd5; font-size: 10px; }.risk-parent span { color: var(--gold); font: 700 22px var(--latin); }.risk-parent small { color: #829cad; font-size: 9px; text-align: center; }.risk-cross { justify-self: center; color: var(--red); font: 22px var(--latin); }.risk-children { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 20px; }.risk-children span { padding: 15px 5px; color: #aec4d0; background: #213d4e; border: 1px solid #496578; font: 700 14px var(--latin); text-align: center; }.risk-children span:nth-child(odd) { color: #132c37; background: var(--cyan); border-color: var(--cyan); }.risk-result { grid-column: 1 / -1; display: flex; align-items: center; gap: 17px; margin-top: 9px; }.risk-result strong { color: var(--gold); font: 700 25px var(--latin); white-space: nowrap; }.risk-result p { margin: 0; color: #a4b9c3; font-size: 10px; line-height: 1.7; }
.variant-spectrum { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }.variant-spectrum > span { display: grid; place-items: center; min-height: 85px; padding: 8px; color: #b5d9cf; background: #21493f; font-size: 11px; text-align: center; }.variant-spectrum > span:nth-child(2) { background: #2c5550; }.variant-spectrum > span:nth-child(4) { color: #f2cfb7; background: #68443b; }.variant-spectrum > span:nth-child(5) { color: #ffded0; background: #81443a; }.variant-spectrum .vus { color: #312a17; background: var(--gold); font-weight: 700; }.variant-spectrum .vus small { display: block; font-size: 9px; font-weight: 400; }.spectrum-note { margin: 14px 0 0; color: #a4b7c3; font-size: 11px; line-height: 1.75; }

.case-analysis { margin-top: 38px; padding: 26px 0 30px; border-top: 1px solid var(--line); }
.section-kicker { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; color: var(--gold); font: 600 10px var(--latin); }
.case-analysis > h3, .subsection-title { margin: 10px 0 20px; color: var(--white); font-size: 22px; }
.case-timeline { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.case-timeline article { position: relative; min-width: 0; min-height: 178px; padding: 18px 15px 15px; background: #13273a; border-top: 2px solid #4c9b91; }
.timeline-mark { display: grid; place-items: center; width: 24px; aspect-ratio: 1; color: #142b37; background: var(--cyan); border-radius: 50%; font: 700 9px var(--latin); }
.case-timeline small { display: block; margin-top: 13px; color: #9eb2c0; font-size: 10px; }
.case-timeline strong { display: block; margin-top: 5px; color: var(--white); font-size: 14px; line-height: 1.45; }
.case-timeline p { margin: 8px 0 0; color: #9fb0bc; font-size: 10px; line-height: 1.7; }
.case-timeline a, .learning-footnote a, .inference-board a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.inference-board { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin-top: 19px; background: var(--line); }
.inference-board article { min-width: 0; min-height: 236px; padding: 20px; background: #14263a; }
.inference-board .inference-strong { background: linear-gradient(145deg, #163a3e, #142c3a); }
.inference-board .inference-hypothesis { background: linear-gradient(145deg, #3a3427, #1c2d3b); }
.inference-board .inference-gap { background: linear-gradient(145deg, #3a2930, #1d2b3b); }
.inference-tag { display: inline-block; padding: 4px 7px; color: #142631; background: var(--cyan); font-size: 9px; font-weight: 700; }
.inference-hypothesis .inference-tag { background: var(--gold); }.inference-gap .inference-tag { color: #fff; background: #b75e57; }
.inference-board h4 { margin: 13px 0 9px; color: var(--white); font-size: 15px; }
.inference-board ul { display: grid; gap: 6px; margin: 0; padding-left: 17px; color: #c0cdd5; font-size: 10px; line-height: 1.55; }
.inference-board p { margin: 12px 0 0; color: #a9bbc6; font-size: 10px; line-height: 1.7; }
.subsection-title { margin-top: 35px; font-size: 18px; }
.differential-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.differential-grid button { min-width: 0; padding: 16px 14px; color: inherit; background: #14263a; border: 1px solid rgba(211,225,239,.12); border-left: 3px solid var(--cyan); text-align: left; transition: background .2s,border-color .2s; }
.differential-grid button:nth-child(2) { border-left-color: var(--gold); }.differential-grid button:nth-child(3) { border-left-color: #d98770; }.differential-grid button:nth-child(4) { border-left-color: #899ac4; }
.differential-grid button:hover, .differential-grid button:focus-visible { background: #1b344a; outline: 1px solid rgba(114,212,208,.6); }.differential-grid button.active { background: #1a3548; border-color: rgba(114,212,208,.35); }
.differential-grid b { color: #adc1cc; font-size: 9px; }.differential-grid h4 { margin: 8px 0; color: var(--white); font-size: 13px; }.differential-grid small { color: #a2b4bf; font-size: 9px; line-height: 1.6; }
.differential-readout { display: grid; grid-template-columns: minmax(150px,.55fr) 1.45fr; gap: 14px; align-items: start; margin-top: 9px; padding: 13px 15px; background: rgba(114,212,208,.07); border-left: 2px solid var(--cyan); }
.differential-readout strong { color: var(--cyan); font-size: 11px; line-height: 1.6; }.differential-readout p { margin: 0; color: #adbec8; font-size: 10px; line-height: 1.75; }
.analysis-detail { margin-top: 8px; background: rgba(18,38,57,.72); border: 1px solid var(--line); }
.analysis-detail summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; color: #d8e2e9; cursor: pointer; font-size: 11px; list-style: none; }
.analysis-detail summary::-webkit-details-marker { display: none; }.analysis-detail summary span { color: var(--gold); font-size: 16px; }.analysis-detail[open] summary span { transform: rotate(45deg); }
.analysis-detail > div { padding: 0 16px 14px; }.analysis-detail p { max-width: 900px; margin: 0; color: #aabcc8; font-size: 11px; line-height: 1.85; }
.learning-map { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.learning-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }.learning-heading .section-kicker { justify-content: start; }.learning-heading h3 { margin: 10px 0 0; color: var(--white); font-size: 26px; }.learning-heading > p { max-width: 440px; margin: 0; color: #9eafbb; font-size: 11px; line-height: 1.7; }
.science-tabs { margin-top: 25px; }.science-tabs button { min-width: 120px; }.science-panel { min-height: 290px; padding: 25px 0 30px; }
.science-heading span { color: var(--red); font: 10px var(--latin); letter-spacing: .1em; }.science-heading h4 { margin: 9px 0 20px; color: var(--white); font-size: 19px; }
.gene-map { display: grid; grid-template-columns: 160px 1fr; gap: 0 30px; align-items: center; }.gene-choice { grid-row: span 2; display: grid; gap: 6px; }
.gene-choice button { padding: 10px 12px; color: #a7bcc8; background: #1e3448; border-left: 2px solid #4b6877; font: 700 11px var(--latin); text-align: left; }.gene-choice button.active { color: #112c37; background: var(--cyan); border-color: var(--cyan); }
.gene-visual { display: flex; align-items: center; justify-content: space-around; gap: 12px; min-height: 125px; padding: 16px; background: #12273a; border: 1px solid var(--line); }
.gene-particle { display: grid; place-items: center; width: 60px; aspect-ratio: 1; color: #403419; background: radial-gradient(circle at 32% 28%, #fff1c5 0 7%, transparent 8%), radial-gradient(circle at 66% 68%, #ca983f 0 7%, transparent 8%), #f0c65e; border: 5px solid #9a7434; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(255,255,255,.4); animation: drift 3s ease-in-out infinite; }.gene-particle i { font: 700 7px var(--latin); font-style: normal; }.gene-arrow { color: var(--gold); font: 26px var(--latin); }.gene-gate { display: grid; place-items: center; width: 70px; height: 67px; color: var(--cyan); border: 4px solid var(--cyan); border-top: 0; border-radius: 0 0 25px 25px; font: 700 10px var(--latin); }.gene-cell { display: grid; place-items: center; width: 91px; height: 70px; color: #c7e4df; background: #275754; border: 2px solid #4c9b91; border-radius: 45%; font-size: 10px; }
.gene-visual[data-active-gene="APOB"] .gene-particle { filter: hue-rotate(110deg); }.gene-visual[data-active-gene="PCSK9"] .gene-gate { opacity: .35; border-color: var(--red); color: var(--red); }.gene-visual[data-active-gene="LDLRAP1"] .gene-arrow:last-of-type { color: var(--red); opacity: .35; }
.gene-map > p { grid-column: 2; margin: 11px 0 0; color: #a9bac5; font-size: 12px; line-height: 1.75; }.gene-notes { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin-top: 15px; }.gene-notes span { padding: 9px; color: #aabdc8; background: #152a3d; font-size: 9px; line-height: 1.65; }.gene-notes b { display: block; margin-bottom: 4px; color: var(--cyan); font: 700 11px var(--latin); }
.learning-footnote { margin: 13px 0 0; color: #aabcc7; font-size: 10px; line-height: 1.8; }
.pedigree-lesson { display: grid; grid-template-columns: minmax(300px,.9fr) 1.1fr; align-items: center; gap: 16px; margin-bottom: 14px; padding: 15px; background: #13283b; border-left: 2px solid var(--gold); }.pedigree-mini { display: flex; align-items: center; justify-content: space-between; gap: 6px; }.pedigree-mini > i { flex: 1; height: 1px; background: #6c8391; }.pedigree-person { min-width: 88px; padding: 8px 6px; color: #122c39; background: var(--cyan); font-size: 9px; font-weight: 700; text-align: center; }.pedigree-person small { color: #203d49; font-size: 8px; font-weight: 500; }.pedigree-person.unknown { color: #332b18; background: var(--gold); }.pedigree-lesson > p { margin: 0; color: #afc0ca; font-size: 10px; line-height: 1.7; }
.pedigree-summary { display: block; width: 100%; max-width: 430px; overflow: visible; }.pedigree-summary text { fill: #b7c7d0; font: 11px "Noto Sans SC", sans-serif; }.pedigree-summary text:first-of-type, .pedigree-summary text:nth-of-type(2), .pedigree-summary text:nth-of-type(3) { fill: var(--gold); font-weight: 700; }.pedigree-unaffected { fill: #13283b; stroke: #cad5db; stroke-width: 2; }.pedigree-affected { fill: #d9e4e8; stroke: #d9e4e8; stroke-width: 2; }.pedigree-deceased { stroke: #d9e4e8; stroke-width: 2; }.pedigree-line { stroke: #91a6b2; stroke-width: 1.5; }
.risk-map { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; gap: 12px; padding: 20px; background: #173347; border: 1px solid var(--line); }.risk-parent { display: grid; justify-items: center; gap: 4px; }.risk-parent b { color: #b5cbd5; font-size: 10px; }.risk-parent span { color: var(--gold); font: 700 22px var(--latin); }.risk-parent small { color: #829cad; font-size: 9px; text-align: center; }.risk-cross { justify-self: center; color: var(--red); font: 22px var(--latin); }.risk-children { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin-top: 20px; }.risk-children span { padding: 15px 5px; color: #aec4d0; background: #213d4e; border: 1px solid #496578; font: 700 14px var(--latin); text-align: center; }.risk-children span:nth-child(odd) { color: #132c37; background: var(--cyan); border-color: var(--cyan); }.risk-result { grid-column: 1 / -1; display: flex; align-items: center; gap: 17px; margin-top: 9px; }.risk-result strong { color: var(--gold); font-size: 18px; white-space: nowrap; }.risk-result p { margin: 0; color: #a4b9c3; font-size: 10px; line-height: 1.7; }
.risk-scenarios { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }.risk-scenarios button { padding: 9px 12px; color: #a7bbc7; background: #172d40; border: 1px solid #486172; font-size: 10px; }.risk-scenarios button.active { color: #112d39; background: var(--cyan); border-color: var(--cyan); font-weight: 700; }.risk-map.is-unknown .risk-parent span, .risk-map.is-unknown .risk-result strong { color: #e4b77d; }.risk-map.is-unknown .risk-children span, .risk-map.is-unknown .risk-children span:nth-child(odd) { color: #b4c0c8; background: #2a3b49; border-color: #526272; }
.test-flow { display: grid; grid-template-columns: 1fr 22px 1fr 22px 1fr 22px 1fr; align-items: center; gap: 5px; }.test-flow article { display: grid; gap: 6px; min-height: 105px; padding: 12px; background: #142c3f; border-bottom: 2px solid #4c9b91; }.test-flow article > b { color: var(--gold); font: 700 9px var(--latin); }.test-flow strong { color: var(--white); font-size: 11px; }.test-flow span { color: #a7bac5; font-size: 9px; line-height: 1.5; }.test-flow > i { color: var(--gold); font: normal 18px var(--latin); text-align: center; }
.science-panel[data-science-panel="variant"] .variant-spectrum { margin-top: 18px; }.evidence-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin-top: 10px; }.evidence-list span { padding: 9px; color: #a9bbc6; background: rgba(114,212,208,.07); font-size: 9px; line-height: 1.55; }
.care-path { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }.care-path article { min-height: 145px; padding: 15px; background: #142c3f; border-top: 2px solid var(--cyan); }.care-path article:nth-child(2) { border-color: var(--gold); }.care-path article:nth-child(3) { border-color: #df8a70; }.care-path b { color: var(--gold); font-size: 9px; }.care-path strong { display: block; margin-top: 6px; color: var(--white); font-size: 14px; }.care-path p { margin: 8px 0 0; color: #aabcc7; font-size: 10px; line-height: 1.7; }
.research-brief { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 14px; background: var(--line); }.research-brief > div { padding: 15px; background: #192b3b; }.research-brief span { display: block; color: var(--gold); font: 9px var(--latin); }.research-brief strong { display: block; margin: 7px 0; color: var(--white); font-size: 12px; line-height: 1.5; }.research-brief p { margin: 0; color: #aabcc7; font-size: 10px; line-height: 1.75; }.research-brief a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.therapy-map { margin-top: 14px; padding: 14px; background: #122638; border: 1px solid var(--line); }.therapy-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 10px; }.therapy-heading span { color: var(--gold); font: 9px var(--latin); }.therapy-heading strong { color: var(--white); font-size: 12px; }.therapy-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }.therapy-cards article { padding: 12px; background: #1a3041; border-top: 2px solid var(--cyan); }.therapy-cards article:nth-child(2) { border-color: var(--gold); }.therapy-cards article > span { color: #aec2cd; font-size: 9px; }.therapy-cards h5 { margin: 6px 0; color: var(--white); font-size: 11px; }.therapy-cards p { margin: 0; color: #a9bbc6; font-size: 10px; line-height: 1.7; }.therapy-cards a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.case-time-note { margin: 16px 0 0; padding: 12px 14px; color: #bac9d2; background: rgba(114,212,208,.06); border-left: 2px solid #4d918c; font-size: 11px; line-height: 1.75; }
.references { margin-top: 32px; }.references ol { display: grid; gap: 10px; padding-right: 12px; color: #a8b8c3; font-size: 10px; line-height: 1.75; }.references li { padding-left: 4px; scroll-margin-top: 90px; }.references li:target { color: var(--white); }.references a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

@keyframes arrow-pulse { 0%,100% { opacity: .55; transform: translateX(-2px); } 50% { opacity: 1; transform: translateX(3px); } }

@keyframes blink { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes ecg { from { stroke-dashoffset: 500; } to { stroke-dashoffset: 0; } }
@keyframes drift { 0%,100% { transform: translate(0,0); } 40% { transform: translate(12px,-8px); } 75% { transform: translate(-9px,7px); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dialogue-in { from { opacity: .45; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes portrait-in { from { opacity: .6; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 800px) {
  .game-topbar { height: 65px; padding: 0 17px; }.game-logo strong { font-size: 13px; }.game-logo small { font-size: 7px; }.case-status > span:not(.status-dot) { display: none; }.case-status b { margin-left: 0; }.sound-button span { display: none; }
  .story-hero { grid-template-columns: 1fr; min-height: auto; gap: 20px; padding: 36px 21px 25px; }.hero-copy h1 { margin: 15px 0 11px; font-size: 35px; }.hero-sub { margin-bottom: 17px; font-size: 11px; }.hero-scene { height: 300px; min-height: 0; }.monitor { width: 44%; }.doctor-colleague { right: 24%; }.doctor-you { right: -1%; }.scene-dialogue { width: 56%; }.sticky-note { right: 5%; }
  .case-board, .evidence-dossier { padding-right: 17px; padding-left: 17px; }.board-top { align-items: start; gap: 12px; }.board-hint { max-width: 120px; text-align: right; line-height: 1.5; }.choice-grid { grid-template-columns: 1fr; }.choice { padding: 13px; }.pedigree-game { grid-template-columns: 1fr; }.pedigree-game svg { height: 145px; }.family-readout { margin: 0 12px 10px; }.molecule-game { grid-template-columns: 1fr; gap: 22px; padding: 22px 18px 38px; }.liver-cell { height: 95px; margin-left: 0; }.molecule-caption { right: 18px; left: 18px; }.variant-game { align-items: start; flex-direction: column; gap: 18px; }.case-complete { grid-template-columns: 1fr; gap: 18px; padding: 23px; }.stamp { width: 90px; height: 90px; font-size: 12px; }.dossier-heading h2 { font-size: 29px; }.dossier-seal { font-size: 7px; }.dossier-grid { grid-template-columns: 1fr 1fr; }.research-note { grid-template-columns: 1fr; gap: 8px; }.game-footer { flex-wrap: wrap; gap: 10px; }.game-footer span:nth-child(2) { order: 3; flex-basis: 100%; }
  .patient-facts, .action-plan-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.patient-file-note { grid-template-columns: 1fr; gap: 5px; }.patient-imaging-detail { grid-template-columns: 1fr; }.clinical-record-grid { grid-template-columns: 1fr; }.in-case-genetics .genetic-detail-grid { grid-template-columns: 1fr; }
  .scene-two-layout { grid-template-columns: 1fr; gap: 18px; }.clue-photo { justify-self: center; width: min(245px, 88%); }.conversation { gap: 9px; }.speech { max-width: 100%; }.speech img, .avatar-ldl { flex-basis: 38px; width: 38px; height: 38px; }.speech p { font-size: 10px; }
  .case-board { padding-top: 42px; padding-bottom: 70px; scroll-margin-top: 65px; }.episode-track { overflow-x: auto; grid-template-columns: repeat(8, minmax(65px, 1fr)); }.episode-track span { font-size: 8px; }.vn-dialogue { grid-template-columns: 46px minmax(0,1fr) 34px; gap: 8px; min-height: 98px; margin-top: 14px; padding: 11px 10px; }.vn-dialogue.is-choice { grid-template-columns: 46px minmax(0,1fr); }.vn-dialogue::before { left: 62px; top: 25px; width: 9px; height: 9px; }.vn-avatar { width: 46px; height: 46px; border-width: 2px; }.vn-avatar.is-ldl { border-width: 5px; }.vn-content { padding: 12px 5px 2px; }.vn-content p { font-size: 12px; line-height: 1.65; }.vn-turn-count { top: 10px; right: 52px; font-size: 8px; }.vn-next { width: 34px; font-size: 18px; }.scene-inline-art { max-height: 230px; }.lab-visual { min-height: 205px; padding: 18px; }.lab-result strong { font-size: 48px; }.lab-wave { gap: 4px; }.lab-wave i { width: 9px; }.clinic-roadmap { grid-template-columns: repeat(2, 1fr); gap: 25px 10px; min-height: 300px; padding: 94px 14px 20px; }.clinic-roadmap::before { display: none; }.clinic-roadmap > img { width: 90px; height: 68px; }.clinic-roadmap span { font-size: 9px; }
  .science-tabs button { flex: 1; min-width: 0; padding: 10px 6px; font-size: 10px; }.science-heading h3 { font-size: 16px; }.gene-map { grid-template-columns: 1fr; gap: 13px; }.gene-choice { grid-row: auto; grid-template-columns: repeat(4, 1fr); gap: 3px; }.gene-choice button { padding: 8px 4px; font-size: 8px; text-align: center; }.gene-map > p { grid-column: 1; font-size: 10px; }.gene-visual { gap: 5px; min-height: 105px; padding: 10px; }.gene-particle { width: 45px; height: 43px; }.gene-gate { width: 52px; height: 51px; font-size: 8px; }.gene-cell { width: 65px; height: 55px; font-size: 8px; }.gene-arrow { font-size: 17px; }.risk-map { gap: 7px; padding: 13px; }.risk-parent span { font-size: 18px; }.risk-parent small { font-size: 8px; }.risk-children span { padding: 12px 4px; font-size: 11px; }.risk-result { align-items: start; flex-direction: column; gap: 2px; }.risk-result strong { font-size: 20px; }.variant-spectrum > span { min-height: 68px; padding: 4px; font-size: 9px; }.variant-spectrum .vus small { font-size: 7px; }
}
@media (max-width: 470px) { .dossier-grid { grid-template-columns: 1fr; }.dossier-grid article { min-height: auto; }.hero-scene { height: 290px; }.patient-bed { left: 8%; width: 65%; }.doctor-colleague { right: 26%; }.scene-dialogue { right: 4%; width: 60%; }.doctor-you { right: -12%; transform: scale(.75); transform-origin: bottom; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

@media (max-width: 800px) {
  .molecule-game { grid-template-columns: 1fr; gap: 5px; padding: 15px 12px 56px; }
  .clearance-stage { min-height: 148px; }
  .clearance-link { grid-template-columns: auto 1fr; justify-content: center; gap: 8px; min-height: 22px; }
  .clearance-link > span { transform: rotate(90deg); }
  .clearance-link small { writing-mode: horizontal-tb; }
  .case-timeline { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .inference-board { grid-template-columns: 1fr; }
  .inference-board article { min-height: auto; }
  .differential-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gene-notes { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pedigree-lesson { grid-template-columns: 1fr; }
  .test-flow { grid-template-columns: 1fr; }
  .test-flow article { min-height: auto; grid-template-columns: 32px 1fr; align-items: center; }
  .test-flow article span { grid-column: 2; }
  .test-flow > i { transform: rotate(90deg); }
  .evidence-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .care-path, .research-brief { grid-template-columns: 1fr; }
  .therapy-cards, .differential-readout { grid-template-columns: 1fr; }
  .learning-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 470px) {
  .case-analysis { margin-top: 28px; padding-top: 22px; }
  .case-analysis > h3 { font-size: 20px; }
  .case-timeline, .differential-grid { grid-template-columns: 1fr; }
  .case-timeline article { min-height: auto; }
  .pedigree-mini { display: grid; justify-items: center; }
  .pedigree-mini > i { width: 1px; height: 15px; }
  .pedigree-person { width: min(190px,100%); }
  .science-tabs button { padding: 9px 3px; font-size: 9px; }
  .science-heading h4 { font-size: 16px; }
  .gene-visual { gap: 5px; min-height: 105px; padding: 10px; }
  .gene-particle { width: 48px; }
  .gene-gate { width: 52px; height: 51px; font-size: 8px; }
  .gene-cell { width: 65px; height: 55px; font-size: 8px; }
  .gene-arrow { font-size: 17px; }
  .risk-map { gap: 7px; padding: 13px; }
  .risk-parent span { font-size: 18px; }
  .risk-parent small { font-size: 8px; }
  .risk-children span { padding: 12px 4px; font-size: 11px; }
  .risk-result { align-items: start; flex-direction: column; gap: 2px; }
  .variant-spectrum { gap: 3px; }
  .variant-spectrum > span { min-height: 68px; padding: 4px; font-size: 8px; }
  .variant-spectrum .vus small { font-size: 7px; }
}

.genetic-reasoning { margin-top: 35px; padding: 28px 0 30px; border-top: 1px solid var(--line); }
.genetic-section-top { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.genetic-section-top .section-kicker { justify-content: start; }
.genetic-section-top h3 { margin: 9px 0 0; color: var(--white); font-size: 22px; line-height: 1.45; }
.genetic-section-top > p { max-width: 430px; margin: 0; color: #9eafbb; font-size: 11px; line-height: 1.75; }
.genetic-hypotheses { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.genetic-hypotheses button { position: relative; display: grid; align-content: center; gap: 5px; min-width: 0; min-height: 82px; padding: 13px 13px 12px 43px; color: #c2d0d8; background: #14263a; border: 1px solid rgba(211,225,239,.12); border-top: 2px solid #536f7d; text-align: left; transition: background .18s,border-color .18s,transform .18s; }
.genetic-hypotheses button:hover, .genetic-hypotheses button:focus-visible { background: #1b3448; border-color: rgba(114,212,208,.55); outline: none; }
.genetic-hypotheses button.active { background: linear-gradient(120deg,rgba(40,91,88,.5),#172d40); border-color: rgba(114,212,208,.5); border-top-color: var(--cyan); }
.genetic-hypotheses button > span { position: absolute; top: 13px; left: 12px; display: grid; place-items: center; width: 22px; aspect-ratio: 1; color: #172a38; background: var(--gold); border-radius: 50%; font: 700 8px var(--latin); }
.genetic-hypotheses button strong { color: var(--white); font-size: 12px; line-height: 1.4; }
.genetic-hypotheses button small { color: #9eb1bd; font-size: 9px; line-height: 1.4; }
.genetic-readout { margin-top: 10px; padding: 17px; background: #102338; border-left: 3px solid var(--cyan); }
.genetic-readout-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 14px; margin-bottom: 13px; }
.genetic-readout-head > span { color: var(--gold); font-size: 9px; font-weight: 700; }
.genetic-readout-head h4 { margin: 0; color: var(--white); font-size: 16px; line-height: 1.5; }
.genetic-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 14px; }
.genetic-detail-grid article { min-width: 0; padding: 11px 12px 4px; border-top: 1px solid rgba(211,225,239,.16); }
.genetic-detail-grid small { color: var(--cyan); font-size: 9px; font-weight: 700; }
.genetic-detail-grid p { margin: 7px 0 4px; color: #b1c0ca; font-size: 11px; line-height: 1.8; }
.genetic-boundary { margin: 10px 0 0; color: #91a5b2; font-size: 10px; line-height: 1.75; }
.genetic-boundary a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.genetic-workup { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; margin-top: 12px; background: rgba(211,225,239,.14); }
.genetic-workup > div { display: grid; align-content: start; gap: 6px; min-width: 0; min-height: 116px; padding: 13px; background: #14283b; }
.genetic-workup b { color: var(--gold); font: 700 9px var(--latin); }
.genetic-workup strong { color: var(--white); font-size: 11px; }
.genetic-workup span { color: #a9bbc6; font-size: 10px; line-height: 1.65; }
.risk-simulator-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 25px 0 10px; }
.risk-simulator-heading strong { color: var(--white); font-size: 13px; }
.risk-simulator-heading small { color: #92a7b5; font-size: 9px; }
.risk-scenarios { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin: 0 0 10px; }
.risk-scenarios button { min-height: 38px; padding: 8px 9px; color: #a7bbc7; background: #172d40; border: 1px solid #486172; font-size: 9px; line-height: 1.45; }
.risk-scenarios button.active { color: #112d39; background: var(--cyan); border-color: var(--cyan); font-weight: 700; }
.risk-map { grid-template-columns: minmax(0,1fr) 34px minmax(0,1fr); gap: 9px; padding: 16px; }
.risk-parent span { max-width: 100%; font-size: 18px; text-align: center; overflow-wrap: anywhere; }
.risk-parent small { max-width: 190px; line-height: 1.5; }
.risk-outcome-label { grid-column: 1 / -1; margin-top: 10px; color: #8ea3b0; font-size: 9px; }
.risk-children { margin-top: 0; }
.risk-children span { display: grid; place-items: center; min-height: 49px; padding: 8px 4px; border-radius: 3px; font-size: 12px; line-height: 1.4; }
.risk-children .risk-child--biallelic { color: #fff2eb; background: #8b4e44; border-color: #d28370; }
.risk-children .risk-child--carrier { color: #322817; background: var(--gold); border-color: #c79f50; }
.risk-children .risk-child--none { color: #15323b; background: var(--cyan); border-color: #61b9b4; }
.risk-children .risk-child--unknown { color: #c1ccd4; background: #2a3b49; border-color: #526272; }
.risk-legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; color: #9eb0bc; font-size: 8px; }
.risk-legend span::before { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; content: ""; }
.risk-legend--biallelic::before { background: #d28370; }.risk-legend--carrier::before { background: var(--gold); }.risk-legend--none::before { background: var(--cyan); }
.risk-code-note { grid-column: 1 / -1; color: #8197a5; font-size: 8px; line-height: 1.6; }
.risk-result { align-items: baseline; }
.risk-result strong { max-width: 270px; white-space: normal; font-size: 19px; line-height: 1.35; }
.risk-map.is-unknown .risk-parent span, .risk-map.is-unknown .risk-result strong { color: #e4b77d; }
.variant-outcome-tools { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 15px; }
.variant-outcome-tools button { padding: 8px 11px; color: #a8bac6; background: #172c3e; border: 1px solid #40596a; font-size: 9px; }
.variant-outcome-tools button.active { color: #112b37; background: var(--cyan); border-color: var(--cyan); font-weight: 700; }
.variant-outcome-readout { margin-top: 7px; padding: 12px 14px; background: rgba(114,212,208,.07); border-left: 2px solid var(--cyan); }
.variant-outcome-readout strong { color: var(--white); font-size: 11px; }
.variant-outcome-readout p { margin: 6px 0 0; color: #afc0ca; font-size: 10px; line-height: 1.75; }

@media (max-width: 800px) {
  .genetic-section-top { align-items: start; flex-direction: column; gap: 8px; }
  .genetic-hypotheses { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .genetic-detail-grid { gap: 8px; }
  .genetic-workup { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .genetic-workup > div { min-height: 100px; }
  .risk-scenarios { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 470px) {
  .genetic-section-top h3 { font-size: 19px; }
  .genetic-hypotheses button { min-height: 78px; padding: 11px 8px 10px 36px; }
  .genetic-hypotheses button > span { top: 12px; left: 8px; width: 20px; }
  .genetic-hypotheses button strong { font-size: 10px; }
  .genetic-hypotheses button small { font-size: 8px; }
  .genetic-readout { padding: 12px; }
  .genetic-readout-head h4 { font-size: 14px; }
  .genetic-detail-grid, .genetic-workup { grid-template-columns: 1fr; }
  .genetic-detail-grid p { font-size: 10px; }
  .genetic-workup > div { min-height: auto; }
  .risk-map { grid-template-columns: minmax(0,1fr) 24px minmax(0,1fr); padding: 12px; }
  .risk-parent span { font-size: 15px; }
  .risk-parent small { font-size: 8px; }
  .risk-children { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .risk-result { gap: 7px; }
  .risk-result strong { font-size: 18px; }
  .variant-outcome-tools { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .variant-outcome-tools button { padding: 8px 5px; font-size: 8px; }
}
