/* The milestone card, its proof blocks, and the page version of the same content. */
#panel {
  position: absolute; z-index: 6; left: max(18px, env(safe-area-inset-left, 0px)); top: 84px;
  width: min(440px, 42vw); max-height: calc(100% - 74px - 78px); overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border: var(--edge); padding: 18px 20px 16px; box-shadow: var(--shadow);
  opacity: 0; transform: translateX(-18px); pointer-events: none; visibility: hidden;
  transition: opacity 0.28s, transform 0.28s, visibility 0.28s;
  display: grid; gap: 10px; align-content: start;
}
#panel.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
#panel[data-kind="about"] { display: none; }
#panel[data-kind="floor"] { top: 84px; max-height: calc(100% - 84px - 74px); width: min(800px, calc(100% - 450px)); min-width: min(430px, calc(100% - 36px)); padding: 14px 18px; gap: 8px; font-size: 13.5px; line-height: 1.42; }
#panel[data-kind="floor"] h2 { font-size: 27px; }
#panel[data-kind="floor"] .bullets { gap: 5px; }
#panel[data-kind="floor"] .strip { padding-bottom: 0; }
.brands a { font-size: 12.5px; }
/* The floor card is a map on a roller. While the elevator moves it hangs rolled up on its tube; on arrival
   it unrolls with the weight bar leading the way down, and it rolls back up when the elevator leaves. */
#panel[data-kind="floor"] {
  --open-h: calc(100% - 72px - 74px);
  transform: none; opacity: 1; visibility: visible; border-bottom-width: 9px;
  transition: max-height 0.5s steps(12), padding 0.5s steps(12);
}
#panel[data-kind="floor"].is-open { max-height: var(--open-h); }
/* rolled up: only the tube and the weight bar */
#panel[data-kind="floor"]:not(.is-open) {
  max-height: 24px; padding-top: 12px; padding-bottom: 0; overflow: hidden;
  transition: max-height 0.32s steps(8), padding 0.32s steps(8);
}
/* "Hide": rolled up as far as the header row, which keeps the Show button */
#panel[data-kind="floor"].is-open.is-tucked { max-height: var(--tucked-h, 76px); overflow: hidden; transition: max-height 0.32s steps(8); }
#panel.is-tucked .panel__cols { visibility: hidden; transition: visibility 0s 0.32s; } /* out of reach of the Tab key once rolled */
#panel.is-rolling { overflow: hidden; } /* no scrollbar while it is still unrolling */
@media (prefers-reduced-motion: reduce) { #panel[data-kind="floor"], #panel[data-kind="floor"]:not(.is-open), #panel[data-kind="floor"].is-open.is-tucked { transition: none; } }
/* drawn as a roller blind: the tube it winds onto along the top, a weight bar with a pull ring along the bottom.
   The card starts 12px higher and has 12px more padding, so the tube takes no room from the text. */
#panel[data-kind="floor"] {
  top: 72px; padding-top: 26px; border-bottom-color: transparent;
  background:
    radial-gradient(circle at center, var(--surface) 0 2px, #ffd23f 2px 4px, transparent 4px) bottom 0 center / 12px 9px no-repeat border-box,
    linear-gradient(var(--fg), var(--fg)) bottom / 100% 9px no-repeat border-box,
    linear-gradient(#1b2030 0 2px, #5d6880 2px 4px, #cfd5e2 4px 6px, #8792a8 6px 9px, #2a3144 9px 12px) top / 100% 12px no-repeat padding-box,
    var(--surface);
}
.panel__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel__head .panel__eyebrow { flex: 1; }
.panel__hide { all: unset; cursor: pointer; font: 700 14px/1 var(--game); padding: 5px 9px; border: 2px solid var(--fg); background: var(--chip); }
.panel__hide:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.panel__cols { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 4px 22px; align-items: start; }
.panel__story, .panel__side { display: grid; gap: 8px; align-content: start; min-width: 0; }
.panel__side > h4:first-child { margin-top: 0; }
.panel__side .proof { padding-top: 8px; margin-top: 2px; }
#panel[data-kind="cta"] { left: auto; right: 70px; width: min(370px, 42vw); transform: translateX(18px); }
#panel[data-kind="cta"].is-open { transform: none; }

.panel__level { justify-self: start; font: 10px/1 var(--pixel); text-transform: uppercase; color: var(--gold); background: var(--ink); padding: 7px 9px; }
.panel__eyebrow { font: 8px/1.6 var(--pixel); text-transform: uppercase; color: var(--spark); }
#panel h2, .plain__inner h1, .plain__inner h2, .booking h2 { font: 700 30px/1.02 var(--game); text-wrap: balance; }
.panel__role { font-weight: 600; font-size: 14px; }
.panel__summary { color: var(--muted); }
.panel__hint { font: 500 12px var(--mono); color: var(--muted); }
#panel h4, .plain__inner h4, .booking h4 { font: 8px/1.6 var(--pixel); text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.bullets { display: grid; gap: 6px; }
.bullets li { position: relative; padding-left: 16px; }
/* the square sits on the middle of the first line of text, whatever the line height */
.bullets li::before { content: ""; position: absolute; left: 2px; top: 0.45em; top: calc((1lh - 7px) / 2 + 0.5px); width: 7px; height: 7px; background: var(--spark); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chips li { font: 500 12px var(--mono); padding: 3px 7px; background: var(--chip); border: 1.5px solid var(--fg); }
.links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
/* links: a marker stripe that fills on hover, and an arrow that jumps */
.link {
  font: 700 15px/1.3 var(--game); color: var(--fg); text-decoration: none; padding: 0 3px;
  background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 100% / 100% 5px;
  transition: background-size 0.16s steps(4), color 0.16s;
}
.link span { display: inline-block; transition: transform 0.16s steps(3); }
.link:hover, .link:focus-visible { background-size: 100% 100%; color: var(--ink); }
.link:hover span, .link:focus-visible span { transform: translate(3px, -3px); }
.facts { display: grid; gap: 6px; }
.facts div { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.facts dt { font: 8px/2.6 var(--pixel); text-transform: uppercase; color: var(--muted); }

.contact { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.copy {
  all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  font: 500 13px var(--mono); padding: 8px 10px; border: 2px dashed var(--fg); user-select: text;
}
.copy span { overflow-wrap: anywhere; }
.copy em { font: 600 11px var(--body); font-style: normal; color: var(--accent); }
.copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.panel__nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 2px solid var(--fg); padding-top: 12px; margin-top: 4px; font: 9px var(--pixel); color: var(--muted); }
.panel__nav button { all: unset; cursor: pointer; font: 700 15px/1 var(--game); padding: 7px 10px; background: var(--chip); color: var(--fg); border: 2px solid var(--fg); box-shadow: 2px 2px 0 var(--fg); }
.panel__nav button:active { transform: translate(2px, 2px); box-shadow: none; }
.panel__nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- proof ---- */
.proof { display: grid; gap: 6px; border-top: 2px solid var(--fg); padding-top: 8px; margin-top: 2px; min-width: 0; }
.proof__note { font-size: 12px; line-height: 1.35; color: var(--muted); }
.strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; }
/* a tile: the framed image on top and its caption underneath, so nothing covers the picture */
.slot { flex: none; scroll-snap-align: start; position: relative; display: grid; gap: 3px; align-content: start; min-width: 0; }
.slot--story { width: 78px; }
.slot--photo { width: 104px; }
.slot--small { width: calc((100% - 16px) / 3); } /* three materials fill the column */
.strip--small:has(> .slot:nth-child(4)) .slot--small { width: calc((100% - 24px) / 4); } /* four share it too, so the row never scrolls */
.slot--story .slot__open, .slot--story.slot--empty { aspect-ratio: 9 / 16; }
.slot--photo .slot__open, .slot--photo.slot--empty { aspect-ratio: 4 / 3; }
.slot--small .slot__open, .slot--small.slot--empty { aspect-ratio: 5 / 3; }
/* under the four numbers, the screenshots share the same width so both edges line up */
.proof--stats .strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); overflow: visible; margin-top: 8px; }
.proof--stats .slot--photo { width: auto; }
.proof--stats .slot--photo .slot__open { aspect-ratio: 16 / 7; }
.proof--stats .slot img { object-position: top; }
.slot--small .slot__mark, .slot--small small { display: none; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* a line break in a caption is kept, so a number stays beside the word that follows it */
.slot figcaption { white-space: pre-line; font: 600 10.5px/1.25 var(--body); color: var(--fg); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.slot small { position: relative; font-size: 10.5px; color: var(--muted); padding: 0 8px 7px; }
.slot--empty { align-content: end; overflow: hidden; border: 2px dashed var(--fg); background: repeating-linear-gradient(135deg, var(--surface) 0 9px, var(--chip) 9px 11px); }
.slot--empty figcaption { position: relative; padding: 6px 8px 0; }
.slot__mark { position: absolute; left: 50%; top: 34%; width: 26px; height: 20px; margin: -10px 0 0 -13px; border: 2px solid var(--muted); border-radius: 4px; opacity: 0.6; }
.slot__mark::after { content: ""; position: absolute; left: 4px; bottom: 3px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.stat { background: var(--ink); padding: 8px 6px; display: grid; gap: 5px; align-content: start; }
.stat b { font: 13px/1 var(--pixel); color: var(--gold); }
.stat span { font-size: 11px; line-height: 1.2; color: #b9c0d6; }

.threads, .systems { display: grid; gap: 5px; }
.systems p b { color: var(--fg); }
.panel__side .systems p { font-size: 12.5px; line-height: 1.32; }
.panel__side .chips li { font-size: 11px; padding: 2px 6px; }
.threads small { font: 500 12px var(--body); color: var(--muted); }
.panel__side .threads p { font-size: 12.5px; line-height: 1.3; }
.threads__top b { font-size: 13px; }
.brands { display: flex; flex-wrap: wrap; gap: 4px 5px; }
.brands a { display: inline-flex; align-items: center; font: 700 13px/1 var(--game); padding: 3px 6px; border: 2px solid #0b0d17; background: #fffdf5; color: #0b0d17; text-decoration: none; box-shadow: 2px 2px 0 #0b0d17; transition: transform 0.12s, box-shadow 0.12s, background 0.12s; }
.brands a:hover, .brands a:focus-visible { transform: translate(-2px, -2px) rotate(-2deg); box-shadow: 4px 4px 0 #0b0d17; background: var(--gold); }
.brands a:active { transform: translate(2px, 2px); box-shadow: none; }
.brands li:nth-child(even) a:hover { transform: translate(-2px, -2px) rotate(2deg); }
.brands .logo-mark { margin-right: 5px; }
.brands__more { align-self: center; font: 700 13px/1 var(--game); color: var(--muted); padding: 0 4px; }
.threads li, .systems li { border: 2px solid var(--fg); padding: 4px 8px; display: grid; gap: 1px; font-size: 13.5px; }
/* four systems fit the card on a laptop screen */
.systems { gap: 4px; }
.systems li { padding: 2px 8px 3px; }
.threads__top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.tag { font: 8px/1.4 var(--pixel); text-transform: uppercase; color: var(--ok); white-space: nowrap; }
.systems__metric { font: 500 12px var(--mono); color: var(--accent); }
.systems p, .threads p { color: var(--muted); font-size: 13px; line-height: 1.35; }

.wall__group { font: 8px/1.6 var(--pixel); text-transform: uppercase; color: var(--fg); margin-top: 6px; }
.tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.tabs button { all: unset; cursor: pointer; font: 700 14px/1 var(--game); padding: 5px 8px; border: 2px solid var(--fg); background: var(--surface); }
.tabs button[aria-selected="true"] { background: var(--gold); color: var(--ink); box-shadow: 2px 2px 0 var(--fg); }
.tabs button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tabs small { font: 500 11px var(--mono); opacity: 0.7; }
.wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
/* company on the first line, the full title under it: nothing is cut */
.tile { border: 2px solid var(--fg); background: #fffdf5; color: #0b0d17; padding: 2px 6px 3px; display: grid; gap: 0; align-content: start; min-width: 0; }
.tile__who { color: #4b5266; overflow-wrap: anywhere; }

.tile__name { font: 700 15px/1.1 var(--game); overflow-wrap: anywhere; }
a.tile__name, .threads__top a { color: inherit; text-decoration: none; }
a.tile__name:hover, .threads__top a:hover, a.tile__name:focus-visible, .threads__top a:focus-visible { text-decoration: underline; text-underline-offset: 2px; }
.logo-mark { width: 16px; height: 16px; margin-right: 6px; vertical-align: -2px; background: #fffdf5; outline: 2px solid #fffdf5; }
.tile__who { font-size: 11.5px; line-height: 1.2; }
.tile__what { font: 700 9.5px var(--mono); text-transform: uppercase; color: #17784a; white-space: nowrap; }

/* ---- phone held upright: the card hangs over the upper half of the scene and unrolls like a map ---- */
@media (max-aspect-ratio: 4/5) {
  #panel, #panel[data-kind="about"], #panel[data-kind="cta"], #panel[data-kind="floor"] {
    display: grid; left: 8px; right: 8px; top: calc(70px + env(safe-area-inset-top, 0px)); bottom: auto; width: auto; min-width: 0;
    max-height: calc(50dvh - 78px); /* ends above his speech bubble */
    padding: 14px 14px 14px;
    opacity: 1; transform: none; pointer-events: auto; visibility: visible;
  }
  #panel[data-kind="floor"] { --open-h: calc(50dvh - 78px); padding-top: 24px; } /* room for the tube the card winds onto */
  #panel:not(.is-open) > * { opacity: 0.35; transition: opacity 0.2s; }
  #panel h2 { font-size: 26px; }
  .panel__cols { grid-template-columns: minmax(0, 1fr); }
  .panel__head { gap: 6px 12px; }
  .panel__head .panel__eyebrow { order: 2; flex: 1 0 100%; } /* dates on their own line, never broken mid-way */
  .panel__hide { order: 1; margin-left: auto; padding: 9px 12px; } /* beside the level tag, large enough to tap */
  /* read with a thumb: larger text, more air between lines, and links and chips tall enough to tap */
  #panel[data-kind="floor"] { font-size: 14.5px; line-height: 1.5; gap: 10px; }
  #panel[data-kind="floor"] .bullets { gap: 8px; }
  .panel__story, .panel__side { gap: 10px; }
  .links { gap: 2px 16px; }
  .link { padding: 8px 3px; background-position: 0 calc(100% - 6px); }
  .brands { gap: 7px; }
  .brands a { font-size: 14px; padding: 9px 9px; }
  .chips li { padding: 4px 8px; }
  .tabs [role="tab"] { min-height: 40px; }
  .systems p, .threads p, .panel__side .systems p { font-size: 13.5px; line-height: 1.4; }
}
/* narrow desktop windows: one column, and the card may scroll */
@media (min-aspect-ratio: 4/5) and (max-width: 1040px) {
  .panel__cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-height: 520px) and (min-aspect-ratio: 4/5) {
  #panel { top: 56px; max-height: calc(100% - 56px - 12px); font-size: 13.5px; padding: 14px 16px; }
  #panel h2 { font-size: 20px; }
}

/* ---- the page version ---- */
#plain { position: fixed; inset: 0; z-index: 40; overflow: auto; background: var(--bg); color: var(--fg); }
.plain__inner { max-width: 760px; margin: 0 auto; padding: 28px max(18px, env(safe-area-inset-left, 0px)) 64px; display: grid; gap: 22px; }
.plain__inner header, .plain__inner article, .plain__inner footer { display: grid; gap: 10px; background: var(--surface); border: var(--edge); box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.plain__inner h1 { font-size: 40px; }
.plain__back { justify-self: start; }

/* ---- book a call ---- */
#booking { width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; background: var(--surface); color: var(--fg); border: var(--edge); box-shadow: var(--shadow); }
#booking::backdrop { background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0 2px, transparent 2px 4px), rgba(5, 6, 14, 0.78); }
.booking { display: grid; gap: 8px; padding: 18px 20px; }
/* the calendar's own booking page, shown inside the dialog */
#booking.is-page { width: min(980px, calc(100vw - 24px)); }
.booking__frame { width: 100%; height: min(640px, calc(100dvh - 190px)); border: 2px solid var(--fg); background: #ffffff; }
.booking__note a { color: inherit; }
.booking__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.booking__close { all: unset; cursor: pointer; width: 32px; height: 32px; display: grid; place-items: center; border: 2px solid var(--fg); font-size: 14px; }
.booking__close:focus-visible, .pick:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.booking__note { font-size: 13.5px; color: var(--muted); }
.booking__summary { font: 10px/1.6 var(--pixel); text-transform: uppercase; background: var(--ink); color: var(--gold); padding: 10px; margin-top: 6px; }
.picks { display: flex; flex-wrap: wrap; gap: 6px; }
.pick { all: unset; cursor: pointer; font: 500 13px var(--mono); padding: 6px 9px; border: 2px solid var(--fg); background: var(--surface); }
.pick[aria-pressed="true"] { background: var(--gold); color: var(--ink); box-shadow: 2px 2px 0 var(--fg); }
.pick--more { border-style: dashed; }
/* the live picker: length and time zone side by side, then day, time and the visitor's details */
#booking:not(.is-page) { width: min(600px, calc(100vw - 24px)); }
.booking__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 22px; align-items: start; }
.booking__row > div { display: grid; gap: 8px; min-width: 0; }
.booking__row h4 { margin-top: 6px; }
.booking__zone, .booking__fields input, .booking__fields textarea {
  box-sizing: border-box; width: 100%; font: 500 14px/1.3 var(--body); color: var(--fg); background: var(--surface);
  border: 2px solid var(--fg); border-radius: 0; padding: 6px 8px;
}
.booking__zone { font: 500 13px var(--mono); padding: 5px 6px; cursor: pointer; }
.booking__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin-top: 4px; }
.booking__fields label { display: grid; gap: 4px; font: 600 12px/1.2 var(--body); color: var(--muted); }
.booking__fields textarea { resize: vertical; min-height: 52px; }
.booking__wide { grid-column: 1 / -1; }
.booking__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* people never see it; scripts fill it in */
.booking__zone:focus-visible, .booking__fields input:focus-visible, .booking__fields textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.booking__error { font: 600 13px/1.3 var(--body); color: var(--spark); }
.booking .button[disabled] { opacity: 0.6; cursor: default; }
@media (max-width: 520px) {
  .booking { padding: 14px 14px; }
  .booking__row, .booking__fields { grid-template-columns: minmax(0, 1fr); }
  .pick { padding: 9px 10px; } /* tall enough for a thumb */
  .booking__zone, .booking__fields input, .booking__fields textarea { font-size: 16px; padding: 9px 8px; } /* 16px stops phones zooming in on the field */
}

/* company names pop in one after another when a card opens */
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.9); } }
#panel.is-open .tile, #panel.is-open .brands li, .wall:not([hidden]) .tile { animation: pop 0.24s steps(4) backwards; }
.tile:nth-child(2), .brands li:nth-child(2) { animation-delay: 40ms; }
.tile:nth-child(3), .brands li:nth-child(3) { animation-delay: 80ms; }
.tile:nth-child(4), .brands li:nth-child(4) { animation-delay: 120ms; }
.tile:nth-child(5), .brands li:nth-child(5) { animation-delay: 160ms; }
.tile:nth-child(6), .brands li:nth-child(6) { animation-delay: 200ms; }
.tile:nth-child(7), .brands li:nth-child(7) { animation-delay: 240ms; }
.tile:nth-child(8), .brands li:nth-child(8) { animation-delay: 280ms; }
.tile:nth-child(n + 9) { animation-delay: 320ms; }
@media (prefers-reduced-motion: reduce) { .tile, .brands li { animation: none !important; } }

/* every company logo, drifting past in one row */
.ticker { overflow: hidden; border: 2px solid var(--fg); background: #fffdf5; padding: 3px 0; }
.proof--wall > h4 { display: none; } /* the moving row of logos and the tabs already say what this is */
.ticker__run { display: flex; gap: 14px; width: max-content; animation: ticker 36s linear infinite; }
.ticker .logo-mark { margin: 0; width: 18px; height: 18px; outline: 0; }
.ticker:hover .ticker__run { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__run { animation: none; } }

/* ---- proof image viewer, laid out like stories ---- */
.slot__open { all: unset; cursor: zoom-in; position: relative; display: block; overflow: hidden; box-sizing: border-box; border: 2px solid var(--fg); background: var(--chip); }
a.slot__open { cursor: pointer; }
.slot__site { position: absolute; top: 4px; right: 4px; line-height: 0; pointer-events: none; }
.slot__site .icon, .link .icon { width: 14px; height: 14px; margin: 0; }
.link .icon { margin-right: 5px; vertical-align: -2px; }
/* the review stories share the column evenly, so both edges line up with the text above */
.proof--gallery .strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); overflow: visible; }
.proof--gallery .slot { width: auto; }
/* photos go three to a row, so each one is large enough to read */
.proof--gallery .strip--photo { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slot__open:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
#viewer { width: fit-content; min-width: min(430px, calc(100vw - 20px)); max-width: min(1100px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); padding: 0; background: var(--ink); color: #f4f1e4; border: 3px solid #f4f1e4; box-shadow: var(--shadow); }
#viewer::backdrop { background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0 2px, transparent 2px 4px), rgba(5, 6, 14, 0.86); }
.viewer { position: relative; display: grid; gap: 8px; padding: 10px; }
.viewer__bars { display: flex; gap: 4px; padding-right: 40px; }
.viewer__bars i { flex: 1; height: 5px; background: #3a4161; }
.viewer__bars i.is-seen { background: var(--gold); }
.viewer__close { all: unset; cursor: pointer; position: absolute; right: 8px; top: 4px; width: 30px; height: 30px; display: grid; place-items: center; font-size: 14px; }
.viewer__close:focus-visible, .viewer__zone:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.viewer__frame { position: relative; display: grid; place-items: center; background: #05060e; min-height: 200px; }
.viewer__frame img { display: block; max-width: 100%; max-height: min(76dvh, 760px); object-fit: contain; }
.viewer__zone { all: unset; cursor: pointer; position: absolute; top: 0; bottom: 0; width: 38%; }
.viewer__zone--back { left: 0; }
.viewer__zone--next { right: 0; width: 62%; }
.viewer__zone[disabled] { cursor: default; }
.viewer__caption { display: flex; justify-content: space-between; gap: 10px; font: 700 16px/1.2 var(--game); }
.viewer__caption small { font: 9px/1.8 var(--pixel); color: var(--gold); white-space: nowrap; }
.viewer__translation { font-size: 13.5px; line-height: 1.4; color: #dfe3f0; border-left: 4px solid var(--gold); padding-left: 10px; }
.viewer__translation b { display: block; font: 8px/1.8 var(--pixel); text-transform: uppercase; color: var(--gold); }
