/* shop name gate, account bar and order panel */
body.st-gating .jump, body.st-gating .sec:not(.st-gate) { display: none; }
.st-gate[hidden], .st-bar[hidden], .st-order[hidden] { display: none; }
.st-box { max-width: 560px; margin: 8px auto 0; }
.st-box h2 { margin: 4px 0 8px; }
.st-form { margin-top: 16px; }
.st-lab { display: block; font: 700 .72rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--mut); margin-bottom: 8px; }
.st-row { display: flex; gap: 10px; flex-wrap: wrap; }
.st-row input { flex: 1 1 220px; min-height: 48px; padding: 0 14px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; font: 600 1rem var(--body); }
.st-row input:focus { outline: 2px solid var(--ember); outline-offset: 1px; }
.st-err { color: var(--lose); min-height: 1.4em; margin: 10px 0 0; font-size: .95rem; }
.st-bar { display: flex; align-items: center; gap: 16px; margin: 18px 0 6px; padding: 14px 18px; flex-wrap: wrap; }
.st-head { width: 56px; height: 56px; border-radius: 10px; image-rendering: pixelated; background: var(--bg2); flex: none; }
.st-who { flex: 1 1 180px; display: flex; flex-direction: column; gap: 2px; }
.st-who b { font-size: 1.15rem; }
.st-rank { color: var(--mut); font-size: .95rem; }
.st-rank.t-supporter { color: #3cbe6e; } .st-rank.t-vip { color: var(--amber); } .st-rank.t-vipplus { color: var(--plum); }
.st-note { margin: 10px 0 0; color: var(--mut); font-size: .88rem; line-height: 1.45; }
.st-order { margin-top: 18px; max-width: 640px; }
.st-order h2 { margin: 4px 0 12px; }
.st-sum { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 16px; overflow: hidden; }
.st-sum div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--bg2); }
.st-sum div + div { border-top: 1px solid var(--line); }
.st-sum span { color: var(--mut); }
.st-chk { display: block; margin: 0 0 12px; line-height: 1.5; color: var(--ink); }
.st-chk input { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; accent-color: var(--ember); }
.st-chk a { color: var(--ember); text-decoration: underline; }
.st-small { font-size: .88rem; margin-top: 12px; }

/* buy buttons: orange and always visible */
.rk .btn.teal, .pf .btn.teal, .st-order .btn.hot { background: var(--ember); color: #1a0a03; box-shadow: none; font-weight: 800; }
.rk .btn.teal:hover, .pf .btn.teal:hover, .st-order .btn.hot:hover { background: #ff8a56; color: #1a0a03; }
.rk .btn.teal:disabled, .pf .btn.teal:disabled, .st-order .btn.hot:disabled { background: rgba(255, 255, 255, .1); color: var(--mut); cursor: not-allowed; }
.st-buy {}

/* community goal and supporters list */
.st-goal, .st-top { max-width: 640px; margin-top: 12px; }
.st-goal-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.st-goal-top b { font-size: 1.6rem; }
.st-bar2 { height: 14px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.st-bar2 i { display: block; height: 100%; background: var(--ember); }
.st-toplist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.st-toplist li { display: flex; align-items: center; gap: 10px; }
.st-toplist img { image-rendering: pixelated; border-radius: 4px; }
.st-toplist span { margin-left: auto; }

/* inspect a skin pack */
.st-inspectable { cursor: pointer; }
.st-inspectable:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.st-inspect { display: inline-block; margin-top: 10px; font: 700 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ember); }
.st-inspect::after { content: " \2192"; }
dialog.st-dlg { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--ink); padding: 0; width: min(920px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; }
dialog.st-dlg::backdrop { background: rgba(8, 6, 5, .82); }
.st-dlg-in { position: relative; border-top: 4px solid var(--accent, var(--ember)); }
.st-dlg-x { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(18, 16, 16, .8); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 14px; font: 700 .8rem var(--body); cursor: pointer; }
.st-dlg-main { width: 100%; height: auto; display: block; background: var(--bg2); }
.st-dlg-body { padding: 20px 22px 24px; }
.st-dlg-body h2 { margin: 0 0 8px; }
.st-dlg-body h3 { margin: 22px 0 10px; font-size: 1.05rem; }
.st-shots { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.st-shots figure { margin: 0; }
.st-shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); display: block; }
.st-shots figcaption { margin-top: 5px; font-size: .86rem; color: var(--mut); }
.st-dlg-foot { display: flex; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.st-dlg-foot .price { font: 800 1.5rem var(--head); }
dialog.st-dlg[open] { position: fixed; inset: 0; margin: auto; width: 920px; max-width: calc(100vw - 24px); height: fit-content; max-height: calc(100vh - 24px); }

/* rank pictures and shop explanations */
.rk-badge { display: block; height: 30px; width: auto; image-rendering: pixelated; }
.rk-h h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rk-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.role-badge { display: block; height: 24px; width: auto; image-rendering: pixelated; }
.sub-note { margin: -4px 0 14px; max-width: 760px; color: var(--mut); }
.cos-act { margin: 10px 0 0; }

/* advent calendar preview */
.st-cal { margin-top: 14px; }
.st-cal summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.st-cal-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 14px; font-size: .88rem; }
.st-cal-list li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.st-cal-list b { display: inline-block; min-width: 1.6em; }
.st-cal-list .rar-uncommon b { color: #55ff55; } .st-cal-list .rar-rare b { color: #55ccff; } .st-cal-list .rar-epic b { color: #c070ff; } .st-cal-list .rar-legendary b { color: #ffaa00; }
.st-retire { margin-top: 10px; }
