/* WRAPS STUDIO Museum (22 Oct 2026). Brand: blue #1E8FE1, orange #F26B1D, black. */
:root { --blue: #1E8FE1; --orange: #F26B1D; --black: #0b0d12; --ink: #f3f5f8; --muted: #b7c0cc; --card: rgba(14, 17, 24, .92); --line: rgba(255, 255, 255, .14); }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--black); color: var(--ink); font: 16px/1.5 Inter, Arial, system-ui, sans-serif; }
h1, h2, h3, .loader-title, .btn { font-family: Sora, Inter, Arial, sans-serif; }
a { color: #7cc3f5; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; color: #0b0d12; background: var(--blue); }
.btn.ghost { color: #fff; }
.btn.call { background: var(--blue); color: #0b0d12; }
.btn.wa { background: var(--orange); color: #0b0d12; }
.btn.ghost { background: rgba(11, 13, 18, .72); border-color: var(--line); }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* 3D stage */
.stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: radial-gradient(circle at 50% 30%, #1a2230, var(--black)); display: none; }
.js .stage { display: block; }
.no-3d .stage { display: none !important; }
#scene { display: block; width: 100%; height: 100%; touch-action: none; outline: none; cursor: grab; }
#scene.dragging { cursor: grabbing; }
.loader { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(180deg, rgba(11,13,18,.56), rgba(11,13,18,.82)), url("museum-share.jpg") center 46% / cover no-repeat, var(--black); transition: opacity .5s; text-align: center; padding: 16px; }
.loader img { width: 110px; height: auto; }
.loader.done { opacity: 0; pointer-events: none; }
.loader-title { font-size: 22px; font-weight: 700; margin: 6px 0 0; }
.loader-note { margin: 0; color: var(--muted); font-size: 14px; }
.bar { width: min(260px, 70vw); height: 6px; border-radius: 6px; background: #222833; overflow: hidden; }
.bar span { display: block; height: 100%; width: 4%; background: linear-gradient(90deg, var(--blue), var(--orange)); transition: width .25s; }

.hud-top { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 16px 10px; background: #0b0d12; border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); pointer-events: none; }
.hud-top > * { pointer-events: auto; }
.hud-brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.hud-brand img { width: 44px; height: 44px; border-radius: 10px; }
.hud-brand span { display: flex; flex-direction: column; line-height: 1.1; }
.hud-brand b { font-family: Sora, Arial, sans-serif; letter-spacing: .02em; }
.hud-brand small { color: var(--orange); font-weight: 700; }
.rating { font-size: 13px; color: #ffd257; background: rgba(11, 13, 18, .7); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.hud-actions { margin-left: auto; display: flex; gap: 8px; }
.hud-actions .btn { white-space: nowrap; }
.museum-language { min-height: 44px; max-width: 132px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgba(11,13,18,.86); font: 600 14px Inter, Arial, sans-serif; }
.museum-language:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* the "where am I" pill sits low, under the 3D room titles, never over them */
.where { position: absolute; bottom: 86px; left: 50%; transform: translateX(-50%); z-index: 9; margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(11, 13, 18, .75); border: 1px solid var(--line); font-size: 14px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.where:empty, .touring .where { display: none; }
.touch-ui .where { bottom: 166px; }

.hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 12; width: min(560px, calc(100% - 32px)); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.hint[hidden] { display: none; }
.hint p { margin: 0; }
.hint b { color: var(--orange); margin-right: 6px; }
.hint p[hidden] { display: none; }
.hint .btn { align-self: flex-end; }
.touch-ui .hint { bottom: 170px; }

.joy { position: absolute; left: 22px; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 11; width: 128px; height: 128px; border-radius: 50%; background: rgba(30, 143, 225, .18); border: 2px solid rgba(255, 255, 255, .35); touch-action: none; }
.joy[hidden] { display: none; }
.knob { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ff9a5c, var(--orange)); box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }

.room-hint { position: absolute; top: 84px; left: 50%; transform: translateX(-50%); z-index: 9; margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(242, 107, 29, .94); color: #0b0d12; font-weight: 700; font-size: 14px; white-space: nowrap; pointer-events: none; }
.room-hint[hidden] { display: none; }
.btn.tour { position: absolute; z-index: 11; right: 16px; bottom: max(22px, env(safe-area-inset-bottom)); background: var(--orange); color: #0b0d12; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.btn.tour[hidden] { display: none; }
.tour-bar { position: absolute; z-index: 11; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; width: max-content; max-width: calc(100% - 32px); padding: 8px 10px 8px 16px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.tour-bar[hidden] { display: none; }
.touch-ui .tour-bar { bottom: 168px; }

/* service panel */
.panel { position: absolute; z-index: 20; top: 76px; right: 16px; bottom: 16px; width: min(400px, calc(100% - 32px)); overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: 18px; padding: 18px 18px 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); animation: pin .22s ease-out; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.panel[hidden] { display: none; }
@keyframes pin { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.panel h2 { margin: 2px 40px 6px 0; font-size: 22px; line-height: 1.2; outline: none; }
.p-zone { margin: 0; color: var(--orange); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.p-short { margin: 0 0 10px; color: #fff; font-weight: 600; }
.p-detail { color: var(--muted); font-size: 15px; margin: 10px 0; }
.p-pics { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.p-pics figure { margin: 0; }
.p-pics img, .p-pics canvas { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #1b2029; display: block; }
.p-pics img.outline { object-fit: contain; background: #e9edf2; padding: 6px; }
.p-pics figcaption { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.p-opts { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.p-opts li { font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(30, 143, 225, .6); color: #cfe7fb; }
.p-offer { background: rgba(242, 107, 29, .15); border: 1px solid var(--orange); border-radius: 10px; padding: 8px 10px; font-weight: 700; font-size: 14px; }
.p-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.p-cta .btn { flex: 1 1 160px; white-space: nowrap; }
.p-cta .btn.wa { flex-basis: 100%; order: -1; }
.p-more { display: inline-block; margin-top: 12px; font-weight: 600; }
.x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #1b2029; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }

@media (max-width: 640px) {
  .rating { display: none; }
  .hud-brand small { font-size: 12px; }
  .hud-brand b { font-size: 14px; }
  .hud-brand img { width: 38px; height: 38px; }
  .hud-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: max(8px, env(safe-area-inset-top)) 12px 8px; }
  .hud-actions { margin-left: 0; justify-content: flex-end; }
  .hud-actions .btn { padding: 8px 12px; font-size: 14px; }
  .museum-language { max-width: 104px; min-height: 42px; padding: 0 22px 0 8px; font-size: 12px; }
  .room-hint { top: 104px; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
  .panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 58%; border-radius: 18px 18px 14px 14px; animation-name: pup; }
  @keyframes pup { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
  .where { font-size: 13px; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
}

/* plain list */
.list { max-width: 1100px; margin: 0 auto; padding: 32px 16px 24px; }
.list-head h1 { font-size: clamp(28px, 6vw, 44px); margin: 0 0 8px; }
.list-head p { color: var(--muted); max-width: 60ch; }
.list-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.no-js #backBtn, .no-3d #backBtn { display: none; }
.zone-h { margin: 32px 0 12px; font-size: 22px; color: var(--orange); }
.svc { background: #121620; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.svc h3 { margin: 0 0 4px; font-size: 19px; }
.svc .short { margin: 0 0 6px; font-weight: 600; }
.svc .detail { color: var(--muted); margin: 0 0 8px; }
.svc ul { margin: 0 0 8px; padding-left: 20px; color: var(--muted); }
.svc .offer { font-weight: 700; color: #ffb48a; }
.svc figure { margin: 8px 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.svc figure img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: #1b2029; }
.svc figcaption { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.svc a.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.visit { margin-top: 28px; }
.visit address { font-style: normal; color: var(--muted); }
.foot { border-top: 1px solid var(--line); padding: 20px 16px 28px; text-align: center; color: var(--muted); font-size: 14px; }
.foot-logo img { width: 80px; }
.credit { margin: 8px 0 0; }

.calm *, .calm *::before, .calm *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
