:root { --ink: #1d2328; --muted: #5d6770; --panel: rgba(250,250,248,0.86); --line: rgba(20,30,40,0.12); --acc: #e2973a; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #c8d6e2; font: 14px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; color: var(--ink); -webkit-tap-highlight-color: transparent; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#labels { position: fixed; inset: 0; pointer-events: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.panel, #top .brand, #modes, #legend, #card, #seatrow, #jumps button { backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
#loader { position: fixed; inset: 0; display: grid; place-content: center; text-align: center; background: linear-gradient(#e9eef2, #cfd9e1); z-index: 50; transition: opacity .6s; }
#loader.done { opacity: 0; pointer-events: none; }
#loader .lt { font-size: 26px; font-weight: 750; letter-spacing: -.01em; }
#loader .ls { color: var(--muted); margin: 6px 0 16px; }
#loader .bar { width: 240px; height: 4px; background: rgba(0,0,0,.08); border-radius: 4px; overflow: hidden; margin: 0 auto; }
#loader .bar i { display: block; height: 100%; width: 0; background: var(--acc); transition: width .2s; }
#top { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: max(12px, env(safe-area-inset-top)) 14px 0; pointer-events: none; z-index: 5; gap: 10px; }
#top .brand { pointer-events: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 9px 14px; box-shadow: 0 6px 24px rgba(0,0,0,.08); }
#top .brand b { display: block; font-size: 16px; letter-spacing: -.01em; }
#top .brand span { color: var(--muted); font-size: 12px; }
#modes { pointer-events: auto; display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 3px; box-shadow: 0 6px 24px rgba(0,0,0,.08); }
#modes button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font-weight: 650; color: var(--muted); }
#modes button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
#legend { position: fixed; left: 14px; top: 86px; width: 268px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.1); z-index: 4; overflow: hidden; }
#legend .lh { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 6px; }
#legend .lh button { border: 0; background: rgba(0,0,0,.06); width: 24px; height: 24px; border-radius: 7px; line-height: 1; }
#legend .li { padding: 0 6px 4px; }
#legend .lr { display: flex; align-items: center; gap: 9px; padding: 5px 6px; border-radius: 8px; cursor: pointer; }
#legend .lr:hover { background: rgba(0,0,0,.05); }
#legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); flex: none; }
#legend i.dash { background: transparent; border: 2px dashed var(--c, #666); }
#legend .lr span { flex: 1; font-weight: 560; font-size: 13px; }
#legend .lr em { font-style: normal; color: var(--muted); font-size: 12px; white-space: nowrap; }
#legend .lf { font-size: 11px; color: var(--muted); padding: 6px 12px 10px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 6px; }
#legend .lf i { --c: #777; width: 14px; height: 10px; }
#legend.min .li, #legend.min .lf { display: none; }
#card { position: fixed; right: 14px; top: 86px; width: 330px; max-height: calc(100% - 230px); overflow: auto; background: rgba(255,255,255,.93); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 12px; box-shadow: 0 12px 40px rgba(0,0,0,.16); z-index: 6; }
#card .x { position: absolute; right: 10px; top: 8px; border: 0; background: rgba(0,0,0,.06); width: 28px; height: 28px; border-radius: 9px; font-size: 18px; line-height: 1; }
#card .ch { display: flex; gap: 10px; align-items: center; padding-right: 30px; }
#card .ch i { width: 14px; height: 38px; border-radius: 5px; background: var(--c); flex: none; }
#card h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
#card .sub { color: var(--muted); font-size: 12px; }
#card .tag { display: inline-block; margin: 9px 6px 2px 0; font-size: 11px; font-weight: 650; padding: 3px 8px; border-radius: 99px; background: rgba(0,0,0,.06); color: var(--muted); }
#card .tag.map { background: rgba(46,158,98,.12); color: #22764a; }
#card .tag.approx { background: rgba(226,151,58,.16); color: #9a5c12; }
#card .tag.badge { background: #1d2328; color: #fff; }
#card .price { font-size: 16px; font-weight: 720; margin: 8px 0 4px; }
#card ul { margin: 6px 0 8px; padding-left: 18px; } #card li { margin: 3px 0; }
#card .park { background: rgba(201,162,39,.13); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
#card .fine { color: var(--muted); font-size: 11px; margin-top: 9px; }
#bottom { position: fixed; left: 0; right: 0; bottom: 0; padding: 0 12px max(10px, env(safe-area-inset-bottom)); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
#seatrow { pointer-events: auto; display: flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 5px; box-shadow: 0 8px 28px rgba(0,0,0,.12); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
#seatrow::-webkit-scrollbar { display: none; }
#play { border: 0; background: #1d2328; color: #fff; border-radius: 10px; padding: 8px 12px; font-weight: 700; white-space: nowrap; }
#seats { display: flex; gap: 4px; }
#seats .sg { align-self: center; font-size: 10.5px; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 0 3px 0 9px; white-space: nowrap; }
#seats .sg:not(:first-child) { border-left: 1px solid var(--line); margin-left: 4px; }
#seats button.num { min-width: 34px; padding: 8px 0; }
.jl.fa { width: 26px; border-radius: 10px; background: #5b6470; }
body.riding #legend, body.riding #help, body.riding #labels { display: none; }
#seats button { border: 0; background: transparent; padding: 8px 11px; border-radius: 10px; font-weight: 650; white-space: nowrap; }
#seats button.on { background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.14); color: #000; }
#jumps { pointer-events: auto; display: flex; gap: 6px; max-width: 100%; overflow-x: auto; padding: 2px; scrollbar-width: none; }
#jumps::-webkit-scrollbar { display: none; }
#jumps button { flex: none; border: 1px solid var(--line); background: rgba(255,255,255,.78); border-radius: 99px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
#joy { position: fixed; left: 22px; bottom: 140px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.55); display: none; z-index: 5; touch-action: none; }
#knob { position: absolute; left: 32px; top: 32px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
body.touch[data-mode="walk"] #joy { display: block; }
#help { position: fixed; left: 50%; transform: translateX(-50%); bottom: 112px; background: rgba(29,35,40,.72); color: #fff; font-size: 12px; padding: 6px 12px; border-radius: 99px; z-index: 3; white-space: nowrap; pointer-events: none; }
#help .mob { display: none; } body.touch #help .mob { display: inline; } body.touch #help .desk { display: none; }
#credits { position: fixed; right: 10px; bottom: 4px; font-size: 9.5px; color: rgba(20,25,30,.7); max-width: 46%; text-align: right; z-index: 2; pointer-events: none; text-shadow: 0 0 4px rgba(255,255,255,.8); }
/* floating zone labels */
.zl { pointer-events: auto; cursor: pointer; display: flex; flex-direction: column; align-items: center; transform: translateY(-50%); background: rgba(255,255,255,.92); border: 1px solid rgba(0,0,0,.08); border-left: 4px solid var(--c); border-radius: 10px; padding: 4px 9px 5px; box-shadow: 0 4px 14px rgba(0,0,0,.18); white-space: nowrap; font-size: 12px; }
.zl i { display: none; }
.zl b { font-size: 12.5px; letter-spacing: -.005em; }
.zl span { color: #39424a; font-size: 11px; font-weight: 600; }
.zl em { font-style: normal; font-size: 9.5px; color: #9a5c12; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.zl.approx { border-left-style: dashed; }
.zl.sel { outline: 2px solid var(--c); transform: translateY(-50%) scale(1.08); }
.zl.line { background: rgba(29,35,40,.8); color: #fff; border-color: transparent; border-left-color: var(--c); } .zl.line span { color: #ddd; }
.jl { width: 20px; height: 20px; border-radius: 50%; background: #2f66d0; color: #fff; font-weight: 800; font-size: 11px; display: grid; place-items: center; border: 2px solid #f2b416; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
body.shot #help { display: none; }
@media (max-width: 720px) {
  #top .brand span { display: none; } #top .brand { padding: 7px 11px; } #top .brand b { font-size: 14px; }
  #legend { top: 64px; left: 10px; width: 230px; } #card { left: 10px; right: 10px; width: auto; top: auto; bottom: 118px; max-height: 48%; }
  #help { bottom: 116px; font-size: 11px; } .zl { font-size: 10.5px; padding: 3px 7px; } .zl b { font-size: 11px; } .zl span { font-size: 10px; }
  #credits { display: none; }
}

#arbtn { position: fixed; right: 14px; top: 64px; z-index: 5; display: none; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); border-radius: 11px; padding: 7px 12px; font-weight: 700; box-shadow: 0 6px 24px rgba(0,0,0,.1); }
body.touch #arbtn, body.showar #arbtn { display: flex; }
#armodal { position: fixed; inset: 0; background: rgba(20,25,30,.45); z-index: 40; display: grid; place-items: center; padding: 16px; }
#armodal[hidden] { display: none; }
#armodal .arcard { position: relative; background: #fff; border-radius: 18px; width: min(560px, 100%); padding: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
#armodal model-viewer { width: 100%; height: min(60vh, 420px); background: linear-gradient(#eef2f5, #dfe6ec); border-radius: 12px; }
#armodal p { color: var(--muted); font-size: 13px; margin: 10px 4px 2px; }
#arclose { position: absolute; right: 10px; top: 10px; z-index: 2; border: 0; background: rgba(0,0,0,.07); width: 30px; height: 30px; border-radius: 9px; font-size: 18px; }
.mvar { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); border: 0; background: #1d2328; color: #fff; padding: 9px 14px; border-radius: 10px; font-weight: 700; }
@media (max-width: 720px) { #arbtn { top: 58px; right: 10px; } }
