/* The film bay page. Builds on the firmware store's home.css and store.css and the shared site-chrome.css.
   One layer (2026-10-15 taste review): surfaces are told apart by tone, not by outlines; text in the
   text face at 15px and up; the camera's own screens (data-ui) keep their colours and monospace. */
[hidden] { display: none !important; }
body { background: var(--bg); }

/* Layout: a split opening, then one centred column of steps */
.bay-wrap { padding-bottom: 0; }
.bay-wrap > :not(.store-intro) { max-width: 880px; margin-left: auto; margin-right: auto; }
.bay-hero.gx-open { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 80px); max-width: none; padding-bottom: clamp(48px, 6vw, 96px); }
.bay-hero .gx-display { max-width: 9em; }
.bay-hero-shot { margin: 0; overflow: hidden; border-radius: var(--r-m); background: #1b2325; }
.bay-hero-shot img { display: block; width: 100%; height: auto; }
/* 2.0: the drawn camera back with UI renders (screen box as the homepage's .pro2-screen), three screens in turn */
.bay-cam { position: relative; aspect-ratio: 900 / 578; overflow: visible; border-radius: 0; background: none; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55)); }
.bay-cam .bay-cam-body { position: absolute; inset: 0; width: 100%; height: 100%; }
.bay-cam-screen { position: absolute; left: 10%; top: 28.201%; width: 56%; height: 58.131%; overflow: hidden; border-radius: 2px; background: #000; }
.bay-cam-shot { position: absolute; inset: 0; opacity: 0; animation: bay-shot 12s linear infinite both; }
.bay-cam-shot:nth-child(2) { animation-delay: -8s; }
.bay-cam-shot:nth-child(3) { animation-delay: -4s; }
.bay-cam-shot img, .bay-screen img { width: 100%; height: 100%; }
@keyframes bay-shot { 0%, 30% { opacity: 1; } 34%, 96% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bay-cam-shot { animation: none; } .bay-cam-shot:first-child { opacity: 1; } }
.bay-screen { overflow: hidden; border-radius: var(--r-s); background: #000; aspect-ratio: 3 / 2; }
.bay-cam [data-locale], .bay-screen [data-locale] { display: none; }
:root:lang(zh-Hans) :is(.bay-cam, .bay-screen) [data-locale="zh-Hans"], :root:lang(zh-Hant) :is(.bay-cam, .bay-screen) [data-locale="zh-Hant"],
:root:not(:lang(zh)) :is(.bay-cam, .bay-screen) [data-locale="en"] { display: block; }
.bay-v1 { grid-column: 1; margin-top: 0; }
.bay-install-guide > .bay-tree-figure { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 760px) { .bay-install-guide > .bay-v1, .bay-install-guide > .bay-tree-figure { grid-column: auto; grid-row: auto; } }
.bay-require { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; margin: clamp(28px, 3vw, 40px) 0 0; padding: 20px 22px; border-radius: var(--r-m); background: var(--surface-2); }
.bay-require > div { flex: 1 1 320px; }
.bay-require strong { display: block; color: var(--amber); font-size: 17px; font-weight: 600; }
.bay-require p { margin: 6px 0 0; color: var(--ink); font-size: 17px; line-height: 1.6; }

/* Steps: the order is real, so each heading keeps its number, set quietly in the text face */
.bay-step { scroll-margin-top: 24px; margin: 0 auto; padding: clamp(56px, 7vw, 104px) 0 0; }
.bay-step-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.bay-step-head h2 { margin: 0; font-size: clamp(28px, 1rem + 2.7vw, 52px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
:lang(en) .bay-step-head h2 { text-transform: lowercase; }
.bay-step-no { color: var(--muted); font-size: 17px; font-variant-numeric: tabular-nums; }
.bay-muted { max-width: 40em; margin: 0; color: var(--ink); font-size: 17px; line-height: 1.6; }
.bay-small { color: var(--muted); font-size: 15px; }
.bay-link { min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--amber); font: inherit; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bay-link:focus-visible, .bay-code-row input:focus-visible, .bay-film input:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.bay-tools { display: flex; gap: 14px; margin-left: auto; }

/* 01 Device code */
.bay-code-guide { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); grid-template-areas: "figure intro" "figure entry"; grid-template-rows: auto 1fr; gap: 18px 44px; align-items: start; margin-top: 16px; }
.bay-code-intro { grid-area: intro; }
.bay-code-entry { grid-area: entry; }
.bay-find { margin: 12px 0 0; padding-left: 22px; font-size: 17px; line-height: 1.6; }
.bay-find li + li { margin-top: 4px; }
.bay-lcd-figure { grid-area: figure; margin: 0; }
.bay-lcd-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.bay-lcd { overflow: hidden; border-radius: var(--r-m); background: #1b2325; color: #e8e8e4; font: 15px/1 Arial, Helvetica, sans-serif; } /* the camera menu face, as on the homepage screens */
.bay-lcd-title { padding: 12px 12px; border-bottom: 2px solid #45494c; background: #1b2325; font-family: var(--font); font-size: 15px; }
.bay-lcd-row { padding: 11px 12px 11px 26px; border-bottom: 1px solid #2c3436; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bay-lcd-row.selected { background: var(--amber); color: var(--ink-on-light); }
.bay-code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bay-code-row input { width: 132px; min-height: 52px; border: 1px solid var(--rule); border-radius: var(--r-s); background: var(--surface); color: var(--ink); font: 600 24px var(--mono); letter-spacing: .14em; text-align: center; text-transform: uppercase; }
.bay-code-row input:focus-visible { border-color: var(--amber); outline: none; }
.bay-code-dash { font: 600 24px var(--mono); }
.bay-code-state { min-height: 24px; margin: 10px 0 4px; font-size: 15px; }
.bay-code-state.ok { color: var(--ok); }
.bay-code-state.bad, .bay-error { color: var(--ember-text); }

/* 02 Films: filled tiles, the picked ones a step brighter */
.bay-catalog-state { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
/* Library date, this camera's last download here, and the release log */
.bay-library { max-width: 40em; margin: 0 0 16px; font-size: 15px; line-height: 1.6; }
.bay-library p { margin: 0; }
.bay-library-date { color: var(--ink); font-variant-numeric: tabular-nums; }
.bay-library-mine { margin-top: 4px !important; }
.bay-library-mine.current { color: var(--ok); }
.bay-library-mine.outdated { color: var(--amber); }
.bay-library-log { margin-top: 6px; color: var(--muted); }
.bay-library-log summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--amber); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bay-library-log summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.bay-library-log ol { margin: 0; padding: 0; list-style: none; }
.bay-library-log li { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 2px 12px; padding: 6px 0; border-top: 1px solid var(--rule); }
.bay-library-log time { grid-row: span 3; color: var(--ink); font-variant-numeric: tabular-nums; }
.bay-library-log span { grid-column: 2; }
@media (max-width: 520px) {
  .bay-library-log li { grid-template-columns: minmax(0, 1fr); }
  .bay-library-log time { grid-row: auto; }
  .bay-library-log span { grid-column: 1; }
}
.bay-group { margin-top: 28px; }
.bay-group-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; color: var(--muted); font-size: 15px; }
.bay-group-title b { color: var(--ink); font-size: 17px; font-weight: 600; }
/* The shelf: each film is a canister standing on a wooden plank, its name on the plank's edge below.
   --k scales the canister (the label is the camera's 120 px upright icon); --z is where the plank starts and
   --row one shelf's height. The planks are the list's own background, so a half-full row still has a shelf. */
.bay-films {
  --k: .6; --z: 104px; --row: 176px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); grid-auto-rows: var(--row);
  padding: 0 8px; border-radius: var(--r-m);
  background:
    linear-gradient(to bottom, transparent var(--z), #463b2f var(--z), #2c251e calc(var(--z) + 9px),
      rgb(0 0 0 / .5) calc(var(--z) + 9px), transparent calc(var(--z) + 22px)) 0 0 / 100% var(--row) repeat-y,
    var(--surface-2);
}
.bay-film { position: relative; display: flex; flex-direction: column; align-items: center; font-size: 13px; cursor: pointer; }
.bay-film.fixed { cursor: default; }

/* The canister. Label box inside its 120 px icon: x 15–105, y 6–114. */
.bay-can { position: relative; flex: none; width: calc(120px * var(--k)); height: calc(138px * var(--k));
  margin: calc(var(--z) - 138px * var(--k)) calc(14px * var(--k)) 0 0; isolation: isolate;
  transition: transform var(--t-feedback) var(--ease-out), opacity var(--t-feedback) var(--ease-out); }
.bay-can img { position: absolute; left: 0; top: calc(16px * var(--k)); width: calc(120px * var(--k)); height: calc(120px * var(--k)); }
.bay-can-knob { position: absolute; left: 50%; top: 0; width: calc(32px * var(--k)); height: calc(14px * var(--k)); transform: translateX(-50%);
  border-radius: calc(3px * var(--k)) calc(3px * var(--k)) 0 0; background: linear-gradient(90deg, #2e2d2b, #5a5854 35%, #3a3936 60%, #262523); }
.bay-can-rim { position: absolute; z-index: 1; left: calc(10px * var(--k)); width: calc(100px * var(--k)); height: calc(10px * var(--k));
  border-radius: calc(3px * var(--k)); background: linear-gradient(90deg, #353432, #6a6864 30%, #45443f 55%, #2a2927); }
.bay-can-rim.top { top: calc(12px * var(--k)); }
.bay-can-rim.bottom { top: calc(126px * var(--k)); }
/* The film leader, sprocket holes punched with the shelf colour; drawn out further while the film is picked. */
.bay-can-leader { position: absolute; z-index: -1; left: calc(98px * var(--k)); top: calc(44px * var(--k)); width: calc(24px * var(--k)); height: calc(58px * var(--k));
  border-radius: 0 calc(4px * var(--k)) calc(4px * var(--k)) 0; background: #6e6054;
  transition: width var(--t-feedback) var(--ease-out); }
.bay-can-leader::before, .bay-can-leader::after { content: ""; position: absolute; right: calc(5px * var(--k)); width: calc(8px * var(--k)); height: calc(8px * var(--k)); background: var(--surface-2); }
.bay-can-leader::before { top: calc(8px * var(--k)); }
.bay-can-leader::after { bottom: calc(8px * var(--k)); }
.bay-film.on .bay-can-leader, .bay-film.fixed .bay-can-leader { width: calc(36px * var(--k)); }
.bay-film:not(.on):not(.fixed) .bay-can { opacity: .45; }
.bay-film:not(.fixed):hover .bay-can { transform: translateY(-3px); }
/* Picked films catch a warm light on the plank */
.bay-film.on::after, .bay-film.fixed::after { content: ""; position: absolute; left: 12%; right: 12%; top: calc(var(--z) - 8px); height: 16px;
  background: radial-gradient(closest-side, rgb(255 181 71 / .32), transparent); pointer-events: none; }

.bay-film-name { position: absolute; top: calc(var(--z) + 16px); left: 4px; right: 4px; display: -webkit-box; overflow: hidden;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--muted); line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
/* The full name with the camera's name under it (film-bay.js filmText) */
.bay-film-text { position: absolute; top: calc(var(--z) + 16px); left: 4px; right: 4px; text-align: center; }
.bay-film-text .bay-film-name { position: static; }
.bay-film-camera { display: block; margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.3;
  white-space: nowrap; text-overflow: ellipsis; opacity: .75; }
.bay-film-camera svg { margin-right: 3px; vertical-align: -1px; }
.bay-hidden-words { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bay-film.on .bay-film-name, .bay-film.fixed .bay-film-name { color: var(--ink); }

/* The corner mark: a round checkbox, the built-ins' tick, or the lock */
.bay-film input, .bay-film-tick { position: absolute; z-index: 2; top: 10px; right: 8px; width: 20px; height: 20px; margin: 0; border-radius: 50%; }
.bay-film input { appearance: none; border: 1.5px solid #6d6a64; background: transparent; cursor: pointer; }
.bay-film input:checked { border-color: var(--amber); background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.3 2.3L9.5 3.8' fill='none' stroke='%2318191A' stroke-width='1.8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.bay-film-tick { display: grid; place-items: center; background: var(--amber); color: #18191A; }
.bay-film.locked .bay-film-tick { background: #3a3936; color: #c9c5bd; }

/* Preview: top-left corner, quiet until pointed at */
.bay-film-view { position: absolute; z-index: 2; top: 2px; left: 2px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-s);
  color: var(--muted); opacity: .6; transition: color var(--t-feedback) var(--ease-out), opacity var(--t-feedback) var(--ease-out), background-color var(--t-feedback) var(--ease-out); }
.bay-film-view svg { width: 18px; height: 18px; }
.bay-film:hover .bay-film-view { opacity: 1; }
.bay-film-view:hover { color: var(--amber); background: rgb(255 255 255 / .06); }
.bay-film-view:focus-visible { opacity: 1; outline: 2px solid var(--amber); outline-offset: -2px; }
@media (max-width: 520px) {
  .bay-films { --k: .5; --z: 88px; --row: 158px; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); padding: 0 4px; }
  .bay-film-view { opacity: .8; }
  .bay-film input, .bay-film-tick { top: 6px; right: 4px; }
}

/* 03 Download */
.bay-consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0 0 8px; padding: 16px; border-radius: var(--r-m); background: var(--surface-2); font-size: 15px; line-height: 1.7; cursor: pointer; }
.bay-consent:has(input:checked) { background: #2a2925; }
.bay-consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--amber); }
.bay-consent-links { margin: 0 0 18px; }
.bay-consent-links a { color: inherit; text-underline-offset: 3px; }
.bay-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.bay-summary { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.bay-error { margin: 12px 0 0; font-size: 15px; }
.bay-result { margin-top: 20px; padding: 20px 22px; border-radius: var(--r-m); background: var(--surface-2); }
.bay-result h2 { margin: 0 0 6px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.bay-file { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font: 15px var(--mono); }
.bay-result-next { margin: 10px 0; font-size: 17px; }

/* 04 Into the camera */
.bay-install-guide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 32px; align-items: start; }
.bay-install { display: grid; gap: 10px; margin: 6px 0 0; padding-left: 24px; font-size: 17px; line-height: 1.6; }
.bay-install li::marker { color: var(--amber); font-variant-numeric: tabular-nums; }
.bay-tree-figure { margin: 6px 0 0; }
.bay-tree { margin: 0; padding: 16px 18px; overflow-x: auto; border-radius: var(--r-s); background: var(--surface-2); color: var(--ink); font: 15px/1.7 var(--mono); }
.bay-tree b { color: var(--amber); font-weight: 600; }
.bay-tree-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; }
.bay-usage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0 10px; }
.bay-usage figure { margin: 0; overflow: hidden; border-radius: var(--r-s); background: #1b2325; }
.bay-usage img { display: block; width: 100%; height: auto; }
.bay-usage figcaption { display: flex; gap: 8px; padding: 10px 12px; background: var(--bg); color: var(--ink); font-size: 15px; }
.bay-usage figcaption b { color: var(--amber); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Collapsibles */
.bay-more { margin-top: 20px; border-radius: var(--r-m); background: var(--surface-2); }
.bay-more > summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 18px; cursor: pointer; font-size: 17px; font-weight: 600; list-style: none; }
.bay-more > summary::-webkit-details-marker { display: none; }
.bay-more > summary::after { content: "+"; font-size: 20px; font-weight: 400; transition: transform .25s var(--ease-out); }
.bay-more[open] > summary::after { transform: rotate(45deg); }
.bay-more > :not(summary) { margin: 0 18px 18px; }
.bay-install-notes { display: grid; gap: 8px; padding: 0 0 0 20px; color: var(--ink); font-size: 15px; line-height: 1.6; }
.bay-credit { padding-top: 0; }
.bay-credit-details { margin-top: 12px !important; margin-bottom: 0; }

@media (max-width: 960px) {
  .bay-hero.gx-open { grid-template-columns: 1fr; }
  .bay-hero-shot { max-width: 560px; }
}
@media (max-width: 760px) {
  .bay-code-guide { grid-template-columns: 1fr; grid-template-areas: "intro" "figure" "entry"; grid-template-rows: auto; }
  .bay-code-row input { width: 108px; font-size: 21px; }
  .bay-install-guide, .bay-usage { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .bay-more > summary::after, .bay-film, .bay-film-view, .bay-film.buyable, .bay-can, .bay-can-leader { transition: none; } .bay-film:hover .bay-can { transform: none; } }

/* Accounts and paid packs */
.bay-login .store-button { margin-top: 14px; }
.bay-devices { display: grid; gap: 8px; margin-bottom: 14px; }
.bay-device-list { display: flex; flex-wrap: wrap; gap: 8px; }
.bay-device { display: grid; gap: 2px; min-height: 48px; padding: 8px 14px; border: 1px solid var(--rule); border-radius: var(--r-s); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.bay-device b { font-family: var(--mono); font-size: 15px; }
.bay-device span { color: var(--muted); font-size: 13px; }
.bay-device.on { border-color: var(--amber); background: #2a2416; }
.bay-pack-tools { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: auto; }
.bay-pack-owned { color: var(--ok); font-size: 14px; font-weight: 600; }
.bay-pack-price { color: var(--ink); font-size: 14px; font-weight: 600; }
.bay-pack-was { color: var(--muted); font-size: 14px; text-decoration-thickness: 1.5px; }
/* Limited-time offer: tag + struck-through list price (LIST_PRICE in film-bay.js) */
.bay-sale-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--amber); color: #18191A; font-size: 12px; font-weight: 700; line-height: 1.5; }
.bay-buy { min-height: 36px; padding: 0 16px; border-radius: 999px; }
/* Films of a pack not yet opened stay on the shelf in full colour, a little lowered; the lock says the rest. */
.bay-film.locked:not(.on) .bay-can { opacity: .72; }
.bay-film.locked:not(.buyable) { opacity: .6; }
.bay-film.buyable { cursor: pointer; }
.bay-film.buyable:hover .bay-can, .bay-film.buyable:focus-within .bay-can { opacity: 1; }
.bay-film.buyable:hover .bay-film-name { color: var(--ink); }
.bay-film.buyable:hover .bay-film-tick { color: var(--amber); }
.bay-film-unlock { display: flex; flex-direction: column; align-items: center; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.bay-film-unlock:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; border-radius: var(--r-s); }
.bay-redeem { display: grid; gap: 10px; max-width: 560px; }
.bay-redeem-row { display: flex; flex-wrap: wrap; gap: 10px; }
.bay-redeem-row input { flex: 1 1 260px; min-height: 48px; padding: 0 14px; border: 1px solid var(--rule); border-radius: var(--r-s); background: var(--surface); color: var(--ink); font: 600 18px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.bay-dialog { width: min(560px, calc(100vw - 32px)); padding: clamp(20px, 3vw, 32px); border: 0; border-radius: var(--r-m); background: var(--surface-2); color: var(--ink); }
.bay-dialog::backdrop { background: rgb(0 0 0 / .6); }
.bay-dialog h2 { margin: 0 0 6px; font-size: 24px; }
.bay-buy-price { margin: 12px 0 4px; font-size: 28px; font-weight: 600; }
.bay-buy-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin: 12px 0 4px; }
.bay-buy-price-row .bay-buy-price { margin: 0; }
.bay-buy-sale { display: inline-flex; align-items: baseline; gap: 12px; }
.bay-buy-was { color: var(--muted); font-size: 20px; text-decoration-thickness: 2px; }
.bay-sale-note { margin: 0 0 4px; color: var(--amber); font-size: 14px; }
/* Offer countdown to the reader's next midnight (offerEndsAt in film-bay.js): a strip under the pack heading, a box in checkout */
.bay-offer-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 10px 0 4px; padding: 10px 14px; border-radius: var(--r-s); background: #2a2416; color: var(--ink); font-size: 14px; }
.bay-offer-label { color: var(--amber); font-weight: 700; }
.bay-offer-clock { color: var(--amber); font: 600 16px var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.bay-offer-after { color: var(--muted); }
.bay-offer-box { margin: 14px 0 4px; padding: 14px 16px 12px; border: 1px solid rgb(255 181 71 / .35); border-radius: var(--r-s); background: #2a2416; }
.bay-offer-head { margin: 0 0 10px; color: var(--amber); font-size: 14px; font-weight: 700; }
.bay-offer-units { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bay-offer-units span { display: grid; justify-items: center; gap: 2px; padding: 8px 0 6px; border-radius: 6px; background: #18191A; }
.bay-offer-units b { color: var(--ink); font: 600 26px/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.bay-offer-units small { color: var(--muted); font-size: 12px; }
.bay-offer-foot { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.bay-checkout-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 16px; }
.bay-checkout-facts dt { color: var(--muted); }
.bay-checkout-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
#checkoutDevice { font-family: var(--mono); letter-spacing: .04em; }
.bay-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.bay-pack .bay-group-title { flex-wrap: wrap; align-items: center; }
.bay-redeem #redeemConfirm { justify-self: start; }
.bay-subgroup { margin: 14px 0 8px; color: var(--muted); font-size: 14px; }
/* "My films": the last part of the collection, set off by a rule, with its own edit link */
.bay-mine { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule); }
.bay-mine-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.bay-mine-head b { color: var(--ink); font-size: 15px; font-weight: 600; }
.bay-mine-head .bay-link { min-height: 0; margin-left: auto; }
/* Blocks written for Simplified Chinese readers only */
.bay-zh-hans { display: none; }
:root:lang(zh-Hans) .bay-zh-hans { display: block; }
/* Checkout payment tip (zh-Hans): Alipay and WeChat Pay are on the Stripe page */
.bay-checkout-tip { margin: 12px 0; padding-left: 12px; border-left: 2px solid var(--amber); color: var(--ink); }

/* Hero: the film swap, generated into index.html by webapp/scripts/build-hero-screen.py. Animation copied from
   webapp/src/home/home.css (the GRLife Pro card); keep the two in step. The page switches language at run time,
   so the screen text of the other languages is hidden by the document language. */
.pro-swap [data-locale] { display: none; }
:root:lang(zh-Hans) .pro-swap [data-locale="zh-Hans"], :root:lang(zh-Hant) .pro-swap [data-locale="zh-Hant"],
:root:lang(en) .pro-swap [data-locale="en"], :root:lang(ko) .pro-swap [data-locale="en"],
:root:lang(de) .pro-swap [data-locale="en"], :root:lang(fr) .pro-swap [data-locale="en"] { display: inline; }
.pro-swap { display: block; width: 100%; height: auto; }
/* Full shorthands (name and timing together): a production CSS minifier turns a name-less shorthand into `none`. */
.pro-swap .pc-bay { animation: pc-bay 11s linear infinite both; }
.pro-swap .pc-rack { animation: pc-rack 11s linear infinite both; }
.pro-swap .pc-bay-a { animation: pc-bay-a 11s linear infinite both; }
.pro-swap .pc-bay-b { animation: pc-bay-b 11s linear infinite both; }
.pro-swap .pc-shelf-px { animation: pc-shelf-px 11s linear infinite both; }
.pro-swap .pc-shelf-classic { animation: pc-shelf-classic 11s linear infinite both; }
.pro-swap .pc-step-0 { animation: pc-step-0 11s linear infinite both; }
.pro-swap .pc-step-1 { animation: pc-step-1 11s linear infinite both; }
.pro-swap .pc-step-2 { animation: pc-step-2 11s linear infinite both; }
.pro-swap .pc-step-3 { animation: pc-step-3 11s linear infinite both; }
.pro-swap .pc-old { animation: pc-old 11s cubic-bezier(.2, .6, .25, 1) infinite both; }
.pro-swap .pc-new { animation: pc-new 11s cubic-bezier(.2, .6, .25, 1) infinite both; }
.pro-swap .pc-pulse { animation: hs-card-pulse .5s steps(1) infinite; }
.pro-swap .pc-bay-ok { animation: pc-bay-ok 11s linear infinite both; }
.pro-swap .pc-rack-ok { animation: pc-rack-ok 11s linear infinite both; }
@keyframes pc-bay { 0%, 19.9% { opacity: 1; } 20%, 59.9% { opacity: 0; } 60%, 100% { opacity: 1; } }
@keyframes pc-rack { 0%, 19.9% { opacity: 0; } 20%, 59.9% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes pc-bay-a { 0%, 59.9% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes pc-bay-b { 0%, 59.9% { opacity: 0; } 60%, 100% { opacity: 1; } }
@keyframes pc-shelf-px { 0%, 29% { opacity: 1; } 29.1%, 100% { opacity: 0; } }
@keyframes pc-shelf-classic { 0%, 29% { opacity: 0; } 29.1%, 100% { opacity: 1; } }
@keyframes pc-step-0 { 0%, 29% { opacity: 0; } 29.1%, 36.3% { opacity: 1; } 36.4%, 100% { opacity: 0; } }
@keyframes pc-step-1 { 0%, 36.3% { opacity: 0; } 36.4%, 40.8% { opacity: 1; } 40.9%, 100% { opacity: 0; } }
@keyframes pc-step-2 { 0%, 40.8% { opacity: 0; } 40.9%, 45.4% { opacity: 1; } 45.5%, 100% { opacity: 0; } }
@keyframes pc-step-3 { 0%, 45.4% { opacity: 0; } 45.5%, 100% { opacity: 1; } }
@keyframes pc-old { 0%, 63.6% { transform: translateY(0); } 72.7%, 100% { transform: translateY(210px); } }
@keyframes pc-new { 0%, 63.6% { transform: translateY(-210px); } 72.7%, 100% { transform: translateY(0); } }
@keyframes pc-bay-ok { 0%, 13% { fill: #000; } 14.5% { fill: #f5e600; } 16%, 100% { fill: #000; } }
@keyframes pc-rack-ok { 0%, 51% { fill: #000; } 52.7% { fill: #f5e600; } 54.5%, 100% { fill: #000; } }
@keyframes hs-card-pulse { 0% { stroke: #f5e600; } 50% { stroke: #fff; } }
/* Without motion: the end of the swap, Gold 200 in slot 5. */
@media (prefers-reduced-motion: reduce) {
  .pro-swap *, .pro-swap :is(.pc-old, .pc-new) { animation: none !important; }
  .pro-swap :is(.pc-rack, .pc-bay-a, .pc-old) { opacity: 0; }
  .pro-swap .pc-new { transform: none; }
}
.bay-require-note { margin-top: 8px; color: var(--amber); }
.bay-redeem-hint { margin-top: 20px; }
.bay-redeem-open { padding: 4px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; cursor: pointer; }
.bay-redeem-open:hover { color: var(--ink); }
.bay-redeem-open:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* Film preview layer (#filmSheet, film-bay.js openFilm): a centred panel on wide screens, a sheet from the bottom on
   phones. A bar with the film's name, previous / next, the full page and ✕; the preview page fills the rest. */
html:has(.bay-sheet[open]) { overflow: hidden; }
.bay-sheet { width: min(1040px, calc(100vw - 48px)); height: calc(100dvh - 48px); max-width: none; max-height: none; margin: auto; padding: 0;
  border: 0; border-radius: var(--r-m); background: var(--bg); color: var(--ink); overflow: hidden; box-shadow: 0 24px 80px rgb(0 0 0 / .6); }
.bay-sheet[open] { display: flex; flex-direction: column; animation: bay-sheet-in .22s var(--ease-out); }
.bay-sheet::backdrop { background: rgb(0 0 0 / .62); backdrop-filter: blur(3px); }
.bay-sheet-bar { display: flex; align-items: center; gap: 12px; flex: none; min-height: 56px; padding: 6px 8px 6px 20px; border-bottom: 1px solid var(--rule); background: var(--surface-2); }
.bay-sheet-title { min-width: 0; margin: 0; overflow: hidden; font-size: 17px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.bay-sheet-count { flex: none; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.bay-sheet-tools { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.bay-sheet-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-s); background: none; color: var(--ink); cursor: pointer;
  transition: background-color var(--t-feedback) var(--ease-out), color var(--t-feedback) var(--ease-out); }
.bay-sheet-button:hover { background: rgb(255 255 255 / .08); }
.bay-sheet-button:disabled { color: var(--muted); opacity: .4; cursor: default; background: none; }
.bay-sheet-button:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.bay-sheet-close { margin-left: 6px; background: rgb(255 255 255 / .1); border-radius: 50%; }
.bay-sheet-close:hover { background: var(--amber); color: #18191A; }
.bay-sheet-body { position: relative; flex: 1; min-height: 0; }
.bay-sheet-frame { display: block; width: 100%; height: 100%; border: 0; background: var(--bg); transition: opacity .15s; }
.bay-sheet-loading { position: absolute; inset: 0; display: none; place-items: center; margin: 0; color: var(--muted); font-size: 15px; }
.bay-sheet.loading .bay-sheet-frame { opacity: 0; }
.bay-sheet.loading .bay-sheet-loading { display: grid; }
@keyframes bay-sheet-in { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 640px) {
  .bay-sheet { width: 100vw; height: calc(100dvh - 28px); margin: auto 0 0; border-radius: 16px 16px 0 0; }
  .bay-sheet[open] { animation-name: bay-sheet-up; }
  .bay-sheet-bar { padding-left: 16px; gap: 8px; }
  .bay-sheet-count, .bay-sheet-tools a { display: none; }
  .bay-sheet-button { width: 40px; }
  @keyframes bay-sheet-up { from { transform: translateY(40%); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .bay-sheet[open] { animation: none; } .bay-sheet-frame, .bay-sheet-button { transition: none; } }

/* Entry to the "my films" editor under the hero lead */
.bay-mine-entry { margin: 14px 0 0; font-size: 16px; color: var(--amber); }
.bay-mine-entry a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* 2026-11-14 tidy-up. The "firmware first" box speaks in ink between two hairlines, not in amber;
   amber stays on links and buttons. */
.bay-require { padding: 16px 0; border-block: 1px solid var(--rule); border-radius: 0; background: none; }
.bay-require strong { color: var(--ink); font-weight: 500; }
.bay-require p { color: var(--muted); font-size: 15px; }
.bay-require-note { color: var(--muted); }
