@charset "UTF-8";
:root{font-family:system-ui,"Malgun Gothic",sans-serif;color:#251941;background:#f7f5ff;font-synthesis:none;--ink:#251941;--muted:#665c7b;--line:#e3dcf4;--violet:#6345bb;--pink:#eeacd4;--sky:#c3e8ff}
*{box-sizing:border-box}
body{margin:0;min-height:100vh}
[hidden]{display:none!important}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
button,input,select{border:1px solid #cfc3e9;border-radius:8px;min-height:42px}
input,select{width:100%;padding:9px 12px;color:var(--ink);background:#fff}
input[type=color]{padding:4px;max-width:100px}
input[type=checkbox]{width:18px;min-height:18px;accent-color:var(--violet)}
button{cursor:pointer;background:#fff;color:#463278;padding:8px 14px;font-weight:700}
button:where(:hover,:focus-visible),a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #9678ec;outline-offset:2px}
button:disabled{opacity:.55;cursor:wait}
.primary{color:white;background:#6548bd;border-color:#5534ac;box-shadow:0 3px #453081}
.primary:hover{background:#5439a4}
h1,h2,h3,p{margin-top:0}
h2{margin-bottom:0;font-size:clamp(22px,3vw,29px);letter-spacing:-.04em}
p{line-height:1.65}
.shell{width:min(1100px,calc(100% - 46px));margin-inline:auto}
.top{background:#fcfbff;border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;min-height:68px}
.brand{display:flex;align-items:center;gap:12px;font-weight:950;font-size:22px;letter-spacing:.07em}
.brand small{font-size:13px;letter-spacing:0;color:#5e4e80;margin-left:5px}
.logo{display:grid;place-items:center;width:33px;height:33px;background:#9272e7;color:#fff;font:900 20px ui-monospace,monospace;box-shadow:3px 3px #5534ac;clip-path:polygon(12% 0,88% 0,88% 12%,100% 12%,100% 88%,88% 88%,88% 100%,12% 100%,12% 88%,0 88%,0 12%,12% 12%)}
.nav-link{padding:8px 12px;border:1px solid var(--line);border-radius:8px;color:#58447f;font-size:13px;font-weight:750}
.viewer,.admin{margin-block:38px 64px}
.hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:1.22fr .78fr;min-height:355px;border:1px solid #d2c5ed;border-radius:17px;background:linear-gradient(113deg,#d6eeff 3%,#e5d9ff 57%,#f8d4e9 100%);box-shadow:0 6px #e1d8f5}
.hero:before{content:"";position:absolute;inset:0;z-index:-1;opacity:.32;background-image:linear-gradient(#fff 1px,transparent 1px),linear-gradient(90deg,#fff 1px,transparent 1px);background-size:22px 22px;mask-image:linear-gradient(90deg,transparent 18%,#000)}
.hero-content{padding:clamp(28px,6vw,65px);padding-right:0;z-index:1}
.eyebrow{display:flex;align-items:center;gap:8px;color:#60458e;font:800 11px ui-monospace,monospace;letter-spacing:.15em}
.eyebrow span{width:7px;height:7px;background:#9371df;box-shadow:2px 2px #cbb4ff}
h1{font-weight:950;font-size:clamp(44px,7vw,77px);line-height:1.03;letter-spacing:-.075em;margin:11px 0 15px}
h1 em{color:#6140ab;font-style:normal}
.hero p{color:#503f70;margin-bottom:27px}
.lookup label,.stack label,.filters label{display:grid;gap:6px;color:#4e3c73;font-size:13px;font-weight:750}
.lookup-row{display:flex;gap:9px;margin-top:8px}
.lookup-row input{min-height:50px}
.lookup-row button{white-space:nowrap;min-height:50px}
.lookup-row button span{margin-left:5px}
.hero-art{position:relative;display:grid;place-items:center;align-self:stretch;min-height:212px}
.orbit{position:absolute;width:min(78%,280px);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#fffbff 0%,#fff5 56%,transparent 69%);border:1px dashed #b999deaa}
.chest{position:relative;width:190px;height:148px;filter:drop-shadow(0 16px 0 #b49ad255);transform:rotate(-5deg);margin-top:14px}
.lid,.box,.lock{position:absolute;border:7px solid #5f3b9b}
.lid{left:4px;top:0;width:182px;height:70px;background:repeating-linear-gradient(90deg,transparent 0 29px,#f9b4d9 29px 39px,transparent 39px 103px,#f9b4d9 103px 113px,transparent 113px 170px),linear-gradient(#c29dff 0 16%,#a177ef 16% 75%,#8759db 75%);clip-path:polygon(0 25%,8% 25%,8% 12%,18% 12%,18% 0,82% 0,82% 12%,92% 12%,92% 25%,100% 25%,100% 100%,0 100%)}
.box{left:0;top:65px;width:190px;height:72px;background:linear-gradient(90deg,#ad85f0 0 10%,#f2acd3 10% 15%,#c8abfa 15% 85%,#f2acd3 85% 90%,#ad85f0 90%);box-shadow:inset 0 -11px #9267cc;clip-path:polygon(0 0,100% 0,100% 87%,95% 87%,95% 100%,5% 100%,5% 87%,0 87%)}
.lock{left:74px;top:58px;width:42px;height:36px;border-width:5px;background:#fff0a9;box-shadow:inset 0 -6px #edbf78}
.lock:after{content:"";position:absolute;inset:7px 12px 6px;background:#704d90}
.spark{position:absolute;width:11px;height:11px;background:#fff;border:1px solid #be9ce8;transform:rotate(45deg)}
.one{right:22%;top:23%}.two{left:20%;bottom:22%;width:8px;height:8px}.three{right:16%;bottom:29%;width:6px;height:6px;background:#e19ac8}
.inventory{margin-top:49px;padding:25px 28px 29px;background:#fcfbff;border:1px solid var(--line);border-radius:13px}
.section-head,.admin-heading,.dialog-title{display:flex;justify-content:space-between;align-items:center;gap:14px}
.section-head h2{margin-top:5px}
.stat,.grade{background:#efe8ff;color:#573b96;padding:4px 8px;border-radius:4px;font-weight:800}
.stat{white-space:nowrap;font-size:13px}
.empty{margin:18px 0 0;border:1px dashed #d8cbee;border-radius:9px;padding:24px;color:var(--muted);text-align:center;background:#f9f6ff}
.rewards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:12px}
.rewards:not(:empty){margin-top:20px}
.reward-card{display:flex;align-items:center;gap:10px;text-align:left;min-width:0;border:2px solid var(--item-border);padding:10px}
.reward-icon{flex:none;display:grid;place-items:center;width:50px;height:50px;border:2px solid var(--item-border);background:#f4edff;border-radius:5px;font-size:24px;overflow:hidden}
.reward-icon img{width:100%;height:100%;object-fit:cover}
.reward-name{display:grid;justify-items:start;gap:4px;min-width:0;overflow-wrap:anywhere}
.reward-name small{font-size:11px}
.count{margin-left:auto;color:#5837a0;white-space:nowrap}
.footer{display:flex;justify-content:space-between;gap:12px;padding:17px 0 24px;border-top:1px solid var(--line);color:#6c5e87;font:700 11px ui-monospace,monospace}
.admin h1{font-size:clamp(35px,5vw,54px)}
.panel{margin:14px 0;background:#fff;border:1px solid var(--line);border-radius:13px;padding:clamp(16px,3vw,28px)}
.panel h2{margin-bottom:12px}
.panel h3{margin-top:23px}
#gate{max-width:440px}
.tabs,.actions{display:flex;gap:7px;flex-wrap:wrap}
.tabs button[aria-pressed=true]{background:#e8dcff;border-color:#a487dd;color:#483079}
.actions button{padding:5px 8px;min-height:34px;font-size:12px}
.stack,.filters{display:grid;gap:13px;align-items:end}
.stack>button{justify-self:start}
.filters{grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr));margin:12px 0}
.check{display:flex!important;align-items:center;min-height:42px}
.drop{padding:16px;background:#f8f2ff;border:1px dashed #b79ae9;border-radius:8px}
.feedback{background:#eee5ff;border-left:4px solid #8e6cd8;padding:10px 13px;margin:12px 0}
.error,.danger-text,#edit-error{color:#a82856}
.error{background:#fff0f5;border-color:#c54370}
.danger{color:#9e204d;background:#ffedf4;border-color:#e5a2ba}
.spaced{margin-top:25px}
.muted{color:var(--muted);font-size:13px;margin:12px 0}
.scroll-table{overflow:auto}
table{width:100%;border-collapse:collapse;font-size:14px;text-align:left}
th,td{padding:10px 9px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
th{background:#f4edff;white-space:nowrap}
dialog{width:min(600px,calc(100% - 28px));border:1px solid #bda9e2;border-radius:13px;padding:20px;color:var(--ink);box-shadow:0 10px 45px #36205b55}
dialog::backdrop{background:#34255380}
.dialog-title{margin-bottom:13px}
hr{border:0;border-top:1px solid var(--line);margin:22px 0}
#commit,#preview:not(:empty){margin-top:14px}
@media(max-width:700px){.hero{grid-template-columns:1fr;min-height:0}.hero-content{padding:26px 20px 0}.hero-art{min-height:202px}.chest{transform:rotate(-5deg) scale(.78)}.orbit{width:170px}.inventory{margin-top:28px;padding:17px}.shell{width:calc(100% - 28px)}.viewer,.admin{margin-block:22px 38px}}
@media(max-width:380px){.lookup-row{flex-wrap:wrap}.lookup-row button{width:100%}.section-head{flex-wrap:wrap}}