.bubble-invitation{display:grid;grid-template-columns:1fr 1.2fr;gap:32px;align-items:center;background:#dcefe7;border-radius:28px;padding:32px;margin-top:28px;margin-bottom:38px}.bubble-invitation h2{font-size:36px;line-height:1.45;margin:10px 0}.bubble-invitation p{line-height:1.8}.bubble-invite-art{position:relative;min-height:220px;background:linear-gradient(140deg,#bce6ef,#fff1c6);border:7px solid #ffffff99;border-radius:46% 46% 35% 35%;display:flex;align-items:center;justify-content:center;gap:20px;overflow:hidden}.bubble-invite-art i{font:100px Georgia;color:#ffffffcc;text-shadow:3px 4px #8fbed5}.bubble-invite-art span{font-size:80px}.bubble-invite-art b{position:absolute;bottom:14px;color:#d5a12d;font-size:40px}.bubble-dialog{border:0;border-radius:22px;padding:0;width:min(560px,calc(100% - 16px));max-height:calc(100dvh - 16px);overflow:auto;background:#fffaf0;color:#264e43}.bubble-dialog::backdrop{background:#102d29d9}.bubble-top{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;background:#fffaf0;padding:14px 18px;border-bottom:1px solid #dbe3d5}.bubble-top>div{flex:1}.bubble-top small{display:block;font-size:13px;margin-top:3px}.bubble-top .close-button{position:static;flex-shrink:0}.bubble-top .secondary{font-size:13px;padding:9px}.bubble-short{text-align:center;font-size:18px;line-height:1.9;margin:16px 0}.bubble-hosts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:12px 16px}.bubble-hosts button{padding:6px;border:2px solid transparent;border-radius:14px;background:#eeeede;color:#264e43}.bubble-hosts button[aria-pressed=true]{border-color:#286553;background:#def0dc}.bubble-hosts img{width:48px;height:58px;object-fit:cover;object-position:50% 15%;border-radius:12px}.bubble-hosts span,.bubble-hosts small{display:block;font-size:13px;line-height:1.5}.bubble-hosts small{font-size:11px}.bubble-levels{display:grid;gap:8px;margin:20px 16px}.bubble-levels>button{display:flex;align-items:center;gap:14px;text-align:left;padding:12px 14px;border-radius:14px;background:#edf0df;color:#264e43;border:1px solid #d8dfc9}.bubble-levels strong{font-size:25px;background:#fffaf0;border-radius:12px;padding:8px 12px}.bubble-levels span{flex:1;font-size:16px}.bubble-levels small{display:block;font-size:12px;margin-top:3px}.bubble-levels .bubble-small-stars{flex:0;font-size:19px;white-space:nowrap;color:#a56b1a}.bubble-help{margin:18px;font-size:14px;line-height:1.9}.bubble-help summary{cursor:pointer;min-height:40px;font-weight:700}#bubble-storage{margin:16px}.bubble-hud{display:flex;justify-content:space-between;gap:8px;padding:10px 16px;font-size:17px;background:#e6efe2}.bubble-hud #bubble-hearts{color:#b85462;letter-spacing:2px}.bubble-stage{position:relative;width:min(360px,100%,36.6dvh);margin:auto;line-height:0}#bubble-canvas{display:block;width:100%;height:auto;aspect-ratio:3/5;touch-action:none;object-fit:contain;background:#d3ece5;outline-offset:-3px}#bubble-overlay{position:absolute;inset:0;background:#183e38b8;display:flex;align-items:center;justify-content:center;padding:14px;line-height:1.6}#bubble-overlay>div{width:100%;background:#fffaf0;border-radius:20px;padding:20px;text-align:center;max-height:100%;overflow:auto}#bubble-overlay h2{font-size:22px;line-height:1.6;margin:8px 0}.bubble-result-stars{font-size:36px;color:#bd8623}#bubble-overlay button{display:block;width:100%;margin-top:10px;white-space:normal;line-height:1.6;padding:12px;font-size:14px}.bubble-touch-hint{text-align:center;font-size:14px;margin:10px;line-height:1.7}@media(max-width:650px){.bubble-invitation{grid-template-columns:1fr;padding:22px;gap:18px}.bubble-invite-art{min-height:160px}.bubble-invitation h2{font-size:30px}.bubble-invitation .primary{width:100%}}@media(prefers-reduced-motion:reduce){.bubble-invitation *{animation:none!important}}

.bubble-paging{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 18px}.bubble-paging span{font-size:14px}.bubble-paging button{min-width:48px}.bubble-challenge{display:block;margin:14px auto} .bubble-paging button:disabled{opacity:.4;cursor:default}
.bubble-paging button{color:#264e43;background:#edf0df}

.bubble-discovered .bubble-invite-art i{animation:bubble-float 2.6s ease-in-out 3}.bubble-discovered .bubble-invite-art i:last-of-type{animation-delay:.5s}.bubble-discovered #open-bubble-game{animation:bubble-glow 2.6s ease-in-out 3}@keyframes bubble-float{50%{transform:translateY(-14px) rotate(7deg)}}@keyframes bubble-glow{50%{box-shadow:0 0 0 7px #e3b95055}}@media(prefers-reduced-motion:reduce){.bubble-discovered *{animation:none!important}}

/* Fit the game to the visible viewport, including shrinking browser bars. */
html.bubble-modal-open,html.bubble-modal-open body{overflow:hidden;overscroll-behavior:none}
.bubble-dialog{position:fixed;inset:0;box-sizing:border-box;width:min(560px,calc(var(--bubble-vw,100vw) - 16px));height:calc(var(--bubble-vh,100dvh) - 16px);max-width:none;max-height:none;margin:auto;overflow:hidden;overscroll-behavior:none}
.bubble-dialog[open]{display:flex;flex-direction:column}
.bubble-dialog *{min-width:0;box-sizing:border-box}
.bubble-top{position:relative;flex:none;padding:10px 12px;gap:8px;min-height:60px}
.bubble-top>div{min-width:0;line-height:1.35;overflow-wrap:anywhere}
.bubble-top small{font-size:12px}
.bubble-top .secondary{min-height:44px;flex:none;padding:8px;font-size:12px;white-space:normal;line-height:1.3}
.bubble-top .close-button{position:static;width:44px;height:44px;min-width:44px;padding:0}
#bubble-menu{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;padding-bottom:12px}
.bubble-short{font-size:16px;line-height:1.65;padding:0 12px;margin:12px 0}
.bubble-hosts{margin:10px 12px;gap:5px}.bubble-hosts button{min-height:44px;padding:5px 2px}.bubble-hosts img{max-width:100%;height:54px}
.bubble-levels{margin:12px;gap:7px}.bubble-levels>button{gap:8px;padding:10px;min-height:58px;white-space:normal}.bubble-levels strong{font-size:21px;padding:7px 10px}.bubble-levels span{overflow-wrap:anywhere}.bubble-levels .bubble-small-stars{font-size:17px;flex:0 0 auto;overflow-wrap:normal}
.bubble-paging{margin:10px 12px}.bubble-paging button{min-height:44px}
#bubble-field{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;padding-bottom:env(safe-area-inset-bottom,0px)}
.bubble-hud{flex:none;padding:7px 12px;font-size:15px;line-height:1.5;white-space:nowrap}
.bubble-arena{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;min-width:0;overflow:hidden;padding:0}
.bubble-stage{position:relative;flex:none;width:0;height:0;max-width:100%;max-height:100%;margin:0;line-height:0}
#bubble-canvas{display:block;width:100%;height:100%;max-width:100%;aspect-ratio:3/5;touch-action:none;user-select:none;-webkit-user-select:none}
.bubble-touch-hint{flex:none;font-size:12px;line-height:1.4;text-align:center;margin:5px 8px;overflow-wrap:anywhere}
#bubble-overlay{padding:8px;overflow:hidden}#bubble-overlay>div{padding:12px;max-height:100%;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}
#bubble-overlay h2{font-size:18px;line-height:1.4}#bubble-overlay p{font-size:14px;margin:8px 0}#bubble-overlay button{min-height:44px;padding:9px;margin-top:7px;font-size:13px;line-height:1.4}
@media(max-width:600px),(max-height:520px){.bubble-dialog{width:var(--bubble-vw,100vw);height:var(--bubble-vh,100dvh);border-radius:0;padding-top:env(safe-area-inset-top,0px);padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}.bubble-top{padding:6px 10px;min-height:56px}.bubble-top b{font-size:14px}.bubble-top small{font-size:11px}.bubble-hud{padding:5px 10px}.bubble-touch-hint{margin:4px 6px}}
