/* ErrorSMP store page */

.sale { margin: 0; padding: 10px 16px; max-width: none; text-align: center; background: var(--hot); color: var(--on-accent); }
.store-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-top: 36px; }
.store-logo { width: min(340px, 90%); height: auto; margin: 0 0 6px -8px; }
.store-head .soft { margin-top: 12px; }
.window-bar label { cursor: pointer; }
.who { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; }
.who img { image-rendering: pixelated; }
input:not([type="checkbox"]), select { width: 100%; min-height: 48px; padding: 8px 12px; background: var(--bg-deep); color: var(--ink); border: 3px solid var(--outline); border-radius: 0; box-shadow: 0 0 0 2px var(--panel-raised); }
input::placeholder { color: var(--ink-soft); }
input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--second); }

/* ---------- rank picker and showcase ---------- */
.picker { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 18px; }
.pick {
  position: relative; display: grid; gap: 2px; justify-items: center; align-content: center; min-height: 76px; padding: 10px 6px;
  background: var(--panel); color: var(--ink); border: 3px solid var(--outline); font: inherit; cursor: pointer;
  box-shadow: inset 0 6px 0 var(--rank);
}
.pick b { color: var(--rank); font-size: 1.15rem; }
.pick span { color: var(--ink-soft); font-size: 0.9rem; }
.pick em { position: absolute; top: -12px; padding: 0 8px; background: var(--hot); color: var(--on-accent); font-style: normal; font-size: 0.8rem; font-weight: 700; }
.pick:hover { background: var(--panel-raised); }
.pick[aria-pressed="true"] { background: var(--main); outline: 3px solid var(--accent); outline-offset: -3px; }
.pick[aria-pressed="true"] b, .pick[aria-pressed="true"] span { color: var(--ink); }
.showcase { display: grid; grid-template-columns: 1fr 1.15fr; }
.showcase .stage { min-height: 480px; border-right: 3px solid var(--outline); }
.showcase .p3 { --u: 10px; }
.nametag { position: absolute; top: 14px; left: 50%; translate: -50% 0; margin: 0; padding: 4px 12px; background: rgb(0 0 0 / 0.65); white-space: nowrap; }
.nametag b { color: var(--rank); }
.detail { display: grid; gap: 14px; align-content: center; padding: clamp(20px, 3.5vw, 40px); }
.detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.detail-head h2 { color: var(--rank); font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); }
.best { padding: 3px 12px; background: var(--hot); color: var(--on-accent); font-weight: 700; }
.perk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.perk-list li { position: relative; padding-left: 22px; animation: line-in 0.28s steps(4, end) both; animation-delay: calc(var(--order) * 55ms); }
@keyframes line-in { from { translate: -14px 0; clip-path: inset(0 100% 0 0); } to { translate: 0 0; clip-path: inset(0 0 0 0); } }
.terms { display: flex; }
.term { min-height: 44px; padding: 8px 20px; background: var(--bg-deep); color: var(--ink-soft); border: 3px solid var(--outline); font: 700 1rem var(--font); cursor: pointer; }
.term[aria-pressed="true"] { background: var(--ink); color: var(--on-accent); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin: 0; }
.price b { font-size: 2.6rem; line-height: 1; }
.price span { color: var(--ink-soft); }
.price .was { color: var(--ink-soft); font-size: 1.3rem; }
.buy { min-height: 60px; font-size: 1.35rem; }
.draft { font-size: 0.9rem; }

/* ---------- comparison ---------- */
.table-scroll { overflow-x: auto; border: 3px solid var(--outline); background: var(--panel); }
table { width: 100%; min-width: 820px; border-collapse: collapse; }
th, td { padding: 12px 10px; text-align: center; border-bottom: 2px solid var(--panel-raised); }
th[scope="row"], thead th:first-child { text-align: left; font-weight: 400; position: sticky; left: 0; background: var(--panel); min-width: 200px; }
thead th { color: var(--rank, var(--ink)); box-shadow: inset 0 -4px 0 var(--rank, transparent); }
.yes, .no { display: inline-block; width: 16px; height: 16px; vertical-align: middle; }
.yes { background: var(--ok); }
.no { height: 4px; background: var(--panel-raised); }

/* ---------- upgrades and supporters ---------- */
.pay-form > label:not(.check) { display: grid; gap: 6px; }
.community { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.community ol { margin: 0; padding-left: 22px; }
progress { width: 100%; height: 20px; accent-color: var(--second); }

/* ---------- checkout ---------- */
dialog { width: min(520px, 100% - 20px); max-height: calc(100svh - 20px); overflow: auto; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgb(8 0 16 / 0.8); }
dialog .window-bar::after { display: none; }
.summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; background: var(--bg-deep); }
.summary div { display: grid; }
.summary strong { font-size: 1.6rem; }
.pay-form { display: grid; gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
#checkout-status.error { border-color: var(--bad); color: var(--bad); }
.return-note { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 520px; margin-inline: auto; }

@media (max-width: 960px) {
  .store-head, .showcase { grid-template-columns: 1fr; }
  .showcase .stage { min-height: 360px; border-right: 0; border-bottom: 3px solid var(--outline); }
  .showcase .p3 { --u: 7.4px; }
  .picker { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .pick b, .pick span { max-width: 100%; text-align: center; overflow-wrap: anywhere; }
  .community { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  th[scope="row"], thead th:first-child { min-width: 140px; }
}
