/* Looties Shop — styles built from the tokens in web/design.md.
   One red, ink, paper. Thin borders at rest; 2px ink + hard offset shadow only on what is being used.
   Add a token or component to design.md first, then style it here. */

:root {
  /* Color */
  --red: #e82c2a;
  --red-deep: #c42220;
  --red-wash: #fdeceb;
  --ink: #212529;
  --ink-2: #5b5f66;
  --ink-3: #8b8f96;
  --line: rgba(33, 37, 41, 0.12);
  --line-strong: rgba(33, 37, 41, 0.22);
  --paper: #faf8f5;
  --white: #ffffff;
  --grey: #f1efec;
  --carbon: #121212;
  --ok: #1d7f49;
  --ok-wash: #e7f4ec;

  /* Type */
  --f-display: "Be Vietnam Pro", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-hero: clamp(40px, 5.6vw, 68px);
  --t-h1: clamp(32px, 4.2vw, 48px);
  --t-h2: clamp(24px, 2.8vw, 32px);
  --t-h3: 18px;
  --t-body: 15px;
  --t-small: 13px;
  --t-label: 12px;

  /* Space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 48px;
  --s-9: 64px;
  --s-10: 96px;

  /* Shape */
  --r-s: 12px;
  --r-m: 16px;
  --r-card: 24px;
  --r-panel: 36px;
  --r-pill: 999px;
  --hard: 4px 4px 0 var(--ink);
  --hard-sm: 3px 3px 0 var(--ink);
  --ease: 160ms ease;

  --content: 1240px;
  --header-h: 72px;
  color-scheme: light;
}

/* ---------- Base ---------- */

[hidden] { display: none !important; }

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--f-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--t-h1); font-weight: 800; }
h2 { font-size: var(--t-h2); font-weight: 800; }
h3 { font-size: var(--t-h3); font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0; }

code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 6px; }

.icon { width: 18px; height: 18px; flex: none; }

.skip {
  position: absolute;
  left: var(--s-4);
  top: -60px;
  z-index: 50;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  padding: var(--s-2) var(--s-4);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: var(--s-3); }

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--s-6));
  margin-inline: auto;
  padding-left: max(var(--s-6), env(safe-area-inset-left, 0px));
  padding-right: max(var(--s-6), env(safe-area-inset-right, 0px));
}

#app { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
#main { display: block; flex: 1 0 auto; padding-bottom: var(--s-9); outline: none; }

.section { padding-top: var(--s-9); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.section-head > div { display: grid; gap: var(--s-2); }

.eyebrow, .label {
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-deep);
}
.label { color: var(--ink-3); }

.lede { font-size: 17px; color: var(--ink-2); max-width: 60ch; }
.fine { font-size: var(--t-small); color: var(--ink-3); }
.fine a { color: var(--ink); font-weight: 600; }
.meta { font-size: 14px; color: var(--ink-2); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

.notice {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--r-s);
  padding: var(--s-3) var(--s-4);
  font-size: 14px;
  color: var(--ink);
}
.notice a { font-weight: 600; }
[data-payment-return] { padding-top: var(--s-4); display: grid; gap: var(--s-3); }

.empty {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--s-8) var(--s-6);
  display: grid;
  justify-items: center;
  gap: var(--s-3);
  text-align: center;
  margin-top: var(--s-7);
}
.empty p { color: var(--ink-2); max-width: 46ch; }

.skeleton { height: 420px; border-radius: var(--r-card); margin: var(--s-7) auto 0; max-width: var(--content); width: calc(100% - 2 * var(--s-6)); }
.shimmer {
  background: linear-gradient(90deg, var(--grey) 0%, var(--white) 50%, var(--grey) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---------- Buttons, chips, tags ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--ease), box-shadow var(--ease), background-color var(--ease);
}
.btn:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: var(--hard-sm); }
.btn:active:not(:disabled) { transform: none; box-shadow: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: var(--red-deep); }
.btn-primary .icon { filter: invert(1); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--ease), background-color var(--ease);
}
button.chip { cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip-count { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: var(--t-small); }
.chip[aria-current="true"] .chip-count { color: rgba(255, 255, 255, 0.65); }
.chip-row, .pills { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex;
  align-items: center;
  font-size: var(--t-label);
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--r-pill);
  padding: 2px 9px;
  background: var(--grey);
  color: var(--ink-2);
  white-space: nowrap;
}
.tag-ok { background: var(--ok-wash); color: var(--ok); }
.tag-warn { background: var(--red-wash); color: var(--red-deep); }
.tag-muted { background: transparent; border: 1px solid var(--line-strong); padding: 1px 8px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  width: fit-content;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: var(--t-small);
  font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-wash); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 245, 0.96);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}

.nav-shell {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-6);
  min-height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 34px; width: auto; }

.nav-links { display: flex; gap: var(--s-1); }
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink-2);
  transition: color var(--ease), background-color var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--grey); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--grey); }

.search {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 0 6px 0 16px;
  min-height: 44px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.search .icon { opacity: 0.6; }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 0;
  font-size: 15px;
}
.search input::placeholder { color: var(--ink-3); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search-header { flex: 1; max-width: 440px; margin-left: auto; }
body[data-route="home"] .search-header { visibility: hidden; }

.nav-account {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 2px solid var(--ink);
  background: var(--white);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: transform var(--ease), box-shadow var(--ease);
}
.nav-account:hover { transform: translate(-2px, -2px); box-shadow: var(--hard-sm); }
.nav-account[aria-current="page"] { background: var(--ink); color: var(--white); }
.nav-account[aria-current="page"] .icon { filter: invert(1); }

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--white);
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.mobile-panel { display: none; }

/* ---------- Home: hero ---------- */

.hero-band { border-bottom: 1px solid var(--line); padding-bottom: var(--s-7); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: var(--s-8);
  padding-top: var(--s-8);
  padding-bottom: var(--s-7);
}

.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); align-content: center; }

.hero-title {
  font-size: var(--t-hero);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.hero-title em { font-style: normal; color: var(--red); }

.hero-sub { font-size: 17px; color: var(--ink-2); max-width: 48ch; }

.search-hero {
  max-width: 560px;
  min-height: 60px;
  border: 2px solid var(--ink);
  box-shadow: var(--hard);
  padding: 6px 6px 6px 20px;
}
.search-hero:focus-within { box-shadow: var(--hard); }
.search-hero input { font-size: 16px; }
.search-hero .btn { min-height: 44px; padding-inline: 22px; }

.quick { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-size: var(--t-small); color: var(--ink-3); }
.quick a {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  font-weight: 500;
  transition: border-color var(--ease);
}
.quick a:hover { border-color: var(--ink); }

.hero-assure {
  list-style: none;
  margin: var(--s-2) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
  font-size: 14px;
  color: var(--ink-2);
}
.hero-assure li { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero-assure .icon { width: 16px; height: 16px; opacity: 0.75; }

.hero-stage { position: relative; aspect-ratio: 1 / 0.92; width: 100%; max-width: 560px; justify-self: end; }
.stage-block {
  position: absolute;
  inset: 12% 5% 0 7%;
  background: var(--red);
  border: 2px solid var(--ink);
  border-radius: var(--r-panel);
  box-shadow: 6px 6px 0 var(--ink);
}
.stage-mascot {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 78%;
  height: auto;
  transform: translateX(-50%);
}

.sticker {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r-m);
  box-shadow: var(--hard-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--ease), box-shadow var(--ease);
}
.sticker:not([data-state="price"]) { visibility: hidden; }
.sticker:hover { box-shadow: var(--hard); }
.sticker-logo { width: 36px; height: 36px; border-radius: 10px; background: var(--grey); display: grid; place-items: center; }
.sticker-logo img { width: 22px; height: 22px; object-fit: contain; }
.sticker-text { display: grid; line-height: 1.2; }
.sticker-name { font-size: var(--t-label); color: var(--ink-3); font-weight: 600; }
.sticker-price { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sticker-price .from { font-weight: 500; color: var(--ink-2); }
.sticker-1 { top: 3%; left: 0; transform: rotate(-4deg); }
.sticker-2 { top: 38%; right: -2%; transform: rotate(3deg); }
.sticker-3 { bottom: 9%; left: -1%; transform: rotate(-2deg); }
.sticker-1:hover { transform: rotate(-4deg) translate(-2px, -2px); }
.sticker-2:hover { transform: rotate(3deg) translate(-2px, -2px); }
.sticker-3:hover { transform: rotate(-2deg) translate(-2px, -2px); }

.cat-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-3); }
.cat-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--s-3);
  align-items: center;
  padding: var(--s-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.cat-tile .icon { grid-row: 1 / 3; width: 22px; height: 22px; }
.cat-name { font-weight: 700; font-size: 15px; }
.cat-count { font-size: var(--t-small); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cat-tile:hover { border-color: var(--ink); transform: translate(-2px, -2px); box-shadow: var(--hard-sm); }

/* ---------- Home: showcase, steps, FAQ ---------- */

.showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.show-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  background: var(--carbon);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.show-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.show-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0) 35%, rgba(18, 18, 18, 0.82) 100%);
}
.show-body { position: absolute; inset: auto 0 0 0; z-index: 1; padding: var(--s-6); display: grid; gap: var(--s-1); }
.show-body h3 { font-size: 24px; font-weight: 800; }
.show-body p { font-size: 14px; color: rgba(255, 255, 255, 0.82); }
.show-count {
  width: fit-content;
  font-size: var(--t-label);
  font-weight: 700;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  margin-bottom: var(--s-1);
}
.show-tile:hover { border-color: var(--ink); transform: translate(-3px, -3px); box-shadow: var(--hard); }
.show-tile:hover img { transform: scale(1.03); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
  counter-reset: step;
}
.step {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--s-6);
  display: grid;
  gap: var(--s-2);
  align-content: start;
}
.step::before {
  content: counter(step);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 800;
  margin-bottom: var(--s-2);
}
.step p { color: var(--ink-2); font-size: 14px; }

.faq-list { display: grid; gap: var(--s-3); max-width: 860px; }
.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  transition: border-color var(--ease);
}
.faq-list details[open] { border-color: var(--line-strong); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-4) var(--s-5);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--ink-3); transition: transform var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 var(--s-5) var(--s-5); color: var(--ink-2); max-width: 70ch; }

/* ---------- Product cards ---------- */

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }

.card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--s-4);
  padding: var(--s-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  text-decoration: none;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card:hover, .card:focus-visible { border-color: var(--ink); transform: translate(-3px, -3px); box-shadow: var(--hard); outline: none; }

.card-top { display: flex; justify-content: space-between; align-items: start; gap: var(--s-2); }

.logo-tile {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: var(--r-m);
  background: var(--grey);
  display: grid;
  place-items: center;
}
.logo-tile img { width: 72%; height: 58%; object-fit: contain; }
.logo-tile-lg { width: 72px; height: 72px; border-radius: 20px; }

.stock-tag {
  font-size: var(--t-label);
  font-weight: 600;
  color: var(--ok);
  background: var(--ok-wash);
  border-radius: var(--r-pill);
  padding: 3px 9px;
}
.stock-tag:empty { display: none; }

.card-body { display: grid; gap: 2px; align-content: start; }
.card-title { font-family: var(--f-body); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.card-cat { font-size: var(--t-small); color: var(--ink-3); }

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--s-2);
  border-top: 1px dashed var(--line-strong);
  padding-top: var(--s-3);
}
.card-price { display: grid; min-width: 0; }
.from { font-size: var(--t-label); color: var(--ink-3); visibility: hidden; }
[data-state="price"] .from { visibility: visible; }

.price {
  font-family: var(--f-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.price[data-price-state="pending"],
.price[data-price-state="unknown"] { font-family: var(--f-body); font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.price[data-price-state="out"] { font-family: var(--f-body); font-size: 14px; font-weight: 600; color: var(--red-deep); letter-spacing: 0; }
.sticker-price .price { font-family: var(--f-body); font-size: 15px; letter-spacing: 0; }

.card-go {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  transition: background-color var(--ease), border-color var(--ease);
}
.card-go .icon { width: 16px; height: 16px; }
.card:hover .card-go { background: var(--red); border-color: var(--red); }
.card:hover .card-go .icon { filter: invert(1); }

/* ---------- Catalog page ---------- */

.catalog { padding-top: var(--s-7); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
.page-head { display: grid; gap: var(--s-2); }
.page-sub { color: var(--ink-2); font-size: 15px; }

.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); min-width: 0; }
.sort { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--white); }
.sort-link {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
}
.sort-link[aria-current="true"] { background: var(--ink); color: var(--white); }

/* ---------- Product page ---------- */

.product { padding-top: var(--s-6); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }

.back-link { width: fit-content; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.back-link:hover { color: var(--ink); }

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: var(--s-7);
  align-items: start;
}

.product-main { display: grid; gap: var(--s-5); min-width: 0; }
.product-head { display: flex; align-items: center; gap: var(--s-4); }
.product-head > div { display: grid; gap: 2px; min-width: 0; }
.product-sub { font-size: 14px; color: var(--ink-2); }
.product-desc { color: var(--ink-2); max-width: 70ch; }

.offer-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
.offer-tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.offer-tab {
  display: inline-flex;
  flex: 0 0 auto;
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
}
.offer-tab:hover { border-color: var(--ink); }
.offer-tab[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.offer-tab-count { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.offer-tab[aria-pressed="true"] .offer-tab-count { color: rgba(255, 255, 255, 0.65); }

.offer-group { display: grid; gap: var(--s-2); }
.offer-group-title {
  font-family: var(--f-body);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 2px;
}

.offer {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  text-align: left;
  padding: 13px var(--s-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.offer:hover { border-color: var(--ink-3); }
.offer[aria-pressed="true"] { border: 2px solid var(--ink); padding: 12px 15px; box-shadow: var(--hard-sm); }
.offer-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink-3); display: grid; place-items: center; }
.offer[aria-pressed="true"] .offer-radio { border-color: var(--red); }
.offer[aria-pressed="true"] .offer-radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.offer-body { display: grid; gap: 6px; min-width: 0; }
.offer-name { font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.offer-price { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.soldout { border: 1px dashed var(--line-strong); border-radius: var(--r-m); padding: var(--s-3) var(--s-4); }
.soldout summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.soldout ul { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.soldout li { display: flex; justify-content: space-between; gap: var(--s-4); font-size: 14px; color: var(--ink-3); }
.soldout-price { font-variant-numeric: tabular-nums; white-space: nowrap; }

.purchase {
  position: sticky;
  top: calc(var(--header-h) + var(--s-4));
  scroll-margin-top: calc(var(--header-h) + var(--s-4));
  display: grid;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r-card);
  box-shadow: var(--hard);
  min-width: 0;
}
.purchase-head { display: grid; gap: 6px; }
.purchase-name { font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }

.qty-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.qty-label { font-weight: 600; font-size: 14px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--white); }
.qty-step {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
}
.qty-step .icon { width: 16px; height: 16px; }
.qty-step:hover:not(:disabled) { background: var(--grey); }
.qty-step:disabled { opacity: 0.35; cursor: not-allowed; }
.qty-input {
  width: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input:focus-visible { outline: 2px solid var(--red); border-radius: 6px; }

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  border-top: 1px dashed var(--line-strong);
  padding-top: var(--s-3);
}
.total-row > span { font-weight: 600; }
.total {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-align: right;
  line-height: 1.15;
  transition: opacity var(--ease);
}
.total.is-pending { opacity: 0.45; }

.pay-actions { display: grid; gap: var(--s-2); }
.buy-btn { width: 100%; min-height: 50px; font-size: 16px; }
.buy-btn.is-armed, .buy-btn.is-armed:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--white); }
.activation { display: grid; gap: var(--s-2); margin: 0; padding: var(--s-3) var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--paper); min-width: 0; }
.activation legend { padding: 0 6px; font-weight: 700; font-size: 14px; }
.activation-field { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.activation-field input { min-height: 42px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--white); font: inherit; font-weight: 500; color: var(--ink); }
.activation-field input:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.activation-note { margin: 0; }
.wallet-line { margin: calc(-1 * var(--s-2)) 0 0; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wallet-line.is-short { color: var(--red-deep); }
.wallet-line a { color: inherit; font-weight: 700; text-underline-offset: 3px; }

.offer-notes {
  background: var(--grey);
  border-radius: var(--r-s);
  padding: var(--s-3) var(--s-4);
  font-size: 14px;
  color: var(--ink-2);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.offer-help { border-top: 1px solid var(--line); padding-top: var(--s-3); }
.offer-help summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.offer-help-body { margin-top: var(--s-2); font-size: 14px; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.rich-link { color: var(--ink); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }

.assure { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); font-size: 14px; color: var(--ink-2); }
.assure li { display: flex; align-items: center; gap: var(--s-2); }
.assure .icon { width: 16px; height: 16px; opacity: 0.7; }

.buy-bar { display: none; }

/* ---------- Checkout, QR, delivery ---------- */

.checkout-box {
  display: grid;
  gap: var(--s-3);
  justify-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: var(--s-4);
  font-size: 14px;
}
.qr-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); width: 100%; }
.qr-actions .btn { flex: 1 1 150px; }
.pay-qr {
  width: 280px;
  max-width: 100%;
  height: auto;
  background: #ffffff;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  justify-self: center;
}

.order-delivery { display: grid; gap: var(--s-3); width: 100%; margin-top: var(--s-2); }
.delivery-header { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.delivery-title { font-weight: 700; }
.delivery-item-card {
  display: grid;
  gap: var(--s-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: var(--s-4);
}
.delivery-item-title { font-weight: 600; }
.delivery-field { display: grid; gap: 4px; }
.delivery-field-label { font-size: var(--t-label); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.delivery-field-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.delivery-value {
  flex: 1 1 180px;
  min-width: 0;
  background: var(--grey);
  border-radius: 8px;
  padding: 8px 10px;
  overflow-wrap: anywhere;
}
.delivery-copy-btn, .delivery-link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--ink);
  background: var(--white);
  font-size: var(--t-small);
  font-weight: 600;
  text-decoration: none;
}
.delivery-copy-btn:hover, .delivery-link-btn:hover { background: var(--ink); color: var(--white); }
.delivery-notes { font-size: var(--t-small); color: var(--ink-2); white-space: pre-line; }
.delivery-lead { margin: 0; font-weight: 600; }
.delivery-pending {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: var(--s-3) var(--s-4);
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.delivery-text, .delivery-text-raw {
  margin: 0;
  background: var(--grey);
  border-radius: var(--r-s);
  padding: var(--s-3);
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------- Auth ---------- */

.auth-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--s-6);
  align-items: stretch;
  padding-top: var(--s-7);
}
.auth-poster {
  position: relative;
  min-height: 460px;
  display: grid;
  align-content: start;
  gap: var(--s-3);
  padding: var(--s-7);
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r-panel);
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
}
.auth-poster .eyebrow {
  width: fit-content;
  background: var(--white);
  color: var(--red-deep);
  border-radius: var(--r-pill);
  padding: 4px 12px;
}
.auth-poster h1 { font-size: clamp(36px, 5vw, 60px); max-width: 10ch; }
.auth-poster .lede { color: rgba(255, 255, 255, 0.9); max-width: 32ch; }
.auth-orbit { position: absolute; left: var(--s-7); bottom: var(--s-7); display: flex; gap: var(--s-2); }
.auth-orbit img {
  width: 52px;
  height: 52px;
  padding: 12px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r-m);
  box-shadow: var(--hard-sm);
}
.auth-mascot { position: absolute; right: -2%; bottom: -4%; width: min(44%, 280px); height: auto; }

.auth-card {
  display: grid;
  gap: var(--s-4);
  align-content: start;
  padding: var(--s-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--grey); border-radius: var(--r-pill); }
.auth-switch button {
  min-height: 42px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font-weight: 600;
  color: var(--ink-2);
}
.auth-switch button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }
.auth-panel { display: grid; gap: var(--s-3); }
.auth-panel .btn-primary { width: 100%; min-height: 48px; }
.auth-kicker { font-weight: 700; font-size: 17px; }
.auth-field { display: grid; gap: 6px; font-size: var(--t-small); font-weight: 600; }
.auth-field input,
.amount-entry input,
.admin-actions input,
.admin-actions select,
.admin-list input,
.admin-list select {
  min-height: 46px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  background: var(--white);
  font-size: 15px;
  font-weight: 400;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.auth-field input:focus,
.amount-entry input:focus,
.admin-actions input:focus,
.admin-actions select:focus,
.admin-list input:focus,
.admin-list select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.auth-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.auth-link {
  border: 0;
  background: none;
  padding: 0;
  font-size: var(--t-small);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  width: fit-content;
}
.auth-telegram { width: 100%; }

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

.account-page { padding-top: var(--s-7); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }

.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.stat {
  display: grid;
  gap: 4px;
  padding: var(--s-4) var(--s-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
}
.stat span { font-size: var(--t-small); color: var(--ink-3); font-weight: 600; }
.stat strong { font-family: var(--f-display); font-size: 22px; font-variant-numeric: tabular-nums; }
.stat.is-balance { background: var(--ink); border-color: var(--ink); color: var(--white); }
.stat.is-balance span { color: rgba(255, 255, 255, 0.7); }

.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4); }
.panel {
  display: grid;
  gap: var(--s-3);
  align-content: start;
  padding: var(--s-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  min-width: 0;
}
.panel h1 { font-size: clamp(26px, 3vw, 34px); }
.panel h2 { font-size: 20px; }
.balance { font-family: var(--f-display); font-size: 34px; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }

.topup { display: grid; gap: var(--s-3); }
.amount-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.amount-row .chip { font-variant-numeric: tabular-nums; }
.amount-entry { display: flex; gap: var(--s-2); }
.amount-entry input { flex: 1; min-width: 0; }

.activity { display: grid; gap: var(--s-4); scroll-margin-top: calc(var(--header-h) + var(--s-4)); }
.activity-switch { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.activity-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 40px;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--white);
  font-weight: 600;
}
.activity-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.activity-count {
  min-width: 22px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--grey);
  color: var(--ink);
  font-size: var(--t-label);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.activity-stage { display: grid; }
.activity-pane-body { display: grid; gap: var(--s-3); }
.activity-note { font-size: var(--t-small); color: var(--ink-3); }
.activity-empty {
  display: grid;
  gap: 4px;
  padding: var(--s-7) var(--s-5);
  background: var(--white);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-card);
  text-align: center;
}
.activity-empty-title { font-weight: 700; }
.activity-empty-note { font-size: 14px; color: var(--ink-2); }

.order-list { display: grid; gap: var(--s-3); }
.order-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
}
.order-card > div { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.order-card > strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-card > .order-delivery { grid-column: 1 / -1; }
.order-card time { font-size: var(--t-small); color: var(--ink-3); }
.order-logo { width: 48px; height: 48px; border-radius: var(--r-s); background: var(--grey); padding: 10px; object-fit: contain; }
.order-logo-empty { display: block; }
.order-name { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
a.order-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.order-bot { font-size: var(--t-small); font-weight: 600; }
.status-chip { font-size: var(--t-label); font-weight: 700; border-radius: var(--r-pill); padding: 3px 10px; background: var(--grey); color: var(--ink-2); }
.status-chip.is-done { background: var(--ok-wash); color: var(--ok); }
.status-chip.is-stop { background: var(--red-wash); color: var(--red-deep); }
.status-chip.is-wait { background: var(--grey); color: var(--ink); }

.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
}
.ledger li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-3) var(--s-4);
  font-size: 14px;
}
.ledger li + li { border-top: 1px solid var(--line); }
.ledger time { color: var(--ink-3); font-size: var(--t-small); }
.ledger strong { font-variant-numeric: tabular-nums; text-align: right; }
.is-credit { color: var(--ok); }
.is-debit { color: var(--red-deep); }

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

.admin-page { padding-top: var(--s-7); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.admin-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.admin-metric p { font-size: 14px; font-variant-numeric: tabular-nums; }
.admin-metric .balance { font-size: 24px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.admin-actions input, .admin-actions select { width: auto; flex: 1 1 160px; }
.admin-list { display: grid; gap: var(--s-2); }
.admin-order, .admin-user {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: var(--s-3) var(--s-4);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
}

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

.footer { background: var(--carbon); color: var(--white); padding-block: var(--s-8) calc(var(--s-8) + env(safe-area-inset-bottom, 0px)); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-6); }
.footer-brand { display: grid; gap: var(--s-3); max-width: 420px; }
.footer-brand img { height: 32px; width: auto; }
.footer-brand p { color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.footer-links a { color: rgba(255, 255, 255, 0.85); font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

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

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: var(--s-6); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .nav-shell { gap: var(--s-3); }
  .nav-links, .search-header, .nav-account { display: none; }
  .menu-button { display: inline-flex; }
  .nav-shell.is-open .mobile-panel {
    display: grid;
    gap: var(--s-1);
    width: 100%;
    padding-bottom: var(--s-4);
  }
  .mobile-panel a {
    padding: 12px 4px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    font-variant-numeric: tabular-nums;
  }
  .mobile-panel .search { margin-bottom: var(--s-2); }

  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); padding-top: var(--s-7); }
  .hero-stage { justify-self: center; max-width: 440px; }

  .showcase, .steps { grid-template-columns: minmax(0, 1fr); }
  .show-tile { aspect-ratio: 16 / 9; }

  .product-layout { grid-template-columns: minmax(0, 1fr); }
  .purchase { position: static; }
  .product { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .buy-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding-top: var(--s-3);
    padding-bottom: calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
    padding-left: max(var(--s-4), env(safe-area-inset-left, 0px));
    padding-right: max(var(--s-4), env(safe-area-inset-right, 0px));
    background: var(--white);
    border-top: 2px solid var(--ink);
    transition: transform 200ms ease;
  }
  .buy-bar.is-tucked { transform: translateY(110%); }
  .buy-bar-info { display: grid; flex: 1; min-width: 0; }
  .buy-bar-name { font-size: var(--t-small); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buy-bar-total { font-size: 18px; font-variant-numeric: tabular-nums; }

  .auth-stage { grid-template-columns: minmax(0, 1fr); }
  .auth-poster { min-height: 300px; padding: var(--s-6); }
  .auth-orbit { left: var(--s-6); bottom: var(--s-6); }

  .account-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-metrics { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .wrap {
    padding-left: max(var(--s-4), env(safe-area-inset-left, 0px));
    padding-right: max(var(--s-4), env(safe-area-inset-right, 0px));
  }
  .section { padding-top: var(--s-8); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .card { padding: var(--s-3); gap: var(--s-3); border-radius: 20px; }
  .logo-tile { width: 48px; height: 48px; }
  .card-title { font-size: 16px; }
  .price { font-size: 18px; }
  .card-go { display: none; }
  .cat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
  .cat-tile { padding: var(--s-3); }
  .search-hero { min-height: 54px; padding-left: 16px; }
  .search-hero .btn { padding-inline: 16px; }
  .sticker { padding: 6px 10px 6px 6px; gap: 8px; }
  .sticker-logo { width: 30px; height: 30px; }
  .sticker-price { font-size: 13px; }
  .sticker-2 { right: 0; }
  .sticker-3 { left: 0; }
  .toolbar { align-items: start; }
  .chips { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .offer-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .offer-tabs::-webkit-scrollbar { display: none; }
  .chips::-webkit-scrollbar { display: none; }
  .offer { grid-template-columns: 18px minmax(0, 1fr); }
  .offer-price { grid-column: 2; }
  .total { font-size: 26px; }
  .order-card { grid-template-columns: 40px minmax(0, 1fr); }
  .order-card > strong { grid-column: 2; }
  .order-logo { width: 40px; height: 40px; padding: 8px; }
  .ledger li { grid-template-columns: minmax(0, 1fr) auto; }
  .ledger time { grid-column: 1; grid-row: 2; }
  .amount-entry { flex-direction: column; }
  .auth-poster h1 { font-size: 38px; }
  .auth-mascot { width: 40%; }
  .auth-orbit img { width: 44px; height: 44px; padding: 10px; }
}

@media (max-width: 380px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
