/* 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; }
}
