@font-face{font-family:system;src:local('Georgia')}*{box-sizing:border-box}body{margin:0;background:#f7f2e8;color:#173e3a;font:16px/1.45 system-ui,sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;font-weight:650;color:inherit;border:1px solid #b9c6bd;border-radius:9px;background:#fffdf5;padding:9px 16px;cursor:pointer;min-height:44px}button:hover:not(:disabled){background:#e5efe7}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #b46d23;outline-offset:3px}.primary{background:#155b53;color:#fff9e9;border-color:#155b53}.primary:hover:not(:disabled){background:#24756a}a{color:inherit}main{max-width:1060px;margin:auto;padding:14px 28px}nav,header,.toolbar,.stats,footer,.about{display:flex;align-items:center;justify-content:space-between;gap:14px}nav{font-size:14px}nav img,footer img{display:block}header{margin:16px 0 12px}h1{font:clamp(32px,4.5vw,52px)/1.05 Georgia,serif;margin:3px 0}h1 em{font-weight:normal;color:#a96731}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;margin:0}.tagline{font:italic 18px Georgia,serif}.toolbar{justify-content:flex-start;flex-wrap:wrap;margin:12px 0}.stats{background:#e7ebdf;border-radius:10px;padding:9px 20px;margin-bottom:12px}.stats div{display:flex;align-items:baseline;gap:12px}.stats span{font-size:11px;letter-spacing:1px}.stats strong{font-size:25px}.bench{position:relative;border:1px solid #b99362;border-radius:16px;overflow:hidden;background:#dfc09b url('assets/workbench-background.png') center/cover;padding:16px 24px 18px;box-shadow:0 8px 24px #77582b20}.customers{display:grid;grid-template-columns:repeat(3,1fr);max-width:660px;margin:0 auto 5px}.customer{text-align:center}.sprite{height:115px;width:150px;max-width:100%;margin:auto;background-image:url('assets/character-and-piece-sheet.png');background-size:400% 300%;background-repeat:no-repeat;background-position:0 0}.antigen{background-position:0 50%}.lookalike{background-position:33.3333% 50%}.customer span{display:block;font-size:10px;letter-spacing:1.3px;font-weight:800;text-shadow:0 1px #fff}.fitting{max-width:670px;margin:auto;background:#fff7e6ed;border:1px solid #b79c73;border-radius:12px;padding:10px 16px;box-shadow:0 3px 12px #73532723}.fitting-heading{display:flex;justify-content:space-between;font-size:13px;margin-bottom:8px}.fitting-heading span{color:#6c7465}.contact-row{display:flex;align-items:center;gap:12px;margin:6px 0}.row-label{width:84px;font-size:11px;font-weight:800;letter-spacing:.7px}.contacts{display:flex;gap:10px;flex:1;justify-content:center}.contact,.slot{width:100%;max-width:125px;min-height:54px;position:relative;border-radius:8px;display:flex;align-items:center;justify-content:center;gap:7px}.contact{background:#f8e7b9;border:1px solid #c7a96e}.comparison .contact{background:#ede1f2;border-color:#baa1c4;min-height:38px}.slot{background:#e2ede4;border:2px dashed #86a299;padding:3px}.slot.selected{border:3px solid #1c6559;background:#d2e7db}.slot.bad{border-color:#b14035;background:#ffdfd3}.slot.good{border-style:solid;border-color:#42864e}.seam-number{position:absolute;top:1px;left:5px;font-size:10px;font-weight:800}.profile{display:inline-block;width:42px;height:25px;background:linear-gradient(135deg,#3f9e91,#155b53);box-shadow:inset 2px 2px 3px #ffffff4d,0 2px 2px #0002}.shape-0{clip-path:polygon(0 0,20% 0,23% 25%,32% 50%,50% 62%,68% 50%,77% 25%,80% 0,100% 0,100% 100%,0 100%)}.shape-1{border-radius:3px}.shape-2{border-radius:50% 50% 3px 3px}.contact .profile{background:linear-gradient(135deg,#edc75f,#bd8424)}.comparison .profile{background:linear-gradient(135deg,#bd8dce,#815095)}.charge{font-size:23px;font-weight:800;line-height:1}.comparison .profile{height:19px}.comparison .charge{font-size:19px}.overlay{position:absolute;inset:0;z-index:2;background:#f8f1e5f5;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;padding:15px;text-align:center}.overlay[hidden]{display:none}.pill{letter-spacing:2px;font-size:11px;font-weight:800;color:#9a602a}h2{font:40px/1.05 Georgia,serif;margin:4px 0}.overlay p{max-width:450px;margin:4px 0 9px;white-space:pre-line}.controls{text-align:center;margin-top:12px}#instruction{font-weight:650;min-height:24px;margin:6px 0 10px}.tray{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;max-width:670px;margin:0 auto 10px}.piece{position:relative;padding:5px 2px;background:#fffaf0}.piece-art{height:55px;width:100%;display:block;background:url('assets/character-and-piece-sheet.png') no-repeat;background-size:600% 300%;background-position-y:100%}.piece-label{display:block;font-size:11px;margin-top:2px}.piece.suggested{outline:3px solid #b47c23;outline-offset:1px}.hint,.footnote{font-size:13px;color:#647167;margin:7px 0}.footnote{text-align:center;margin:14px 0}.about{border-top:1px solid #cbd1c4;border-bottom:1px solid #cbd1c4;padding:24px max(24px,calc((100vw - 1000px)/2));font-size:13px}.about>span{font-size:40px}.about p:last-child{font-size:11px;letter-spacing:1px}footer{max-width:1060px;margin:auto;padding:24px 28px;font-size:12px;flex-wrap:wrap}dialog{border:1px solid #b4c0b2;border-radius:16px;background:#fffaf0;color:#173e3a;max-width:600px;width:calc(100% - 32px);max-height:85vh;padding:26px}dialog::backdrop{background:#123d3bc9}dialog h2{font-size:30px}details{margin:16px 0}summary{cursor:pointer;font-weight:700}dialog p{font-size:15px}#test{min-width:190px}.bench.success .fitting{box-shadow:0 0 0 3px #6ca36c}.bench.lookalike .comparison{outline:2px solid #a16daf;border-radius:6px}@media(min-width:700px) and (max-height:800px){header{margin:8px 0}.sprite{height:82px;width:110px}.bench{padding:8px 20px}.contact,.slot{min-height:46px}.toolbar{margin:8px 0}.piece-art{height:44px}.controls{margin-top:6px}}
@media(max-width:650px){main{padding:10px 12px}header{margin:12px 0}.tagline{display:none}.toolbar{gap:6px}.toolbar button{padding:7px 10px;font-size:13px}.stats{padding:7px 12px;gap:7px}.stats div{display:block}.stats span{display:block;font-size:9px}.stats strong{font-size:23px}.bench{padding:10px 9px}.sprite{width:100px;height:81px}.customer span{font-size:8px;letter-spacing:.3px}.fitting{padding:7px}.fitting-heading{font-size:11px}.contact-row{gap:5px}.row-label{width:58px;font-size:9px}.contacts{gap:5px}.contact,.slot{min-height:47px;gap:3px}.profile{width:29px;height:22px}.charge{font-size:19px}.comparison .contact{min-height:31px}.comparison .profile{height:16px}.tray{gap:5px}.piece{min-height:70px}.piece-art{height:42px}.piece-label{font-size:9px}.hint,.footnote{font-size:11px}#instruction{font-size:13px;min-height:38px;margin:5px 0}.controls{margin-top:6px}.about{padding:20px;gap:14px}.about p:last-child{display:none}footer{padding:20px;font-size:11px}h2{font-size:34px}.overlay p{font-size:14px}}
@media(max-width:650px) and (max-height:650px){header{margin:7px 0}h1{font-size:29px}.eyebrow{font-size:9px}.toolbar{margin:7px 0}.stats{margin-bottom:7px;padding:4px 10px}.stats strong{font-size:19px}.sprite{height:57px;width:76px}.bench{padding:6px}.contact,.slot{min-height:38px}.comparison .contact{min-height:27px}.fitting-heading{margin-bottom:3px}.contact-row{margin:4px 0}.piece-art{height:32px}.piece{min-height:57px}.tray{margin-bottom:6px}#instruction{min-height:34px;margin:3px 0}.hint{margin:4px 0}#test{min-height:40px;padding:6px}}
@media(max-height:420px) and (min-width:480px){main{max-width:100%;padding:8px 12px}nav{position:absolute;top:8px;right:12px;z-index:3}nav img{width:90px;height:auto}nav a:last-child{font-size:11px}header{margin:0 0 5px}h1{font-size:25px}.eyebrow,.tagline{display:none}.toolbar{margin:5px 0;gap:5px}.toolbar button{min-height:32px;padding:3px 9px;font-size:12px}.stats{position:absolute;top:44px;right:12px;width:220px;padding:3px 8px}.stats span{font-size:8px}.stats strong{font-size:15px}.bench{width:57%;height:208px;padding:5px}.customers{display:none}.fitting{padding:5px}.fitting-heading{font-size:10px}.contact,.slot{min-height:41px}.comparison .contact{min-height:31px}.row-label{width:53px;font-size:8px}.controls{position:absolute;top:88px;left:59%;right:12px;margin:0}#instruction{font-size:12px;min-height:40px;margin:0 0 6px}.tray{grid-template-columns:repeat(3,1fr);gap:4px}.piece{min-height:46px;padding:0}.piece-art{height:30px}.piece-label{font-size:8px;margin:0}#test{min-height:34px;padding:4px;min-width:120px}.hint{font-size:9px;margin:4px 0}.footnote{font-size:10px;margin:5px 0}.overlay{gap:5px}h2{font-size:26px}.overlay p{font-size:12px}.overlay button{min-height:32px;padding:4px 12px}.pill{font-size:9px}.about{margin-top:10px}}
@media(prefers-reduced-motion:no-preference){.bench.success #antibody-art{animation:happy .45s ease-in-out 2}@keyframes happy{50%{transform:translateY(-4px)}}}
