body[data-page="balloon"] { min-height: 100vh; margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #fffaf4; background: radial-gradient(900px 600px at 15% -10%, rgba(98, 111, 230, .25), transparent 65%), radial-gradient(850px 600px at 100% 18%, rgba(246, 118, 176, .16), transparent 62%), #10152a; }
.balloon-shell { width: min(1120px, 100%); margin-inline: auto; padding: 0 28px; }
.balloon-header { min-height: 74px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.1); }
.balloon-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; letter-spacing: -.05em; }
.balloon-brand .brand-mark { width: 33px; height: 33px; }
.balloon-brand .brand-period { color: #d8f879; }
.balloon-back { padding: 10px 13px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; color: #d8dfef; text-decoration: none; font-size: 12px; }
.balloon-back span, .balloon-footer b { color: #d8f879; }
.balloon-main { padding: 37px 0 54px; }
.balloon-intro { margin: 0 0 24px; }
.balloon-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #d8f879; font-size: 10px; font-weight: 850; letter-spacing: .18em; }
.balloon-eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #d8f879; box-shadow: 0 0 14px #d8f879; }
.balloon-intro h1 { margin: 0; font-size: clamp(42px, 7vw, 70px); line-height: 1; letter-spacing: -.075em; }
.balloon-intro h1 > span { color: #ff9dce; }
.balloon-intro > p:last-child { max-width: 540px; margin: 11px 0 0; color: #c2c9d8; font-size: 14px; line-height: 1.65; }
.balloon-layout { display: grid; grid-template-columns: minmax(0,1fr) 255px; align-items: stretch; gap: 16px; }
.pop-stage { position: relative; min-height: 490px; overflow: hidden; isolation: isolate; border: 1px solid rgba(255,255,255,.16); border-radius: 29px; background: linear-gradient(180deg, #94dfff 0%, #d3f6ff 52%, #ffe8f5 100%); box-shadow: inset 0 -55px 80px rgba(255,255,255,.22), 0 25px 70px rgba(0,0,0,.25); }
.pop-stage::before { position: absolute; z-index: -1; content: ""; inset: 0; opacity: .24; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 35px 35px; }
.pop-cloud { position: absolute; z-index: -1; width: 180px; height: 50px; border-radius: 50px; background: rgba(255,255,255,.72); filter: drop-shadow(0 8px 10px rgba(78,148,182,.1)); }
.pop-cloud::before,.pop-cloud::after { position: absolute; content: ""; bottom: 12px; width: 68px; height: 68px; border-radius: 50%; background: inherit; }
.pop-cloud::before { left: 27px; }.pop-cloud::after { right: 22px; width: 53px; height: 53px; }
.pop-cloud-one { top: 72px; left: 10%; transform: scale(.8); }.pop-cloud-two { top: 155px; right: 4%; transform: scale(.62); opacity: .65; }
.pop-sparkle { position: absolute; color: #fff; text-shadow: 0 1px 9px rgba(255,255,255,.95); }
.pop-confetti { position: absolute; z-index: 4; inset: 0; overflow: hidden; pointer-events: none; }
.confetti-bit { position: absolute; display: block; font-size: 25px; filter: drop-shadow(0 3px 4px rgba(60,55,100,.2)); animation: confetti-pop .9s cubic-bezier(.17,.67,.43,1.2) both; }
.sparkle-one { top: 29%; left: 28%; font-size: 26px; }.sparkle-two { top: 17%; right: 25%; color: #ffbd4d; font-size: 31px; }.sparkle-three { top: 50%; right: 11%; color: #fff; font-size: 18px; }
.pop-message { position: absolute; z-index: 3; top: 50%; left: 50%; display: flex; width: min(300px, calc(100% - 40px)); flex-direction: column; align-items: center; gap: 8px; padding: 22px 20px; border: 1px solid rgba(255,255,255,.74); border-radius: 23px; background: rgba(255,255,255,.82); color: #253756; text-align: center; box-shadow: 0 15px 38px rgba(74,113,151,.18); transform: translate(-50%,-50%); backdrop-filter: blur(10px); }
.pop-message[hidden] { display: none; }.pop-message-icon { font-size: 42px; animation: balloon-bob 1.7s ease-in-out infinite; }.pop-message strong { font-size: 20px; }.pop-message > span:last-child { color: #566982; font-size: 12px; line-height: 1.5; }
.pop-balloon { position: absolute; z-index: 2; bottom: -118px; display: block; width: 76px; height: 118px; margin-left: -38px; border: 0; padding: 0; background: none; cursor: pointer; animation: balloon-rise var(--rise-time, 7s) linear forwards; -webkit-tap-highlight-color: transparent; }
.balloon-surface { position: absolute; top: 0; left: 5px; display: grid; width: 66px; height: 78px; place-items: center; border: 3px solid rgba(255,255,255,.82); border-radius: 51% 49% 48% 52% / 43% 44% 56% 57%; background: radial-gradient(circle at 32% 22%, rgba(255,255,255,.78), transparent 24%), var(--balloon-color); color: rgba(255,255,255,.94); font-size: 25px; box-shadow: inset -8px -10px 14px rgba(80,35,95,.14), 0 9px 18px rgba(47,72,124,.2); animation: balloon-wobble 1.2s ease-in-out infinite alternate; }
.pop-balloon::before { position: absolute; z-index: 1; top: 73px; left: 31px; width: 0; height: 0; content: ""; border-top: 11px solid var(--balloon-color); border-right: 6px solid transparent; border-left: 6px solid transparent; }
.pop-balloon::after { position: absolute; top: 82px; left: 37px; width: 1px; height: 31px; content: ""; border-left: 1px dashed rgba(73,105,146,.55); transform: rotate(-7deg); }
.pop-balloon.bonus .balloon-surface { background-color: #ffb936; box-shadow: inset -8px -10px 14px rgba(167,91,11,.18), 0 0 0 5px rgba(255,215,96,.23), 0 9px 20px rgba(47,72,124,.2); }
.pop-balloon:focus-visible { outline: none; }.pop-balloon:focus-visible .balloon-surface { outline: 4px solid #233858; outline-offset: 4px; }
.pop-balloon.is-popping { animation: balloon-pop .18s ease-out forwards; pointer-events: none; }
.pop-points { position: absolute; z-index: 4; color: #333d69; font-size: 23px; font-weight: 950; text-shadow: 0 2px 0 white; pointer-events: none; animation: point-rise .75s ease-out forwards; }
.balloon-panel { display: flex; flex-direction: column; padding: 20px; border: 1px solid rgba(235,241,255,.12); border-radius: 23px; background: rgba(19,26,42,.86); box-shadow: 0 22px 56px rgba(0,0,0,.2); }
.balloon-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.balloon-stats > div,.balloon-best { padding: 13px; border: 1px solid rgba(235,241,255,.1); border-radius: 15px; background: rgba(7,11,20,.28); }
.balloon-stats span,.balloon-best > span,.balloon-how > span { display: block; color: #a8b2c4; font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.balloon-stats strong { display: block; margin-top: 4px; color: #fff; font-size: 28px; font-variant-numeric: tabular-nums; }
#timeValue { color: #ffd578; }
.balloon-best { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px; margin-top: 9px; }
.balloon-best strong { grid-row: span 2; color: #d8f879; font-size: 30px; }.balloon-best small { color: #c1c9d8; font-size: 11px; }
.balloon-status { min-height: 39px; margin: 17px 0 11px; color: #ccd4e2; font-size: 12px; line-height: 1.55; }
.balloon-start { min-height: 52px; border: 0; border-radius: 15px; color: #202445; background: linear-gradient(100deg,#ffe06c,#ff9bcc 55%,#a9a0ff); font: inherit; font-size: 14px; font-weight: 900; cursor: pointer; box-shadow: 0 10px 22px rgba(218,141,201,.18); transition: transform .18s ease,filter .18s ease; }
.balloon-start:hover { transform: translateY(-2px); filter: brightness(1.07); }.balloon-start span { margin-left: 5px; }
.balloon-how { margin-top: auto; padding-top: 20px; }.balloon-how > span { color: #d8f879; }.balloon-how p { margin: 8px 0 0; color: #b8c2d2; font-size: 11px; line-height: 1.7; }
.balloon-footer { display: flex; min-height: 70px; align-items: center; gap: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #dbe1ec; font-size: 11px; }.balloon-footer > span:nth-child(2) { color: #aab4c6; }.balloon-footer > a { margin-left: auto; color: #dce3f3; text-decoration: none; }.balloon-footer b { margin-left: 4px; }
@keyframes balloon-rise { from { transform: translate(-50%,0) rotate(-3deg); } to { transform: translate(calc(-50% + var(--drift, 0px)),-650px) rotate(4deg); } }
@keyframes balloon-wobble { from { rotate: -5deg; } to { rotate: 5deg; } }
@keyframes balloon-bob { 50% { transform: translateY(-5px) rotate(4deg); } }
@keyframes balloon-pop { to { opacity: 0; scale: 1.6; } }
@keyframes point-rise { to { translate: 0 -48px; opacity: 0; } }
@keyframes confetti-pop { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.3) rotate(0); } 22% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-130px) scale(1.3) rotate(var(--confetti-turn)); } }
@media (max-width: 760px) { .balloon-shell { padding-inline: 17px; }.balloon-layout { grid-template-columns: 1fr; }.pop-stage { min-height: 440px; }.balloon-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.balloon-stats { grid-row: span 2; }.balloon-best { margin: 0; }.balloon-status { min-height: 0; margin: 0; align-self: center; }.balloon-start { grid-column: 2; }.balloon-how { grid-column: 1/-1; padding-top: 9px; } }
@media (max-width: 430px) { .pop-stage { min-height: 390px; }.balloon-panel { padding: 14px; }.balloon-stats strong { font-size: 23px; }.balloon-footer { gap: 9px; font-size: 9px; }.balloon-footer > span:nth-child(2) { display: none; } }
@media (prefers-reduced-motion: reduce) { .pop-balloon,.balloon-surface,.pop-message-icon { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
