/* Virtual Universe: services (the button on the left, the sheet over the city, the office chip) and sport (the stadium's
   controls, the kits card). The city's own colours: glass panels, one gold thing to press. */
.bizb { position:fixed; left:10px; top:64px; z-index:5; display:flex; align-items:center; gap:8px; font:inherit; font-weight:800; font-size:14px; color:#16120A; background:var(--gold); border:0; border-radius:14px; padding:10px 14px; cursor:pointer; box-shadow:0 6px 18px rgba(0,0,0,.28); }
.bizb svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.bizb i { position:absolute; top:-6px; right:-6px; min-width:19px; height:19px; padding:0 5px; border-radius:10px; background:#DC2626; color:#fff; font-style:normal; font-size:11.5px; font-weight:800; display:grid; place-items:center; }
.bizb i[hidden], .bizb[hidden] { display:none; }
body.inoffice .bizb, body.inoffice #tools, body.inoffice #dock, body.droning .bizb, body.inreal .bizb { display:none !important; }

.sheet { position:fixed; inset:0; z-index:60; background:rgba(6,9,14,.55); display:grid; place-items:center; padding:14px; backdrop-filter:blur(3px); }
.sheet[hidden] { display:none; }
.sheet .sbox { width:min(940px, 100%); height:min(860px, 100%); background:#F6F3EC; border-radius:20px; overflow:hidden; display:flex; flex-direction:column; box-shadow:0 30px 80px rgba(0,0,0,.5); }
.sheet header { display:flex; align-items:center; justify-content:space-between; padding:10px 12px 10px 18px; background:#102033; color:#fff; flex:none; }
.sheet header b { font-size:15.5px; letter-spacing:.01em; }
.sheet .x { width:36px; height:36px; border-radius:10px; border:1px solid rgba(255,255,255,.3); background:transparent; color:#fff; font-size:22px; line-height:1; cursor:pointer; }
.sheet iframe { flex:1 1 auto; width:100%; border:0; background:#F6F3EC; }
@media (max-width:640px) { .sheet { padding:0; } .sheet .sbox { border-radius:0; height:100%; height:100dvh; } }

.bizchip, .sporthud { position:fixed; left:50%; transform:translateX(-50%); z-index:6; background:var(--glass); border:1px solid var(--gold); border-radius:16px; padding:10px 14px; max-width:calc(100vw - 20px); backdrop-filter:blur(10px); }
.bizchip { top:64px; display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
.bizchip[hidden], .sporthud[hidden] { display:none; }
.bizchip b { display:block; font-size:15px; } .bizchip small { color:var(--soft); font-size:13px; }
.bizchip .acts { display:flex; gap:8px; flex-wrap:wrap; }

.sporthud { bottom:calc(84px + env(safe-area-inset-bottom)); display:grid; gap:6px; min-width:min(330px, calc(100vw - 20px)); }
.sporthud .row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:space-between; }
.sporthud b { font-size:15px; } .sporthud span { font-size:14px; color:var(--text); } .sporthud small { color:var(--soft); font-size:13px; }
.sportbig { position:fixed; left:50%; top:30%; transform:translate(-50%, -50%); z-index:7; font-weight:800; font-stretch:115%; font-size:clamp(40px, 9vw, 92px); color:#fff; text-shadow:0 4px 24px rgba(0,0,0,.6), 0 0 2px #000; pointer-events:none; text-align:center; }
.sportbig[hidden] { display:none; }
.sportcard { position:fixed; right:10px; top:64px; width:min(380px, calc(100vw - 20px)); max-height:calc(100dvh - 150px); overflow:auto; z-index:8; background:var(--glass); border:1px solid var(--line); border-radius:18px; padding:16px; backdrop-filter:blur(10px); }
.sportcard[hidden] { display:none; }
.sportcard h3 { margin:2px 0; font-size:20px; } .sportcard .soft { color:var(--soft); font-size:14px; margin:4px 0 10px; }
.sportcard .x { position:absolute; right:10px; top:8px; width:32px; height:32px; border-radius:10px; border:1px solid var(--line); background:transparent; color:var(--text); font-size:20px; cursor:pointer; }
.sportcard .kit { display:flex; justify-content:space-between; gap:10px; align-items:center; padding:10px 12px; border:1px solid var(--line); border-radius:12px; margin-top:8px; }
.sportcard .kit.on { border-color:var(--gold); } .sportcard .kit b { display:block; } .sportcard .kit small { color:var(--soft); font-size:12.5px; }
.sportcard .tagk { font-size:12px; font-weight:800; color:var(--gold2); }
.sportpads { position:fixed; left:0; right:0; bottom:calc(18px + env(safe-area-inset-bottom)); z-index:8; display:flex; justify-content:space-between; padding:0 14px; pointer-events:none; }
.sportpads[hidden] { display:none; }
.sportpads button { pointer-events:auto; width:42vw; max-width:210px; height:96px; border-radius:22px; border:2px solid var(--gold); background:rgba(14,17,22,.6); color:#fff; font:inherit; font-weight:800; font-size:20px; touch-action:none; }
.sportpads button:active { background:var(--gold); color:#16120A; }
.kickb { left:auto; right:18px; bottom:calc(96px + env(safe-area-inset-bottom)); }
.kickb[hidden] { display:none; }
@media (max-width:640px) { .sporthud { top:104px; bottom:auto; width:calc(100vw - 20px); } .bizb span { display:none; } .bizb { padding:11px; border-radius:50%; top:60px; } .bizchip { top:58px; width:calc(100vw - 20px); } }

/* gifts, chat extras and walls (wall.js) */
.wallchip { display:grid; gap:8px; } .wallchip .row { display:flex; gap:14px; align-items:center; flex-wrap:wrap; justify-content:space-between; }
.wallchip .snds { justify-content:flex-start; gap:6px; } .wallchip .snd { font:inherit; font-size:13px; font-weight:700; color:var(--text); background:rgba(255,255,255,.07); border:1px solid var(--line); border-radius:999px; padding:6px 11px; cursor:pointer; }
.wallchip .snd.on { background:var(--gold); color:#16120A; border-color:var(--gold); }
.gifttray { z-index:40; } .gifttray .gifts { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.gft { font:inherit; color:var(--text); background:rgba(255,255,255,.05); border:1px solid var(--line); border-radius:14px; padding:10px 4px 8px; cursor:pointer; display:grid; justify-items:center; gap:2px; }
.gft:hover { border-color:var(--gold); } .gft.dim { opacity:.55; } .gft .ic { font-size:30px; line-height:1.15; height:36px; display:grid; place-items:center; } .gft b { font-size:13.5px; } .gft small { color:var(--gold2); font-size:12px; font-weight:700; }
.gem { display:inline-block; width:.9em; height:.9em; border-radius:50%; vertical-align:-.1em; box-shadow:inset 0 -2px 3px rgba(0,0,0,.3), inset 0 2px 3px rgba(255,255,255,.5); }
.gem.coin { background:radial-gradient(circle at 35% 30%, #FFE9A0, #D99A1F 70%); } .gem.silver { border-radius:3px; width:1.15em; height:.62em; background:linear-gradient(160deg, #F4F6F8, #9AA3AD); } .gem.gold { border-radius:3px; width:1.15em; height:.62em; background:linear-gradient(160deg, #FFE9A0, #C8891A); }
.chbar { display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; } .chbar .rec { background:#DC2626; color:#fff; border-color:#DC2626; }
.msg img { max-width:220px; max-height:240px; border-radius:8px; cursor:zoom-in; display:block; } .msg audio { width:230px; max-width:100%; height:38px; }
.msg.gift { background:rgba(227,179,65,.22); border:1px solid var(--gold); } .giftmsg { display:flex; align-items:center; gap:8px; font-weight:800; } .giftmsg .ic { font-size:28px; }
.wallzoom { position:fixed; inset:0; z-index:70; background:rgba(4,6,10,.92); display:grid; place-items:center; align-content:center; gap:10px; padding:14px; cursor:zoom-out; }
.wallzoom[hidden] { display:none; } .wallzoom img { max-width:100%; max-height:calc(100dvh - 90px); border-radius:6px; box-shadow:0 20px 60px rgba(0,0,0,.6); } .wallzoom p { color:#fff; margin:0; font-size:15px; text-align:center; }
.wallzoom .x { position:fixed; right:14px; top:14px; width:40px; height:40px; border-radius:12px; border:1px solid rgba(255,255,255,.4); background:transparent; color:#fff; font-size:24px; cursor:pointer; }
@media (max-width:640px) { .wallchip .row > div:first-child small { display:none; } .gifttray { left:10px; right:10px; width:auto; top:auto; bottom:calc(10px + env(safe-area-inset-bottom)); max-height:70dvh; } }

/* the abandoned mansion (haunt.js) and the music billboards (tube.js) */
.hauntact { position:fixed; left:50%; bottom:calc(150px + env(safe-area-inset-bottom)); transform:translateX(-50%); z-index:8; font:inherit; font-weight:800; font-size:16px; color:#16120A; border:0; border-radius:16px; padding:14px 22px; cursor:pointer; box-shadow:0 8px 24px rgba(0,0,0,.5); background:linear-gradient(90deg, #fff 0 var(--p, 0%), var(--gold) var(--p, 0%) 100%); max-width:calc(100vw - 30px); }
.hauntact[hidden] { display:none; }
.hauntfx { position:fixed; inset:0; z-index:50; pointer-events:none; opacity:0; } .hauntfx[hidden] { display:none; } .hauntfx.go { animation:hauntfx 1.4s ease-out; }
@keyframes hauntfx { 0% { opacity:.85; } 100% { opacity:0; } }
body.inhaunt #tubeP, body.inhaunt #tubeChip { display:none; }
#tubeP { position:fixed; left:0; top:0; width:640px; height:360px; transform-origin:0 0; z-index:1; pointer-events:none; background:#000; } #tubeP[hidden] { display:none; }
#tubeP iframe { width:100%; height:100%; border:0; display:block; pointer-events:none; }
#tubeChip { position:fixed; left:50%; bottom:calc(84px + env(safe-area-inset-bottom)); transform:translateX(-50%); z-index:6; display:flex; gap:8px; } #tubeChip[hidden] { display:none; }
#tubeChip button { font:inherit; font-weight:800; font-size:14px; color:#fff; background:rgba(14,17,22,.78); border:1px solid var(--gold); border-radius:999px; padding:9px 16px; cursor:pointer; backdrop-filter:blur(8px); }

/* the horses, any taxi, the buses (arrive.js, transit.js) */
.hauntact.hail { background:var(--gold); } #busChip button[disabled] { opacity:.55; cursor:default; }
