/* Bippo Blast Planet: the canvas fills the view; HUD, menus, the map card and touch controls are HTML on top. */
@font-face { font-family: 'Fredoka'; src: url('assets/fonts/fredoka.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
.bbp { --t: #ff8a2a; --e: #17b3a6; --m: #ff4f9a; --c: #fff3e0; --ink: #2a1748; --ink2: #3c2266; --gold: #ffd23f; --lime: #9be84a;
  display: flex; flex-direction: column; color: #fff; font-family: Fredoka, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif; }
.bbp [hidden] { display: none !important; }
.bbp-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); min-height: 360px; overflow: hidden; border-radius: 12px;
  background: #2a1748; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; outline: none; touch-action: none; contain: layout paint; }
@media (max-width: 700px) and (orientation: portrait) { .bbp-stage { aspect-ratio: auto; height: min(84vh, 172vw); height: min(84dvh, 172vw); max-height: none; border-radius: 10px; } }
.bbp-view { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; }
#bbp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.bbp-deck { position: absolute; left: 0; right: 0; bottom: 0; display: none; background: radial-gradient(120% 90% at 50% 0%, #4a2a7a 0%, #2a1748 60%, #1a0d30 100%); border-top: 2px solid rgba(255,255,255,0.08); }
.bbp-deck::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, rgba(255,138,42,0.10), transparent 40%), radial-gradient(circle at 80% 70%, rgba(23,179,166,0.12), transparent 45%); }
.bbp.is-portrait .bbp-deck { display: block; }
.bbp-help { margin: 8px 2px 0; font-size: 13px; color: #b9c6e4; text-align: center; font-family: system-ui, sans-serif; }
.bbp-help kbd { display: inline-block; min-width: 1.4em; padding: 0 5px; margin: 0 1px; border-radius: 5px; background: #1c2440; border: 1px solid #33406a; color: #dfe9ff; font: inherit; font-size: 12px; text-align: center; }
.bbp .hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .bbp .hint-kb { display: none; } .bbp .hint-touch { display: inline; } }
.stage.is-immersive .stage-body > .bbp { min-height: 0; flex: 1 1 auto; }
.stage.is-immersive .bbp-stage { flex: 1 1 auto; height: auto; aspect-ratio: auto; max-height: none; min-height: 0; border-radius: 0; }
.stage.is-immersive .bbp-help { display: none; }

/* ---------- HUD ---------- */
.bbp-hud { position: absolute; inset: 0; pointer-events: none; padding: max(8px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) 8px max(10px, env(safe-area-inset-left, 0px)); display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; font-variant-numeric: tabular-nums; }
.bbp-hl, .bbp-hr { display: flex; flex-direction: column; gap: 5px; }
.bbp-hl { align-items: flex-start; } .bbp-hr { align-items: flex-end; }
.bbp-hc { position: absolute; left: 50%; top: max(6px, env(safe-area-inset-top, 0px)); transform: translateX(-50%); }
.bbp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 5px; border-radius: 99px; background: rgba(42,23,72,0.62); border: 2px solid rgba(255,255,255,0.18); box-shadow: 0 3px 0 rgba(0,0,0,0.18);
  font-weight: 700; font-size: clamp(15px, 2.4vmin, 22px); line-height: 1.2; text-shadow: 0 2px 0 rgba(0,0,0,0.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bbp-chip i { width: 1.3em; height: 1.3em; display: block; flex: none; background-size: contain; background-repeat: no-repeat; background-position: center; }
.bbp-face { background-image: url('assets/img/bippo.webp'); border-radius: 50%; background-color: #ffd2a1; background-size: 160% !important; background-position: 50% 8% !important; border: 2px solid #fff; }
.bbp-gem { background-image: url('assets/img/gleam.webp'); }
.bbp-clock { border-radius: 50%; border: 3px solid #fff; position: relative; width: 1em !important; height: 1em !important; }
.bbp-clock::after { content: ''; position: absolute; left: 45%; top: 12%; width: 2px; height: 40%; background: #fff; }
.bbp-bolts { display: flex; gap: 3px; padding: 2px 4px; }
.bbp-bolts i { width: clamp(16px, 2.6vmin, 24px); height: clamp(16px, 2.6vmin, 24px); background: url('assets/img/big-bolt.webp') center/contain no-repeat; filter: grayscale(1) brightness(0.45) drop-shadow(0 0 1px #fff); opacity: 0.75; transition: filter .2s, transform .2s; }
.bbp-bolts i.on { filter: drop-shadow(0 0 6px rgba(255,210,63,0.9)); opacity: 1; animation: bbp-pop .35s cubic-bezier(.2,1.8,.4,1); }
.bbp-bolts i.ghost { filter: grayscale(0.3) brightness(0.9); opacity: 0.6; }
.bbp-pocket { width: clamp(46px, 7vmin, 62px); height: clamp(46px, 7vmin, 62px); border-radius: 10px 10px 50% 50%; background: linear-gradient(180deg, #23c4b6, #128a80); border: 3px solid #fff3e0; box-shadow: 0 4px 0 rgba(0,0,0,0.2), inset 0 3px 0 rgba(255,255,255,0.25); display: grid; place-items: center; }
.bbp-pocket span { width: 72%; height: 72%; background-size: contain; background-repeat: no-repeat; background-position: center; }
.bbp-pocket.is-new { animation: bbp-pop .4s cubic-bezier(.2,1.8,.4,1); }
.bbp-score { font-weight: 700; font-size: clamp(16px, 2.6vmin, 24px); padding: 0 6px; text-shadow: 0 2px 0 rgba(0,0,0,0.35), 0 0 12px rgba(0,0,0,0.25); letter-spacing: 0.02em; }
.bbp-time.is-hurry { color: #ffd23f; animation: bbp-blink .5s steps(2) infinite; }
.bbp-gauge { display: flex; gap: 3px; padding: 0 4px; }
.bbp-gauge i { width: clamp(8px, 1.4vmin, 12px); height: clamp(10px, 1.7vmin, 14px); border-radius: 3px; background: rgba(42,23,72,0.6); border: 1.5px solid rgba(255,255,255,0.4); transform: skewX(-12deg); }
.bbp-gauge i.on { background: linear-gradient(180deg, #ffe14a, #ff8a2a); border-color: #fff; box-shadow: 0 0 6px rgba(255,138,42,0.8); }
.bbp-gauge.is-full i { background: linear-gradient(180deg, #fff, #ff4f9a); animation: bbp-blink .2s steps(2) infinite; }
.bbp-noise { position: absolute; left: 50%; top: calc(max(6px, env(safe-area-inset-top, 0px)) + clamp(52px, 8vmin, 70px)); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: rgba(42,23,72,0.6); font-size: 13px; font-weight: 700; }
.bbp-noise i { display: block; width: 70px; height: 8px; border-radius: 9px; background: linear-gradient(90deg, #5fe3b3 0 var(--n, 0%), rgba(255,255,255,0.2) var(--n, 0%)); }
.bbp-noise.is-loud i { background: linear-gradient(90deg, #ff4f9a 0 var(--n, 0%), rgba(255,255,255,0.2) var(--n, 0%)); }
.bbp-coop { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 6px; }
.bbp-coop span { padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--pc); color: #2a1748; box-shadow: 0 2px 0 rgba(0,0,0,0.2); }
.bbp-coop span.is-bubble { opacity: 0.55; }
.bbp-pausebtn { position: absolute; left: max(8px, env(safe-area-inset-left, 0px)); bottom: max(8px, env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; border-radius: 14px; border: 2px solid rgba(255,255,255,0.35); background: rgba(42,23,72,0.55); color: #fff; display: grid; place-items: center; z-index: 6; touch-action: manipulation; }
.bbp-pausebtn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 3; stroke-linecap: round; fill: none; }
.bbp.is-touch .bbp-pausebtn { top: max(8px, env(safe-area-inset-top, 0px)); bottom: auto; }
.bbp.is-touch .bbp-hl { padding-left: 50px; }
.bbp-deck::after { content: 'MOVE'; position: absolute; left: 22%; top: 52%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 3px dashed rgba(255,255,255,0.18); display: grid; place-items: center; color: rgba(255,255,255,0.3); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; }
.bbp-sign { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); width: min(78%, 520px); padding: 12px 16px 12px 62px; border-radius: 18px; color: #3a2416; background: #fff6e6 url('assets/img/wobblewhisk.webp') 8px 50%/46px auto no-repeat; border: 3px solid #ffb86a; box-shadow: 0 8px 0 rgba(0,0,0,0.18), 0 14px 40px rgba(0,0,0,0.3); pointer-events: none; animation: bbp-rise .25s ease-out; }
.bbp-sign b { display: block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #ff8a2a; }
.bbp-sign p { margin: 2px 0 0; font-size: clamp(14px, 2.2vmin, 18px); line-height: 1.3; font-weight: 500; }
.bbp-banner { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); pointer-events: none; font-weight: 700; font-size: clamp(26px, 6vmin, 56px); letter-spacing: 0.02em; white-space: nowrap;
  color: #fff; -webkit-text-stroke: 0; text-shadow: 0 4px 0 #ff4f9a, 0 8px 0 rgba(42,23,72,0.6), 0 0 30px rgba(255,210,63,0.6); opacity: 0; }
.bbp-banner.is-on { animation: bbp-banner 1.6s cubic-bezier(.2,1.4,.3,1) forwards; }
.bbp-banner.is-big { font-size: clamp(36px, 9vmin, 84px); }
@keyframes bbp-banner { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4) rotate(-6deg); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.08) rotate(2deg); } 25% { transform: translate(-50%, -50%) scale(1) rotate(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1); } }
@keyframes bbp-pop { 0% { transform: scale(0.3); } 100% { transform: scale(1); } }
@keyframes bbp-blink { 50% { opacity: 0.35; } }
@keyframes bbp-rise { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- touch controls ---------- */
.bbp-touch { position: absolute; inset: 0; z-index: 5; touch-action: none; }
.bbp-tb { position: absolute; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.45), rgba(255,255,255,0.12) 60%), var(--bc, rgba(255,138,42,0.6));
  border: 3px solid rgba(255,255,255,0.75); box-shadow: 0 5px 0 rgba(0,0,0,0.22); transition: transform .06s; }
.bbp-tb svg { width: 42%; height: 42%; fill: #fff; filter: drop-shadow(0 2px 0 rgba(0,0,0,0.25)); }
.bbp-tb span { position: absolute; bottom: -1.5em; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.85); text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.bbp-tb-jump { --bc: rgba(255,138,42,0.75); } .bbp-tb-spin { --bc: rgba(255,79,154,0.7); } .bbp-tb-action { --bc: rgba(23,179,166,0.75); } .bbp-tb-pocket { --bc: rgba(122,92,255,0.7); }
.bbp-tb.is-on { transform: scale(0.9); box-shadow: 0 2px 0 rgba(0,0,0,0.22); filter: brightness(1.25); }
.bbp-stick { position: absolute; width: 0; height: 0; opacity: 0; transition: opacity .15s; pointer-events: none; }
.bbp-stick.is-on { opacity: 1; }
.bbp-stick::before { content: ''; position: absolute; left: -58px; top: -58px; width: 116px; height: 116px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.5); background: rgba(42,23,72,0.25); }
.bbp-stick i { position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #ffd2a1 60%, #ff8a2a); box-shadow: 0 4px 0 rgba(0,0,0,0.25); }
.bbp-touch.is-editing .bbp-tb { outline: 3px dashed #ffd23f; outline-offset: 4px; opacity: 0.95 !important; }

/* ---------- menus ---------- */
.bbp-screen { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.bbp-screen > * { pointer-events: auto; }
.bbp-panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92%, 560px); max-height: 92%; overflow: auto; padding: 22px 22px 18px; border-radius: 26px; color: #fff;
  background: linear-gradient(160deg, rgba(74,42,122,0.96), rgba(42,23,72,0.97)); border: 3px solid rgba(255,255,255,0.18); box-shadow: 0 12px 0 rgba(0,0,0,0.22), 0 24px 60px rgba(0,0,0,0.45); animation: bbp-in .22s cubic-bezier(.2,1.4,.4,1); }
@keyframes bbp-in { from { opacity: 0; transform: translate(-50%, -46%) scale(0.94); } }
.bbp-panel h2 { margin: 0 0 12px; font-size: clamp(24px, 4.4vmin, 34px); font-weight: 700; letter-spacing: 0.01em; text-align: center; color: #fff; text-shadow: 0 3px 0 #ff4f9a; }
.bbp-panel h3 { margin: 14px 0 6px; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: #ffd23f; }
.bbp-panel p { margin: 6px 0; line-height: 1.4; color: #e8dcff; font-size: 15px; }
.bbp-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.bbp-btns.row { flex-direction: row; flex-wrap: wrap; justify-content: center; }
.bbp-btn { appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: clamp(17px, 2.8vmin, 21px); color: #2a1748; padding: 12px 20px; border-radius: 16px; background: linear-gradient(180deg, #fff6e6, #ffd9a8);
  box-shadow: 0 5px 0 #c97a3a, 0 8px 18px rgba(0,0,0,0.25); transition: transform .08s, box-shadow .08s, filter .15s; touch-action: manipulation; text-align: center; }
.bbp-btn:hover { filter: brightness(1.06); } .bbp-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #c97a3a; }
.bbp-btn.go { background: linear-gradient(180deg, #ffb35a, #ff7a1a); color: #fff; text-shadow: 0 2px 0 rgba(150,50,0,0.4); box-shadow: 0 5px 0 #b44a0a, 0 8px 18px rgba(0,0,0,0.25); font-size: clamp(20px, 3.4vmin, 26px); }
.bbp-btn.teal { background: linear-gradient(180deg, #4ee0d2, #17b3a6); color: #fff; text-shadow: 0 2px 0 rgba(0,60,55,0.4); box-shadow: 0 5px 0 #0a6a62, 0 8px 18px rgba(0,0,0,0.25); }
.bbp-btn.pink { background: linear-gradient(180deg, #ff8ac0, #ff4f9a); color: #fff; text-shadow: 0 2px 0 rgba(120,0,50,0.35); box-shadow: 0 5px 0 #a01a5a, 0 8px 18px rgba(0,0,0,0.25); }
.bbp-btn.ghost { background: rgba(255,255,255,0.1); color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,0.25); border: 2px solid rgba(255,255,255,0.2); }
.bbp-btn.small { font-size: 15px; padding: 8px 14px; border-radius: 12px; }
.bbp-btn:focus-visible { outline: 3px solid #ffd23f; outline-offset: 3px; }
.bbp-btn.sel { outline: 3px solid #ffd23f; outline-offset: 2px; }
/* title */
.bbp-title { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 4% 4% max(5%, env(safe-area-inset-bottom, 0px)); background: url('assets/img/keyart.webp') center 30%/cover no-repeat; }
.bbp-title::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,23,72,0) 40%, rgba(42,23,72,0.82) 100%); }
.bbp-logo { position: absolute; top: 5%; left: 50%; transform: translateX(-50%) rotate(-3deg); text-align: center; line-height: 0.82; white-space: nowrap; animation: bbp-bob 3s ease-in-out infinite; }
.bbp-logo span { display: block; font-weight: 700; letter-spacing: 0.01em; color: #fff; paint-order: stroke fill; -webkit-text-stroke: 0.09em #2a1748; text-shadow: 0 0.08em 0 #2a1748, 0 0.14em 0 rgba(0,0,0,0.25); }
.bbp-logo .l1 { font-size: clamp(30px, 8vmin, 74px); color: #ffd23f; transform: translateX(-12%); }
.bbp-logo .l2 { font-size: clamp(48px, 13.5vmin, 130px); color: #ff8a2a; }
.bbp-logo .l3 { font-size: clamp(30px, 8vmin, 74px); color: #5fe3d6; transform: translateX(14%); }
@keyframes bbp-bob { 50% { transform: translateX(-50%) rotate(-1.5deg) translateY(-4px); } }
.bbp-title .bbp-btns { position: relative; width: min(84%, 380px); }
.bbp-title .bbp-tag { position: relative; margin: 0 0 10px; font-size: clamp(14px, 2.4vmin, 18px); color: #fff3e0; text-shadow: 0 2px 4px rgba(0,0,0,0.5); text-align: center; }
.bbp-slots { display: grid; gap: 10px; }
.bbp-slot { display: flex; align-items: center; gap: 12px; text-align: left; }
.bbp-slot img { width: 46px; height: 46px; object-fit: contain; }
.bbp-slot small { display: block; font-size: 13px; font-weight: 500; color: #6a4a2a; }
.bbp-chars { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.bbp-char { flex: 1 1 140px; max-width: 200px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; border-radius: 18px; }
.bbp-char img { height: clamp(90px, 18vmin, 150px); width: auto; filter: drop-shadow(0 6px 0 rgba(0,0,0,0.15)); }
.bbp-char small { font-size: 13px; font-weight: 500; color: #6a4a2a; line-height: 1.25; }
.bbp-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; flex-wrap: wrap; }
.bbp-row label { flex: 1 1 140px; font-weight: 600; color: #f0e6ff; }
.bbp-row input[type=range] { flex: 1 1 160px; accent-color: #ff8a2a; }
.bbp-seg { display: inline-flex; border-radius: 12px; overflow: hidden; border: 2px solid rgba(255,255,255,0.25); }
.bbp-seg button { appearance: none; border: 0; padding: 7px 11px; font: inherit; font-weight: 600; font-size: 14px; color: #fff; background: transparent; cursor: pointer; }
.bbp-seg button.on { background: #ff8a2a; }
.bbp-seats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 10px 0; }
.bbp-seat { padding: 10px; border-radius: 16px; background: rgba(255,255,255,0.08); border: 3px dashed rgba(255,255,255,0.25); text-align: center; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.bbp-seat.on { border-style: solid; border-color: var(--pc); background: color-mix(in srgb, var(--pc) 22%, transparent); }
.bbp-seat img { height: 64px; }
.bbp-seat b { font-size: 15px; } .bbp-seat small { font-size: 12px; color: #d8ccf0; }
.bbp-tally { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; font-size: 18px; margin: 8px 0; }
.bbp-tally b { text-align: right; font-variant-numeric: tabular-nums; color: #ffd23f; }
/* map card */
.bbp-card { position: absolute; left: 50%; bottom: max(10px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(94%, 620px); padding: 10px 12px 10px 14px; border-radius: 22px; z-index: 6;
  background: linear-gradient(160deg, rgba(255,246,230,0.97), rgba(255,226,186,0.97)); color: #2a1748; border: 3px solid #fff; box-shadow: 0 7px 0 rgba(0,0,0,0.2), 0 16px 40px rgba(0,0,0,0.3); display: flex; align-items: center; gap: 12px; }
.bbp-card .k { flex: 1 1 auto; min-width: 0; }
.bbp-card .id { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #ff4f9a; }
.bbp-card .nm { font-size: clamp(18px, 3vmin, 24px); font-weight: 700; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bbp-card .meta { display: flex; align-items: center; gap: 10px; margin-top: 3px; font-size: 13px; font-weight: 600; color: #6a4a6a; flex-wrap: wrap; }
.bbp-card .bb { display: inline-flex; gap: 2px; } .bbp-card .bb i { width: 15px; height: 15px; background: url('assets/img/big-bolt.webp') center/contain no-repeat; filter: grayscale(1) opacity(0.35); } .bbp-card .bb i.on { filter: none; }
.bbp-card .ex { display: inline-flex; gap: 3px; } .bbp-card .ex i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #ff8a2a; } .bbp-card .ex i.on { background: #ff8a2a; } .bbp-card .ex i.sec { border-color: #b03ad0; } .bbp-card .ex i.sec.on { background: #b03ad0; }
.bbp-card .bbp-btn { flex: none; }
.bbp-mapbar { position: absolute; top: max(8px, env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; z-index: 6; pointer-events: none; }
.bbp-mapbar .bbp-chip { pointer-events: none; }
@media (max-width: 560px) { .bbp-mapbar { left: max(8px, env(safe-area-inset-left, 0px)); transform: none; flex-wrap: wrap; max-width: calc(100% - 170px); gap: 5px; } .bbp-mapbar .bbp-chip { font-size: 13px; } .bbp-mapbtns .bbp-ib { width: 38px; height: 38px; } }
.bbp-mapbar .wn { padding: 4px 14px; border-radius: 99px; background: #ff8a2a; color: #fff; font-weight: 700; font-size: clamp(14px, 2.4vmin, 19px); box-shadow: 0 3px 0 #b44a0a; white-space: nowrap; }
.bbp-mapbtns { position: absolute; top: max(8px, env(safe-area-inset-top, 0px)); right: max(8px, env(safe-area-inset-right, 0px)); display: flex; gap: 6px; z-index: 7; }
.bbp-ib { width: 44px; height: 44px; border-radius: 14px; border: 2px solid rgba(255,255,255,0.4); background: rgba(42,23,72,0.6); color: #fff; display: grid; place-items: center; cursor: pointer; touch-action: manipulation; }
.bbp-ib svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.bbp-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #2a1748; z-index: 20; font-weight: 600; color: #ffd2a1; }
.bbp-spin { width: 46px; height: 46px; border-radius: 50%; border: 6px solid rgba(255,255,255,0.15); border-top-color: #ff8a2a; animation: bbp-rot 0.8s linear infinite; }
@keyframes bbp-rot { to { transform: rotate(360deg); } }
.bbp-toast { position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%); padding: 8px 16px; border-radius: 14px; background: rgba(42,23,72,0.9); border: 2px solid rgba(255,255,255,0.25); font-weight: 600; z-index: 9; animation: bbp-rise .2s ease-out; pointer-events: none; }
.bbp-x { position: absolute; right: 12px; top: 12px; }
@media (prefers-reduced-motion: reduce) { .bbp-logo, .bbp-banner.is-on { animation: none; } .bbp-banner.is-on { opacity: 1; } }
.bbp-title-ib { position: absolute; top: max(10px, env(safe-area-inset-top, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); z-index: 3; display: flex; gap: 6px; }
