/* The store: products and a basket beside them, plus the thank-you and terms pages. Builds on site.css. */
.shop-shell > * { min-width: 0; }
.shop-hero { margin: 28px 0 4px; }
.shop-hero small { color: #c6a9e9; font-size: 12px; font-weight: 750; letter-spacing: .12em; }
.shop-hero h1 { margin: 10px 0 12px; font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1.05; letter-spacing: -.045em; }
.shop-hero p { max-width: 640px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.shop-muted { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.shop-notice { padding: 14px 18px; border: 1px solid #3f6b55; border-radius: 12px; background: #16261f; color: #c2f0d7; font-size: 15px; }

.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.shop-products { display: grid; gap: 40px; min-width: 0; }
.shop-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-tabs a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.shop-tabs a:hover { border-color: #6b4d88; background: var(--surface-raised); }
.shop-section { display: grid; gap: 18px; scroll-margin-top: 20px; }
.shop-section h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.shop-intro { max-width: 720px; margin: 0; color: #d8cce4; font-size: 16px; line-height: 1.7; }
.shop-intro code, .shop-muted code { padding: 1px 6px; border-radius: 6px; background: #ffffff14; color: #e7d6fb; font-size: .92em; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #3a2a4f; color: #e4c9fc; font-size: 12px; font-weight: 750; }
.badge-quiet { background: #ffffff0f; color: var(--quiet); }
.price { color: #f4eaff; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.add { padding: 11px 18px; border: 0; border-radius: 10px; background: var(--purple); color: #1c1128; font-size: 14px; font-weight: 800; }
.add:hover:not(:disabled) { background: #d2b2fa; }
.add:disabled { background: #3a3046; color: #9d93ab; }

.rank-card { display: grid; gap: 16px; padding: clamp(20px, 3vw, 30px); border: 1px solid #614477; border-radius: 16px; background: linear-gradient(135deg, #281b35, #17121f 70%); }
.rank-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.rank-head h3 { margin: 8px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.rank-card .blurb { margin: 0; color: #e0d3ec; font-size: 16px; }
.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.perks li { position: relative; padding-left: 22px; color: #ded1e9; font-size: 15px; line-height: 1.5; }
.perks li::before { content: "✓"; position: absolute; left: 0; color: var(--purple2); font-weight: 800; }
.rank-card .add { justify-self: start; }

.pack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pack-card { display: grid; align-content: start; justify-items: start; gap: 10px; padding: 18px; border: 1px solid #4b3760; border-radius: 14px; background: #1c1526; }
.pack-amount { display: grid; gap: 2px; }
.pack-amount strong { font-size: 30px; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pack-amount span { color: var(--muted); font-size: 13px; }
.pack-card .blurb { margin: 0; color: #cfc2dc; font-size: 14px; line-height: 1.5; }
.pack-row { display: flex; align-items: center; gap: 10px; width: 100%; }
.pack-row .add { flex: 1; }
.in-basket { margin: 0; color: #c2f0d7; font-size: 13px; font-weight: 700; }

.stepper { display: inline-flex; align-items: center; border: 1px solid #4b3760; border-radius: 10px; background: #140f1c; }
.stepper button { width: 36px; height: 38px; border: 0; background: transparent; color: var(--ink); font-size: 18px; font-weight: 700; }
.stepper button:hover:not(:disabled) { color: var(--purple2); }
.stepper button:disabled { color: #5d546a; }
.stepper span { min-width: 26px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

.token-prices { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.token-prices h3 { margin: 0; font-size: 17px; }
.token-prices ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.token-prices li { display: flex; align-items: baseline; gap: 12px; color: #ded1e9; font-size: 15px; }
.token-prices li span { flex: 0 0 44px; color: var(--purple2); font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }

.shop-faq details { padding: 14px 0; border-top: 1px solid var(--line); }
.shop-faq summary { color: #efe4fb; font-weight: 700; cursor: pointer; }
.shop-faq details p { margin: 10px 0 0; color: #cebedc; line-height: 1.75; }
.shop-faq a, .basket a, .terms a, .thanks a { color: var(--purple2); }

.basket { position: sticky; top: 20px; display: grid; gap: 14px; padding: 22px; border: 1px solid #614477; border-radius: 16px; background: #1a1324; scroll-margin-top: 20px; }
.basket h2 { margin: 0; font-size: 22px; font-weight: 800; }
.basket-lines { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.basket-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.line-name { display: grid; gap: 2px; min-width: 0; }
.line-name strong { font-size: 15px; overflow-wrap: anywhere; }
.line-name span { color: var(--muted); font-size: 13px; }
.line-total { grid-column: 2; grid-row: 1; align-self: start; font-variant-numeric: tabular-nums; }
.line-controls { display: flex; align-items: center; gap: 10px; grid-column: 1 / -1; }
.remove { padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.remove:hover { color: var(--ink); }
.basket-total { display: flex; align-items: baseline; justify-content: space-between; font-size: 16px; }
.basket-total strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.basket-form { display: grid; gap: 10px; }
.basket-form > label:first-child { color: #d5c4e3; font-size: 13px; font-weight: 700; }
.basket-form input[type="text"], .basket-form input:not([type]) { min-height: 46px; padding: 0 14px; border: 1px solid #604476; border-radius: 10px; background: #120d19; color: var(--ink); font: inherit; }
.player-check { min-height: 1.2em; margin: 0; color: var(--muted); font-size: 13px; }
.player-check.good { color: #a8e6c3; }
.player-check.bad { color: #f2a7b3; }
.basket-hint { font-size: 13px; }
.tick { display: flex; align-items: flex-start; gap: 10px; color: #ded1e9; font-size: 14px; line-height: 1.5; cursor: pointer; }
.tick input { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--purple); }
#checkoutButton { min-height: 50px; margin-top: 4px; border: 0; border-radius: 12px; background: var(--purple); color: #1c1128; font-size: 16px; font-weight: 800; }
#checkoutButton:hover:not(:disabled) { background: #d2b2fa; }
#checkoutButton:disabled { background: #3a3046; color: #a39ab0; cursor: not-allowed; }
.basket-error { margin: 0; padding: 10px 12px; border: 1px solid #7a3a48; border-radius: 10px; background: #2a141a; color: #f6c3cc; font-size: 14px; }
.basket-stripe { font-size: 12px; }
.basket-note { margin-top: -6px; font-size: 13px; }
.shop-hero .shop-tax { margin-top: 8px; font-size: 14px; }
.manage { justify-self: start; padding: 12px 18px; border: 0; border-radius: 10px; background: var(--purple); color: #1c1128; font-size: 15px; font-weight: 800; }
.manage:hover:not(:disabled) { background: #d2b2fa; }

.basket-bar { display: none; }

/* Thank-you and terms pages */
.thanks, .terms { width: min(760px, 100%); margin: 28px auto 40px; display: grid; gap: 16px; }
.thanks-card { display: grid; gap: 14px; padding: clamp(22px, 4vw, 36px); border: 1px solid #614477; border-radius: 16px; background: linear-gradient(135deg, #281b35, #17121f 70%); }
.thanks-card h1 { margin: 0; font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -.03em; }
.thanks-card p { margin: 0; color: #ded1e9; font-size: 16px; line-height: 1.7; }
.thanks-items { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; color: #efe4fb; }
.thanks-meta { color: var(--muted); font-size: 14px; }
.terms h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -.03em; }
.terms h2 { margin: 18px 0 0; font-size: 20px; }
.terms p { margin: 0; color: #dcd0e8; font-size: 16px; line-height: 1.75; }

@media (max-width: 980px) {
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .basket { position: static; }
  .basket-bar:not([hidden]) { position: fixed; z-index: 20; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-radius: 14px; background: var(--purple); color: #1c1128; font-weight: 800; text-decoration: none; box-shadow: 0 10px 30px #0008; }
  .shop-shell { padding-bottom: 90px; }
  .basket-bar.away { display: none !important; }
}
@media (max-width: 650px) {
  .perks { grid-template-columns: minmax(0, 1fr); }
  .rank-head { flex-wrap: wrap; }
  .pack-card { padding: 14px; }
  .pack-amount strong { font-size: 24px; }
  .pack-row { flex-wrap: wrap; }
  .pack-row .add { flex-basis: 100%; }
}
@media (max-width: 360px) {
  .pack-grid { grid-template-columns: minmax(0, 1fr); }
}
