/* ---------------------------------------------------------
   Loadouts — storefront stylesheet
   Type: Instrument Serif / Instrument Sans / DM Mono
   Palette: warm paper, ink, one burnt orange accent
   --------------------------------------------------------- */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  font-stretch: 100%;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
  font-stretch: 100%;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f1e8;
  --paper-deep: #ebe5d8;
  --sand: #e7e0d1;
  --ink: #17150f;
  --ink-soft: #555146;
  --ink-muted: #726c5e;
  --rule: #d4ccbd;
  --rule-strong: #b9b09f;
  --rule-dark: rgba(244, 241, 232, 0.18);
  --accent: #b23712;
  --accent-bright: #cf4a20;
  --accent-on-dark: #e7835f;
  --discount: #1a7f37;
  --cream: #f4f1e8;
  --font-display: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --font-sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "DM Mono", "Courier New", monospace;
  --pad: clamp(20px, 4.2vw, 60px);
  --max: 1440px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

::selection { background: var(--accent); color: var(--paper); }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 400; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.135em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.eyebrow span { color: var(--ink); }
.section-head .eyebrow { margin-bottom: 20px; }

.fine-print {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-muted);
}
.fine-print .icon {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  color: var(--accent);
  stroke-width: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 1px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
.btn .icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--block { width: 100%; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.btn--danger {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn--danger:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--rule-strong);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.text-link .icon { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link:hover .icon { transform: translateX(3px); }
.text-link--light { color: var(--paper); border-color: var(--rule-dark); }
.text-link--light:hover { color: var(--accent-on-dark); border-color: var(--accent-on-dark); }

/* ---------- Utility + header ---------- */

.utility {
  background: var(--ink);
  color: #bcb4a4;
  border-bottom: 1px solid #2b2821;
}
.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 34px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
.utility-inner p { color: #bcb4a4; }
.utility-links {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}
.utility-links a {
  color: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.utility-links a:hover { border-color: var(--accent-on-dark); }
.currency-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--cream);
}
.currency-picker select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  line-height: inherit;
  padding: 0 12px 0 0;
  cursor: pointer;
}
.currency-picker select:hover,
.currency-picker select:focus-visible { border-bottom-color: var(--accent-on-dark); outline: none; }
.currency-picker::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
  transform: translateY(-20%);
  pointer-events: none;
}
.currency-picker option { color: var(--ink); background: var(--paper); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 60px);
  height: 76px;
}

.wordmark {
  flex: none;
  font-family: var(--font-display);
  font-size: 29px;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.wordmark span { color: var(--accent); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.25vw, 34px);
  margin-left: auto;
}
.primary-nav a {
  position: relative;
  padding: 5px 0;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.015em;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 26px);
  flex: none;
}
.header-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  border: 0;
  background: none;
  font-size: 12px;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.header-action .icon { width: 17px; height: 17px; }
.header-action:hover { color: var(--accent); }
.cart-count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease);
}
.cart-trigger.has-items .cart-count { color: var(--accent); }
.cart-trigger.is-bumped .cart-count { animation: count-bump 0.4s var(--ease); }
@keyframes count-bump {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-3px); }
}
.menu-trigger { display: none; }

/* ---------- Search ---------- */

.search-panel {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 62;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-strong);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-7px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s 0.25s;
}
.search-panel.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.search-form {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 0 20px;
  border-bottom: 1px solid var(--rule);
}
.search-form-icon { width: 23px; height: 23px; color: var(--ink-muted); stroke-width: 1.2; }
.search-form input {
  flex: 1;
  min-width: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.search-form input::placeholder { color: #a39b8c; opacity: 1; }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-form input:focus { outline: none; }
.search-form:focus-within .search-form-icon { color: var(--ink); }
.search-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  border-radius: 1px;
  background: transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.search-close:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.search-body { padding: 24px 0 34px; }
.search-label {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.search-suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.suggestion {
  padding: 11px 15px;
  border: 1px solid var(--rule);
  border-radius: 1px;
  background: transparent;
  font-size: 12px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.suggestion:hover { background: var(--paper-deep); border-color: var(--rule-strong); }
.search-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  max-height: min(54vh, 430px);
  overflow-y: auto;
}
.search-result {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  text-align: left;
}
.search-result:hover .search-result-title { color: var(--accent); }
.search-thumb {
  width: 38px;
  height: 52px;
  overflow: hidden;
  background: var(--sand);
}
.search-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--rule-strong);
  font-family: var(--font-display);
  font-size: 19px;
}
.search-result-title {
  display: block;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.search-result-meta {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.search-result-price { font-family: var(--font-mono); font-size: 11px; }
.search-empty {
  grid-column: 1 / -1;
  padding: 8px 0 4px;
  color: var(--ink-soft);
  font-size: 14px;
}
.search-empty strong { font-weight: 500; color: var(--ink); }

/* ---------- Hero ---------- */

.hero { padding: clamp(34px, 4vw, 52px) 0 clamp(44px, 4.6vw, 60px); }
.hero-topline {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.hero-topline .eyebrow { color: var(--ink-muted); }
.hero h1 {
  max-width: 1280px;
  margin-top: clamp(24px, 2.8vw, 34px);
  font-family: var(--font-display);
  font-size: clamp(58px, 7.8vw, 112px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(38px, 6vw, 96px);
  margin-top: clamp(28px, 3vw, 40px);
  align-items: stretch;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 430px;
}
.hero-lede {
  max-width: 40ch;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.62;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 30px;
  margin-bottom: 28px;
}
.hero-note {
  width: 100%;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.65;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-feature { border-top: 1px solid var(--ink); padding-top: 12px; }
.feature-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.feature-cover {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--sand);
  overflow: hidden;
}
.feature-cover img {
  width: 100%;
  aspect-ratio: 2.6 / 1;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.feature-mark {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 2.6 / 1;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 120px);
  line-height: 1;
}
.feature-cover:hover img { transform: scale(1.014); }
.feature-info {
  display: grid;
  grid-template-columns: minmax(150px, 0.82fr) minmax(0, 1.18fr) auto;
  gap: clamp(18px, 2.4vw, 32px);
  align-items: end;
  padding-top: 18px;
}
.feature-ident .eyebrow { margin-bottom: 8px; font-size: 8.5px; }
.feature-ident h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 0.94;
  letter-spacing: -0.035em;
}
.feature-ident h2 button { padding: 0; border: 0; background: none; text-align: left; }
.feature-ident h2 button:hover { color: var(--accent); }
.feature-desc {
  max-width: 34ch;
  padding-bottom: 2px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
  white-space: pre-line;
}
.feature-buy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 11px;
}
.feature-price {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 9px;
  padding: 0;
}
.price-now { font-family: var(--font-mono); font-size: 15px; letter-spacing: -0.02em; }
.price-was {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.feature-buy .btn {
  min-height: 43px;
  padding-inline: 18px;
  font-size: 11px;
  white-space: nowrap;
}
.feature-delivery {
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid var(--rule);
}

/* ---------- Page hero (shop) ---------- */

.page-hero { padding: clamp(38px, 4vw, 56px) 0 clamp(38px, 4.4vw, 56px); }
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(34px, 5vw, 84px);
  align-items: end;
  margin-top: clamp(24px, 2.8vw, 36px);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 7.4vw, 104px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
.page-hero-copy {
  max-width: 42ch;
  padding-bottom: 5px;
}
.page-hero-copy > p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.62;
  text-wrap: pretty;
}
.page-hero-copy .fine-print { margin-top: 15px; }

/* ---------- 404 ---------- */

body[data-page="error"] {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body[data-page="error"] main { flex: 1; }

.not-found-feature {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
}
.not-found-code {
  margin: clamp(28px, 4vw, 48px) 0;
  font-family: var(--font-display);
  font-size: clamp(112px, 16vw, 232px);
  line-height: 0.72;
  letter-spacing: -0.075em;
}
.not-found-feature .fine-print {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.hero-note a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hero-note a:hover { color: var(--accent); border-color: var(--accent); }
.footer.footer--compact { padding-top: 0; }
.footer.footer--compact .footer-bottom { padding-top: 24px; }

/* ---------- Account ---------- */

.account-head {
  padding-bottom: clamp(28px, 3.4vw, 42px);
  border-bottom: 1px solid var(--rule);
}
.account-shop-link { display: none; }
@media (max-width: 980px) {
  .account-shop-link { display: inline-flex; }
}
.account-head .eyebrow { margin-bottom: 18px; }
.account-title {
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(46px, 5.8vw, 82px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.account-intro {
  max-width: 54ch;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.65;
  text-wrap: pretty;
}
.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 104px);
  margin-top: clamp(38px, 4.6vw, 60px);
  align-items: start;
}
.account-aside { border-top: 1px solid var(--ink); }
.account-point {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--rule);
}
.account-point .point-num { padding-top: 4px; }
.account-point h2 {
  font-family: var(--font-display);
  font-size: clamp(23px, 2vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.account-point p {
  max-width: 42ch;
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}
.account-panel { border-top: 1px solid var(--ink); padding-top: 14px; }
.auth-tabs,
.admin-tabs {
  display: flex;
  gap: clamp(22px, 3vw, 38px);
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(24px, 3vw, 32px);
}
.auth-tab,
.admin-tab {
  position: relative;
  padding: 12px 0;
  border: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease);
}
.auth-tab::after,
.admin-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.auth-tab:hover,
.auth-tab[aria-selected="true"],
.admin-tab:hover,
.admin-tab[aria-selected="true"] { color: var(--ink); }
.auth-tab[aria-selected="true"]::after,
.admin-tab[aria-selected="true"]::after { transform: scaleX(1); }
.auth-form {
  display: grid;
  gap: 19px;
  max-width: 470px;
}
.field { display: grid; gap: 6px; }
.field-label { display: inline-flex; align-items: center; gap: 6px; }
.image-url-status {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  color: var(--ink-muted);
}
.image-url-status.is-valid { color: #1a7f37; }
.image-url-status.is-invalid { color: #b42318; }
.image-url-status.is-checking { color: var(--ink-muted); }
.field label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.field-optional {
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}
.field input {
  width: 100%;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  transition: border-color 0.2s var(--ease);
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea {
  width: 100%;
  min-height: 70px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
}
.field textarea:focus { outline: none; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--accent); }
.field-hint {
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  min-height: 1.55em;
}
.field-hint.is-error { color: var(--accent); }
.field-hint.is-success { color: var(--ink); }
.auth-message {
  min-height: 1.6em;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.auth-message.is-error { color: var(--accent); }
.auth-message.is-success { color: var(--ink); }
.auth-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 2px;
}
.auth-switch {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  font-size: 11.5px;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.auth-switch:hover { color: var(--ink); border-color: var(--ink); }
.account-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}
.account-summary .eyebrow { margin-bottom: 12px; }
.account-name {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.account-email {
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}
.account-badge-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  flex: none;
}
.account-badge {
  padding: 5px 7px;
  border: 1px solid var(--rule-strong);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.account-badge.is-admin { border-color: var(--accent); color: var(--accent); }
.account-badge--verified { border-color: var(--accent); color: var(--accent); }
.account-member {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: right;
}
.auth-note,
.auth-legal {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.auth-legal { margin: 2px 0 12px; }
.auth-legal a { text-decoration: underline; text-underline-offset: 2px; }
.account-notice {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--accent);
  background: var(--paper-deep);
}
.account-notice .eyebrow { margin-bottom: 8px; }
.account-notice h3 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.account-notice p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.verify-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}
.verify-form .field { margin: 0; }
#reset-code,
#verify-code,
#email-change-code {
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
}
.account-notice .account-actions,
.account-settings .account-actions { margin-top: 12px; }
.account-settings {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.account-settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.account-settings-head .eyebrow { margin-bottom: 8px; }
.account-settings-head h3 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.account-settings-email {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink);
}
.account-settings-form {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--rule);
  background: var(--paper-deep);
}
.account-settings-form .field { margin-bottom: 12px; }
.checkout-verify-note { color: var(--accent); }
.legal-layout { max-width: 880px; }
.legal-content {
  margin-top: clamp(30px, 4vw, 50px);
  border-top: 1px solid var(--ink);
}
.legal-content section {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.legal-content h3 {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 22px 0 8px;
}
.legal-content p,
.legal-content li {
  max-width: 72ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.legal-content p + p { margin-top: 10px; }
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.account-orders { margin-top: clamp(28px, 3.4vw, 40px); }
.account-orders-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.account-orders-head .eyebrow { margin-bottom: 9px; }
.account-orders-head h3 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.025em;
}
.orders-list { border-top: 1px solid var(--rule); }
.order {
  padding: 15px 0 16px;
  border-bottom: 1px solid var(--rule);
}
.order-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.order-number {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.order-status {
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--rule);
  padding: 4px 6px;
}
.order-status.is-pending { color: var(--accent); border-color: var(--accent); }
.order-status.is-paid,
.order-status.is-completed { color: var(--ink); border-color: var(--rule-strong); }
.order-meta {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.5;
  color: var(--ink-muted);
}
.order-items {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.order.is-clickable { cursor: pointer; }
.order.is-clickable:hover { background: rgba(235, 229, 216, 0.5); }
.order-view-button {
  margin-top: 9px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.order-view-button:hover { color: var(--ink); }
.orders-more { margin-top: 16px; }
body.order-dialog-open { overflow: hidden; }
.order-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}
.order-dialog::backdrop { background: rgba(18, 16, 11, 0.58); }
.order-dialog[open] { animation: dialog-in 0.28s var(--ease) both; }
.order-dialog-inner {
  position: relative;
  max-height: calc(100dvh - 34px);
  overflow-y: auto;
  padding: clamp(24px, 4vw, 38px);
}
.order-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.order-dialog-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.order-dialog-title {
  max-width: 16ch;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.order-dialog-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.order-dialog-items { margin-top: 26px; border-top: 1px solid var(--ink); }
.order-dialog-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.order-dialog-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.order-dialog-item-head h3 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.order-dialog-item-head span {
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}
.order-dialog-item-meta {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.order-dialog-delivery {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  background: var(--paper-deep);
}
.order-dialog-delivery .eyebrow { margin-bottom: 6px; }
.order-dialog-totals {
  margin-top: 22px;
  border-top: 1px solid var(--ink);
}
.order-dialog-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.order-dialog-totals dt { font-family: var(--font-mono); font-size: 8.5px; text-transform: uppercase; color: var(--ink-muted); }
.order-dialog-totals dd { margin: 0; font-size: 13px; }
.order-dialog-totals > div:last-child dt,
.order-dialog-totals > div:last-child dd { font-weight: 600; color: var(--ink); }
.order-dialog-actions { display: flex; justify-content: flex-end; margin-top: 22px; }
.order-delivery { margin-top: 10px; }
.order-delivery-summary {
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.order-delivery-item {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  background: var(--paper-deep);
}
.order-delivery-title {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.order-delivery-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
}
.order-delivery-label {
  min-width: 110px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.order-delivery-line code {
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
}
.orders-empty {
  padding: 22px 0 26px;
  border-bottom: 1px solid var(--rule);
}
.orders-empty .eyebrow { margin-bottom: 10px; }
.orders-empty h4 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.orders-empty p:last-child {
  max-width: 42ch;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.account-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

/* ---------- Admin ---------- */

.admin-page .account-head { padding-bottom: 28px; }
.admin-tabs { border-bottom: 2px solid var(--ink); }
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}
.admin-toolbar p {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.admin-toolbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-create {
  margin-bottom: 28px;
  padding: clamp(20px, 3vw, 30px);
  border: 2px solid var(--ink);
  background: var(--paper-deep);
}
.admin-create-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}
.admin-create-head .eyebrow { margin-bottom: 9px; }
.admin-create-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.admin-create-form { max-width: 100%; }
.admin-message {
  min-height: 1.6em;
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.admin-message.is-error { color: var(--accent); }
.admin-message.is-success { color: var(--ink); }
.admin-panel { margin-top: 24px; }
.admin-product {
  margin-top: 22px;
  padding: 0 20px 24px;
  border: 2px solid var(--ink);
  background: var(--paper-deep);
}
.admin-product:first-child { border-top-color: var(--ink); }
.admin-product-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0 -20px 20px;
  padding: 16px 20px;
  background: var(--ink);
  color: var(--paper);
}
.admin-product-head .eyebrow { color: var(--accent-on-dark); }
.admin-product-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--paper);
}
.admin-product-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #d8d1c2;
}
.admin-type-badge {
  padding: 4px 6px;
  border: 1px solid rgba(244, 241, 232, 0.45);
  color: var(--paper);
}
.admin-product-form .admin-fields {
  padding: 16px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
}
.admin-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 18px;
}
.admin-field--wide { grid-column: 1 / -1; }
.admin-field textarea {
  width: 100%;
  min-height: 78px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
}
.admin-field textarea:focus { outline: none; border-color: var(--accent); }
.admin-check {
  display: flex;
  align-items: center;
  gap: 9px;
  align-self: end;
  min-height: 38px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.admin-check input { accent-color: var(--accent); }
.admin-product-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}
.admin-variants {
  margin-top: 24px;
  border: 2px solid var(--ink);
  background: var(--paper);
}
.admin-variants-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-variants-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-variants-head .btn--ghost {
  border-color: rgba(244, 241, 232, 0.4);
  color: var(--paper);
}
.admin-variants-head .btn--ghost:hover {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}
.admin-variant {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(110px, 0.7fr) auto;
  align-items: end;
  gap: 12px 16px;
  padding: 16px 14px;
  border-top: 2px solid var(--ink);
  background: var(--paper);
}
.admin-variants > .admin-variant:not(.admin-variant--new):nth-of-type(even) {
  background: var(--paper-deep);
}
.admin-variant--new {
  display: block;
  padding: 18px 14px;
  background: var(--sand);
  border-top: 2px solid var(--ink);
}
.admin-variant--new[hidden] { display: none; }
.admin-variant--new .admin-variant-sku { margin-bottom: 12px; }
.admin-variant-new-fields { grid-column: auto; }
.admin-variant-new-actions { margin-top: 14px; }
.admin-variant .field { gap: 4px; }
.admin-variant .field input,
.admin-variant .field select { font-size: 13px; padding: 8px 0; }
.admin-variant-sku {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.admin-variant-actions { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.admin-variant-topup {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin-top: 2px;
  padding-top: 13px;
  border-top: 1px solid var(--rule);
}
.admin-variant-instructions { grid-column: 1 / -1; }
.admin-stock {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 2px solid var(--ink);
  background: var(--sand);
}
.admin-stock-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-strong);
}
.admin-stock-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.admin-stock-value {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.admin-stock-value.is-low,
.admin-stock-value.is-out { color: var(--accent); }
.admin-stock-editor {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.admin-stock-field { min-width: 124px; max-width: 180px; gap: 4px; }
.admin-stock-field input {
  width: 100%;
  padding: 9px 0;
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.admin-stock-quick {
  display: flex;
  align-items: end;
  gap: 6px;
  padding-bottom: 1px;
}
.admin-stock-quick-label {
  align-self: center;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.admin-stock-quick button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--rule-strong);
  background: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
}
.admin-stock-quick button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.admin-stock-quick button:disabled { opacity: 0.45; cursor: not-allowed; background: none; color: var(--ink); }
.admin-stock-note {
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.admin-stock-content {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding-top: 13px;
  border-top: 2px solid var(--ink);
}
.admin-stock-content-title {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.admin-stock-account-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
.admin-stock-codes textarea { min-height: 64px; }
.admin-stock-content-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-stock-content-count {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
}
.admin-stock-items {
  display: grid;
  gap: 6px;
}
.admin-stock-items[hidden] { display: none; }
.admin-stock-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
}
.admin-stock-item.is-sold { opacity: 0.65; }
.admin-stock-item-main { min-width: 0; }
.admin-stock-item-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.admin-stock-item-content code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
}
.admin-stock-item-meta {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.admin-stock-empty {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--ink-muted);
}
.text-button {
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.text-button:hover { color: var(--ink); }
.text-button--danger { color: var(--accent); }
.text-button:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--small {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 10px;
  gap: 8px;
}
.field select {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
  font-size: 14px;
}
.field select:focus { outline: none; border-color: var(--accent); }
.admin-user {
  margin-top: 16px;
  padding: 0 18px 18px;
  border: 2px solid var(--ink);
  background: var(--paper-deep);
}
.admin-user-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 -18px 16px;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--paper);
}
.admin-user-head .eyebrow { color: var(--accent-on-dark); }
.admin-user-head h2 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.admin-user-meta {
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #d8d1c2;
  text-align: right;
}
.admin-user-fields {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(130px, 0.6fr) auto;
  align-items: end;
  gap: 14px 18px;
}
.admin-user-note {
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.5;
  color: var(--ink-muted);
}
.admin-user-actions { margin-top: 12px; }
.admin-empty {
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 14px;
}
.admin-denied {
  max-width: 560px;
  margin-top: 30px;
  padding: 26px;
  border: 1px solid var(--rule-strong);
  background: var(--paper-deep);
}
.admin-denied h2 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.admin-denied p { margin-top: 10px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.65; }
.admin-denied .btn { margin-top: 20px; }

/* ---------- Checkout ---------- */

.checkout-loading {
  margin-top: 30px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
  margin-top: clamp(34px, 4vw, 52px);
}
.checkout-main { display: grid; gap: 0; }
.checkout-block {
  padding: 18px 0 26px;
  border-top: 1px solid var(--rule);
}
.checkout-block:first-child { border-top-color: var(--ink); }
.checkout-block .eyebrow { margin-bottom: 12px; }
.checkout-block h2,
.checkout-email {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.checkout-note {
  max-width: 48ch;
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.checkout-form {
  margin-top: 20px;
}
.checkout-form iframe {
  display: block;
  width: 100%;
  border: 0;
}
.checkout-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
}
.checkout-actions .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.checkout-success {
  max-width: 720px;
  margin-top: clamp(34px, 4vw, 52px);
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--ink);
  background: var(--paper-deep);
}
.checkout-success .eyebrow { margin-bottom: 14px; }
.checkout-success h2 { font-size: clamp(42px, 5.4vw, 68px); }
.checkout-success .checkout-note { max-width: 52ch; }
.checkout-facts {
  margin-top: 24px;
  border-top: 1px solid var(--rule);
}
.checkout-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.checkout-facts dt {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.checkout-facts dd { margin: 0; font-size: 13px; text-align: right; overflow-wrap: anywhere; }
.checkout-success-content {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}
.checkout-success-content > .eyebrow { margin-bottom: 4px; }
.checkout-content-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.checkout-content-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.checkout-content-head h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.checkout-content-head span {
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}
.checkout-content-meta {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.checkout-content-delivery {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.checkout-content-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
}
.checkout-content-line:first-child { margin-top: 0; }
.checkout-content-label {
  min-width: 110px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.checkout-content-line code {
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
}
.checkout-content-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-muted);
}
.checkout-success .checkout-actions { margin-top: 26px; }
.checkout-summary {
  position: sticky;
  top: 100px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
}
.checkout-summary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
}
.checkout-summary-head .text-link { font-size: 10px; }
.checkout-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}
.checkout-line-title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.checkout-line-meta {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.checkout-line-price {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
}
.checkout-empty {
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-soft);
}
.checkout-empty a { border-bottom: 1px solid var(--rule-strong); }
.checkout-totals { padding-top: 16px; }
.checkout-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.checkout-total-row--final {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-strong);
}
.checkout-total-row--final span:last-child {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: none;
}

/* ---------- Category rail ---------- */

.category-rail { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.rail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rail-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 138px;
  padding: 22px clamp(16px, 2vw, 28px) 24px;
  border-left: 1px solid var(--rule);
  transition: background 0.25s var(--ease);
}
.rail-item:first-child { border-left: 0; padding-left: 0; }
.rail-item:last-child { padding-right: 0; }
.rail-item:hover { background: var(--paper-deep); }
.rail-item:first-child:hover { box-shadow: -20px 0 0 var(--paper-deep); }
.rail-index {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.rail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  font-family: var(--font-display);
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.rail-title .icon {
  width: 16px;
  height: 16px;
  color: var(--ink-muted);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.rail-item:hover .rail-title .icon { transform: translateX(4px); color: var(--accent); }
.rail-note {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Section scaffolding ---------- */

.section { padding-block: clamp(72px, 8.5vw, 122px); }
.section[id] { scroll-margin-top: 92px; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(38px, 4.5vw, 56px);
}
.section-head h2 {
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.1vw, 72px);
  line-height: 0.97;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.section-intro {
  justify-self: end;
  max-width: 42ch;
  padding-bottom: 4px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ---------- Shelf ---------- */

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(28px, 3vw, 38px);
}
.filters {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  position: relative;
  flex: none;
  padding: 15px 0;
  border: 0;
  background: none;
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease);
}
.filter sup {
  position: relative;
  top: -0.45em;
  margin-left: 3px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0;
  color: var(--ink-muted);
}
.filter::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--ink); }
.filter[aria-pressed="true"]::after { transform: scaleX(1); }
.filter-tools {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 26px);
  flex: none;
}
.result-count {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  white-space: nowrap;
}
.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.sort-control select {
  appearance: none;
  padding: 12px 18px 12px 0;
  border: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}
.sort-control select:focus-visible { outline-offset: 2px; }
.sort-control .icon {
  width: 11px;
  height: 11px;
  margin-left: -20px;
  color: var(--ink-muted);
  pointer-events: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(34px, 4vw, 52px) clamp(16px, 2vw, 26px);
}
.catalogue-empty {
  grid-column: 1 / -1;
  padding: 30px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.product-grid--featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card { min-width: 0; }
.product-art {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--paper-deep);
}
.product-view {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.product-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.product-mark {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 128px);
  line-height: 1;
}
.product-art:hover .product-view img { transform: scale(1.022); }
.product-view:focus-visible { outline-offset: -4px; }
.quick-add {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 1px;
  background: var(--paper);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(calc(100% + 12px));
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.quick-add .icon { width: 13px; height: 13px; }
.product-art:hover .quick-add,
.quick-add:focus-visible {
  opacity: 1;
  transform: none;
}
.quick-add:hover { background: var(--ink); color: var(--paper); }

.product-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.5;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.product-save { color: var(--discount); white-space: nowrap; }
.product-stock { color: var(--accent); white-space: nowrap; font-weight: 500; }
.product-stock.is-out { letter-spacing: 0.08em; }
.quick-add:disabled,
.gift-add:disabled,
.topup-add:disabled,
.value-chip:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.quick-add:disabled { transform: none; background: var(--paper); color: var(--ink-muted); }
.product-title {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.9vw, 25px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.022em;
}
.product-title button {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  transition: color 0.2s var(--ease);
}
.product-title button:hover { color: var(--accent); }
.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.4;
}
.product-price s { color: var(--ink-muted); font-size: 9.5px; text-decoration-thickness: 1px; }
.product-variant {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.product-variant > span,
.quick-variant > span {
  flex: none;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.variant-select {
  min-height: 32px;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.variant-select:focus {
  outline: none;
  border-color: var(--accent);
}
.quick-variant {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.quick-variant .variant-select { min-height: 36px; font-size: 10px; }
.noscript-note { padding: 24px; border: 1px solid var(--rule); font-size: 14px; }

.shelf-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(38px, 4.5vw, 54px);
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.shelf-foot .btn { flex: none; }

/* ---------- Shop catalogue ---------- */

.shop-catalog { padding-bottom: clamp(74px, 8.5vw, 124px); scroll-margin-top: 92px; }
.category-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(38px, 4.6vw, 58px);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.category-filters {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  overflow-x: auto;
  scrollbar-width: none;
}
.category-filters::-webkit-scrollbar { display: none; }
.category-filter {
  position: relative;
  flex: none;
  padding: 18px 0;
  border: 0;
  background: none;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1;
  letter-spacing: -0.022em;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease);
}
.category-filter sup {
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0;
  color: var(--ink-muted);
  vertical-align: super;
}
.category-filter::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.category-filter:hover,
.category-filter[aria-pressed="true"] { color: var(--ink); }
.category-filter[aria-pressed="true"]::after { transform: scaleX(1); }
.category-filter[aria-pressed="true"] sup { color: var(--accent); }
.category-note {
  flex: none;
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.5;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.category-panel { scroll-margin-top: 100px; }
.category-panel + .category-panel {
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: clamp(52px, 6vw, 82px);
  border-top: 1px solid var(--rule);
}
.panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(26px, 3vw, 38px);
}
.panel-head .eyebrow { margin-bottom: 14px; }
.panel-head h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.panel-intro {
  justify-self: end;
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.6;
  text-wrap: pretty;
}
.panel-foot { margin-top: 18px; }

/* ---------- Manifesto ---------- */

.manifesto {
  padding-block: clamp(72px, 8.5vw, 118px);
  background: var(--ink);
  color: var(--paper);
}
.manifesto .eyebrow { color: #918a7b; }
.manifesto .eyebrow span { color: var(--paper); }
.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 118px);
  margin-top: 28px;
}
.manifesto h2 {
  max-width: 9ch;
  font-family: var(--font-display);
  font-size: clamp(44px, 5.8vw, 82px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.manifesto-points { border-bottom: 1px solid var(--rule-dark); }
.manifesto-point {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0 24px;
  border-top: 1px solid var(--rule-dark);
}
.point-num {
  padding-top: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: #918a7b;
}
.manifesto-point h3 {
  font-family: var(--font-display);
  font-size: clamp(23px, 2vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.manifesto-point p {
  max-width: 46ch;
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #b9b2a4;
  text-wrap: pretty;
}
.manifesto-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 78px);
  border-top: 1px solid var(--rule-dark);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 28px 0 0;
  border-right: 1px solid var(--rule-dark);
}
.stat + .stat { padding-left: 28px; }
.stat:last-child { border-right: 0; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: #918a7b;
}

/* ---------- Top-ups ---------- */

.topups { background: var(--sand); }
.topups .section-head { margin-bottom: clamp(30px, 3.5vw, 44px); }
.topup-board { border-top: 1px solid var(--rule-strong); }
.topup-head,
.topup-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.15fr) minmax(280px, 1.5fr) 92px 96px;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}
.topup-head {
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.topup-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule-strong);
}
.topup-game { display: flex; align-items: center; gap: 15px; min-width: 0; }
.topup-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule-strong);
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1;
}
.topup-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.topup-game h3 {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topup-game p {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.topup-mark-button {
  padding: 0;
  background: none;
  cursor: pointer;
}
.topup-mark-button:hover { border-color: var(--ink); }
.topup-title-button,
.gift-title-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.topup-title-button:hover,
.gift-title-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inline-view-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.inline-view-button:hover { color: var(--ink); }
.topup-amounts { display: flex; flex-wrap: wrap; gap: 7px; }
.amount-chip {
  min-width: 56px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--rule-strong);
  border-radius: 1px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.amount-chip:hover { border-color: var(--ink); color: var(--ink); }
.amount-chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.amount-chip:disabled,
.amount-chip.is-out-of-stock {
  opacity: 0.42;
  border-color: var(--rule);
  background: transparent;
  color: var(--ink-muted);
  cursor: not-allowed;
  text-decoration: line-through;
}
.amount-chip:disabled:hover,
.amount-chip.is-out-of-stock:hover {
  border-color: var(--rule);
  color: var(--ink-muted);
}
.topup-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
}
.topup-rate {
  font-size: 8px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  white-space: nowrap;
}
.topup-discount {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--discount);
  white-space: nowrap;
}
.topup-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  justify-self: end;
  min-width: 88px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  border-radius: 1px;
  background: transparent;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.topup-add .icon { width: 12px; height: 12px; }
.topup-add:hover { background: var(--ink); color: var(--paper); }
.fine-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.55;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
}
.fine-line .icon { width: 12px; height: 12px; margin-top: 1px; color: var(--ink); stroke-width: 1.8; }

/* ---------- Gift cards ---------- */

.gift-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.gift-card { min-width: 0; }
.gift-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1.55;
  overflow: hidden;
  padding: 17px;
  color: #f5f0e5;
}
.gift-view-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.gift-view-overlay:hover {
  box-shadow: inset 0 0 0 2px rgba(245, 240, 229, 0.32);
}
.gift-view-overlay:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: -4px;
}
.gift-art::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -38px;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(245, 240, 229, 0.18);
  border-radius: 50%;
}
.gc--steam { background: #17222c; }
.gc--playstation { background: #173550; }
.gc--xbox { background: #143922; }
.gc--nintendo { background: #671d1a; }
.gift-art-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.gift-brand-lockup {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.gift-logo {
  flex: none;
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.gift-brand {
  max-width: 70%;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
.gift-brand-lockup .gift-brand { max-width: none; }
.gc--xbox .gift-brand { text-transform: lowercase; font-size: 15px; letter-spacing: 0; }
.gc--playstation .gift-brand { text-transform: none; font-size: 12px; font-weight: 500; letter-spacing: 0.01em; }
.gc--nintendo .gift-brand { text-transform: none; letter-spacing: 0.02em; }
.gift-art-label {
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: rgba(245, 240, 229, 0.64);
  text-align: right;
  white-space: nowrap;
}
.gift-art-value {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.gift-art-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.gift-barcode {
  width: 74px;
  height: 19px;
  opacity: 0.65;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(245, 240, 229, 0.95) 0 1px,
    transparent 1px 3px,
    rgba(245, 240, 229, 0.95) 3px 5px,
    transparent 5px 8px
  );
}
.gift-art-bottom span {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.07em;
  color: rgba(245, 240, 229, 0.64);
  white-space: nowrap;
}
.gift-info { padding-top: 13px; }
.gift-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gift-title-row h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.gift-region {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}
.gift-note {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
}
.gift-values { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.value-chip {
  min-width: 41px;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid var(--rule);
  border-radius: 1px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.value-chip:hover { border-color: var(--ink); color: var(--ink); }
.value-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.value-chip.is-sold-out { text-decoration: line-through; }
.gift-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--rule);
}
.gift-price { font-family: var(--font-mono); font-size: 11.5px; }
.gift-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  border: 0;
  background: none;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}
.gift-add .icon { width: 12px; height: 12px; }
.gift-add:hover { color: var(--accent); }

/* ---------- Help / FAQ ---------- */

.help-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.help-intro .eyebrow { margin-bottom: 20px; }
.help-intro h2 {
  max-width: 10ch;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.9vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.steps {
  list-style: none;
  margin-top: clamp(32px, 4vw, 46px);
  border-top: 1px solid var(--rule);
}
.step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0 21px;
  border-bottom: 1px solid var(--rule);
}
.step-index {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.step h3 { font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: -0.012em; }
.step p { max-width: 44ch; margin-top: 5px; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.support-line {
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.support-line a { color: var(--ink); border-bottom: 1px solid var(--rule-strong); transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.support-line a:hover { color: var(--accent); border-color: var(--accent); }
.support-line span { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.045em; text-transform: uppercase; color: var(--ink-muted); }

.faq { border-top: 1px solid var(--rule); }
.faq > .eyebrow { padding: 0 0 14px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 19px 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq-icon {
  position: relative;
  flex: none;
  width: 13px;
  height: 13px;
  margin-top: 4px;
  transition: transform 0.25s var(--ease);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 13px;
  height: 1px;
  background: currentColor;
}
.faq-icon::after { transform: rotate(90deg); transition: transform 0.25s var(--ease); }
.faq details[open] .faq-icon { transform: rotate(180deg); }
.faq details[open] .faq-icon::after { transform: rotate(0deg); }
.faq details p {
  max-width: 60ch;
  padding: 0 40px 22px 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---------- Footer ---------- */

.footer {
  padding-top: clamp(54px, 7vw, 92px);
  background: var(--ink);
  color: var(--paper);
}
.footer .wordmark { color: var(--paper); font-size: 31px; }
.footer .wordmark span { color: var(--accent-on-dark); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.75fr) minmax(0, 0.85fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(48px, 6vw, 74px);
  border-bottom: 1px solid var(--rule-dark);
}
.footer-brand p {
  max-width: 34ch;
  margin-top: 18px;
  color: #aaa294;
  font-size: 13.5px;
  line-height: 1.65;
}
.footer-discord {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(21px, 1.8vw, 26px);
  letter-spacing: -0.02em;
  border-bottom: 1px solid #4d4a41;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-discord:hover { color: var(--accent-on-dark); border-color: var(--accent-on-dark); }
.footer-col h3 {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #8f8879;
}
.footer-col ul { display: grid; gap: 9px; list-style: none; }
.footer-col li a {
  font-size: 13px;
  color: #d3ccbe;
  transition: color 0.2s var(--ease);
}
.footer-col li a:hover { color: var(--paper); }
.footer-contact p {
  margin-bottom: 13px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #aaa294;
}
.footer-contact .text-link { margin-top: 5px; font-size: 11px; }

.footer-mark { padding-top: clamp(38px, 5vw, 64px); border-bottom: 1px solid var(--rule-dark); }
.footer-mark-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: clamp(30px, 4vw, 46px);
}
.footer-mega {
  font-family: var(--font-display);
  font-size: clamp(80px, 17.5vw, 262px);
  line-height: 0.68;
  letter-spacing: -0.055em;
  color: var(--paper);
}
.footer-mega span { color: var(--accent-on-dark); }
.footer-tagline {
  flex: none;
  padding-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #918a7b;
  text-align: right;
}
.footer-tagline span { color: #655f54; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 0 26px;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.035em;
  color: #80796b;
}
.footer-payments { margin-left: auto; color: #a49c8d; }

/* ---------- Mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  padding: 22px var(--pad) 30px;
  background: var(--paper);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
  overflow-y: auto;
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.menu-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  border-radius: 1px;
  background: none;
}
.mobile-nav { display: grid; margin-top: 12px; }
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  transition: color 0.2s var(--ease);
}
.mobile-nav a .icon { width: 18px; height: 18px; margin-left: auto; color: var(--ink-muted); }
.mobile-nav a:hover { color: var(--accent); }
.mobile-num {
  align-self: flex-start;
  padding-top: 7px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}
.mobile-menu-foot {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: auto;
  padding-top: 40px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.mobile-menu-foot .eyebrow { margin-bottom: 7px; }
.mobile-discord {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--rule-strong);
}
.mobile-menu-foot > p { text-align: right; color: var(--ink-muted); }

/* ---------- Overlay + cart ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(18, 16, 11, 0.52);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s var(--ease), visibility 0s 0.35s;
}
.overlay.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.35s var(--ease);
}
.overlay--search { z-index: 60; background: rgba(18, 16, 11, 0.34); }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  height: 100dvh;
  background: var(--paper);
  border-left: 1px solid var(--rule-strong);
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease), visibility 0s 0.4s;
}
.cart-drawer.is-open {
  visibility: visible;
  transform: none;
  transition: transform 0.4s var(--ease);
}
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--rule);
}
.cart-head h2 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.cart-head h2 span {
  margin-left: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0;
  color: var(--ink-muted);
  vertical-align: 2px;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--rule);
  border-radius: 1px;
  background: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.icon-button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cart-body { flex: 1; overflow-y: auto; padding: 0 24px; }
.cart-empty { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 100%; padding: 40px 0 48px; }
.cart-empty > .icon { width: 40px; height: 40px; margin-bottom: 22px; color: var(--ink-muted); stroke-width: 1.1; }
.cart-empty .eyebrow { margin-bottom: 12px; }
.cart-empty h3 {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.03;
  letter-spacing: -0.03em;
}
.cart-empty p { max-width: 32ch; margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.cart-empty .btn { margin-top: 24px; }
.cart-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.cart-thumb {
  width: 58px;
  height: 84px;
  overflow: hidden;
  background: var(--paper-deep);
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb--icon {
  height: 58px;
  border: 1px solid var(--rule);
  background: var(--paper-deep);
}
.cart-thumb--icon img { object-fit: contain; }
.cart-thumb--mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--rule);
  background: transparent;
  font-family: var(--font-display);
  font-size: 24px;
}
.cart-item-main { min-width: 0; padding-top: 2px; }
.cart-item-title {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.cart-item-meta {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.cart-item-controls { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rule);
}
.qty button {
  display: grid;
  place-items: center;
  width: 25px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.qty button:hover { background: var(--ink); color: var(--paper); }
.qty button:disabled { opacity: 0.35; cursor: not-allowed; background: none; color: var(--ink-soft); }
.qty button .icon { width: 11px; height: 11px; }
.qty span {
  min-width: 24px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  text-align: center;
}
.cart-remove {
  padding: 2px 0;
  border: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid transparent;
}
.cart-remove:hover { color: var(--accent); border-color: var(--accent); }
.cart-item-price {
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  white-space: nowrap;
}
.cart-foot { padding: 20px 24px 22px; border-top: 1px solid var(--rule-strong); background: var(--paper); }
.cart-subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cart-subtotal [data-subtotal] { font-family: var(--font-display); font-size: 28px; letter-spacing: -0.02em; text-transform: none; }
.cart-note { margin-top: 7px; font-family: var(--font-mono); font-size: 8px; line-height: 1.5; color: var(--ink-muted); }
.cart-foot .btn { margin-top: 17px; }
.cart-continue {
  display: block;
  margin: 12px auto 0;
  padding: 4px;
  border: 0;
  background: none;
  font-size: 11px;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
}
.cart-continue:hover { color: var(--ink); border-color: var(--ink); }
.cart-foot[hidden] { display: none; }

/* ---------- Quick view ---------- */

.quick-dialog {
  width: min(940px, calc(100vw - 32px));
  max-width: none;
  max-height: min(780px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 1px;
  background: var(--paper);
  color: var(--ink);
}
.quick-dialog::backdrop { background: rgba(18, 16, 11, 0.56); }
.quick-dialog[open] { animation: dialog-in 0.28s var(--ease) both; }
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.quick-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); min-height: 480px; }
.quick-art { position: relative; min-height: 100%; background: var(--paper-deep); }
.quick-art img { width: 100%; height: 100%; max-height: min(780px, calc(100dvh - 32px)); object-fit: cover; }
.quick-art--brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--sand);
}
.quick-art--brand img {
  width: auto;
  height: auto;
  max-width: min(70%, 180px);
  max-height: 180px;
  object-fit: contain;
}
.quick-brand-mark {
  font-family: var(--font-display);
  font-size: clamp(88px, 12vw, 150px);
  line-height: 0.8;
  color: var(--ink);
}
.quick-option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.quick-instructions {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--rule-strong);
  background: var(--paper-deep);
}
.quick-instructions .eyebrow { margin-bottom: 6px; }
.quick-instructions p:last-child {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.quick-rate {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--ink-muted);
  white-space: nowrap;
}
.quick-info {
  max-height: min(780px, calc(100dvh - 32px));
  overflow-y: auto;
  padding: clamp(28px, 4vw, 46px);
}
.quick-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--rule-strong);
  border-radius: 1px;
  background: var(--paper);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.quick-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.quick-dialog .quick-kicker { margin-bottom: 14px; }
.quick-dialog h2 {
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.quick-blurb { max-width: 46ch; margin-top: 14px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.65; text-wrap: pretty; white-space: pre-line; }
.quick-facts { margin-top: 24px; border-top: 1px solid var(--rule); }
.quick-fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
}
.quick-fact dt { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.quick-fact dd { margin: 0; font-size: 12.5px; text-align: right; }
.quick-purchase {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
}
.quick-price { display: flex; align-items: baseline; gap: 10px; }
.quick-price strong { font-family: var(--font-display); font-size: 32px; font-weight: 400; letter-spacing: -0.02em; }
.quick-price s { font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted); }
.quick-save { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.04em; color: var(--discount); text-transform: uppercase; }
.quick-add-button { margin-top: 16px; }
.quick-delivery {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 13px;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.quick-delivery .icon { width: 12px; height: 12px; margin-top: 1px; color: var(--accent); }

/* ---------- Notice dialog ---------- */

.notice-dialog {
  width: min(620px, calc(100vw - 32px));
  max-width: 620px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  border: 1px solid var(--ink);
  border-radius: 1px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(18, 16, 11, 0.32);
}
.notice-dialog::backdrop {
  background: rgba(18, 16, 11, 0.68);
  backdrop-filter: blur(2px);
}
.notice-dialog[open] { animation: dialog-in 0.28s var(--ease) both; }
.notice-panel { padding: clamp(28px, 4vw, 48px); }
.notice-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.notice-close { flex: none; }
.notice-dialog h2 {
  max-width: 14ch;
  margin-top: clamp(24px, 3vw, 36px);
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 56px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.notice-message {
  max-width: 48ch;
  margin-top: 15px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
  text-wrap: pretty;
}
.notice-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3vw, 36px);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.notice-actions .btn { min-width: 136px; }
.notice-actions .btn--ghost { background: transparent; }

/* ---------- Toasts ---------- */

.toasts {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 9px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(360px, calc(100vw - 44px));
  padding: 14px 16px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid #353126;
  pointer-events: auto;
  animation: toast-in 0.3s var(--ease) both;
}
.toast.is-leaving { animation: toast-out 0.25s var(--ease) both; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(5px); }
}
.toast-icon { flex: none; margin-top: 2px; color: var(--accent-on-dark); }
.toast-icon .icon { width: 15px; height: 15px; }
.toast-copy { flex: 1; min-width: 0; }
.toast-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
.toast-detail {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.5;
  color: #a59d8e;
}
.toast-action {
  flex: none;
  align-self: center;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid #5a554a;
  background: none;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.toast-action:hover { color: var(--accent-on-dark); border-color: var(--accent-on-dark); }

[hidden] { display: none !important; }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .primary-nav { gap: 18px; }
  .header-inner { gap: 28px; }
  .hero h1 { font-size: clamp(56px, 8.6vw, 102px); }
  .hero-grid { gap: 48px; }
  .topup-head,
  .topup-row { grid-template-columns: minmax(190px, 1.1fr) minmax(240px, 1.35fr) 80px 88px; gap: 18px; }
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr) minmax(0, 0.8fr) minmax(0, 0.9fr); gap: 34px; }
}

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-info { gap: 18px 22px; }
}

@media (max-width: 980px) {
  .primary-nav { display: none; }
  .menu-trigger { display: inline-flex; }
  .header-inner { height: 68px; }
  .header-actions { margin-left: auto; }

  .hero h1 { font-size: clamp(52px, 9.6vw, 88px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .hero-copy { max-width: 560px; }
  .hero-feature { max-width: none; }

  .section-head { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .section-head h2 { max-width: 18ch; }
  .section-intro { justify-self: start; max-width: 58ch; }

  .gift-grid { gap: 24px 18px; }
  .help-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .help-intro h2 { max-width: 14ch; }
  .faq { max-width: 720px; }

  .manifesto-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .manifesto h2 { max-width: 12ch; }
  .manifesto-points { max-width: 760px; }

  .topup-head { display: none; }
  .topup-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px 18px;
    padding: 22px 0;
  }
  .topup-game { grid-column: 1 / -1; }
  .topup-amounts { grid-column: 1 / -1; }
  .topup-price { grid-column: 2; grid-row: 3; justify-self: end; }
  .topup-add { grid-column: 3; grid-row: 3; }

  .page-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .page-hero-copy { max-width: 58ch; }
  .product-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .account-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .account-aside { order: 2; }
  .account-panel { order: 1; }

  .admin-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-variant { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-variant-actions { grid-column: 1 / -1; }
  .admin-user-fields { grid-template-columns: minmax(0, 1fr) minmax(120px, 0.5fr); }
  .admin-user-fields .btn { grid-column: 1 / -1; justify-self: start; }

  .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .checkout-summary { position: static; }

  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 48ch; }
}

@media (max-width: 760px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
  .quick-add {
    opacity: 1;
    transform: none;
  }
  .product-art:hover .product-view img { transform: none; }
  .rail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail-item { min-height: 118px; padding: 18px 20px 20px; }
  .rail-item:first-child { padding-left: 20px; }
  .rail-item:nth-child(2) { padding-right: 20px; }
  .rail-item:nth-child(3) {
    border-top: 1px solid var(--rule);
    border-left: 0;
    padding-left: 20px;
  }
  .rail-item:nth-child(4) { border-top: 1px solid var(--rule); padding-right: 20px; }
  .rail-item:first-child:hover { box-shadow: none; }

  .feature-info {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 20px;
    align-items: start;
    padding-top: 15px;
  }
  .feature-desc { display: none; }
  .feature-ident h2 { font-size: 38px; }
  .feature-buy { gap: 9px; }
  .feature-cover img { aspect-ratio: 2.1 / 1; }

  .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .search-results { grid-template-columns: minmax(0, 1fr); }
  .search-body { padding-bottom: 26px; }

  .filter-bar { flex-wrap: wrap; gap: 0; }
  .filters { width: 100%; }
  .filter-tools {
    width: 100%;
    justify-content: space-between;
    padding: 8px 0;
    border-top: 1px solid var(--rule);
  }

  .category-bar { flex-wrap: wrap; gap: 0; }
  .category-filters { width: 100%; }
  .category-note {
    width: 100%;
    padding: 10px 0;
    border-top: 1px solid var(--rule);
  }
  .panel-head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .panel-intro { justify-self: start; max-width: 58ch; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact { grid-column: 1 / -1; }
  .footer-mark-inner { display: block; }
  .footer-tagline { margin-top: 20px; padding-bottom: 0; text-align: left; }
  .footer-bottom { display: grid; }
  .footer-payments { margin-left: 0; }

  .quick-grid { grid-template-columns: minmax(0, 1fr); display: block; }
  .quick-dialog { overflow-y: auto; }
  .quick-art img { height: 260px; object-position: center 22%; }
  .quick-info { max-height: none; overflow: visible; padding: 26px 22px 24px; }
  .quick-dialog h2 { max-width: 18ch; }
  .quick-close {
    position: sticky;
    top: 14px;
    right: auto;
    margin: 14px 14px -50px auto;
  }
}

@media (max-width: 620px) {
  .utility-inner { font-size: 8px; gap: 10px; min-height: 31px; }
  .utility-inner p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .utility-links { gap: 12px; }
  .utility-links a { display: none; }
  .utility-links span:last-child { display: none; }

  .header-inner { height: 63px; gap: 12px; }
  .wordmark { font-size: 25px; }
  .header-actions { gap: 15px; }
  .action-label { display: none; }
  .header-action { font-size: 11.5px; }

  .hero { padding-top: 30px; }
  .hero-topline { display: none; }
  .hero h1 {
    margin-top: 0;
    font-size: clamp(44px, 12.6vw, 66px);
    line-height: 0.92;
  }
  .hero h1 br { display: none; }
  .hero-grid { margin-top: 30px; gap: 34px; }
  .hero-lede { font-size: 14.5px; }
  .hero-actions { gap: 16px; margin-top: 24px; }
  .hero-actions .btn { flex: 1; min-width: 160px; }
  .hero-note { margin-top: 22px; font-size: 8px; }

  .feature-head { font-size: 8px; }
  .feature-info h2 { font-size: clamp(31px, 8.5vw, 38px); }
  .feature-ident .eyebrow { font-size: 8px; margin-bottom: 8px; }
  .price-now { font-size: 15px; }
  .feature-buy { gap: 8px; }
  .feature-buy .btn { min-height: 42px; padding-inline: 12px; font-size: 10px; gap: 8px; }
  .feature-delivery { margin-top: 12px; padding-top: 10px; font-size: 8px; }

  .rail-title { font-size: 20px; }
  .rail-note { font-size: 7.5px; }
  .section { padding-block: 62px; }
  .section-head { margin-bottom: 30px; }
  .section-head h2 { font-size: clamp(36px, 9.6vw, 48px); }
  .section-intro { font-size: 13px; }

  .filters { gap: 20px; }
  .filter { padding: 14px 0; font-size: 10.5px; }
  .filter-tools { gap: 12px; }
  .sort-control span { display: none; }

  .product-grid { gap: 32px 12px; }
  .product-topline { font-size: 7.5px; margin-top: 10px; gap: 6px; }
  .product-save { display: none; }
  .product-title { font-size: 19px; min-height: 2.24em; }
  .product-price { font-size: 10.5px; gap: 6px; margin-top: 5px; }
  .product-price s { font-size: 8.5px; }
  .quick-add { right: 6px; bottom: 6px; left: 6px; min-height: 35px; font-size: 9px; gap: 6px; }
  .quick-add .icon { width: 11px; height: 11px; }

  .shelf-foot { flex-direction: column; align-items: flex-start; gap: 18px; }
  .shelf-foot .btn { width: 100%; }

  .manifesto { padding-block: 62px; }
  .manifesto h2 { font-size: clamp(40px, 11vw, 54px); }
  .manifesto-point { grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 18px 0; }
  .manifesto-point h3 { font-size: 23px; }
  .manifesto-stats { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .stat { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 15px 0; border-right: 0; border-bottom: 1px solid var(--rule-dark); }
  .stat + .stat { padding-left: 0; }
  .stat:last-child { border-bottom: 0; }
  .stat-value { font-size: 40px; }
  .stat-label { text-align: right; }

  .topup-row { grid-template-columns: minmax(0, 1fr) auto; }
  .topup-game h3 { font-size: 21px; }
  .topup-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .amount-chip { min-width: 0; padding-inline: 6px; }
  .topup-price { grid-column: 1; grid-row: 3; justify-self: start; }
  .topup-add { grid-column: 2; grid-row: 3; }

  .gift-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .gift-art { aspect-ratio: 1.78; }
  .gift-art-value { font-size: 48px; }
  .gift-info { padding-top: 12px; }

  .help-grid { gap: 42px; }
  .help-intro h2 { font-size: clamp(38px, 10vw, 48px); }
  .step { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
  .faq summary { font-size: 14px; padding: 17px 0; }
  .faq details p { padding-right: 12px; }

  .page-hero { padding-top: 30px; padding-bottom: 32px; }
  .page-hero-grid { margin-top: 26px; }
  .page-hero h1 { font-size: clamp(44px, 12vw, 64px); line-height: 0.92; }
  .page-hero h1 br { display: none; }
  .page-hero-copy > p { font-size: 13.5px; }
  .category-filter { padding: 15px 0; font-size: 21px; }
  .category-note { font-size: 7.5px; }
  .category-panel + .category-panel { margin-top: 62px; padding-top: 50px; }
  .panel-head h2 { font-size: 36px; }

  .account-title { font-size: clamp(40px, 12vw, 56px); }
  .account-summary { flex-direction: column; gap: 16px; }
  .account-badge-row { align-items: flex-start; }
  .account-member { text-align: left; }
  .account-orders-head { align-items: flex-start; }
  .auth-form { max-width: none; }
  .auth-actions .btn { flex: 1; min-width: 160px; }
  .account-actions .btn { flex: 1; }

  .admin-fields { grid-template-columns: minmax(0, 1fr); }
  .admin-variant { grid-template-columns: minmax(0, 1fr); }
  .admin-variant-topup { grid-template-columns: minmax(0, 1fr); }
  .admin-stock-account-fields { grid-template-columns: minmax(0, 1fr); }
  .admin-variant-actions { grid-column: auto; }
  .admin-user-fields { grid-template-columns: minmax(0, 1fr); }
  .admin-user-fields .btn { grid-column: auto; justify-self: stretch; }
  .admin-user-meta { text-align: left; }
  .admin-toolbar-actions { width: 100%; }
  .admin-toolbar-actions .btn { flex: 1; }

  .checkout-actions .btn { flex: 1; min-width: 160px; }
  .checkout-line-title { font-size: 18px; }

  .footer { padding-top: 50px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .footer-brand, .footer-contact { grid-column: auto; }
  .footer-brand p { max-width: 38ch; }
  .footer-col ul { gap: 8px; }
  .footer-mark { padding-top: 40px; }
  .footer-mega { font-size: clamp(72px, 21vw, 150px); }
  .footer-bottom { font-size: 7.5px; padding-bottom: 22px; }

  .cart-head { padding: 18px; }
  .cart-body { padding: 0 18px; }
  .cart-foot { padding: 18px; }
  .cart-item { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 12px; }
  .cart-thumb { width: 50px; height: 72px; }
  .cart-thumb--mark { width: 50px; height: 50px; }
  .cart-thumb--icon { width: 50px; height: 50px; }
  .cart-item-title { font-size: 17px; }
  .cart-item-price { font-size: 9.5px; }

  .quick-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .quick-art img { height: 220px; }
  .quick-info { padding: 24px 18px 22px; }
  .quick-dialog h2 { font-size: 38px; }
  .quick-fact { padding: 8px 0; }
  .quick-purchase { margin-top: 20px; }

  .notice-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .notice-panel { padding: 24px 20px; }
  .notice-dialog h2 { font-size: 40px; }
  .notice-actions .btn { flex: 1; min-width: 130px; }

  .toasts { right: 12px; bottom: 12px; left: 12px; }
  .toast { width: 100%; }
}

@media (max-width: 400px) {
  .wordmark { font-size: 23px; }
  .header-actions { gap: 12px; }
  .hero h1 { font-size: 43px; }
  .page-hero h1 { font-size: 43px; }
  .filter { font-size: 10px; }
  .gift-art { aspect-ratio: 1.62; }
  .quick-price strong { font-size: 28px; }
  .mobile-menu-foot { flex-direction: column; gap: 18px; }
  .mobile-menu-foot > p { text-align: left; }
}

@media (max-width: 360px) {
  .filters,
  .category-filters {
    flex-wrap: wrap;
    gap: 0 18px;
    overflow: visible;
  }
  .filter,
  .category-filter { padding-block: 12px; }
  .filter::after,
  .category-filter::after { bottom: 0; }
}

@media (hover: none) {
  .quick-add { opacity: 1; transform: none; }
}

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



