.mini { min-width: 0; }
.mini [hidden] { display: none; }
.mini-header { padding-block: max(12px, var(--tg-content-safe-area-inset-top, 0px)) 12px; border-bottom: 1px solid var(--line); }
.mini-brand { display: inline-flex; gap: 10px; align-items: center; border: 0; background: none; padding: 0; font-weight: 750; font-size: 22px; }
.mini-main { max-width: 880px; padding-block: 17px max(20px, var(--tg-content-safe-area-inset-bottom, 0px)); }
.mini-title { font-size: 26px; margin: 5px 0 15px; }
.mini-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 338px), 1fr)); gap: 8px; }
.mini-tile { text-align: left; display: grid; grid-template-columns: 48px 1fr 16px; gap: 10px; align-items: center; min-height: 84px; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.mini-tile:hover { border-color: #796584; }
.mini-image { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 8px; background: #3d2934; }
.mini-image img { width: 25px; height: 25px; }
.mini-discord { background: #242f65; }
.mini-steam { background: #183c4d; }
.mini-kimi { background: #17433b; }
.mini-code { background: #423526; }
.mini-meta { display: grid; min-width: 0; gap: 1px; }
.mini-meta small { color: var(--muted); }
.mini-price { color: var(--accent); font-weight: 650; }
.mini-offer { border-top: 1px solid var(--line); margin-top: 8px; padding-block: 16px; max-width: 640px; }
.mini-back { padding-inline: 0; }
.mini .fields > .btn { width: 100%; }
.product-copy { margin-top: 26px; border-top: 1px solid var(--line); padding-block: 18px; }
.product-copy h2 { font-size: 19px; margin: 0 0 12px; }
.product-copy h2:not(:first-child) { margin-top: 22px; }
.product-copy-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 12px; }
.product-copy-attention { padding-inline-start: 12px; border-inline-start: 2px solid var(--accent); }
.product-copy-delivery { padding-inline-start: 12px; border-inline-start: 2px solid #66b69c; }
.term-options { border: 0; padding: 0; margin: 0; min-width: 0; }
.term-options legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.receipt-details { margin: 0 0 8px; font-size: 13px; }
.term-group + .term-group { margin-top: 12px; }
.term-group-title { color: var(--muted); font-size: 13px; margin-bottom: 5px; }
.term-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; }
.term-option { position: relative; }
.term-option input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; }
.term-option span { display: grid; place-items: center; min-height: 42px; padding: 5px 8px; text-align: center; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.term-option input:checked + span { border-color: var(--accent); color: var(--accent); background: #2d251d; }
.term-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.buy-bar { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(90px, .65fr); gap: 10px; padding: 12px 0 2px; border-top: 1px solid var(--line); }
.buy-bar .muted { display: block; font-size: 12px; }
.buy-bar strong { font-size: 21px; overflow-wrap: anywhere; }

.store {
  --bg: #14161a;
  --surface: #252632;
  --bar: #272733;
  --line: #33343f;
  --text: #ebecf0;
  --muted: #aaa9b7;
  --subtle: #c9c9d4;
  --accent: #8b76ff;
  --price: #22bd65;
  --active: #433889;
  --ink: #fff;
  --alert: #ffb9b1;
  --action: linear-gradient(258.33deg, #00bbff 0%, #00c2b5 50%, #00a838 100%);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
  position: relative;
  isolation: isolate;
  --bar-fill: linear-gradient(112deg, #282539, #242632 56%, #29243a);
  --banner-action: linear-gradient(112deg, #a83d50, #983c85 53%, #653dd8);
}
.store::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("/sell/buy/art/store-pattern.webp") center / cover no-repeat;
  filter: invert(1) hue-rotate(171deg) saturate(.68) brightness(.85);
  opacity: .38;
}
.store[data-store-theme="light"] {
  color-scheme: light;
  --bg: #f4f4f8;
  --surface: #fff;
  --bar: #e9e8f3;
  --line: #d4d2e0;
  --text: #1b1a21;
  --muted: #58586a;
  --subtle: #3f4050;
  --accent: #4e34db;
  --price: #007d43;
  --active: #e4ddff;
  --alert: #971d1a;
  --bar-fill: linear-gradient(112deg, #f1effd, #f8f8ff 56%, #f0eef9);
}
.store[data-store-theme="light"]::before { filter: none; opacity: .46; }
.store .shell { width: min(1280px, calc(100% - 40px)); }
.store-header { position: sticky; top: 0; z-index: 20; padding-block: 20px 0; }
.store-top {
  min-height: 74px; display: flex; align-items: center; gap: 24px;
  padding: 10px 22px; border-radius: 20px; background: var(--bar-fill);
  box-shadow: 0 1px 0 #0002;
}
.store-brand-area { display: flex; gap: 16px; align-items: center; }
.store-top .mini-brand { color: var(--accent); font-size: 28px; font-weight: 800; white-space: nowrap; }
.store-theme {
  width: 50px; height: 28px; display: grid; place-items: center end; padding: 3px;
  flex: none; border: 0; border-radius: 20px; background: #4b4c60;
}
.store-theme span { position: relative; width: 22px; height: 22px; border-radius: 50%; background: #171822; }
.store-theme span::before {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  box-shadow: 3px 3px 0 0 #eee; transform: translate(-2px, -2px);
}
.store-theme[aria-pressed="true"] { place-items: center start; background: #b4a5f1; }
.store-theme[aria-pressed="true"] span { background: #fff; }
.store-theme[aria-pressed="true"] span::before { inset: 6px; background: #f0a700; box-shadow: none; transform: none; }
.store-search {
  display: flex; align-items: center; flex: 1 1 440px; min-width: 0; min-height: 51px;
  border-radius: 12px; background: var(--bg); border: 1px solid transparent;
}
.store-search:focus-within { border-color: var(--accent); }
.store-search input { width: 100%; border: 0; background: none; padding: 10px 13px 10px 0; outline: none; }
.store-search input::placeholder { color: var(--muted); }
.store-search button {
  display: grid; place-items: center; flex: 0 0 48px; height: 46px;
  border: 0; background: none; color: var(--muted);
}
.store-nav { display: flex; gap: 5px; flex: none; }
.store-nav a {
  display: grid; justify-items: center; gap: 3px; min-width: 74px;
  padding: 4px; color: var(--muted); font-size: 13px; line-height: 1.3;
}
.store-nav a:hover, .store-nav a[aria-current] { color: var(--accent); }
.store-main { padding-block: 20px 50px; }
.store-main h1 { font-size: 28px; }
.store-banner {
  position: relative; isolation: isolate; display: grid; align-items: center;
  min-height: 221px; overflow: hidden; border-radius: 24px; color: #fff;
}
.store-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.store-banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(102deg, #100b22d9, #26153a43 52%, transparent 75%);
}
.store-banner-content { padding: 20px 7%; max-width: 70%; }
.store-banner h2 { font-size: 38px; font-weight: 800; }
.store-banner p { color: #ded8f1; margin: 5px 0 15px; }
.store .store-banner-link { background: var(--banner-action); border: 0; color: #fff; border-radius: 8px; }
.store .store-banner-link:hover { background: var(--banner-action); filter: brightness(1.12); }
.store-catalog-head { display: grid; gap: 17px; margin-top: 18px; }
.store-category-rail {
  display: flex; gap: 17px; padding: 4px 4px 9px;
  overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity;
}
.store-category-rail a {
  display: grid; justify-items: center; gap: 7px; flex: 0 0 78px;
  color: var(--subtle); font-size: 14px; white-space: nowrap; scroll-snap-align: start;
}
.store-category-icon {
  width: 72px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 16px;
  color: #fff; background: linear-gradient(145deg, #70c4a5, #297556);
  outline: 2px solid transparent; outline-offset: 2px;
}
.store-category-icon img { width: 52%; height: 52%; object-fit: contain; }
.store-category-icon.store-all { background: linear-gradient(150deg, #8166f0, #492bc2); }
.store-category-icon.store-discord { background: linear-gradient(150deg, #7879f6, #4645be); }
.store-category-icon.store-kimi { background: linear-gradient(150deg, #4a92c2, #234f88); }
.store-category-icon.store-code { background: linear-gradient(150deg, #bb8fe2, #684aa1); }
.store-category-icon.store-steam { background: linear-gradient(150deg, #447490, #1c3449); }
.store-category-rail a[aria-current] { color: var(--text); font-weight: 650; }
.store-category-rail a:is(:hover,[aria-current]) .store-category-icon { outline-color: var(--accent); }
.store-filters, .store-categories { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.store-filters { gap: 22px; border-bottom: 1px solid var(--line); }
.store-filters a { padding: 8px 0 11px; color: var(--subtle); border-bottom: 2px solid transparent; font-weight: 600; }
.store-filters a:hover, .store-filters a[aria-current] { color: var(--accent); border-color: var(--accent); }
.store-categories a {
  padding: 8px 12px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 8px; font-size: 14px; font-weight: 650;
}
.store-categories a:hover, .store-categories a[aria-current] { background: var(--active); color: var(--text); border-color: var(--accent); }
.store-section { margin-top: 25px; }
.store-section > h2 { margin-bottom: 13px; font-size: 23px; }
.store-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; row-gap: 23px; }
.store-tile { display: grid; grid-template-rows: auto 1fr; min-width: 0; border-radius: 14px; }
.store-tile:hover .store-cover { outline: 2px solid var(--accent); }
.store-tile-body {
  display: grid; grid-template-rows: auto 1fr auto; align-items: start;
  gap: 2px; padding-block: 7px 0; font-size: 15px; line-height: 1.4;
}
.store-tile-body strong { color: var(--text); font-weight: 550; }
.store-tile-body small { color: var(--muted); }
.store-tile-price { font-size: 18px; font-weight: 750; color: var(--price); }
.store-tile-quote { color: var(--muted); line-height: 1.8; font-size: 14px; }
.store-cover { display: grid; place-items: center; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 14px; background: #284c3c; }
.store-cover.store-discord { background: #41478c; }
.store-cover.store-kimi { background: #22445e; }
.store-cover.store-code { background: #433359; }
.store-cover.store-steam { background: #193342; }
.store-cover img { width: 26%; max-height: 45%; object-fit: contain; }
.store-cover-image, .store-cover-image.store-kimi, .store-cover-image.store-code { background: #121019; }
.store-cover-image img { width: 100%; height: 100%; max-height: none; object-fit: contain; min-height: 0; }
.store-empty, .store-review-note { color: var(--muted); margin-block: 16px; }
.store-crumb { display: flex; gap: 13px; align-items: center; margin-bottom: 21px; color: var(--subtle); }
.store-crumb-back { padding: 5px 0; color: var(--text); transform: rotate(180deg); }
.store-crumb a { display: inline-flex; align-items: center; gap: 10px; }
.store-crumb .store-category-icon { width: 42px; border-radius: 12px; }
.store-crumb a:hover, .store-profile-links a:hover, .store-review-jump:hover { color: var(--accent); }
.store-product {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  grid-template-areas: "art buy" "copy buy"; grid-template-rows: auto 1fr;
  align-items: start; gap: 24px 20px;
}
.store-product-art { grid-area: art; }
.store-product-art .store-cover { border-radius: 8px; aspect-ratio: 4 / 3; }
.store-buy { grid-area: buy; min-width: 0; }
.store .store-buy h1 { margin: 8px 0; font-size: 22px; font-weight: 650; line-height: 1.25; }
.store-price-title { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; color: var(--muted); font-size: 13px; }
.store-price-title strong { color: var(--price); font-size: 26px; line-height: 1.2; }
.store-review-jump, .store-profile-links a { font-size: 14px; color: var(--accent); }
.store-review-jump { display: inline-flex; gap: 6px; align-items: center; }
.store-delivery { display: grid; gap: 3px; margin-top: 23px; padding: 15px 18px; border-radius: 8px; background: var(--surface); }
.store-delivery strong { font-size: 16px; }
.store-delivery strong svg { margin-inline-end: 3px; color: var(--accent); }
.store-delivery p { color: var(--muted); font-size: 14px; }
.store .store-fields { margin-top: 19px; gap: 14px; }
.store-choice-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.store .term-option { display: block; }
.store .term-option input { width: 1px; height: 1px; clip-path: inset(50%); }
.store .term-option span { min-width: 59px; padding-inline: 10px; background: var(--surface); }
.store .term-option input:checked + span { color: var(--text); background: var(--active); border-color: var(--accent); }
.store .term-option input:disabled + span { color: var(--muted); opacity: .55; cursor: not-allowed; }
.store-fields input[type=email] { background: var(--surface); }
.store-addon-notice { color: var(--muted); font-size: 14px; }
.store-addon-notice a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.store .btn.primary {
  background: var(--action); border: 0; color: #fff;
  text-shadow: 0 1px 2px #083327a0;
}
.store .btn.primary:hover { background: var(--action); filter: brightness(1.10); }
.store .store-buy-button { min-height: 51px; font-size: 18px; font-weight: 750; }
.store .store-hosted-buy { display: grid; place-items: center; margin-top: 16px; }
.store-receipt-label { margin-top: 13px; color: var(--muted); font-size: 14px; }
.store-receipt-label svg { margin-inline-end: 3px; color: var(--accent); }
.store-description { grid-area: copy; }
.store-description h2 { font-size: 23px; margin: 0 0 9px; }
.store-description h3 { font-size: 16px; margin: 16px 0 3px; }
.store-description p, .store-review p { color: var(--subtle); }
.store-description p { margin: 0; line-height: 1.55; }
.store-description .store-provider-description { white-space: pre-line; overflow-wrap: anywhere; }
.store-official-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.store-description .store-provider-description + .store-provider-description { margin-top: 11px; }
.store-alert { color: var(--alert); padding-block: 4px; }
.store-reviews { border-top: 1px solid var(--line); padding-top: 20px; scroll-margin-top: 100px; }
.store-review-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.store-review-heading h2 { font-size: 23px; }
.store-review-heading a { color: var(--accent); font-size: 14px; }
.store-review-heading a:hover { text-decoration: underline; }
.store-review-list { max-width: 850px; }
.store-review { border-bottom: 1px solid var(--line); padding: 16px 0; }
.store-review-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 4px 15px; margin-bottom: 4px; color: var(--muted); font-size: 13px;
}
.store-rating-good { color: var(--price); }
.store-rating-bad { color: var(--alert); }
.store-review p { white-space: pre-wrap; overflow-wrap: anywhere; }
.store-reply { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--line); }
.store-pagination, .store-profile-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 16px; }
.store-footer { border-top: 1px solid var(--line); padding-block: 18px; color: var(--muted); font-size: 14px; }
.store-footer > div { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.store-footer a:hover { color: var(--text); }
@media (max-width: 960px) {
  .store-top { gap: 15px; padding-inline: 15px; }
  .store-brand-area { gap: 9px; }
  .store-top .mini-brand { font-size: 24px; }
  .store-nav a { min-width: 61px; }
  .store-product { grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr); }
  .store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 650px) {
  .store .shell { width: calc(100% - 24px); }
  .store-header { padding-block: 8px 0; }
  .store-top { display: flex; flex-wrap: wrap; gap: 7px; min-height: auto; padding: 8px 10px; border-radius: 14px; }
  .store-brand-area { flex: 1; }
  .store-top .mini-brand { font-size: 23px; }
  .store-theme { width: 43px; }
  .store-search { order: 2; flex-basis: 100%; min-height: 43px; border-radius: 8px; }
  .store-search button { flex-basis: 42px; height: 41px; }
  .store-search input { font-size: 15px; }
  .store-nav {
    position: fixed; z-index: 30; inset: auto 0 0 0; justify-content: space-evenly; gap: 0;
    padding: 5px 5px max(5px, env(safe-area-inset-bottom)); background: var(--bar); border-top: 1px solid var(--line);
  }
  .store-nav a { min-width: 82px; }
  .store-main { padding-block: 14px 30px; }
  .store-footer { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .store-main h1 { font-size: 25px; }
  .store-banner { min-height: 152px; border-radius: 16px; }
  .store-banner-content { padding: 12px 5%; max-width: 75%; }
  .store-banner h2 { font-size: 27px; }
  .store-banner p { font-size: 14px; margin-bottom: 9px; }
  .store-banner > img { object-position: 56% center; }
  .store-category-rail { gap: 12px; }
  .store-category-rail a { flex-basis: 61px; }
  .store-category-icon { width: 56px; border-radius: 13px; }
  .store-catalog-head { gap: 11px; margin-top: 11px; }
  .store-filters { column-gap: 16px; row-gap: 0; }
  .store-filters a { font-size: 14px; }
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .store-tile-body { font-size: 14px; }
  .store-cover { border-radius: 11px; }
  .store-tile-price { font-size: 16px; }
  .store-product {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "buy" "copy"; grid-template-rows: auto;
    gap: 14px;
  }
  .store-crumb { margin-bottom: 10px; }
  .store-delivery { margin-top: 13px; padding: 10px 12px; }
  .store .store-fields { margin-top: 13px; }
  .store-reviews { scroll-margin-top: 112px; }
}
