/* Ninth section: the original game captures, with one frame per gallery card. */
#gallery{scroll-margin-top:76px}
.gallery{--caption-height:42px;padding:clamp(48px,5.6vw,80px) 0;background:radial-gradient(ellipse at 7% 0%,#4a126440,transparent 48%),radial-gradient(ellipse at 94% 85%,#4e0a5b30,transparent 45%),#10091d}
.gallery-wrap{width:min(var(--max),calc(100% - 2 * var(--gutter)));margin-inline:auto}
.gallery-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 16px}
.gallery .art-kicker{font-family:"Arcade Latin",var(--title-en);font-size:clamp(14px,1.3vw,24px)}
.gallery-header>div{width:100%;min-width:0}
.gallery .gallery-title{display:block;width:min(100%,380px);max-width:100%;margin:8px 0 0;line-height:0}
.gallery-title img{display:none;width:100%;height:auto}
:lang(zh) .gallery-title .gallery-title-zh,:lang(en) .gallery-title .gallery-title-en{display:block}
:lang(en) .gallery .gallery-title{width:min(100%,560px)}
.gallery-title-en{margin-top:-24px;margin-bottom:-24px}
:lang(zh) .gallery .art-kicker{font-family:"Arcade CN",var(--title-zh)}
.gallery .shots{position:relative;display:flex;gap:18px;margin:0;padding:10px 4px 14px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:4px;scrollbar-width:none;overscroll-behavior-x:contain;border-radius:12px;cursor:grab;-webkit-mask-image:linear-gradient(90deg,#000 92%,transparent);mask-image:linear-gradient(90deg,#000 92%,transparent)}
.gallery .shots.at-end{-webkit-mask-image:none;mask-image:none}
.gallery .shots.dragging{cursor:grabbing;scroll-snap-type:none;user-select:none}
.gallery .shots.dragging .screenshot-open{pointer-events:none}
.gallery .shots::-webkit-scrollbar{display:none}
.gallery .shots .gallery-card{flex:0 0 264px;min-width:0;margin:0;scroll-snap-align:start;container-type:inline-size}
.screenshot-open{display:block;width:100%;padding:0;overflow:hidden;border:1px solid #d8ad6f;border-radius:12px;background:#1c0d2b;cursor:zoom-in;transition:filter .18s}
.screenshot-open>img{display:block;width:100%;height:auto;-webkit-user-drag:none;user-select:none}
.screenshot-open:hover{filter:brightness(1.06)}
.screenshot-open:focus-visible,.gallery-arrow:focus-visible,.shots:focus-visible{outline:2px solid #ffe69c;outline-offset:4px}
.gallery-caption{display:grid;place-items:center;min-height:var(--caption-height);padding:8px 3%;color:#fff2ca;font:italic 400 max(11px,6.55cqw)/1.1 "Arcade Latin",var(--title-en);text-align:center;text-shadow:0 2px #532754;pointer-events:none}
:lang(zh) .gallery-caption{font-family:"Arcade CN",var(--title-zh);font-style:normal;letter-spacing:.03em}
.shots-frame{position:relative}
/* arrows sit on the left/right edges of the screenshot row, centred on the screenshots */
.gallery-arrows{position:absolute;left:0;right:0;top:10px;bottom:calc(14px + var(--caption-height));z-index:2;display:flex;align-items:center;justify-content:space-between;pointer-events:none}
.gallery-arrows .gallery-arrow{pointer-events:auto;width:48px;height:48px;margin:0 -24px;padding:0;border:1px solid #ffffff2e;background:#140a20b8;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#f6eefb;box-shadow:0 8px 24px #0009;transition:opacity .25s,color .2s,border-color .2s,background .2s}
.gallery-arrows .gallery-arrow svg{width:22px;height:22px}
.gallery-arrows .gallery-arrow:hover{color:#ffd88a;border-color:#ffd27a80;background:#1e0f2ed9}
.gallery-arrows .gallery-arrow:active{background:#2a1540e6}
.gallery-arrows .gallery-arrow:disabled{opacity:0;pointer-events:none}
.gallery-arrows[hidden]{display:none}
.gallery-arrow{display:grid;place-items:center;flex:none;width:42px;height:42px;padding:0 0 4px;border:1px solid #e9bd71;border-radius:50%;background:linear-gradient(150deg,#44205b,#200d30);color:#fff0d4;font:32px/1 Arial,sans-serif;box-shadow:inset 0 0 7px #e88af433,0 0 10px #7b2fa533;cursor:pointer}
.gallery-arrow:disabled{opacity:.35;cursor:default}
body.shot-open{overflow:hidden}
.shot-dialog{padding:16px;border:1px solid #b976bc;border-radius:20px;max-width:calc(100vw - 24px);max-height:calc(100svh - 24px);color:#fff0df;background:#160b23;box-shadow:0 0 45px #000b;overflow:auto}
.shot-dialog::backdrop{background:#090211e8;backdrop-filter:blur(7px)}
.shot-toolbar{display:flex;align-items:center;gap:16px;margin-bottom:12px}
.shot-toolbar h3{font-size:18px;margin:0;flex:1;line-height:1.3}
.shot-counter{font-size:13px;color:#c7afd8;font-variant-numeric:tabular-nums;white-space:nowrap}
.shot-image{container-type:inline-size;width:min(430px,calc(100vw - 58px),calc((100svh - 196px) * 9 / 16));margin:auto}
.shot-image>img{display:block;width:100%;height:auto}
.shot-controls{display:flex;justify-content:center;gap:32px;margin-top:10px}
@media(max-width:1200px){.gallery .shots{gap:16px}.gallery .shots .gallery-card{flex-basis:250px}.gallery-header{margin-inline:4px}}
@media(max-width:760px){.gallery{padding:44px 0 48px}.gallery-header{gap:12px;margin-bottom:10px}.gallery .art-kicker{font-size:13px}.gallery .art-title{font-size:clamp(30px,8.5vw,42px);padding-bottom:18px;margin-top:14px}.gallery-arrows .gallery-arrow{width:40px;height:40px;margin:0 8px}.gallery-arrows .gallery-arrow svg{width:19px;height:19px}.gallery .shots .gallery-card{flex-basis:min(68vw,264px)}.gallery .shots{margin-inline:calc(-1 * var(--gutter));padding-inline:var(--gutter);scroll-padding-inline:var(--gutter);border-radius:0}.gallery-caption{font-size:6.55cqw}}
@media(max-width:760px){.gallery .gallery-title{width:min(100%,280px)}:lang(en) .gallery .gallery-title{width:min(100%,360px)}.gallery-title-en{margin-top:-16px;margin-bottom:-20px}}
@media(prefers-reduced-motion:reduce){.screenshot-open{transition:none}}
