:root {
  color-scheme: dark;
  --backdrop: #000000;
  --foreground: #ffffff;
  --muted: #94979c;
  --primary: #1a81ff;
  --rule: #25282d;
  --bottom-height: 80px;
  font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
body { margin: 0; background: var(--backdrop); color: var(--foreground); font-size: 16px; line-height: 1.65; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 2px solid white; outline-offset: 5px; }
[hidden] { display: none !important; }
.bes-holder { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 32px; }
.bes-bay-cap { position: sticky; top: 0; z-index: 10; background: #000; border-bottom: 1px solid var(--rule); }
.bes-cap-casing { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bes-loft-kiln { width: 134px; height: 26px; flex-shrink: 1; }
.bes-cap-well, .bes-cap-press { display: flex; align-items: center; gap: 24px; }
.bes-cap-well { margin-left: auto; }
.bes-lane-knob { border: 0; background: transparent; color: var(--foreground); padding: 12px 0; cursor: pointer; font-weight: 600; }
.bes-lane-knob::before { content: ""; display: inline-block; width: 17px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; margin-right: 9px; }
.bes-core-pill { color: white; font-weight: 600; }
.bes-knob { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border: none; border-radius: 8px; background: var(--primary); color: #fff; font-size: 16px; font-weight: 600; line-height: 1.5; text-align: center; }
.bes-knob:hover { opacity: .9; text-decoration: none; }
.bes-knob:active { transform: scale(.98); }
.bes-cap-press .bes-knob { min-width: 136px; }
.bes-pod-lane { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-block: 16px 24px; max-height: 60vh; overflow-y: auto; }
.bes-pod-lane a { color: var(--muted); padding-block: 4px; }
.bes-pod-lane a:hover { color: white; }
.bes-splash { text-align: center; padding: 92px 0 80px; max-width: 840px; margin-inline: auto; }
h1, h2, h3 { color: white; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(42px, 5.4vw, 72px); letter-spacing: -.045em; font-weight: 750; margin: 0 0 28px; }
p { margin: 0 0 20px; color: var(--muted); overflow-wrap: anywhere; }
.bes-splash p { max-width: 710px; margin-inline: auto; font-size: 18px; line-height: 1.7; }
.bes-splash-knob { width: 100%; max-width: 433px; margin-top: 16px; }
.bes-flow-pod { padding-block: 48px; border-top: 1px solid var(--rule); min-width: 0; }
h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.03em; margin: 0 0 28px; max-width: 800px; }
.bes-flow-pod > p { max-width: 800px; font-size: 18px; }
.bes-column-arc { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); column-gap: 40px; row-gap: 18px; padding-block: 24px; min-width: 0; }
h3 { font-size: 19px; font-weight: 650; margin: 0; line-height: 1.4; }
.bes-column-arc > p { margin: 0; }
.bes-column-arc + .bes-column-arc { border-top: 1px solid #181a1d; }
.bes-sheet-brick { grid-column: 1 / -1; min-width: 0; border: 1px solid var(--rule); border-radius: 8px; }
table { border-collapse: separate; border-spacing: 0; width: 100%; table-layout: fixed; font-size: 15px; line-height: 1.5; }
th, td { padding: 16px 18px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
th { font-size: 13px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--rule); }
td { color: white; }
tr + tr td { border-top: 1px solid #181a1d; }
td:first-child { color: var(--primary); font-weight: 600; }
.bes-area-pod > h2 { max-width: 840px; }
.bes-edge-pod .bes-column-arc { grid-template-columns: minmax(0, 330px) minmax(0, 1fr); }
.bes-bay-keel { padding-block: 36px 48px; border-top: 1px solid var(--rule); }
.bes-ring-compass { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; }
.bes-ring-compass a { color: var(--muted); }
.bes-rail { margin: 28px 0 0; font-size: 14px; }
.bes-plinth-beam { display: none; }
/* Shared contract for coordinator-rendered internal pages. */
.bes-ring-zone { min-width: 0; }
.bes-ring-spot { max-width: 800px; margin-inline: auto; padding-block: 48px; color: var(--muted); overflow-wrap: anywhere; }
.bes-ring-spot h1 { font-size: clamp(32px, 5vw, 56px); }
.bes-ring-spot h2 { margin-top: 36px; }
.bes-ring-spot h3 { margin-block: 24px 12px; }
.bes-ring-spot li { margin-block: 8px; }
.bes-paths-pill { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bes-paths-pill:focus { position: fixed; inset: 12px auto auto 12px; z-index: 100; width: auto; height: auto; margin: 0; padding: 12px 20px; clip-path: none; background: var(--primary); color: #fff; }
@media (max-width: 768px) {
  body { padding-bottom: calc(var(--bottom-height) + env(safe-area-inset-bottom, 0px)); }
  .bes-holder { padding-inline: 20px; }
  .bes-cap-casing { min-height: 64px; }
  .bes-cap-press { display: none; }
  .bes-splash { padding-block: 62px 56px; }
  .bes-splash p { font-size: 16px; }
  h1 { font-size: clamp(40px, 8vw, 56px); }
  .bes-flow-pod { padding-block: 36px; }
  .bes-flow-pod > p { font-size: 16px; }
  .bes-column-arc, .bes-edge-pod .bes-column-arc { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 22px; }
  h3 { font-size: 18px; }
  th, td { padding: 12px 8px; font-size: 12px; line-height: 1.5; }
  th { font-size: 11px; }
  .bes-plinth-beam { display: flex; position: fixed; inset: auto 0 0; z-index: 20; min-height: calc(var(--bottom-height) + env(safe-area-inset-bottom, 0px)); padding: 15px 16px calc(15px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); background: #000; justify-content: center; }
  .bes-plinth-beam .bes-knob { width: 100%; max-width: 433px; }
  .bes-bay-keel { padding-block: 28px 36px; }
  .bes-ring-compass { gap: 12px 20px; }
}
@media (max-width: 430px) {
  .bes-holder { padding-inline: 16px; }
  th, td { padding-inline: 6px; }
}

/* official_build: меню на все секции (R9) */
.bes-sect-menu{position:relative;margin-left:auto}.bes-sect-menu>summary{list-style:none;cursor:pointer;padding:8px 14px;border:1px solid currentColor;border-radius:999px;font-weight:700}.bes-sect-menu>summary::-webkit-details-marker{display:none}.bes-sect-menu>nav{display:none}.bes-sect-menu[open]>nav{display:flex;flex-direction:column;position:absolute;right:0;top:calc(100% + 8px);min-width:280px;max-height:70vh;overflow:auto;padding:10px;background:#fff;color:#111;border-radius:10px;box-shadow:0 10px 30px #0006;z-index:90}.bes-sect-menu[open]>nav a{padding:10px 12px;color:#111;text-decoration:none;border-radius:6px}.bes-sect-menu[open]>nav a:hover{background:#0000000d}

/* Unchanged captured covers, grouped separately from the frozen copy. */
.bes-games-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 16px 0 28px; padding: 0; }
.bes-games-grid li { min-width: 0; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: #111; }
.bes-games-grid img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; }
.bes-loft-kiln { object-fit: contain; }
.bes-ring-compass { justify-content: center; }
.bes-rail { text-align: center; }
/* Stable renderer classes must survive theme class renaming. */
.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 32px; }
.page-main { min-width: 0; }
.page-body { max-width: 800px; margin-inline: auto; padding-block: 48px; color: var(--muted); overflow-wrap: anywhere; }
.page-body h1 { font-size: clamp(32px, 5vw, 56px); }
.page-body h2, .page-body h3, .page-body h4 { margin-block: 28px 12px; }
.page-body li { margin-block: 8px; }
.page-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
.skip-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; inset: 12px auto auto 12px; z-index: 100; width: auto; height: auto; padding: 12px 20px; clip-path: none; background: var(--primary); color: white; }
@media (max-width: 768px) {
 .bes-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
 .container { padding-inline: 20px; }
}
@media (max-width: 430px) { .container { padding-inline: 16px; } }
