:root{--blue:#225ce0;--blue2:#1644af;--ink:#152b44;--muted:#5e7085;--line:#dae2eb;--bg:#f3f6fa;--text:#152b44}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;line-height:1.6}button,a,input{touch-action:manipulation}button{transition:background .18s,box-shadow .18s,transform .18s}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #387bff;outline-offset:4px}button:disabled{cursor:default;opacity:.58}button:active:not(:disabled){transform:translateY(1px)}
.topbar{height:80px;padding-inline:max(24px,calc((100vw - 1240px)/2));background:#ffffffeb;backdrop-filter:blur(18px);box-shadow:none}.brand-mark{width:42px;height:42px;border-radius:12px;background:var(--blue);font-size:26px}.brand strong{font-size:17px;letter-spacing:-.6px}.brand small{font-size:9px;letter-spacing:.2em;margin-top:0}.topbar nav button{font-weight:650;border-radius:8px;min-height:44px}.topbar nav button[aria-current=page]{color:var(--blue);background:#eaf0ff}
main{width:min(1240px,calc(100% - 48px));margin:24px auto 64px}.eyebrow{color:#527095;font-size:10px;letter-spacing:.18em}.library-hero{position:relative;display:grid;grid-template-columns:1.1fr 1fr;min-height:410px;padding:36px 48px 24px;overflow:hidden;border-bottom:1px solid var(--line);background:#eef3fb}.library-copy{z-index:1;align-self:center}.library-copy h1{font-size:clamp(42px,5vw,68px);line-height:1.03;letter-spacing:-.055em;margin:22px 0;color:#152b44;font-weight:750}.library-copy p{color:#5d718a;font-size:16px;line-height:1.7;margin:0 0 22px}.hero-play{display:flex;align-items:center;gap:40px;padding:13px 18px;border-radius:8px}.hero-play span{font-size:22px}.hero-caption{display:block;margin:14px 0 0;font-size:11px;color:#687d96}.hero-anatomy{position:relative;display:grid;place-items:center;min-width:0}.hero-anatomy>img{position:relative;height:385px;mix-blend-mode:multiply;z-index:1}.anatomy-orbit{position:absolute;width:330px;height:330px;border:1px solid #c4d4ea;border-radius:50%}.anatomy-orbit:after{content:'';position:absolute;inset:24px;border:1px dashed #bacde6;border-radius:50%;animation:orbit 70s linear infinite}.anatomy-label{position:absolute;bottom:3px;right:0;font:9px ui-monospace,monospace;letter-spacing:.08em;color:#6d839e}.pulse-line{position:absolute;width:160%;left:-35%;top:44%;height:65px;opacity:.22}.pulse-line path{fill:none;stroke:#225ce0;stroke-width:1.3;stroke-dasharray:700;stroke-dashoffset:700;animation:trace 4s ease-in-out infinite}
.section-title{margin:34px 0 18px;align-items:center}.section-title h2{font-size:21px;letter-spacing:-.6px}.section-title>span{font-size:10px;letter-spacing:.1em}.game-grid{gap:20px}.game-card{border-radius:12px;box-shadow:none;display:flex;flex-direction:column;animation:cardIn .55s both;animation-delay:calc(var(--i)*55ms)}.game-card:hover{transform:translateY(-4px);box-shadow:0 12px 26px #2545660c;border-color:#a7bedf}.card-art{height:115px;background:#edf2f8}.game-card:nth-child(even) .card-art{background:#e8eff9}.card-art .glyph{font-size:36px;font-weight:800;letter-spacing:-2px;color:#376ba8;filter:grayscale(.7)}.card-art.body img{height:150px;mix-blend-mode:multiply}.game-number{position:absolute;left:17px;top:14px;color:#8299b4;font:11px ui-monospace,monospace}.card-body{padding:20px;display:flex;flex-direction:column;flex:1}.card-body h3{font-size:17px;letter-spacing:-.4px}.card-body p{font-size:13px;min-height:63px;line-height:1.7}.meta-row{margin-top:auto}.pill{font-size:10px;background:transparent;padding:0 10px 0 0;border-right:1px solid #ccd7e4;color:#627792}.pill:last-child{border:0}.play-btn{background:transparent;color:var(--blue);display:flex;justify-content:space-between;border-top:1px solid #e6edf5;border-radius:0;margin-top:16px;padding:13px 0 0;font-size:12px}.play-btn:hover{background:transparent;color:#0e3695}.play-btn span{font-size:18px}
.game-shell{border-radius:12px;box-shadow:0 8px 36px #25456606}.game-head{padding:24px 26px}.game-head h1{font-size:24px;letter-spacing:-.7px}.game-head p{max-width:790px;font-size:13px}.primary,.secondary{border-radius:8px;min-height:44px}.secondary{border-color:#ccd8e6;color:#315172}.secondary:hover{background:#edf3fc}.game-stage{padding:24px}.answer-panel,.side-panel,.chart-section,.patient-card,.abcde-card{border-radius:9px}.choice,.diagnosis-options button,.dx-option{border:1px solid #cfdae8;background:white;color:var(--ink);padding:13px 16px;border-radius:8px;cursor:pointer;min-height:46px;font:inherit;text-align:left}.choice:hover,.dx-option:hover{background:#eff5ff;border-color:#7199de}.dx-options{display:grid;gap:10px}.answer-input{border-radius:8px;min-height:48px}.big-question{color:var(--blue);font-size:52px;letter-spacing:-2px}.quiz-status{background:#19334e}.body-board{background:#f1f5fa}.body-wrap img,.patient-card img,.surgery-body img{mix-blend-mode:multiply}.body-stage .side-panel{display:block}.marker{width:23px;height:23px}.marker.correct{animation:markerHit .3s both}.marker.wrong{animation:markerMiss .3s}.feedback.show{padding:14px;border-radius:8px;animation:cardIn .22s}.key{min-height:48px;border-radius:7px}.key:hover{filter:brightness(.95)}.key.present{background:#bd850b}.key.correct{background:#28794a}.tile.reveal{animation:tileTurn .36s both}.wordle-msg{min-height:44px;padding:10px 0}.wordle-meta{gap:18px}.wordle-layout{width:100%}
.trauma-layout{background:#f3f6fa;gap:20px;padding:20px}.surgery-layout{padding:20px}.vital-monitor{border-radius:10px;background:#10283c}.monitor-grid{grid-template-columns:repeat(3,1fr)}.monitor-grid>div{padding:13px 16px;border-bottom:1px solid #2a3942}.monitor-grid b{font-size:26px;color:#9de0cc}.monitor-grid>div:nth-child(2) b{color:#afcaff}.monitor-title{height:40px}.trauma-tabs,.surgery-tabs{gap:5px;border:0;background:transparent;margin:16px 0 12px;flex-wrap:wrap}.trauma-tabs button,.surgery-tabs button{border:0;border-radius:7px;background:transparent;font-weight:650;padding:10px 12px;min-height:44px}.trauma-tabs button.active,.surgery-tabs button.active{background:#225ce0;color:white}.trauma-tabs+div{border:0;border-radius:10px}.surg-chart-grid article{padding:20px;border-radius:10px}.surg-tool{min-height:90px}.surgery-patient{position:static}.surgery-body{width:210px;margin:auto;height:400px;overflow:visible;background:transparent}.surgery-body img{max-width:none;width:100%;height:100%;object-fit:fill}.surgery-marker{cursor:pointer}.surgery-banner{border:0;border-bottom:1px solid var(--line);border-radius:0;margin:0;padding:14px 24px}.trauma-top{padding:14px 24px}.triage{border-radius:5px}.ai-story{padding:20px 26px;border-bottom:1px solid #d7e3f5;background:#f2f6ff}.ai-story p{margin:7px 0}.ai-story small{color:#637b98}.toast{border-radius:10px;padding:14px 22px;box-shadow:0 8px 32px #142d4933;max-width:calc(100% - 30px);width:max-content;text-align:center}.enter{animation:pageIn .3s ease both}.stats-page,.about-page{padding:28px}.stats-cards{gap:16px}.stats-card{border-radius:10px}.score-strip{flex-wrap:wrap}.seg{border-radius:8px}.seg button{min-height:44px}.tool-image-box{border-radius:10px;background:#f3f6fa}.tool-image-box img{mix-blend-mode:multiply}.stats-page h1,.about-page h1{letter-spacing:-1px}footer{font-size:11px;background:transparent;border-color:var(--line)}
@keyframes cardIn{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}@keyframes pageIn{from{opacity:.2;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes tileTurn{0%{transform:rotateX(80deg)}100%{transform:rotateX(0)}}@keyframes trace{0%{stroke-dashoffset:700}60%,100%{stroke-dashoffset:0}}@keyframes orbit{to{transform:rotate(360deg)}}@keyframes markerHit{50%{transform:translate(-50%,-50%) scale(1.4)}}@keyframes markerMiss{25%{transform:translate(-65%,-50%)}75%{transform:translate(-35%,-50%)}}
@media(min-width:1000px){.game-card:last-child{grid-column:span 3;display:grid;grid-template-columns:220px 1fr}.game-card:last-child .card-art{height:100%}.game-card:last-child .card-body p{min-height:0}}
@media(max-width:900px){.library-hero{padding:28px;min-height:360px}.hero-anatomy>img{height:320px}.anatomy-orbit{width:240px;height:240px}.body-stage .side-panel{order:-1}.body-stage .side-panel .inside{display:flex;gap:10px;flex-wrap:wrap}.body-stage .side-panel .list,.body-stage .side-panel hr,.body-stage .side-panel h3{display:none}.body-stage .side-panel button{width:auto!important;flex:1;margin:0!important}.tool-stage{grid-template-columns:1fr}.tool-image-box{min-height:260px}.tool-image-box img{max-height:240px}.body-board{min-height:560px}.body-wrap{height:520px}.surgery-layout{grid-template-columns:1fr}.surg-tool-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.topbar{height:auto;min-height:75px;padding:12px 16px;align-items:center;gap:10px;flex-wrap:wrap}.brand strong{font-size:15px}.topbar nav{display:flex;gap:0}.topbar nav button{padding:8px;font-size:12px}.brand-mark{width:33px;height:36px}.brand small{font-size:8px}main{width:calc(100% - 24px);margin-top:12px}.library-hero{padding:25px 22px;grid-template-columns:1fr;min-height:380px}.library-copy{max-width:75%}.library-copy h1{font-size:43px}.library-copy p{font-size:13px}.hero-anatomy{position:absolute;right:-60px;top:40px;width:230px;opacity:.3}.hero-anatomy>img{height:310px}.anatomy-label{display:none}.hero-caption{font-size:10px}.hero-play{gap:15px;font-size:12px}.section-title{margin:26px 0 15px;display:block}.section-title h2{font-size:21px}.game-grid{gap:14px}.game-card{display:grid;grid-template-columns:88px minmax(0,1fr)}.card-art{height:100%;min-height:190px}.card-art .glyph{font-size:28px}.card-art.body img{height:175px}.game-number{left:12px;top:13px}.card-body{padding:16px}.card-body h3{font-size:16px}.card-body p{min-height:0;font-size:12px;margin-bottom:10px}.pill{font-size:9px}.game-head{padding:18px}.game-head h1{font-size:21px}.game-stage{padding:14px}.head-actions{margin-top:12px}.body-wrap{height:490px}.body-board{min-height:530px}.key{min-width:0;flex:1;height:45px;min-height:45px;padding:0 3px;font-size:12px}.key.wide{min-width:0;flex:1.6}.keyrow{gap:4px}.keyboard{margin-inline:-4px}.tool-controls .seg{display:flex;flex-wrap:wrap}.seg button{padding:8px;font-size:12px}.tool-stage{gap:12px}.surg-tool-grid,.surg-chart-grid{grid-template-columns:1fr}.surgery-layout,.trauma-layout{padding:12px}.monitor-grid{grid-template-columns:repeat(2,1fr)}.monitor-grid b{font-size:24px}.surg-chart-grid article{padding:16px}.surgery-body{width:190px;height:360px}.surgery-tabs button,.trauma-tabs button{padding:9px;font-size:12px}.stats-cards{grid-template-columns:1fr 1fr}.stats-page,.about-page{padding:16px}.patient-card dl{font-size:12px}.surgery-banner>div:first-child,.trauma-top>div:first-child{flex-wrap:wrap}.surgery-banner,.trauma-top{padding:12px}.game-card .meta-row{gap:5px}.vitals{grid-template-columns:repeat(2,1fr)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.marker:active:not(:disabled),.injury-marker:active:not(:disabled),.surgery-marker:active:not(:disabled){transform:translate(-50%,-50%) scale(.95)} .surgery-body{width:266.667px;height:400px}@media(max-width:620px){.surgery-body{width:240px;height:360px}}
