/* City Explorer — the wrist watch: the HUD button that glows near a place, and the hologram panel it projects (video + facts + library).
   "Arcade" look: near-black glass, 1px soft lines, big round corners, bold Inter; gold = active / glowing; the hologram itself is the game's teal. Tokens from game-skin.css with fallbacks. */

/* ───────── the button (same family as the map / code / sound buttons) ───────── */
#bWatch{top:calc(max(12px,env(safe-area-inset-top)) + 206px)}
body.touch #bWatch{top:calc(max(12px,env(safe-area-inset-top)) + 208px)}
@media (orientation:landscape){body.touch #bWatch{right:calc(var(--sr) + 200px);top:var(--st)}}
#bWatch.glow{background:var(--gold,#d4a017);color:#1a1200;border-color:rgba(255,226,140,.9);animation:wglow 1.5s ease-in-out infinite}
#bWatch.glow:hover{background:#e6b422}
#bWatch.dot::after{content:"";position:absolute;top:6px;right:6px;width:8px;height:8px;border-radius:50%;background:var(--tint,#2dd4bf);box-shadow:0 0 6px var(--tint,#2dd4bf)}
@keyframes wglow{0%,100%{box-shadow:0 0 0 0 rgba(212,160,23,.7),0 0 12px 2px rgba(212,160,23,.45)}50%{box-shadow:0 0 0 12px rgba(212,160,23,0),0 0 28px 6px rgba(250,204,21,.85)}}

/* ───────── the hologram ───────── */
#holo{position:fixed;inset:0;z-index:26;display:none;touch-action:pan-y;--hc:var(--tint,#2dd4bf);--hw:min(860px,calc((100dvh - 270px) * 16 / 9 + 28px),calc(100vw - 16px))}
#holo.on{display:block}
#holo.s{--hw:min(340px,calc(100vw - 24px))}
#holo.m{--hw:min(860px,calc((100dvh - 270px) * 16 / 9 + 28px),calc(100vw - 16px))}
#holo.l{--hw:min(calc((100dvh - 100px) * 16 / 9 + 24px),calc(100vw - 16px))}
#hback{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 100%,rgba(6,44,48,.5),rgba(2,8,12,.8))}
#holo.s #hback{background:rgba(2,8,12,.28)}
#hbeam{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#hpanel{position:absolute;top:max(10px,env(safe-area-inset-top));left:0;right:0;margin:0 auto;width:var(--hw);display:flex;flex-direction:column;gap:9px;padding:12px 14px 10px;border-radius:24px;overflow:hidden;max-height:calc(100dvh - 20px);
  background:linear-gradient(180deg,rgba(7,34,40,.88),rgba(8,15,22,.93));border:1px solid rgba(94,234,212,.5);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  box-shadow:0 0 0 1px rgba(94,234,212,.1) inset,0 0 42px rgba(45,212,191,.3),0 26px 60px rgba(0,0,0,.6);transform-origin:50% 100%;animation:hproj .62s cubic-bezier(.2,.8,.2,1) both}
#holo.s #hpanel{left:auto;right:max(12px,env(safe-area-inset-right));margin:0;transform-origin:100% 100%}
#hpanel::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:repeating-linear-gradient(0deg,rgba(94,234,212,.04) 0 1px,transparent 1px 4px);animation:hscan 6s linear infinite}
@keyframes hscan{to{background-position:0 40px}}
@keyframes hproj{0%{opacity:0;transform:scale(.5,.02);filter:brightness(2.6)}35%{opacity:.95;transform:scale(1,.05);filter:brightness(2.1)}60%{opacity:.6;transform:scale(1,1.03)}72%{opacity:1;filter:brightness(1.5)}100%{opacity:1;transform:none;filter:none}}
@media (prefers-reduced-motion:reduce){#hpanel,#hpanel::after,#bWatch.glow{animation:none}}

.hhd{display:flex;align-items:center;gap:10px;min-height:40px}
.hico{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:rgba(94,234,212,.14);color:var(--hc);flex:none}
.htt{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.15}
.htt b{font-weight:900;font-size:17px;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.htt span{font-size:12px;font-weight:800;color:var(--dim,#7f8cab);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hsegs{display:flex;background:rgba(255,255,255,.08);border-radius:999px;padding:3px;gap:2px;flex:none}
.hsegs button{border:0;background:none;color:#d7e6ea;font:inherit;font-weight:900;font-size:12px;width:30px;height:28px;border-radius:999px;cursor:pointer;padding:0}
.hsegs button.on{background:var(--gold,#d4a017);color:#1a1200}
.hb{width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.1);color:#fff;display:grid;place-items:center;cursor:pointer;padding:0;flex:none}
.hb:hover{background:rgba(255,255,255,.18)}
.htabs{display:flex;gap:6px}
.htabs button{border:0;border-radius:999px;padding:7px 16px;font:inherit;font-weight:900;font-size:13px;background:rgba(255,255,255,.08);color:#d7e6ea;cursor:pointer}
.htabs button.on{background:var(--gold,#d4a017);color:#1a1200}
#hbody{display:flex;flex-direction:column;gap:9px;overflow:auto;min-height:0;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin}

.hvw{position:relative;aspect-ratio:16/9;width:100%;flex:none;border-radius:16px;overflow:hidden;background:#02080b;border:1px solid rgba(94,234,212,.35);box-shadow:0 0 24px rgba(45,212,191,.16)}
.hvw iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.hoff{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:14px;color:#d7e6ea}
.hoff b{font-size:16px;font-weight:900}.hoff span{font-size:12px;color:var(--dim,#7f8cab);font-weight:700}
.hchips{display:flex;gap:6px;flex-wrap:wrap}
.hchips button{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.07);color:#d7e6ea;border-radius:999px;padding:6px 12px;font:inherit;font-weight:800;font-size:12px;cursor:pointer}
.hchips button.on{background:var(--gold,#d4a017);color:#1a1200;border-color:transparent}
.hmeta{display:flex;align-items:center;justify-content:space-between;gap:10px}
.htag{background:rgba(94,234,212,.16);color:var(--hc);border-radius:999px;font-size:11px;font-weight:900;padding:3px 11px;letter-spacing:.05em;text-transform:uppercase}
.hyt{display:inline-flex;align-items:center;gap:6px;color:#d7e6ea;text-decoration:none;font-weight:800;font-size:12px;background:rgba(255,255,255,.08);border-radius:999px;padding:6px 12px}
.hyt:hover{background:rgba(255,255,255,.16)}.hyt svg{width:14px;height:14px;fill:currentColor;stroke:none}
.hfact p{margin:0 0 9px;font-size:13.5px;line-height:1.5;font-weight:600;color:#e8f3f4}
.hfact em{display:block;font-style:normal;color:var(--dim,#7f8cab);font-size:12.5px;margin-top:2px}
.hkeys{font-size:10.5px;font-weight:800;letter-spacing:.04em;color:var(--dim,#7f8cab);text-align:center;opacity:.8}

/* library */
.hlib{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:10px}
.hcard{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:18px;padding:8px 8px 10px;color:#fff;font:inherit;cursor:pointer}
.hcard:hover{background:rgba(94,234,212,.12);border-color:rgba(94,234,212,.45)}
.hcard .hth{position:relative;display:block;width:100%;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:linear-gradient(135deg,#0d9488,#134e4a)}
.hcard .hth img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hcard .hth i{position:absolute;right:8px;bottom:8px;width:30px;height:30px;border-radius:50%;background:rgba(0,0,0,.55);display:grid;place-items:center}.hcard .hth i svg{width:15px;height:15px;fill:#fff;stroke:none}
.hcard b{font-weight:900;font-size:14px;padding:4px 4px 0}.hcard small{font-size:11.5px;font-weight:700;color:var(--dim,#7f8cab);padding:0 4px}
.hcard u{text-decoration:none;position:absolute;top:14px;left:14px;font-size:10px;font-weight:900;letter-spacing:.05em;text-transform:uppercase;border-radius:999px;padding:2px 9px;background:rgba(0,0,0,.6);color:#d7e6ea}
.hcard u.now{background:var(--gold,#d4a017);color:#1a1200}.hcard u.new{background:var(--tint,#2dd4bf);color:#042f2e}
.hmore{margin:2px 2px 0;font-size:12px;font-weight:700;color:var(--dim,#7f8cab)}

/* big screen = theatre mode: just the video */
#holo.l .htabs,#holo.l .hchips,#holo.l .hmeta,#holo.l .hfact,#holo.l .hkeys,#holo.l .hmore{display:none}
#holo.l #hpanel{padding:10px 12px;gap:8px}
#holo.s .hfact,#holo.s .hkeys{display:none}
#holo.s .htt b{font-size:15px}
#holo.s .hsegs button{width:26px}
#holo.s .hlib{grid-template-columns:1fr}

/* short screens (phones held sideways) */
@media (max-height:520px){
  #holo.m{--hw:min(calc((100dvh - 150px) * 16 / 9 + 20px),calc(100vw - 16px))}
  #holo.m .hmeta{display:none}
  #hpanel{padding:8px 10px;gap:6px;border-radius:20px}
  .hhd{min-height:34px}.hico,.hb{width:32px;height:32px}.hico svg,.hb svg{width:17px;height:17px}
  .htt b{font-size:15px}.htt span{font-size:11px}.hsegs button{width:26px;height:24px}
  .htabs button{padding:5px 13px;font-size:12px}
  .hkeys{display:none}
  .hfact p{font-size:12.5px}
}
