/* Shooting system (spec §6.6, shown between the gun picker and the reload community): title, subtitle and lead like the gun picker, a three-step flow, then the practice (Lane)
   and combat (Engage) carousels split by a centre line from 1069px. The captures are dark game screens in both themes. */
.shoot-head__sub { margin: var(--space-4) 0 0; font-size: var(--fs-section); line-height: var(--lh-section); font-weight: 600; text-wrap: balance; }
.shoot-head .chapter-lead { text-wrap: balance; } /* narrow screens: no one-word last line under each forced break */


.shoot-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shoot-mode { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; justify-items: center; min-width: 0; padding-inline: var(--space-12); text-align: center; }
.shoot-mode + .shoot-mode { border-left: 1px solid var(--color-line); } /* the centre line */
.shoot-mode__title { margin: 0; font-size: calc(var(--fs-section) * .75); line-height: var(--lh-section); font-weight: 600; }
.shoot-mode__summary { max-width: 26em; margin: var(--space-3) 0 var(--space-8); color: var(--color-ink-2); }

.shots { display: grid; justify-items: center; width: 100%; max-width: 440px; }
.shots__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius-inner); box-shadow: 0 0 0 1px var(--color-line); background: var(--color-dark-deep); cursor: grab; -webkit-user-select: none; user-select: none; }
.shots__track::-webkit-scrollbar { display: none; }
.shots__track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.shots__track:focus-visible { outline: 2px solid var(--color-focus); outline-offset: var(--space-1); }
.shots__slide { min-width: 0; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.shots__slide img { width: 100%; height: auto; aspect-ratio: 3 / 4; cursor: zoom-in; }
.shots__track.is-dragging img { cursor: grabbing; }

.shots__nav { display: flex; align-items: center; justify-content: center; gap: var(--space-3); margin-top: var(--space-5); }
.shots__thumbs { display: flex; gap: var(--space-2); }
.shots__thumb { width: var(--space-12); padding: 0; border: 0; border-radius: var(--radius-sm); background: var(--color-dark-deep); overflow: hidden; opacity: .5; cursor: pointer; transition: opacity .2s, box-shadow .2s; }
.shots__thumb img { width: 100%; height: auto; aspect-ratio: 3 / 4; }
.shots__thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-accent); }
@media (hover: hover) and (pointer: fine) { .shots__thumb:not([aria-current="true"]):hover { opacity: .85; } }
.shots__thumb:focus-visible { opacity: 1; }
.shots__thumb[aria-current="true"]:focus-visible { outline-offset: 6px; } /* clear of the 4px selection ring, inside the 8px gap */

.shots__captions { display: grid; width: 100%; margin-top: var(--space-6); }
.shots__caption { grid-area: 1 / 1; } /* every caption sizes the cell, so switching never moves what follows */
.shots__caption[aria-hidden="true"] { visibility: hidden; }
.shots__title { margin: 0; font-size: var(--fs-card); line-height: var(--lh-card); font-weight: 600; }
.shots__num { margin-right: var(--space-2); font-family: var(--font-num); font-weight: 700; color: var(--color-accent); }
.shots__body { margin: var(--space-2) 0 0; color: var(--color-ink-2); }
.shots__more { margin-top: var(--space-5); }

.shoot-note { margin: var(--space-16) auto 0; max-width: 40em; text-align: center; font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--color-ink-2); }

/* Full-screen viewer: native <dialog>; the whole capture at about 1.5x, scrolling inside the dialog. */
.shot-viewer { width: min(640px, calc(100vw - var(--space-8))); max-width: none; max-height: calc(100dvh - var(--space-8)); margin: auto; padding: 0; border: 0; border-radius: var(--radius-card); background: var(--color-bg-alt); color: var(--color-ink); overflow: hidden; }
.shot-viewer::backdrop { background: color-mix(in srgb, var(--color-dark) 64%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.shot-viewer__close { position: absolute; top: var(--space-4); right: var(--space-4); z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--color-round-btn); color: var(--color-ink); cursor: pointer; }
.shot-viewer__body { max-height: calc(100dvh - var(--space-8)); padding: var(--space-8); overflow-y: auto; overscroll-behavior: contain; }
.shot-viewer__title { margin: 0; padding-right: var(--space-12); font-size: var(--fs-card); line-height: var(--lh-card); font-weight: 600; }
.shot-viewer__text { margin: var(--space-2) 0 var(--space-6); color: var(--color-ink-2); }
.shot-viewer__frame { overflow-x: auto; overscroll-behavior-x: contain; border-radius: var(--radius-inner); box-shadow: 0 0 0 1px var(--color-line); background: var(--color-dark-deep); }
.shot-viewer__frame:focus-visible { outline: 2px solid var(--color-focus); outline-offset: var(--space-1); }
.shot-viewer__frame img { width: 100%; min-width: 34rem; max-width: none; height: auto; }
@media (hover: hover) and (pointer: fine) { .shot-viewer__close:hover { background: color-mix(in srgb, var(--color-round-btn), var(--color-ink) 10%); } }

@media (max-width: 1068px) {
  .shoot-modes { grid-template-columns: minmax(0, 1fr); }
  .shoot-mode { padding-inline: 0; }
  .shoot-mode + .shoot-mode { margin-top: var(--space-16); padding-top: var(--space-16); border-left: 0; border-top: 1px solid var(--color-line); }
}

@media (max-width: 359px) {
  .shots__nav { width: 100%; flex-wrap: wrap; }
  .shots__thumbs { flex-basis: 100%; justify-content: center; order: -1; }
}
