/* Shared layout for the outfit and mount viewers. */
* { box-sizing: border-box; }
body { margin: 0; background: #050e15; color: #e5eaf6; font: 16px/1.4 system-ui, sans-serif; }
.viewer { width: min(calc(100% - 2rem), 52rem); margin: auto; padding: clamp(.75rem, 3svh, 1.75rem) 0; }
.viewer a { color: #b6a5ff; }
.viewer header { margin-bottom: .65rem; }
.viewer small { color: #9eddfa; letter-spacing: .09em; }
.viewer h1 { margin: .22em 0; font: clamp(1.55rem, 3.5vw, 2.25rem) Georgia, serif; }
.viewer p { margin: .35rem 0 .65rem; color: #bac6d6; }
#stage { width: 100%; height: clamp(12rem, 54vh, 29rem); height: clamp(12rem, 54svh, 29rem); border: 1px solid #26374d; border-radius: 14px; overflow: hidden; background: radial-gradient(ellipse, #253955, #070f1b); touch-action: none; cursor: grab; }
#stage:active { cursor: grabbing; }
#stage canvas { display: block; }
.viewer nav { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .65rem; }
.viewer button { min-height: 42px; padding: .45rem .9rem; border: 1px solid #665b8e; border-radius: 6px; color: #fff; background: #30274b; cursor: pointer; }
.viewer button:focus-visible { outline: 2px solid #b6a5ff; outline-offset: 2px; }
@media (min-width: 90rem) and (min-height: 46rem) {
  .viewer { width: clamp(52rem, 57.78vw, 72rem); }
  #stage { height: clamp(25rem, 54svh, 39rem); }
}
@media (max-width: 550px) { .viewer { width: calc(100% - 1.25rem); } #stage { height: min(47svh, 24rem); } }
@media (max-height: 500px) and (orientation: landscape) { .viewer { padding: .4rem 0; } .viewer header { margin-bottom: .3rem; } .viewer h1 { font-size: 1.4rem; } #stage { height: clamp(9rem, 48svh, 14rem); } }
