/* the store's pages (buy, thanks, key, manage), on top of legal.css */
main.wide { max-width: 1100px; }
.btn { display: inline-block; padding: 9px 18px; border-radius: 999px; font: 600 15px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-decoration: none; border: 1px solid transparent; cursor: pointer; color: #fff; }
.btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.btn.buy { background: var(--pink); box-shadow: 0 0 18px rgba(255, 42, 127, .35); }
.btn.ghost { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .3); }
.btn.ghost:hover:not(:disabled) { border-color: var(--pink); }
.btn.add { background: rgba(255, 42, 127, .15); border-color: rgba(255, 42, 127, .6); }
.btn.add:hover { background: rgba(255, 42, 127, .3); }
.btn.small { padding: 6px 13px; font-size: 13px; }
.btn.big { padding: 13px 24px; font-size: 17px; width: 100%; margin-top: 14px; }
.text { background: #111118; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; color: var(--ink); padding: 9px 12px; font: inherit; font-size: 15px; min-width: 0; }
.text:focus { outline: 2px solid var(--pink); outline-offset: 1px; }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .03em; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row .text { flex: 1 1 240px; }
.row.have-it { margin-top: 12px; }
.row .text.code { flex: 0 1 150px; letter-spacing: .15em; }
.lbl { display: block; font-size: 14px; color: var(--dim); margin: 0 0 6px; }
.msg { min-height: 1.2em; color: #fd8; font-size: 14px; margin: 8px 0 0; }
.dim { color: var(--dim); font-size: 14px; }
.fine { color: var(--dim); font-size: 13px; }
.box.ok { border-color: rgba(110, 230, 140, .4); background: rgba(110, 230, 140, .06); }
.box.warn { border-color: rgba(255, 200, 60, .45); background: rgba(255, 200, 60, .07); }
.warn-t { color: #fc3; } .owned { color: #6e6; font-size: 14px; white-space: nowrap; }
/* /buy */
.shop { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
@media (max-width: 860px) { .shop { grid-template-columns: 1fr; } .cart { position: static; order: -1; } }
.list h2 { margin: 28px 0 10px; }
.item { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: rgba(255, 255, 255, .02); margin: 8px 0; }
.item.on { border-color: rgba(255, 42, 127, .6); background: rgba(255, 42, 127, .06); }
.item.done { opacity: .7; }
.item p { margin: 3px 0 0; font-size: 14px; color: var(--dim); }
.item-head { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; }
.price { color: #fc3; font-weight: 700; white-space: nowrap; }
.item-ctl { display: flex; gap: 8px; align-items: center; flex: none; }
.qty-wrap { display: flex; gap: 6px; align-items: center; } .qty { width: 64px; }
@media (max-width: 520px) { .item { flex-direction: column; align-items: stretch; } .item-ctl { justify-content: flex-end; } }
.addkey summary { cursor: pointer; } .addkey[open] summary { margin-bottom: 8px; }
.key-on { border-color: rgba(110, 230, 140, .4); }
.cart { position: sticky; top: calc(var(--head) + 16px); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 18px; background: rgba(255, 255, 255, .03); }
.cart h2 { margin: 0 0 10px; font-size: 18px; }
.line { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 15px; }
.line.total { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 6px; padding-top: 10px; font-size: 17px; }
.cart .box { font-size: 14px; margin: 12px 0 0; padding: 12px 14px; }
.cart .box .btn { margin-top: 8px; }
/* /thanks */
.keybox { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 16px 18px; border-radius: 12px; border: 1px solid rgba(255, 42, 127, .5); background: rgba(255, 42, 127, .07); }
.key { font: 600 clamp(15px, 2.6vw, 21px)/1.3 ui-monospace, Consolas, monospace; letter-spacing: .04em; color: #fff; user-select: all; word-break: break-all; }
/* /manage */
.who { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; color: var(--dim); }
.who b { color: var(--ink); }
.machines { display: flex; flex-direction: column; gap: 8px; }
.machine { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; }
.machine small { display: block; color: var(--dim); font-size: 13px; }
.machine.stale small { color: #fc3; }
/* the demo page: the news box */
.check { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 14px; color: var(--dim); cursor: pointer; }
.check input { margin-top: 3px; }
