[data-channel="virtual-goods"] {
  --scene-neon: #a6deff;
  --scene-side-glow: #8885ed;
}
.scene-card[data-channel="virtual-goods"] {
  --portrait-x: 50%;
  --portrait-zoom: 205%;
}
.mast [data-mast-destination="virtual-goods"] {
  --scene-neon: #a6deff;
  --scene-side-glow: #8885ed;
}
.mast .channel-nav > [data-mast-destination="virtual-goods"]:not([aria-current]) {
  --tab-edge: color-mix(in srgb, var(--scene-neon) 66%, var(--frame-tab-rim));
}
@media screen and (max-width: 800px) {
  .mast [data-mast-destination="virtual-goods"] .mast-area-label {
    border-inline-start-color: var(--scene-neon);
  }
}
@media screen and (max-width: 600px) {
  body[data-view="virtual-goods"] .search-hero {
    --hero-art-height: clamp(102px, 29vw, 150px);
  }
  body[data-view="virtual-goods"] .search-hero h1.cy-channel-title {
    width: 58%;
    font-size: clamp(21px, 6.8vw, 38px);
    white-space: nowrap;
  }
  body[data-view="virtual-goods"] .search-hero .cy-hero-picture {
    inset: 3px 2% auto auto;
    width: 39%;
    height: var(--hero-art-height);
    object-fit: cover;
    object-position: 50% 2%;
    mask-image: linear-gradient(to bottom, black 87%, transparent);
  }
}
@media (min-width: 801px) and (max-width: 1080px) {
  :root { --mast-link-columns: 10; }
  .mast .channel-nav > [data-mast-destination="virtual-goods"] .mast-area-label {
    max-inline-size: 100%;
    line-height: 1.12;
  }
}
@media (min-width: 1081px) and (max-width: 1350px) {
  .mast .channel-nav > [data-mast-destination] { padding-inline: clamp(8px, .9vw, 13px); }
  .mast .mast-wave { display: none; }
}

.vg-platform-search { display:grid; gap:10px; width:100%; min-width:0; }
.vg-platform-search .vg-query-row { display:flex; align-items:stretch; width:100%; min-width:0; min-height:42px; background:#102334; border:1px solid #8caebd; clip-path:polygon(9px 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%,0 9px); }
.vg-platform-search .vg-query-row:focus-within { border-color:#ffd877; box-shadow:inset 0 0 0 1px #ffd877; }
.vg-platform-search .vg-query-row input { flex:1; min-width:0; padding:9px 14px; border:0; border-radius:0; background:transparent; color:#fff; font:inherit; }
.vg-platform-search .vg-query-row input::placeholder { color:#b2c7d6; opacity:1; }
.vg-platform-search .vg-query-row button { display:grid; place-items:center; width:52px; padding:0 5px; border:0; border-radius:0; background:#c8eaff; color:#102231; clip-path:polygon(8px 0,100% 0,100% 100%,0 100%,0 8px); cursor:pointer; }
.vg-platform-search .vg-query-row button svg { width:21px; height:21px; }
.vg-platform-search fieldset { min-width:0; margin:0; padding:0; border:0; }
.vg-platform-search legend { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.vg-platform-search .vg-platforms { display:flex; flex-wrap:wrap; gap:5px; }
.vg-platform-search .vg-option { position:relative; margin:0; cursor:pointer; }
.vg-platform-search .vg-option input { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.vg-platform-search .vg-option span { display:block; padding:5px 10px; background:#162d40; box-shadow:inset 0 0 0 1px #7492a2; clip-path:polygon(5px 0,100% 0,100% calc(100% - 5px),calc(100% - 5px) 100%,0 100%,0 5px); color:#e5f5ff; font-size:.85rem; line-height:1.35; }
.vg-platform-search .vg-option input:checked + span { background:#c8eaff; color:#102231; font-weight:700; box-shadow:inset 0 -3px #78bfdf; }
.vg-platform-search .vg-option input:focus-visible + span, .vg-platform-search .vg-query-row button:focus-visible { box-shadow:inset 0 0 0 3px #ffba32; }
.vg-platform-search .vg-route { margin:0; color:#d9eaf4; font-size:.78rem; line-height:1.4; }
.vg-platform-search .vg-route[hidden] { display:none; }
/* Virtual goods content */
.vg-content {
  --vg-accent: #a6deff;
  --vg-action: #18394e;
  --vg-accent-line: #4e829e;
  --vg-soft: #172a3b;
  --vg-gap: clamp(12px, 1.6vw, 22px);
  display: grid;
  min-inline-size: 0;
  gap: var(--vg-gap);
  color: var(--cp-ink, #edf4fa);
  container: vg-content / inline-size;
}
:root[data-theme="light"] .vg-content {
  --vg-accent: #165775;
  --vg-action: #d6e9f2;
  --vg-accent-line: #7395a7;
  --vg-soft: #eaf2f5;
}
.vg-content .vg-panel {
  min-inline-size: 0;
  padding: clamp(12px, 2vw, 24px);
  border: 1px solid var(--cp-edge);
  border-block-start: 2px solid var(--vg-accent-line);
  background: linear-gradient(140deg, var(--cp-panel), var(--cp-panel-deep));
}
.vg-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-block-end: clamp(12px, 1.6vw, 19px);
}
.vg-panel-head h2, .vg-results > h2 {
  margin: 0;
  padding-inline-start: 10px;
  border-inline-start: 3px solid var(--vg-accent);
  color: var(--cp-ink);
  font-size: clamp(1.16rem, 1.8vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: .035em;
  overflow-wrap: anywhere;
}
.vg-panel-head :is(small,p), .vg-results-meta {
  margin: 0;
  color: var(--cp-muted);
  font-size: .9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.vg-content a:focus-visible, .vg-content summary:focus-visible,
.vg-content :is(button, select, input):focus-visible {
  outline: 2px solid var(--vg-accent);
  outline-offset: 2px;
}
.vg-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 116px), 1fr));
  gap: 8px;
}
.vg-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-inline-size: 0;
  min-block-size: 88px;
  gap: 5px;
  padding: 9px 5px;
  border: 1px solid var(--cp-edge);
  background: linear-gradient(150deg, var(--vg-soft), var(--cp-panel-deep));
  text-align: center;
  color: var(--cp-ink);
}
.vg-category-art {
  display: grid;
  place-items: center;
  inline-size: 40px;
  block-size: 36px;
  color: var(--vg-accent);
}
.vg-category-art :is(svg,img) { display: block; width: 100%; height: 100%; object-fit: contain; }
.vg-category strong { font-size: .94rem; line-height: 1.25; overflow-wrap: anywhere; }
.vg-category:is(:hover,:focus-visible), .vg-category[aria-current] {
  border-color: var(--vg-accent-line);
  background: var(--vg-action);
  color: var(--vg-accent);
}
.vg-search-again:is(:hover,:focus-visible) {
  color: var(--vg-accent);
  text-decoration: underline;
  text-underline-offset: .2em;
}
.vg-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: clamp(10px, 1.3vw, 17px);
}
.vg-product {
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  overflow-wrap: anywhere;
  border: 1px solid var(--cp-edge);
  background: var(--cp-panel-deep);
}
.vg-product-art {
  display: grid;
  place-items: center;
  height: clamp(115px, 12vw, 160px);
  padding: 12px;
  overflow: hidden;
  color: var(--vg-accent);
  background: radial-gradient(ellipse at 48% 90%, var(--vg-soft), var(--cp-field));
  border-block-end: 1px solid var(--cp-edge);
}
.vg-product-art img { width: 100%; height: 100%; min-block-size: 0; object-fit: contain; }
.vg-product-art svg { display: block; width: min(62%, 112px); height: min(80%, 85px); }
.vg-product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 6px;
  padding: 11px 12px;
}
.vg-product-info h3 { margin: 0; color: var(--cp-ink); font-size: 1rem; line-height: 1.45; }
.vg-product-info :is(small,p) { margin: 0; color: var(--cp-muted); font-size: .84rem; line-height: 1.45; }
.vg-offers { display: grid; min-width: 0; margin-block-start: auto; }
.vg-product > .vg-offers { padding: 0 12px 9px; }
.vg-quote {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 10px;
  padding: 7px 1px;
  border-block-start: 1px solid var(--cp-edge);
  line-height: 1.35;
  color: var(--cp-ink);
}
.vg-quote:is(:hover,:focus-visible) { background: var(--vg-soft); }
.vg-merchant { min-width: 0; font-size: .88rem; overflow-wrap: anywhere; }
.vg-price { color: var(--vg-accent); font-weight: 750; font-variant-numeric: tabular-nums; text-align: end; }
.vg-results, .vg-result-tools { min-width: 0; }
.vg-result-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-block: 8px 14px; }
.vg-result-tools :is(input,select,button), .vg-search-again {
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--cp-edge);
  background: var(--cp-field);
  color: var(--cp-ink);
  font: inherit;
}
.vg-search-again { display: inline-flex; align-items: center; min-height: 36px; }
.vg-empty { margin: 0; padding: 16px; border: 1px dashed var(--cp-edge-bright); color: var(--cp-muted); line-height: 1.6; overflow-wrap: anywhere; }
@container vg-content (max-width: 530px) {
  .vg-product-grid { grid-template-columns: minmax(0,1fr); }
  .vg-product {
    display: grid;
    grid-template-columns: clamp(62px, 23%, 110px) minmax(0,1fr);
    align-items: start;
  }
  .vg-product-art {
    height: auto;
    aspect-ratio: 1;
    padding: 7px;
    border: 0;
    border-inline-end: 1px solid var(--cp-edge);
    border-block-end: 1px solid var(--cp-edge);
  }
  .vg-product-info { padding: 9px; }
  .vg-product > .vg-offers { grid-column: 1 / -1; }
  .vg-category-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
  .vg-category { min-block-size: 72px; }
  .vg-category-art { width: 31px; height: 29px; }
}
@media (forced-colors: active) {
  .vg-category, .vg-product, .vg-content .vg-panel { border-color: CanvasText; }
  .vg-category-art, .vg-price, .vg-merchant, .vg-search-again { color: LinkText; }
}
.vg-results .vg-product-link {
  display: grid;
  grid-template-columns: 50px minmax(0,1fr) max-content;
  align-items: center;
  gap: 8px 14px;
  min-height: 68px;
  padding: 7px 5px;
  text-decoration: none;
}
.vg-results .vg-result-thumb {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  background: var(--vg-soft);
  color: var(--cp-muted);
}
.vg-results .vg-result-thumb img { width: 100%; height: 100%; object-fit: contain; }
.vg-results .vg-result-thumb svg { width: 18px; height: 18px; }
.vg-results .vg-list-title { display: grid; min-width: 0; gap: 4px; }
.vg-results .vg-list-title strong { font-size: .98rem; line-height: 1.4; overflow-wrap: anywhere; }
.vg-results .vg-list-title small { color: var(--cp-muted); font-size: .8rem; line-height: 1.2; }
.vg-results .vg-product-link:is(:hover,:focus-visible) strong { text-decoration: underline; text-underline-offset: .2em; }
@container vg-content (max-width: 480px) {
  .vg-results .vg-product-link { grid-template-columns: 38px minmax(0,1fr) minmax(58px,auto); gap: 7px; padding-inline: 0; }
  .vg-results .vg-result-thumb { width: 36px; height: 36px; }
  .vg-results .vg-product-link .vg-price { max-width: 9ch; font-size: .9rem; overflow-wrap: anywhere; }
}
.vg-search-results {
  --vg-row-columns: 36px minmax(0, 1fr) minmax(96px, 15%) minmax(103px, 15%);
}
.vg-result-list { margin: 0; padding: 0; list-style: none; }
.vg-result-list li { margin: 0; padding: 0; }
.vg-result-columns, .vg-search-results .vg-product-link {
  display: grid;
  grid-template-columns: var(--vg-row-columns);
  column-gap: 12px;
  padding-inline: 4px;
}
.vg-result-columns { padding-block-end: 6px; color: var(--cp-muted); font-size: .8rem; }
.vg-result-columns span:first-child { grid-column: span 2; }
.vg-result-columns span:last-child { text-align: end; }
.vg-search-results .vg-product-link { min-height: 50px; padding-block: 7px; }
.vg-search-results .vg-result-thumb { width: 36px; height: 36px; }
.vg-search-results .vg-list-title { display: contents; }
.vg-search-results .vg-list-title strong { font-size: .94rem; font-weight: 600; }
.vg-search-results .vg-list-title small { font-size: .85rem; }
.vg-search-results .vg-product-link .vg-price { max-width: none; white-space: nowrap; }
@container vg-content (max-width: 620px) {
  .vg-result-columns { display: none; }
  .vg-search-results .vg-product-link {
    grid-template-columns: 36px minmax(0,1fr) auto;
    grid-template-areas: "thumb title title" "thumb merchant price";
    gap: 3px 9px;
    padding-inline: 0;
  }
  .vg-search-results .vg-result-thumb { grid-area: thumb; }
  .vg-search-results .vg-list-title strong { grid-area: title; }
  .vg-search-results .vg-list-title small { grid-area: merchant; }
  .vg-search-results .vg-price { grid-area: price; }
}
