/* Brain Gym */
.bg-wrap { width: 100%; max-width: 720px; margin: 0 auto; align-self: stretch; box-sizing: border-box; }
.bg-wrap h3 { margin: 12px 0 8px; font-size: 1.05rem; }
.bg-today { padding: 14px; border-radius: 14px; background: linear-gradient(160deg, rgba(34,197,94,.16), rgba(255,255,255,.04)); border: 1px solid rgba(74,222,128,.4); }
.bg-today h3 { margin: 0 0 4px; }
.bg-today p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.45; }
.bg-calmsw { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 14px; cursor: pointer; }
.bg-calmsw input { width: 20px; height: 20px; flex-shrink: 0; }
.bg-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bg-ex { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 4px; border-radius: 14px; border: 2px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: inherit; font: 700 14px system-ui, sans-serif; cursor: pointer; text-align: center; }
.bg-ex:hover { border-color: #67e8f9; }
.bg-ex small { font-size: 11px; font-weight: 600; opacity: .85; }
.bg-ico { font-size: 28px; }
.bg-hud { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font: 800 15px system-ui, sans-serif; }
.bg-title { flex: 1; min-width: 0; }
.bg-tb { display: flex; gap: 6px; flex-shrink: 0; }
.bg-tb button { background: rgba(15,23,42,.7); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 6px 10px; font: 700 14px system-ui, sans-serif; cursor: pointer; }
.bg-prog { height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; margin-bottom: 10px; }
.bg-prog i { display: block; height: 100%; width: 0; background: #4ade80; transition: width .25s; }
.bg-intro { padding: 22px 14px; text-align: center; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.bg-bigico { font-size: 56px; }
.bg-intro p { max-width: 460px; margin: 8px auto 14px; font-size: 17px; line-height: 1.45; }
.bg-stage { min-height: 320px; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); box-sizing: border-box; }
.bg-ask { margin: 0; font-size: 17px; font-weight: 700; text-align: center; }
.bg-big { font: 800 40px ui-monospace, Consolas, monospace; letter-spacing: .04em; text-align: center; }
.bg-word { font: 900 58px system-ui, sans-serif; }
.bg-shape { font-size: 86px; line-height: 1.1; color: #fde047; }
.bg-note { min-height: 24px; margin: 8px 0 0; text-align: center; font-weight: 700; }
.bg-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 460px; }
.bg-opts.bg-2 { max-width: 400px; }
.bg-opts button, .bg-pad button { min-height: 56px; border-radius: 12px; border: 2px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: inherit; font: 800 18px system-ui, sans-serif; cursor: pointer; }
.bg-opts button:hover, .bg-pad button:hover { border-color: #67e8f9; }
.bg-opts .bg-only { grid-column: 1 / -1; }
.bg-pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 8px; }
.bg-grid { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 6px; width: min(100%, 300px); aspect-ratio: 1; }
.bg-grid button { border-radius: 10px; border: 2px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); cursor: pointer; }
.bg-grid button.is-lit { background: #38bdf8; border-color: #bae6fd; }
.bg-grid button.is-wrong { background: #ef4444; }
.bg-hunt { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 5px; width: min(100%, 340px); aspect-ratio: 1; }
.bg-hunt button { border-radius: 10px; border: 2px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: inherit; font: 800 20px system-ui, sans-serif; cursor: pointer; }
.bg-hunt button:disabled { opacity: .2; cursor: default; }
.bg-next { color: #fde047; }
.bg-react { width: 100%; min-height: 240px; border-radius: 16px; border: 0; color: #fff; font: 900 30px system-ui, sans-serif; cursor: pointer; touch-action: manipulation; }
.bg-react.is-wait { background: #991b1b; }
.bg-react.is-go { background: #16a34a; }
.bg-res { text-align: center; }
.bg-res h3 { margin: 0 0 4px; font-size: 24px; }
.bg-stars { font-size: 34px; letter-spacing: 3px; }
.bg-yay { color: #86efac; font-weight: 700; }
.bg-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.bg-calm .bg-ask { font-size: 22px; }
.bg-calm .bg-big { font-size: 52px; }
.bg-calm .bg-word { font-size: 72px; }
.bg-calm .bg-opts button, .bg-calm .bg-pad button { min-height: 72px; font-size: 24px; }
.bg-calm .bg-pad { grid-template-columns: repeat(3, 88px); }
.bg-calm .bg-hunt button { font-size: 26px; }
.bg-calm .bg-note { font-size: 20px; }
.bg-calm .bg-ex { font-size: 16px; }
.bg-calm .bg-intro p { font-size: 21px; }
@media (max-width: 560px) { .bg-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bg-stage { padding: 12px; min-height: 300px; } .bg-word { font-size: 48px; } }
@media (prefers-reduced-motion: reduce) { .bg-prog i { transition: none; } }
