/* VALGERU / UI v3. Isolated stylesheet: does not replace main.css or podstrony.css.
   Homepage anchor: the CENTER of the entry button is at 50% x 50% of the stage.
   Stage = viewport height, but never less than 720px (short screens can scroll).
   The full approved logo is positioned above that anchor, never burned into the background.
*/
:root {
  color-scheme: dark;
  --vg-ink: #080c13;
  --vg-gold: #d4b371;
  --vg-gold-light: #f0dba7;
  --vg-text: #e9dfcc;
  --vg-stage-height: max(720px, 100svh);
  --vg-entry-drop: clamp(62px, 8.6svh, 94px);
  --vg-logo-width: min(460px, 40vw, calc((var(--vg-stage-height) * .5 - 208px) * 1.523));
  --vg-header-height: 76px;
  --vg-status-height: 36px;
  --vg-button-width: 330px;
  --vg-button-height: 72px;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; }
body { background: var(--vg-ink); color: var(--vg-text); font-family: Georgia, 'Times New Roman', serif; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button, summary { touch-action: manipulation; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.vg-lang { display: none; }
html[lang='pl'] .vg-lang-pl, html[lang='en'] .vg-lang-en { display: contents; }
.vg-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.vg-skip { position: absolute; top: 10px; left: 16px; z-index: 100; transform: translateY(-180%); padding: 12px 18px; background: #111a28; color: #fff2d0; }
.vg-skip:focus { transform: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #f5d98e; outline-offset: 5px; }
.vg-home { position: relative; isolation: isolate; min-height: var(--vg-stage-height); }
.vg-landscape, .vg-landscape-shade { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.vg-landscape { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }
.vg-landscape-shade {
  z-index: -1;
  background: linear-gradient(180deg, rgba(3,8,16,.25), transparent 24%, transparent 74%, rgba(3,5,9,.82)),
    radial-gradient(ellipse 32% 53% at 50% 35%, rgba(3,8,16,.58) 0%, rgba(3,8,16,.26) 66%, transparent 100%);
}
/* Header: fine gilded rails and four-point astral accents, not a large new panel. */
.vg-header { position: relative; z-index: 30; height: var(--vg-header-height); background: linear-gradient(180deg, rgba(5,8,13,.97), rgba(5,8,13,.83)); }
.vg-header::after { content: ''; position: absolute; left: 5%; right: 5%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, #886a38 22%, #e1c07a 50%, #886a38 78%, transparent); opacity: .7; }
.vg-header-inner { max-width: 1640px; height: 100%; padding: 0 40px; margin: auto; display: flex; align-items: center; justify-content: center; gap: 40px; }
.vg-header--subpage .vg-header-inner { justify-content: space-between; }
.vg-brand { display: block; flex: 0 0 244px; line-height: 0; }
.vg-brand img { display: block; width: 244px; height: auto; }
.vg-nav { display: flex; align-items: center; justify-content: center; min-width: 0; gap: 34px; }
.vg-nav-list { display: flex; align-items: center; justify-content: center; gap: 36px; margin: 0; padding: 0; list-style: none; }
.vg-nav-list > li { position: relative; }
.vg-nav-list > li:not(:last-child)::after { content: ''; position: absolute; right: -20px; top: calc(50% - 2px); width: 3px; height: 3px; transform: rotate(45deg); background: #94723f; opacity: .65; pointer-events: none; }
.vg-nav-link, .vg-dropdown > summary { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 5px 2px; color: #ddc89e; text-decoration: none; font-size: 15px; letter-spacing: .09em; line-height: 1.3; white-space: nowrap; }
.vg-nav-link::before, .vg-dropdown > summary::before { content: ''; position: absolute; left: 10%; right: 10%; bottom: 3px; height: 1px; background: linear-gradient(90deg, transparent, #e8c884, transparent); transform: scaleX(0); transition: transform .18s ease; }
.vg-nav-link:hover, .vg-dropdown > summary:hover, .vg-dropdown[open] > summary, .vg-nav-link[aria-current='page'] { color: #fff0cd; text-shadow: 0 0 16px rgba(224,182,91,.23); }
.vg-nav-link:hover::before, .vg-nav-link:focus-visible::before, .vg-nav-link[aria-current='page']::before, .vg-dropdown[open] > summary::before { transform: scaleX(1); }
.vg-pending, .vg-nav-link.vg-pending { color: #8e8473; cursor: default; text-shadow: none; }
.vg-pending:hover::before { transform: scaleX(0); }
.vg-rail { position: relative; display: block; flex: 0 0 94px; height: 1px; background: linear-gradient(90deg, transparent, #a17b3c); }
.vg-rail::after { content: ''; position: absolute; right: -2px; top: -4px; width: 9px; height: 9px; background: #c9a568; clip-path: polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%); }
.vg-rail:last-child { transform: rotate(180deg); }
.vg-header--subpage .vg-rail { display: none; }
.vg-dropdown { position: relative; }
.vg-dropdown > summary { cursor: pointer; list-style: none; }
.vg-dropdown > summary::-webkit-details-marker { display: none; }
.vg-chevron { height: 6px; width: 6px; border-right: 1px solid #c9a66d; border-bottom: 1px solid #c9a66d; transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; }
.vg-dropdown[open] .vg-chevron { transform: rotate(225deg); }
.vg-dropdown-panel { position: absolute; top: calc(100% + 10px); left: -22px; min-width: 210px; padding: 13px 18px; border: 1px solid #6c542f; background: rgba(7,11,18,.985); box-shadow: 0 15px 45px rgba(0,0,0,.55), inset 0 0 0 4px #161a20; }
.vg-dropdown-panel a { display: block; padding: 12px 5px; font-size: 14px; text-decoration: none; color: #dfcdaa; line-height: 1.35; }
.vg-dropdown-panel a + a { border-top: 1px solid rgba(153,118,63,.19); }
.vg-dropdown-panel a:hover { color: #fff1d1; background: rgba(202,165,98,.055); }
.vg-dropdown-panel a.vg-pending { color: #8e8473; background: none; }
.vg-menu-toggle { display: none; min-height: 44px; padding: 8px 14px; border: 1px solid #705835; background: rgba(8,12,19,.75); color: #edd7aa; align-items: center; gap: 10px; cursor: pointer; }
.vg-hamburger, .vg-hamburger::before, .vg-hamburger::after { display: block; width: 17px; height: 1px; background: #dcc38d; }
.vg-hamburger { position: relative; }
.vg-hamburger::before, .vg-hamburger::after { content: ''; position: absolute; }
.vg-hamburger::before { top: -5px; }
.vg-hamburger::after { top: 5px; }
/* Language selector and sky status exist only on the homepage. */
.vg-status { position: relative; z-index: 10; min-height: var(--vg-status-height); padding: 0 38px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: linear-gradient(180deg, rgba(7,11,17,.72), rgba(7,11,17,.22)); }
.vg-languages { display: flex; align-items: center; gap: 3px; justify-self: start; }
.vg-language { display: grid; place-items: center; min-width: 36px; min-height: 36px; color: #aea797; font-size: 11px; letter-spacing: .12em; text-decoration: none; }
.vg-language.is-selected { color: #f5d696; background: linear-gradient(180deg, rgba(195,154,77,.13), transparent); box-shadow: inset 0 1px #b79551; }
.vg-language-separator { color: #715e3e; font-size: 10px; }
.vg-sky-status { justify-self: center; display: flex; gap: 10px; align-items: center; color: #cfbd9b; font-size: 11px; letter-spacing: .055em; line-height: 1.5; text-decoration: none; text-align: center; }
.vg-sky-status.vg-pending { color: #cfbd9b; }
.vg-small-star { flex: 0 0 10px; width: 10px; height: 10px; background: #d8b570; clip-path: polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%); }
/* The position below is the implementation specification, not an approximate mockup. */
.vg-hero { position: static; }
.vg-entry-anchor { position: absolute; top: calc(var(--vg-stage-height) * .5 + var(--vg-entry-drop)); left: 50%; width: var(--vg-button-width); height: var(--vg-button-height); transform: translate(-50%, -50%); z-index: 5; }
.vg-logo-stack { position: absolute; bottom: calc(100% + 18px); left: 50%; transform: translateX(-50%); width: var(--vg-logo-width); text-align: center; }
.vg-logo-heading { margin: 0; padding: 0; line-height: 0; }
.vg-full-logo { display: block; width: 100%; height: auto; filter: drop-shadow(0 3px 5px rgba(0,0,0,.9)) drop-shadow(0 0 20px rgba(0,0,0,.35)); }
.vg-tagline { margin: 13px -68px 0; color: #f1dfb7; font-size: 32px; font-style: italic; font-weight: normal; line-height: 1.28; letter-spacing: .028em; text-shadow: 0 2px 5px #000, 0 0 14px #000; }
/* Layered bronze frame. Label remains real selectable/translatable HTML text. */
.vg-game-button { position: relative; top: calc(var(--vg-button-height) / 2); display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; gap: 22px; padding: 0 24px; border: none; border-radius: 0; background: transparent; color: #ffe8b5; text-decoration: none; font-size: 15px; line-height: 1.25; letter-spacing: .12em; text-transform: uppercase; text-align: center; cursor: pointer; isolation: isolate; filter: drop-shadow(0 7px 12px rgba(0,0,0,.62)); }
.vg-game-button::before { content: ''; position: absolute; inset: 0; z-index: -2; clip-path: polygon(6% 0,94% 0,100% 50%,94% 100%,6% 100%,0 50%); background: linear-gradient(150deg, #f3d38b 0%, #b38743 27%, #674819 50%, #dbb872 74%, #f3d38b); }
.vg-game-button::after { content: ''; position: absolute; inset: 2px; z-index: -1; clip-path: polygon(6% 0,94% 0,100% 50%,94% 100%,6% 100%,0 50%); background: linear-gradient(180deg, #3c3020, #201d1a 40%, #0a111c 60%, #221e17); }
.vg-button-inner-line { position: absolute; inset: 7px 21px; border-top: 1px solid #77603a; border-bottom: 1px solid #695331; pointer-events: none; }
.vg-button-gem { position: absolute; left: calc(50% - 3px); top: -3px; width: 6px; height: 6px; transform: rotate(45deg); background: #ecd097; box-shadow: 0 0 8px rgba(236,208,151,.4); pointer-events: none; }
.vg-button-star { flex: 0 0 14px; width: 14px; height: 14px; background: linear-gradient(135deg, #ffedbc, #a77c39); clip-path: polygon(50% 0,61% 38%,100% 50%,61% 62%,50% 100%,39% 62%,0 50%,39% 38%); }
.vg-game-button:not(:disabled):hover { color: #fff3d9; filter: drop-shadow(0 0 13px rgba(223,178,89,.3)) drop-shadow(0 8px 18px #000); }
.vg-game-button:not(:disabled):hover::after { background: linear-gradient(180deg, #54412a, #2a261e 45%, #141922 70%, #31261c); }
.vg-game-button:disabled { cursor: not-allowed; color: #dbc9a6; }
.vg-game-button:disabled::before { filter: saturate(.65) brightness(.82); }
.vg-game-button:disabled .vg-button-star { opacity: .72; }
.vg-game-status { position: absolute; top: calc(100% + 13px + var(--vg-button-height) / 2); left: -40px; right: -40px; margin: 0; color: #d2c6ad; font-size: 22px; letter-spacing: .13em; line-height: 1.5; text-align: center; text-shadow: 0 2px 4px #000, 0 0 10px #000; }
.vg-footer { padding: 16px; text-align: center; font-size: 11px; color: #c3b394; letter-spacing: .05em; }
.vg-home .vg-footer { position: absolute; left: 0; right: 0; bottom: 0; text-shadow: 0 2px 4px #000; }
.vg-subpage { min-height: 100svh; display: flex; flex-direction: column; background: #050505; }
.vg-subpage .vg-footer { flex-shrink: 0; }
/* About body intentionally follows the accepted v2 page: full seal, transparent article. */
.vg-subpage .subpage-main { position: relative; isolation: isolate; flex: 1 0 auto; display: grid; place-items: center; width: 100%; min-width: 0; min-height: 520px; padding: clamp(34px,4.6vw,68px) 24px; }
.vg-subpage .subpage-background { position: absolute; inset: 14px 12px; z-index: 0; pointer-events: none; background: url('/assets/images/klin-rownonocy-v3.webp') center / contain no-repeat; opacity: .44; }
.vg-subpage .subpage-panel { position: relative; z-index: 1; width: min(100%,860px); min-width: 0; margin: 0 auto; padding: clamp(12px,2.6vw,36px); background: transparent; border: none; box-shadow: none; color: #e8dcc0; text-shadow: 0 1px 3px rgba(0,0,0,.95),0 0 9px rgba(0,0,0,.65); }
.vg-subpage .subpage-eyebrow { display: inline-block; margin: 0 0 12px; color: #d8c08d; font-size: .9rem; line-height: 1.3; letter-spacing: .22em; }
.vg-subpage .subpage-panel h1 { margin: 0 0 25px; color: #f0e2bc; font-size: clamp(2.2rem,4.5vw,3.8rem); line-height: 1.12; overflow-wrap: anywhere; text-shadow: 0 2px 12px rgba(0,0,0,.85); }
.vg-subpage .subpage-panel p { margin: 0 0 18px; color: #e8dcc0; font-size: 1.05rem; line-height: 1.8; overflow-wrap: break-word; }
.vg-subpage .subpage-panel .subpage-lead { color: #f0dfb0; font-size: clamp(1.07rem,1.5vw,1.21rem); line-height: 1.7; }
.vg-subpage .subpage-sections { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin: 29px 0 0; padding: 23px 0 0; border-top: 1px solid rgba(216,192,141,.24); }
.vg-subpage .subpage-sections h2 { margin: 0 0 9px; color: #f0dfb0; font-size: 1.24rem; line-height: 1.3; }
.vg-subpage .subpage-sections p { margin: 0; font-size: .97rem; line-height: 1.65; }
@media (max-width: 1250px) and (min-width: 1001px) {
  .vg-header-inner { padding: 0 26px; gap: 26px; }
  .vg-header--subpage .vg-brand { flex-basis: 210px; }
  .vg-header--subpage .vg-brand img { width: 210px; }
  .vg-header--subpage .vg-nav-list { gap: 24px; }
  .vg-header--subpage .vg-nav-list > li:not(:last-child)::after { right: -14px; }
  .vg-header--subpage .vg-nav-link, .vg-header--subpage .vg-dropdown > summary { font-size: 13px; letter-spacing: .045em; }
}
@media (max-width: 1000px) {
  :root { --vg-header-height: 64px; }
  .vg-header-inner { padding: 0 20px; justify-content: center; }
  .vg-brand { flex-basis: 204px; }
  .vg-brand img { width: 204px; }
  .vg-js .vg-menu-toggle { display: flex; }
  .vg-js .vg-nav { display: none; }
  .vg-js .vg-nav.is-open { display: flex; }
  .vg-js .vg-nav { position: absolute; left: 14px; right: 14px; top: calc(100% + 3px); padding: 15px 22px; border: 1px solid #7b6137; background: #080d16; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
  .vg-js .vg-nav-list { width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .vg-js .vg-nav-list > li + li { border-top: 1px solid rgba(167,130,67,.2); }
  .vg-js .vg-nav-list > li::after, .vg-rail { display: none; }
  .vg-js .vg-nav-link, .vg-js .vg-dropdown > summary { min-height: 49px; padding: 12px 5px; justify-content: space-between; font-size: 15px; }
  .vg-js .vg-nav-link::before, .vg-js .vg-dropdown > summary::before { display: none; }
  .vg-js .vg-dropdown-panel { position: static; margin: 0 0 10px; padding: 4px 12px; border-color: #403823; box-shadow: none; }
  .vg-status { padding: 0 20px; grid-template-columns: auto 1fr; gap: 16px; }
  .vg-sky-status { font-size: 10px; letter-spacing: .02em; }
  /* Without JS, keep the navigation accessible in the document flow. */
  html:not(.vg-js) .vg-header { height: auto; min-height: 64px; }
  html:not(.vg-js) .vg-header-inner { flex-wrap: wrap; padding: 10px 16px; gap: 12px; }
  html:not(.vg-js) .vg-nav-list { flex-wrap: wrap; gap: 8px 20px; }
  html:not(.vg-js) .vg-nav-list > li::after { display: none; }
}
@media (min-width: 601px) and (max-width: 1000px) {
  .vg-tagline { font-size: clamp(25px, 3.15vw, 30px); letter-spacing: .018em; }
}
@media (max-width: 600px) {
  :root { --vg-status-height: 60px; --vg-button-width: min(302px, calc(100vw - 44px)); --vg-button-height: 66px;
    --vg-logo-width: min(314px, calc(100vw - 52px), calc((var(--vg-stage-height) * .5 - 208px) * 1.523)); }
  .vg-status { padding: 4px 16px 8px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
  .vg-languages { align-self: center; }
  .vg-language { min-height: 30px; min-width: 38px; }
  .vg-sky-status { max-width: 100%; font-size: 9px; line-height: 1.55; gap: 6px; }
  .vg-small-star { flex-basis: 7px; width: 7px; height: 7px; }
  .vg-logo-stack { bottom: calc(100% + 17px); }
  .vg-tagline { margin: 12px -18px 0; font-size: clamp(20px, 5.9vw, 24px); letter-spacing: .012em; line-height: 1.25; }
  .vg-game-button { gap: 14px; font-size: 13px; letter-spacing: .105em; }
  .vg-game-status { left: -15px; right: -15px; font-size: 20px; }
  .vg-landscape { object-position: 49% center; }
  .vg-landscape-shade { background: linear-gradient(180deg, rgba(3,8,16,.15), rgba(3,8,16,.20) 65%,rgba(3,5,9,.86)),radial-gradient(ellipse 85% 48% at 50% 29%, rgba(3,8,16,.5),transparent); }
  .vg-header--subpage .vg-brand { flex-basis: 190px; }
  .vg-header--subpage .vg-brand img { width: 190px; }
  .vg-header--subpage .vg-header-inner { padding: 0 16px; gap: 15px; }
  .vg-menu-toggle { font-size: 12px; padding: 8px 10px; }
}
@media (max-width: 740px) {
  .vg-subpage .subpage-main { min-height: 0; padding: 32px 22px 42px; }
  .vg-subpage .subpage-background { inset: 18px 10px; background-position: center 56px; opacity: .34; }
  .vg-subpage .subpage-panel { padding: 0; }
  .vg-subpage .subpage-sections { grid-template-columns: 1fr; gap: 20px; margin-top: 25px; padding-top: 23px; }
  .vg-subpage .subpage-sections h2 { margin-bottom: 6px; }
}
@media (max-width: 390px) {
  .vg-subpage .subpage-main { padding: 28px 18px 36px; }
  .vg-subpage .subpage-panel p { font-size: 1rem; line-height: 1.72; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* Readable sky text on narrow screens; reserve room for a wrapped status line. */
@media (max-width: 600px) {
  :root { --vg-logo-width: min(310px, calc(100vw - 52px), calc((var(--vg-stage-height) * .5 - 232px) * 1.523)); }
  .vg-sky-status { font-size: 11px; letter-spacing: 0; }
}
@media (max-width: 1000px) {
  html:not(.vg-js) .vg-hero { display: flow-root; }
  html:not(.vg-js) .vg-entry-anchor { position: relative; top: auto; left: auto; transform: none; margin: calc(var(--vg-logo-width) / 1.523 + 90px + var(--vg-entry-drop)) auto 80px; }
}

/* Valgeru v3: approved refinements 2026-10-19 */
@media (min-width: 601px) {
  .vg-status { grid-template-columns: 1fr minmax(0, auto) 1fr; }
  .vg-languages { grid-column: 3; grid-row: 1; justify-self: end; }
  .vg-sky-status { grid-column: 2; grid-row: 1; }
}
@media (max-width: 600px) {
  .vg-languages { align-self: flex-end; }
  .vg-sky-status { align-self: center; }
}
.vg-footer a { color: #d9c69f; text-decoration: none; border-bottom: 1px solid rgba(217,198,159,.35); }
.vg-footer a:hover { color: #fff0c4; border-bottom-color: currentColor; }

/* Searchable Markdown workshop carried over from the previous local Astro version. */
.vg-subpage .workshop-search { margin-top: 26px; }
.vg-subpage .workshop-search label { display: block; margin-bottom: 9px; color: #f0dfb0; }
.vg-subpage .workshop-search input {
  width: 100%; padding: 13px 15px; border: 1px solid rgba(216,192,141,.5);
  border-radius: 3px; background: rgba(6,6,6,.85); color: #f0e2bc;
  font: 1rem Georgia, 'Times New Roman', serif;
}
.vg-subpage .workshop-search input:focus-visible,
.vg-subpage .workshop-filter:focus-visible { outline: 2px solid #f0dfb0; outline-offset: 3px; }
.vg-subpage .workshop-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 17px 0 18px; }
.vg-subpage .workshop-filter {
  border: 1px solid rgba(216,192,141,.45); background: rgba(0,0,0,.6);
  color: #e8dcc0; padding: 7px 12px; border-radius: 16px; cursor: pointer;
  font: .93rem Georgia, 'Times New Roman', serif;
}
.vg-subpage .workshop-filter.active { background: #d8c08d; color: #18130b; }
.vg-subpage .workshop-results { margin: 22px 0 0; padding: 0; list-style: none; }
.vg-subpage .workshop-entry { margin: 0 0 16px; padding: 14px 0; border-bottom: 1px solid rgba(216,192,141,.26); }
.vg-subpage .workshop-entry[hidden] { display: none; }
.vg-subpage .workshop-entry h2 { margin: 0 0 8px; font-size: 1.35rem; }
.vg-subpage .workshop-entry h2 a, .vg-subpage .workshop-back { color: #f0dfb0; }
.vg-subpage .workshop-entry p { margin: 0 0 9px; font-size: 1rem; }
.vg-subpage .workshop-tagline { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 18px; }
.vg-subpage .workshop-tag {
  border: 1px solid rgba(216,192,141,.3); border-radius: 14px;
  padding: 3px 10px; font-size: .85rem; color: #e8dcc0; background: rgba(0,0,0,.5);
}
.vg-subpage .workshop-back { display: inline-block; margin: 0 0 20px; }
.vg-subpage .workshop-article .markdown-content { margin-top: 23px; }
.vg-subpage .markdown-content h2, .vg-subpage .markdown-content h3 { margin: 24px 0 12px; color: #f0dfb0; }
.vg-subpage .markdown-content a { color: #f0dfb0; }
.vg-subpage .markdown-content li { margin: 0 0 9px; line-height: 1.7; }
.vg-subpage .markdown-content img { max-width: 100%; height: auto; }
.vg-subpage .markdown-content pre { overflow: auto; padding: 14px; background: #161310; }
.vg-subpage .markdown-content code { overflow-wrap: anywhere; }

/* 2026-10-28: the Workshop seal is the reference for all standard sections. */
body.vg-subpage:is([data-vg-current="about"], [data-vg-current="chronicles"], [data-vg-current="encyclopedia"], [data-vg-current="gallery"], [data-vg-current="workshop"], [data-vg-current="updates"]) {
  --vg-seal-top: 0px;
  --vg-seal-height: clamp(560px, 88svh, 850px);
  --vg-seal-size: min(77vw, 810px);
}
body.vg-subpage:is([data-vg-current="about"], [data-vg-current="chronicles"], [data-vg-current="encyclopedia"], [data-vg-current="gallery"], [data-vg-current="workshop"], [data-vg-current="updates"]) .subpage-background {
  position: absolute !important;
  inset: var(--vg-seal-top) 0 auto !important;
  width: 100% !important;
  height: var(--vg-seal-height) !important;
  min-height: 0 !important;
  transform: none !important;
  pointer-events: none;
  background-position: center top !important;
  background-size: var(--vg-seal-size) auto !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
}
@media (max-width: 720px) {
  body.vg-subpage:is([data-vg-current="about"], [data-vg-current="chronicles"], [data-vg-current="encyclopedia"], [data-vg-current="gallery"], [data-vg-current="workshop"], [data-vg-current="updates"]) { --vg-seal-size: min(92vw, 590px); }
}
/* Disabled languages are real non-interactive labels, not broken links. */
.vg-language--disabled { color: #7d807f; cursor: not-allowed; box-shadow: none; background: none; }
.vg-language:focus-visible { outline: 2px solid #e0c789; outline-offset: 2px; }
.vg-subpage-languages { position: relative; z-index: 20; display: flex; justify-content: flex-end; padding: 0 38px; min-height: 36px; border-bottom: 1px solid rgba(167,130,67,.12); }
/* Keep the live sky status centered to the PAGE, not to the space left by languages.
   The earlier flex breakpoint moved it to the left at common laptop resolutions. */
@media (min-width: 901px) and (max-width: 1350px) {
  .vg-status { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr); gap: 0; }
  .vg-status .vg-sky-status { grid-column: 2; grid-row: 1; justify-self: center; margin: 0; }
  .vg-status .vg-languages { grid-column: 3; grid-row: 1; justify-self: end; }
}
/* On smaller screens the long astronomical line and 6 language tabs cannot
   safely share a row. Keep both centered, with sky information above tabs. */
@media (min-width: 601px) and (max-width: 900px) {
  .vg-status { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 4px; padding-bottom: 4px; }
  .vg-status .vg-sky-status { grid-column: 1; grid-row: 1; justify-self: center; margin: 0; max-width: 100%; }
  .vg-status .vg-languages { grid-column: 1; grid-row: 2; justify-self: center; }
}
@media (max-width: 600px) {
  .vg-subpage-languages { padding: 0 16px; }
}
