/* TATAZO: in-game screenshots.
   Two places use it: the "In-game screenshots gallery" section on the landing page (.shots-sec) and the
   share page /gallery/ (.gal-*). Built from the landing's own pieces (tokens, .panel, .gframe, .orn-h,
   .kicker, .btn, .strip) so it reads as the same house design. Pictures are always cropped (cover) inside
   16:9 frames, never stretched. */

/* ============================================================================================
   Landing section: In-game screenshots gallery
   ============================================================================================ */
.shots-sec .mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.mosaic a { position: relative; display: block; text-decoration: none; color: inherit; border-radius: 12px; }
.mosaic a:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic .gframe { display: block; width: 100%; aspect-ratio: 16 / 9; }
.mosaic a:first-child .gframe { height: 100%; aspect-ratio: auto; }
.mosaic .gframe img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mosaic a:hover .gframe img, .mosaic a:focus-visible .gframe img { transform: scale(1.045); }
.mosaic .cap { position: absolute; z-index: 3; left: 3px; right: 3px; bottom: 3px; padding: 26px 12px 10px; border-radius: 0 0 9px 9px;
  font: 700 14.5px/1.3 var(--serif); color: #FDF6E3; text-shadow: 0 1px 2px rgba(0,0,0,.55);
  background: linear-gradient(180deg, rgba(10,22,56,0), rgba(10,22,56,.8)); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.mosaic a:hover .cap, .mosaic a:focus-visible .cap { opacity: 1; transform: none; }
.mosaic a:first-child .cap { opacity: 1; transform: none; font-size: 20px; padding: 48px 22px 18px; }
.mosaic a:first-child .cap span { display: block; margin-top: 3px; font: 15px/1.4 var(--sans); color: #E4E9F6; }
.mosaic a:first-child .lbl { top: 14px; left: 14px; bottom: auto; }
/* the last tile opens the gallery: a navy plate with gold lettering, like the landing's night strip */
.mosaic .more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 16 / 9; text-align: center;
  border: 3px solid transparent; border-radius: 12px; color: #F6D983;
  background: radial-gradient(ellipse 80% 90% at 50% 0%, #2A58B8, rgba(42,88,184,0) 75%) padding-box, linear-gradient(180deg, #1B4399, #122E72) padding-box, var(--gframe) border-box;
  box-shadow: inset 0 0 0 2px rgba(10,20,50,.6), inset 0 0 0 3.2px rgba(217,164,65,.7), 0 4px 14px var(--shadow); transition: transform .25s, box-shadow .25s; }
.mosaic .more:hover, .mosaic .more:focus-visible { transform: translateY(-2px); box-shadow: inset 0 0 0 2px rgba(10,20,50,.6), inset 0 0 0 3.2px rgba(217,164,65,.7), 0 10px 24px var(--shadow-lg); }
.mosaic .more b { font: 900 42px/1 var(--display); background: linear-gradient(180deg, #FCEBB5 8%, #F0C95E 45%, #D9A441 70%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mosaic .more span { font: 700 11.5px var(--caps); letter-spacing: .2em; text-transform: uppercase; }
.mosaic .more i { font: 800 13px var(--sans); font-style: normal; color: #CFD7EC; display: inline-flex; align-items: center; gap: 6px; }
.shots-sec .cta-row { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 36px; }
.shots-sec .cta-note { font: 15px/1.5 var(--sans); color: var(--ink-soft); max-width: 420px; }

@media (max-width: 1023px) {
  .shots-sec .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic a:first-child { grid-row: auto; }
  .mosaic a:first-child .gframe { height: auto; aspect-ratio: 16 / 9; }
  .mosaic a:nth-child(n+5):not(.more) { display: none; }  /* big, then three pictures and the gallery tile in a 2x2 */
  .mosaic .cap { opacity: 1; transform: none; font-size: 13.5px; padding: 22px 10px 8px; }
}
@media (max-width: 767px) {
  .shots-sec .mosaic { gap: 12px; margin-top: 30px; }
  .mosaic a:first-child .cap { font-size: 16px; padding: 30px 14px 12px; }
  .mosaic a:first-child .cap span { display: none; }
  .mosaic a:not(:first-child):not(.more) .cap { display: none; }
  .mosaic .more b { font-size: 30px; }
  .mosaic .more span { font-size: 10px; letter-spacing: .14em; }
  .mosaic .more i { display: none; }
  .shots-sec .cta-row .btn { width: 100%; }
}

/* ============================================================================================
   Share page /gallery/: hero
   ============================================================================================ */
.gal-hero { position: relative; overflow: hidden; padding: 64px 0 70px;
  background: #7EC3E8 url(img/gallery/view-from-the-sky.jpg?v=27829f9809) center 40% / cover no-repeat;
  border-bottom: 3px solid var(--gold-2); box-shadow: 0 3px 0 rgba(217,164,65,.35); }
.gal-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background:
  radial-gradient(ellipse 58% 78% at 50% 46%, rgba(253,249,239,.95), rgba(253,249,239,.86) 52%, rgba(253,249,239,.30) 88%),
  linear-gradient(180deg, rgba(10,30,70,0) 72%, rgba(10,30,70,.30)); }
.gal-hero-in { position: relative; z-index: 2; text-align: center; }
.gal-hero h1.orn-h { font: 700 50px/1.12 var(--serif); }
.gal-hero .sub { color: var(--ink); max-width: 700px; }
.gal-back { position: absolute; left: 40px; top: -38px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 10px; border-radius: 999px;
  font: 800 14px var(--sans); color: var(--nav-ink); text-decoration: none; background: var(--ghost-bg); box-shadow: inset 0 0 0 1.5px #D9A441, 0 2px 6px var(--shadow); }
.gal-back:hover { background: linear-gradient(180deg, #FBE6A6, #EBC260); }
.gal-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px auto 0; max-width: 1120px; }
.gal-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font: 800 15px var(--sans); color: var(--chip-ink); text-decoration: none;
  background: var(--chip-bg); box-shadow: inset 0 0 0 1.5px var(--chip-line), 0 2px 6px var(--shadow); transition: background .2s, transform .2s; }
.gal-jump a::before { content: ""; width: 10px; height: 10px; background: url(img/dia.svg?v=5de6748d8b) center / contain no-repeat; }
.gal-jump a:hover { background: linear-gradient(180deg, #FBE6A6, #EBC260); transform: translateY(-1px); }
.gal-how { max-width: 860px; margin: 34px auto 0; text-align: left; }
.gal-how .gem-h { font-size: 22px; }
.gal-how ol { list-style: none; counter-reset: how; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gal-how li { counter-increment: how; position: relative; padding-left: 40px; font: 15px/1.5 var(--sans); color: var(--ink-soft); }
.gal-how li::before { content: counter(how); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  font: 800 14px var(--sans); color: #14285F; background: linear-gradient(180deg, #FCE7A8, #E7B53C 60%, #CF9528); box-shadow: inset 0 0 0 1.5px #A87318; }
.gal-how li b { color: var(--head); }
.gal-how code { font: 700 13px ui-monospace, Menlo, monospace; padding: 1px 6px; border-radius: 5px; background: rgba(217,164,65,.18); color: #14285F; }

/* ============================================================================================
   Share page: groups and picture cards
   ============================================================================================ */
.gal-sec { padding: 78px 0; scroll-margin-top: 10px; }
.gal-groups > .gal-sec:nth-child(even):not(.strip) { background: linear-gradient(180deg, rgba(0,0,0,0), var(--bg-alt) 8%, var(--bg-alt) 92%, rgba(0,0,0,0)); }
.gal-count { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 10px; border-radius: 999px; vertical-align: 1px;
  font: 700 11px var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--kicker); box-shadow: inset 0 0 0 1.2px var(--chip-line); white-space: nowrap; }
.strip .gal-count { color: #F6D983; box-shadow: inset 0 0 0 1.2px rgba(231,181,60,.6); }
.gal-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.gshot { position: relative; display: flex; flex-direction: column; border: 3px solid transparent; border-radius: 14px; padding: 9px 9px 14px; scroll-margin-top: 24px;
  background: linear-gradient(180deg, var(--panel-a), var(--panel-b)) padding-box, var(--gframe) border-box;
  box-shadow: inset 0 0 0 2px var(--panel-a), inset 0 0 0 3.2px var(--panel-ring), 0 4px 14px var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.gshot:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--panel-a), inset 0 0 0 3.2px var(--panel-ring), 0 10px 26px var(--shadow-lg); }
.shot-open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; }
.gshot .gframe { display: block; aspect-ratio: 16 / 9; border-radius: 10px; }
.gshot .gframe::after { border-radius: 7px; }
.gshot .gframe img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shot-open:hover .gframe img, .shot-open:focus-visible .gframe img { transform: scale(1.045); }
.shot-zoom { position: absolute; z-index: 4; right: 12px; top: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  color: #14285F; font-size: 20px; background: linear-gradient(180deg, #FCE7A8, #E7B53C 60%, #CF9528); box-shadow: inset 0 0 0 1.5px #A87318, 0 3px 8px rgba(0,0,0,.3);
  opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s; }
.shot-open:hover .shot-zoom, .shot-open:focus-visible .shot-zoom { opacity: 1; transform: none; }
.shot-body { flex: 1; display: flex; flex-direction: column; padding: 13px 6px 0; }
.shot-acts { margin-top: auto; }
.shot-body h3 { font: 700 18px/1.3 var(--serif); color: var(--head); }
.shot-body p { margin: 3px 0 12px; font: 14.5px/1.45 var(--sans); color: var(--ink-soft); }
.shot-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.shot-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border: 0; border-radius: 8px; cursor: pointer;
  font: 800 13.5px var(--sans); color: var(--ghost-ink); background: var(--ghost-bg); box-shadow: inset 0 0 0 1.5px #D9A441, 0 2px 5px rgba(0,0,0,.12); transition: background .2s; }
.shot-btn .ico { font-size: 16px; color: #B07A1E; }
.shot-btn:hover { background: linear-gradient(180deg, #FCE7A8, #EBC260); }
.shot-btn.is-done, .lb-acts .btn.is-done { color: #fff; background: linear-gradient(180deg, #45D8E8, #16AFC4 55%, #0E90A6); box-shadow: inset 0 0 0 1.5px #0B7F96, 0 2px 5px rgba(14,100,120,.3); }
.shot-btn.is-done .ico { color: #fff; }

/* the night-time group (Braveheart Basin) sits on the landing's navy strip */
.strip.gal-sec .stars { opacity: .8; }
.strip .gshot { background: linear-gradient(180deg, #1C3D86, #12296A) padding-box, var(--gframe) border-box;
  box-shadow: inset 0 0 0 2px #12296A, inset 0 0 0 3.2px rgba(231,181,60,.55), 0 8px 22px rgba(0,0,0,.35); }
.strip .gshot:hover { box-shadow: inset 0 0 0 2px #12296A, inset 0 0 0 3.2px rgba(231,181,60,.55), 0 14px 30px rgba(0,0,0,.45); }
.strip .gshot .gframe { background: #0F2250 padding-box, var(--gframe) border-box; }
.strip .gshot .gframe::after { box-shadow: inset 0 0 0 2px rgba(10,20,50,.6), inset 0 0 0 3.2px rgba(217,164,65,.7); }
.strip .shot-body h3 { color: #F6D983; }
.strip .shot-body p { color: #CFD7EC; }
.strip .shot-btn { color: #F6D983; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1.5px rgba(231,181,60,.7); }
.strip .shot-btn .ico { color: #E7B53C; }
.strip .shot-btn:hover { color: #14285F; background: linear-gradient(180deg, #FCE7A8, #EBC260); }
.strip .shot-btn:hover .ico { color: #B07A1E; }

/* ============================================================================================
   Share page: lightbox (a modal <dialog>: Esc closes, focus stays inside)
   ============================================================================================ */
.lightbox { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--parch); overflow: hidden; }
.lightbox::backdrop { background: radial-gradient(ellipse 70% 60% at 50% 40%, #1C428F, #08122E); }
.lightbox[open] { display: block; }
.lb-frame { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; padding: 16px 24px 22px; }
.lb-top { display: flex; align-items: center; justify-content: space-between; }
.lb-count { font: 700 13px var(--caps); letter-spacing: .2em; color: #F6D983; padding: 4px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.2px rgba(231,181,60,.6); }
.lb-x, .lb-nav { display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; color: #14285F;
  background: linear-gradient(180deg, #FCE7A8, #E7B53C 60%, #CF9528); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 0 0 1.5px #A87318, 0 4px 12px rgba(0,0,0,.35); }
.lb-x { width: 44px; height: 44px; font-size: 20px; }
.lb-nav { width: 54px; height: 54px; font-size: 24px; }
.lb-x:hover, .lb-nav:hover { filter: brightness(1.06); }
.lb-stage { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr) 54px; align-items: center; gap: 18px; min-height: 0; }
.lb-pic { justify-self: center; align-self: center; width: min(100%, calc((100dvh - 210px) * 16 / 9)); aspect-ratio: 16 / 9; margin: 0;
  background: #0F2250 padding-box, var(--gframe) border-box; box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.lb-pic::after { box-shadow: inset 0 0 0 2px rgba(10,20,50,.6), inset 0 0 0 3.2px rgba(217,164,65,.7); }
.lb-pic img { width: 100%; height: 100%; object-fit: cover; }
.lb-info { width: min(100%, calc((100dvh - 210px) * 16 / 9)); justify-self: center; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.lb-text h2 { font: 700 24px/1.25 var(--serif); color: #F6D983; }
.lb-text p { margin: 2px 0 0; font: 15.5px/1.45 var(--sans); color: #CFD7EC; }
.lb-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.lb-acts .btn { height: 44px; padding: 0 18px; font-size: 15.5px; }
.lb-acts .btn-ghost { color: #F6D983; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 2px #D9A441; }

/* copy confirmation: a gilded pill */
.gal-toast { position: fixed; z-index: 2147483000; left: 50%; bottom: 26px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; max-width: calc(100vw - 32px);
  padding: 10px 20px; border-radius: 999px; font: 800 15px/1.35 var(--sans); color: #14285F; text-align: center; overflow-wrap: anywhere;
  background: linear-gradient(180deg, #FDF2C9, #F0C95E); box-shadow: inset 0 0 0 1.5px #B8862A, 0 8px 22px rgba(0,0,0,.3); transition: opacity .2s, transform .2s; }
.gal-toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .gshot, .gshot .gframe img, .mosaic .gframe img, .gal-toast { transition: none; }
}

/* ============================================================================================
   Share page: tablet and phone
   ============================================================================================ */
@media (max-width: 1199px) {
  .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 900px) {
  .gal-how ol { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 767px) {
  .gal-hero { padding: 92px 0 48px; }
  .gal-hero h1.orn-h { font-size: 32px; }
  .gal-back { position: static; margin: 0 0 18px; }
  .gal-jump { gap: 8px; }
  .gal-jump a { padding: 7px 13px; font-size: 14px; }
  .gal-how { padding: 18px 18px; }
  .gal-sec { padding: 56px 0; }
  .gal-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 30px; }
  .shot-zoom { opacity: 1; transform: none; width: 34px; height: 34px; font-size: 18px; }
  .shot-btn { flex: 1 1 0; justify-content: center; height: 40px; }
  .lb-frame { padding: 12px 12px 16px; gap: 10px; }
  .lb-stage { grid-template-columns: 1fr; }
  .lb-pic { width: 100%; }
  .lb-nav { position: absolute; z-index: 5; top: 50%; width: 42px; height: 42px; margin-top: -21px; font-size: 20px; }
  .lb-nav.prev { left: 6px; } .lb-nav.next { right: 6px; }
  .lb-info { width: 100%; }
  .lb-text h2 { font-size: 20px; }
  .lb-acts { width: 100%; }
  .lb-acts .btn { flex: 1 1 140px; height: 46px; }
}
