*{box-sizing:border-box}body{margin:0;color:#f6f1e5;background:radial-gradient(ellipse at 75% 4%,#244844,transparent 48%),#0c1920;font:16px/1.5 "Avenir Next",system-ui,sans-serif;min-height:100vh}main{max-width:850px;margin:auto;padding:clamp(16px,4vw,40px)}header,.line,.stats,.actions{display:flex;align-items:center;justify-content:space-between;gap:12px}header{margin-bottom:20px}small,#count,footer{color:#c5c9b9;font-size:.83rem;letter-spacing:.09em}h1,h2{font-family:Georgia,serif;font-weight:400;margin:0}h1{font-size:clamp(48px,7vw,80px);line-height:1.08}h1 i{color:#f4c77f}h2{font-size:26px}p{color:#d7dedc;margin:8px 0 18px}.work,.piece{border:1px solid #526561;background:#12272ce8;border-radius:20px;padding:clamp(14px,3vw,28px);margin-bottom:12px}.rail{display:flex;align-items:center;gap:4px;min-height:64px;border-bottom:1px solid #526561}.rail label{width:55px;font-size:.85rem}.gem{width:clamp(28px,7vw,61px);height:auto;border-radius:23%;vertical-align:middle}.used{opacity:.18}.lead{outline:2px solid #eab86c}.stats{justify-content:flex-start;gap:46px;margin:12px 0}.stats strong{font:34px Georgia;display:block}.actions{justify-content:flex-start;gap:6px}button{font:inherit;font-weight:600;cursor:pointer;border:1px solid #708982;border-radius:10px;background:#253d40;color:#fff;padding:9px 14px}button:disabled{opacity:.38;cursor:default}button:focus-visible{outline:3px solid white}#pair,#next{background:#edbf7a;color:#292519}.piece .gem{width:32px}.column{display:inline-grid;gap:3px;margin:4px 3px 0 0;vertical-align:top}.gap{display:grid;place-items:center;color:#9cb2ac;height:32px}#msg{margin:10px 0 0}footer{letter-spacing:0}@media(max-width:480px){.actions button{flex:1;padding:9px 5px;font-size:14px}.rail label{width:44px}.work,.piece{border-radius:14px}header button{font-size:14px;padding:7px}}
