/* Holsha, 17.10.2026: кольорова оболонка міні-ігор (табло, кнопки, фон, вікна).
   Однакова для всіх ігор; кольори гри задає її index.html змінними --acc, --acc2, --bg1, --bg2. */
:root{--ink:#1f2547;--muted:#5c6384;--line:#d9ddef;--acc:#ff6b3d;--acc2:#ff3d7f;--bg1:#fff6ec;--bg2:#eaf2ff;--soft:color-mix(in srgb,var(--acc) 16%,#fff)}
html,html body{background:linear-gradient(160deg,var(--bg1) 0%,var(--bg2) 100%)!important;color:var(--ink)}

/* Шапка і табло */
html body .ba-game-head,html body .game-head{border-bottom:2px solid var(--soft)!important}
html body .ba-game-head h3,html body .game-head h1{color:var(--ink)!important;letter-spacing:-.02em}
html body .ba-game-head h3::before,html body .game-head h1::before{content:"";display:inline-block;width:.42em;height:.42em;margin-right:.35em;border-radius:50%;background:linear-gradient(135deg,var(--acc),var(--acc2));vertical-align:.12em}
html body .ba-kicker,html body .ba-stats,html body .ba-stats-top,html body .game-stats,html body .arcade-stat-value{color:var(--muted)!important}
html body .ba-stats-top b,html body .ba-stats b,html body .game-stats b,html body .arcade-stat-value b{color:var(--acc)!important;transition:transform .15s ease}

/* Поле: без чорної рамки, м'яка тінь і заокруглення */
html body .ba-game-layout,html body .ba-side,html body .t19-fill .ba-game-layout{background:transparent!important}
html body .ba-canvas-wrap,html body .ba-board-wrap,html body .field,html body .ba-stage{border:0!important;border-radius:14px;overflow:hidden;box-shadow:0 12px 30px rgba(31,37,71,.16),0 0 0 2px var(--soft)}
html body .ba-canvas-wrap canvas{background:transparent!important}

/* Кнопки керування */
html body .ba-controls-zone button,html body .ba-dpad button,html body .pad button,html body .ba-side button,html body .controls button{border:2px solid var(--line)!important;border-radius:12px!important;background:#fff!important;color:var(--ink)!important;box-shadow:0 3px 0 var(--line);transition:transform .08s ease,background .12s ease,color .12s ease}
html body .ba-controls-zone button:active,html body .ba-dpad button:active,html body .ba-dpad button.is-active,html body .pad button:active,html body .pad button.is-down,html body .ba-side button:active,html body .controls button:active{background:var(--acc)!important;border-color:var(--acc)!important;color:#fff!important;transform:translateY(2px);box-shadow:0 1px 0 var(--line)}
html body .ba-dpad .ba-boost,html body .ba-fire,html body .ba-primary{background:linear-gradient(135deg,var(--acc),var(--acc2))!important;border-color:transparent!important;color:#fff!important}

/* Звук і нижні кнопки */
html body .sound-btn,html body .ba-sound{border:2px solid var(--line)!important;border-radius:10px!important;background:#fff!important;color:var(--ink)!important}
html body .arcade-footer,html body .game-foot{border-top:2px solid var(--soft)!important}
html body .arcade-footer button,html body .game-foot button{color:var(--acc)!important;font-weight:700}

/* Вікна старту, рівня і кінця гри */
html body .ba-over,html body .overlay,html body .ba-modal{background:rgba(31,37,71,.38)!important;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
html body .ba-over-card,html body .card,html body .ba-modalcard,html body .ba-panel,html body .ba-start-card,html body .ba-level-card{border:0!important;border-top:5px solid var(--acc)!important;border-radius:18px!important;background:#fff!important;box-shadow:0 18px 44px rgba(31,37,71,.28)!important;animation:barvy-pop .22s ease-out}
html body .ba-over-card button,html body .card button,html body .ba-modalcard button,html body .ba-panel button,html body .ba-start-card button,html body .ba-level-card button,html body .ba-continue{border:0!important;border-radius:12px!important;background:linear-gradient(135deg,var(--acc),var(--acc2))!important;color:#fff!important;box-shadow:0 6px 16px color-mix(in srgb,var(--acc) 40%,transparent)!important}
html body .ba-toast{border:0!important;border-radius:999px!important;background:linear-gradient(135deg,var(--acc),var(--acc2))!important;color:#fff!important;box-shadow:0 8px 20px rgba(31,37,71,.25)}
@keyframes barvy-pop{from{transform:scale(.94);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){html body *{animation:none!important;transition:none!important}}

/* Інші назви тих самих частин у різних іграх */
html body .ba-resume-box,html body .ba-count,html body .ba-countdown,html body .ba-end-card,html body .ba-start-panel{border:0!important;border-top:5px solid var(--acc)!important;border-radius:18px!important;background:#fff!important;color:var(--ink)!important;box-shadow:0 18px 44px rgba(31,37,71,.28)!important}
html body .ba-end-card button,html body .ba-start-panel button,html body .ba-tap,html body .ba-start,html body .ba-submit,html body .ba-drop,html body .ba-fire,html body .ba-controls .ba-boost{border:0!important;border-radius:12px!important;background:linear-gradient(135deg,var(--acc),var(--acc2))!important;color:#fff!important;box-shadow:0 6px 16px color-mix(in srgb,var(--acc) 35%,transparent)!important}
html body .ba-controls button,html body .ba-actions button,html body .ba-reset,html body .ba-preview{border:2px solid var(--line)!important;border-radius:12px!important;background:#fff!important;color:var(--ink)!important;box-shadow:0 3px 0 var(--line)}
html body .ba-controls button:active,html body .ba-controls button.is-active,html body .ba-controls button.is-pressed,html body .ba-actions button:active,html body .ba-reset:active,html body .ba-preview:active{background:var(--acc)!important;border-color:var(--acc)!important;color:#fff!important}
html body .ba-tap:active,html body .ba-start:active,html body .ba-submit:active,html body .ba-drop:active,html body .ba-fire:active{transform:translateY(2px);filter:brightness(.95)}
