/* Balloon: values measured from the reference game (computed styles at 1536×900 and 390×844). */
.balloon .flight-layout,.balloon .flight-layout button,.balloon .flight-layout input{font-family:Inter,sans-serif}
.balloon .flight-stage{border-radius:12px}
.balloon .round-history-bar{left:0;right:0;top:13px;justify-content:center;pointer-events:none}
.balloon .round-history-bar #recent-values{flex:none;gap:4px;justify-content:center;max-width:536px}
.balloon .round-history-bar #recent-values .result-pill:nth-child(n+11){display:none}
.balloon .round-history-bar .result-pill,.balloon .round-history-bar .result-pill:nth-child(even){font:700 12px/18px Gotham,sans-serif;height:25px;min-width:50px;padding:0 4px;display:grid;place-items:center;border-radius:5px;background:#05378f;color:#fff}
.balloon .round-history-bar .result-pill.high{background:#ff8a00;color:#000}
.balloon .history-toggle{position:absolute;right:20px;top:0;width:25px;height:25px;padding:0;border:0;border-radius:50%;background:url(/assets/balloon/ArrowDown.webp) center/16px auto no-repeat,linear-gradient(270deg,#f48808,#ffd098);font-size:0;pointer-events:auto}
.balloon .flight-label{inset:0 0 auto 0;height:440px;bottom:auto}
.balloon .flight-label span{font:700 20px/20px Roboto,sans-serif;color:#fff}
.balloon .flight-label strong{font:700 42px/42px Roboto,sans-serif;color:#fff}
.balloon .flight-label.result strong{color:#000}
.balloon .flight-countdown{top:250px;left:calc(50% - 32px);width:64px;height:64px;border:0;border-radius:50%;display:block;font-size:0}
.balloon-timer-ring{position:absolute;inset:0;width:64px;height:64px}
.balloon-timer-ring circle{transition:all .5s}
.balloon-timer-text{position:absolute;left:0;right:0;top:11px;text-align:center;font:600 28.16px/42px Rubik,sans-serif;color:#fff;animation:balloon-roll-up 1s cubic-bezier(.25,.1,.25,1)}
.balloon-timer-text.cd-number{animation:balloon-cd-number 1.2s ease forwards}
@keyframes balloon-roll-up{0%{transform:translateY(50%);opacity:0}50%{opacity:1;transform:translateY(0)}to{opacity:1;transform:translateY(0)}}
@keyframes balloon-cd-number{0%{transform:scale(.5);opacity:0}to{transform:scale(1.3);opacity:1}}
.balloon .auto-control>label>span{font:600 14px/16.94px Inter,sans-serif;color:#fff}
.balloon .auto-control>input[type=number]{width:55px;height:24px;border:0;border-radius:10px;background:#000000bf;color:#fff;font:400 16px/24px Inter,sans-serif}
.balloon .auto-control>span{color:#fff;font:400 16px/24px Inter,sans-serif}
.balloon .quick-stake{width:120px;height:24px;border:2px solid #fff;border-radius:100px;background:#052764;color:#fff;font:600 16px/16px Inter,sans-serif}
.balloon .stake-actions button{width:116px;height:24px;border:2px solid #fff;border-radius:10px;font:400 16px/16.94px Inter,sans-serif;color:#878787;background:#210430}
.balloon .stake-actions button.edit{background:linear-gradient(360deg,#cf7204,#f48808);color:#eeeff4}
.balloon .stake-actions button.clear{background:linear-gradient(red,#a10000);color:#eeeff4}
.balloon .cash-button{width:200px;height:52px;border:2px solid #000;border-radius:10px;background:linear-gradient(360deg,#008826,#00df3f);box-shadow:none}
.balloon .cash-button span{font:600 24px/29.05px Inter,sans-serif;color:#fff}
.balloon .cash-button img{width:46px;height:49px}
.balloon .balloon-players{left:4px}
.balloon .balloon-players>button{display:flex;align-items:center;gap:12px;height:28px;width:auto;padding:0 0 0 12px;border:0;border-radius:0 20px 20px 0;background:url(/assets/balloon/Profile.webp) 12px center/16px auto no-repeat,#05276433;position:relative}
.balloon .balloon-players>button:before{content:'';width:16px}
.balloon .balloon-players>button svg{display:none}
.balloon .balloon-players>button span{position:static;display:block;width:28px;height:28px;border-radius:50%;background:url(/assets/balloon/Arrow2.webp) center/18px auto no-repeat,linear-gradient(270deg,#052764,#5190ff);font-size:0;transform:rotate(180deg)}
.balloon .balloon-players>button[aria-expanded="true"] span{transform:none}
@media(max-width:760px){
 /* Mobile reference: 380×734 canvas with the controls overlaid on the lower scene. Coordinates are canvas pixels. */
 .balloon .flight-layout{max-width:380px;margin:5px auto 0;border-radius:12px}
 .balloon .flight-main{position:relative}
 .balloon .flight-stage{height:734px;border-radius:12px}
 .balloon .round-history-bar{top:13px;left:18px;right:8px;justify-content:flex-start}
 .balloon .round-history-bar #recent-values{max-width:310px;overflow:hidden;justify-content:flex-start}
 .balloon .round-history-bar #recent-values .result-pill:nth-child(n+7){display:none}
 .balloon .history-toggle{right:4px}
 .balloon .stage-sound{left:16px;top:52px}
 .balloon .balloon-players{top:95px}
 .balloon .flight-label{height:724px;bottom:auto}
 .balloon .flight-label span{font-size:14px;line-height:20px}
 .balloon .flight-countdown{top:376px}
 .balloon .flight-betting{position:absolute;inset:0;margin:0;padding:0;min-height:0;background:transparent;pointer-events:none;z-index:3}
 .balloon .flight-betting:before{content:'';position:absolute;left:5px;top:535px;width:370px;height:165px;border-radius:16px;background:#ffffff26}
 .balloon .flight-betting>*{pointer-events:auto}
 .balloon .stake-controls{position:absolute;left:12px;top:573px;bottom:auto;width:auto;display:flex;flex-direction:row;gap:6px}
 .balloon .quick-stakes{display:grid;grid-template-columns:69px 69px;gap:4px 5px}
 .balloon .quick-stake{width:69px;height:24px;font:600 14px/14px Inter,sans-serif}
 .balloon .stake-actions{display:grid;grid-template-columns:64px;gap:4px}
 .balloon .stake-actions button{width:64px;height:24px;font-size:16px}
 .balloon .positions{position:absolute;left:240px;top:578px;width:128px;max-width:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:8px}
 .balloon .position{position:static}
 .balloon .position-amount,.balloon .position small{display:none}
 .balloon .cash-button{width:128px;height:50px;padding:0 8px;display:flex;align-items:center;justify-content:space-between}
 .balloon .cash-button img{width:40px;height:43px}
 .balloon .auto-control,.balloon .position:first-child .auto-control,.balloon .position:last-child .auto-control{position:absolute!important;display:flex!important;top:-35px!important;left:-222px;right:auto;bottom:auto;width:150px;height:24px;margin:0;padding:0;min-height:0;flex-wrap:nowrap;gap:5px}
 .balloon .position:nth-child(2) .auto-control,.balloon .position:last-child .auto-control{left:-67px}
 .balloon .auto-control input[type=checkbox]{width:43px;height:20px}
 .balloon .auto-control>input[type=number]{width:55px;height:24px}
}
/* Players drawer rows: reference Gotham 10px list under the profile toggle. */
.balloon #balloon-player-list{padding:6px 4px;display:grid;gap:4px;background:transparent}
.balloon .balloon-player{display:grid;grid-template-columns:16px 1fr auto;gap:5px;align-items:center;width:130px;font:500 10px/14px Gotham,sans-serif;color:#000}
.balloon .balloon-player img{width:16px;height:16px;border-radius:50%}
.balloon .balloon-player span{font-weight:700;white-space:nowrap;overflow:hidden}
.balloon .balloon-player.won b{color:#008826}
