/* Store page - extends the base design system 1:1 (same tokens, same shapes).
   All colour and type come from styles.css custom properties. */
.store-userbar {
  margin: 2.5rem 0 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  background: var(--charcoal-2);
  max-width: 34rem;
}
.store-userbar label {
  display: block;
  font-family: var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--ember);
  margin-bottom: 0.5rem;
}
.store-userbar input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--charcoal);
  border: 1px solid var(--line-strong);
  color: var(--bone);
  font: inherit;
}
.store-userbar input:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.store-hint { color: var(--muted); font-size: 0.85rem; margin: 0.5rem 0 0; }
.store-err { color: #e24b4a; min-height: 1.2rem; margin: 0.5rem 0 0; }
.store-loading { color: var(--muted); }
.store-card__price {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--ember);
  letter-spacing: 0.03em;
}
.store-card__buy { margin-top: 1rem; width: 100%; cursor: pointer; }
.store-sect {
  grid-column: 1 / -1;
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4rem;
  margin: 1rem 0 0;
}
.store-basket {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  padding: 0.9rem 1.5rem;
  background: var(--charcoal-3);
  border-top: 1px solid var(--line-strong);
  z-index: 20;
}
.store-basket span { color: var(--bone); }
.store-closed {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  background: var(--charcoal-2);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.steam-status { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ember); margin: 0 0 0.3rem; }
.steam-id code { font-size: 1.05rem; color: var(--bone); }
.steam-signout { background: none; border: none; color: var(--ember); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
.steam-login { display: inline-block; }
.manual-entry { margin-top: 1rem; }
.manual-entry summary { color: var(--muted); cursor: pointer; font-size: 0.9rem; }
.manual-entry[open] summary { margin-bottom: 0.6rem; }

/* Steam identity panel - Valve's own dark palette so the trust mark reads instantly */
.steam-panel {
  background: #171a21;
  border: 1px solid #2a475e;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
}
.steam-panel__head {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: #66c0f4;
}
.steam-panel__btn { display: inline-block; line-height: 0; transition: transform 0.12s ease, filter 0.12s ease; }
.steam-panel__btn:hover { transform: translateY(-1px); filter: brightness(1.15); }
.steam-panel__btn:focus-visible { outline: 2px solid #66c0f4; outline-offset: 3px; }
.steam-panel__hint { color: #8f98a0; font-size: 0.82rem; margin: 0; }
.steam-panel--in { border-color: #4c6b22; }
.steam-panel--in .steam-panel__head { color: #a4d007; }
.steam-check { color: #a4d007; margin-right: 0.3rem; }
.steam-panel__id { display: flex; align-items: baseline; gap: 0.6rem; }
.steam-panel__id span { color: #8f98a0; font-size: 0.85rem; }
.steam-panel__id code { color: #fff; font-size: 1.05rem; letter-spacing: 0.04em; }

/* === deadspace pass ============================================================ */
/* the basket bar must actually hide - author display:flex was beating the hidden attr */
.store-basket[hidden] { display: none !important; }

/* tighten the identity block and the run-up to the grid */
.store-userbar { margin: 2rem 0 0.5rem; }
.store-err { min-height: 0; margin: 0.25rem 0; }
.store-err:empty { display: none; }
.store-grid { margin-top: 0.75rem; }
.store-sect { margin: 0.5rem 0 0; }

/* the landing pages hero-scale card mark is wrong at store density - compact cards */
.store-grid .feature-card__mark { font-size: 2.2rem; line-height: 1; }
.store-grid .feature-card { padding: 1.4rem 1.5rem; gap: 0.5rem; display: flex; flex-direction: column; }
.store-grid .feature-card h3 { margin: 0; }
.store-grid .feature-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.store-grid .store-card__buy { margin-top: auto; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }

/* the grid lives OUTSIDE the two-column hero section - full width, clear of the sticky heading */
.store-grid-section { padding: 1rem 0 4rem; }
