.zad-palace{position:relative;box-sizing:border-box;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-tap-highlight-color:transparent;color:#f8fafc}
.zad-palace *,.zad-palace *::before,.zad-palace *::after{box-sizing:border-box}
.zad-palace.zpr-viewport{width:calc(100vw - var(--zpr-sb,0px))!important;max-width:none!important;margin-top:1em!important;margin-bottom:1em!important;margin-left:calc(50% - 50vw + var(--zpr-sb,0px) / 2)!important;margin-right:calc(50% - 50vw + var(--zpr-sb,0px) / 2)!important}
.zad-palace.zpr-box{width:100%;margin:1.2em auto}
.zpr-stage{position:relative;width:100%;background:#0b0602;overflow:hidden;outline:none;touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.zpr-viewport .zpr-stage{height:100vh;height:100svh;min-height:320px}
.zpr-box .zpr-stage{aspect-ratio:16/9;max-height:88vh;min-height:360px;border-radius:16px;box-shadow:0 14px 40px rgba(2,6,23,.5)}
.zpr-stage canvas{display:block}
.zad-palace.zpr-full .zpr-stage,.zad-palace.zpr-full .zpr-stage canvas{touch-action:none}
.zpr-fs{position:absolute;right:14px;top:14px;z-index:5;width:44px;height:44px;border:2px solid rgba(255,255,255,.55);border-radius:12px;background:rgba(15,23,42,.65);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);transition:transform .15s,background .15s}
.zpr-fs:hover,.zpr-fs:focus-visible{background:rgba(217,119,6,.9);transform:scale(1.06);outline:none}
.zad-palace:not(.zpr-full):not(.zpr-ingame) .zpr-fs{display:none}
.zad-palace.zpr-ingame .zpr-fs{right:132px;top:7px;width:36px;height:36px;border-radius:10px}
.zpr-note{text-align:center;font-size:13px;opacity:.75;margin:8px 0 0}
.zpr-viewport .zpr-note{display:none}
.zad-palace.zpr-full{position:fixed!important;inset:0!important;z-index:2147483000;margin:0!important;width:100vw!important;max-width:none!important;height:100vh;height:100dvh;background:#000}
.zad-palace:fullscreen{width:100vw!important;max-width:none!important;height:100vh;margin:0!important;background:#000}
.zad-palace:-webkit-full-screen{width:100vw!important;max-width:none!important;height:100vh;margin:0!important;background:#000}
.zad-palace.zpr-full .zpr-stage{height:100%;max-height:none;min-height:0;aspect-ratio:auto;border-radius:0;box-shadow:none}
.zad-palace.zpr-full .zpr-note{display:none}
html.zpr-noscroll,html.zpr-noscroll body{overflow:hidden!important;height:100%!important;overscroll-behavior:none}

/* The big fullscreen pill: top centre, pulsing, hidden once in fullscreen or inside a mission. */
.zpr-fsbig{position:absolute;left:50%;top:12px;transform:translateX(-50%);z-index:6;display:inline-flex;align-items:center;gap:8px;padding:10px 22px;border:2px solid rgba(255,255,255,.85);border-radius:999px;background:linear-gradient(135deg,#d97706,#b45309);color:#fff;font:800 15px/1.1 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.05em;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.4);animation:zpr-pulse 2s ease-in-out infinite;white-space:nowrap}
.zpr-fsbig span{font-size:19px}
.zpr-fsbig:hover,.zpr-fsbig:focus-visible{filter:brightness(1.12);outline:none}
.zpr-fsbig[hidden],.zad-palace.zpr-ingame .zpr-fsbig{display:none}
@keyframes zpr-pulse{0%,100%{box-shadow:0 6px 18px rgba(0,0,0,.4),0 0 0 0 rgba(251,191,36,.6)}50%{box-shadow:0 6px 18px rgba(0,0,0,.4),0 0 0 11px rgba(251,191,36,0)}}

/* Start card shown over the game before anything else. */
.zpr-start{position:absolute;inset:0;z-index:7;display:flex;align-items:center;justify-content:center;padding:16px;background:radial-gradient(ellipse at center,rgba(2,6,23,.55),rgba(2,6,23,.92));touch-action:pan-y}
.zpr-start[hidden]{display:none}
.zpr-card{max-width:460px;width:100%;text-align:center;padding:26px 22px;border-radius:18px;background:rgba(36,23,12,.94);border:1px solid rgba(212,162,76,.5);box-shadow:0 20px 50px rgba(0,0,0,.55)}
.zpr-card h3{margin:0 0 4px!important;padding:0!important;font:900 34px/1.05 system-ui,-apple-system,"Segoe UI",sans-serif!important;letter-spacing:.06em;color:#f8fafc!important;text-transform:none;border:0!important}
.zpr-card p{margin:0 0 18px!important;font-size:14px;line-height:1.45;color:#fde68a!important}
.zpr-card button{display:block;width:100%;margin:0 0 10px;border-radius:14px;cursor:pointer;font:800 18px/1.1 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.04em;text-transform:none}
.zpr-go-fs{padding:18px 16px;border:2px solid #fbbf24;background:linear-gradient(135deg,#d97706,#b45309);color:#fff;animation:zpr-pulse 2s ease-in-out infinite}
.zpr-go-fs:hover,.zpr-go-fs:focus-visible{filter:brightness(1.1);outline:none}
.zpr-go-page{padding:12px 16px;border:1px solid rgba(148,163,184,.45);background:transparent;color:#cbd5e1;font-size:15px!important;font-weight:600!important}
.zpr-go-page:hover,.zpr-go-page:focus-visible{background:rgba(148,163,184,.15);outline:none}
.zpr-card small{display:block;margin-top:6px;font-size:12px;color:#94a3b8}
@media (prefers-reduced-motion:reduce){.zpr-fsbig,.zpr-go-fs{animation:none}}
