/* SOLUM store viewer — styles (moved out of index.html, 2026-11-16) */
html, body { margin: 0; height: 100%; background: #0d0d10; overflow: hidden; font-family: system-ui, sans-serif; }
canvas { display: block; }
#hud { position: fixed; top: 60px; left: 12px; color: #cfcfd6; background: rgba(0,0,0,.55); padding: 8px 10px; border-radius: 6px; font-size: 12px; line-height: 1.5; white-space: pre; display: none; }
#hud.on { display: block; }
.panel { background: rgba(16,16,22,.82); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; backdrop-filter: blur(6px); color: #e8e8ee; }
button.nb { background: transparent; color: #e8e8ee; border: 1px solid transparent; border-radius: 7px; padding: 8px 11px; cursor: pointer; font-size: 13px; white-space: nowrap; font-family: inherit; }
button.nb:hover { background: rgba(138,92,209,.25); }
button.nb.active { background: #8a5cd1; color: #fff; }
#top { position: fixed; top: 10px; left: 12px; display: flex; gap: 8px; }
#top .panel { display: flex; padding: 3px; gap: 2px; }
/* view buttons: wrap into a second row instead of running under the minimap (280 px + margins) */
:root { --map: 280px; }  /* minimap width; the view buttons keep clear of it */
#ui { position: fixed; left: 12px; bottom: 12px; max-width: calc(100% - var(--map) - 52px); display: flex; flex-wrap: wrap-reverse; gap: 8px; padding: 4px; }
#ui .grp { display: flex; flex-direction: column; padding: 4px 4px 3px; flex: none; }
#ui .grp span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #9a9aa8; padding: 0 9px 2px; }
#ui .grp div { display: flex; gap: 2px; }
#help { position: fixed; top: 10px; right: 12px; max-width: 300px; padding: 10px 30px 10px 12px; font-size: 12.5px; line-height: 1.65; }
#help b { color: #c9b3f2; font-weight: 600; }
#help .x { position: absolute; top: 4px; right: 4px; padding: 2px 8px; font-size: 15px; }
#map { position: fixed; right: 12px; bottom: 12px; padding: 6px; }
/* floating hints above the booth (futuristic layer) */
#hints { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.hint { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 5px 11px 6px 9px; border: 1px solid rgba(255,255,255,.14); border-left: 3px solid #8a5cd1; border-radius: 7px; background: rgba(14,10,28,.86); color: #f1eff8; font: 12.5px/1.25 system-ui, sans-serif; white-space: nowrap; cursor: pointer; transition: opacity .25s; will-change: transform; }
.hint[tabindex="-1"] { cursor: default; }
.hint b { font-weight: 600; }
.hint small { color: #b9b4cc; font-size: 11.5px; }
.hint::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 18px; background: linear-gradient(#8a5cd1, transparent); }
.hint.off { opacity: 0; pointer-events: none; }
@media (max-width: 760px) { .hint { font-size: 11.5px; padding: 4px 8px 4px 7px; } .hint small { display: none; } }
#map canvas { display: block; width: var(--map); border-radius: 6px; cursor: crosshair; touch-action: none; }
#map.hidden { display: none; }
/* loading screen */
#loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 40%, #1d1630 0%, #0d0d10 70%); color: #e8e8ee; transition: opacity .6s ease; }
#loader.out { opacity: 0; pointer-events: none; }
#loader .box { width: min(420px, calc(100% - 48px)); text-align: center; }
#loader .brand { font-size: 44px; font-weight: 700; letter-spacing: .28em; padding-left: .28em; }
#loader .sub { margin-top: 6px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #9a9aa8; }
#loader .bar { margin: 34px 0 12px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
#loader .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8a5cd1, #c9b3f2); border-radius: 2px; transition: width .25s ease; }
#loader .state { font-size: 12.5px; color: #b9b4cc; font-variant-numeric: tabular-nums; }
@media (pointer: coarse) { button.nb { padding: 11px 16px; font-size: 14px; } }
@media (max-width: 1400px) { :root { --map: 220px; } }
@media (max-width: 1000px) { :root { --map: 170px; } }
@media (max-width: 760px) {
  #ui { max-width: calc(100% - 24px); bottom: 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }  /* phone: one swipeable row */
  #map { bottom: auto; top: 58px; }
  #help { top: auto; bottom: 84px; right: 12px; left: 12px; max-width: none; }
}
/* product info overlay (js/ui/product.js): the label as a 3D preview on the left, its data on the right */
#product { position: fixed; inset: 0; z-index: 60; display: none; grid-template-columns: minmax(0, 1fr) min(420px, 38vw); gap: 14px; padding: 14px; box-sizing: border-box; background: radial-gradient(ellipse at 35% 45%, rgba(38,30,62,.9) 0%, rgba(9,9,12,.94) 75%); backdrop-filter: blur(10px); color: #e8e8ee; }
#product.on { display: grid; animation: product-in .25s ease; }
@keyframes product-in { from { opacity: 0; } to { opacity: 1; } }
#product .stage { position: relative; min-height: 0; border-radius: 12px; overflow: hidden; }
#product .stage canvas { position: absolute; inset: 0 0 100px 0; width: 100%; height: calc(100% - 100px); cursor: grab; touch-action: none; }
#product .stage canvas:active { cursor: grabbing; }
#product .tip { position: absolute; top: 12px; left: 14px; font-size: 12px; color: #9a9aa8; pointer-events: none; }
#product .views { position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%); display: flex; padding: 3px; gap: 2px; }
#product .chips { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; gap: 2px; justify-content: safe center; overflow-x: auto; scrollbar-width: none; padding: 0 10px; }
#product .chips .nb { padding: 6px 9px; font-size: 12.5px; color: #b9b4cc; font-variant-numeric: tabular-nums; }
#product .chips .nb.active { color: #fff; }
#product .info { overflow-y: auto; padding: 20px 22px 24px; font-size: 14px; line-height: 1.55; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
#product .kicker { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #9a9aa8; padding-right: 40px; }
#product h2 { margin: 2px 0 10px; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
#product h3 { margin: 20px 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #9a9aa8; }
#product p { margin: 0 0 12px; color: #cfcfd9; }
#product p.use { color: #f1eff8; font-size: 15px; }
#product dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 16px; }
#product dl div { background: rgba(255,255,255,.06); border-radius: 8px; padding: 8px 11px; }
#product dt { font-size: 11px; color: #9a9aa8; }
#product dd { margin: 1px 0 0; font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
#product .feat { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
#product .feat li { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(138,92,209,.55); color: #d9cdf3; }
#product .pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
#product .pics button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; }
#product .pics.shots button { aspect-ratio: 4 / 3; background: #16151d; }
#product video::cue { font-size: 15px; background: rgba(0,0,0,.7); }
#product .pics img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
#product .pics button:hover img { transform: scale(1.05); }
#product video { width: 100%; border-radius: 8px; background: #000; display: block; aspect-ratio: 16 / 9; }
#product .close { position: absolute; top: 22px; right: 24px; font-size: 16px; padding: 6px 11px; background: rgba(16,16,22,.7); }
#product .zoom { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5,5,8,.92); cursor: zoom-out; padding: 24px; box-sizing: border-box; }
#product .zoom[hidden] { display: none; }
#product .zoom img { max-width: 100%; max-height: 100%; border-radius: 8px; }
#product :focus-visible { outline: 2px solid #c9b3f2; outline-offset: 2px; }
@media (max-width: 860px) {
  #product { grid-template-columns: minmax(0, 1fr); grid-template-rows: 46vh minmax(0, 1fr); padding: 8px; gap: 8px; }
  #product .close { top: 14px; right: 14px; }
  #product .tip { display: none; }
  #product .chips { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { #product.on { animation: none; } }
