/* Base reset & typography (shared by storefront and ops screens) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { font-size: 16px; scroll-behavior: smooth; color-scheme: dark; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;   /* clip, unlike hidden, cannot be scrolled sideways by script or touch */
  font-feature-settings: 'tnum' 1, 'cv11' 1;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-pure);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p { color: var(--text-secondary); }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; font-size: inherit; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #2c2622; border-radius: 9999px; border: 2px solid var(--bg-primary); }
::-webkit-scrollbar-thumb:hover { background: #40362f; }

.text-crimson, .text-accent { color: var(--accent); }
.text-gold { color: var(--amber); }
.text-muted { color: var(--text-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 8px; }

/* Keyframes referenced by ops screens */
@keyframes pulseCrimsonGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,106,61,.35); } 50% { box-shadow: 0 0 0 8px rgba(255,106,61,0); } }
@keyframes pulseLive { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes floatSubtle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Market selector used by the ops screens */
.loc-select select { appearance: none; min-height: 36px; padding: .4rem 2rem .4rem .8rem; font: 500 .82rem var(--font-sans); color: var(--text-primary); background: var(--bg-card) linear-gradient(45deg, transparent 50%, var(--text-muted) 50%) calc(100% - 16px) 50% / 5px 5px no-repeat; border: 1px solid var(--border-strong); border-radius: var(--radius-full); max-width: 260px; }
.loc-select select:focus-visible { outline: 2px solid var(--accent); }
/* bump: deliver this one first */
.btn-bump { min-height: 40px; padding: .35rem .8rem; border-radius: 999px; border: 2px solid #f0b45c; background: transparent; color: #f0b45c; font: 800 .8rem system-ui, sans-serif; letter-spacing: .04em; cursor: pointer; transition: transform .12s ease, background-color .15s ease; }
.btn-bump:active { transform: scale(.94); }
.btn-bump.is-on { background: #f0b45c; color: #1a1210; }
.btn-bump.is-compact { min-height: 34px; padding: .2rem .6rem; font-size: .72rem; }
.bump-badge { display: inline-block; padding: .1rem .5rem; border-radius: 999px; background: #f0b45c; color: #1a1210; font-size: .68rem; font-weight: 800; letter-spacing: .05em; }
@media (prefers-reduced-motion: reduce) { .btn-bump { transition: none; } }
