.game-dialog{max-width:900px}
.dialog-head{position:sticky;top:0;z-index:3;display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:23px 28px 19px;background:var(--surface);border-bottom:1px solid #ffffff10}
.dialog-head>div{min-width:0}
.dialog-head h2{font-size:32px;line-height:1.2;font-weight:600;letter-spacing:-.04em;margin-top:6px}
.details-close{width:44px;height:44px;flex-shrink:0}
.dialog-body{padding:22px 28px 30px}
.screenshot-gallery{margin-bottom:27px}
.gallery-figure{margin:0}
.gallery-image-button{display:block;position:relative;isolation:isolate;width:100%;aspect-ratio:16/9;max-height:42dvh;min-height:160px;padding:0;border:1px solid #48473e;border-radius:8px;overflow:hidden;background:#0c0c0b;cursor:zoom-in}
.gallery-image-button>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transition:opacity .15s ease}
.gallery-expand{position:absolute;z-index:1;right:12px;bottom:12px;display:grid;place-items:center;width:34px;height:34px;border:1px solid #ffffff3d;border-radius:6px;background:#141414d9;color:#f2f0e9;transition:background .2s ease}
.gallery-expand svg{width:19px;height:19px}
.gallery-image-button:hover .gallery-expand{background:#4c483d}
.gallery-caption-row{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-top:12px;font-size:12px;line-height:1.6;color:#cdcabe}
.gallery-counter{flex-shrink:0;font-size:12px;line-height:1.5;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.gallery-thumbnails{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:14px}
.gallery-thumb{position:relative;width:100%;min-width:0;min-height:44px;max-height:76px;aspect-ratio:16/9;padding:0;overflow:hidden;border:2px solid transparent;border-radius:5px;background:#0c0c0b;opacity:.6;transition:opacity .2s ease,border-color .2s ease}
.gallery-thumb img{width:100%;height:100%;object-fit:cover}
.gallery-thumb:hover{opacity:1}
.gallery-thumb[aria-pressed="true"]{border-color:var(--red);opacity:1}
.gallery-thumb:focus-visible{outline-offset:3px}
.image-loading,.image-error{position:absolute;inset:0;display:none;place-items:center;padding:24px;font-size:13px;line-height:1.7;text-align:center;color:var(--muted);background:#0c0c0b;pointer-events:none}
[data-state="loading"]>.image-loading,[data-state="error"]>.image-error{display:grid}
[data-state="loading"]>img,[data-state="error"]>img{opacity:0}
.screenshot-gallery+.dialog-description{margin-top:0}
.screenshot-dialog{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#0c0c0b;color:var(--text);overflow:hidden;overscroll-behavior:contain}
.screenshot-dialog::backdrop{background:#080808f5}
.screenshot-viewer{display:grid;grid-template-areas:"toolbar toolbar toolbar" "previous image next" ". caption .";grid-template-columns:48px minmax(0,1fr) 48px;grid-template-rows:auto minmax(0,1fr) auto;gap:18px;height:100%;padding:max(16px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))}
.screenshot-toolbar{grid-area:toolbar;display:flex;align-items:center;gap:22px;min-width:0}
.screenshot-toolbar h2{font-size:18px;font-weight:550;line-height:1.4;letter-spacing:-.02em;margin-right:auto}
.screenshot-toolbar .icon-button{width:44px;height:44px;flex-shrink:0}
.screenshot-stage{grid-area:image;position:relative;min-width:0;min-height:0;display:grid;place-items:center;overflow:hidden;touch-action:pan-y pinch-zoom}
.screenshot-stage>img{width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;user-select:none;pointer-events:none}
.screenshot-nav{align-self:center;justify-self:center;width:46px;height:46px;border-color:#ffffff28;background:#1b1b18}
.screenshot-nav:disabled{opacity:.3;cursor:default}
.screenshot-previous{grid-area:previous}
.screenshot-next{grid-area:next}
.screenshot-caption{grid-area:caption;min-width:0;text-align:center;font-size:13px;line-height:1.6;color:#cdcabe;max-height:5em;overflow:auto}
@media(max-width:600px){
  .dialog-head{padding:18px 18px 16px;gap:14px}
  .dialog-head h2{font-size:27px;line-height:1.18}
  .dialog-head .eyebrow{font-size:10px}
  .dialog-body{padding:17px 18px 25px}
  .gallery-image-button{min-height:130px;border-radius:6px}
  .gallery-expand{right:8px;bottom:8px;width:30px;height:30px}
  .gallery-expand svg{width:17px;height:17px}
  .gallery-caption-row{gap:12px;margin-top:10px;font-size:11px}
  .gallery-counter{font-size:11px}
  .gallery-thumbnails{gap:6px;margin-top:12px}
  .gallery-thumb{aspect-ratio:auto;height:44px}
  .screenshot-gallery{margin-bottom:24px}
  .screenshot-viewer{grid-template-areas:"toolbar toolbar toolbar" "image image image" "previous caption next";grid-template-columns:44px minmax(0,1fr) 44px;gap:12px;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
  .screenshot-toolbar{gap:14px}
  .screenshot-toolbar h2{font-size:15px}
  .screenshot-nav{width:44px;height:44px}
  .screenshot-caption{align-self:center;font-size:11px;line-height:1.6}
}
@media(max-height:500px){.screenshot-viewer{gap:10px;padding-block:10px}.screenshot-caption{font-size:11px}.screenshot-toolbar h2{font-size:15px}.gallery-image-button{min-height:130px}}
