/* Wordmark: ZCOOL QingKe HuangYou, SIL OFL. See docs/font-license.md. */
@font-face{font-family:"Delta Wordmark";src:url(assets/delta-wordmark.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
:root{color-scheme:dark;--bg:#0c0c14;--panel:#1a1a2e;--raised:#222238;--line:#2a2a3e;--text:#e8e8ec;--muted:#9797ac;--accent:#e85d75;--accent-soft:#e85d7518;--success:#94c7ae}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font:14px/1.6 -apple-system,system-ui,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}
button,input,textarea,select{font:inherit}button,a,input,select,textarea{touch-action:manipulation}
button{cursor:pointer;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:inherit;padding:10px 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background .18s,border-color .18s,transform .18s,color .18s}
button:hover{background:var(--raised);border-color:#45455e}button:active{transform:translateY(1px)}button:disabled{cursor:default;opacity:.6;transform:none}
a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #f18b9c;outline-offset:4px}[hidden]{display:none!important}
.icon{display:block;width:18px;height:18px;flex-shrink:0;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}[data-icon]{display:inline-flex;align-items:center;justify-content:center}
.site-header{height:68px;padding:0 max(24px,calc((100vw - 1080px)/2));display:flex;align-items:center;gap:44px;background:#13131ef2;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5;backdrop-filter:blur(16px)}
.brand{display:flex;gap:9px;align-items:center;font-size:22px;font-weight:750;color:var(--accent);white-space:nowrap;letter-spacing:.5px}.brandmark{display:flex;color:var(--accent)}.brandmark .icon{width:24px;height:26px;stroke-width:1.9}
nav{display:flex;gap:8px;height:100%;align-items:center}nav button{border:0;padding:8px 16px;background:transparent;color:var(--muted);font-size:14px;min-height:40px;border-radius:7px}nav button.active{background:var(--accent-soft);color:#f08396;font-weight:600}nav button:hover{color:var(--text)}
.account-button{margin-left:auto;background:var(--accent);border-color:var(--accent);color:white;font-size:13px;padding:9px 17px;min-height:40px;max-width:170px;white-space:nowrap}.account-button:hover{background:#ed7187;border-color:#ed7187}.account-button span:last-child{overflow:hidden;text-overflow:ellipsis}.account-button .icon{width:15px;height:15px}
main{max-width:1080px;margin:0 auto;padding:0 24px}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:43px 0 27px}h1{font-size:29px;font-weight:700;letter-spacing:.2px;line-height:1.4;margin:0 0 9px}p{color:var(--muted)}.heading p{margin:0;font-size:14px}
.primary{background:var(--accent);color:white;border-color:var(--accent);font-weight:600}.primary:hover{background:#ee7188;border-color:#ee7188}.quiet{border:0;background:transparent;color:var(--muted);font-size:13px}.quiet:hover{background:var(--accent-soft);color:#f08396}
.toolbar{display:flex;align-items:center;gap:18px}.search{display:flex;align-items:center;gap:11px;flex:1;min-width:0;border:1px solid var(--line);background:var(--panel);padding:0 16px;border-radius:11px;height:49px;transition:border-color .18s,box-shadow .18s}.search:focus-within{border-color:#aa5267;box-shadow:0 0 0 3px #e85d750a}.search>[data-icon]{color:#85859e}.search input{border:0!important;padding:11px 0;background:transparent!important;box-shadow:none!important;min-width:0;font-size:14px}.search button{border:0;padding:6px;background:#2d2d44;border-radius:6px;color:#b0b0c4}.search button .icon{width:14px;height:14px}
.mode-filters{display:flex;gap:8px;flex-shrink:0}.mode-filters button{background:var(--panel);border:1px solid var(--line);color:#aaaabd;font-size:13px;padding:8px 17px;border-radius:22px;min-height:40px;white-space:nowrap}.mode-filters button[aria-pressed=true]{border-color:#a94d63;background:#e85d7512;color:#f18b9d}.mode-filters button:hover{color:#f18b9d;border-color:#8c4559}
.discover-page .heading{justify-content:center;text-align:center;margin:57px 0 27px}.discover-page h1{font-size:30px}.discover-page .toolbar{display:flex;flex-direction:column;max-width:620px;margin:auto;gap:16px}.discover-page .search{width:100%;flex:none;height:54px}.discover-page .mode-filters{justify-content:center}.discover-page .result-line{margin-top:49px}
.result-line{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:29px 0 16px;color:var(--text);font-size:15px;font-weight:600}.result-line span:first-child:not(:empty):before{content:'';display:inline-block;width:4px;height:14px;border-radius:2px;background:var(--accent);margin-right:9px;vertical-align:-2px}.result-line span:last-child{font-size:11px;font-weight:400;color:#9191a6}
.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.card{border:1px solid var(--line);border-radius:13px;background:var(--panel);padding:24px;min-width:0;display:flex;flex-direction:column;transition:transform .18s,border-color .18s,box-shadow .18s}.card:hover{border-color:#655064;box-shadow:0 8px 26px #0002;transform:translateY(-2px)}.card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:22px}.card-heading{min-width:0}.weapon{display:block;font-size:12px;color:#a4a4bb;margin-bottom:7px}.card h2{font-size:23px;font-weight:650;letter-spacing:.1px;margin:0;line-height:1.4;overflow-wrap:anywhere}.card.public h2{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:34px;letter-spacing:-1px;line-height:1.2;color:#f2f0f5}.mode-tag{border:1px solid #3c3549;border-radius:5px;padding:3px 8px;background:#282235;color:#c5a7bc;font-size:11px;white-space:nowrap;margin-top:3px}
.note{font-size:13px;margin:-5px 0 18px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.code-block{border:1px solid #2d2d42;background:#12121f;border-radius:8px;padding:12px 14px}.code-label{display:flex;align-items:center;gap:5px;font-size:10px;color:#9191a6;margin-bottom:6px}.code-label .icon{width:12px;height:12px}.code-preview{font:13px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere;color:#c5c5d5;letter-spacing:.25px}.card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:16px 0 21px;font-size:11px;color:#9292a8}.card-meta a{display:flex;gap:6px;align-items:center;color:#a8a8be;max-width:65%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-meta a:hover{color:#f18b9d}.card-meta a .icon{width:13px;height:13px}.card-actions{display:flex;gap:10px;align-items:center;margin-top:auto}.card-actions button{font-size:13px;padding:10px 15px;min-height:43px;border-radius:8px}.card-actions .copy-button{flex:1}.card-actions .copy-button.copied{background:#223b33;color:#a4dcc0;border-color:#3a5b4a}.card-actions .copy-button .icon{width:16px;height:16px}.collect{min-width:90px;background:#222236;border-color:#37374c;color:#bfbfd1}.collect.is-saved{background:#222b2e;color:#a4cdb9;border-color:#35433f;opacity:1}.collect .icon{width:16px;height:16px}
.card-menu{position:relative;border:0;margin:0;padding:0}.card-menu summary{list-style:none;cursor:pointer;padding:13px 12px;color:#b1b1c6;border:1px solid #37374c;border-radius:8px;background:#222236;min-height:43px}.card-menu summary:hover{background:#303046;color:var(--text)}.card-menu summary::-webkit-details-marker{display:none}.card-menu .icon{width:16px;height:16px}.menu-options{position:absolute;right:0;bottom:51px;z-index:3;background:#252539;border:1px solid #404056;padding:5px;border-radius:10px;min-width:136px;box-shadow:0 8px 28px #0006}.menu-options button{display:flex;width:100%;border:0;background:transparent;justify-content:flex-start;white-space:nowrap;padding:9px 12px;min-height:40px}.menu-options button:hover{background:#35354d}.menu-options button:last-child{color:#ef879b}
.empty{text-align:center;padding:60px 20px;border:1px solid var(--line);background:var(--panel);border-radius:13px;margin-top:20px}.empty-mark{color:#e78196;background:#e85d7512;border:1px solid #e85d7524;width:59px;height:62px;border-radius:16px;margin:0 auto 21px}.empty-mark .icon{width:27px;height:27px}.empty h2{font-size:22px;font-weight:650;margin:0 0 9px}.empty p{font-size:13px;margin:0}.empty .primary{display:flex;margin:25px auto 8px;padding:11px 24px}.empty .quiet{margin:auto}
footer{font-size:11px;color:#72728a;display:flex;align-items:center;justify-content:center;gap:12px;padding:26px 0;margin-top:51px;border-top:1px solid #232334}.footer-brand{font-weight:600;color:#9999ac;padding-right:12px;border-right:1px solid #373747}.account-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px;border-radius:9px;background:#302820;border:1px solid #51402f;padding:10px 14px;color:#dfbf94;font-size:12px}.account-banner button{font-size:11px;padding:5px 9px;flex-shrink:0}
input,textarea,select{color:var(--text);background:#141422;border:1px solid #333349;border-radius:9px;padding:12px 14px;outline:none;max-width:100%;width:100%;transition:border-color .18s,box-shadow .18s}input:focus,textarea:focus,select:focus{border-color:#b3576d;box-shadow:0 0 0 3px #e85d750a;background:#171726}input::placeholder,textarea::placeholder{color:#7e7e97}textarea{resize:vertical;line-height:1.8}
dialog{width:510px;max-width:calc(100vw - 32px);border:1px solid #3a3349;background:#1a1a2b;color:var(--text);border-radius:16px;padding:29px;max-height:90dvh;overflow:auto;box-shadow:0 25px 100px #0008}dialog[open]{animation:dialog-in .2s ease-out}dialog::backdrop{background:#05050bbb;backdrop-filter:blur(5px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}.dialog-head h2{font-size:23px;margin:0}.icon-btn{border:0;background:#28283c;border-radius:8px;padding:10px;color:#aaaac0;min-height:40px}.icon-btn .icon{width:17px;height:17px}.optional{color:#9393aa;font-size:11px;margin-left:6px}
form>label,.form-row label,details label,#confirm-row label{display:block;font-size:13px;font-weight:500;color:#bdbdd0;margin:18px 0 8px}.input-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.input-label label{font-size:13px;color:#bdbdd0}.input-label button{border:0;background:transparent;padding:4px 0;color:#ed899c;font-size:12px;min-height:32px}.input-label button:hover{color:#ffadbe}.input-label .icon{width:14px;height:14px}.hint{font-size:12px;margin:9px 0 19px;color:#9797af}.detected-preview{background:#24332e;border:1px solid #354a40;border-radius:8px;padding:9px 12px;color:#9bc8ae;font-size:12px;margin-top:10px;display:flex;align-items:center;gap:8px}.detected-preview .icon{width:14px;height:14px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-row>div{min-width:0}
details{margin-top:23px;border-top:1px solid var(--line);padding-top:18px}summary{cursor:pointer;font-size:13px;color:#b0b0c6}summary span{float:right;font-size:11px;color:#8989a2}.dialog-foot{border-top:1px solid var(--line);padding-top:22px;margin-top:25px;display:flex;justify-content:space-between;align-items:center}.dialog-foot>span{font-size:12px;color:#9393aa}.dialog-foot button{padding:11px 19px}.shortcut{font-size:10px;margin-left:8px;opacity:.65}.error{color:#f791a4;font-size:12px}.candidates button{font-size:11px;margin:4px;padding:8px;overflow-wrap:anywhere;display:block;max-width:100%;text-align:left;justify-content:flex-start}.candidates button[aria-pressed=true]{border-color:#a94d63;background:#e85d7512;color:#f18b9d}
.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);display:flex;gap:18px;align-items:center;z-index:10;border:1px solid #514057;padding:13px 20px;background:#2a2335;color:#f3e7ec;border-radius:10px;box-shadow:0 12px 40px #0005;font-size:13px;max-width:90vw;animation:toast-in .2s ease-out}.toast button{border:0;background:transparent;color:#ff9eb1;padding:0;min-width:28px;font-size:13px}#copy-dialog p{font-size:13px}#copy-dialog button{margin-top:14px}.auth-description{font-size:13px;line-height:1.9;margin:-9px 0 25px}.auth-tabs{display:flex;gap:4px;background:#12121f;padding:5px;border:1px solid var(--line);border-radius:9px}.auth-tabs button{flex:1;border:0;background:transparent;color:#9393ab;font-size:13px;padding:8px}.auth-tabs .active{color:#f18b9d;background:#2c2031}#auth-submit{width:100%;margin-top:15px;min-height:45px}#account-info p{font-size:13px}#account-name{color:#ed899c;font-size:17px!important}.backup-actions{display:flex;gap:8px;margin-top:14px}.backup-actions button{font-size:12px}.removed-row{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:12px;margin:10px 0}.removed-row button{font-size:11px;padding:5px 8px}#logout-button{margin-top:24px;color:#ed899c}body.busy #save-submit{opacity:.65;pointer-events:none}body.has-dialog{overflow:hidden}.spinning{animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes dialog-in{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes toast-in{from{opacity:0;bottom:18px}to{opacity:1;bottom:28px}}
@media(max-width:780px){.site-header{gap:25px}.toolbar{flex-wrap:wrap;gap:14px}.search{flex-basis:100%}.cards{gap:15px}.card{padding:21px}.discover-page .heading{margin-top:44px}.discover-page h1{font-size:27px}.discover-page .toolbar{max-width:520px}.discover-page .search{flex-basis:auto}}
@media(max-width:640px){.site-header{height:64px;padding:0 16px;gap:19px}.brand{font-size:20px;gap:7px}.brandmark .icon{width:20px;height:23px}nav{gap:2px}nav button{font-size:12px;padding:8px 11px}.account-button{padding:8px 13px;max-width:110px;font-size:12px}main{padding:0 18px}.heading{margin:30px 0 24px;gap:10px}h1{font-size:25px}.heading p{font-size:12px}.heading>.primary{font-size:12px;padding:10px 13px;white-space:nowrap}.heading>.primary .icon{width:15px;height:15px}.discover-page .heading{margin:39px 0 24px}.discover-page h1{font-size:25px}.discover-page .heading p{font-size:12px;line-height:1.9}.mode-filters button{padding:8px 16px;font-size:12px}.cards{grid-template-columns:1fr;gap:16px}.card-top{margin-bottom:19px}.result-line{margin-top:25px;font-size:14px}.result-line span:last-child{font-size:10px}.discover-page .result-line{margin-top:35px}.empty{padding:45px 16px;margin-top:8px}.empty h2{font-size:20px}.empty p{font-size:12px}footer{margin-top:35px}.card:hover{transform:none}.shortcut{display:none}}
@media(max-width:440px){.site-header{gap:9px;padding:0 15px}.brand{font-size:18px;gap:6px}.brandmark .icon{width:18px;height:21px}nav button{padding:8px 9px}.account-button{padding:8px 12px;max-width:77px}.account-button .icon{display:none}main{padding:0 16px}.heading>.primary{padding:10px 11px}.heading p{font-size:11px}h1{font-size:24px}.discover-page h1{font-size:24px}.discover-page .heading p{font-size:12px}.discover-page .search{height:51px}.result-line span:last-child{max-width:210px}.card{padding:21px}dialog{padding:24px 21px 22px;width:100%;max-width:100%;max-height:92dvh;margin:auto 0 0;border-radius:20px 20px 0 0;border-bottom:0}.dialog-head{margin-bottom:22px}.dialog-head h2{font-size:22px}.dialog-foot{padding-bottom:env(safe-area-inset-bottom)}input,textarea,select{font-size:16px}.account-banner{font-size:11px}.toast{bottom:22px;width:max-content;max-width:calc(100vw - 28px);font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.brand{font-family:"Delta Wordmark","PingFang SC",sans-serif;font-size:22.4px;font-weight:400;letter-spacing:normal}.brandmark{display:none}
@media(max-width:440px){.brand{font-size:22.4px}.site-header{gap:10px}nav button{padding:8px}.account-button{max-width:70px}}

/* Gun names lead both cards and the detail view; nicknames are secondary. */
.card{cursor:pointer}.card-title-link:hover{color:#f5a0af}.card-heading .weapon{margin-bottom:5px}.card-nickname{font-size:13px;color:#a6a6bb;margin:5px 0 0;line-height:1.5;overflow-wrap:anywhere}.card.public h2,.card h2{font-size:28px;letter-spacing:0;line-height:1.25;color:#f2f0f5;font-family:inherit}.card-top{margin-bottom:18px}.code-preview{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;user-select:text}.card .note{display:none}
.card-price{width:max-content;max-width:100%;font-size:12px;font-weight:600;color:#f0a0ae;background:#342431;border:1px solid #5c374a;border-radius:6px;padding:4px 9px;margin:-5px 0 13px;overflow-wrap:anywhere}
.more-results{display:flex;margin:25px auto 0;padding:11px 28px;min-height:44px;color:#f0a0ae;border-color:#5c374a;background:#241d2d}.more-results:hover{background:#342431}
.detail-view{max-width:760px;margin:33px auto 0;min-height:60vh}.detail-back{display:inline-flex;align-items:center;color:#b8b8cc;font-size:13px;padding:9px 0;margin-bottom:25px}.detail-back:hover{color:#f18b9d}.detail-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:28px}.detail-hero h1{font-size:38px;line-height:1.18;letter-spacing:0;margin:3px 0 0}.detail-hero .weapon{font-size:13px;margin:0}.detail-eyebrow{color:#ed899c;font-size:12px;margin:0 0 7px}.detail-nickname{font-size:15px;margin:9px 0 0;color:#b5b5c9}.detail-hero .mode-tag{font-size:12px;padding:5px 10px;margin-bottom:4px}.detail-code,.detail-info,.detail-extra{border:1px solid var(--line);border-radius:14px;background:var(--panel);padding:25px;margin-bottom:17px}.detail-code{border-color:#483746;background:linear-gradient(145deg,#242033,#1a1a2e 64%)}.detail-label{display:block;color:#c4a1ad;font-size:12px;margin-bottom:13px}.detail-code-value{color:#f3edf2;font:18px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.15px;overflow-wrap:anywhere;word-break:break-word;white-space:pre-wrap;user-select:text;margin:0}.detail-actions{display:flex;gap:10px;margin-top:24px}.detail-actions button{min-height:44px}.detail-actions .copy-button{flex:1}.detail-info h2,.detail-extra h2{font-size:16px;font-weight:650;margin:0 0 14px}.detail-info-row{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:10px 0;border-top:1px solid #2b2b40;font-size:13px}.detail-info-row>span{color:#9999ae;flex-shrink:0}.detail-info-row strong{font-weight:500;text-align:right;overflow-wrap:anywhere}.detail-info-row a{color:#ee8da0;text-align:right;overflow-wrap:anywhere}.detail-extra p{margin:0;color:#bebed0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.85}
@media(max-width:640px){.card.public h2,.card h2{font-size:27px}.detail-view{margin-top:20px}.detail-back{margin-bottom:18px}.detail-hero{align-items:flex-start}.detail-hero h1{font-size:32px}.detail-code,.detail-info,.detail-extra{padding:20px}.detail-code-value{font-size:15px}.detail-actions{flex-direction:column}.detail-actions button{width:100%}}
