/*
 * APOCALYPTICAL Cards – Galerie
 * Farbwelt und Schriften wie die APOC-Startseite: Night, Logo-Rot, Bone; Archivo (schwer, breit) im Duett mit Bodoni-Moda-Kontur.
 * Schriften liegen im Plugin (SIL Open Font License) – nichts wird bei Google geladen.
 */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("fonts/archivo.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/bodoni-moda.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("fonts/bodoni-moda-italic.woff2") format("woff2"); }

:root, .apg {
  --night: #0d0a09; --soot: #171211; --scab: #3c1712; --vermilion: #e44028; --bone: #ece3d6; --ash: #a39589;
  --rule: rgba(236, 227, 214, .14); --veil: rgba(13, 10, 9, .86);
  --display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --serif: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --wrap: 1240px;
  --card-r: 4.6% / 3.3%;
}

/* ---------- page template shell ---------- */
html.apg-lock, html.apg-lock body { overflow: hidden; }
body.apoc-gallery-page {
  margin: 0; background: var(--night); color: var(--bone);
  font-family: var(--display); font-size: clamp(1rem, .97rem + .18vw, 1.1rem); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.apoc-gallery-page::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 45% at 75% 18%, rgba(228, 64, 40, .16), transparent 70%),
    radial-gradient(50% 40% at 10% 85%, rgba(60, 23, 18, .5), transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .9  0 0 0 0 .85  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.apg-shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.apg-top {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px); background: linear-gradient(rgba(13, 10, 9, .92), rgba(13, 10, 9, .72)); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
body.admin-bar .apg-top { top: 32px; }
@media (max-width: 782px) { body.admin-bar .apg-top { top: 0; } }
.apg-wordmark { font: 900 1.05rem/1 var(--display); font-stretch: 125%; letter-spacing: .28em; color: var(--bone); text-decoration: none; }
.apg-wordmark:hover { color: var(--vermilion); }
.apg-nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.apg-nav a, .apg-sitemenu summary { color: var(--ash); text-decoration: none; cursor: pointer; }
.apg-nav a:hover, .apg-sitemenu summary:hover { color: var(--bone); }
.apg-sitemenu { position: relative; }
.apg-sitemenu summary { list-style: none; }
.apg-sitemenu summary::-webkit-details-marker { display: none; }
.apg-sitemenu ul { position: absolute; right: 0; top: calc(100% + 12px); margin: 0; padding: 10px 0; list-style: none; min-width: 220px; background: var(--soot); border: 1px solid var(--rule); box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
.apg-sitemenu li a { display: block; padding: 8px 18px; letter-spacing: .08em; }
.apg-foot { margin-top: auto; padding: 40px clamp(16px, 4vw, 48px) 48px; border-top: 1px solid var(--rule); color: var(--ash); font-size: .88rem; text-align: center; }
.apg-foot strong { color: var(--bone); font-weight: 600; }
.apg-foot a { color: var(--bone); }
.apg-foot-meta { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.apg-noscript { padding: 80px 20px; text-align: center; }
.apg-nav a, .apg-nav summary { white-space: nowrap; }
@media (max-width: 640px) {
  .apg-top { padding: 12px 16px; }
  .apg-wordmark { letter-spacing: .18em; font-size: .92rem; }
  .apg-nav > a { display: none; }
}

/* ---------- gallery root ---------- */
.apg { position: relative; box-sizing: border-box; color: var(--bone); font-family: var(--display); }
.apg *, .apg *::before, .apg *::after { box-sizing: border-box; }
.apg-full { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.apg-embedded { background: var(--night); border-radius: 16px; padding: clamp(18px, 3vw, 40px); overflow: hidden; isolation: isolate; line-height: 1.6; }
.apg button { font: inherit; color: inherit; }
.apg-kicker { margin: 0 0 10px; font: 700 .72rem/1.2 var(--display); font-stretch: 112%; letter-spacing: .32em; text-transform: uppercase; color: var(--vermilion); }
.apg-t-heavy { font-family: var(--display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: .01em; }
.apg-t-serif { font-family: var(--serif); font-style: italic; font-weight: 500; color: transparent; -webkit-text-stroke: 1.2px var(--bone); letter-spacing: .01em; }
.apg-loading, .apg-empty { padding: 120px 20px; text-align: center; color: var(--ash); }
.apg-empty h2 { font: 900 clamp(1.6rem, 4vw, 2.6rem)/1.1 var(--display); font-stretch: 120%; color: var(--bone); margin: 0 0 12px; }
.apg-spinner { display: inline-block; width: 18px; height: 18px; margin-right: 12px; vertical-align: -3px; border: 2px solid var(--rule); border-top-color: var(--vermilion); border-radius: 50%; animation: apg-spin .9s linear infinite; }
@keyframes apg-spin { to { transform: rotate(360deg); } }

.apg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px; border-radius: 0; font: 700 .78rem/1 var(--display); font-stretch: 115%; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.apg-primary { background: var(--vermilion); color: #fff; border: 1px solid var(--vermilion); }
.apg-primary:hover { background: #ff5338; transform: translateY(-1px); }
.apg-ghost { background: transparent; color: var(--bone); border: 1px solid rgba(236, 227, 214, .35); }
.apg-ghost:hover, .apg-ghost.on { border-color: var(--bone); background: rgba(236, 227, 214, .06); }
.apg-hint { color: var(--ash); font-size: .78rem; letter-spacing: .06em; text-align: center; margin: 18px 0 0; }

/* reveal */
.apg-reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.apg-reveal.apg-in { opacity: 1; transform: none; }

/* ---------- 3D card ---------- */
.apg-c3d {
  position: relative; width: 100%; aspect-ratio: 900 / 1260; transform-style: preserve-3d;
  transform: perspective(1100px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.apg-hot .apg-c3d, .apg-c3d.apg-hot { transition: transform .08s linear; }
.apg-c3d-body {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg)));
}
.apg-face { position: absolute; inset: 0; border-radius: var(--card-r); overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; background: #1b1513; }
.apg-front { transform: translateZ(1.4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .5); }
.apg-back { transform: rotateY(180deg) translateZ(1.4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.apg-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
.apg-edge { position: absolute; inset: 0; border-radius: var(--card-r); background: linear-gradient(90deg, #cfc4b2, #efe7da 50%, #cfc4b2); transform: translateZ(calc((var(--i) - 2.5) * .5px)); }
.apg-glare, .apg-sheen, .apg-shade { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.apg-glare { background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, .42), rgba(255, 255, 255, .08) 32%, transparent 60%); mix-blend-mode: soft-light; opacity: 0; transition: opacity .35s; }
.apg-sheen {
  background: linear-gradient(115deg, transparent 30%, rgba(255, 214, 160, .16) 42%, rgba(255, 255, 255, .26) 50%, rgba(170, 200, 255, .14) 58%, transparent 70%);
  background-size: 260% 260%; background-position: var(--sh, var(--gx, 50%)) 50%; mix-blend-mode: overlay; opacity: 0; transition: opacity .35s;
}
.apg-shade { background: #050303; opacity: calc((1 - var(--f, 1)) * .72); }
.apg-hot .apg-glare, .apg-hot .apg-sheen, .apg-viewer .apg-glare, .apg-viewer .apg-sheen { opacity: 1; }

/* ---------- hero ---------- */
.apg-hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(24px, 5vw, 80px); min-height: min(88vh, 860px); padding: clamp(40px, 7vw, 90px) 0 clamp(30px, 5vw, 70px); }
.apg-title { margin: 0 0 22px; display: flex; flex-direction: column; line-height: .92; }
.apg-title .apg-t-heavy { font-size: clamp(3rem, 2rem + 6vw, 7.2rem); }
.apg-title .apg-t-serif { font-size: clamp(2.6rem, 1.6rem + 5vw, 6.2rem); -webkit-text-stroke-width: 1.5px; }
.apg-lead { max-width: 34em; color: #d9cfc2; margin: 0 0 30px; font-size: 1.04em; }
.apg-stats { display: flex; gap: clamp(20px, 4vw, 48px); margin: 0 0 34px; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.apg-stats div { display: flex; flex-direction: column-reverse; }
.apg-stats dt { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ash); }
.apg-stats dd { margin: 0; font: 400 clamp(2rem, 1.4rem + 2vw, 3rem)/1 var(--serif); color: var(--bone); }
.apg-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.apg-hero-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.apg-halo { position: absolute; width: 120%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(228, 64, 40, .28), rgba(228, 64, 40, .06) 45%, transparent 66%); filter: blur(6px); animation: apg-pulse 7s ease-in-out infinite; }
@keyframes apg-pulse { 50% { transform: scale(1.06); opacity: .8; } }
.apg-hero-float { position: relative; width: clamp(230px, 27vw, 380px); animation: apg-float 7s ease-in-out infinite; cursor: pointer; }
@keyframes apg-float { 0%, 100% { transform: translateY(0) rotateZ(-1.2deg); } 50% { transform: translateY(-14px) rotateZ(1.2deg); } }
.apg-hero-card .apg-c3d-body { transition: transform 1.5s cubic-bezier(.7, 0, .3, 1); }
.apg-hero-card .apg-glare, .apg-hero-card .apg-sheen { opacity: .7; }
.apg-hero-cap { position: relative; margin: 36px 0 0; text-align: center; display: flex; flex-direction: column; gap: 2px; min-height: 3.2em; }
.apg-cap-code { font: italic 500 1.35rem/1.2 var(--serif); }
.apg-cap-title { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ash); }
@media (max-width: 860px) {
  .apg-hero { grid-template-columns: 1fr; min-height: 0; text-align: left; }
  .apg-hero-stage { order: -1; padding-top: 10px; }
}

/* ---------- sections ---------- */
.apg-sec { padding: clamp(50px, 8vw, 110px) 0 0; }
.apg-head { margin: 0 0 clamp(26px, 4vw, 46px); }
.apg-head h2 { margin: 0; font-size: clamp(2rem, 1.3rem + 3vw, 3.9rem); line-height: 1; display: flex; flex-wrap: wrap; gap: 0 .35em; align-items: baseline; }

/* ring carousel */
.apg-ring-wrap { position: relative; height: clamp(400px, 48vw, 560px); perspective: 1700px; perspective-origin: 50% 30%; touch-action: pan-y; cursor: grab; user-select: none; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.apg-ring-wrap.apg-grab { cursor: grabbing; }
.apg-ring-wrap::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: 6%; height: 50px; border-radius: 50%; background: radial-gradient(closest-side, rgba(228, 64, 40, .22), transparent); pointer-events: none; }
.apg-ring { position: absolute; left: 50%; top: 46%; width: clamp(160px, 17vw, 220px); aspect-ratio: 900 / 1260; transform-style: preserve-3d; translate: -50% -50%; }
.apg-ring-item { position: absolute; inset: 0; padding: 0; border: 0; background: none; transform-style: preserve-3d; cursor: inherit; }
.apg-ring-item:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 6px; }
.apg-ring-item .apg-c3d { transform: none; }
.apg-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 30px 24px; }

/* games */
.apg-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 24px; }
.apg-game { position: relative; display: grid; grid-template-columns: 46% 1fr; min-height: 280px; overflow: hidden; color: var(--bone); text-decoration: none;
  background: radial-gradient(120% 90% at 20% 0%, rgba(228, 64, 40, .14), transparent 60%), linear-gradient(160deg, rgba(36, 22, 18, .95), rgba(13, 10, 9, .95));
  border: 1px solid var(--rule); transition: border-color .35s, transform .35s; }
.apg-game:hover { border-color: rgba(228, 64, 40, .65); transform: translateY(-3px); }
.apg-game-art { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(70% 70% at 50% 40%, #3b2219, #120807 80%); }
.apg-game-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.apg-game:hover .apg-game-cover { transform: scale(1.04); }
.apg-game-fan { position: relative; width: 100%; height: 100%; min-height: 240px; }
.apg-game-fan img { position: absolute; left: 50%; top: 50%; width: clamp(92px, 11vw, 128px); margin: calc(clamp(92px, 11vw, 128px) * -.7) 0 0 calc(clamp(92px, 11vw, 128px) * -.5); border-radius: 4.6% / 3.3%; box-shadow: -6px 12px 26px rgba(0, 0, 0, .65); transform-origin: 50% 120%; transform: rotate(var(--a)) translateY(var(--y)); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.apg-game:hover .apg-game-fan img { transform: rotate(calc(var(--a) * 1.5)) translateY(calc(var(--y) - 8px)); }
.apg-game-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% 0%, rgba(255, 214, 170, .18), transparent 70%); }
.apg-game-meta { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 28px clamp(20px, 3vw, 36px); }
.apg-game-meta small { font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--vermilion); font-weight: 700; }
.apg-game-meta b { font: italic 500 clamp(2rem, 1.4rem + 1.6vw, 2.8rem)/1 var(--serif); }
.apg-game-desc { color: #d6cbbd; font-size: .92rem; line-height: 1.55; }
.apg-game-meta .apg-btn { align-self: flex-start; margin-top: 8px; }
.apg-soon { cursor: default; opacity: .7; }
.apg-soon:hover { transform: none; border-color: var(--rule); }
@media (max-width: 600px) { .apg-game { grid-template-columns: 1fr; } .apg-game-fan { min-height: 210px; } }

/* decks */
.apg-decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.apg-deck { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 18px 22px; background: linear-gradient(180deg, rgba(23, 18, 17, .9), rgba(13, 10, 9, .9)); border: 1px solid var(--rule); cursor: pointer; text-align: center; transition: border-color .3s, transform .3s; }
.apg-deck:hover { border-color: rgba(228, 64, 40, .6); transform: translateY(-3px); }
.apg-fan { position: relative; width: 100%; height: 250px; margin-bottom: 6px; }
.apg-fan img { position: absolute; left: 50%; bottom: 34px; width: 118px; margin-left: -59px; border-radius: var(--card-r); box-shadow: -4px 8px 18px rgba(0, 0, 0, .6); transform-origin: 50% 135%; transform: rotate(var(--a)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.apg-deck:hover .apg-fan img { transform: rotate(calc(var(--a) * 1.55)) translateY(-6px); }
.apg-deck-meta b { display: block; font: italic 500 1.4rem/1.2 var(--serif); }
.apg-deck-meta small { color: var(--ash); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; }

/* filters + grid */
.apg-filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); position: sticky; top: 61px; z-index: 5; background: rgba(13, 10, 9, .9); backdrop-filter: blur(8px); }
body.admin-bar .apg-filters { top: 93px; }
.apg-embedded .apg-filters { position: static; background: none; }
.apg-chips { display: flex; gap: 4px; }
.apg-chips button { min-height: 36px; min-width: 40px; padding: 0 12px; border: 1px solid var(--rule); background: transparent; cursor: pointer; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); transition: .2s; }
.apg-chips button:hover { color: var(--bone); border-color: rgba(236, 227, 214, .4); }
.apg-chips button.on { color: var(--night); background: var(--bone); border-color: var(--bone); }
.apg-chips .apg-suit { font-size: 1.05rem; letter-spacing: 0; }
.apg-chips .apg-red { color: #e0574a; }
.apg-chips .apg-suit.on.apg-red { color: #b3261a; }
.apg-select { display: flex; align-items: center; gap: 8px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ash); }
.apg-select select, .apg-search input { min-height: 36px; background: var(--soot); color: var(--bone); border: 1px solid var(--rule); border-radius: 0; padding: 0 10px; font: 500 .85rem var(--display); }
.apg-search { margin-left: auto; flex: 1 1 180px; max-width: 280px; }
.apg-search input { width: 100%; }
.apg-select select:focus, .apg-search input:focus, .apg-chips button:focus-visible, .apg-btn:focus-visible, .apg-tile:focus-visible, .apg-deck:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 2px; }
.apg-count { scroll-margin-top: 140px; color: var(--ash); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin: 18px 0 22px; }
.apg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); gap: clamp(26px, 3vw, 40px) clamp(14px, 2.2vw, 28px); }
.apg-tile { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; animation: apg-in .7s both; animation-delay: var(--d, 0ms); }
@keyframes apg-in { from { opacity: 0; transform: translateY(18px); } }
.apg-tile-card { display: block; }
.apg-tile-meta { display: flex; flex-direction: column; gap: 1px; }
.apg-tile-meta b { font: italic 500 1.05rem/1.25 var(--serif); }
.apg-tile-meta small { color: var(--ash); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apg-badge { position: absolute; top: 8px; right: -6px; z-index: 3; padding: 4px 8px; background: var(--vermilion); color: #fff; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; transform: translateZ(30px); }
.apg-more-wrap { text-align: center; padding: 46px 0 10px; }
.apg-more-wrap[hidden] { display: none; }

/* ---------- viewer ---------- */
.apg-viewer { position: fixed; inset: 0; z-index: 100000; display: grid; grid-template-columns: 1fr minmax(300px, 380px); align-items: center; opacity: 0; transition: opacity .28s ease; font-family: var(--display); color: var(--bone); }
.apg-viewer[hidden] { display: none; }
.apg-viewer.apg-open { opacity: 1; }
.apg-v-bg { position: absolute; inset: 0; background: radial-gradient(60% 70% at 38% 45%, rgba(60, 23, 18, .55), rgba(8, 6, 5, .97) 70%), #080605; }
.apg-v-stage { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; touch-action: none; cursor: grab; user-select: none; }
.apg-v-stage.apg-grab { cursor: grabbing; }
.apg-viewer { --vw: min(calc(74vh * .714), 70vw, 520px); }
.apg-v-holder { position: relative; z-index: 1; width: var(--vw); transition: transform .25s ease; }
.apg-v-card { transform: perspective(1700px); }
.apg-v-card .apg-front, .apg-v-card .apg-back { box-shadow: 0 30px 70px rgba(0, 0, 0, .7); }
.apg-v-floor { position: absolute; z-index: 0; left: 50%; top: calc(50% + var(--vw) * .7 - 4px); width: var(--vw); height: 40px; transform: translateX(-50%) scaleX(var(--w, 1)); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent); filter: blur(4px); pointer-events: none; }
.apg-v-info { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 40px 36px; background: linear-gradient(90deg, rgba(13, 10, 9, 0), rgba(13, 10, 9, .85) 18%); border-left: 1px solid var(--rule); }
.apg-v-title { margin: 0 0 22px; font: italic 500 clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem)/1.05 var(--serif); }
.apg-v-dl { margin: 0 0 26px; display: grid; gap: 0; }
.apg-v-dl div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.apg-v-dl dt { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ash); padding-top: 3px; }
.apg-v-dl dd { margin: 0; font-size: .92rem; word-break: break-word; }
.apg-v-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.apg-v-actions .apg-btn { min-height: 40px; padding: 0 16px; font-size: .68rem; }
.apg-v-info .apg-hint { text-align: left; }
.apg-v-close { position: absolute; top: 18px; right: 20px; z-index: 3; width: 46px; height: 46px; border: 1px solid var(--rule); background: rgba(13, 10, 9, .6); color: var(--bone); font-size: 26px; line-height: 1; cursor: pointer; }
.apg-v-close:hover { border-color: var(--vermilion); }
.apg-v-nav { position: absolute; top: 50%; z-index: 3; width: 52px; height: 84px; margin-top: -42px; border: 0; background: none; color: var(--ash); font: 300 3rem/1 var(--serif); cursor: pointer; }
.apg-v-nav:hover { color: var(--bone); }
.apg-v-prev { left: 10px; }
.apg-v-next { left: calc(100% - 380px - 62px); }
.apg-v-nav[hidden] { display: none; }
@media (max-width: 900px) {
  .apg-viewer { grid-template-columns: 1fr; grid-template-rows: 1fr auto; overflow-y: auto; }
  .apg-v-stage { height: 64vh; }
  .apg-viewer { --vw: min(calc(50vh * .714), 72vw); }
  .apg-v-info { height: auto; padding: 22px 20px 34px; background: rgba(13, 10, 9, .92); border-left: 0; border-top: 1px solid var(--rule); }
  .apg-v-next { left: auto; right: 10px; top: 32vh; }
  .apg-v-prev { top: 32vh; }
  .apg-v-dl div { grid-template-columns: 110px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .apg-reveal { opacity: 1; transform: none; transition: none; }
  .apg-halo, .apg-hero-float { animation: none; }
  .apg-tile { animation: none; }
}
