/* Picture backgrounds by place (owner, 1 Dec 2026: "3, by place"). Store host only, after
 * store-viewport.css.
 *   A  cards, lists, thumbnails: a studio stage, wall and floor, with a reflection;
 *   B  large tiles (stories, heroes): the same floor, the wall lit by the machine's own colours;
 *   C  the machine page's pictures: a light studio.
 * --pic is the file the browser already shows (gaming-pcs.js markPhoto, store-host.js
 * gpuwerkStage), set only for a cut-out: a photo with its own backdrop (.is-photo) gets no
 * floor and no reflection. Pseudo-elements, so nothing to announce and no second download. */
:root {
  --stage-light: radial-gradient(60% 60% at 50% 48%, rgba(255, 255, 255, .2), transparent 72%);
  --stage: var(--stage-light), linear-gradient(180deg, #2b3033 0, #22272a 68.5%, #14171a 71.5%, #0d0f11 100%);
  --stage-floor: linear-gradient(180deg, transparent 68.5%, #14171a 71.5%, #0d0f11 100%);
  --studio: linear-gradient(180deg, #f3f4f2, #e1e4e1);
}

/* A. Cards and lists. */
.pc-pic:not(.pcd-pic) { background: var(--stage); }
.pc-card > .pc-pic { margin: 0; border-radius: 17px 17px 0 0; overflow: hidden; }
.pc-pic:not(.pcd-pic) img { top: 7%; left: 0; right: 0; width: min(82%, 480px); height: 74%; margin: 0 auto; object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .6)); }
.pc-pic:not(.pcd-pic)::after { content: ""; inset: 81% 0 auto 0; width: min(82%, 480px); height: 74%; margin: 0 auto; border-radius: 0; z-index: 0; opacity: .24; background: var(--pic, none) 50% 100% / contain no-repeat; transform: scaleY(-1); -webkit-mask-image: linear-gradient(0deg, #000 0, transparent 30%); mask-image: linear-gradient(0deg, #000 0, transparent 30%); filter: blur(2.5px); transition: opacity .4s; }
.pc-pic:not(.pcd-pic) > svg { position: absolute; left: 0; right: 0; bottom: 19%; width: 40%; height: auto; margin: 0 auto; color: #8d969b; }
.pc-pic:not(.pcd-pic) .pc-gpu-badge { z-index: 2; }
.pc-pic.is-photo:not(.pcd-pic) img:not(.pc-alt) { top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.pc-pic.is-photo::after { display: none; }
@media (hover: hover) { .pc-card:hover .pc-pic.has-alt::after { opacity: 0; } }
.pc-grid.is-list .pc-card > .pc-pic { align-self: stretch; margin: 0; border-radius: 17px 0 0 17px; aspect-ratio: auto; min-height: 180px; }
/* Thumbnails: the stage without a reflection. */
.cd-media, .store-line-media, .pc-search-list img, .pc-search-noimg, .az-also-img, .sh-cat-pic { background: var(--stage); }
.cd-media img, .store-line-media img { object-position: 50% 78%; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .6)); }
.pc-compare-pic { border-radius: 8px; }

/* B. Large tiles. The wall takes the picture's own colours, muted, over a faint neutral light. */
.sh-hero-pic, .pc-hero-pics, .sh-story { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, #22272a, #1a1e20); }
.sh-hero-pic::before, .pc-hero-pics::before, .sh-story::before { content: ""; position: absolute; inset: -12% -8%; z-index: -2; background: var(--pic, none) 60% 35% / cover no-repeat; filter: blur(90px) saturate(1.1) brightness(1.15); opacity: .5; pointer-events: none; }
.sh-hero-pic, .pc-hero-pics { padding: 0; }
.pc-hero-pics::after { content: ""; position: absolute; inset: 0; z-index: -1; width: auto; height: auto; border-radius: 0; background: var(--stage-floor), var(--stage-light); }
.sh-hero-pic { display: block; aspect-ratio: 16 / 10; }
.sh-hero-pic .st-floor, .sh-story .st-floor { position: absolute; inset: 0; z-index: -1; background: var(--stage-floor), var(--stage-light); }
.sh-hero-pic img { position: absolute; top: 8%; left: 8%; width: 84%; height: 73%; max-height: none; margin: 0; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .6)); }
.pc-hero-img { object-position: 50% 100%; max-width: none; max-height: none; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .6)); }
.pc-hero-pics.n1 .is-0 { left: 12%; right: auto; top: 8%; bottom: auto; width: 76%; height: 73%; }
.pc-hero-pics.n2 .is-0 { left: 5%; right: auto; top: 8%; bottom: auto; width: 58%; height: 73%; }
.pc-hero-pics.n2 .is-1 { left: auto; right: 4%; top: 32%; bottom: auto; width: 40%; height: 49%; }
.st-reflect { position: absolute; z-index: 0; display: block; opacity: .24; background: var(--pic, none) 50% 100% / contain no-repeat; transform: scaleY(-1); -webkit-mask-image: linear-gradient(0deg, #000 0, transparent 30%); mask-image: linear-gradient(0deg, #000 0, transparent 30%); filter: blur(2.5px); pointer-events: none; }
.sh-hero-pic .st-reflect { top: 81%; left: 8%; width: 84%; height: 73%; }
.pc-hero-pics .st-reflect.is-0, .pc-hero-pics .st-reflect.is-1 { top: 81%; }
/* A story: text on the wall, the machine standing below it. */
.sh-story { padding: 0; border: 0; min-height: 480px; }
.sh-story-text { order: 0; padding: 26px 28px 0; }
.sh-story-sub, .sh-story .sh-cat-count { color: #d3d8db; }
.sh-story .sh-cat-count { margin-left: 0; padding-left: 0; }
.sh-story-pic { order: 1; position: relative; flex: 1; min-height: 300px; margin: 0; overflow: hidden; background: linear-gradient(180deg, transparent 66%, #14171a 70%, #0d0f11 100%); }
.sh-story-pic img { position: absolute; top: 6%; left: 0; right: 0; width: min(80%, 480px); max-width: none; height: 75%; max-height: none; margin: 0 auto; object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .6)); }
.sh-story-pic .st-reflect { top: 81%; left: 0; right: 0; width: min(80%, 480px); height: 75%; margin: 0 auto; }
@media (min-width: 1840px) { .sh-story { padding: 0; } .sh-story-text { padding: 36px 36px 0; } .sh-story-pic img { max-height: none; max-width: none; } .sh-hero-pic img { max-height: none; width: 84%; margin: 0; } }

/* C. The machine page: a light studio. */
.pcd-media .pcd-pic, .pcd-track, .pcd-slide, .az2 .az-main, .az2 .az-3d, .gpd-media { background: var(--studio); }
.pcd-media .pcd-pic img { top: 8%; height: 72%; object-position: 50% 100%; filter: drop-shadow(0 16px 14px rgba(20, 24, 20, .28)); }
.pcd-media .pcd-pic::after { content: ""; inset: 80% 0 auto 0; width: min(82%, 480px); height: 72%; margin: 0 auto; border-radius: 0; opacity: .16; background: var(--pic, none) 50% 100% / contain no-repeat; transform: scaleY(-1); -webkit-mask-image: linear-gradient(0deg, #000 0, transparent 26%); mask-image: linear-gradient(0deg, #000 0, transparent 26%); filter: blur(2px); }
.pcd-media .pcd-pic.is-photo::after, .pcd-slide.is-zoom::after { display: none; }
.pcd-media .pcd-pic.is-photo img { top: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; filter: none; }
.pcd-media .pcd-pic > svg { color: #7d868a; }
@media (max-width: 560px) { .pcd-media .pcd-pic img { top: 15%; height: 66%; } .pcd-media .pcd-pic::after { top: 81%; height: 66%; } }
.pcd-thumb, .az2 .az-thumb { background: var(--studio); border: 1px solid transparent; }
.pcd-thumb[aria-current="true"], .pcd-thumb.is-on, .az2 .az-thumb.is-on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.pcd-gnav { background: #16191b; color: #fff; border-color: transparent; }
.pcd-gnav:focus-visible { outline-color: #16191b; }
.pcd-track:focus-visible { outline: 3px solid var(--accent); }
.az2 .az-main { position: relative; }
.az2 .az-main img { filter: drop-shadow(0 16px 14px rgba(20, 24, 20, .28)); }
.az2 .az-main.is-photo img { filter: none; }
/* The GB10 viewer carries text on the same light ground. */
.gpd-media, .az2 .az-3d { --studio-floor: 1; --text: #16191b; --text-dim: #4a5256; --accent: #3a5f00; --border: #c9cec9; --border-hi: #aab0aa; color: var(--text); }
.gpd-media { border-color: transparent; }
.gpd-media .pgx-halo, .az2 .az-3d .pgx-halo, .az2 .az-3d .pgx-stage::before { display: none; }
.gpd-media .pgx-views button::before { box-shadow: none; }
.gpd-media .pgx-viewer:focus-visible, .az2 .az-3d .pgx-viewer:focus-visible { box-shadow: inset 0 0 0 2px #3a5f00; }

/* Asked for less transparency: no reflections, no blurred light. */
@media (prefers-reduced-transparency: reduce) {
  .st-reflect, .pc-pic::after, .pcd-pic::after { display: none !important; }
  .sh-hero-pic::before, .pc-hero-pics::before, .sh-story::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pc-pic::after { transition: none !important; } }
@media print { .st-reflect, .pc-pic::after, .pcd-pic::after { display: none !important; } }
.gpd-media .pgx-canvas, .az2 .az-3d .pgx-canvas { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
/* Safari lets a blurred layer out of a rounded tile: clip the tile itself, and keep the
   focus ring inside it. */
.sh-hero-pic, .pc-hero-pics { clip-path: inset(0 round 24px); }
.sh-story { clip-path: inset(0 round 22px); }
.sh-story:focus-visible { outline-offset: -4px; }
@media (max-width: 860px) { .pc-hero-pics { clip-path: inset(0 round 18px); } }
