/* Banana loader + Banana Golf, shared by pages outside the Video Studio (Banana Computer).
   Copied from editor.css, which keeps its own rules for the studio. */
.bl { --bl: 56px; position: relative; display: inline-block; width: var(--bl); height: var(--bl); flex-shrink: 0; }
.bl-banana { position: absolute; left: 10%; top: 14%; width: 80%; height: 62%; transform-origin: 50% 85%; animation: bl-hop 1.1s cubic-bezier(.5, 0, .5, 1) infinite; overflow: visible; }
.bl-shadow { position: absolute; left: 26%; right: 26%; bottom: 8%; height: 7%; border-radius: 50%; background: rgba(0,0,0,.16); animation: bl-shadow 1.1s cubic-bezier(.5, 0, .5, 1) infinite; }
.bl-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(255,154,0,.45); animation: bl-spin 6s linear infinite; }
.bl-spark { position: absolute; width: 14%; height: 14%; background: #FF9A00; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: bl-twinkle 1.6s ease-in-out infinite; }
.bl-spark.s1 { top: 4%; right: 6%; }
.bl-spark.s2 { top: 34%; left: -2%; width: 10%; height: 10%; animation-delay: .5s; background: #FFD93D; }
.bl-spark.s3 { bottom: 14%; right: -2%; width: 9%; height: 9%; animation-delay: 1s; }
.bl-sm .bl-banana { left: 2%; top: 14%; width: 96%; height: 72%; }
.bl-sm .bl-shadow { display: none; }
@keyframes bl-hop {
  0%, 100% { transform: translateY(8%) rotate(-8deg) scale(1.1, .9); }
  18% { transform: translateY(0) rotate(-4deg) scale(.96, 1.06); }
  50% { transform: translateY(-16%) rotate(10deg) scale(1, 1); }
  82% { transform: translateY(0) rotate(-2deg) scale(.98, 1.04); }
}
@keyframes bl-shadow { 0%, 100% { transform: scaleX(1.15); opacity: 1; } 50% { transform: scaleX(.65); opacity: .45; } }
@keyframes bl-spin { to { transform: rotate(360deg); } }
@keyframes bl-twinkle { 0%, 100% { transform: scale(.3) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bl-banana, .bl-shadow, .bl-ring, .bl-spark { animation-duration: 3s; } }
.bc { position: absolute; inset: 0; z-index: 12; display: flex; flex-direction: column; background: #FFF7DB; animation: gen-fade .2s ease-out; }
@keyframes gen-fade { from { opacity: 0; } to { opacity: 1; } }
.bc-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; background: rgba(255,255,255,.75); border-bottom: 1px solid rgba(0,0,0,.06); color: #121212; }
.bc-score { display: flex; align-items: baseline; gap: 10px; font-size: 12px; color: #5E5A55; }
.bc-score > b { font-size: 20px; color: #121212; font-variant-numeric: tabular-nums; min-width: 26px; }
.bc-lives { color: #E8362B; letter-spacing: 2px; font-size: 14px; }
.bc-status { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 600; color: #5E5A55; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.bc-status.ready { color: #0E8A4F; }
.bc-x { width: 32px; height: 32px; border: 0; border-radius: 9px; background: rgba(0,0,0,.06); font-size: 20px; line-height: 1; color: #121212; }
.bc-x:hover { background: rgba(0,0,0,.1); }
.bc-canvas { flex: 1; min-height: 0; width: 100%; display: block; touch-action: none; cursor: none; }
.bc-card { position: absolute; inset: 49px 0 0; display: grid; place-items: center; background: rgba(255,247,219,.55); backdrop-filter: blur(2px); }
.bc-card[hidden] { display: none; }
.bc-card-in { width: min(320px, calc(100% - 32px)); padding: 22px 20px 18px; text-align: center; background: #fff; border-radius: 18px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.35); color: #121212; }
.bc-card-in h3 { margin: 6px 0 6px; font-size: 18px; }
.bc-card-in p { margin: 0 0 6px; font-size: 13px; color: #5E5A55; line-height: 1.45; }
.bc-card-in .bc-big { font-size: 40px; font-weight: 800; color: #121212; margin: 4px 0; }
.bc-keys { font-size: 11.5px !important; color: #9A948C !important; }
.bc-logo { display: flex; justify-content: center; }
.bc-btns { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.bc-btns button { height: 40px; border-radius: 10px; border: 1px solid #E6E2DC; background: #fff; font-weight: 700; font-size: 13.5px; color: #121212; }
.bc-btns button.primary { border: 0; background: #FF9A00; color: #fff; }
.bc-btns button:focus-visible { outline: 2px solid #FF9A00; outline-offset: 2px; }
@media (max-width: 760px) { .gen-card { top: 8px; gap: 8px; } .gen-card .bl { --bl: 38px !important; } .gen-card-s { display: none; } }

/* Game picker + Banana Golf */
.gp-list { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 16px; max-width: 460px; width: 100%; margin: 0 auto; }
.gp-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; border: 1px solid #EADFC4; border-radius: 16px; background: #fff; text-align: left; color: #121212; box-shadow: 0 8px 24px -16px rgba(0,0,0,.3); transition: transform .12s, border-color .12s; }
.gp-item:hover { transform: translateY(-1px); border-color: #FF9A00; }
.gp-item:focus-visible { outline: 2px solid #FF9A00; outline-offset: 2px; }
.gp-art { width: 64px; height: 64px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: #FFF3D6; overflow: hidden; }
.gp-golf { background: radial-gradient(circle at 62% 40%, #1C1B1F 0 9%, transparent 10%), radial-gradient(circle at 40% 62%, #FFD93D 0 11%, #E6B800 12%, transparent 13%), linear-gradient(160deg, #57C97D, #2F9E57); }
.gp-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gp-txt b { font-size: 14.5px; }
.gp-txt em { font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: #121212; color: #fff; vertical-align: 2px; margin-left: 4px; }
.gp-txt > span { font-size: 12px; color: #5E5A55; }
.gp-go { font-size: 12.5px; font-weight: 700; color: #fff; background: #FF9A00; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.gp-title { font-size: 14px !important; min-width: 0 !important; }
.gp-view { border: 0; border-radius: 8px; padding: 5px 10px; background: #0E8A4F; color: #fff; font-weight: 700; font-size: 12px; }
.bg-view { position: relative; flex: 1; min-height: 0; }
.bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.bg-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 6px 12px; border-radius: 99px; background: rgba(18,18,18,.72); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; white-space: nowrap; }
.bg-hint:empty { display: none; }
.bg-total { font-weight: 700; color: #121212; }
.gp-loading { align-items: center; justify-content: center; gap: 8px; color: #5E5A55; font-weight: 600; font-size: 13px; }
.gp-loading p { margin: 0; }
.bg-banner { position: absolute; left: 50%; top: 18px; transform: translate(-50%, -8px); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 18px; border-radius: 14px; background: rgba(18,18,18,.72); color: #fff; backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; white-space: nowrap; }
.bg-banner.on { opacity: 1; transform: translate(-50%, 0); }
.bg-banner b { font-size: 15px; letter-spacing: -.01em; }
.bg-banner span { font-size: 12px; color: #FFD93D; font-weight: 700; }
.bg-power { position: absolute; right: 14px; top: 50%; width: 120px; height: 8px; margin-top: -4px; border-radius: 99px; background: rgba(0,0,0,.25); overflow: hidden; opacity: 0; transition: opacity .15s; transform: rotate(-90deg); transform-origin: right center; }
.bg-power.on { opacity: 1; }
.bg-power i { display: block; height: 100%; width: 0; border-radius: 99px; }
.bc-sound { font-size: 15px; }
.bg-scores { display: flex; justify-content: center; gap: 6px; margin: 8px 0 2px; }
.bg-sc { display: flex; flex-direction: column; align-items: center; min-width: 34px; padding: 4px 0; border-radius: 9px; background: #F4F1EA; font-weight: 800; font-size: 14px; color: #121212; }
.bg-sc i { font-style: normal; font-size: 10px; font-weight: 600; color: #9A948C; }
.bg-sc.under { background: #E3F6E9; color: #0E8A4F; }
.bg-sc.over { background: #FDECEA; color: #C0362B; }
