@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/InterVariable.woff2") format("woff2");
}
:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #1a1d1a;
  --raised: #232723;
  --line: #30362e;
  --text: #f4f6ef;
  --muted: #a3ac9d;
  --accent: #c6f36a;
  --ink: #17220c;
  --red: #ff8f7e;
  --radius: 22px;
  --page-width: min(80.5vw, 1648px);
  --app-safe-top: calc(max(env(safe-area-inset-top, 0px), var(--app-device-top, 0px)) + var(--app-content-top, 0px));
  --app-safe-bottom: calc(max(env(safe-area-inset-bottom, 0px), var(--app-device-bottom, 0px)) + var(--app-content-bottom, 0px));
  --app-safe-left: calc(max(env(safe-area-inset-left, 0px), var(--app-device-left, 0px)) + var(--app-content-left, 0px));
  --app-safe-right: calc(max(env(safe-area-inset-right, 0px), var(--app-device-right, 0px)) + var(--app-content-right, 0px));
  font-family: "Inter", sans-serif;
  font-synthesis: none;
  font-optical-sizing: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: var(--app-viewport-height, 100dvh);
  padding: var(--app-safe-top) var(--app-safe-right)
    calc(105px + var(--app-safe-bottom)) var(--app-safe-left);
}
.fullscreen-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: .8rem;
  color: var(--accent);
  background: var(--surface);
}
.fullscreen-button[hidden] { display: none; }
.admin-entry { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; font-size: .8rem; color: var(--accent); padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.admin-entry[hidden] { display: none; }
.banner-carousel {
  --banner-width: var(--banner-desktop-width, clamp(300px, 38.3vw, 780px));
  --banner-ratio: var(--banner-desktop-ratio, 2.42);
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--banner-desktop-gap, clamp(16px, 1.4vw, 28px));
  padding: 0 max(0px, calc((100% - var(--banner-width)) / 2));
  margin: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
}
.banner-host { padding: 18px 0 12px; }
.banner-host[hidden] { display: none; }
.banner-carousel::-webkit-scrollbar { display: none; height: 0; }
.banner-slot {
  display: block;
  flex: 0 0 var(--banner-width);
  aspect-ratio: var(--banner-ratio);
  min-width: 0;
  scroll-snap-align: center;
}
.banner-card {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  /* Keep the native snap target untransformed: shifting the target itself
     makes the browser settle on different centers depending on direction. */
  transform: translate3d(var(--banner-shift,0px),0,0) scale(var(--banner-scale,.86));
  transform-origin: center;
  background: #444;
}
.banner-card picture { display:block; width:100%; height:100%; }
.banner-card img { display:block; width: 100%; height: 100%; object-fit: cover; user-select: none; }
.preorder-badge { position: absolute; top: 10px; left: 10px; max-width: calc(100% - 58px); padding: 6px 10px; border-radius: 8px; background: #21182de8; border: 1px solid #b594dc; color: #cfb1f5; font-size: .72rem; line-height: 1.2; font-weight: 700; pointer-events: none; }
.preorder-badge ~ .product-badge { top: 46px; }
.preorder-badge.soon-badge { background: #9ebed5; border-color: #9ebed5; color: #162b3a; }
@media (max-width: 360px), (min-width: 761px) and (max-width: 999px) {
  .preorder-badge { padding: 5px 4px; font-size: .64rem; }
}
.pill.preorder-pill { background: #332044; color: #c7a4ff; }
.pill.soon-pill { background: #20303d; color: #9ebed5; }
.preorder-release, .preorder-status, .preorder-cart-release { color: #c7a4ff; }
.detail-copy .preorder-release { margin-top: 8px; }
.soon-release, .soon-status { color: #9ebed5; }
.info.preorder-notice { background: #24192f; border-color: #58416f; color: #e2cef9; }
.info.preorder-notice svg { color: #c7a4ff; }
.info.soon-notice { background: #192732; border-color: #385163; color: #c1d6e5; }
.info.soon-notice svg { color: #9ebed5; }
.detail-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.detail-badges .product-kind { margin-left: 0; }
.price.price-pending { font-size: .95rem !important; line-height: 1.35; white-space: normal; min-width: 0; max-width: 100%; }
.banner-preview { margin: 12px 0 20px; }
.banner-preview img { width: 180px; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; }
.version-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 16px; }
.version-options[hidden] { display: none; }
.version-option { display: flex; flex-direction: column; gap: 6px; justify-content: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; font-size: .8rem; }
.version-option strong { font-weight: 700; letter-spacing: 0; }
.version-option.selected { background: #27351b; border-color: var(--accent); color: var(--accent); }
.banner-carousel.is-dragging { scroll-snap-type: none; scroll-behavior: auto; }
@media (hover:hover) and (pointer:fine) { .banner-carousel, .banner-card { cursor: grab; } }
@media (max-width:760px) {
  .banner-carousel { --banner-width: var(--banner-mobile-width, 68vw); --banner-ratio:var(--banner-mobile-ratio,1.46); gap: var(--banner-mobile-gap,16px); mask-image: none; }
  .banner-card { border-radius: 18px; }
  .banner-host { padding: 18px 0 0; }
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease,
    border-color 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button svg {
  pointer-events: none;
}
svg {
  vertical-align: middle;
  flex-shrink: 0;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}
h2 {
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}
h3 {
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}
p {
  line-height: 1.55;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
  line-height: 1.5;
}
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 650;
}
.accent {
  color: var(--accent);
}
.mode-banner {
  padding: 9px 16px;
  text-align: center;
  background: #29281a;
  color: #e4d59e;
  font-size: 0.8rem;
}
.header {
  border-bottom: 0;
  background: var(--bg);
}
.header-inner {
  position: relative;
  max-width: var(--page-width);
  margin: auto;
  padding: 8px 24px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
@media (min-width: 761px) and (max-width: 999px) {
}
.header-inner > .brand { margin-right: auto; }
.brand {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  caret-color: transparent;
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 1.4rem;
  letter-spacing: -0.045em;
  font-weight: 750;
}
.brand img { display: block; width: 164px; height: auto; cursor: pointer; -webkit-user-drag: none; }
.brand-sub {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 550;
  margin-top: 2px;
}
.console-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 14px;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 0.875rem;
}
.console-chip svg {
  color: var(--accent);
}
.search-wrap {
  position: relative;
  max-width: var(--page-width);
  margin: auto;
  padding: 12px 24px 0;
}
.search {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  background: #191c18;
  padding: 14px 18px;
  border-radius: 14px;
}
.search:focus-within {
  border-color: var(--accent);
}
.search svg {
  color: var(--muted);
}
.search input {
  width: 100%;
  border: 0;
  background: none;
  color: var(--text);
  outline: none;
  font-size: 1rem;
}
.search input:focus-visible {
  outline: none;
}
.search input::placeholder {
  color: #8e9789;
}
.search kbd {
  border: 1px solid #444d3f;
  border-radius: 4px;
  padding: 0 6px;
  color: var(--muted);
}
main {
  max-width: var(--page-width);
  margin: auto;
  padding: 16px 24px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 18px;
  margin-bottom: 25px;
}
.hero {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #26362b;
  isolation: isolate;
  display: flex;
  align-items: center;
}
.hero > img {
  position: absolute;
  height: 100%;
  width: 61%;
  right: 0;
  object-fit: cover;
  z-index: -2;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #1d2c22 8%, #1d2c22ed 35%, #1d2c2230 100%);
  z-index: -1;
}
.hero-copy {
  padding: 32px;
  max-width: 85%;
}
.hero .eyebrow {
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  max-width: 470px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p {
  color: #ced9c7;
  max-width: 260px;
  margin-top: 18px;
}
.hero .primary {
  margin-top: 24px;
}
.how-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #1a1e19;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.how-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 99px;
  background: var(--raised);
  padding: 6px 10px;
  font-size: 0.8rem;
  color: var(--muted);
}
.how-card h2 {
  margin: 16px 0 10px;
  font-size: 1.7rem;
}
.how-card p {
  color: var(--muted);
  font-size: 0.9rem;
}
.how-card .text-button {
  align-self: flex-start;
  margin-top: 20px;
}
.gift-mark {
  color: var(--accent);
}
.primary,
.secondary,
.danger-button {
  border-radius: 12px;
  padding: 13px 20px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 650;
  font-size: 0.95rem;
}
.primary {
  background: var(--accent);
  color: var(--ink);
}
.primary:hover {
  background: #d6ff88;
}
.secondary {
  background: var(--raised);
  border: 1px solid var(--line);
}
.danger-button {
  color: var(--red);
  background: #34251f;
}
.text-button {
  color: var(--accent);
  font-size: 0.9rem;
  padding: 5px 0;
}
.full {
  width: 100%;
}
.tabs {
  display: flex;
  gap: 10px;
  overflow: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 5px;
  margin-bottom: 30px;
}
.tab {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 0.875rem;
  background: var(--surface);
  color: #c6cebf;
}
.tab.active,
.tab:hover {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}
.section {
  margin-bottom: 37px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
}
.section-title > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title h2 { line-height: 1.2; }
.section-title svg {
  color: var(--accent);
}
.count {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: lining-nums tabular-nums;
  flex-shrink: 0;
  align-self: center;
}
.counted-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.counted-heading > span:first-child {
  min-width: 0;
}
.all-button {
  font-size: 0.875rem;
  color: var(--accent);
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
}
.shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 60px) / 4);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}
/* Hide only horizontal collection controls; retain native scrolling and dragging. */
.shelf,
.tabs {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.shelf::-webkit-scrollbar,
.tabs::-webkit-scrollbar {
  display: none;
  height: 0;
}
.shelf.is-dragging,
.tabs.is-dragging {
  scroll-behavior: auto;
  scroll-snap-type: none;
}
.dragging-catalog,
.dragging-catalog * {
  cursor: grabbing !important;
  user-select: none !important;
}
.shelf.is-dragging .cover-button > img {
  transform: none;
}
@media (hover: hover) and (pointer: fine) {
  .shelf,
  .tabs,
  .shelf .cover-button,
  .shelf .game-name {
    cursor: grab;
  }
  .all-button:hover,
  .tab:hover {
    background: #273022;
    border-color: #546345;
  }
}
.game-card {
  min-width: 0;
  scroll-snap-align: start;
  animation: card-enter 260ms ease both;
}
.game-card:nth-child(2) { animation-delay: 20ms; }
.game-card:nth-child(3) { animation-delay: 40ms; }
.game-card:nth-child(4) { animation-delay: 60ms; }
.game-card:nth-child(5) { animation-delay: 80ms; }
.game-card:nth-child(6) { animation-delay: 100ms; }
@keyframes card-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.cover-wrap {
  position: relative;
  border-radius: 17px;
  overflow: hidden;
  background: var(--raised);
  aspect-ratio: 1/1;
}
.cover-button {
  display: block;
  padding: 0;
  width: 100%;
  height: 100%;
}
.cover-button > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}
.cover-button:hover > img {
  transform: scale(1.035);
}
.favorite-button {
  position: absolute;
  right: 10px;
  top: 10px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  background: #11180dbd;
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  backdrop-filter: blur(8px);
}
.favorite-button.selected {
  background: #e2e8de;
  color: #dc3346;
}
.favorite-button.selected svg,
.detail-fav.selected svg {
  color: #dc3346;
  fill: currentColor;
}
.discount-badge {
  display: inline-flex;
  color: var(--ink);
  background: var(--accent);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 750;
  padding: 4px 7px;
}
.cover-wrap > .discount-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
}
.platform-label {
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 13px;
  line-height: 1.5;
  white-space: nowrap;
}
.game-name {
  display: block;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.35;
  padding: 0;
  margin: 5px 0 10px;
  min-height: 2.7em;
  height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}
.price {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}
.game-prices {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 7px;
  min-width: 0;
}
.old-price {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}
.add-button {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #414a37;
  color: var(--accent);
}
.add-button::before {
  content: "";
  position: absolute;
  inset: -8px;
}
.favorite-button svg,
.detail-fav svg,
.add-button svg {
  display: block;
  flex-shrink: 0;
}
.game-card .price-row {
  min-height: 46px;
}
.balance-picker {
  margin: 12px 0 4px;
  font-size: 0.875rem;
}
.cart-remainder {
  margin-top: 40px;
  scroll-margin-top: calc(var(--safe-top, 0px) + 32px);
}
.cart-remainder > .muted { margin: 10px 0 24px; }
.remainder-cover { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.remainder-card .game-name { -webkit-line-clamp: 2; }
.remainder-card > p { margin: 8px 0 0; }
@media (min-width: 761px) {
  .game-card .game-name { margin-bottom: 4px; }
  .game-card .price { font-size: 1.65rem; }
  .game-card .price-row { min-height: 40px; }
}
.add-button.added {
  background: #729934;
  color: var(--ink);
  border-color: #729934;
}
.under-price {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.45;
  height: 2.9em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.empty-section {
  padding: 20px 22px;
  border: 1px dashed var(--line);
  border-radius: 15px;
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.source-note {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  line-height: 1.6;
}
.source-note a {
  text-decoration: underline;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgb(0 0 0 / 64%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border-top: 0;
  padding: 10px max(16px, calc((100vw - 600px) / 2))
    calc(10px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-around;
  gap: 10px;
}
.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 3px 14px;
  color: #919c89;
  font-size: 0.75rem;
  min-width: 74px;
}
.nav-item.active {
  color: var(--accent);
}
.nav-item.active:before {
  content: "";
  position: absolute;
  top: -11px;
  width: 25px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.badge {
  position: absolute;
  top: -4px;
  right: 19px;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.65rem;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
}
.page-head {
  margin: 10px 0 28px;
}
.page-head .eyebrow {
  color: var(--accent);
  margin-bottom: 10px;
}
.page-head p {
  margin-top: 12px;
  color: var(--muted);
}
.back {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  padding: 0 0 20px;
  font-size: 0.9rem;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
}
.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.filter-row label {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 19px;
  height: 19px;
}
.select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  max-width: 100%;
}
.sort-control { position: relative; flex-shrink: 0; max-width: 100%; }
.sort-control summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; padding: 12px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); font-size: .875rem; user-select: none; transition: border-color 160ms, background 160ms; }
.sort-control summary::-webkit-details-marker { display: none; }
.sort-control summary > svg:first-child { color: var(--accent); }
.sort-control summary > svg:last-child { margin-left: 10px; color: var(--muted); transition: transform 160ms; }
.sort-control summary:hover, .sort-control[open] summary { background: var(--raised); border-color: #657c43; }
.sort-control summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sort-control[open] summary > svg:last-child { transform: rotate(180deg); }
.sort-options { position: absolute; right: 0; top: calc(100% + 8px); z-index: 25; width: max(100%, 230px); padding: 6px; background: #191d18f5; -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px #0009; }
.sort-option { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; width: 100%; border-radius: 10px; text-align: left; font-size: .875rem; }
.sort-option:hover, .sort-option:focus-visible { background: var(--raised); }
.sort-option[aria-pressed="true"] { color: var(--accent); background: #c6f36a12; }
@media (max-width: 480px) {
  .filter-row { flex-wrap: wrap; }
  .sort-control { width: 100%; }
  .sort-control summary > span { flex: 1; }
  .sort-options { width: 100%; }
}
.empty {
  padding: 60px 20px;
  text-align: center;
  max-width: 500px;
  margin: auto;
}
.empty > svg {
  color: var(--accent);
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}
.empty h2 {
  margin-bottom: 12px;
}
.empty p {
  color: var(--muted);
  margin-bottom: 22px;
}
.info {
  display: flex;
  gap: 12px;
  background: #20291b;
  border: 1px solid #39482b;
  border-radius: 14px;
  color: #d4e4c4;
  padding: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.info svg {
  margin-top: 2px;
  color: var(--accent);
}
.warning {
  background: #30291b;
  color: #edce95;
  border-color: #51432a;
}
.cart-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.panel h2,
.panel h3 {
  margin-bottom: 18px;
}
.cart-line {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line:first-child {
  padding-top: 0;
}
.cart-line:last-child {
  border-bottom: 0;
}
.cart-cover {
  display: block;
  flex: 0 0 72px;
  padding: 0;
  border-radius: 10px;
}
.cart-cover img {
  display: block;
  width: 72px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}
.cart-game-title { padding: 0; text-align: left; font: inherit; line-height: inherit; }
.cart-game-title:hover { color: var(--accent); }
.cart-games-list:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.cart-selection { min-width: 0; }
.cart-line .line-info {
  flex: 1;
  min-width: 0;
}
.cart-line h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 5px;
}
.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: var(--muted);
  display: grid;
  place-items: center;
  background: var(--raised);
  flex-shrink: 0;
}
.icon-button:hover {
  color: var(--accent);
}
.gift-line {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.gift-card {
  width: 62px;
  height: 75px;
  border-radius: 9px;
  background: linear-gradient(135deg, #d9f6ad, #9abe71);
  color: #243b13;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  position: relative;
  overflow: hidden;
}
.gift-card:before { content: none; }
.gift-line .line-info {
  flex: 1;
}
.quantity {
  background: var(--raised);
  border-radius: 8px;
  padding: 5px 11px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 11px 0;
  font-size: 0.9rem;
}
.summary-row.total {
  border-top: 1px solid var(--line);
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 12px;
  padding-top: 18px;
}
.summary-row.total span:last-child {
  font-size: 1.7rem;
  letter-spacing: 0;
  color: var(--accent);
}
.promo-row {
  display: flex;
  gap: 8px;
  margin: 20px 0 8px;
}
.input {
  background: #11150f;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  padding: 13px 14px;
  width: 100%;
  min-width: 0;
}
.input::placeholder {
  color: #7e8976;
}
.promo-status {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.cart-explain {
  margin-top: 20px;
}
.summary .primary {
  margin-top: 20px;
}
.summary .small {
  margin-top: 14px;
}
.profile-layout {
  max-width: 750px;
}
.console-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
.console-option {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 1.1rem;
}
.console-option svg {
  width: 78px;
  height: 58px;
}
.console-option.selected {
  border: 2px solid var(--accent);
  background: #212b1a;
  color: var(--accent);
  padding: 27px 11px;
}
.profile-menu {
  margin-top: 30px;
  display: grid;
  gap: 12px;
}
.menu-button {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}
.menu-button > span {
  flex: 1;
}
.menu-button svg:first-child {
  color: var(--accent);
}
.order {
  margin-bottom: 16px;
}
.order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.order .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.status {
  border-radius: 99px;
  padding: 6px 10px;
  font-size: 0.8rem;
  background: var(--raised);
}
.status.paid {
  background: #2b3c20;
  color: var(--accent);
}
.status.review,
.status.failed {
  color: var(--red);
}
.loading {
  padding: 80px 20px;
  text-align: center;
  color: var(--muted);
}
.catalog-loading { display: flex; justify-content: center; align-items: center; min-height: 240px; }
.catalog-loading .list-spinner { width: 36px; height: 36px; border-width: 3px; }
body.app-loading { overflow:hidden; }
body.app-loading > :is(.header,.search-wrap,.banner-host,.mode-banner,.bottom-nav,main) { visibility:hidden; pointer-events:none; }
.startup-loader { position:fixed; inset:0; z-index:1000; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:28px; padding:var(--app-safe-top) var(--app-safe-right) var(--app-safe-bottom) var(--app-safe-left); background:var(--bg); }
.startup-loader img { display:block; width:clamp(164px,40vw,240px); max-width:75vw; height:auto; }
.startup-loader .list-spinner { width:36px; height:36px; border-width:3px; flex-shrink:0; }
.startup-noscript { position:fixed; inset:0; z-index:1001; display:grid; place-items:center; padding:24px; background:var(--bg); text-align:center; }
.search-wrap[hidden] { display: none; }
dialog {
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 0;
  max-width: 850px;
  width: calc(100% - 32px);
  max-height: 90dvh;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(8px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.detail-body {
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: start;
}
.detail-cover {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  width: 100%;
}
.detail-artwork { min-width: 0; }
.product-note { margin: 16px 0; }
.product-kind { color: var(--accent); margin-left: 6px; }
.product-badge { position: absolute; top: 10px; left: 10px; max-width: calc(100% - 58px); padding: 5px 7px; border-radius: 7px; background: #10180de8; border: 1px solid #536a38; color: var(--accent); font-size: .65rem; line-height: 1.2; font-weight: 700; pointer-events: none; }
.cart-remove { transition: background 160ms ease, color 160ms ease, transform 160ms ease; }
.cart-remove:hover, .cart-remove:focus-visible { color: #ff6b6b; background: #461919; }
.cart-remove:active { transform: scale(.88); background: #612222; }
.cart-remove[disabled] { color: #ff6b6b; background: #461919; }
.cart-line.removing { opacity: .25; transform: translateX(12px); pointer-events: none; }
.cart-line { transition: opacity 160ms ease, transform 160ms ease; }
.cart-pending { margin: 10px 0; color: var(--accent); }
#product-page[hidden] { display: none; }
body.product-page-active { padding-bottom: var(--app-safe-bottom); background: #000; }
body.product-page-active > header, body.product-page-active > .search-wrap,
body.product-page-active > #view, body.product-page-active > .bottom-nav,
body.product-page-active > #mode-banner, body.product-page-active > .banner-host { display: none; }
#product-page { width: 100%; max-width: 760px; margin: 0 auto; padding: 0; }
#product-page .dialog-head { display: none; }
#product-page .detail-body { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 16px 18px 32px; }
#product-page .detail-cover { display: block; width: 100%; max-width: 360px; margin: 0 auto; }
#product-page .detail-copy { min-width: 0; }
#product-page .detail-copy h2 { overflow-wrap: anywhere; }
#product-page .detail-artwork .game-facts { display: none; }
#product-page .game-facts-mobile { display: grid; }
@media (prefers-reduced-motion: reduce) { .cart-line, .cart-remove { transition: none; } }
.related-addons { margin-top: 24px; }
.related-addons h3 { margin: 0 0 12px; font-size: 1.05rem; }
.related-addon { display: flex; width: 100%; gap: 12px; padding: 14px 0; text-align: left; align-items: center; border-top: 1px solid var(--line); }
.related-addon > img { border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.related-addon > span { display: grid; gap: 5px; min-width: 0; flex: 1; }
.related-addon > span > strong { font-weight: 500; font-size: .85rem; line-height: 1.35; }
.related-addon > strong { flex-shrink: 0; font-size: .9rem; white-space: nowrap; }
.related-addon > svg { flex-shrink: 0; }
@media (max-width: 480px) {
  .platform-label { font-size: clamp(.6rem, 2.95vw, .72rem); letter-spacing: .04em; }
  .related-addon { gap: 8px; flex-wrap: wrap; }
  .related-addon > span { flex-basis: calc(100% - 64px); }
  .related-addon > strong { margin-left: 64px; }
}
.game-facts {
  margin: 20px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 16px;
  font-size: .85rem;
}
.game-facts-mobile { display: none; }
.game-fact dt {
  color: var(--muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.game-fact dd {
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.flag-ru {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid #ffffff30;
  background: linear-gradient(to bottom, #fff 0 33.333%, #2351ad 33.333% 66.667%, #d52b36 66.667%);
  flex-shrink: 0;
}
.game-facts .small { margin-top: 4px; }
.detail-copy h2,
.cart-line h3 {
  font-weight: 500;
  letter-spacing: -0.05em;
}
.detail-copy h2 {
  font-size: 1.9rem;
  line-height: 1.15;
  margin: 10px 0 18px;
}
.detail-copy .price {
  font-size: 2rem;
}
.detail-copy .info {
  margin: 20px 0;
}
.detail-copy .primary {
  margin-top: 18px;
}
.detail-cart,
.checkout-button {
  position:relative;
  isolation:isolate;
  overflow:hidden;
}
.detail-cart {
  background:#26321e;
  color:var(--accent);
  box-shadow:inset 0 0 0 1px #536b38,0 0 18px #9cdb5014;
}
.detail-cart:not(.added):hover { background:#2e3d24; }
.detail-cart:not(.added)::before,
.detail-cart:not(.added)::after,
.checkout-button::before,
.checkout-button::after {
  content:"";
  position:absolute;
  pointer-events:none;
  z-index:-1;
  animation:detail-cart-sheen 3.2s cubic-bezier(.4,0,.2,1) infinite;
}
.detail-cart:not(.added)::before,
.checkout-button::before {
  inset:0 auto 0 -65%;
  width:65%;
  --cart-sheen-travel:260%;
  background:linear-gradient(110deg,transparent 16%,#c6f36a0a 35%,#dfff9b38 50%,#c6f36a0a 65%,transparent 84%);
}
.detail-cart:not(.added)::after,
.checkout-button::after {
  bottom:0;
  left:-25%;
  width:25%;
  height:2px;
  --cart-sheen-travel:520%;
  background:linear-gradient(90deg,transparent,#dfff9ba6,transparent);
}
.detail-cart:disabled::before,.detail-cart:disabled::after { animation-play-state:paused; }
.checkout-button,.checkout-button:hover { background:var(--accent); color:var(--ink); }
.checkout-button::before { background:linear-gradient(110deg,transparent 5%,#54842b08 15%,#54842b18 26%,#54842b30 38%,#88b54a28 48%,#c9ef9a24 58%,#efffc75c 70%,#e0ffb638 80%,#d6ffac10 90%,transparent 100%); }
.checkout-button:disabled::before,.checkout-button:disabled::after { animation:none; opacity:0; }
@keyframes detail-cart-sheen {
  0%,8% { transform:translateX(0); opacity:0; }
  20%,60% { opacity:1; }
  78%,100% { transform:translateX(var(--cart-sheen-travel)); opacity:0; }
}
.detail-cart.added,.detail-cart.added:hover {
  background:var(--accent);
  color:var(--ink);
  box-shadow:none;
}
.detail-source {
  color: var(--muted);
  text-decoration: underline;
  display: block;
  margin-top: 16px;
  font-size: 0.85rem;
}
.detail-desc {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.detail-fav {
  margin-top: 10px;
  line-height: 1;
  align-items: center;
}
.detail-fav.selected {
  background: #e2e8de;
  border-color: #e2e8de;
  color: #17220c;
}
dialog[open] {
  animation: dialog-enter 260ms cubic-bezier(.22,.8,.25,1);
}
dialog[open]::backdrop {
  animation: backdrop-enter 220ms ease;
}
@keyframes dialog-enter {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
.nav-item,
.all-button,
.tab,
.menu-button {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.nav-item:active svg {
  transform: scale(.9);
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.admin-tabs { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 24px; }
.admin-tabs button[aria-pressed=true] { border-color:var(--accent); background:#26321c; color:var(--accent); }
.admin-tools { margin-bottom:20px; }
[data-admin-scope][hidden] { display:none !important; }
.admin-grid label[hidden],.admin-grid .banner-preview[hidden] { display:none; }
.section-setting { display:grid; grid-template-columns:minmax(0,1fr) 110px 180px; align-items:start; gap:20px; padding:16px 0; border-bottom:1px solid var(--line); }
.section-setting .field { margin:0; min-width:0; }
.section-setting-options { padding-top:24px; display:grid; gap:10px; }
.section-settings-list { margin-bottom:22px; }
.row-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.device-settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin-bottom:24px; }
.device-settings, .permission-fields { border:1px solid var(--line); border-radius:16px; padding:20px; min-width:0; }
.device-settings legend, .permission-fields legend { padding:0 8px; font-weight:700; }
.device-settings > .check-label { margin-bottom:20px; }
.carousel-card-setting { border-top:1px solid var(--line); padding-top:20px; margin-top:20px; }
.carousel-card-setting h3 { margin-bottom:14px; }
.carousel-card-setting .check-label { margin-bottom:14px; }
.permission-fields { display:flex; flex-wrap:wrap; gap:16px 24px; margin-bottom:16px; }
.user-search { display:flex; align-items:end; gap:12px; margin:20px 0; }
.user-search .field { flex:1; margin:0; min-width:0; }
.danger { color:#f1a9a9; }
.admin-roster-heading { margin-top:28px; margin-bottom:16px; }
.catalogue-entry { display:flex; justify-content:flex-end; margin-bottom:18px; }
.catalogue-entry a { display:inline-flex; align-items:center; gap:8px; }
.catalogue-filters { display:flex; align-items:end; flex-wrap:wrap; gap:14px; margin-bottom:20px; }
.catalogue-filters .field { min-width:190px; margin:0; flex:1; }
.catalogue-filters .select { width:100%; min-height:46px; }
.catalogue-filters > button { min-height:46px; }
.rating-source { display:block; font-size:.75rem; font-weight:400; margin-top:5px; color:var(--muted); }
.age-dialog { width:min(440px,calc(100vw - 32px)); max-height:calc(100dvh - 40px); margin:auto; padding:0; border:1px solid var(--line); border-radius:24px; background:var(--bg); color:var(--text); overflow-y:auto; }
.age-dialog::backdrop { background:rgba(0,0,0,.78); backdrop-filter:blur(16px); }
.age-dialog-content { padding:28px; }
.age-mark { display:inline-flex; align-items:center; justify-content:center; min-width:52px; padding:8px 12px; border-radius:10px; background:#2b2f2c; color:#b7bdb5; font-weight:800; margin-bottom:18px; overflow:hidden; transition:background-color .26s ease,color .26s ease; }
.age-mark[data-age-band="10"] { background:#18384d; color:#94d4ff; }
.age-mark[data-age-band="13"] { background:#263b1d; color:#aee970; }
.age-mark[data-age-band="16"] { background:#332044; color:#d5b9ff; }
.age-mark-value { display:block; }
html[data-zoom-locked="true"], html[data-zoom-locked="true"] body { touch-action:pan-x pan-y; }
@media(prefers-reduced-motion:reduce){.age-mark{transition:none;}}
.age-dialog h2 { font-size:1.55rem; margin-bottom:12px; }
.age-form { margin-top:24px; }
.age-form[hidden] { display:none; }
.age-form .small { margin-bottom:16px; }
.age-error { color:#f1a9a9; margin-bottom:14px; }
.age-dialog [data-age-close] { margin-top:14px; min-height:44px; }
@media(max-width:600px){.catalogue-filters .field{min-width:0;flex-basis:calc(50% - 7px);}.catalogue-filters .select{font-size:.8rem;padding:10px 6px;}.age-dialog-content{padding:22px;}}
@media(max-width:900px){.device-settings-grid{grid-template-columns:1fr;}}
@media(max-width:600px){
 .admin-tabs{gap:8px;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:6px;scrollbar-width:thin;} .admin-tabs button{font-size:.8rem;padding:10px;flex:0 0 auto;}
 .section-setting{grid-template-columns:minmax(0,1fr) 86px;gap:12px;}
 .section-setting-options{grid-column:1/-1;display:flex;justify-content:space-between;padding-top:0;}
 .device-settings{padding:14px;} .user-search{flex-wrap:wrap;}
}
.admin-grid > .wide {
  grid-column: 1/-1;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.875rem;
  margin-bottom: 14px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.admin-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.admin-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-item .grow {
  flex: 1;
  min-width: 120px;
}
.admin-form {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.selected-games {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.selected-game {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  background: var(--raised);
  padding: 7px 10px;
  border-radius: 9px;
}
.selected-game > span {
  flex: 1;
}
.selected-game button {
  color: var(--accent);
  padding: 5px;
}
.lookup-results {
  max-height: 230px;
  overflow: auto;
}
.lookup-item {
  display: flex;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 9px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 0.85rem;
}
.lookup-item img {
  width: 35px;
  height: 35px;
  border-radius: 5px;
}
.lookup-item span {
  flex: 1;
}
.check-label {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 0.9rem;
  margin: 14px 0;
}
.admin-log {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.85rem;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #e2eccf;
  color: #17220c;
  padding: 13px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 40px #0006;
  max-width: calc(100% - 32px);
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: all 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.list-end {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 72px;
  padding: 16px 0;
  color: var(--muted);
  font-size: .85rem;
  overflow-anchor: none;
}
.list-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: list-spin 700ms linear infinite;
}
@keyframes list-spin { to { transform: rotate(360deg); } }
.checkboxes {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.legal-copy {
  max-width: 700px;
}
.legal-copy p {
  margin: 14px 0;
  color: var(--muted);
}
@media (min-width: 1000px) {
  .hero-copy {
    padding: 36px;
  }
}
@media (max-width: 760px) {
  :root { --page-width: 100%; }
  .header-inner { position: relative; min-height: 76px; }
  .header-inner > .brand { margin: 0 auto; }
  .header-inner > .admin-entry { position: absolute; right: 16px; padding: 8px; font-size: .7rem; }
  .header-inner > .fullscreen-button { position: absolute; left: 16px; }
  .fullscreen-button { min-width: 44px; min-height: 44px; justify-content: center; padding: 8px; }
  .fullscreen-button > span { display: none; }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .how-card {
    display: none;
  }
  .header-inner {
    padding: 8px 20px;
  }
  .search-wrap {
    padding: 12px 20px 0;
  }
  main {
    padding: 16px 20px;
  }
  .shelf {
    --shelf-space: 32px;
    --shelf-columns: 2.3;
    grid-auto-columns: calc((100% - var(--shelf-space)) / var(--shelf-columns));
    gap: 16px;
  }
  .cart-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-grid > .wide {
    grid-column: auto;
  }
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 16px;
  }
  .hero {
    min-height: 300px;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .hero-copy {
    padding: 28px;
  }
  .hero p {
    max-width: 230px;
  }
  .section-title h2 {
    font-size: 1.5rem;
  }
  .detail-body {
    gap: 20px;
  }
  .tabs {
    margin-bottom: 24px;
  }
  .section {
    margin-bottom: 28px;
  }
}
@media (max-width: 480px) {
  .header-inner {
    padding: 8px 16px;
  }
  .brand {
    font-size: 1.25rem;
  }
  .brand img {
    width: clamp(140px, 42vw, 164px);
    height: auto;
  }
  .brand-sub {
    font-size: 0.5rem;
  }
  .console-chip {
    padding: 9px 11px;
    font-size: 0.75rem;
    gap: 6px;
  }
  .console-chip svg {
    width: 17px;
  }
  .search-wrap {
    padding: 10px 16px 0;
  }
  .search {
    padding: 13px 14px;
  }
  .search input {
    font-size: 0.9rem;
  }
  .search kbd {
    display: none;
  }
  main {
    padding: 14px 16px;
  }
  .mode-banner {
    font-size: 0.72rem;
    padding: 7px;
  }
  .hero {
    min-height: 294px;
    border-radius: 19px;
  }
  .hero-copy {
    padding: 25px;
    max-width: 100%;
  }
  .hero h1 {
    font-size: 2.6rem;
    max-width: 300px;
  }
  .hero .eyebrow {
    font-size: 0.7rem;
    margin-bottom: 18px;
  }
  .hero p {
    font-size: 0.85rem;
    max-width: 205px;
    margin-top: 12px;
  }
  .hero .primary {
    margin-top: 20px;
    padding: 11px 17px;
    min-height: 44px;
    font-size: 0.85rem;
  }
  .hero > img {
    width: 75%;
    right: -18%;
    opacity: 0.8;
  }
  .hero:after {
    background: linear-gradient(90deg, #1d2c22 4%, #1d2c22dc 44%, #1d2c2210);
  }
  .hero-grid {
    margin-bottom: 20px;
  }
  .tabs {
    gap: 8px;
    margin-bottom: 26px;
  }
  .tab {
    font-size: 0.8rem;
    padding: 9px 13px;
  }
  .shelf {
    --shelf-space: 20px;
    --shelf-columns: 2.08;
    grid-auto-columns: calc((100% - var(--shelf-space)) / var(--shelf-columns));
    gap: 14px;
    margin-right: -16px;
    padding-right: 16px;
  }
  .cover-wrap {
    border-radius: 13px;
  }
  .favorite-button {
    width: 32px;
    height: 32px;
    right: 8px;
    top: 8px;
  }
  .price {
    font-size: 1.15rem;
  }
  .game-name {
    font-size: 0.9rem;
    min-height: 2.7em;
  }
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 14px;
  }
  .section-title {
    margin-bottom: 16px;
  }
  .section-title h2 {
    font-size: 1.4rem;
  }
  .section-title > div {
    gap: 7px;
  }
  .section-title > div > svg {
    width: 20px;
  }
  .count {
    font-size: 0.75rem;
  }
  .all-button {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  .bottom-nav {
    padding-left: 9px;
    padding-right: 9px;
    gap: 0;
  }
  .nav-item {
    padding: 4px 8px;
    font-size: 0.68rem;
    gap: 5px;
    min-width: 66px;
  }
  .nav-item svg {
    width: 22px;
    height: 22px;
  }
  .badge {
    right: 12px;
  }
  .panel {
    padding: 20px;
    border-radius: 18px;
  }
  .cart-line {
    gap: 12px;
  }
  .cart-line > img {
    width: 60px;
    height: 66px;
  }
  .cart-line h3 {
    font-size: 0.9rem;
  }
  .info {
    font-size: 0.85rem;
  }
  .console-option {
    font-size: 0.95rem;
  }
  .console-option svg {
    width: 66px;
  }
  .console-grid {
    gap: 12px;
  }
  .detail-body {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .detail-cover {
    max-width: 230px;
    margin: auto;
  }
  .detail-artwork > .game-facts { display: none; }
  .game-facts-mobile { display: grid; }
  .detail-copy h2 {
    font-size: 1.8rem;
  }
  .detail-desc {
    grid-column: auto;
  }
  .detail-copy .info {
    margin: 16px 0;
  }
  dialog {
    border-radius: 22px 22px 0 0;
    width: 100%;
    max-width: 100%;
    max-height: 94dvh;
    margin: auto 0 0;
    border-bottom: 0;
  }
  .dialog-head {
    padding: 14px 20px;
  }
  .empty-section {
    padding: 16px;
    font-size: 0.85rem;
  }
  .filter-row {
    gap: 9px;
  }
  .filter-row label {
    font-size: 0.8rem;
  }
  .select {
    font-size: 0.85rem;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .page-head h1 {
    font-size: 2.2rem;
  }
}
/* Apply safe areas after responsive rules, including landscape cutouts. */
.bottom-nav {
  padding-bottom: calc(10px + var(--app-safe-bottom));
  padding-left: max(9px, var(--app-safe-left), calc((100vw - 600px) / 2));
  padding-right: max(9px, var(--app-safe-right), calc((100vw - 600px) / 2));
}
dialog {
  inset: var(--app-safe-top) var(--app-safe-right) var(--app-safe-bottom) var(--app-safe-left);
  margin: auto;
  max-height: min(90dvh, calc(var(--app-viewport-height, 100dvh) - var(--app-safe-top) - var(--app-safe-bottom) - 16px));
  max-width: min(850px, calc(100% - var(--app-safe-left) - var(--app-safe-right) - 16px));
}
#game-dialog {
  position: fixed;
  inset: 0 var(--app-safe-right) 0 var(--app-safe-left);
  margin: auto;
  max-height: calc(min(100dvh, var(--app-viewport-height, 100dvh)) - 2 * max(16px, var(--app-safe-top), var(--app-safe-bottom)));
  height: fit-content;
  overflow: hidden;
}
#game-dialog[open] { display: flex; flex-direction: column; }
#game-dialog .dialog-head { flex: 0 0 auto; outline: none; }
#game-dialog .detail-body { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
#toast {
  bottom: calc(90px + var(--app-safe-bottom));
  max-width: calc(100% - var(--app-safe-left) - var(--app-safe-right) - 32px);
}
@media (max-width: 480px) {
  dialog {
    margin: auto 0 0;
    width: calc(100% - var(--app-safe-left) - var(--app-safe-right));
    max-width: calc(100% - var(--app-safe-left) - var(--app-safe-right));
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  dialog::backdrop { animation: none !important; }
}

.genre-strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 16px; margin-bottom: 8px; touch-action: pan-x pan-y; }
.genre-strip::-webkit-scrollbar { display: none; }
.genre-button { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--raised); color: var(--text); white-space: nowrap; text-decoration: none; }
.genre-button:hover, .genre-button:focus-visible { color: var(--accent); border-color: var(--accent); }

html { scrollbar-gutter: stable; }
.browser-auth-dialog { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 32px; border: 1px solid var(--line); border-radius: 24px; color: var(--text); background: var(--surface); }
.browser-auth-dialog::backdrop { background: #000a; backdrop-filter: blur(7px); }
.browser-auth-dialog [hidden] { display: none !important; }
.browser-auth-dialog h2 { margin: 12px 0; font-size: 1.65rem; }
.browser-auth-close { position: absolute; top: 10px; right: 14px; padding: 6px 12px; background: transparent; border: 0; color: var(--muted); font-size: 28px; }
.browser-auth-code { margin: 24px 0; padding: 20px; border-radius: 16px; background: var(--raised); color: var(--accent); text-align: center; font-size: 2rem; font-weight: 700; letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.browser-auth-dialog [data-login-status] { min-height: 3em; line-height: 1.5; color: var(--muted); }
.browser-auth-dialog .primary, .browser-auth-dialog .secondary { width: 100%; margin-top: 16px; text-align: center; justify-content: center; }
.browser-login-panel { max-width: 600px; margin: 28px auto; padding: 28px; text-align: center; }
.browser-login-panel .primary { margin-top: 12px; }
.category-strips { margin: 0 0 16px; }
.category-strips .genre-strip { margin-bottom: 0; padding-bottom: 10px; }
.genre-button.is-selected { color: var(--accent); background: #29371c; border-color: var(--accent); }
.age-strip .genre-button { font-size: .85rem; min-height: 40px; padding: 8px 16px; }
.game-skeleton { min-width: 0; }
.skeleton-cover { aspect-ratio: 1; border-radius: var(--radius); background: var(--surface); }
.skeleton-line { height: 18px; margin: 16px 0 0; border-radius: 6px; background: var(--surface); }
.skeleton-line.short { width: 65%; height: 12px; }
.skeleton-line.price { width: 52%; height: 28px; margin-top: 24px; }
.date-wheel { position: relative; display: grid; grid-template-columns: .8fr 1.35fr 1fr; gap: 6px; margin: 22px 0 14px; }
.wheel-column { min-width: 0; z-index: 1; }
.wheel-label { display: block; color: var(--muted); font-size: .75rem; text-align: center; margin-bottom: 8px; height: 18px; }
.wheel-list { height: 200px; padding: 80px 0; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: none; touch-action: pan-y; border-radius: 12px; mask-image: linear-gradient(transparent,black 30%,black 70%,transparent); }
.wheel-list::-webkit-scrollbar { display: none; }
.wheel-list:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.wheel-option { height: 40px; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; color: var(--muted); user-select: none; cursor: grab; font-size: 1rem; }
.wheel-option[aria-selected="true"] { color: var(--text); font-weight: 650; }
.wheel-highlight { position: absolute; top: 106px; height: 40px; left: 0; right: 0; background: #c6f36a10; border-top: 1px solid #c6f36a50; border-bottom: 1px solid #c6f36a50; border-radius: 8px; pointer-events: none; }
.wheel-list.wheel-dragging { scroll-snap-type: none; cursor: grabbing; }
.age-dialog .primary:disabled { opacity: .4; cursor: default; }
@media(max-width:360px) { .age-dialog-content { padding: 20px 14px; } .wheel-option { font-size: .88rem; } }

/* Catalogue navigation and filter sheets share the shop's existing palette. */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.home-genres { gap:24px; padding:4px 0 16px; margin:4px 0 24px; scroll-snap-type:x proximity; }
.home-genre { display:flex; flex:0 0 86px; flex-direction:column; align-items:center; gap:10px; text-align:center; font-size:.84rem; font-weight:600; line-height:1.3; scroll-snap-align:start; cursor:pointer; user-select:none; }
.home-genre img { display:block; width:76px; height:76px; border-radius:20px; transition:transform .18s ease; }
.home-genre:hover img { transform:translateY(-3px); }
.home-genre:focus-visible { outline:2px solid var(--accent); outline-offset:3px; border-radius:12px; }
.new-releases-section { min-width:0; padding:24px; border:1px solid var(--line); border-radius:24px; background:var(--surface); overflow:hidden; }
.new-releases-section > .shelf { width:100%; min-width:0; margin:0; padding:0 0 4px; grid-auto-columns:max(180px,calc((100% - 60px) / 4)); }
.new-releases-badge { display:block; flex-shrink:0; width:40px; height:auto; object-fit:contain; }
.catalogue-toolbar { display:flex; gap:10px; align-items:center; overflow-x:auto; scrollbar-width:none; padding:4px 0 10px; margin:0 0 22px; }
.catalogue-toolbar::-webkit-scrollbar { display:none; }
.catalogue-filter { display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 18px; border:1px solid transparent; border-radius:100px; background:var(--raised); color:var(--text); font-size:.9rem; font-weight:600; white-space:nowrap; }
.catalogue-filter.is-selected { color:var(--accent); border-color:var(--accent); background:#28321e; }
.catalogue-filter:disabled { opacity:.45; cursor:wait; }
.catalogue-clear { flex:0 0 auto; padding:10px; color:var(--accent); font-size:.85rem; min-height:44px; }
body.filter-sheet-open { overflow:hidden; }
.catalogue-toolbar button:focus-visible,.catalogue-sheet button:focus-visible { outline-offset:-3px; }
.catalogue-sheet { width:min(540px,calc(100% - 40px)); max-width:540px; max-height:calc(var(--app-viewport-height,100dvh) - var(--app-safe-top) - var(--app-safe-bottom) - 40px); margin:auto; padding:0; border:1px solid var(--line); border-radius:28px; background:var(--surface); color:var(--text); overflow:hidden; box-shadow:0 24px 90px #0008; transform:translate3d(0,var(--sheet-offset,0px),0); transition:transform var(--sheet-duration,260ms) cubic-bezier(.22,.61,.36,1); }
.catalogue-sheet.is-swiping { animation:none; transition:none; }
.catalogue-sheet.is-dismissing { animation:none; transform:translate3d(0,var(--sheet-exit-offset,100dvh),0); pointer-events:none; }
.catalogue-sheet .sheet-handle,.catalogue-sheet .filter-sheet-head,.catalogue-sheet h2 { touch-action:none; user-select:none; cursor:grab; }
.catalogue-sheet.is-swiping .sheet-handle,.catalogue-sheet.is-swiping .filter-sheet-head,.catalogue-sheet.is-swiping h2 { cursor:grabbing; }
.catalogue-sheet[open] { display:flex; flex-direction:column; animation:none; will-change:transform; }
.catalogue-sheet::backdrop { background:#0009; backdrop-filter:blur(8px); transition:opacity 260ms ease; }
.catalogue-sheet.is-dismissing::backdrop { animation:none; opacity:0; }
.sheet-handle { display:none; }
.filter-sheet-head { position:relative; display:flex; flex:0 0 auto; align-items:center; justify-content:flex-end; padding:20px 26px 8px; font-size:.88rem; font-weight:600; color:var(--text); }
.filter-sheet-head > span { position:absolute; left:50%; transform:translateX(-50%); }
.filter-cancel { padding:10px 0 10px 16px; min-height:44px; font-size:.95rem; color:var(--accent); font-weight:500; }
.filter-sheet-body { padding:12px 26px 26px; min-height:0; overflow-y:auto; overscroll-behavior:contain; }
.filter-sheet-body h2 { font-size:1.8rem; letter-spacing:-.04em; line-height:1.15; margin:0 0 26px; outline:none; }
.filter-sheet-footer { flex:0 0 auto; padding:4px 26px 26px; }
.filter-sheet-footer .primary { display:flex; width:100%; min-height:54px; justify-content:center; font-size:1rem; border-radius:16px; }
.filter-choices { display:flex; flex-wrap:wrap; gap:10px; }
.filter-hint { margin:0 0 18px; color:var(--muted); font-size:.85rem; line-height:1.45; }
.filter-choice { min-height:44px; padding:12px 17px; border:1px solid var(--line); border-radius:13px; background:var(--raised); color:var(--text); font-size:.95rem; font-weight:600; }
.filter-choice.is-selected { border-color:var(--accent); color:var(--accent); background:#28321e; }
.filter-note { margin:22px 0 0; color:var(--muted); font-size:.84rem; line-height:1.5; }
.sheet-sort-options { border:1px solid var(--line); background:var(--raised); border-radius:18px; padding:0 18px; }
.sheet-sort-option { display:flex; gap:16px; align-items:center; width:100%; text-align:left; padding:20px 0; min-height:64px; color:var(--text); font-size:1rem; font-weight:600; border-bottom:1px solid var(--line); }
.sheet-sort-option:last-child { border-bottom:0; }
.filter-radio { flex:0 0 24px; height:24px; border:2px solid #6c7567; border-radius:50%; }
.sheet-sort-option.is-selected .filter-radio { border:7px solid var(--accent); background:var(--ink); }
.price-inputs { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.price-inputs label { display:flex; align-items:center; gap:8px; border:1px solid var(--line); padding:14px 16px; border-radius:14px; background:var(--raised); }
.price-inputs label:focus-within { border-color:var(--accent); }
.price-inputs label span { flex:0 0 auto; color:var(--muted); font-size:.85rem; }
.price-inputs input { width:100%; min-width:0; padding:0; border:0; background:none; color:var(--text); font:inherit; font-weight:600; appearance:textfield; outline:none; }
.price-inputs input::-webkit-inner-spin-button { appearance:none; }
.price-range { position:relative; height:44px; margin:24px 0 0; }
.price-range-track { position:absolute; height:5px; inset:20px 12px auto; border-radius:5px; background:#4d5547; }
.price-range-fill { position:absolute; top:0; height:5px; border-radius:5px; background:var(--accent); }
.price-range input { appearance:none; position:absolute; width:100%; height:44px; inset:0; margin:0; border:0; padding:0; background:transparent; pointer-events:none; }
.price-range input::-webkit-slider-thumb { appearance:none; width:26px; height:26px; background:var(--accent); border:2px solid var(--surface); border-radius:50%; pointer-events:auto; cursor:ew-resize; box-shadow:0 0 0 2px var(--accent); }
.price-range input::-moz-range-thumb { width:24px; height:24px; background:var(--accent); border:2px solid var(--surface); border-radius:50%; pointer-events:auto; cursor:ew-resize; }
.price-range input:focus-visible { outline:2px solid var(--accent); outline-offset:3px; border-radius:20px; }
.price-range-labels { display:flex; justify-content:space-between; color:var(--muted); font-size:.8rem; margin-top:4px; }
.filter-error { min-height:1.5em; color:var(--red); font-size:.83rem; margin:16px 0 4px; }
.filter-error:empty { display:none; }
.filter-reset { color:var(--accent); min-height:44px; padding:6px 0; font-size:.9rem; }
@media(max-width:760px) {
 .new-releases-section { padding:18px 14px; margin-left:-6px; margin-right:-6px; border-radius:20px; }
 /* Restore the 18px consumed by panel padding/borders minus its outer margins,
    so covers match the ordinary shelves at both mobile breakpoints. */
 .new-releases-section > .shelf { grid-auto-columns:calc((100% + 18px - var(--shelf-space)) / var(--shelf-columns)); }
 html { scrollbar-gutter:auto; }
 .home-genres { gap:16px; margin:2px 0 18px; }
 .home-genre { flex-basis:62px; gap:8px; font-size:.76rem; }
 .home-genre img { width:58px; height:58px; border-radius:16px; }
 .catalogue-toolbar { gap:8px; margin-bottom:18px; }
 .catalogue-filter { min-height:42px; padding:10px 16px; font-size:.86rem; }
 .catalogue-filter[data-filter=sort] { padding:10px 12px; }
 .desktop-sort-label { display:none; }
 .catalogue-sheet { width:calc(100% - var(--app-safe-left) - var(--app-safe-right)); max-width:none; max-height:calc(var(--app-viewport-height,100dvh) - var(--app-safe-top) - 24px); margin:auto 0 0; border-radius:28px 28px 0 0; border-bottom:0; background:#1a1d1af5; }
 .sheet-handle { position:relative; display:block; flex:0 0 24px; height:24px; width:100%; background:transparent; margin:0; }
 .sheet-handle::after { content:''; position:absolute; top:12px; left:50%; width:42px; height:4px; border-radius:4px; background:#697162; translate:-50% 0; }
 .filter-sheet-head { padding:8px 24px 6px; }
 .filter-sheet-body { padding:14px 24px 22px; }
 .filter-sheet-body h2 { font-size:1.7rem; margin-bottom:24px; }
 .filter-sheet-footer { padding:6px 24px calc(24px + var(--app-safe-bottom)); }
}
@media(max-width:360px) {
 .filter-sheet-body { padding-left:18px; padding-right:18px; }
 .filter-sheet-footer { padding-left:18px; padding-right:18px; }
 .price-inputs { gap:10px; }
 .price-inputs label { gap:6px; padding:14px 10px; }
}
/* Cart columns use normal page flow and the standard panel dimensions. */
@media (min-width:761px) {
 body.cart-page-active #view > .page-head { margin:0 0 16px; }
 body.cart-page-active #view > .page-head h1 { font-size:2.4rem; line-height:1.15; }
 .cart-layout { grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); }
 .cart-layout > .summary { min-width:0; }
}
@media (min-width:761px) and (max-height:740px) {
 body.cart-page-active .header-inner { padding-top:4px; padding-bottom:4px; }
 body.cart-page-active .brand img { width:140px; }
 body.cart-page-active #view { padding-top:8px; }
 body.cart-page-active #view > .page-head { margin-bottom:8px; }
 body.cart-page-active #view > .page-head h1 { font-size:2rem; }
}
.order-games{margin:20px 0;padding-left:22px;line-height:1.55}.order-games li+li{margin-top:7px}.status.cancelled{color:var(--muted)}.status.cancelling{color:#e0c989}
/* Administrator cabinet, based on the supplied desktop layouts. */
body.admin-page-active { background:#1a1a1a; padding-bottom:var(--app-safe-bottom); }
.admin-page-active > .header, .admin-page-active > .search-wrap, .admin-page-active > .bottom-nav { display:none; }
.admin-page-active #view { width:100%; max-width:none; padding:0; margin:0; }
.admin-shell { display:grid; grid-template-columns:240px minmax(0,1fr); min-height:calc(100dvh - var(--app-safe-top)); }
.admin-shell .admin-tabs { display:flex; flex-direction:column; align-items:stretch; align-self:start; position:sticky; top:var(--app-safe-top); min-height:calc(100dvh - var(--app-safe-top)); background:#000; padding:26px 16px; margin:0; gap:8px; overflow:visible; }
.admin-brand { display:block; padding:4px 10px 24px; }
.admin-brand img { display:block; width:180px; max-width:100%; height:auto; }
.admin-shell .admin-tabs .secondary { display:flex; justify-content:flex-start; gap:12px; min-height:42px; border:0; border-radius:8px; font-size:.86rem; background:transparent; color:#e4e4e4; text-align:left; padding:10px 12px; }
.admin-shell .admin-tabs .secondary[aria-pressed=true] { background:#191919; color:var(--accent); box-shadow:none; }
.admin-content { min-width:0; padding:32px 36px 48px; }
.admin-content .admin-tools, .admin-content .admin-grid { display:block; }
.admin-content [hidden] { display:none !important; }
.admin-content .panel { background:#000; border:0; border-radius:16px; padding:30px; margin:0 0 28px; min-width:0; }
.admin-content h2 { font-size:1.35rem; letter-spacing:-.02em; line-height:1.25; margin:0 0 26px; }
.admin-content h3 { font-size:1.18rem; margin:0 0 18px; }
.admin-content .field { font-size:.8rem; gap:8px; margin:0; min-width:0; }
.admin-content .input, .admin-content .select { min-height:42px; background:#181818; border:1px solid transparent; border-radius:7px; padding:10px 14px; font-size:.85rem; width:100%; }
.admin-content textarea.input { min-height:70px; resize:vertical; }
.admin-content .input:focus-visible { border-color:var(--accent); }
.admin-content .secondary,.admin-content .icon-button,.admin-content .check-label { background:#181818; border:0; border-radius:7px; }
.admin-content .primary { border-radius:7px; min-height:42px; padding:11px 22px; font-size:.83rem; }
.admin-content .secondary { min-height:42px; padding:10px 16px; font-size:.83rem; }
.admin-content .icon-button { min-width:40px; width:40px; height:40px; }
.admin-content .check-label { display:flex; align-items:center; gap:10px; white-space:nowrap; padding:10px 14px; font-size:.8rem; margin:0; }
.admin-content input[type=checkbox] { accent-color:var(--accent); width:18px; height:18px; flex-shrink:0; }
.admin-content .admin-form { gap:16px; margin-top:0; }
.admin-content .section-setting { display:flex; flex-wrap:nowrap; align-items:flex-end; padding:0 0 24px; margin-bottom:22px; border:0; border-bottom:2px solid #191919; gap:10px; }
.admin-content .section-setting>.field { flex:1; }
.admin-content .section-setting-options { display:flex; align-items:center; flex-wrap:nowrap; gap:10px; }
.section-kind { display:inline-flex; min-height:39px; align-items:center; justify-content:center; border:2px solid #b05df9; color:#b873ff; border-radius:7px; padding:7px 10px; font-size:.75rem; font-weight:700; white-space:nowrap; }
.section-kind.custom { border-color:#ffbf00; color:#ffbf00; }
.admin-content .admin-item { align-items:center; gap:12px; padding:18px 0; border-color:#202020; }
.admin-content .admin-item .field { width:100%; }
.admin-content .admin-item .small { margin:8px 0 0; font-size:.75rem; }
.admin-content .device-settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.admin-content .device-settings { background:#191919; border:0; border-radius:12px; padding:20px; min-width:0; }
.admin-content .device-settings legend { padding:0 0 10px; font-size:.8rem; }
.admin-content .device-settings .fields { display:grid; grid-template-columns:1fr; gap:14px; margin-top:16px; }
.admin-banner-preview { display:flex; gap:16px; overflow-x:auto; padding:4px; margin:0 -4px 20px; scrollbar-width:thin; }
.admin-banner-preview button { background:transparent; padding:0; border:3px solid transparent; border-radius:20px; overflow:hidden; flex:0 0 auto; }
.admin-banner-preview button.is-primary { border-color:var(--accent); }
.admin-banner-preview img { display:block; width:220px; aspect-ratio:1.46; object-fit:cover; }
.admin-banner-preview.desktop img { width:350px; aspect-ratio:2.42; }
.preview-label { font-size:.8rem!important; font-weight:400; margin:0 0 10px!important; }
.admin-banner-heading { display:flex; align-items:flex-end; gap:10px; margin-bottom:16px; }
.admin-banner-heading>.field { flex:1; }
.admin-banner-row { border-bottom:2px solid #191919; padding:20px 0 28px; margin-bottom:20px; }
.admin-banner-row>.field { margin-bottom:16px; }
.admin-banner-heading .primary-choice { display:flex; gap:8px; align-items:center; white-space:nowrap; border:2px solid transparent; }
.admin-banner-heading .primary-choice.is-primary { color:#ffc400; border-color:#ffc400; }
.admin-content input[type=file] { min-width:0; font-size:.8rem; padding:9px; }
.admin-content input[type=file]::file-selector-button { padding:8px 12px; border:0; border-radius:5px; background:#333; color:#eee; margin-right:12px; }
.ui-icon { display:inline-block; vertical-align:middle; filter:brightness(0) invert(1); flex-shrink:0; }
.detail-copy { display:flex; gap:10px; justify-content:center; align-items:center; }
.collection-description { display:block; color:var(--muted); line-height:1.5; margin:12px 0; max-width:800px; white-space:pre-line; }
.dashboard-periods { display:flex; flex-wrap:wrap; width:fit-content; gap:4px; padding:4px; background:#000; border-radius:9px; margin-bottom:26px; }
.admin-content .dashboard-periods button { background:transparent; min-height:34px; padding:8px 15px; font-size:.76rem; }
.admin-content .dashboard-periods button[aria-pressed=true] { background:#202020; color:var(--accent); }
.dashboard-dates { display:flex; align-items:flex-end; gap:12px; margin-bottom:24px; }
.dashboard-dates .field { flex:1; max-width:240px; }
.dashboard-metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; margin:0 0 16px; }
.dashboard-metric { background:#000; border-radius:12px; padding:18px; }
.admin-content .dashboard-metric h3 { font-size:.75rem; font-weight:500; margin:0 0 12px; }
.dashboard-metric>div { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.dashboard-metric strong { font-size:1.25rem; white-space:nowrap; }
.metric-change { border-radius:6px; padding:5px 7px; color:#384b1f; background:var(--accent); font-size:.65rem; font-weight:600; }
.metric-change.negative { background:#ee6161; color:#5f1919; }
.dashboard-metric p { font-size:.65rem; margin:8px 0 0; }
.dashboard-note { font-size:.72rem; margin:0 0 24px; }
.dashboard-chart { padding:28px!important; }
.dashboard-chart canvas { display:block; width:100%; max-width:100%; }
.chart-legend { background:#181818; border-radius:10px; padding:12px 14px; width:fit-content; max-width:100%; margin-top:16px; }
.chart-legend p { display:flex; align-items:center; gap:10px; margin:6px 0; font-size:.85rem; }
.chart-legend strong { margin-left:auto; padding-left:22px; white-space:nowrap; }
.chart-dot { width:10px; height:10px; flex-shrink:0; border-radius:50%; background:#50d457; }
.chart-dot.tone-1 { background:#94ff98; }.chart-dot.tone-2 { background:#ddffe2; }
.chart-data { font-size:.75rem; margin-top:18px; color:var(--muted); }
.chart-table-wrap { overflow-x:auto; }
.chart-data table { border-collapse:collapse; width:100%; text-align:left; margin-top:12px; }
.chart-data th,.chart-data td { border-bottom:1px solid #252525; padding:10px; white-space:nowrap; }
@media (max-width:1180px) {
 .admin-shell { grid-template-columns:190px minmax(0,1fr); }
 .admin-content { padding:24px; }.admin-content .panel { padding:22px; }
 .dashboard-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .admin-content .section-setting { flex-wrap:wrap; }.admin-content .section-setting>.field { flex-basis:100%; }
 .admin-content .section-setting-options { flex-wrap:wrap; }
 .admin-banner-heading { flex-wrap:wrap; }.admin-banner-heading>.field { flex-basis:100%; }
}
@media (max-width:760px) {
 .admin-shell { display:block; }.admin-shell .admin-tabs { position:relative; min-height:0; padding:16px; flex-direction:row; flex-wrap:wrap; gap:6px; top:auto; }
 .admin-brand { width:100%; padding:0 0 12px; }.admin-brand img { width:150px; }
 .admin-shell .admin-tabs .secondary { min-height:42px; padding:9px 11px; font-size:.75rem; gap:7px; }
 .admin-content { padding:18px 14px 28px; }.admin-content .panel { padding:20px 16px; border-radius:13px; margin-bottom:20px; }
 .admin-content h2 { font-size:1.2rem; margin-bottom:20px; }
 .admin-content .device-settings-grid { grid-template-columns:1fr; gap:20px; }
 .admin-content .device-settings { padding:16px; }
 .admin-content .section-setting { margin-bottom:18px; padding-bottom:18px; }
 .admin-content .section-setting-options { gap:7px; }.section-kind { font-size:.68rem; padding:6px 8px; }
 .admin-content .section-setting-options .check-label { padding:9px; }.admin-content .section-setting-options .icon-button { width:35px; min-width:35px; }
 .admin-content .admin-item { flex-wrap:wrap; }.admin-content .admin-item>.grow { flex-basis:100%; }
 .admin-banner-preview img { width:170px; }.admin-banner-preview.desktop img { width:250px; }
 .admin-content .section-title { flex-wrap:wrap; gap:12px; }
 .admin-banner-heading { gap:7px; }.admin-content .primary { white-space:normal; }
 .dashboard-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.dashboard-metric { padding:15px; }
 .dashboard-metric strong { font-size:1.2rem; }.dashboard-metric:last-child { grid-column:1/-1; }
 .dashboard-periods { gap:3px; margin-bottom:18px; }.admin-content .dashboard-periods button { padding:9px 11px; min-height:40px; }
 .dashboard-chart { padding:20px 12px!important; }.dashboard-chart canvas { min-width:0; }
 .chart-legend { padding:10px; width:100%; }.chart-legend p { font-size:.72rem; gap:7px; }.chart-legend strong { padding-left:8px; }
 .dashboard-dates { flex-wrap:wrap; }.dashboard-dates .field { min-width:130px; }
}
.admin-shell { background:#000; grid-template-columns:clamp(210px,18vw,300px) minmax(0,1fr); }
.admin-content { background:#1a1a1a; }
.admin-content .admin-form { display:grid; border:0; padding-top:0; }
.admin-content .admin-item { border:0; border-bottom:2px solid #191919; border-radius:0; }
.admin-content #collection-form { border-top:2px solid #191919; padding-top:24px; margin-top:20px; }
.admin-content #collection-form .check-label { justify-self:start; background:transparent; padding:0; }
.admin-content .actions { display:flex; flex-wrap:wrap; gap:12px; }
@media (max-width:1180px) and (min-width:761px) { .admin-shell { grid-template-columns:190px minmax(0,1fr); } }
@media (max-width:760px) { .admin-shell { display:block; } }
.admin-page-title { margin-bottom:24px; align-items:center; }
.admin-page-title h2 { font-size:1.55rem; margin:0; }
.admin-filter-bar { display:flex; flex-wrap:wrap; align-items:flex-end; gap:14px; margin-bottom:24px; }
.admin-filter-bar>.field { min-width:155px; flex:1; }
.admin-filter-bar>.filter-search { min-width:220px; flex:2; }
.admin-content .admin-filter-bar .select,.admin-content .admin-filter-bar .input { min-height:46px; background:#181818; }
.admin-table-wrap { overflow-x:auto; }
.admin-table { width:100%; border-collapse:collapse; text-align:left; font-size:.82rem; }
.admin-table th { color:#bfc0bf; font-weight:600; }
.admin-table th,.admin-table td { border:1px solid #252525; padding:14px 12px; vertical-align:middle; }
.admin-table .text-button { font-size:.8rem; }
.admin-status { display:inline-block; padding:5px 8px; border-radius:5px; background:#232323; color:#d5d5d5; font-size:.72rem; white-space:nowrap; }
.admin-status.paid,.admin-status.active { color:var(--accent); background:#25301b; }
.admin-status.failed,.admin-status.cancelled,.admin-status.archive { color:#d69f98; background:#2c2221; }
.admin-status.review,.admin-status.cancelling,.admin-status.scheduled,.admin-status.exhausted { color:#f1ce7b; background:#342b19; }
.admin-status.expired { color:#a0a0a0; }
.admin-empty { text-align:center; padding:32px 12px; }
.admin-pagination { display:flex; justify-content:flex-end; align-items:center; gap:16px; margin-top:24px; font-size:.8rem; }
.admin-order-results[aria-busy=true] { opacity:.65; }
.order-title-cell { max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.nowrap { white-space:nowrap; }
.order-detail-row td { padding:0; }
.admin-order-detail { background:#151515; padding:24px; max-width:100%; overflow-wrap:anywhere; }
.admin-order-detail h3 { font-size:1rem; }
.admin-order-detail h4 { margin:20px 0 12px; }
.admin-order-detail ul { margin:0 0 16px; padding-left:20px; font-size:.86rem; line-height:1.6; }
.order-custom-dates { display:flex; gap:12px; flex-basis:100%; }
.promo-editor-layout { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(250px,1fr); align-items:start; gap:28px; }
.promo-editor-layout .admin-form h3 { margin:12px 0 4px; }
.promo-editor-layout .admin-form h3:first-child { margin-top:0; }
.promo-editor-layout .fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.promo-editor-layout .radio-label { display:flex; align-items:center; gap:10px; font-size:.88rem; }
.radio-label input { width:18px; height:18px; accent-color:var(--accent); }
.promo-generate { display:flex; align-items:flex-end; gap:12px; }
.promo-generate .field { flex:1; }
.promo-summary { position:sticky; top:24px; }
.promo-summary dl { margin:24px 0; font-size:.82rem; }
.promo-summary dl>div { display:flex; gap:15px; justify-content:space-between; margin:16px 0; }
.promo-summary dt { color:var(--muted); }.promo-summary dd { margin:0; text-align:right; overflow-wrap:anywhere; }
.promo-summary button+button { margin-top:12px; }
@media (max-width:1180px) { .promo-editor-layout { grid-template-columns:1fr; gap:0; }.promo-editor-layout aside { order:1; }.promo-summary { position:static; } }
@media (max-width:760px) {
 .admin-filter-bar { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .admin-filter-bar>.field,.admin-filter-bar>.filter-search { min-width:0; }
 .admin-filter-bar .filter-search { grid-column:1/-1; }
 .admin-filter-bar .order-custom-dates { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; }
 .admin-table-wrap { overflow:visible; }
 .admin-table,.admin-table tbody { display:block; }
 .admin-table thead { display:none; }
 .admin-table tr { display:grid; grid-template-columns:1fr; gap:10px; background:#171717; border:1px solid #272727; border-radius:10px; padding:16px; margin:14px 0; }
 .admin-table td { border:0; padding:0; display:flex; gap:16px; align-items:flex-start; justify-content:space-between; text-align:right; min-width:0; }
 .admin-table td::before { content:attr(data-label); color:var(--muted); text-align:left; font-size:.77rem; flex-shrink:0; }
 .admin-table td:not([data-label])::before { display:none; }
 .admin-table .order-title-cell { max-width:none; white-space:normal; overflow-wrap:anywhere; text-align:left; font-weight:600; display:block; }
 .admin-table .order-title-cell::before { display:none; }
 .admin-table .order-detail-row { padding:0; border:0; margin-top:-7px; }
 .admin-table .order-detail-row td { display:block; text-align:left; }
 .admin-order-detail { padding:18px 14px; border-radius:10px; }
 .admin-order-detail .actions>* { width:100%; }
 .admin-pagination { justify-content:space-between; gap:8px; }
 .admin-pagination .secondary { min-height:44px; padding:10px 12px; }
 .promos-table td .actions { justify-content:flex-end; width:100%; }
 .promo-editor-layout .fields { grid-template-columns:1fr; }
 .promo-generate { flex-wrap:wrap; }.promo-generate .field { flex-basis:100%; }
 .promo-generate .secondary { width:100%; }
 .admin-content .promo-editor-layout .check-label { padding:10px; }
}
.admin-menu { display:flex; flex-direction:column; gap:8px; }
.image-upload-field { display:grid; gap:12px; min-width:0; align-content:start; }
@media (max-width:760px) {
 .admin-shell .admin-tabs { display:block; }
 .admin-menu { flex-direction:row; flex-wrap:nowrap; gap:6px; overflow-x:auto; scrollbar-width:none; padding-bottom:2px; }
 .admin-menu::-webkit-scrollbar { display:none; }
 .admin-menu>button { flex:0 0 auto; }
}
.admin-content .admin-form>.primary { justify-self:start; }
.banner-order-title { margin-top:42px; }
.admin-content .permission-fields .check-label { white-space:normal; }
.admin-tabs [aria-pressed=true] .ui-icon { filter:brightness(0) saturate(100%) invert(87%) sepia(54%) saturate(454%) hue-rotate(29deg) brightness(101%) contrast(91%); }
html:has(body.admin-page-active) { scrollbar-gutter:stable; }
@media (max-width:760px) { .admin-shell .admin-tabs { position:sticky; top:var(--app-safe-top); z-index:20; } }
