/* Product base: tour, settings, loading bar, text size, reduced motion. Kept apart from app.css so character/hall work never collides. */
:root{--qlc-fs:1}
/* Text size: UI is in px, so scale the UI surfaces instead of the root. */
.sheet,.gate-inner,.subs,.hint,.livebar,.dock,.places,.banner,.netnote,.toast{zoom:var(--qlc-fs)}
#qlc-ob .ob-card{font-size:calc(14px*var(--qlc-fs))}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
:root[data-motion="reduce"] *,:root[data-motion="reduce"] *::before,:root[data-motion="reduce"] *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}

.qlc-plat{display:flex;flex-direction:column;gap:10px;margin-top:4px}
.qlc-plat .row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.qlc-plat .note{margin:0;font-size:12.5px;color:var(--muted,#aab)}
.qlc-plat select{background:rgba(255,255,255,.06);color:inherit;border:1px solid var(--line,rgba(255,255,255,.2));border-radius:8px;padding:6px 8px;font:inherit}

/* loading bar on the gate */
.boot-bar{height:3px;border-radius:3px;background:rgba(255,255,255,.12);overflow:hidden;max-width:280px}
.boot-bar>i{display:block;height:100%;width:0;background:linear-gradient(90deg,#e9b85c,#f6d58f);transition:width .35s ease}
.boot-bar.done{opacity:0;transition:opacity .6s .3s}
.boot-msg{font-size:12.5px;color:var(--muted,#aab);min-height:1.2em}

/* first-visit tour */
#qlc-ob{position:fixed;inset:0;z-index:40;pointer-events:none}
#qlc-ob .ob-ring{position:fixed;border:2px solid #f6d58f;border-radius:14px;box-shadow:0 0 0 4px rgba(246,213,143,.2),0 0 24px rgba(246,213,143,.5);animation:ob-pulse 1.6s ease-in-out infinite}
@keyframes ob-pulse{50%{box-shadow:0 0 0 9px rgba(246,213,143,.1),0 0 34px rgba(246,213,143,.7)}}
#qlc-ob .ob-card{pointer-events:none;position:fixed;left:50%;transform:translateX(-50%);top:calc(env(safe-area-inset-top,0px) + 108px);width:min(92vw,360px);box-sizing:border-box;background:rgba(14,18,34,.94);color:#f1ece0;border:1px solid rgba(233,184,92,.45);border-radius:16px;padding:14px 16px 12px;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);display:flex;flex-direction:column;gap:6px;box-shadow:0 10px 40px rgba(0,0,0,.5)}
#qlc-ob .ob-card b{font-size:17px;font-family:var(--f-display,serif)}
#qlc-ob .ob-card p{margin:0;font-size:14px;line-height:1.5;color:#d8d2c4}
#qlc-ob .ob-live{color:#f6d58f!important;font-variant-numeric:tabular-nums}
#qlc-ob .ob-dots{display:flex;gap:6px}
#qlc-ob .ob-dots i{width:18px;height:4px;border-radius:2px;background:rgba(255,255,255,.2)}
#qlc-ob .ob-dots i.on{background:#f6d58f}#qlc-ob .ob-dots i.past{background:rgba(246,213,143,.5)}
#qlc-ob .ob-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:4px}
#qlc-ob .ob-n{font-size:12px;color:#9aa}
#qlc-ob button{min-height:40px;min-width:64px;border-radius:10px;border:1px solid rgba(233,184,92,.5);background:none;color:#f1ece0;font:inherit;font-size:14px;padding:0 14px;cursor:pointer}
#qlc-ob .ob-next{background:#e9b85c;color:#1a1408;border-color:#e9b85c;font-weight:700}
#qlc-ob .ob-skip{border-color:transparent;color:#aab}
#qlc-ob.ok .ob-card{border-color:#8fd19e}
/* desktop: a narrow card in the top-right corner, clear of the character, the path ahead and the LIVE bar */
@media (min-width:700px){#qlc-ob .ob-card{left:auto;transform:none;right:max(16px,env(safe-area-inset-right,0px));top:76px;bottom:auto;width:300px}}
@media (max-height:520px) and (max-width:699px){#qlc-ob .ob-card{top:8px}}

/* the card never swallows a camera drag or a joystick touch: only its own controls take input */
#qlc-ob .ob-card button,#qlc-ob .ob-card a,#qlc-ob .ob-card label,#qlc-ob .ob-card input{pointer-events:auto}
