/* Festive scenes (2026-11; v3 2026-11-30): page-festive-scene.php + inc/dec-festive-scene.php + js/dec-festive-scene.js.
   One screen, no page scroll: the painted scene (img/festive/*.webp; on screens wider than 3:2 the wide version with
   painted sides), drawn by WebGL when it can (camera, depth, snow between the planes, the animals moving in place) with
   CSS effects over it, the greeting in a panel on the scene. The owner asked for motion on these pages; it stops with
   «Пауза», in a hidden tab, and is off with prefers-reduced-motion.
   The world (.fs-world) is the 3:2 core of the picture; everything in it is placed in % of the core. */
html.fs-html { height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; background: #0a1a45; }
body.fs-body { height: 100%; margin: 0; overflow: hidden; background: #0a1a45; color: #fff; font: 16px/1.55 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-text-size-adjust: 100%; }
.fscene { --sky: #0b2263; --gold: #ffd36b; --red: #c62f25; --ink: #1d2a33; --cream: #fffaf0; --glass: rgba(7, 18, 52, .74); --side: clamp(290px, 27vw, 400px); }
.fscene *, .fscene *::before, .fscene *::after { box-sizing: border-box; }
.fscene [hidden] { display: none !important; }
html.fs-html:not(.fs-js) .fs-hot, html.fs-html:not(.fs-js) [data-fs-pause], html.fs-html:not(.fs-js) [data-fs-letter-toggle], html.fs-html:not(.fs-js) .fs-letter__x, html.fs-html:not(.fs-js) .fs-hint { display: none; } /* no script: no dead buttons */
.fs-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- the stage = the whole screen ---------- */
.fs-stage { position: relative; height: 100vh; height: 100dvh; min-height: 300px; background: var(--sky); overflow: hidden; }
.admin-bar .fs-stage { height: calc(100vh - 32px); height: calc(100dvh - 32px); }
@media screen and (max-width: 782px) { .admin-bar .fs-stage { height: calc(100vh - 46px); height: calc(100dvh - 46px); } }
.fs-view { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y pinch-zoom; }
/* wider than the whole (wide) picture: the sides show it blurred */
.fs-view.has-bands::before { content: ''; position: absolute; inset: -60px; background: var(--pic) center / cover no-repeat; filter: blur(30px) brightness(.72) saturate(1.1); }
.fs-world { position: absolute; left: 50%; top: 0; height: 100%; aspect-ratio: 3 / 2; transform: translateX(-50%); background-size: cover; background-position: center; }
.fs-world.is-placed { transform: none; }
.fs-world.is-cam { will-change: transform; }
.fs-world.is-panning { transition: left .5s ease; }
.fs-pic, .fs-gl { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
@media (min-aspect-ratio: 151/100) { .fscene--wide .fs-pic, .fscene--wide .fs-gl { left: calc(var(--wl) * -100%); width: calc(var(--ww) * 100%); } }
.fs-gl { opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.fs-gl.is-on { opacity: 1; }
.fs-fx, .fs-hots { position: absolute; inset: 0; }
.fs-fx { pointer-events: none; }
.fs-snow { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }

/* ---------- effects over the picture ---------- */
/* a thing far from or near to the camera moves with it: --z = its depth − the focal plane, --cx/--cy from the script */
.fs-glow { position: absolute; aspect-ratio: 1; translate: calc(var(--z, 0) * var(--cx, 0px)) calc(var(--z, 0) * var(--cy, 0px)); transform: translate(-50%, -50%); border-radius: 50%; animation: fs-pulse 3.4s ease-in-out infinite; }
.fs-glow--star { background: radial-gradient(circle, rgba(255, 246, 200, .95) 0 6%, rgba(255, 214, 110, .55) 18%, rgba(255, 190, 70, .2) 40%, transparent 66%); }
.fs-glow--star::after { content: ''; position: absolute; inset: -30%; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255, 228, 150, .3) 0 2.5deg, transparent 2.5deg 22.5deg); -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 64%); mask-image: radial-gradient(circle, #000 10%, transparent 64%); animation: fs-spin 30s linear infinite; }
.fs-glow--moon { background: radial-gradient(circle, transparent 0 28%, rgba(255, 246, 214, .28) 33%, rgba(190, 215, 255, .12) 52%, transparent 70%); animation-duration: 7s; }
.fs-glow--lantern { background: radial-gradient(circle, rgba(255, 240, 180, .95) 0 8%, rgba(255, 205, 100, .55) 22%, rgba(255, 170, 60, .2) 46%, transparent 70%); animation: fs-flicker 2.8s linear infinite; }
.fs-glow--window { border-radius: 40%; background: radial-gradient(ellipse, rgba(255, 214, 130, .5) 0 30%, rgba(255, 190, 90, .18) 55%, transparent 72%); animation: fs-flicker 5s linear infinite; }
.fs-glow--small { animation-duration: 3.7s; animation-delay: -1s; }
.fs-glow--far { animation-duration: 4.3s; animation-delay: -2s; }
@keyframes fs-pulse { 0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(.93); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.07); } }
@keyframes fs-flicker { 0%, 100% { opacity: .85; } 17% { opacity: .68; } 33% { opacity: 1; } 52% { opacity: .76; } 71% { opacity: .95; } 86% { opacity: .72; } }
@keyframes fs-spin { to { transform: rotate(360deg); } }

/* the garland: points found on the picture twinkle; after a click on the tree they run from the top down */
.fs-lights i { position: absolute; width: 1.6%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.75); border-radius: 50%; background: radial-gradient(circle, #fffbe6 0 13%, rgba(255, 228, 140, .92) 25%, rgba(255, 192, 64, .36) 48%, transparent 72%); opacity: .2; animation: fs-twinkle var(--d, 2.4s) ease-in-out var(--dl, 0s) infinite; }
.fscene.is-chase .fs-lights i { animation: fs-run 1.6s ease-in-out calc(var(--o, 0) * 28ms) 3; }
@keyframes fs-twinkle { 0%, 100% { opacity: .12; transform: translate(-50%, -50%) scale(.7); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.18); } }
@keyframes fs-run { 0%, 100% { opacity: .15; transform: translate(-50%, -50%) scale(.7); } 30% { opacity: 1; transform: translate(-50%, -50%) scale(1.6); } }

/* smoke from the chimney */
.fs-smoke { position: absolute; width: 7%; aspect-ratio: 1; transform: translate(-50%, -100%); }
.fs-smoke i { position: absolute; left: 50%; bottom: 0; width: 42%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(236, 242, 255, .55), rgba(236, 242, 255, 0) 70%); opacity: 0; animation: fs-smoke 8s linear infinite; }
.fs-smoke i:nth-child(2) { animation-delay: -2s; }
.fs-smoke i:nth-child(3) { animation-delay: -4s; }
.fs-smoke i:nth-child(4) { animation-delay: -6s; }
@keyframes fs-smoke { 0% { transform: translate(-50%, 0) scale(.35); opacity: 0; } 12% { opacity: .85; } 100% { transform: translate(30%, -240%) scale(1.9); opacity: 0; } }

/* shooting stars (made by the script) */
.fs-shoot { position: absolute; width: 11%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, .95), rgba(255, 236, 180, .45) 30%, rgba(255, 255, 255, 0)); transform-origin: 0 50%; opacity: 0; animation: fs-shoot 1.25s ease-out forwards; }
@keyframes fs-shoot { 0% { opacity: 0; transform: translate(0, 0) rotate(var(--a, 160deg)) scaleX(.2); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx, -240px), var(--dy, 90px)) rotate(var(--a, 160deg)) scaleX(1); } }

/* a gift opened: light rising from it (made by the script; nothing of the picture is copied) */
.fs-burst { position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; mix-blend-mode: screen; pointer-events: none; animation: fs-burst 1.1s ease-out forwards; background: radial-gradient(circle, rgba(255, 250, 220, .95) 0 8%, rgba(255, 214, 110, .6) 22%, rgba(255, 190, 70, .18) 46%, transparent 68%); }
.fs-burst::after { content: ''; position: absolute; inset: -25%; border-radius: 50%; background: repeating-conic-gradient(from 8deg, rgba(255, 232, 160, .55) 0 3deg, transparent 3deg 30deg); -webkit-mask-image: radial-gradient(circle, #000 8%, transparent 62%); mask-image: radial-gradient(circle, #000 8%, transparent 62%); animation: fs-spin 3s linear infinite; }
@keyframes fs-burst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -70%) scale(1.5); } }

/* ---------- buttons over the picture ---------- */
.fs-hot { position: absolute; display: block; margin: 0; padding: 0; border: 0; border-radius: 14px; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fs-hot:focus { outline: none; }
.fs-hot:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.fs-hot--tree { z-index: 1; border-radius: 40% 40% 10% 10%; }
.fs-hot--gift, .fs-hot--animal, .fs-hot--star, .fs-hot--window, .fs-hot--saint { z-index: 2; }
/* hover on a gift: a warm light behind it (a glow, the picture itself does not move) */
.fs-hot--gift::before { content: ''; position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 226, 140, .5), rgba(255, 200, 90, .18) 55%, transparent); opacity: 0; mix-blend-mode: screen; transition: opacity .25s ease; }
.fs-hot--gift:hover::before, .fs-hot--gift:focus-visible::before { opacity: 1; }
/* a little spark shows what can be pressed (gone after the first press) */
.fs-hot--gift::after, .fs-hot--animal::after, .fs-hot--window::after, .fs-hot--saint::after, .fs-hot--star::after { content: ''; position: absolute; right: 6%; top: 2%; width: clamp(12px, 1.4vw, 22px); aspect-ratio: 1; background: radial-gradient(circle, #fff 0 10%, rgba(255, 226, 140, .9) 18%, transparent 48%), linear-gradient(transparent 46%, rgba(255, 240, 190, .95) 46% 54%, transparent 54%), linear-gradient(90deg, transparent 46%, rgba(255, 240, 190, .95) 46% 54%, transparent 54%); opacity: 0; animation: fs-hint 3.2s ease-in-out infinite; animation-delay: var(--hd, 0s); pointer-events: none; }
.fs-hot--animal::after { top: 10%; }
.fs-hot--window::after { right: 44%; top: 40%; }
.fs-hot--saint::after { right: 10%; top: 12%; }
.fs-hot--star::after { display: none; }
.fs-hot.is-seen::after { display: none; }
.fs-hot:nth-child(3n)::after { --hd: -1.1s; }
.fs-hot:nth-child(3n+1)::after { --hd: -2.2s; }
@keyframes fs-hint { 0%, 55%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); } 70% { opacity: 1; transform: scale(1) rotate(45deg); } 85% { opacity: 0; transform: scale(.5) rotate(90deg); } }

/* speech bubble of an animal / the tree / the star */
.fs-bubble { position: absolute; z-index: 4; width: max-content; max-width: min(300px, 70vw); margin: 0; padding: 9px 14px; border: 2px solid var(--gold); background: var(--cream); color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.35; transform: translate(-50%, calc(-100% - 12px)); pointer-events: none; }
.fs-bubble::after { content: ''; position: absolute; left: var(--tail, 50%); bottom: -9px; width: 14px; height: 14px; margin-left: -7px; background: var(--cream); border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); }
.fs-bubble.is-below { transform: translate(-50%, 12px); }
.fs-bubble.is-below::after { top: -9px; bottom: auto; transform: rotate(-135deg); }

/* ---------- the title, the greeting, the controls ---------- */
.fs-side { position: absolute; z-index: 6; }
.fs-top { display: flex; align-items: center; gap: 14px; }
.fs-home { flex: none; display: block; padding: 6px 8px; background: #fff; line-height: 0; }
.fs-home img { display: block; width: auto; height: 38px; }
.fs-home:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.fs-title { min-width: 0; }
.fs-kicker { margin: 0; color: var(--gold); font-family: 'Akrobat', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fs-h1 { margin: 0; color: #fff; font-family: 'Akrobat', sans-serif; font-size: 27px; font-weight: 800; line-height: 1.05; text-shadow: 0 2px 14px rgba(0, 10, 40, .5), 0 0 24px rgba(255, 205, 90, .3); }
.fs-count { margin: 4px 0 0; color: #ffe9b5; font-size: 14px; font-variant-numeric: tabular-nums; }
.fs-count b { font-family: 'Akrobat', sans-serif; font-size: 18px; font-weight: 800; color: #fff; }

.fs-letter { position: relative; color: #eef2ff; }
.fs-band { line-height: 0; margin: 0 0 12px; opacity: .9; }
.fs-band svg { width: 100%; height: 18px; }
.fs-letter__h { margin: 0 40px 8px 0; color: var(--gold); font-family: 'Akrobat', sans-serif; font-size: 17px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.fs-letter__x { position: absolute; top: 22px; right: 0; width: 36px; height: 36px; margin: 0; padding: 0; border: 2px solid rgba(255, 255, 255, .7); background: rgba(8, 22, 62, .5); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.fs-letter__x:hover { background: rgba(8, 22, 62, .9); }
.fs-letter__x:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.fs-letter__text { font-size: 16px; line-height: 1.6; }
.fs-letter__text p { margin: 0 0 11px; }
.fs-letter__text a { color: #ffe08f; }
.fs-letter__text .dec-fest-lead { color: #fff; font-size: 19px; font-weight: 700; line-height: 1.35; }
.fs-letter__text .dec-fest-note { margin: 14px 0; padding: 10px 14px; border-left: 5px solid var(--gold); background: rgba(255, 255, 255, .08); }
.fs-letter__text .dec-fest-note p { margin: 0; }
.fs-letter__text .dec-fest-sign { margin-top: 16px; color: #fff; font-weight: 700; }
/* a call to action: a link in the text that opens a card of the scene (href="#fs-c-gifts") */
.fs-letter__text .dec-fest-cta { margin: 14px 0; padding: 10px 14px; border: 1px solid rgba(255, 224, 143, .6); background: rgba(255, 224, 143, .1); color: #fff; }
.fs-letter__text .dec-fest-cta a { font-weight: 700; }
/* «Слухати привітання» (the recording of the greeting): a triangle, a square while it speaks */
.fs-letter__voice { margin: 0 0 10px; }
.fs-letter__voice .fs-btn { min-height: 34px; padding: 4px 12px; font-size: 14px; }
.fs-vico { display: inline-block; width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.fs-btn[aria-pressed="true"] .fs-vico { width: 10px; height: 10px; border: 0; background: currentColor; }
.fscene.is-voice .fs-letter__voice .fs-btn { border-color: var(--gold); color: var(--gold); }
.fs-letter__more { margin: 8px 0 0; }
.fs-letter__edit { margin: 10px 0 0; font-size: 14px; }
.fs-letter__edit a { color: #ffe08f; font-weight: 700; }

.fs-bar { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 16px; padding: 26px max(14px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); background: linear-gradient(rgba(6, 16, 48, 0), rgba(6, 16, 48, .7) 50%); pointer-events: none; }
.fs-bar > * { pointer-events: auto; }
.fs-hint { flex: 1 1 300px; margin: 0; color: #fff; font-size: 15px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.fs-ctrl { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.fs-copy { flex: 1 1 100%; margin: 0; color: rgba(214, 224, 255, .75); font-size: 12px; }
.fs-copy a { color: inherit; }
.fs-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 14px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 0; background: rgba(8, 22, 62, .55); color: #fff; font: 700 15px/1.2 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; text-decoration: none; cursor: pointer; }
.fs-btn:hover { background: rgba(8, 22, 62, .85); color: #fff; }
.fs-btn--main { border-color: var(--gold); background: var(--gold); color: #1c1400; }
.fs-btn--main:hover { background: #ffe08f; color: #1c1400; }
.fs-btn--line { background: transparent; }
.fs-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.fs-btn--main:focus-visible { outline-color: #fff; }
.fs-btn[aria-expanded="true"].fs-btn--main { background: rgba(8, 22, 62, .55); color: var(--gold); }
.fs-ico { display: inline-block; width: 12px; height: 13px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.fs-btn[aria-pressed="true"] .fs-ico { width: 0; height: 0; border-left: 11px solid currentColor; border-right: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.fs-btn[data-fs-music][aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.fs-note { font-size: 18px; line-height: 1; }
/* ‹ › on narrow screens: in the bottom corners above the bar (snow and the fence there, not the things to press) */
.fs-pan { position: absolute; z-index: 5; bottom: 50%; display: flex; align-items: center; justify-content: center; width: 40px; height: 52px; margin: 0; padding: 0 0 4px; border: 2px solid rgba(255, 255, 255, .8); background: rgba(8, 22, 62, .55); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.fs-pan--l { left: 6px; }
.fs-pan--r { right: 6px; }
.fs-pan:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }

/* landscape: a column on the left (title, greeting); the scene keeps the rest of the screen when it can */
@media (min-aspect-ratio: 5/4) {
    .fs-world { left: calc(50% + var(--side) / 2); } /* before the script places it: in the space right of the column */
    .fs-side { left: 0; top: 0; bottom: 0; width: var(--side); display: flex; flex-direction: column; gap: 16px; padding: max(18px, env(safe-area-inset-top)) 20px 18px max(20px, env(safe-area-inset-left)); background: linear-gradient(90deg, rgba(6, 16, 48, .86), rgba(6, 16, 48, .74)); box-shadow: 1px 0 0 rgba(255, 211, 107, .28), 18px 0 40px rgba(4, 10, 34, .35); transition: transform .45s ease, opacity .45s ease; }
    .fs-top { flex: none; flex-direction: column; align-items: flex-start; gap: 12px; }
    .fs-h1 { font-size: clamp(28px, 2.7vw, 46px); }
    .fs-letter__text { font-size: 15px; line-height: 1.55; }
    .fs-letter__text .dec-fest-lead { font-size: 18px; }
    .fs-letter { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
    .fs-letter__text { flex: 1 1 auto; min-height: 0; overflow: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: rgba(255, 211, 107, .5) transparent; }
    .fs-letter__x { top: 30px; }
    .fs-bar { left: var(--side); padding-left: 20px; }
    .fscene.is-closed .fs-side { transform: translateX(-104%); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .45s ease, opacity .45s ease, visibility 0s .45s; }
    .fscene.is-closed .fs-bar { left: 0; }
    .fs-copy { display: none; }
    .fs-letter::after { content: '© ДП «Державний експертний центр МОЗ України»'; flex: none; margin-top: 12px; color: rgba(214, 224, 255, .6); font-size: 12px; }
}
@media (min-aspect-ratio: 5/4) and (max-height: 560px) {
    .fs-side { gap: 8px; padding-top: 10px; padding-bottom: 10px; }
    .fs-home img { height: 28px; }
    .fs-kicker { font-size: 13px; }
    .fs-h1 { font-size: 26px; }
    .fs-band { display: none; }
    .fs-letter__x { top: 0; }
    .fs-letter__text { font-size: 14px; }
    .fs-letter__text .dec-fest-lead { font-size: 16px; }
    .fs-letter::after { display: none; }
    .fs-hint { display: none; }
    .fs-bar { padding-top: 14px; padding-bottom: 8px; justify-content: flex-end; }
    .fs-btn { min-height: 34px; padding: 4px 10px; font-size: 13px; }
}
/* portrait: the title over the sky, the greeting as a sheet over the bottom of the scene */
@media (max-aspect-ratio: 5/4) {
    .fs-side { inset: 0; pointer-events: none; }
    .fs-side > * { pointer-events: auto; }
    .fs-top { position: absolute; top: 0; left: 0; right: 0; padding: max(10px, env(safe-area-inset-top)) 14px 34px; background: linear-gradient(rgba(6, 16, 48, .72), rgba(6, 16, 48, .45) 60%, rgba(6, 16, 48, 0)); pointer-events: none; }
    .fs-top .fs-home { pointer-events: auto; }
    /* (max-height: the sheet stops under the title and «Перейти до сайту ДЕЦ» — --toph = the title's height, set by the
       script, the notch included; the button sits at --toph - 14px and is ~38px tall) */
    .fs-letter { position: absolute; left: 10px; right: 10px; bottom: calc(var(--bar, 110px) + 6px); max-height: calc(100% - var(--bar, 110px) - var(--toph, 110px) - 40px); display: flex; flex-direction: column; padding: 14px 16px 14px; background: var(--glass); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); border-top: 3px solid var(--gold); box-shadow: 0 10px 40px rgba(0, 0, 0, .35); transition: transform .4s ease, opacity .4s ease; }
    .fs-band { display: none; }
    .fs-letter__x { top: 8px; right: 8px; }
    .fs-letter__text { min-height: 0; overflow: auto; font-size: 15px; }
    .fs-letter__text .dec-fest-lead { font-size: 17px; }
    .fscene.is-peek .fs-letter__text { max-height: 4.9em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
    .fscene.is-closed .fs-letter { transform: translateY(30px); opacity: 0; pointer-events: none; visibility: hidden; }
    .fs-hint { flex-basis: 100%; font-size: 13px; line-height: 1.35; }
    .fs-btn { min-height: 38px; padding: 6px 10px; font-size: 14px; }
    .fs-copy { display: none; }
}
@media (max-width: 379.98px) {
    .fs-home img { height: 30px; }
    .fs-h1 { font-size: 23px; }
    .fs-ctrl { gap: 6px; }
    .fs-btn { padding: 5px 8px; }
}

/* the opening: the title and the greeting come after the camera has come down. html.fs-intro = set in <head> before the
   first paint (the script then takes over with .is-intro); if the script never comes, all shows after 7 s anyway */
html.fs-intro .fs-side { opacity: 0; animation: fs-failsafe-show 0s 7s forwards; }
html.fs-intro .fs-world { transform-origin: var(--io, 50% 18%); transform: translateX(-50%) scale(var(--is, 1)); animation: fs-failsafe-zoom 0s 7s forwards; }
@keyframes fs-failsafe-show { to { opacity: 1; } }
@keyframes fs-failsafe-zoom { to { transform: translateX(-50%); } }
.fscene.is-intro .fs-side { opacity: 0; }
.fscene.is-intro .fs-hint, .fscene.is-intro .fs-hot::after { opacity: 0; }
.fscene .fs-side { transition: opacity .9s ease, transform .45s ease; }

/* ---------- the entry question (with sound or without): browsers allow sound only after a press; shown by the script ---------- */
.fs-gate { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; overflow-y: auto; overscroll-behavior: contain; background: radial-gradient(ellipse at 50% 45%, rgba(6, 16, 48, .2), rgba(6, 16, 48, .7)); transition: opacity .45s ease; }
.fs-gate.is-out { opacity: 0; pointer-events: none; }
/* (margin: auto — centred while it fits; on a very low screen it starts at the top and the question scrolls) */
.fs-gate__box { width: min(480px, 100%); margin: auto; padding: 26px 26px 22px; text-align: center; background: var(--glass); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-top: 3px solid var(--gold); box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.fs-gate__k { margin: 0; color: var(--gold); font: 700 15px/1.3 'Akrobat', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.fs-gate__h { margin: 6px 0 8px; color: #fff; font: 800 clamp(28px, 5vw, 40px)/1.05 'Akrobat', sans-serif; text-shadow: 0 0 24px rgba(255, 205, 90, .3); }
.fs-gate__t { margin: 0 0 18px; color: #dfe7ff; font-size: 16px; }
/* the answers one under the other (owner 2026-12-04): «Переглянути святкову сцену зі звуком», «… без звуку», and the
   third, at the very bottom, «Перейти до сайту ДЕЦ» — it comes 3 s after the question appears (.is-on, set by the
   script); its place is kept meanwhile, so nothing moves under a finger */
.fs-gate__b { display: flex; flex-direction: column; gap: 10px; margin: 0; }
/* (block, not flex: a long label wraps onto two lines on a phone, the ♪ / → stay with the words, all centred) */
.fs-gate__b .fs-btn { display: block; min-height: 48px; padding: 13px 18px; font-size: 17px; line-height: 22px; text-align: center; text-wrap: balance; }
@media (max-width: 379.98px) {
    .fs-gate { padding: 12px; }
    .fs-gate__box { padding: 20px 16px 16px; }
    .fs-gate__b .fs-btn { padding: 13px 12px; font-size: 16px; }
}
/* a low screen (a phone on its side): the same question, tighter */
@media (max-height: 499.98px) {
    .fs-gate { padding: 8px; }
    .fs-gate__box { padding: 12px 18px 12px; }
    .fs-gate__h { margin: 2px 0 4px; font-size: 26px; }
    .fs-gate__t { margin-bottom: 10px; font-size: 14px; }
    .fs-gate__b { gap: 6px; }
    .fs-gate__b .fs-btn { min-height: 40px; padding: 8px 14px; font-size: 16px; line-height: 20px; }
}
.fs-gate__site { border-color: #fff; background: #fff; color: #0b2a66; visibility: hidden; opacity: 0; transition: opacity .4s ease; }
.fs-gate__site.is-on { visibility: visible; opacity: 1; }
.fs-gate__site:hover, .fs-gate__site:focus-visible { background: #e8eeff; border-color: #e8eeff; color: #0b2a66; }
/* the same, always on the scene: top right (portrait: under the title) */
.fs-site { position: absolute; z-index: 7; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); border-color: var(--gold); background: rgba(8, 22, 62, .74); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transition: opacity .45s ease; }
/* not while the question is open (the stage is inert then): there its own «Перейти до сайту ДЕЦ» comes after 3 s */
.fs-stage[inert] .fs-site { visibility: hidden; opacity: 0; }
.fs-site:hover, .fs-site:focus-visible { background: rgba(8, 22, 62, .92); color: #fff; }
@media (max-aspect-ratio: 5/4) { .fs-site { top: calc(var(--toph, 96px) - 14px); right: 12px; } }
.fs-gate .fs-btn--line { color: #fff; }
html.fs-html:not(.fs-js) .fs-gate { display: none; }

/* ---------- the card (dialog) ---------- */
.fs-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.fs-dialog::backdrop { background: rgba(4, 10, 34, .62); }
.fs-dialog.is-fallback { position: fixed; z-index: 1000; inset: 0; display: block; }
.fs-dialog__box { position: relative; max-height: inherit; overflow: auto; padding: 26px 26px 22px; border-top: 6px solid var(--red); background: var(--cream) radial-gradient(circle at 1px 1px, rgba(29, 42, 51, .07) 1px, transparent 1.3px) 0 0 / 7px 7px; }
.fs-dialog__x { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; background: none; color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer; }
.fs-dialog__x:focus-visible, .fs-dialog a:focus-visible, .fs-dialog .fs-btn:focus-visible { outline: 3px solid #006AB6; outline-offset: 2px; }
.fs-card__k { margin: 0 0 4px; color: var(--red); font-family: 'Akrobat', sans-serif; font-size: 16px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.fs-card__h { margin: 0 44px 10px 0; color: var(--ink); font-family: 'Akrobat', sans-serif; font-size: 34px; font-weight: 800; line-height: 1.1; }
.fs-card__t { margin: 0 0 12px; font-size: 17px; line-height: 1.55; }
.fs-card__more { margin: 0; font-weight: 700; }
.fs-card__more a, .fs-year a { color: #006AB6; }
.fs-card__nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.fs-dialog .fs-btn { border-color: #007F84; background: #007F84; color: #fff; }
.fs-dialog .fs-btn:hover { background: #00686c; }
.fs-dialog .fs-btn--line { background: #fff; color: #007F84; }
.fs-year { margin: 6px 0 0; padding: 0; list-style: none; }
.fs-year li { padding: 8px 0; border-bottom: 1px solid #e4dccb; line-height: 1.4; }
.fs-year__m { display: block; color: #007F84; font-family: 'Akrobat', sans-serif; font-size: 16px; font-weight: 800; text-transform: uppercase; }
.fs-year__meta { display: block; color: #5b6b75; font-size: 13px; }

/* ---------- «Статистика» (administrators only, mu-plugin dec-fscene-stats) ---------- */
.fs-dialog.is-wide { width: min(900px, calc(100vw - 24px)); }
.fs-st__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 16px; }
.fs-st__tile { margin: 0; padding: 10px 12px; border: 1px solid #e4dccb; background: #fff; }
.fs-st__tile b { display: block; color: var(--ink); font-family: 'Akrobat', sans-serif; font-size: 30px; font-weight: 800; line-height: 1.1; }
.fs-st__tile span { color: #5b6b75; font-size: 14px; }
.fs-st__chart { display: block; width: 100%; height: 84px; }
.fs-st__chart rect { fill: #007F84; }
.fs-st__chart rect.is-today { fill: var(--red); }
.fs-st__chart line { stroke: #c9bfa9; stroke-width: 1; vector-effect: non-scaling-stroke; }
.fs-st__axis { display: flex; justify-content: space-between; gap: 8px; margin: 4px 0 18px; color: #5b6b75; font-size: 13px; }
.fs-st__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px 24px; }
.fs-st__box h3 { margin: 0 0 6px; color: var(--ink); font-family: 'Akrobat', sans-serif; font-size: 19px; font-weight: 800; }
.fs-st__list { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.35; }
.fs-st__list li { display: grid; grid-template-columns: minmax(0, 1fr) 64px 3.2em; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid #e4dccb; }
.fs-st__b { height: 8px; background: #ece5d6; }
.fs-st__b i { display: block; height: 100%; background: #007F84; }
.fs-st__n { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.fs-st__none { margin: 0; color: #5b6b75; font-size: 14px; }
.fs-st__note { margin: 18px 0 0; color: #5b6b75; font-size: 13px; line-height: 1.45; }

/* ---------- no motion: paused by the button or by the system setting ---------- */
.fscene.is-paused .fs-fx *, .fscene.is-paused .fs-fx *::after, .fscene.is-paused .fs-hot::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
    .fs-world.is-panning, .fs-side, .fs-letter, .fs-gl, .fs-gate__site, .fs-site { transition: none; }
}
@media print {
    html.fs-html, body.fs-body { height: auto; overflow: visible; background: #fff; }
    .fs-stage { height: auto; background: #fff; overflow: visible; }
    .fs-view, .fs-bar, .fs-dialog, .fs-band, .fs-letter__x, .fs-letter__more, .fs-letter__voice, .fs-home, .fs-site { display: none !important; }
    .fs-side, .fs-top, .fs-letter { position: static; width: auto; background: none; box-shadow: none; transform: none; opacity: 1; color: #000; }
    .fs-h1, .fs-letter__text, .fs-letter__text .dec-fest-lead, .fs-letter__text .dec-fest-sign, .fs-letter__text .dec-fest-cta { color: #000; text-shadow: none; }
    .fs-letter__text { max-height: none; overflow: visible; -webkit-mask-image: none; mask-image: none; }
}
