[hidden] { display: none !important; }
body { margin: 0; }
img { max-width: 100%; }
.scroll { padding-top: calc(22px + env(safe-area-inset-top, 0px)) !important; }
.hud { padding-top: calc(16px + env(safe-area-inset-top, 0px)) !important; }

/* auth */
.auth { justify-content: flex-start; padding-top: calc(48px + env(safe-area-inset-top, 0px)); overflow-y: auto; gap: 14px; }
.auth-seg { width: min(100%, 340px); }
.auth-form { width: min(100%, 340px); display: flex; flex-direction: column; gap: 10px; text-align: left; }
.auth .btn { width: 100%; }
.fld { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.fld span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.fld input, .inp { min-height: 48px; border: none; border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; padding: 0 14px; width: 100%; box-sizing: border-box; }
.fld input:focus, .inp:focus { outline: 3px solid var(--lav); outline-offset: 1px; }
.inp { flex: 1; min-width: 0; background: var(--surface-2); }
.form-err { margin: 0; color: #FF8FA0; font-size: 13.5px; font-weight: 700; }
.or { width: min(100%, 340px); display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 12.5px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.12); }
.oauth { width: min(100%, 340px); display: flex; flex-direction: column; gap: 8px; }
.oauth-btn { background: #fff; color: #1F1F1F; text-decoration: none; gap: 10px; font-size: 15.5px; }
.oauth-btn.apple { background: #000; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.oauth-btn.off { opacity: .45; }
.fine { max-width: 32ch; font-size: 12px; }
.invite-banner { margin: 0; padding: 10px 14px; border-radius: 14px; background: rgba(124,242,200,.14); color: var(--mint); font-size: 13.5px; font-weight: 700; max-width: 340px; }
.pad { padding: 14px; }

/* looks picker */
.looks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.look { aspect-ratio: 1; border: none; padding: 0; border-radius: 14px; background: var(--surface-2); overflow: hidden; cursor: pointer; position: relative; }
.look img { position: absolute; width: 175%; max-width: none; left: -37%; top: -8%; }
.look[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--night), 0 0 0 5px var(--mint); }
.stage-box { border-radius: var(--r-lg); background: radial-gradient(90% 80% at 50% 30%, #4A3A9A 0%, var(--surface) 75%); overflow: hidden; flex: none; position: relative; }
.stage-box img { display: block; width: 100%; aspect-ratio: 528 / 464; }
.head-btn, .look-head { width: 48px; height: 48px; border: none; padding: 0; border-radius: 16px; background: var(--surface-2); overflow: hidden; position: relative; flex: none; cursor: pointer; }
.head-btn img, .look-head img, .chip-look { position: absolute; width: 175%; max-width: none; left: -37%; top: -8%; }
.chip .chip-look { position: static; width: 40px; height: 40px; border-radius: 12px; object-fit: cover; object-position: 50% 12%; flex: none; }

/* home */
.crew-switch { border: none; background: none; padding: 0; color: var(--ink); font-size: 24px; font-weight: 800; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; text-align: left; max-width: 100%; }
.crew-switch span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkbtn { border: none; background: none; cursor: pointer; font-weight: 700; padding: 6px; }
.linkbtn.bad { color: #FF8FA0; }
.net-strip { border: none; background: rgba(35,28,70,.7); color: var(--ink); border-radius: 99px; padding: 7px 12px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; text-align: left; cursor: pointer; }
.net-strip i { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); flex: none; }
.net-strip.warn i { background: #FFD66B; }
.net-strip.bad i { background: #FF8FA0; }
.share-card { padding: 14px; }
.share-card.on { box-shadow: inset 0 0 0 2px var(--mint); }
.today-t { font-size: 15px; font-weight: 800; display: block; }
.switch { width: 52px; height: 32px; border: none; border-radius: 99px; background: var(--surface-2); position: relative; cursor: pointer; flex: none; padding: 0; }
.switch i { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink-2); transition: transform .2s, background .2s; }
.switch[aria-checked="true"] { background: var(--mint); }
.switch[aria-checked="true"] i { transform: translateX(20px); background: var(--mint-ink); }
.map-card { padding: 10px; }
.mini-map { width: 100%; height: auto; display: block; }
.member { width: 100%; border: none; background: transparent; padding: 7px 0; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; color: var(--ink); }
.member .who { flex: 1; min-width: 0; }
.member p { margin: 0; }
.member .name { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.member .side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.member.off .look-head { opacity: .5; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.role { padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); font-size: 11px; font-weight: 800; }
.batt-i { font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.batt-i.low { color: #FF8FA0; }
.feed { display: flex; flex-direction: column; gap: 6px; }
.fi { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: var(--surface); font-size: 14px; }
.fi p { margin: 0; }
.fi .grow { flex: 1; min-width: 0; }
.mini-btn { min-height: 36px; padding: 0 14px; border: none; border-radius: 12px; background: var(--surface-2); color: var(--ink); font-size: 13.5px; font-weight: 800; cursor: pointer; font-family: inherit; }
.mini-btn.mint { background: var(--mint); color: var(--mint-ink); }
.sheet { max-height: 92%; overflow-y: auto; overscroll-behavior: contain; }
.sheet.dragging { transition: none; }
.grab { margin: -10px auto 0; padding: 12px 40px; background-clip: content-box; box-sizing: content-box; }
.sheet-list { display: flex; flex-direction: column; gap: 8px; }
.li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--surface-2); border: none; width: 100%; text-align: left; color: var(--ink); font-family: inherit; cursor: pointer; }
.li .grow { flex: 1; min-width: 0; }
.li p { margin: 0; }
.ok { color: var(--mint); font-weight: 800; }
.wait { color: var(--ink-2); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 40px; padding: 0 14px; border: none; border-radius: 14px; background: var(--surface); color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.chips button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--night), 0 0 0 5px var(--mint); }
.cols { display: flex; flex-wrap: wrap; gap: 9px; }
.col { width: 36px; height: 36px; border: none; border-radius: 12px; cursor: pointer; box-shadow: inset 0 -4px 0 rgba(0,0,0,.2); }
.col[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--night), 0 0 0 5px var(--ink); }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; min-height: 40px; border: none; border-radius: var(--r-sm); background: var(--surface); color: var(--ink-2); font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--night); font-weight: 800; }
.set-rows { padding: 4px 14px; }
.set-rows > div { min-height: 56px; border-bottom: 1px solid rgba(255,255,255,.06); gap: 12px; }
.set-rows > div:last-child { border-bottom: none; }
.av-label { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.crew-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.crew-actions button { min-height: 64px; border: none; border-radius: 18px; background: var(--surface); padding: 8px 10px; display: flex; align-items: center; gap: 8px; font-family: inherit; font-size: 14px; font-weight: 800; text-align: left; cursor: pointer; color: var(--ink); }
.crew-actions img { width: 40px; height: 40px; flex: none; }
.meet-chosen { padding: 12px; cursor: pointer; }
.invite { display: flex; flex-direction: column; gap: 10px; }
.qr-box { align-self: center; background: #fff; border-radius: 18px; padding: 10px; line-height: 0; }
.qr-box img, .qr-box svg { width: 180px; height: 180px; }

/* compass: real arrow */
.rt-scene { overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.rt-stage { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; height: 100%; }
.rt-stage img { position: absolute; }
.scene .rt-stage img.rt-arm, .scene .rt-stage img.rt-arrow { right: auto; bottom: auto; height: auto; object-fit: fill; }
.scene .rt-stage img.rt-arm { left: 47%; top: 63.07%; width: 46.92%; }
.scene .rt-stage img.rt-arrow { left: 60.75%; top: 68.45%; width: 19.08%; transform-origin: 51.1% 51.46%; transition: transform .25s linear; will-change: transform; }
/* 360° panorama (logical 600×1320 stage, scaled in JS) */
.rt-scene { background: #0C0920; touch-action: none; }
.pano { position: absolute; left: 0; top: 0; width: 600px; height: 1320px; transform-origin: 0 0; pointer-events: none; }
.pano-pitch { position: absolute; left: 0; top: 0; width: 600px; height: 1500px; will-change: transform; }
.pano .pl { position: absolute; left: 0; width: 600px; }
.scene .pano img { position: absolute; inset: auto; left: 0; top: 0; width: 800px; max-width: none; height: 100%; object-fit: fill; will-change: transform; }
.pl-far { background: linear-gradient(#0C0920, #2A1F5E 41%, #17122F 42%); }
.pl-mid { animation: pBob 1.1s ease-in-out infinite alternate; }
.pl-nearA { animation: pBob .47s ease-in-out infinite alternate; --b: -5px; }
.pl-nearB { animation: pBob .47s ease-in-out -.47s infinite alternate; --b: -8px; }
@keyframes pBob { from { translate: 0 0; } to { translate: 0 var(--b, -2px); } }
.pslot, .pover { position: absolute; left: 0; top: 0; width: 600px; height: 1500px; }
.pf { position: absolute; left: 0; top: 0; width: 1062px; height: 1920px; transform-origin: 0 0; will-change: transform; }
.pf-shadow { position: absolute; left: -190px; top: -46px; width: 380px; height: 92px; border-radius: 50%; background: radial-gradient(closest-side, rgba(4,2,14,.7), rgba(4,2,14,0)); display: none; }
.pf.close .pf-shadow { display: block; }
#s-compass .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(28,22,58,.93); }
.pf[hidden], .pf-glow[hidden], .pf-tag[hidden], .pf-cue[hidden], .tsp[hidden] { display: none; }
.tsp { position: absolute; inset: 0; isolation: isolate; animation: pfBounce .47s ease-in-out infinite alternate; }
.scene .pano .tsp img { width: 100%; height: 100%; }
.tsp i { position: absolute; inset: 0; background: var(--c, #7CF2C8); mix-blend-mode: multiply; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
@keyframes pfBounce { from { translate: 0 0; } to { translate: 0 -16px; } }
.pf.meet .tsp { animation: none; }
.pf-glow { position: absolute; left: 0; top: 0; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 85%, white) 0%, color-mix(in srgb, var(--c) 45%, transparent) 30%, transparent 70%); mix-blend-mode: screen; animation: pfGlow .9s ease-in-out infinite alternate; }
@keyframes pfGlow { from { opacity: .65; scale: .9; } to { opacity: 1; scale: 1.08; } }
.pf-tag { position: absolute; left: 0; top: 0; padding: 4px 11px; border-radius: 99px; background: rgba(21,17,43,.78); box-shadow: inset 0 0 0 2px var(--c); color: #fff; font-size: 17px; font-weight: 800; white-space: nowrap; }
.pf-cue { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 18px; background: rgba(21,17,43,.82); box-shadow: inset 0 0 0 2px var(--c); color: #fff; animation: cueNudge .8s ease-in-out infinite alternate; }
.pf-cue.r { align-items: flex-end; text-align: right; --n: -8px; }
.pf-cue.l { --n: 8px; }
.pf-cue b { font-size: 20px; font-weight: 900; }
.pf-cue span { font-size: 15px; font-weight: 700; opacity: .85; }
@keyframes cueNudge { from { translate: 0 0; } to { translate: calc(-1 * var(--n)) 0; } }
.rt-scene .drag-hint { position: absolute; left: 50%; bottom: 31%; transform: translateX(-50%); padding: 6px 12px; border-radius: 99px; background: rgba(21,17,43,.78); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.rt-scene.no-heading .rt-arrow { opacity: .35; }
.prec { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.08); font-size: 11.5px; font-weight: 700; color: var(--ink); }
.prec i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: none; }
.prec.mid i { background: #FFD66B; }
.prec.low i { background: #FF8FA0; }
.chip { border: none; color: var(--ink); cursor: pointer; font-family: inherit; }

/* incoming alerts */
.alert-full { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px 24px; text-align: center; background: radial-gradient(80% 60% at 50% 40%, #7CF2C8 0%, #2E8F75 55%, #15112B 100%); color: #0B2A20; animation: yiPulse 1s ease-in-out infinite alternate; }
.alert-full.sos { background: radial-gradient(80% 60% at 50% 40%, #FF5C6C 0%, #8E1F31 60%, #15112B 100%); color: #fff; }
.alert-full .btn { width: 100%; }
@keyframes yiPulse { from { filter: brightness(1); } to { filter: brightness(1.18); } }
.yi-hand { width: 140px; height: 140px; animation: yiWave .5s ease-in-out infinite alternate; transform-origin: 50% 90%; }
@keyframes yiWave { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
.yi-t { margin: 0; font-size: 40px; font-weight: 900; letter-spacing: -0.02em; }
.yi-s { margin: 0; font-size: 17px; font-weight: 700; max-width: 28ch; }
@media (prefers-reduced-motion: reduce) { .alert-full, .yi-hand, .rt-arrow, .pano .pl, .tsp, .pf-glow, .pf-cue { animation: none; transition: none; } }

/* ---- quality pass ---- */
.look img, .head-btn img, .look-head img { position: static; width: 100%; height: 100%; left: auto; top: auto; display: block; }
.chip .chip-look { object-position: 50% 50%; }
.screen.enter { animation: scrIn .22s cubic-bezier(.2,.8,.2,1); }
@keyframes scrIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.btn, .mini-btn, .chips button, .crew-actions button, .li, .member { transition: transform .12s ease, opacity .15s ease, box-shadow .12s ease; }
.mini-btn:active, .chips button:active, .crew-actions button:active, .li:active, .member:active { transform: scale(.97); }
.btn[aria-busy="true"], .mini-btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.btn[aria-busy="true"]::after, .mini-btn[aria-busy="true"]::after { content: ""; width: 16px; height: 16px; margin-left: 8px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--mint); animation: spin .8s linear infinite; }
.skel { height: 58px; border-radius: 16px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; margin-bottom: 8px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.calib { align-self: center; padding: 6px 12px; border-radius: 99px; background: rgba(255,214,107,.18); color: #FFD66B; font-size: 12.5px; font-weight: 800; }
.pw-meter { height: 5px; border-radius: 99px; background: var(--surface); overflow: hidden; margin-top: -2px; }
.pw-meter i { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .2s, background .2s; }
.pw-hint { margin: 0; font-size: 12px; color: var(--ink-2); }
.stage-box img { transition: opacity .2s; }
@media (prefers-reduced-motion: reduce) { .screen.enter, .skel, .spinner { animation: none; } }

/* compass scenario picker (Impostazioni) */
.scene-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.scene-opt { position: relative; border: none; padding: 0; border-radius: 16px; overflow: hidden; background: var(--surface); cursor: pointer; aspect-ratio: 3 / 2; color: #fff; font-family: inherit; }
.scene-opt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-opt span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; background: linear-gradient(transparent, rgba(10,8,24,.85)); font-size: 14px; font-weight: 800; text-align: left; }
.scene-opt[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--mint); }
.scene-opt[aria-pressed="true"] span::after { content: ' ✓'; color: var(--mint); }

/* dancing avatar: disco lights sweeping behind the 3D dance loop */
.stage-box::before { content: ''; position: absolute; inset: -30%; opacity: 0; pointer-events: none; transition: opacity .4s;
  background: conic-gradient(from 0deg, transparent 0 8%, rgba(124,242,200,.35) 10% 14%, transparent 16% 40%, rgba(184,166,255,.4) 42% 46%, transparent 48% 70%, rgba(255,127,181,.35) 72% 76%, transparent 78%); }
.stage-box.dancing::before { opacity: 1; animation: discoSpin 3.2s linear infinite; }
.stage-box img { position: relative; }
.stage-box[aria-busy="true"]::after { content: ''; position: absolute; left: 14px; top: 14px; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: var(--mint); animation: spin .8s linear infinite; }
@keyframes discoSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .stage-box.dancing::before { animation: none; } }

/* preview tools: top-right icon buttons inside the avatar card */
.stage-tools { position: absolute; top: 10px; right: 10px; display: flex; gap: 8px; z-index: 2; }
.stage-btn { width: 44px; height: 44px; border: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(21,17,43,.62); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14); transition: transform .15s, background .2s; }
.stage-btn:active { transform: scale(.92); }
.stage-btn[aria-pressed="true"] { background: var(--mint); color: #15112B; box-shadow: 0 0 18px rgba(124,242,200,.55); }
.stage-btn[aria-pressed="true"] svg { animation: ballSwing 1.1s ease-in-out infinite alternate; transform-origin: 50% 6%; }
@keyframes ballSwing { from { rotate: -10deg; } to { rotate: 10deg; } }
#surprise.spin svg { animation: discoSpin .5s ease-out; }
@media (prefers-reduced-motion: reduce) { .stage-btn svg { animation: none !important; } }

/* crew invite link (Avatar → Invita) */
.invite-link { padding: 12px 14px; border-radius: 14px; background: var(--bg, #15112B); box-shadow: inset 0 0 0 1.5px rgba(124,242,200,.35); font-weight: 800; font-size: 15px; word-break: break-all; color: var(--mint); user-select: all; }

/* closed sheets never peek out: no scrolling of the app frame, and hidden once slid away */
.app { overflow: clip; }
.screen { overflow: clip; }
.sheet:not(.on) { visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.sheet.on { visibility: visible; transition: transform .25s ease, visibility 0s; }
.scroll { overscroll-behavior: contain; }
.sheet.on.dragging { transition: none; }
@media (prefers-reduced-motion: reduce) { .sheet.on, .sheet:not(.on) { transition: visibility 0s; } }
/* 3D settings gear, same family as the menu icons */
.icon-3d { width: 56px; height: 56px; border: none; background: transparent; padding: 0; display: grid; place-items: center; cursor: pointer; flex: none; border-radius: 16px; }
.icon-3d img { width: 44px; height: 44px; transition: transform .2s; }
.icon-3d:active img { transform: scale(.92) rotate(-20deg); }
/* live 3D avatar on top of its poster picture (which keeps the card's size) */
#tu-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.stage-box.live #tu-preview { visibility: hidden; }
.stage-tools.left { left: 10px; right: auto; }
/* photo -> avatar */
.cam-box { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #0E0B22; aspect-ratio: 3 / 4; margin: 0 auto; width: min(100%, calc(58vh * .75)); }
.cam-box video, .cam-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-box.mirror video, .cam-box.mirror img { transform: scaleX(-1); }
.cam-msg { position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: 10px 12px; border-radius: 14px; background: rgba(21,17,43,.85); color: #fff; font-weight: 800; font-size: 15px; text-align: center; }
.cam-guide { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cam-box.busy .cam-guide g { stroke: var(--lav); animation: camPulse .9s ease-in-out infinite alternate; }
@keyframes camPulse { to { opacity: .35; } }
/* radar of the crew (Home) */
.radar { --h: 0deg; position: relative; width: min(100%, 340px); aspect-ratio: 1; margin: 2px auto 0; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle, #2A2163 0%, #1A1438 62%, #140F2E 100%); box-shadow: inset 0 0 0 2px #2E2560, 0 10px 30px rgba(0,0,0,.25); }
.radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(124,242,200,.28), rgba(124,242,200,0) 70deg, transparent 360deg); animation: radarSweep 4s linear infinite; }
@keyframes radarSweep { to { transform: rotate(-360deg); } }
.radar-rot { position: absolute; inset: 0; transform: rotate(var(--h)); transition: transform .25s linear; }
.radar-ring { position: absolute; left: 50%; top: 50%; width: calc(var(--s) * .9); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px dashed rgba(180,140,255,.35); }
.radar-ring b { position: absolute; left: 50%; top: 100%; transform: translate(-50%, -50%) rotate(calc(-1 * var(--h))); font-size: 10.5px; font-weight: 800; color: #BDB4E0; background: #1A1438; padding: 0 4px; border-radius: 6px; white-space: nowrap; }
.radar-n { position: absolute; left: 50%; top: 3.5%; transform: translateX(-50%) rotate(calc(-1 * var(--h))); font-size: 12px; font-weight: 900; color: var(--mint); }
.radar-me { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); border-radius: 50%; overflow: hidden; background: #3A2E78; box-shadow: 0 0 0 3px #F5F2FF, 0 0 18px rgba(245,242,255,.4); }
.radar-me img, .blip-head img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 22%; transform: scale(1.5); transform-origin: 38% 22%; display: block; border-radius: 50%; }
.blip { position: absolute; transform: translate(-50%, -50%); border: none; background: none; padding: 0; cursor: pointer; color: #fff; }
.blip-in { display: flex; flex-direction: column; align-items: center; gap: 1px; transform: rotate(calc(-1 * var(--h))); transition: transform .25s linear; }
.blip-head { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #3A2E78; box-shadow: 0 0 0 3px var(--c), 0 0 16px color-mix(in srgb, var(--c) 60%, transparent); animation: blipPulse 1.8s ease-in-out infinite alternate; }
.blip b { font-size: 12px; font-weight: 900; line-height: 1.1; text-shadow: 0 1px 3px #000; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blip i { font-style: normal; font-size: 10.5px; font-weight: 800; color: #DCD6F5; text-shadow: 0 1px 3px #000; white-space: nowrap; }
.blip.stale .blip-head { animation: none; filter: grayscale(.8); opacity: .7; }
.blip.meet img { width: 34px; height: 34px; }
@keyframes blipPulse { to { box-shadow: 0 0 0 3px var(--c), 0 0 26px color-mix(in srgb, var(--c) 85%, transparent); } }
.radar-empty { position: absolute; left: 12%; right: 12%; top: 62%; margin: 0; text-align: center; font-size: 13px; font-weight: 800; color: #BDB4E0; }
@media (prefers-reduced-motion: reduce) { .radar-sweep, .blip-head { animation: none; } .radar-rot, .blip-in { transition: none; } }
/* faro, foto del punto */
.mini-act { flex: 1; min-height: 46px; font-size: 14px; background: var(--surface-2); gap: 8px; }
.mini-act svg { flex: none; }
.icon-only { flex: none; width: 52px; padding: 0; display: grid; place-items: center; }
.hud-extra { gap: 8px; flex-wrap: wrap; }
.beacon-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; background: rgba(21,17,43,.82); box-shadow: inset 0 0 0 2px var(--c, var(--mint)); color: #fff; font-size: 14px; font-weight: 800; }
.beacon-tag i { width: 14px; height: 14px; border-radius: 50%; background: var(--c, var(--mint)); opacity: .2; transition: opacity .06s; box-shadow: 0 0 10px var(--c, var(--mint)); }
.beacon-tag i.on { opacity: 1; }
.beacon-tag b { letter-spacing: 2px; }
.spot-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: none; border-radius: 99px; color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; }
.beacon { position: fixed; inset: 0; z-index: 90; background: #000; display: grid; place-items: end center; padding: 24px 20px calc(28px + env(safe-area-inset-bottom, 0px)); }
.beacon.on { background: var(--c, #7CF2C8); }
.beacon-in { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 10px; text-align: center; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.beacon-t { margin: 0; font-size: 30px; font-weight: 900; }
.beacon-p { margin: 0; font-size: 34px; font-weight: 900; letter-spacing: 6px; }
.beacon-s { margin: 0 0 6px; font-size: 14px; font-weight: 700; opacity: .9; }
.spot-photo { border-radius: var(--r-lg); overflow: hidden; background: #0E0B22; min-height: 200px; display: grid; place-items: center; }
.spot-photo img { display: block; width: 100%; max-height: 62vh; object-fit: contain; }
.feed .fi[data-spot] { cursor: pointer; }
.fi .spot-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.blip-cam { position: absolute; right: -6px; top: -4px; width: 20px; height: 20px; border-radius: 50%; background: #F5F2FF; color: #15112B; display: grid; place-items: center; }
.blip-in { position: relative; }
.blip.beacon .blip-head { animation: blipBeacon .5s steps(2) infinite; }
@keyframes blipBeacon { 50% { box-shadow: 0 0 0 5px var(--c), 0 0 34px var(--c); } }
.home-card, .memory-card { box-shadow: inset 0 0 0 2px rgba(124,242,200,.35); }
.memory-card { background: linear-gradient(135deg, #3E2C80, #231C46); }
/* events */
.tab { width: min(76px, 20vw); }
.ev-search { flex: none; margin: 12px 0 10px; }
.ev-scope { margin-bottom: 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.ev-scope::-webkit-scrollbar { display: none; }
.ev-scope button { flex: none; }
.chips button[aria-pressed="true"] { background: var(--mint); color: var(--mint-ink); }
.ev-list { display: flex; flex-direction: column; gap: 10px; }
.ev-card { display: flex; gap: 12px; align-items: stretch; padding: 10px; border: none; border-radius: 20px; background: var(--surface); color: var(--ink); text-align: left; font-family: inherit; cursor: pointer; width: 100%; }
.ev-thumb { width: 86px; min-height: 86px; flex: none; border-radius: 14px; overflow: hidden; position: relative; background: linear-gradient(135deg, #6B55C8, #3E2C80); display: grid; place-items: center; }
.ev-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-thumb b { font-size: 30px; font-weight: 900; line-height: 1; text-align: center; }
.ev-thumb b small { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; opacity: .85; }
.ev-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ev-date { font-size: 12.5px; font-weight: 900; color: var(--mint); text-transform: capitalize; }
.ev-title { font-size: 16px; font-weight: 900; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-place { font-size: 13px; color: var(--ink-2); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-who { display: flex; align-items: center; gap: 6px; margin-top: auto; font-size: 12.5px; font-weight: 800; color: var(--ink-2); }
.ev-heads { display: flex; }
.ev-heads img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; object-position: 38% 22%; background: #3A2E78; box-shadow: 0 0 0 2px var(--surface); margin-right: -6px; }
.ev-me { margin-left: auto; padding: 2px 8px; border-radius: 99px; background: rgba(124,242,200,.16); color: var(--mint); font-size: 11.5px; font-weight: 900; }
.ev-me.maybe { background: rgba(180,140,255,.18); color: var(--lav); }
.ev-empty { text-align: center; padding: 30px 10px; color: var(--ink-2); font-weight: 700; }
.ev-hero { border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(135deg, #6B55C8, #3E2C80); aspect-ratio: 16 / 9; display: grid; place-items: center; position: relative; }
.ev-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-hero.small { aspect-ratio: 16 / 7; margin-bottom: 10px; }
.ev-hero.small .linkbtn { position: relative; z-index: 1; color: #fff; background: rgba(21,17,43,.6); padding: 8px 12px; border-radius: 12px; }
.ev-when { margin: 4px 0 0; font-weight: 900; color: var(--mint); text-transform: capitalize; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ev-tags span { padding: 4px 10px; border-radius: 99px; background: var(--surface-2); font-size: 12.5px; font-weight: 800; }
.ev-lineup { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-lineup span { padding: 6px 10px; border-radius: 12px; background: var(--surface); font-size: 13px; font-weight: 800; }
#ev-form { display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.check input { width: 22px; height: 22px; accent-color: var(--mint); }
.cam-msg.static { position: static; margin-top: 10px; }
.fld { min-width: 0; }
.fld input { min-width: 0; }
input[type="datetime-local"] { font-size: 15px; padding: 0 10px; }
/* Vibes */
.vib-ico { display: inline-flex; flex: none; height: 16px; vertical-align: -3px; }
.vib-ico img { height: 100%; width: auto; display: block; }
.vib-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px 0 8px; border: none; border-radius: 99px; background: var(--surface); color: var(--ink); font-family: inherit; font-size: 15px; font-weight: 900; cursor: pointer; margin-right: 8px; }
.vib-pill .vib-ico { height: 22px; }
.vib-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.vib-head .vib-ico { height: 46px; }
#vib-tabs { margin-bottom: 4px; }
.vib-row { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface); margin-bottom: 8px; }
.vib-row b { font-weight: 900; }
.vib-row.done { opacity: .6; }
.vib-rew { flex: none; font-weight: 900; display: inline-flex; align-items: center; gap: 4px; color: var(--mint); }
.vib-bar { display: block; height: 6px; border-radius: 6px; background: var(--surface-2); margin: 6px 0 2px; overflow: hidden; }
.vib-bar i { display: block; height: 100%; background: var(--mint); border-radius: 6px; }
.vib-tx { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; padding: 6px 2px; border-bottom: 1px solid rgba(255,255,255,.06); }
.vib-tx b { color: var(--mint); } .vib-tx b.neg { color: var(--peach, #FF9E7A); }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.shop-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 8px 10px; border-radius: 18px; background: var(--surface); text-align: center; }
.shop-card.focus { box-shadow: inset 0 0 0 2px var(--mint); }
.shop-card > img, .shop-card .opt-ph { width: 100%; aspect-ratio: 264 / 232; border-radius: 12px; background: radial-gradient(90% 80% at 50% 30%, #4A3A9A 0%, var(--surface-2) 80%); object-fit: cover; display: block; }
.shop-card .vib-ico img, .plus-card .vib-ico img { width: auto; height: 100%; aspect-ratio: auto; background: none; border-radius: 0; }
.shop-card b { font-size: 14px; font-weight: 900; }
.shop-act { min-height: 40px; width: 100%; font-size: 15px; gap: 6px; }
.shop-own { font-size: 13px; font-weight: 900; color: var(--mint); min-height: 40px; display: grid; place-items: center; }
.opt.shop { position: relative; }
.opt.shop img { object-fit: cover; }
.opt.shop .opt-ph { display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; background: var(--surface-2); }
.opt.locked img { filter: saturate(.7) brightness(.8); }
.opt .price { position: absolute; top: 6px; right: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px 2px 3px; border-radius: 99px; background: rgba(21,17,43,.85); font-size: 11.5px; font-weight: 900; color: #fff; }
.opt .price .vib-ico { height: 12px; }
.beacon-p { display: flex; justify-content: center; align-items: center; gap: 14px; min-height: 40px; }
.beacon-p i { display: block; background: #fff; opacity: .45; transition: opacity .05s, transform .05s; }
.beacon-p i.dot { width: 22px; height: 22px; border-radius: 50%; }
.beacon-p i.dash { width: 58px; height: 18px; border-radius: 6px; }
.beacon-p i.lit { opacity: 1; transform: scale(1.15); }
.beacon-cap { margin: 0; font-size: 16px; font-weight: 800; }
/* scrolling chip row: room for the outline/focus ring so it isn't cut */
.ev-scope { padding: 4px; margin: 0 -4px 8px; }
.ev-scope button:focus-visible { outline-offset: 2px; }
/* the filter row must keep its height above the list */
.ev-scope { flex-shrink: 0; min-height: 52px; align-items: center; }
.ev-search { flex-shrink: 0; }
.btn .vib-ico img, .opt .vib-ico img { width: auto; height: 100%; margin: 0; }
.shop-act .vib-ico { height: 18px; }
/* Vibes counter: the number on a light pill, in dark violet */
.vib-pill { padding: 0 5px 0 8px; gap: 7px; }
.vib-pill b { background: #F5F2FF; color: #2B2458; border-radius: 99px; padding: 4px 11px; font-weight: 900; line-height: 1.2; }
/* missions & achievements */
.vq-hero { display: flex; align-items: center; gap: 14px; padding: 14px; margin: 12px 0 6px; border-radius: 20px; background: linear-gradient(135deg, #3E2C80, #231C46); }
.vq-hero b { font-size: 17px; font-weight: 900; }
.vq-ring { --p: 0; flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--mint) calc(var(--p) * 1%), rgba(255,255,255,.12) 0); position: relative; }
.vq-ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #2B2160; }
.vq-ring b { position: relative; font-size: 15px; }
.vq-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.vq { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px 10px 10px; border: none; border-radius: 18px; background: var(--surface); color: var(--ink); font-family: inherit; text-align: left; cursor: pointer; }
.vq:active:not(:disabled) { transform: scale(.985); }
.vq.done { opacity: .62; cursor: default; }
.vq-ico { flex: none; width: 52px; height: 52px; border-radius: 16px; background: radial-gradient(80% 80% at 50% 30%, #4A3A9A, #2B2160); display: grid; place-items: center; position: relative; }
.vq-ico img { width: 44px; height: 44px; object-fit: contain; }
.vq-ico em { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: #15112B; font-style: normal; font-weight: 900; font-size: 13px; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--surface); }
.vq-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vq-main b { font-size: 15px; font-weight: 900; line-height: 1.2; }
.vq-how { font-size: 12.5px; color: var(--ink-2); font-weight: 700; }
.vq-prog { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.vq-prog .vib-bar { flex: 1; margin: 0; }
.vq-steps { display: flex; gap: 4px; }
.vq-steps i { width: 16px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.14); }
.vq-steps i.on { background: var(--mint); }
.vq-count { font-size: 12px; font-weight: 900; color: var(--ink-2); }
.vq-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.vq-rew { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; background: #F5F2FF; color: #2B2458; font-size: 13px; font-weight: 900; }
.vq-rew .vib-ico { height: 13px; }
.vq-go { font-size: 12.5px; font-weight: 900; color: var(--mint); }
.vq-ok { font-size: 12.5px; font-weight: 900; color: var(--ink-2); }
.vq-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.vq-badge { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 16px; background: var(--surface); text-align: center; }
.vq-badge .vq-ico { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 2px var(--mint), 0 0 18px rgba(124,242,200,.35); }
.vq-badge b { font-size: 12.5px; font-weight: 900; line-height: 1.15; }
.vq-badge small { font-size: 11.5px; font-weight: 800; color: var(--mint); }
.vq-tx { margin-top: 14px; border-radius: 16px; background: var(--surface); padding: 4px 12px; }
.vq-tx summary { cursor: pointer; font-weight: 900; font-size: 14px; padding: 10px 0; }
.vib-tx small { display: block; font-size: 11.5px; color: var(--ink-2); font-weight: 700; }
/* home header: greeting + Vibes + me on the first line, the crew name gets the whole second line */
.home-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "hello vib me" "crew crew crew"; align-items: center; column-gap: 8px; row-gap: 2px; }
.home-head .home-hello { grid-area: hello; margin: 0; font-size: 15px; }
.home-head .vib-pill { grid-area: vib; margin-right: 0; }
.home-head .head-btn { grid-area: me; }
.home-head .home-crew { grid-area: crew; font-size: 28px; line-height: 1.15; }
.home-head .home-crew span { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* iPhone: the compass needs a tap to be allowed, so the button must stand out from the dark scene */
#s-compass #orient-btn { background: #FFD66B; color: #1B1438; box-shadow: 0 4px 0 #C99A2E, 0 8px 24px rgba(255,214,107,.35); gap: 8px; animation: orientPulse 1.4s ease-in-out infinite alternate; }
@keyframes orientPulse { to { box-shadow: 0 4px 0 #C99A2E, 0 8px 34px rgba(255,214,107,.6); } }
@media (prefers-reduced-motion: reduce) { #s-compass #orient-btn { animation: none; } }

/* ---------- shop: the whole price list ---------- */
.btn-lav { background: var(--lav); color: var(--lav-ink); box-shadow: 0 5px 0 #7A55C8; }
.btn small { display: block; font-size: 11.5px; font-weight: 700; opacity: .8; }
.shop-top { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.switch-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--surface); cursor: pointer; }
.switch-row > span { flex: 1; display: flex; flex-direction: column; }
.switch-row small { font-size: 12.5px; }
.test-note { margin: 0; padding: 8px 12px; border-radius: 12px; background: rgba(255,214,107,.12); color: #FFE6A3; font-size: 12.5px; font-weight: 700; }
.shop-sec { margin-top: 18px; }
.shop-sec h3 { margin: 0; font-size: 17px; font-weight: 900; }
.shop-sec > p { margin: 2px 0 0; }
.shop-card { position: relative; }
.shop-card small { font-size: 11.5px; line-height: 1.3; }
.shop-card.dim { opacity: .45; }
.shop-pic { display: block; width: 100%; aspect-ratio: 264 / 232; border-radius: 12px; overflow: hidden; background: radial-gradient(90% 80% at 50% 30%, #4A3A9A 0%, var(--surface-2) 80%); position: relative; }
.shop-pic > img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; background: none; aspect-ratio: auto; }
.shop-pic svg { width: 64%; height: 64%; position: absolute; left: 18%; top: 18%; }
.pic-arrow > img.arrow-sty, .pic-cover > img.cover-pic { object-fit: contain; padding: 10px; }
.pic-cover > img.cover-pic { object-fit: contain; padding: 6px 10px 0; object-position: 50% 0; }
.shop-price { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 900; white-space: nowrap; }
.shop-price .vib-ico { height: 15px; }
.shop-price .eur { color: var(--ink-2); font-weight: 800; }
.shop-price .or { color: var(--ink-2); font-weight: 600; font-size: 12px; }
.shop-reset { margin-top: 8px; width: 100%; min-height: 40px; background: var(--surface); font-size: 14px; }
.plus-card { margin-top: 14px; padding: 16px; border-radius: 22px; background: linear-gradient(140deg, #4B33A8 0%, #2B2160 55%, #231C46 100%); box-shadow: inset 0 0 0 1.5px rgba(180,140,255,.45); }
.plus-head { display: flex; align-items: center; gap: 12px; }
.plus-head img { width: 54px; height: 54px; object-fit: contain; }
.plus-head b { display: block; font-size: 24px; font-weight: 900; }
.plus-head span { color: #D8CCFF; font-size: 13.5px; font-weight: 700; }
.plus-card ul { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 7px; }
.plus-card li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.plus-card li img, .plus-card li .vib-ico { width: 26px; height: 26px; object-fit: contain; flex: none; }
.plus-card li .vib-ico img { width: auto; height: 100%; }
.plus-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plus-plans .btn { min-height: 54px; flex-direction: column; line-height: 1.15; font-size: 14px; }
.plus-plans .btn b { font-size: 18px; }
.pass-on { display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 99px; background: rgba(255,214,107,.16); color: #FFE08A; font-size: 12.5px; font-weight: 800; }
.pass-link { display: block; width: 100%; margin-top: 10px; padding: 8px; border: none; border-radius: 12px; background: rgba(255,214,107,.12); color: #FFE08A; font-family: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.pack-pic { position: absolute; inset: 0; display: grid; place-items: center; }
.pack-pic .vib-ico { height: 46%; }
.pack-pic .vib-ico img { height: 100%; width: auto; }
.pack-pic.n1 .vib-ico { height: 58%; } .pack-pic.n2 .vib-ico { height: 72%; filter: drop-shadow(0 0 12px rgba(124,242,200,.5)); }
.beacon-pic { position: absolute; inset: 22%; border-radius: 22px; background: var(--c); animation: bpBlink .8s steps(1) infinite; box-shadow: 0 0 24px var(--c); }
.beacon-pic[data-style="rainbow"] { animation: bpRainbow 2.4s steps(6) infinite; }
.beacon-pic[data-style="disco"] { animation: bpDisco .8s steps(1) infinite; }
.beacon-pic[data-style="soft"] { animation: bpSoft .8s ease-in-out infinite alternate; }
@keyframes bpBlink { 50% { background: #000; box-shadow: none; } }
@keyframes bpRainbow { 0% { background: #7CF2C8; } 16% { background: #B48CFF; } 33% { background: #FF9E7A; } 50% { background: #FF7FB5; } 66% { background: #5CC8FF; } 83% { background: #FFD66B; } }
@keyframes bpDisco { 50% { background: #F5F2FF; } }
@keyframes bpSoft { from { opacity: .15; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .beacon-pic { animation: none !important; } }
.merch { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 12px; border-radius: 18px; background: var(--surface); }
.merch img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; }
.merch p { margin: 2px 0 0; }
.merch .soon { flex: none; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 800; }
.free-band { display: flex; align-items: center; gap: 12px; margin: 18px 0 6px; padding: 12px 14px; border-radius: 18px; background: rgba(124,242,200,.1); box-shadow: inset 0 0 0 1.5px rgba(124,242,200,.5); }
.free-band img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.free-band b { color: var(--mint); font-size: 15px; }
.free-band p { margin: 2px 0 0; font-size: 13px; }
.opt .price.plus-tag { padding: 2px 8px; background: linear-gradient(135deg, #6B48D8, #B48CFF); }
/* buy sheet */
.buy-hero { width: 150px; margin: 4px auto 0; }
.buy-hero .shop-pic { border-radius: 18px; }
.buy-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.buy-opts .btn { min-height: 54px; gap: 8px; flex-direction: column; }
.buy-opts .btn .vib-ico { height: 18px; }
.buy-note { margin: 12px 0 0; font-size: 12px; color: var(--ink-2); text-align: center; line-height: 1.4; }
#buy-pick .chips { margin-top: 4px; }
/* compass: arrow colours (the arrow is rendered mint) and the "found!" effect */
.rt-arrow[data-style="rainbow"], .arrow-sty[data-style="rainbow"] { animation: arrowRainbow 3s linear infinite; }
@keyframes arrowRainbow { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rt-arrow[data-style="rainbow"], .arrow-sty[data-style="rainbow"] { animation: none; } }
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }
.beacon[data-style="soft"] { transition: background .35s ease; }
/* settings: premium scenarios */
.scene-opt.locked img { filter: saturate(.75) brightness(.75); }
.scene-opt .price { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 4px; border-radius: 99px; background: rgba(21,17,43,.85); font-size: 12px; font-weight: 900; font-style: normal; }
.scene-opt .price .vib-ico { height: 13px; }
/* crew totem */
.crew-totem-card b { font-size: 16px; font-weight: 900; }
.ct-dot { width: 54px; height: 54px; border-radius: 16px; background: radial-gradient(circle at 50% 40%, var(--c, #4A3A9A), var(--surface-2) 78%); display: grid; place-items: center; flex: none; overflow: hidden; }
.ct-dot img { width: 100%; height: 100%; object-fit: cover; }
.ct-dot.off img { width: 70%; height: 70%; object-fit: contain; }
.shm-video { width: 100%; margin-top: 10px; min-height: 48px; }
#shm-vid { width: 100%; border-radius: 16px; display: block; }
#shm-vid[hidden] { display: none; }
.pay-l { display: inline-flex; align-items: center; gap: 8px; }
.shop-pic > img.pic-pad { object-fit: contain; padding: 14%; }
/* login: age, forgot password, notifications */
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-align: left; cursor: pointer; }
.chk input { width: 22px; height: 22px; accent-color: var(--mint); flex: none; margin: 0; }
.chk a { color: var(--mint); }
.chk[hidden] { display: none; }
.linkbtn.forgot { margin: 4px auto 0; display: block; background: none; border: none; color: var(--ink-2); font-family: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.linkbtn.forgot[hidden] { display: none; }
.auth-info { margin: 0; text-align: left; }
.push-hint { margin: 0; padding: 8px 12px 12px; }
.seg-lang { flex-wrap: wrap; }
.seg-lang button { flex: 1 1 30%; }

/* venue calendars (iCal) in the add-event sheet */
.feed-box { margin-top: 14px; background: var(--surface-2); border-radius: 16px; padding: 10px 14px; }
.feed-box summary { cursor: pointer; font-weight: 700; font-size: 14px; list-style: none; display: flex; align-items: center; gap: 8px; }
.feed-box summary::-webkit-details-marker { display: none; }
.feed-box summary::after { content: '›'; margin-left: auto; transition: transform .2s; font-size: 18px; }
.feed-box[open] summary::after { transform: rotate(90deg); }
.feed-row { display: flex; align-items: center; gap: 10px; padding: 10px 0 2px; border-top: 1px solid rgba(255,255,255,.06); margin-top: 8px; }
.feed-row b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-row .grow { min-width: 0; }
.buy-consent { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--surface); font-size: 13px; line-height: 1.4; cursor: pointer; }
.buy-consent input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: #7CF2C8; }
/* app degli store (Capacitor): niente accesso Google/Apple per ora, niente pannello admin */
.native .or, .native .oauth, .native #oauth-note, .native #admin-link { display: none !important; }
