/* The Vanira store, on top of site.css (the Chart Room look, copied here by sync.py; change the look there, not here).
   One page, three tabs (Sets, Ranks, Lumens). ONE gold button per screen: "Get Lumens" on Sets, "Buy" on the others. */

.store { padding: 44px 0 72px; }
.storehead { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 26px; }
.storehead h1 { font-size: clamp(28px, 3.6vw, 40px); }
.storehead .sub { margin-top: 0; }

/* the page's own tabs: larger than the gallery's, with the line under them */
.tabs.big { margin-bottom: 26px; }
.tabs.big button { font-size: 17px; padding: 14px 24px; }
.pane > .about { max-width: 80ch; }

/* ---------- Sets: the figure and what the set holds ---------- */
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.stage { position: relative; padding: 0; justify-items: stretch; }
.stage .view { position: relative; height: clamp(380px, 56vh, 540px); min-width: 0; }
.stage .still { position: absolute; inset: 22px 18px 6px; width: calc(100% - 36px); height: calc(100% - 28px); object-fit: contain; }
.stage .view.live .still { display: none; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; outline: 0; }
.stage canvas:active { cursor: grabbing; }
.stage canvas:focus-visible { outline: 2px solid var(--link); outline-offset: -4px; }
.wear { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; }
.wear button {
  font: 700 13.5px/1 var(--body); color: var(--muted); cursor: pointer; text-align: left;
  background: var(--raise); border: 0; border-radius: 5px; padding: 8px 10px 8px 26px; position: relative;
  outline: 1px solid var(--line); outline-offset: -1px;
}
.wear button::before { content: ""; position: absolute; left: 9px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-radius: 2px; outline: 1.5px solid var(--muted); outline-offset: -1.5px; }
.wear button[aria-pressed="true"] { color: var(--ink); }
.wear button[aria-pressed="true"]::before { background: var(--link); outline-color: var(--link); }
.stage figcaption { width: 100%; margin-top: 0; font-weight: 600; font-size: 14px; color: var(--muted); }

.info { display: flex; flex-direction: column; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.chip { font: 800 11.5px/1 var(--body); letter-spacing: .07em; text-transform: uppercase; background: var(--soft); color: var(--ink); padding: 6px 8px; border-radius: 3px; }
.info h2 { font-size: clamp(30px, 3.6vw, 42px); }
.info .line { color: var(--muted); font-size: 18px; margin-top: 8px; }
.pieces { list-style: none; margin: 18px 0 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.pieces li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 16px; border-top: 1px solid var(--line); }
.pieces li:first-child { border-top: 0; }
.pieces li > span:first-child { min-width: 0; }
.pieces b { display: block; font-weight: 700; }
.pieces small { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; }
.plate { display: inline-block; font-weight: 800; font-size: 12px; color: #fff; background: var(--link); border-radius: 3px; padding: 1px 6px; margin-right: 4px; }
.lum { display: inline-flex; align-items: center; gap: 6px; flex: none; font: 800 17px/1 var(--body); font-variant-numeric: tabular-nums; color: var(--ink); }
.lum img { width: 20px; height: 20px; }
.lum.big { font-size: 21px; }
.lum.big img { width: 24px; height: 24px; }
.info .row { align-items: center; margin-top: 20px; }
.where { color: var(--muted); font-weight: 600; font-size: 15.5px; }

.railhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 34px 0 12px; }
.railhead p { color: var(--muted); }
.rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.slot {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 10px; cursor: pointer; min-width: 0;
  font: inherit; color: var(--ink); background: var(--panel); border: 0; border-radius: 8px;
  outline: 1px solid var(--line); outline-offset: -1px; box-shadow: var(--shadow);
}
.slot:hover { outline-color: var(--link); }
.slot[aria-pressed="true"] { outline: 2.5px solid var(--link); outline-offset: -2.5px; background: var(--raise); }
.slot .thumb { height: 84px; display: grid; place-items: center; }
.slot .thumb img { height: 84px; width: auto; }
.slot .n { font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.slot .tier { font-size: 9.5px; padding: 4px 6px; }

.also { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.also .card { display: grid; grid-template-columns: 84px 1fr; column-gap: 16px; align-items: center; padding: 16px 18px; }
.also .card .art { width: 84px; height: 84px; margin: 0; grid-row: span 2; filter: none; }
.also .card h3 { margin: 0 0 2px; align-self: end; }
.also .card p { align-self: start; font-size: 15.5px; line-height: 1.45; }

/* ---------- Ranks and Lumens: cards you pick ---------- */
.picks { display: grid; gap: 18px; }
.picks.four { grid-template-columns: repeat(4, 1fr); }
.picks.five { grid-template-columns: repeat(5, 1fr); }
.pick {
  position: relative; display: flex; flex-direction: column; min-width: 0; cursor: pointer; padding: 20px 18px 20px;
  background: var(--panel); border-radius: 10px; outline: 1px solid var(--line); outline-offset: -1px; box-shadow: var(--shadow);
}
.pick:hover { outline-color: var(--link); }
.pick.on { background: var(--raise); outline: 2.5px solid var(--link); outline-offset: -2.5px; }
.pick input { position: absolute; right: 14px; top: 14px; width: 18px; height: 18px; margin: 0; accent-color: var(--link); cursor: pointer; }
.pick:has(input:focus-visible) { outline: 2.5px solid var(--ink); }
.pick .cost { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.pick .cost .num { font-size: 26px; line-height: 1.1; }
.pick .cost small { color: var(--muted); font-size: 14px; font-weight: 600; }
.rank h3 { font-size: 23px; padding-right: 26px; }
.rank .bdg { height: 21px; width: auto; align-self: flex-start; margin: 8px 0 14px; image-rendering: pixelated; }
.rank .incl { margin-top: 14px; font-weight: 700; font-size: 14.5px; color: var(--link); }
.perks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.rank .incl + .perks { margin-top: 6px; }
.perks li { padding-left: 18px; position: relative; }
.perks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--link); }
.pack { align-items: center; text-align: center; gap: 8px; padding-top: 24px; }
.pack .gem { width: 72px; height: 72px; filter: drop-shadow(0 3px 0 rgba(39, 13, 1, .14)); }
.pack .amount .num { display: block; font-size: 28px; line-height: 1.1; }
.pack .amount small { color: var(--muted); font-weight: 700; font-size: 14px; }
.pack .chip.none { visibility: hidden; }
.pack .cost .num { font-size: 20px; }

/* ---------- the till ---------- */
.till { display: grid; grid-template-columns: 1fr minmax(180px, 280px) auto; gap: 8px 22px; align-items: end; margin-top: 22px; padding: 18px 20px; }
.till .label { display: block; font: 800 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.till .item { font: 700 21px/1.2 var(--body); }
.till .item .num { color: var(--link); margin-left: 6px; }
.till input {
  width: 100%; font: 600 17px/1.2 var(--body); color: var(--ink); background: var(--raise);
  border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px;
}
.till input:focus { outline: 2px solid var(--link); outline-offset: -1px; }
.till input:disabled { background: var(--bg); color: var(--muted); }
.till .btn { min-width: 170px; }
.till .note { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
.till .note.bad { color: var(--red); font-weight: 700; }

footer .legal + .legal { margin-top: -6px; }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .storehead { grid-template-columns: 1fr; gap: 12px; }
  .picks.four { grid-template-columns: repeat(2, 1fr); }
  .picks.five { grid-template-columns: repeat(3, 1fr); }
  .also { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 820px) {
  .store { padding: 30px 0 56px; }
  .tabs.big { grid-template-columns: repeat(3, 1fr); }
  .tabs.big button { padding: 13px 6px; font-size: 16px; }
  .case { grid-template-columns: 1fr; gap: 20px; }
  .stage .view { height: clamp(320px, 48vh, 420px); }
  .till { grid-template-columns: 1fr; }
  .till .btn { width: 100%; }
}
@media (max-width: 560px) {
  .tabs.big { grid-template-columns: repeat(3, 1fr); }
  .picks.four { grid-template-columns: 1fr; }
  .picks.five { grid-template-columns: 1fr 1fr; }
  .rail { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .also .card { display: grid; }
}
