/* Wallpaper Engine skin: the page UI steps away; only the picture, optional captions / chapter cards,
   a desktop clock and a compact telemetry readout remain. Toggled by body classes set from user properties. */
body.wp #start, body.wp #end, body.wp #modes, body.wp #dock, body.wp #dest, body.wp #xdock, body.wp #ladder,
body.wp #hotspots, body.wp #info, body.wp #hint, body.wp #brand { display: none !important; }
body.wp canvas#gl { cursor: default; }
body.wp:not(.wp-letterbox) .bars { display: none; }
body.wp.wp-nocap #caption { display: none; }
body.wp.wp-nocards #card, body.wp.wp-nocards #count { display: none; }
body.wp #caption { bottom: 9vh; }
body.wp.wp-letterbox #caption { bottom: calc(var(--bar) + 28px); }
body.wp #loader { background: #010205; }

/* compact telemetry under the clock */
body.wp #hud { opacity: 1; }
body.wp #data, body.cinematic.wp #data, body.free.wp #data {
  display: grid !important; position: static; width: 340px; height: auto; margin-top: 4px;
  padding: 0; gap: 7px; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; opacity: .82; pointer-events: none; transform: none; }
body.wp.wp-notele #data { display: none !important; }
body.wp #data .g-head, body.wp #data .g-meter { display: none; }
body.wp #data .g-row { display: flex !important; flex-direction: row; justify-content: space-between; align-items: baseline; gap: 14px; padding: 0; border: 0; font: 500 9.5px/1 var(--mono); letter-spacing: .22em; color: var(--ice-dim); }
body.wp #data .g-row.wp-hide { display: none !important; }
body.wp #data .g-row span { flex: none; }
body.wp #data .g-row b { font: 600 11.5px/1 var(--hud); letter-spacing: .12em; color: #eef7ff; max-width: 210px; min-width: 0; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* desktop clock */
#wp-clock { position: fixed; z-index: 15; display: none; pointer-events: none; color: #f2f9ff; text-shadow: 0 2px 22px rgba(0,0,0,.65); }
body.wp #wp-clock { display: block; }
body.wp.wp-noclock .wc-time { display: none; }
body.wp.wp-noclock.wp-notele #wp-clock { display: none; }
.wc-k { font: 500 10px/1 var(--mono); letter-spacing: .5em; color: var(--ice); }
.wc-t { margin: 10px 0 6px; font: 400 clamp(54px, 6.4vw, 108px)/.9 var(--display); letter-spacing: .04em; }
.wc-t small { font-size: .26em; letter-spacing: .2em; margin-left: .4em; color: var(--ice); vertical-align: top; }
.wc-d { font: 500 13px/1 var(--hud); letter-spacing: .34em; color: rgba(228,241,255,.78); }
.wc-rule { width: 64px; height: 1px; margin: 16px 0 14px; background: linear-gradient(90deg, var(--ice), transparent); }

/* corner placement (clock + telemetry stack together) */
body.wp.wp-clock-bl #wp-clock { left: 4.2vw; bottom: 9vh; }
body.wp.wp-clock-tl #wp-clock { left: 4.2vw; top: 8vh; }
body.wp.wp-clock-tr #wp-clock { right: 4.2vw; top: 8vh; text-align: right; }
body.wp.wp-clock-br #wp-clock { right: 4.2vw; bottom: 9vh; text-align: right; }
body.wp.wp-clock-tr .wc-rule, body.wp.wp-clock-br .wc-rule { margin-left: auto; background: linear-gradient(270deg, var(--ice), transparent); }
body.wp.wp-clock-tr #data .g-row, body.wp.wp-clock-br #data .g-row { flex-direction: row-reverse; }
body.wp.wp-clock-tr #data, body.wp.wp-clock-br #data { margin-left: auto; }

/* tour title cards sit a little higher than the film's chapter cards */
body.wp.free #card { top: 30%; }

/* ---------- control panel: plain HTML/CSS over the canvas (no draw calls, no backdrop blur over the moving scene) ----------
   Placed at the top edge by script (left/top from the work area and the panel's own box). Collapsed by default:
   the panel is visibility:hidden (no hit area) and only the small indicator takes pointer input. */
#wp-panel { position: fixed; left: 0; top: 0; z-index: 30; display: grid; gap: 8px; padding: 10px 12px 12px; box-sizing: border-box; max-width: min(560px, calc(100vw - 32px));
  border-radius: 14px; background: linear-gradient(180deg, rgba(10,18,32,.86), rgba(4,8,16,.88)); border: 1px solid rgba(159,216,255,.18);
  box-shadow: 0 10px 34px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  visibility: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity .3s ease, transform .35s cubic-bezier(.16,.8,.24,1), visibility 0s linear .35s;
  font: 600 10px/1 var(--display); letter-spacing: .14em; color: var(--text); user-select: none; }
#wp-panel.show { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity .3s ease, transform .35s cubic-bezier(.16,.8,.24,1), visibility 0s; }
body.wp-nopanel #wp-panel, body.wp-nopanel #wp-tab { display: none; }
.wpp-row { display: flex; align-items: center; gap: 8px; }
.wpp-ctx { flex-wrap: wrap; justify-content: flex-start; row-gap: 6px; min-height: 24px; }
.wpp-sub { gap: 6px; }
.wpp-close { margin-left: auto; }
#wp-panel { width: max-content; }
.wpp-ctx .wpp-seg { flex-wrap: wrap; }
.wpp-sep { width: 1px; height: 22px; background: rgba(159,216,255,.16); flex: none; }
.wpp-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; background: rgba(159,216,255,.06); }
#wp-panel button { white-space: nowrap; border: 0; background: none; color: rgba(228,241,255,.66); font: inherit; letter-spacing: inherit; cursor: pointer; padding: 7px 10px; border-radius: 7px; transition: background .2s, color .2s; outline: none; }
#wp-panel button:hover { color: #fff; background: rgba(159,216,255,.1); }
#wp-panel button:focus-visible { box-shadow: 0 0 0 1px var(--ice); }
#wp-panel .wpp-seg button.on { color: #04101e; background: var(--ice); }
.wpp-small button { padding: 5px 8px !important; font-size: 9px; }
.wpp-ic { display: grid; place-items: center; width: 32px; height: 32px; padding: 0 !important; flex: none; }
.wpp-ic svg { width: 18px; height: 18px; fill: currentColor; }
.wpp-play { width: 38px !important; height: 38px !important; border-radius: 50% !important; color: #04101e !important; background: var(--ice) !important; }
.wpp-play:hover { filter: brightness(1.12); }
.wpp-lab { font: 500 9px/1 var(--mono); letter-spacing: .3em; color: var(--ice-dim); margin-right: 2px; }
.wpp-hint { white-space: nowrap; font: 500 10px/1 var(--hud); letter-spacing: .14em; color: rgba(228,241,255,.45); margin-left: 8px; text-transform: uppercase; }
.wpp-prog { height: 2px; border-radius: 2px; background: rgba(159,216,255,.12); overflow: hidden; display: none; }
body.wpp-cine .wpp-prog { display: block; }
.wpp-prog i { display: block; height: 100%; background: var(--ice); transform-origin: 0 50%; transform: scaleX(0); transition: transform .25s linear; }
/* the collapsed indicator: 36 px, low opacity, no animation, no glow; hover only raises opacity a little */
#wp-tab { position: fixed; left: -100px; top: 16px; z-index: 31; width: 36px; height: 36px; display: grid; place-items: center; padding: 0;
  border-radius: 10px; border: 1px solid rgba(159,216,255,.16); background: rgba(6,12,24,.5); color: rgba(228,241,255,.85); cursor: pointer; opacity: .32; outline: none; }
#wp-tab:hover, #wp-tab.open { opacity: .62; }
#wp-tab:focus-visible { opacity: .9; box-shadow: 0 0 0 1px var(--ice); }
#wp-tab svg { width: 18px; height: 18px; }
@media (max-width: 1100px) { .wpp-hint { display: none; } #wp-panel { font-size: 9px; } #wp-panel button { padding: 6px 7px; } }
body.wp:not(.wp-nopanel).wp-clock-tl #wp-clock, body.wp:not(.wp-nopanel).wp-clock-tr #wp-clock { top: max(8vh, 76px); }
