/* The premium pass, taken from Craft's stylesheet (reference/craft-replay): surfaces that
   rise above the page, glass only where a panel floats over the world, a soft glow for the
   one active thing, a lift under the pointer, and a display face for titles. Every class
   here is opt-in — no surface changes until it asks. The values are tokens in tokens.css,
   so the host shell and the owned shell stay one material. */

/* A card that sits above the page: a near-black edge, one long shadow, and a hairline ring
   inset so the rim reads as a single piece of light (Craft's workspace-card). */
body.wb-shell .wl-elev {
  position: relative;
  border: 0;
  border-radius: var(--r-xl, var(--r-lg));
  background: color-mix(in srgb, var(--wl-raised) 55%, var(--wl-surface));
  box-shadow: var(--wl-elev-card);
}
body.wb-shell .wl-elev::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--wl-glass-line);
  pointer-events: none;
}

/* A panel that floats over the world — map tools, pickers, overlays: the scene blurs
   through, the rim is a light hairline, and the shadow says "above everything". */
body.wb-shell .wl-glass-panel {
  background: var(--wl-glass-fill);
  border: 1px solid var(--wl-glass-line);
  border-radius: var(--r-xl, var(--r-lg));
  box-shadow: var(--wl-elev-pop);
  -webkit-backdrop-filter: blur(var(--wl-glass-blur)) saturate(1.08);
  backdrop-filter: blur(var(--wl-glass-blur)) saturate(1.08);
}

/* The material alone, for scrims and rims where the shape is already set elsewhere. */
body.wb-shell .wl-glass {
  background: var(--wl-glass-fill);
  -webkit-backdrop-filter: blur(var(--wl-glass-blur)) saturate(1.08);
  backdrop-filter: blur(var(--wl-glass-blur)) saturate(1.08);
}

/* The one active thing glows, quietly: a hand's-breadth of accent light, no pulsing. */
body.wb-shell .wl-glow { box-shadow: var(--wl-glow-accent); }
body.wb-shell .wl-glow-ring {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wl-accent) 30%, transparent), var(--wl-glow-accent);
}

/* A lift under the pointer: one pixel up while hovered, settled again on press. Colour and
   shadow move with it, on the one timing scale from tokens.css. */
body.wb-shell .wl-lift {
  transition: transform var(--wl-short) var(--wl-ease-out),
    box-shadow var(--wl-short) var(--wl-ease),
    background-color var(--wl-short) var(--wl-ease),
    border-color var(--wl-short) var(--wl-ease);
}
body.wb-shell .wl-lift:hover { transform: translateY(-1px); }
body.wb-shell .wl-lift:active { transform: translateY(0) scale(.985); transition-duration: var(--wl-quick); }

/* Keyboard focus reads before anything else: two pixels of selection, a breath of space. */
body.wb-shell :is(.wl-elev, .wl-lift, .wl-glass-panel):focus-visible {
  outline: 2px solid color-mix(in srgb, var(--wl-selection) 55%, transparent);
  outline-offset: 2px;
}

/* Titles can take the display face (Rubik Mono One, D-184); capitals only, so on a few words.
   Everything else is Manrope. */
body.wb-shell .wl-display {
  font-family: var(--wl-font-display);
  font-weight: 400;
  letter-spacing: .015em;
}

/* Reduced motion keeps the surfaces and the glow — only the lift is taken away. */
@media (prefers-reduced-motion: reduce) {
  body.wb-shell .wl-lift, body.wb-shell .wl-lift:hover, body.wb-shell .wl-lift:active { transform: none; }
}

/* Bolts, the app's currency (D-373): the coin in ice, its count, and while development shows it the real cost in
   amber (bolts.mjs). */
.wl-bolt { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wl-bolt-icon { display: inline-grid; flex: none; width: 1.1em; height: 1.1em; color: var(--wl-selection); }
.wl-bolt-icon svg { display: block; width: 100%; height: 100%; }
.wl-bolt-real { margin-left: 3px; color: var(--wl-warning); font-size: .92em; }
small > .wl-bolt-real { margin-left: 0; font-size: inherit; }
/* In a model list the bolts read in the app's own face, not the code face prices used before. */
.wl-bolt.wl-narrator-row-price { font-family: inherit; font-size: 12px; color: var(--wl-text-2); }
