/* /perso 3D viewer window (viewer3d.js). A game window like the others; the stage keeps its size from the first
   paint (skeleton, then canvas or paper doll) so nothing jumps. */
.v3d { overflow: hidden; }
.v3d-body { padding: 0; }
.v3d-stage { position: relative; height: 460px; touch-action: pan-y;
  background: radial-gradient(120% 70% at 50% 18%, rgba(229, 219, 194, .10), rgba(229, 219, 194, 0) 60%),
    radial-gradient(90% 40% at 50% 100%, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg, #252b29 0%, #1a1f1e 100%); }
.v3d-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 24px 24px; mask-image: linear-gradient(180deg, transparent 0%, #000 55%, transparent 100%); }
.v3d-skel { position: absolute; inset: 14px; height: auto; border-radius: 3px; }
.v3d-canvas { position: relative; z-index: 1; display: block; width: 100%; height: 100%; cursor: grab; outline: none; }
.v3d-canvas:active { cursor: grabbing; }
.v3d-canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--sign-hi, #13704a); }
.v3d-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); }
.v3d-hint { color: var(--dim); font-size: 13px; line-height: 1.3; }
.v3d-note { margin: 0; padding: 0 12px 10px; color: var(--dim); font-size: 13px; line-height: 1.35; }
.v3d-msg { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px; text-align: center; color: var(--dim); }
.v3d-doll { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 18px; overflow: auto; }
.v3d-doll-grid { display: grid; grid-template-columns: repeat(3, 64px); gap: 6px; }
.v3d-doll-s { display: block; border-radius: 3px; transition: box-shadow .12s; }
.v3d-doll-s.on { box-shadow: 0 0 0 2px #1fe5ff, 0 0 10px rgba(31, 229, 255, .55); }
/* an item with no piece on the model (viewer3d.js highlighter) */
.v3d-hlchip { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 8px; padding: 6px 9px;
  background: rgba(12, 12, 12, .86); border: 1px solid rgba(255, 210, 87, .55); color: #cfcfcf; font-size: 12.5px; line-height: 1.25;
  pointer-events: none; opacity: 0; transition: opacity .12s; }
.v3d-hlchip.on { opacity: 1; }
.v3d-hlchip img { width: 28px; height: 28px; flex: none; }
.v3d-hlchip b { display: block; color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3d-hlchip span { min-width: 0; }
/* the character scrolled out of view while an item is looked at: it follows in a corner */
.v3d-stage.v3d-pip { position: fixed; z-index: 60; top: 72px; right: 8px; width: 136px; height: 196px; border: 1px solid rgba(31, 229, 255, .6);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .65); pointer-events: none; touch-action: auto; }
.v3d-pip .v3d-hlchip { left: 4px; right: 4px; bottom: 4px; padding: 3px 5px; font-size: 11px; } .v3d-pip .v3d-hlchip img { display: none; }
.v3d-doll-t { margin: 0; color: var(--dim); font-size: 14px; text-align: center; }
@media (max-width: 860px) { .v3d-stage { height: 320px; } .v3d-doll-grid { grid-template-columns: repeat(4, 64px); } }
