*{box-sizing:border-box}
body{margin:0;background:#070a10;color:#eef3ff;font-family:Inter,system-ui,Arial,sans-serif}
#app{max-width:1250px;margin:auto;padding:24px}
header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:20px}
.eyebrow{font-size:11px;letter-spacing:2.5px;color:#7c9cff;font-weight:800}
h1{font-size:clamp(28px,5vw,52px);margin:5px 0;background:linear-gradient(90deg,#fff,#86a9ff);-webkit-background-clip:text;color:transparent}
.subtitle{color:#8490a8;margin:0}
.savebox{border:1px solid #222b3c;background:#0d121c;border-radius:14px;padding:12px 16px;text-align:right;font-size:10px;color:#6f7d98;letter-spacing:1px}
.savebox span{color:#6ee7b7;font-size:12px}
.hud{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:18px}
.hud div,.panel,.gamecard{background:#0d121c;border:1px solid #20293a;border-radius:18px}
.hud div{padding:13px 15px}.hud b{display:block;font-size:9px;letter-spacing:1.5px;color:#65738d}.hud span{display:block;font-weight:800;margin-top:4px}
.progress{height:7px;background:#1a2230;border-radius:99px;overflow:hidden}.progress div{height:100%;width:0;background:linear-gradient(90deg,#6d5dfc,#32d6ff);transition:.4s}
main{display:grid;grid-template-columns:1fr 320px;gap:18px}.gamecard{padding:22px}
.mission{padding:24px 0 18px}.mission span{font-size:10px;color:#6ee7b7;letter-spacing:2px;font-weight:900}
.mission h2{font-size:clamp(22px,3vw,30px);margin:7px 0;line-height:1.35}.mission p{color:#8290a9;margin:0;line-height:1.6}
.options{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.option{min-height:145px;border:1px solid #273248;background:#111824;color:#fff;border-radius:16px;padding:18px;text-align:left;cursor:pointer;transition:.18s}
.option:hover{transform:translateY(-3px);border-color:#6f83ff;background:#151e2e}.option:disabled{cursor:default;opacity:.55;transform:none}
.option .num{font-size:10px;color:#6e7d97}.option strong{display:block;font-size:16px;margin:12px 0 8px;line-height:1.45}.option small{color:#6f7f99}
.message{min-height:56px;padding:16px 4px;color:#9ba9c0}.message.good{color:#6ee7b7}.message.bad{color:#ff8b9d}
.inventory{border-top:1px solid #20293a;margin-top:15px;padding-top:18px}.invhead{display:flex;justify-content:space-between;align-items:center}.invhead h3,.panel h3{font-size:11px;letter-spacing:1.8px;color:#72809a}
.chips{display:flex;flex-wrap:wrap;gap:7px}.chip{padding:7px 10px;border-radius:999px;background:#172033;border:1px solid #26334a;color:#b7c6e2;font-size:12px}
.side{display:grid;gap:14px}.panel{padding:18px}.scientist{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #1c2534}.scientist:last-child{border:0}
.scientist b{font-size:13px}.scientist span{font-size:11px;color:#687792}.scientist.done b{color:#6ee7b7}.scientist.locked{opacity:.45}
ol{color:#8391a9;line-height:1.8;padding-left:20px;font-size:13px}.danger{background:transparent;border:1px solid #3a2630;color:#ff8b9d;border-radius:8px;padding:7px 10px;cursor:pointer}
.fabricator{border:1px solid #273248;background:radial-gradient(circle at 50% 35%,#182641,#0a0f18 70%);border-radius:18px;min-height:220px;padding:14px;overflow:hidden;position:relative}
.fab-head{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1.6px;color:#71809b;font-weight:900}.fab-head span:last-child{color:#6ee7b7}
.fab-visual{height:145px;display:flex;align-items:center;justify-content:center}.fab-caption{text-align:center;color:#8492aa;font-size:11px;line-height:1.5}
.success-only{display:none;margin-top:16px}.success-only.show{display:block;animation:successPanelIn .35s ease both}
.product-core{width:120px;height:120px;border-radius:28px;display:grid;place-items:center;text-align:center;border:1px solid #657cff;background:radial-gradient(circle,#344b9c,#11182a 68%);box-shadow:0 0 35px #6e7cff55;animation:forgeSuccess .8s ease both}
.product-core .icon{font-size:46px}.product-core strong{display:block;font-size:12px;margin-top:4px}.product-core small{color:#aab8d4;font-size:9px}
.next-level{display:block;width:100%;margin-top:14px;padding:15px 18px;border:1px solid #6f83ff;border-radius:12px;background:#171f38;color:#fff;font-weight:900;letter-spacing:1px;cursor:pointer;transition:.18s}
.next-level:hover{transform:translateY(-2px);background:#202b4d;box-shadow:0 0 24px #6e7cff33}.hidden-next{display:none}.next-level-show{animation:nextLevelIn .45s ease both}
.modal{position:fixed;inset:0;background:#000b;display:grid;place-items:center;padding:20px;z-index:9}.hidden{display:none}
.modalbox{max-width:570px;width:100%;background:#0d121c;border:1px solid #35415b;border-radius:24px;padding:38px;text-align:center;box-shadow:0 30px 100px #000}
.medal{font-size:60px;color:#ffd36e;text-shadow:0 0 35px #ffd36e55}.modalbox h2{font-size:36px;margin:8px}.award-level{font-size:11px;letter-spacing:2px;color:#6ee7b7;font-weight:900;margin-top:8px}
.scientist-field{color:#8490a8;font-size:13px}.quote{line-height:1.7;margin:18px 0}.quote.en{color:#d9e4ff}.quote.bn{color:#9eafd0}
.modalbox button{border:0;border-radius:10px;padding:13px 22px;background:#7c6cff;color:white;font-weight:800;cursor:pointer}
@keyframes forgeSuccess{0%{transform:scale(.7);box-shadow:0 0 0 #6e7cff}55%{transform:scale(1.08);box-shadow:0 0 55px #6e7cff99}100%{transform:scale(1)}}
@keyframes successPanelIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes nextLevelIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.artifact-wrap{width:min(100%,360px);display:flex;flex-direction:column;align-items:center;gap:8px;animation:artifactReveal .7s cubic-bezier(.2,.8,.2,1) both}.artifact-svg{width:150px;height:150px;overflow:visible;filter:drop-shadow(0 0 18px rgba(76,112,255,.22))}.artifact-label{max-width:100%;padding:7px 12px;border:1px solid #293751;border-radius:999px;background:#101827;color:#c6d3ed;font-size:11px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.artifact-wrap:after{content:"OBJECT DISCOVERED • VISUALIZED";font-size:8px;letter-spacing:1.8px;color:#6ee7b7;font-weight:900;animation:artifactPulse 1.5s ease-in-out infinite}.artifact-svg path,.artifact-svg circle,.artifact-svg ellipse{animation:artifactDraw .8s ease both}.fab-visual{min-height:170px;height:auto;padding:4px 0 8px}
@keyframes artifactReveal{0%{opacity:0;transform:translateY(18px) scale(.72) rotate(-4deg)}55%{opacity:1;transform:translateY(-5px) scale(1.06) rotate(1deg)}100%{opacity:1;transform:none}}
@keyframes artifactDraw{0%{opacity:0;filter:brightness(1.8)}100%{opacity:1;filter:none}}
@keyframes artifactPulse{0%,100%{opacity:.45;letter-spacing:1.8px}50%{opacity:1;letter-spacing:2.2px}}

@media(max-width:850px){main{grid-template-columns:1fr}.hud{grid-template-columns:1fr 1fr 1fr}.options{grid-template-columns:1fr 1fr}}
@media(max-width:520px){#app{padding:13px}header{flex-direction:column}.savebox{align-self:stretch;text-align:left}.hud{grid-template-columns:1fr 1fr}.options{grid-template-columns:1fr}.option{min-height:115px}.modalbox{padding:25px}}
