.ba{max-width:388px;margin:0 auto;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.ba button{font-family:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.ba-bar{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.5rem}
.ba-bar button{min-height:44px;min-width:88px;padding:0 .9rem;border:2px solid #b8693a;border-radius:6px;background:#0b1d24;color:#f0c36a;font-weight:700;font-size:.95rem;cursor:pointer}
.ba-bar button:disabled{opacity:.4;cursor:default}
.ba-mode{font-size:.85rem;font-weight:700;color:#475569}
.ba-field{position:relative;width:100%;height:70vh;height:clamp(380px,calc(100svh - 300px),780px);background:#0b1d24;border:3px solid #33251d;border-radius:8px;overflow:hidden;touch-action:none;box-shadow:0 0 0 2px #b8693a}
#ba-cv{display:block;touch-action:none;width:100%;height:100%}
.ba-panel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(320px,calc(100% - 24px));max-height:calc(100% - 24px);overflow:auto;padding:16px 16px 14px;background:#0b1d24;border:2px solid #d9a441;border-left-width:8px;border-radius:6px;color:#e9f3f1;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;padding-bottom:max(14px,env(safe-area-inset-bottom))}
.ba-panel[hidden]{display:none}
.ba-panel h2{font-size:1.45rem;font-weight:800;line-height:1.15;margin:0 0 .4rem;color:#f0c36a}
.ba-eyebrow{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:#5fe3d0;margin:0 0 .25rem;font-weight:700}
.ba-sub{font-size:.92rem;line-height:1.4;color:#b9d3d6;margin:0 0 .6rem}
.ba-big{font-size:2.6rem;font-weight:800;line-height:1.1;margin:0 0 .2rem;color:#e9f3f1}
.ba-stats{font-size:.9rem;color:#9fc4c8;margin:0 0 .7rem}
.ba-stats b{color:#e9f3f1}.ba-stats span{margin-left:.8rem}
.ba-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-height:48px;margin:.4rem 0 0;padding:.45rem .8rem;border:2px solid #b8693a;border-radius:6px;background:#173843;color:#e9f3f1;font-size:1rem;font-weight:700;cursor:pointer}
.ba-btn small{font-size:.75rem;font-weight:500;color:#9fc4c8}
.ba-primary{background:#d9a441;border-color:#f0c36a;color:#1a1208;font-size:1.1rem}
.ba-btn:active{transform:translateY(1px)}
.ba-btn:disabled{opacity:.45;cursor:default}
.ba-btn:focus-visible,.ba-bar button:focus-visible{outline:3px solid #5fe3d0;outline-offset:2px}
.ba-row{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.4rem 0;border-bottom:1px dashed #2a4a55}
.ba-row b{display:block;font-size:.95rem}.ba-row small{display:block;font-size:.75rem;color:#9fc4c8}
.ba-row .ba-buy{width:auto;min-width:92px;margin:0;font-size:.85rem}
.ba-pips{display:flex;gap:4px;margin-top:4px}
.ba-pips i{width:14px;height:6px;background:#173843;border:1px solid #2a4a55}.ba-pips i.on{background:#5fe3d0;border-color:#5fe3d0}
.ba-how{max-width:388px;margin:1rem auto 0;font-size:.92rem;line-height:1.5;color:#334155}
.ba-how h2{font-size:1.05rem;margin-bottom:.3rem}
.ba-how li{margin-left:1.1rem}
.ba-goal{display:flex;flex-wrap:wrap;align-items:baseline;gap:.15rem .6rem;margin:0 0 .6rem;padding:.45rem .6rem;border-left:4px solid #5fe3d0;background:#112c35;border-radius:4px}
.ba-goal small{flex:0 0 100%;font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;color:#5fe3d0}
.ba-goal b{font-size:.92rem;color:#e9f3f1;flex:1 1 auto}.ba-goal span{font-size:.8rem;color:#f0c36a;font-weight:700}
.ba-goal.ba-done{border-left-color:#f0c36a;background:#2a2412}.ba-goal.ba-done small{color:#f0c36a}
.ba-panel{animation:ba-in .22s ease-out}@keyframes ba-in{from{opacity:0;transform:translate(-50%,-47%)}to{opacity:1;transform:translate(-50%,-50%)}}
@media (prefers-reduced-motion:reduce){.ba *{animation:none!important;transition:none!important}}
html.pip-immersive .game-wrap,html.pip-native .game-wrap:fullscreen,.game-wrap:fullscreen{display:flex;flex-direction:column;max-width:none;padding:6px 8px;overflow:hidden}
html.pip-immersive .ba,.game-wrap:fullscreen .ba{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;max-width:none;width:100%;margin:0}
html.pip-immersive .ba-bar,.game-wrap:fullscreen .ba-bar{flex:0 0 auto;margin-bottom:6px}
html.pip-immersive .ba-field,.game-wrap:fullscreen .ba-field{flex:1 1 auto;min-height:0;height:auto;width:100%}
html.pip-immersive .ba-how,html.pip-immersive .game-title,html.pip-immersive .pip-actions,.game-wrap:fullscreen .ba-how,.game-wrap:fullscreen .game-title,.game-wrap:fullscreen .pip-actions{display:none}
@media (orientation:landscape) and (max-height:520px){html.pip-immersive .ba-bar button,.game-wrap:fullscreen .ba-bar button{min-height:44px}html.pip-immersive .ba-panel,.game-wrap:fullscreen .ba-panel{padding:10px 14px}}
@media (orientation:landscape) and (max-height:520px){
html.pip-immersive .game-wrap,html.pip-native .game-wrap:fullscreen{padding:4px 6px}
html.pip-immersive .ba,html.pip-native .ba,.game-wrap:fullscreen .ba{flex-direction:row;align-items:stretch;gap:6px}
html.pip-immersive .ba-bar,html.pip-native .ba-bar,.game-wrap:fullscreen .ba-bar{flex-direction:column;justify-content:flex-start;gap:8px;margin:0;width:104px;flex:0 0 104px}
html.pip-immersive .ba-bar button,html.pip-native .ba-bar button,.game-wrap:fullscreen .ba-bar button{width:100%;min-width:0;padding:0 .4rem}
html.pip-immersive .ba-mode,html.pip-native .ba-mode,.game-wrap:fullscreen .ba-mode{font-size:.75rem;text-align:center}
html.pip-immersive .ba-field,html.pip-native .ba-field,.game-wrap:fullscreen .ba-field{flex:1 1 0;min-width:0}
html.pip-immersive .ba-panel.ba-up,html.pip-native .ba-panel.ba-up,.game-wrap:fullscreen .ba-panel.ba-up{display:grid;grid-template-columns:1fr 1fr;column-gap:14px;align-content:start;width:min(640px,calc(100% - 16px));max-height:calc(100% - 16px);padding:8px 12px}
html.pip-immersive .ba-panel.ba-up h2,html.pip-native .ba-panel.ba-up h2,.game-wrap:fullscreen .ba-panel.ba-up h2{grid-column:1;margin:0;font-size:1.15rem}
html.pip-immersive .ba-panel.ba-up .ba-stats,html.pip-native .ba-panel.ba-up .ba-stats,.game-wrap:fullscreen .ba-panel.ba-up .ba-stats{grid-column:2;margin:0;align-self:center;text-align:right}
html.pip-immersive .ba-panel.ba-up .ba-row,html.pip-native .ba-panel.ba-up .ba-row,.game-wrap:fullscreen .ba-panel.ba-up .ba-row{padding:3px 0}
html.pip-immersive .ba-panel.ba-up .ba-row small,html.pip-native .ba-panel.ba-up .ba-row small,.game-wrap:fullscreen .ba-panel.ba-up .ba-row small{display:none}
html.pip-immersive .ba-panel.ba-up .ba-btn,html.pip-native .ba-panel.ba-up .ba-btn,.game-wrap:fullscreen .ba-panel.ba-up .ba-btn{min-height:44px;margin-top:3px}
html.pip-immersive .ba-panel.ba-up .ba-row .ba-buy,html.pip-native .ba-panel.ba-up .ba-row .ba-buy,.game-wrap:fullscreen .ba-panel.ba-up .ba-row .ba-buy{margin:0;min-width:84px;width:auto}
html.pip-immersive .ba-panel.ba-up>.ba-primary,html.pip-native .ba-panel.ba-up>.ba-primary,.game-wrap:fullscreen .ba-panel.ba-up>.ba-primary{grid-column:1/-1}
html.pip-immersive .ba-panel[hidden],html.pip-native .ba-panel[hidden],.game-wrap:fullscreen .ba-panel[hidden]{display:none}
}
