/* Wys 2027 — web player: fits the 1920×1080 stage to any screen and handles slide changes */
* { margin: 0; }
html, body { height: 100%; background: #090909; overflow: hidden; }
body { font: 32px/1.2 sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1 { font-size: 96px; font-weight: 600; }
h2 { font-size: 64px; font-weight: 600; }
h3 { font-size: 44px; font-weight: 600; }
p, li, h1, h2, h3 { overflow-wrap: break-word; }
aside, noscript { display: none !important; }

.viewport { position: fixed; inset: 0; overflow: hidden; background: #050607; cursor: default; }
.stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform: translate(-50%, -50%); transform-origin: center; }

.stage > section {
  position: absolute !important; left: 0; top: 0;
  width: 1920px !important; height: 1080px !important;
  overflow: hidden !important; box-sizing: border-box !important; isolation: isolate;
}
.stage > section:not(.is-active):not(.is-leaving) { display: none !important; }
.stage > section.is-leaving { z-index: 1; }
.stage > section.is-active { z-index: 2; animation: wys-slide-in 0.6s ease both; }
@keyframes wys-slide-in { from { opacity: 0; } }

body:not(.hud-on) .viewport { cursor: none; }

/* ---- controls ---- */
.hud {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 10;
  display: flex; align-items: center; gap: 4px; padding: 6px;
  border-radius: 999px; color: #EEF3F8;
  background: rgba(16, 24, 34, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(238, 243, 248, 0.14);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, 10px); opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
body.hud-on .hud, .hud:focus-within { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.hud-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; color: inherit; background: transparent; cursor: pointer;
  transition: background-color 0.2s ease;
}
.hud-btn:hover { background: rgba(238, 243, 248, 0.1); }
.hud-btn:focus-visible { outline: 2px solid #108BEA; outline-offset: 1px; }
.hud-btn[disabled] { opacity: 0.3; cursor: default; background: transparent; }
.hud-count {
  min-width: 76px; text-align: center; font: 13px/1 'Cora Montserra Light', Arial, sans-serif;
  letter-spacing: 0.14em; font-variant-numeric: tabular-nums;
}
.hud-sep { width: 1px; height: 18px; margin: 0 4px; background: rgba(238, 243, 248, 0.18); }
.no-fs [data-act="full"], .no-fs .hud-sep { display: none; }

.progress { position: fixed; left: 0; right: 0; bottom: 0; height: 2px; z-index: 9; background: rgba(238, 243, 248, 0.06); }
.progress i { display: block; height: 100%; width: 0; background: #108BEA; box-shadow: 0 0 12px rgba(16, 139, 234, 0.8); transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
@media(max-width:800px){.hud{opacity:1;transform:translate(-50%,0);pointer-events:auto;bottom:8px}.hud-btn{width:30px;height:30px}.hud-count{font-size:12px}}
