.bjg-standalone{margin:0;background:#fcfbf7}.bjg-app{--coral:#f05b47;--accent:#b73b2a;--ink:#404041;--muted:#696964;--line:#e7e5dd;--cream:#fcfbf7;--green:#386844;--blue:#315778;font:18px/1.55 Arial,"Noto Sans Hebrew",system-ui,sans-serif;color:var(--ink);background:var(--cream);min-height:100vh;isolation:isolate}.bjg-app *{box-sizing:border-box}.bjg-app [hidden]{display:none!important}.bjg-app h1,.bjg-app h2,.bjg-app h3,.bjg-app p{margin:0}.bjg-app h1{font-size:42px;line-height:1.18;font-weight:700;letter-spacing:-.025em}.bjg-app h2{font-size:27px;line-height:1.3}.bjg-app h3{font-size:23px;line-height:1.3}.bjg-app p{color:var(--muted)}.bjg-app button,.bjg-app input,.bjg-app select{font:inherit}.bjg-app button{cursor:pointer}.bjg-app button:disabled{cursor:default}.bjg-app a{color:var(--accent);text-underline-offset:4px}.bjg-app :focus-visible{outline:3px solid #315778;outline-offset:4px}.bjg-app .icon{display:block;width:48px;height:48px;flex-shrink:0}.bjg-app .skip{position:fixed;top:-70px;inset-inline-start:20px;z-index:100;background:#fff;padding:12px}.bjg-app .skip:focus{top:12px}.bjg-app .quiet{background:none;border:none;color:var(--accent);padding:10px 8px;font-size:16px;font-weight:700;text-decoration:underline;text-underline-offset:4px;min-height:44px}.bjg-app main{max-width:1220px;padding:38px 30px 55px;margin:auto;outline:0}.bjg-app .hero{display:grid;grid-template-columns:1.05fr 1fr;gap:10px;background:#f8eee7;border:1px solid #eedfd4;border-radius:30px;overflow:hidden;min-height:330px}.bjg-app .hero-copy{padding:42px 38px;display:flex;flex-direction:column;align-items:flex-start;gap:18px;justify-content:center}.bjg-app .hero h1{max-width:440px;font-size:46px}.bjg-app .hero p{max-width:490px;font-size:20px}.bjg-app .eyebrow{font-size:14px;font-weight:700;color:var(--accent);letter-spacing:.06em}.bjg-app .hero-art{display:flex;align-items:flex-end;justify-content:center;overflow:hidden}.bjg-app .landscape{width:100%;height:auto;min-width:310px;margin-bottom:20px;max-height:330px;direction:ltr}.bjg-app .landscape .icon{width:48px;height:48px}.bjg-app .welcome{color:var(--accent);font-weight:700;background:#ffffff9c;border-radius:12px;padding:8px 16px}.bjg-app .button{display:inline-flex;gap:9px;align-items:center;justify-content:center;min-height:54px;padding:12px 23px;border-radius:13px;border:1px solid #c6c8c0;background:#fff;color:var(--ink);font-weight:700;text-decoration:none;line-height:1.3}.bjg-app .button:hover:not(:disabled){background:#f6f2e9}.bjg-app .button.primary{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 4px 0 #89332420}.bjg-app .button.primary:hover:not(:disabled){background:#993124}.bjg-app .button:disabled{opacity:.6}.bjg-app .button.small{font-size:16px;padding:10px 14px;min-height:44px}.bjg-app .games-section{margin-top:40px}.bjg-app .section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.bjg-app .section-head p{margin-top:7px}.bjg-app .pill{display:inline-flex;align-items:center;gap:8px;line-height:1.3;font-size:15px;padding:8px 13px;border:1px solid #e8ded2;border-radius:30px;background:#fff8ec;color:#6f5c43;white-space:nowrap}.bjg-app .pill .icon{width:25px;height:25px}.bjg-app .routine-card{display:flex;gap:26px;align-items:center;margin-top:32px;padding:28px;border:1px solid #dce4d4;border-radius:24px;background:#eef3e8}.bjg-app .routine-card>div{flex:1}.bjg-app .routine-card h2{font-size:24px;margin-bottom:7px}.bjg-app .routine-games{font-size:16px;margin-top:8px!important;color:var(--green)}.bjg-app .routine-illustration{display:flex;gap:0}.bjg-app .routine-illustration .icon{width:49px;height:62px}.bjg-app footer{text-align:center;border-top:1px solid var(--line);background:#fff;padding:23px 25px 25px}.bjg-app footer p{font-size:16px}.bjg-app footer a{font-weight:700;display:inline-block}.bjg-app footer .medical-note{max-width:750px;margin:8px auto 0;font-size:13px;line-height:1.6}.bjg-app .back{display:inline-flex;gap:6px;align-items:center;color:var(--accent);padding:10px 0;margin-bottom:15px;min-height:44px;border:0;background:none;font-weight:700}.bjg-app .instructions{border:1px solid #e6dfd2;background:#f7f2e9;border-radius:24px;padding:25px}.bjg-app .instructions h2{font-size:23px;margin-bottom:12px}.bjg-app .instructions p{line-height:1.65}.bjg-app fieldset{border:0;margin:23px 0 0;padding:0}.bjg-app legend{font-weight:700;margin-bottom:11px}.bjg-app .levels{display:flex;gap:7px;flex-wrap:wrap}.bjg-app .level{border:1px solid #d4ccbe;background:#fff;border-radius:10px;padding:11px 12px;font-size:16px;min-height:46px;color:var(--ink)}.bjg-app .level.selected{background:var(--ink);color:#fff;border-color:var(--ink)}.bjg-app .instruction-art{display:flex;gap:15px;margin:30px 0 18px;justify-content:center}.bjg-app .instruction-art .icon{width:55px;height:55px}.bjg-app .target-token{display:flex;align-items:center;gap:8px;background:#fff8e6;border:1px solid #ead9b5;border-radius:18px;padding:10px 16px}.bjg-app .target-token strong{font-size:35px}.bjg-app .color-dot{display:block;width:29px;height:29px;border:2px solid #55555560;border-radius:50%}.bjg-app .error{color:#a12d22;min-height:0;line-height:1.5;font-size:17px}.bjg-app .error:not(:empty){padding:12px;margin:10px 0;border:1px solid #efcbc4;border-radius:10px;background:#fff2ef}.bjg-app .small-note{font-size:14px;line-height:1.6;color:var(--muted)}.bjg-app .lead{font-size:20px;margin-top:13px;margin-bottom:26px}.bjg-app .progress-page,.bjg-app .staff-page{padding:10px 0}.bjg-app .stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:27px 0}.bjg-app .stat-grid>div{background:#fff;border:1px solid var(--line);border-radius:19px;padding:23px;display:flex;flex-direction:column;gap:8px}.bjg-app .stat-grid span{font-size:16px;color:var(--muted)}.bjg-app .stat-grid strong{font-size:38px;line-height:1.2}.bjg-app .progress-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:28px 0}.bjg-app .progress-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:25px;min-width:0}.bjg-app .progress-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.bjg-app .progress-card-title h2{font-size:23px}.bjg-app .bar-chart{display:flex;align-items:flex-end;gap:8px;height:195px;margin:15px 0;border-bottom:1px solid var(--line);direction:ltr}.bjg-app .bar-column{display:flex;flex:1;min-width:0;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px;font-size:13px;max-width:70px}.bjg-app .bar-column .bar{width:70%;background:#ed9987;border-radius:7px 7px 0 0;min-width:5px}.bjg-app .bar-column:last-child .bar{background:var(--coral)}.bjg-app .bar-column small{font-size:10px;white-space:nowrap}.bjg-app .trend{display:inline-block;padding:5px 12px;border-radius:20px;font-size:15px;margin-top:9px;background:#eee;color:#555}.bjg-app .trend.up,.bjg-app .report-trend.up{color:#285b35;background:#e5efdf}.bjg-app .trend.down,.bjg-app .report-trend.down{color:#834f24;background:#f6ebd7}.bjg-app .table-wrap{overflow-x:auto;background:#fff;border:1px solid var(--line);border-radius:18px;margin:18px 0}.bjg-app table{border-collapse:collapse;width:100%;font-size:16px;text-align:start;min-width:590px}.bjg-app th{text-align:start;background:#f1f3eb;color:var(--ink);padding:17px 19px}.bjg-app td{padding:16px 19px;border-top:1px solid var(--line)}.bjg-app .report-trend{display:block;font-size:13px;margin-bottom:4px;border-radius:7px;padding:5px 8px;background:#f3f3f0}.bjg-app .staff-filters{display:flex;align-items:flex-end;gap:20px;flex-wrap:wrap}.bjg-app label{font-weight:700;display:block;font-size:17px}.bjg-app input,.bjg-app select{display:block;background:#fff;border:1px solid #bfc0b5;border-radius:11px;min-height:52px;padding:10px 14px;color:var(--ink);width:100%;min-width:0}.bjg-app .staff-filters input{min-width:240px}.bjg-app .staff-filters label{display:flex;flex-direction:column;gap:7px}.bjg-app .empty{text-align:center;padding:60px 25px;display:flex;flex-direction:column;align-items:center;gap:20px}.bjg-app .empty .icon{width:78px;height:78px}.bjg-app .result-page{max-width:790px;text-align:center;margin:25px auto 35px;background:#fff;border:1px solid var(--line);border-radius:30px;padding:42px 38px;display:flex;flex-direction:column;align-items:center;gap:20px}.bjg-app .result-page h1{font-size:37px}.bjg-app .celebration{padding:22px;border-radius:50%;background:#fbeadf}.bjg-app .celebration .icon{width:82px;height:82px}.bjg-app .positive{color:var(--green);font-weight:700;font-size:21px}.bjg-app .result-metrics{display:flex;justify-content:center;gap:40px;flex-wrap:wrap;margin:12px 0;width:100%}.bjg-app .result-metrics>div{display:flex;flex-direction:column;gap:6px}.bjg-app .result-metrics strong{font-size:42px;line-height:1.1}.bjg-app .result-metrics span{font-size:15px;color:var(--muted)}.bjg-app .result-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.bjg-app .save-status{font-size:16px}.bjg-app .auth-page{max-width:560px;margin:20px auto}.bjg-app .auth-card{background:#fff;border:1px solid var(--line);border-radius:26px;padding:32px;text-align:start}.bjg-app .auth-card h1{font-size:34px;margin:13px 0}.bjg-app .auth-card>p{margin-bottom:20px}.bjg-app .auth-card form{display:flex;flex-direction:column;gap:10px}.bjg-app .auth-card form>label:not(:first-child){margin-top:8px}.bjg-app .auth-card form>.button{margin-top:10px}.bjg-app .auth-card>.small-note{margin:15px 0 0}.bjg-app .modal-icon{display:flex;justify-content:center}.bjg-app .modal-icon .icon{width:65px;height:65px}.bjg-app .auth-tabs{display:flex;gap:6px;background:#f5f3eb;padding:5px;border-radius:12px;margin:20px 0}.bjg-app .auth-tabs button{flex:1;border:0;background:transparent;color:var(--muted);border-radius:8px;min-height:45px;padding:8px;font-weight:700}.bjg-app .auth-tabs button[aria-pressed=true]{background:#fff;color:var(--accent);box-shadow:0 1px 3px #3331}.bjg-app .modal{font:inherit;color:var(--ink);border:1px solid var(--line);border-radius:25px;width:min(580px,calc(100vw - 28px));max-height:calc(100dvh - 35px);padding:32px;overflow-y:auto;background:var(--cream)}.bjg-app .modal::backdrop{background:#24272088}.bjg-app .modal h2{margin:15px 0}.bjg-app .modal p{margin:10px 0 20px}.bjg-app .modal .auth-card{border:0;background:none;padding:0}.bjg-app .modal-close{float:inline-end;width:44px;height:44px;min-height:44px;border:1px solid var(--line);border-radius:50%;font-size:28px;line-height:1;background:#fff;color:var(--ink)}.bjg-app .dialog-actions{display:flex;gap:12px;flex-wrap:wrap}.bjg-app.large-text{font-size:21px}.bjg-app.large-text p,.bjg-app.large-text label{font-size:21px}.bjg-app.large-text .small-note{font-size:17px}
@media(max-width:1100px){.bjg-app .hero h1{font-size:40px}.bjg-app .routine-illustration{display:none}}
@media(max-width:800px){.bjg-app main{padding:26px 20px 40px}.bjg-app .hero{grid-template-columns:1fr;border-radius:24px}.bjg-app .hero-copy{padding:32px 28px}.bjg-app .hero h1{max-width:600px;font-size:40px}.bjg-app .hero-art{max-height:220px}.bjg-app .landscape{max-width:470px;margin:0 auto 10px}.bjg-app .instructions{width:100%;padding:20px}.bjg-app .instructions .instruction-art,.bjg-app .instructions>.small-note{display:none}.bjg-app .instructions>p{font-size:16px}.bjg-app .instructions h2{font-size:21px;margin-bottom:6px}.bjg-app fieldset{margin:14px 0 0}.bjg-app legend{margin-bottom:7px;font-size:16px}.bjg-app .levels{flex-wrap:nowrap}.bjg-app .level{flex:1}.bjg-app .stat-grid{grid-template-columns:repeat(2,1fr)}.bjg-app .progress-cards{grid-template-columns:1fr}.bjg-app .routine-card{flex-direction:column;align-items:flex-start;padding:23px}.bjg-app .routine-card .button{width:100%}}
@media(max-width:500px){.bjg-app{font-size:17px}.bjg-app main{padding:20px 14px 35px}.bjg-app h1{font-size:33px}.bjg-app h2{font-size:24px}.bjg-app .hero-copy{padding:27px 23px;gap:14px}.bjg-app .hero h1{font-size:35px}.bjg-app .hero p{font-size:18px}.bjg-app .hero-art{max-height:170px}.bjg-app .eyebrow{font-size:12px}.bjg-app .hero .button{font-size:16px;width:100%}.bjg-app .section-head{align-items:flex-start}.bjg-app .section-head>.pill{display:none}.bjg-app .games-section{margin-top:28px}.bjg-app .number-tile{font-size:23px}.bjg-app .instructions{border-radius:18px;padding:17px}.bjg-app .stat-grid{gap:10px}.bjg-app .stat-grid>div{padding:18px}.bjg-app .stat-grid strong{font-size:33px}.bjg-app .stat-grid span{font-size:14px}.bjg-app .lead{font-size:18px}.bjg-app .progress-card{padding:18px}.bjg-app .progress-card-title{flex-wrap:wrap;gap:6px}.bjg-app .bar-chart{gap:5px}.bjg-app .bar-column small{font-size:9px}.bjg-app .result-page{padding:28px 20px;margin-top:10px}.bjg-app .result-page h1{font-size:29px}.bjg-app .result-metrics{gap:23px}.bjg-app .result-metrics strong{font-size:35px}.bjg-app .result-metrics span{font-size:12px}.bjg-app .result-actions{width:100%;flex-direction:column}.bjg-app .result-actions .button{width:100%}.bjg-app .auth-card{padding:24px 20px}.bjg-app .modal{padding:23px}.bjg-app .staff-filters{gap:13px}.bjg-app .staff-filters>label{width:100%}.bjg-app .staff-filters .button{width:100%}.bjg-app footer{padding:20px 15px}.bjg-app footer p{font-size:14px}.bjg-app footer .medical-note{font-size:12px}}
@media(prefers-reduced-motion:reduce){.bjg-app *{scroll-behavior:auto!important;transition:none!important}}.bjg-app .hint-actions{display:flex;align-items:flex-start;gap:12px;margin-top:12px;flex-wrap:wrap}.bjg-app .hint-actions small{font-size:15px;line-height:1.4;max-width:480px}.bjg-app .hint-summary{margin:14px 0}.bjg-app .other-name{margin:16px 0}.bjg-app .other-name summary{cursor:pointer;color:var(--accent);font-weight:bold}.bjg-app .other-name p{font-size:16px;margin:10px 0}.bjg-app .name-choices{display:flex;flex-direction:column;gap:8px;margin:15px 0}.bjg-app .name-choices label{display:flex;align-items:center;gap:10px}.bjg-app .name-choices input{width:22px;height:22px;flex-shrink:0}
@media(max-width:500px){.bjg-app .hint-actions small{font-size:14px}}
.bjg-app .scroll-guide{position:fixed;bottom:12px;inset-inline-end:12px;z-index:10;background:var(--accent);color:white;border:2px solid white;border-radius:15px;padding:12px 18px;min-height:48px;font-weight:700;box-shadow:0 3px 12px #0003;animation:bjg-guide 2.5s ease-in-out infinite}@keyframes bjg-guide{50%{box-shadow:0 0 0 5px #b73b2a33}}@media(prefers-reduced-motion:reduce){.bjg-app .scroll-guide{animation:none}}.bjg-app .distraction-pulse{animation:bjg-pulse var(--effect-time,4s) ease-in-out var(--effect-delay,0s) infinite}.bjg-app .distraction-tilt{animation:bjg-tilt var(--effect-time,4s) ease-in-out var(--effect-delay,0s) infinite}@keyframes bjg-pulse{0%,100%{opacity:1}50%{opacity:.35}}@keyframes bjg-tilt{0%,100%{transform:rotate(calc(var(--effect-angle,4deg) * -1))}50%{transform:rotate(var(--effect-angle,4deg))}}.bjg-app .tutorial-modal{max-width:520px;padding:20px 24px}.bjg-app .tutorial-modal h2{font-size:25px;margin:10px 44px 8px 0}.bjg-app[dir=rtl] .tutorial-modal h2{margin:10px 0 8px 44px}.bjg-app .tutorial-modal p{margin:8px 0}.bjg-app .tutorial-counter{font-size:15px;color:var(--accent);font-weight:700}.bjg-app .tutorial-instruction{font-size:18px;line-height:1.4;min-height:50px}.bjg-app .tutorial-example{text-align:center;margin:12px 0}.bjg-app .tutorial-target{display:flex;align-items:center;justify-content:center;gap:12px;min-height:45px;margin-bottom:20px;font-size:18px}.bjg-app .tutorial-target strong{font-size:32px;color:var(--accent)}.bjg-app .tutorial-target .icon{width:50px;height:50px}.bjg-app .tutorial-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:270px;margin:20px auto 12px}.bjg-app .tutor-tile{position:relative;aspect-ratio:auto;min-height:72px;font-size:30px}.bjg-app .tutor-tile .icon{width:46px;height:46px}.bjg-app .tutorial-focus{position:relative;border:3px solid var(--blue)!important;box-shadow:0 0 0 3px #d5e6f4;background:#edf4fb!important;color:var(--ink)!important}.bjg-app .tutorial-arrow{position:absolute;top:-28px;left:50%;transform:translateX(-50%);color:var(--blue);font-size:28px;line-height:1;font-weight:700;pointer-events:none}.bjg-app .tutorial-goal{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;background:#e8efdf;padding:16px;max-width:310px}.bjg-app .tutorial-goal .tile{min-height:52px}.bjg-app .tutorial-empty{min-height:20px;border:1px dashed #b9caae;border-radius:5px}.bjg-app .tutorial-example>[data-tutor-reveal],.bjg-app .tutorial-example>[data-tutor-wait]{margin-top:25px}.bjg-app .tutorial-shelf{border-bottom:5px solid #c5a888}.bjg-app .tutorial-arrows{grid-template-columns:repeat(3,minmax(0,1fr));max-width:310px}.bjg-app .tutorial-signal{padding:12px;border-radius:14px;font-size:30px;margin-bottom:26px}.bjg-app .tutorial-signal strong{font-size:19px}.bjg-app .tutorial-signal.go{background:#e4efdf;color:#285e34}.bjg-app .tutorial-signal.stop{background:#fbe3dc;color:#a63827}.bjg-app .tutorial-feedback{font-size:15px;min-height:22px;color:var(--blue)}.bjg-app .tutorial-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:16px}
@media(max-width:500px){.bjg-app .tutorial-modal{padding:16px;max-height:calc(100dvh - 16px)}.bjg-app .tutorial-modal h2{font-size:22px}.bjg-app .tutorial-instruction{font-size:17px}.bjg-app .tutorial-grid{max-width:230px;gap:16px}.bjg-app .tutor-tile{min-height:62px}.bjg-app .tutorial-goal{max-width:270px;gap:10px;padding:12px}.bjg-app .tutorial-actions .button{font-size:17px;padding:10px 16px}}
@media(prefers-reduced-motion:reduce){.bjg-app .distraction-pulse,.bjg-app .distraction-tilt{animation:none!important;opacity:1;transform:none}}
/* Dutch canal boats and a 4-by-4 sequence of tulips. */
.bjg-app .boat-rule{padding:10px 14px;border-radius:12px;font-weight:700;font-size:18px;text-align:center;margin-bottom:10px}.bjg-app .boat-rule.bow{background:#fff0a9;color:#504820;border:1px solid #ddbd48}.bjg-app .boat-rule.motion{background:#fae2dc;color:#8b3026;border:1px solid #dc8d7e}.bjg-app .canal-scene{position:relative;height:200px;overflow:hidden;touch-action:none;background:repeating-linear-gradient(0deg,#c6e1e4 0,#c6e1e4 32px,#bad7dd 33px,#c6e1e4 35px);border:2px solid #9fc5ca;border-radius:17px;direction:ltr}.bjg-app .canal-bank{position:absolute;inset:0 0 auto;display:flex;justify-content:space-around;background:#e7eddb;height:42px;opacity:.65}.bjg-app .canal-bank .icon{height:40px;width:40px}.bjg-app .canal-vessel{position:absolute;top:0;left:0;width:76px;height:76px;display:flex;align-items:center;justify-content:center;pointer-events:none}.bjg-app .canal-boat{display:block;width:76px;height:48px;overflow:visible}.bjg-app .canal-motion-cue{display:none;position:absolute;top:75px;right:22px;font-size:40px;color:#315778}.bjg-app .calm-canal .canal-motion-cue{display:block}.bjg-app .boat-swipe-hint{text-align:center;font-size:15px;margin:8px 0}.bjg-app .boat-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-width:460px;margin:auto}.bjg-app .boat-controls small{font-size:13px}.bjg-app .flower-instruction{text-align:center;font-size:18px;margin-bottom:8px}.bjg-app .flower-count{text-align:center;font-size:15px;margin-bottom:10px;color:var(--accent)}.bjg-app .flower-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-width:400px;margin:auto}.bjg-app .flower-tile{position:relative;min-height:56px;aspect-ratio:1.15;background:#f5f1e8}.bjg-app .flower-tile .icon{width:65%;height:65%}.bjg-app .flower-tile small{position:absolute;bottom:4px;right:6px;font-size:12px;color:var(--muted)}.bjg-app .tile.flower-lit{background:#ffe998;border:3px solid #b1851d;box-shadow:inset 0 0 0 3px #ffefba}.bjg-app .tile.flower-pressed{background:#e0eed6;border-color:#386844}.bjg-app .tutorial-flowers{grid-template-columns:repeat(4,minmax(0,1fr));max-width:280px;gap:9px}.bjg-app .tutorial-flowers .tile{padding:5px;min-height:46px}.bjg-app .tutorial-flowers .icon{width:28px;height:28px}.bjg-app [data-tutor-watch]{margin-top:22px}.bjg-app .tutorial-canal{position:relative;height:105px;background:#c6e1e4;border-radius:15px;overflow:hidden;direction:ltr}.bjg-app .tutorial-demo-boat{position:absolute;top:30px;left:calc(50% - 38px);animation:bjg-boat-up 3s linear infinite}.bjg-app .tutorial-demo-boat.demo-down{animation-name:bjg-boat-down}.bjg-app .tutorial-motion-arrow{position:absolute;right:22px;top:30px;font-size:32px;color:#315778}.bjg-app .tutorial-canal+.tutorial-arrows{grid-template-columns:repeat(4,minmax(0,1fr))}@keyframes bjg-boat-up{from{transform:translateY(32px)}to{transform:translateY(-30px)}}@keyframes bjg-boat-down{from{transform:translateY(-30px)}to{transform:translateY(32px)}}
@media(max-width:500px){.bjg-app .canal-scene{height:180px}.bjg-app .boat-rule{font-size:17px;padding:8px}.bjg-app .boat-controls{gap:6px}.bjg-app .flower-grid{gap:7px}.bjg-app .flower-tile{padding:6px;min-height:54px}.bjg-app .flower-instruction{font-size:17px}.bjg-app .tutorial-flowers{max-width:250px;gap:8px}.bjg-app .tutorial-flowers .tile{min-height:44px}.bjg-app .tutorial-canal+.tutorial-arrows{gap:9px}}
@media(prefers-reduced-motion:reduce){.bjg-app .tutorial-demo-boat{animation:none}}.bjg-app .garden-panel{background:#f0f4e9;border:1px solid #d5dfca;border-radius:22px;padding:22px;margin:20px 0}.bjg-app .garden-panel h2{margin-bottom:10px}.bjg-app .garden-flowers{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin:18px 0}.bjg-app .garden-flower .icon{width:43px;height:52px}.bjg-app .garden-flower.waiting{opacity:.2;filter:grayscale(1)}.bjg-app .garden-count{text-align:center;font-weight:700;color:var(--green);margin-bottom:12px}.bjg-app .garden-badges{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.bjg-app .garden-badges>span{display:flex;align-items:center;gap:8px;background:white;border:1px solid #e1d6b8;border-radius:12px;padding:9px 12px;font-size:15px}.bjg-app .garden-badges .icon{width:27px;height:30px}.bjg-app .round-reward{display:flex;align-items:center;justify-content:center;gap:16px;background:#eef4e7;border-radius:15px;padding:14px 20px}.bjg-app .round-reward>.icon{width:45px;height:55px}.bjg-app .round-reward p{font-size:16px}@media(max-width:500px){.bjg-app .garden-panel{padding:17px}}

/* Profile consent, optional Google and participation titles */
.bjg-app .consent-check{display:flex;align-items:flex-start;gap:12px;padding:14px;border:2px solid #537c62;border-radius:12px;background:#f3f7ee;line-height:1.5}.bjg-app .consent-check input{width:26px;height:26px;min-width:26px;margin:3px 0;accent-color:#476b53}.bjg-app .privacy-policy{max-width:820px;margin:20px auto;line-height:1.7}.bjg-app .privacy-policy h2{font-size:1.18em;margin-top:22px}.bjg-app .privacy-link{display:inline-block;padding:6px 10px;text-decoration:underline}.bjg-app .google-choice{margin:12px 0}.bjg-app #google-provider{min-height:44px;direction:ltr;display:flex;justify-content:center}.bjg-app .rank-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.bjg-app .rank-card{padding:20px;background:#fff;border:1px solid #e1e7dc;border-radius:18px}.bjg-app .rank-card p{margin:8px 0}.bjg-app .rank-icon svg{width:48px;height:48px}.bjg-app .rank-card progress{width:100%;height:16px;accent-color:#557956}.bjg-app .rank-section{margin-top:24px}.bjg-app .streak-message{font-weight:700;color:#385d45}.bjg-app #staff-list td small{display:block;direction:ltr;overflow-wrap:anywhere}

/* 1.3: compact, tactile controls; the game is the focus of the first screen. */
.bjg-app{line-height:1.45;--press:#d9d6ce;--soft-coral:#fff0e8;--coral-edge:#ce4936}
.bjg-app .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.bjg-app .ui-icon{width:22px;height:22px;flex:none;display:block}
.bjg-app .topbar{background:#fff;border-bottom:2px solid var(--line)}
.bjg-app .top-inner{max-width:1120px;margin:auto;padding:8px 20px;display:flex;flex-direction:column;gap:4px}
.bjg-app .header-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:8px;width:100%;min-width:0}
.bjg-app .brand{grid-area:brand;display:block;min-width:0;text-decoration:none}
.bjg-app .brand img{display:block;width:154px;max-width:100%;height:35px;object-fit:contain;object-position:center}
.bjg-app .header-tools{display:flex;align-items:center;gap:6px;min-width:0;flex-shrink:0}
.bjg-app .language-select{width:78px;min-height:44px;height:44px;padding:5px 7px;border:2px solid var(--line);border-radius:12px;background:#fff;font-size:15px;font-weight:700}
.bjg-app .text-tool,.bjg-app .account-tool,.bjg-app .help-tool,.bjg-app .settings-tool,.bjg-app .pause-tool{display:flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:6px;border:2px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);box-shadow:0 2px 0 var(--press);font-weight:800}
.bjg-app .text-tool{direction:ltr;font-size:17px}
.bjg-app .text-tool span{font-size:12px}
.bjg-app nav{display:flex;gap:6px;align-items:center;justify-content:center;flex-wrap:nowrap;min-width:0;padding:0;border:0;order:initial;width:100%}
.bjg-app nav a{flex:1;max-width:210px;text-align:center;text-decoration:none;color:var(--muted);font-size:16px;line-height:1.25;font-weight:800;min-height:36px;display:flex;align-items:center;justify-content:center;padding:6px;border-radius:10px;border-bottom:0;white-space:normal}
.bjg-app nav a[aria-current]{color:var(--accent);background:var(--soft-coral);border:0}
.bjg-app .button{border:2px solid #ddd9d0;border-radius:15px;box-shadow:0 4px 0 var(--press);font-weight:800;min-height:46px;padding:9px 16px;font-size:18px;gap:8px}
.bjg-app .button.primary{background:var(--coral);border-color:var(--coral-edge);box-shadow:0 4px 0 #b83e2e;color:#fff;font-size:19px}
.bjg-app .button.primary:hover:not(:disabled){background:#df523f}
.bjg-app .button:active:not(:disabled){box-shadow:0 1px 0 var(--press)}
.bjg-app .button.primary:active:not(:disabled){box-shadow:0 1px 0 #b83e2e}
.bjg-app .button.small{min-height:44px;padding:8px 12px;font-size:16px}
.bjg-app.play-surface{display:flex;flex-direction:column;min-height:100dvh}
.bjg-app.play-surface main{width:100%;max-width:1040px;margin:0 auto;padding:14px 20px 20px;flex:1}
.bjg-app footer{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:2px 14px;padding:10px 12px;border-top:1px solid var(--line)}
.bjg-app footer p{font-size:13px;line-height:1.35}
.bjg-app footer .privacy-link{font-size:13px;padding:3px 0;min-height:24px}
.bjg-app .preview-note{font-size:12px;color:var(--muted)}
.bjg-app .gateway{max-width:700px;margin:auto;padding:4px 0;text-align:start}
.bjg-app .gateway-heading{display:flex;gap:12px;align-items:center;margin-bottom:18px}
.bjg-app .gateway-art{display:flex;align-items:center;justify-content:center;background:var(--soft-coral);border-radius:18px;width:62px;height:68px;flex-shrink:0}
.bjg-app .gateway-art .icon{width:42px;height:48px}
.bjg-app .gateway h1{font-size:32px;line-height:1.15;margin:0 0 5px}
.bjg-app .gateway-heading p{font-size:17px;line-height:1.35}
.bjg-app .entry-options{display:grid;grid-template-columns:1fr;gap:14px}
.bjg-app .entry-option{display:flex;align-items:center;gap:14px;text-align:start;background:#fff;border:2px solid #dedad2;border-radius:20px;box-shadow:0 4px 0 #dedad2;color:var(--ink);padding:16px;min-height:94px}
.bjg-app .entry-option:hover,.bjg-app .entry-option:focus-visible{border-color:var(--coral);background:#fff8f3}
.bjg-app .entry-option[data-guest]{background:var(--soft-coral);border-color:#efbaaa;box-shadow:0 4px 0 #e8aa96}
.bjg-app .entry-symbol{display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:48px;color:var(--accent)}
.bjg-app .entry-symbol .icon{width:38px;height:42px}
.bjg-app .entry-symbol .ui-icon{width:30px;height:30px}
.bjg-app .entry-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.bjg-app .entry-copy strong{font-size:23px;line-height:1.2;color:var(--accent)}
.bjg-app .entry-copy>span{font-size:16px;line-height:1.35;color:var(--muted)}
.bjg-app .entry-chevron{font-size:25px;color:var(--accent);flex:none}
.bjg-app .lobby{max-width:940px;margin:auto;min-width:0}
.bjg-app .lobby-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.bjg-app .lobby-heading>div{min-width:0;margin:0;flex:1}
.bjg-app .lobby h1{font-size:30px;line-height:1.2}
.bjg-app .player-status{font-size:14px;line-height:1.35;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:340px}
.bjg-app .garden-summary{display:flex;gap:6px;align-items:center;background:#fff0e7;color:var(--accent);border:2px solid #efc5b7;border-radius:14px;padding:6px 10px;min-height:44px;box-shadow:0 3px 0 #e5b2a1;flex:none}
.bjg-app .garden-summary .icon{width:24px;height:28px}
.bjg-app .carousel-hint{font-size:14px;font-weight:700;margin-bottom:8px;color:var(--muted)}
.bjg-app .game-carousel{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 40px)/5.5);gap:10px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#e7b4a5 transparent;padding:4px 0 10px;align-items:stretch}
.bjg-app .game-carousel::-webkit-scrollbar{height:5px}
.bjg-app .game-carousel::-webkit-scrollbar-thumb{background:#e7b4a5;border-radius:5px}
.bjg-app .game-card{scroll-snap-align:start;min-width:0;min-height:196px;display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:start;background:#fff;border:2px solid #e0dcd3;border-radius:19px;box-shadow:0 4px 0 #ded9cd;padding:14px;color:var(--ink);transition:border-color .12s}
.bjg-app .game-card:hover,.bjg-app .game-card:focus-visible{border-color:var(--coral);background:#fff9f4}
.bjg-app .game-icon{width:52px;height:54px;display:flex;align-items:center;justify-content:center;background:#f5f2eb;border-radius:15px;flex:none;padding:5px}
.bjg-app .game-icon .icon{width:100%;height:100%}
.bjg-app .memory-card .game-icon{background:#ffe9de}
.bjg-app .game-card h3{font-size:19px;line-height:1.2;min-height:0;overflow-wrap:anywhere}
.bjg-app .category{font-size:14px;line-height:1.3;font-weight:700;color:var(--muted)}
.bjg-app .card-bottom{margin-top:auto;padding-top:2px;display:flex;align-items:center;gap:4px;color:var(--accent);font-size:13px;line-height:1.2;white-space:nowrap}
.bjg-app .card-bottom .ui-icon{width:16px;height:16px}
.bjg-app .lobby-controls{display:flex;align-items:center;gap:10px;margin-top:12px}
.bjg-app .lobby-controls [data-all]{flex:1}
.bjg-app .carousel-arrow{width:48px;min-width:48px;min-height:48px;padding:6px;font-size:25px;line-height:1}
.bjg-app .routine-link{display:flex;align-items:center;gap:8px;justify-content:center;min-height:44px;padding:6px 10px;margin:14px auto 0;border:0;background:none;color:var(--accent);font-size:16px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.bjg-app .routine-link .icon{width:22px;height:28px}
.bjg-app .all-games-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:8px 0}
.bjg-app .all-games-grid .game-card{display:grid;grid-template-columns:44px minmax(0,1fr);gap:6px 10px;min-height:130px;align-items:center}
.bjg-app .all-games-grid .game-icon{grid-row:1/3;width:44px;height:48px}
.bjg-app .all-games-grid h3{font-size:17px}
.bjg-app .all-games-grid .card-bottom{grid-column:1/-1}
.bjg-app .arena-page{max-width:760px;margin:auto;min-width:0}
.bjg-app .arena-heading{display:flex;align-items:center;gap:10px;margin-bottom:10px;min-height:44px}
.bjg-app .arena-heading h1{flex:1;min-width:0;font-size:26px;line-height:1.18;letter-spacing:-.01em}
.bjg-app .arena-heading .back{padding:0;margin:0;width:40px;min-width:40px;min-height:40px;display:flex;align-items:center;justify-content:center;border:2px solid var(--line);border-radius:12px;background:#fff;font-size:25px;line-height:1;color:var(--accent)}
.bjg-app .routine-step{font-size:15px;font-weight:700;color:var(--accent)}
.bjg-app .game-panel{padding:0;background:none;border:0;border-radius:0;max-width:none;margin:0;min-width:0}
.bjg-app .arena-controls{display:flex;flex-direction:column;gap:10px;margin-bottom:12px}
.bjg-app .entry-actions{display:flex;align-items:stretch;gap:10px}
.bjg-app .entry-actions .button{flex:1;min-width:0;min-height:46px;margin:0;white-space:normal}
.bjg-app .arena-setup{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:10px;margin:0}
.bjg-app .arena-setup fieldset{margin:0;min-width:0}
.bjg-app .levels{display:flex;gap:8px;flex-wrap:nowrap}
.bjg-app .level{flex:1;min-width:0;min-height:44px;padding:6px;border:2px solid #e2ddd2;border-radius:12px;background:#fff;color:var(--ink);font-size:16px;line-height:1.1;font-weight:700;box-shadow:0 2px 0 var(--press)}
.bjg-app .level.selected{color:var(--accent);border-color:#e48873;background:#fff0e8;box-shadow:0 2px 0 #d17b64}
.bjg-app .game-stage{position:relative;min-height:0;border:2px solid #e4ded1;border-radius:19px;background:#fffdf8;box-shadow:0 4px 0 #e4ded1;padding:0 10px 10px}
.bjg-app .game-hud{position:sticky;top:4px;z-index:1;display:flex;align-items:center;gap:8px;margin:0 -10px 4px;padding:7px 10px;background:#fff8ee;border-radius:17px 17px 12px 12px;border-bottom:1px solid #eadbc8;min-height:46px}
.bjg-app .timer-chip{display:flex;align-items:center;gap:5px;border-radius:10px;padding:4px 7px;background:#fff;color:var(--accent);white-space:nowrap}
.bjg-app .timer-chip strong{font-size:21px;line-height:1;font-variant-numeric:tabular-nums}
.bjg-app .timer-chip .ui-icon{width:19px;height:19px}
.bjg-app .timer-chip.time-low{background:#ffe9c7;color:#825112}
.bjg-app .hud-track{height:10px;min-width:28px;flex:1;overflow:hidden;border-radius:10px;background:#eadfd0;direction:ltr}
.bjg-app .hud-track span{height:100%;width:100%;display:block;background:var(--coral);border-radius:10px}
.bjg-app .score-chip{display:flex;align-items:center;gap:3px;color:var(--green);font-size:19px;line-height:1}
.bjg-app .score-chip .ui-icon{width:18px;height:18px}
.bjg-app .game-hud .pause-tool,.bjg-app .game-hud .settings-tool{width:44px;min-width:44px;height:44px;min-height:44px;padding:5px;box-shadow:none;border-color:#e9ded0}
.bjg-app .board-grid{display:grid;grid-template-columns:repeat(var(--columns,4),minmax(0,1fr));grid-auto-rows:72px;gap:8px;margin:6px auto 4px;max-width:600px;direction:ltr}
.bjg-app .memory-grid{--columns:4}
.bjg-app .tile{display:flex;align-items:center;justify-content:center;flex-direction:column;min-width:0;min-height:44px;padding:6px;aspect-ratio:auto;border:2px solid #ded8ca;border-radius:13px;background:#fff;color:var(--ink);font-weight:800;font-size:30px;line-height:1.1;box-shadow:0 3px 0 #ded8ca;touch-action:manipulation}
.bjg-app .tile:hover:not(:disabled){border-color:#d99170;background:#fff0e2}
.bjg-app .tile:active:not(:disabled){box-shadow:0 1px 0 #ded8ca}
.bjg-app .tile .icon{width:80%;height:80%;max-width:68px;max-height:68px}
.bjg-app .tile:disabled{opacity:1;cursor:default}
.bjg-app .tile.flipped{background:#fff;border-color:#c9c7b8}
.bjg-app .tile.matched{background:#e5efdf;border-color:#90b285;box-shadow:0 3px 0 #90b285;opacity:.7}
.bjg-app .memory-grid .tile:not(.flipped){background:#ffe9db;border-color:#e3b295;box-shadow:0 3px 0 #e3b295}
.bjg-app .memory-grid .tile:not(.flipped) .icon{width:40px;height:45px;opacity:.85}
.bjg-app .tile-content{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:0;transform-origin:center;pointer-events:none}
.bjg-app .tile-content .icon{width:82%;height:82%}
.bjg-app #bjg-board[inert] .tile-content{animation-play-state:paused}
.bjg-app .prompt{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;margin:3px 0 6px;font-size:17px;line-height:1.25;flex-wrap:wrap;text-align:center}
.bjg-app .prompt>strong{font-size:31px;color:var(--accent)}
.bjg-app .sample{display:flex;gap:8px;align-items:center;padding:4px 10px;background:#fff0e3;border-radius:12px}
.bjg-app .sample .icon{width:34px;height:36px}
.bjg-app .sample small{font-size:15px;font-weight:700}
.bjg-app .goal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:64px;gap:8px;background:#eef2e5;border:3px solid #c5d4b8;border-radius:15px;padding:8px;max-width:480px;margin:6px auto}
.bjg-app .goal-grid .tile{min-height:44px;aspect-ratio:auto;background:#fff;border-color:#c9d6be}
.bjg-app .goal-grid .remembered{background:#eef3e6;color:#748369}
.bjg-app .empty-goal{min-height:0;border:2px dashed #c7d5bc;border-radius:11px}
.bjg-app .shelves{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:60px;gap:8px;background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(25% - 3px),#c5a888 calc(25% - 3px),#c5a888 25%);padding:4px 6px;max-width:480px;margin:4px auto}
.bjg-app .shelves .tile{min-height:44px;max-height:none;aspect-ratio:auto;background:#fffaf1}
.bjg-app .shelf-empty{min-height:0}
.bjg-app .signal-sign{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:12px;padding:12px;border-radius:15px;margin:8px auto 12px;max-width:420px;min-height:84px}
.bjg-app .signal-sign.go{background:#e4efdf;color:#285e34}
.bjg-app .signal-sign.stop{background:#fbe3dc;color:#a63827}
.bjg-app .signal-arrow{font-size:52px;font-weight:800;line-height:1}
.bjg-app .signal-sign strong{font-size:18px}
.bjg-app .signal-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:490px;margin:auto}
.bjg-app .signal-button{min-height:68px;aspect-ratio:auto;gap:3px}
.bjg-app .signal-button>span{font-size:32px}
.bjg-app .signal-button small{font-size:14px}
.bjg-app .cue-track{height:6px;max-width:420px;margin:12px auto 4px;background:#e7e9e1;border-radius:12px;overflow:hidden;direction:ltr}
.bjg-app .cue-track span{display:block;background:#6c9568;height:100%;width:100%}
.bjg-app .quick-rule{font-size:16px;line-height:1.4;padding:0 4px;margin:12px 0 0;color:var(--muted)}
.bjg-app .feedback{font-size:16px;line-height:1.35;margin:10px 0 0!important;padding:4px;text-align:center;background:none;border-radius:0;min-height:0}
.bjg-app .feedback:empty{display:none}
.bjg-app .pause-cover{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#fffaf6f5;border-radius:17px;padding:16px;text-align:center}
.bjg-app .pause-cover .icon{width:42px;height:48px}
.bjg-app .pause-cover h2{font-size:24px}
.bjg-app .hint-actions{margin-top:8px;gap:8px;align-items:center}
.bjg-app .hint-actions .button{font-size:15px;min-height:42px}
.bjg-app .hint-explanation{font-size:14px;color:var(--muted)}
.bjg-app .hint-explanation summary{cursor:pointer}
.bjg-app .hint-explanation p{font-size:14px;margin:8px 0}
.bjg-app .boat-rule{font-size:16px;line-height:1.3;padding:6px 8px;margin:5px 0 6px}
.bjg-app .canal-scene{height:156px;border-radius:13px}
.bjg-app .boat-swipe-hint{display:none}
.bjg-app .boat-controls{gap:8px;margin-top:10px}
.bjg-app .boat-controls .tile{min-height:60px;gap:3px}
.bjg-app .flower-heading{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin:7px 0 10px;line-height:1.3}
.bjg-app .flower-instruction{font-size:16px;margin:0}
.bjg-app .flower-count{font-size:14px;margin:0;line-height:1.3}
.bjg-app .flower-grid{grid-auto-rows:60px;gap:8px;max-width:430px;margin:0 auto 4px}
.bjg-app .flower-grid .tile{min-height:44px;aspect-ratio:auto}
.bjg-app .flower-tile .icon{width:65%;height:65%}
.bjg-app .flower-tile small{font-size:11px;bottom:3px}
.bjg-app .account-actions{display:flex;gap:12px;flex-wrap:wrap}
.bjg-app.large-text .game-card h3{font-size:22px}
.bjg-app.large-text .category{font-size:17px}
.bjg-app.large-text .entry-copy>span{font-size:19px}
.bjg-app.large-text .quick-rule{font-size:19px}
.bjg-app.large-text .tile{font-size:35px}
@media(max-width:900px){
 .bjg-app .game-carousel{grid-auto-columns:calc((100% - 30px)/3.5)}
 .bjg-app .all-games-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:600px){
 .bjg-app .top-inner{padding:6px 10px;gap:3px 8px}
 .bjg-app .brand img{width:112px;height:30px}
 .bjg-app .header-tools{gap:5px}
 .bjg-app .language-select{width:72px;padding:5px;min-height:44px;font-size:14px}
 .bjg-app nav{gap:2px}
 .bjg-app nav a{font-size:15px;min-height:34px;padding:5px 3px}
 .bjg-app.play-surface main{padding:12px 10px 16px}
 .bjg-app .gateway-heading{margin-bottom:14px;gap:10px}
 .bjg-app .gateway h1{font-size:27px}
 .bjg-app .gateway-art{width:46px;height:58px;border-radius:15px}
 .bjg-app .gateway-art .icon{width:32px;height:42px}
 .bjg-app .gateway-heading p{font-size:16px}
 .bjg-app .entry-options{gap:12px}
 .bjg-app .entry-option{min-height:84px;padding:12px 10px;gap:8px;border-radius:17px}
 .bjg-app .entry-symbol{width:32px;height:40px}
 .bjg-app .entry-symbol .icon{width:30px;height:35px}
 .bjg-app .entry-copy strong{font-size:21px}
 .bjg-app .entry-copy>span{font-size:16px}
 .bjg-app .entry-chevron{font-size:22px}
 .bjg-app .lobby h1{font-size:27px}
 .bjg-app .game-carousel{grid-auto-columns:calc((100% - 20px)/2.5)}
 .bjg-app .game-card{min-height:190px;padding:10px;gap:6px;border-radius:16px}
 .bjg-app .game-icon{width:45px;height:49px;border-radius:13px}
 .bjg-app .game-card h3{font-size:18px;line-height:1.2}
 .bjg-app .category{font-size:14px}
 .bjg-app .card-bottom{font-size:12px;gap:3px}
 .bjg-app .card-bottom .ui-icon{width:14px;height:14px}
 .bjg-app .lobby-controls{gap:8px;margin-top:10px}
 .bjg-app .all-games-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .bjg-app .all-games-grid .game-card{display:grid;grid-template-columns:32px minmax(0,1fr);min-height:126px;gap:5px 6px;padding:10px}
 .bjg-app .all-games-grid .game-icon{width:32px;height:38px;grid-row:1/3;padding:3px}
 .bjg-app .all-games-grid h3{font-size:17px}
 .bjg-app .arena-heading{gap:8px;margin-bottom:8px}
 .bjg-app .arena-heading h1{font-size:22px}
 .bjg-app .arena-controls{gap:9px;margin-bottom:10px}
 .bjg-app .entry-actions{gap:8px}
 .bjg-app .entry-actions .button{padding:8px;font-size:17px;min-height:44px}
 .bjg-app .entry-actions .button.primary{font-size:19px}
 .bjg-app .levels{gap:6px}
 .bjg-app .level{font-size:15px;padding:5px}
 .bjg-app .arena-setup{gap:8px}
 .bjg-app .game-stage{padding:0 8px 8px;border-radius:16px}
 .bjg-app .game-hud{gap:6px;margin:0 -8px 4px;padding:6px 8px;border-radius:14px 14px 10px 10px}
 .bjg-app .timer-chip{padding:4px 5px}
 .bjg-app .timer-chip strong{font-size:20px}
 .bjg-app .timer-chip .ui-icon{width:17px;height:17px}
 .bjg-app .tile{border-radius:11px;padding:4px;font-size:29px}
 .bjg-app .board-grid.dense-grid .tile{font-size:22px}
 .bjg-app.large-text .board-grid.dense-grid .tile{font-size:26px}
 .bjg-app .prompt{font-size:16px;min-height:36px}
 .bjg-app .prompt>strong{font-size:30px}
 .bjg-app .target-token{padding:5px 9px;border-radius:12px;gap:5px}
 .bjg-app .target-token strong{font-size:30px}
 .bjg-app .target-token small{font-size:14px}
 .bjg-app .color-dot{width:25px;height:25px}
 .bjg-app .goal-grid{gap:7px;padding:6px}
 .bjg-app .canal-scene{height:145px}
 .bjg-app .boat-controls small{font-size:12px}
 .bjg-app .flower-grid{gap:7px}
 .bjg-app footer{gap:2px 10px;padding:8px 10px}
 .bjg-app footer p,.bjg-app footer .privacy-link{font-size:12px}
}
@media(max-width:360px){
 .bjg-app .brand img{width:104px}
 .bjg-app .language-select{width:68px}
 .bjg-app .header-tools{gap:4px}
 .bjg-app .lobby h1{font-size:25px}
 .bjg-app .game-card h3{font-size:17px}
 .bjg-app .category{font-size:13px}
 .bjg-app .game-card{padding:8px;min-height:190px}
 .bjg-app .arena-heading h1{font-size:21px}
 .bjg-app .game-hud{gap:4px}
}
@media(prefers-reduced-motion:reduce){.bjg-app .game-carousel{scroll-behavior:auto}.bjg-app .game-card{transition:none}}

/* Persistent response to a tap survives the board redraw; hit boxes stay fixed. */
.bjg-app .tile{position:relative}
.bjg-app .tile.tap-feedback,.bjg-app .tile.tap-feedback:hover,.bjg-app .tile.tap-feedback:disabled{background:#e7f2dc;border:3px solid #497444;box-shadow:inset 0 4px 0 #c3d7b3,0 1px 0 #497444;opacity:1}
.bjg-app .tile.tap-feedback.tap-noticed,.bjg-app .tile.tap-feedback.tap-noticed:hover{background:#fff0c6;border-color:#ab7b20;box-shadow:inset 0 4px 0 #ecdca0,0 1px 0 #ab7b20}
.bjg-app .tile.tap-feedback.tap-retry,.bjg-app .tile.tap-feedback.tap-retry:hover{background:#fff0d9;border-color:#ad7733;box-shadow:inset 0 4px 0 #edd6ae,0 1px 0 #ad7733}
.bjg-app .tap-mark{position:absolute;top:3px;inset-inline-end:3px;display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:#fff;color:#37613c;font-size:16px;line-height:1;pointer-events:none}
.bjg-app .tap-retry .tap-mark{color:#8a6026}
.bjg-app .tile.flower-lit{background:#ffe67c;border:3px solid #9b7118;box-shadow:inset 0 0 0 3px #fff5c2,0 3px 0 #b18b32}
.bjg-app .flower-lit .icon{filter:drop-shadow(0 0 5px #e1a318)}
.bjg-app .flower-replay{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:10px;flex-wrap:wrap}
.bjg-app .flower-replay .button{min-height:44px;margin:0}
.bjg-app .flower-replay>span{font-size:13px;color:var(--muted);line-height:1.3}
.bjg-app .canal-scene{height:180px}

/* Compact account form: labels beside fields, optional help behind a disclosure. */
.bjg-app .modal.auth-modal{padding:16px;max-height:calc(100dvh - 20px)}
.bjg-app .auth-card{padding:18px}
.bjg-app .auth-heading{display:flex;align-items:center;min-height:44px;padding-inline-end:48px;margin-bottom:12px}
.bjg-app .auth-heading .modal-icon{flex:none}
.bjg-app .auth-heading .modal-icon .icon{width:30px;height:38px}
.bjg-app .auth-heading h1{font-size:25px;line-height:1.15;margin:0 0 4px}
.bjg-app .auth-heading p{font-size:14px;line-height:1.35;margin:0}
.bjg-app .auth-tabs{margin:8px 0 12px;padding:3px;gap:4px}
.bjg-app .auth-tabs button{min-height:44px;font-size:16px;padding:6px}
.bjg-app .auth-card form{gap:9px}
.bjg-app .auth-field{display:grid;grid-template-columns:94px minmax(0,1fr);gap:8px;align-items:center}
.bjg-app .auth-field label{font-size:16px;line-height:1.2;margin:0;overflow-wrap:anywhere}
.bjg-app .auth-field input{width:100%;min-width:0;min-height:44px;height:44px;padding:6px 9px;margin:0;font-size:18px;border-radius:10px}
.bjg-app .auth-card .small-note{font-size:13px;line-height:1.35;margin:0}
.bjg-app .auth-card .consent-check{margin:0!important;gap:8px;padding:9px;line-height:1.35;font-size:15px}
.bjg-app .auth-card .consent-check input{min-width:24px;width:24px;height:24px;min-height:24px;margin:1px 0}
.bjg-app .auth-card .consent-note{margin:0;text-align:end}
.bjg-app .auth-card .other-name{font-size:14px;line-height:1.35;margin:0;padding:2px 0}
.bjg-app .auth-card .other-name summary{min-height:28px;cursor:pointer}
.bjg-app .auth-card .other-name p{font-size:14px;line-height:1.35;margin:6px 0}
.bjg-app .auth-card .other-name input{min-height:44px;padding:6px 9px;margin:4px 0;font-size:18px}
.bjg-app .auth-card .error:empty{display:none}
.bjg-app .auth-card .error{font-size:15px;line-height:1.35;margin:0}
.bjg-app .auth-card form>.button{margin:2px 0 0;min-height:44px;font-size:17px}
.bjg-app .auth-help{font-size:14px;line-height:1.35;margin:12px 0 0;color:var(--muted)}
.bjg-app .auth-help summary{cursor:pointer;min-height:28px}
.bjg-app .auth-help p{margin:6px 0!important}
@media(max-width:600px){
 .bjg-app .auth-field{grid-template-columns:80px minmax(0,1fr);gap:6px}
 .bjg-app .auth-heading h1{font-size:23px}
 .bjg-app .canal-scene{height:172px}
}
.bjg-app.large-text .auth-field label{font-size:19px}
.bjg-app.large-text .auth-heading p,.bjg-app.large-text .auth-card .consent-check{font-size:18px}
.bjg-app .tile.tap-feedback .tile-content{transform:scale(.88);animation:none;filter:none}
.bjg-app .tile.tap-feedback>.icon{width:65%;height:65%}
.bjg-app .tile .tap-mark{width:25px;height:25px;font-size:21px;top:3px;inset-inline-end:3px;border:2px solid currentColor}
.bjg-app .tile.correct-target,.bjg-app .tile.correct-target:disabled{background:#fff0a6;border:3px solid #957018;box-shadow:inset 0 0 0 3px #fff9d8,0 3px 0 #bc922d;opacity:1}
.bjg-app .answer-mark{position:absolute;top:3px;inset-inline-end:3px;font-size:19px;line-height:1;background:#fff;border-radius:50%;color:#37613c;padding:3px}
.bjg-app #bjg-board:has(.signal-buttons) .tile,.bjg-app #bjg-board:has(.shelves) .tile,.bjg-app #bjg-board:has(.image-tile) .tile{touch-action:none}
.bjg-app .tile.tap-feedback{outline:2px solid #497444;outline-offset:-2px}
.bjg-app .tile.tap-feedback.tap-retry{outline-color:#ad7733}
.bjg-app .tile.tap-feedback.tap-noticed{outline-color:#ab7b20}
.bjg-app .signal-button.tap-feedback{box-shadow:inset 0 5px 0 #bdd4a9,0 0 0 #497444}
.bjg-app .progress-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.bjg-app .progress-heading h1{font-size:26px;line-height:1.2}
.bjg-app .progress-heading>span{font-size:14px;color:var(--muted)}
.bjg-app .daily-overview{border:2px solid #e5dece;border-radius:20px;padding:14px;background:#fffdf6;margin-bottom:16px}
.bjg-app .daily-overview h2{font-size:23px;line-height:1.2;margin:0 0 12px}
.bjg-app .daily-layout{display:grid;grid-template-columns:145px minmax(0,1fr);align-items:center;gap:14px}
.bjg-app .daily-dial{position:relative;max-width:145px;width:100%;aspect-ratio:1}
.bjg-app .daily-dial svg{display:block;width:100%;height:100%;fill:none;stroke-width:8}
.bjg-app .ring-track{stroke:#ebe6da}
.bjg-app .skill-ring{stroke-linecap:round}
.bjg-app .ring-memory{stroke:#e45a45;background:#e45a45}
.bjg-app .ring-attention{stroke:#ad8229;background:#ad8229}
.bjg-app .ring-coordination{stroke:#527c58;background:#527c58}
.bjg-app .daily-centre{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}
.bjg-app .daily-centre strong{font-size:25px;line-height:1.1}
.bjg-app .daily-centre small{font-size:10px;line-height:1.1}
.bjg-app .daily-skills{display:flex;flex-direction:column;gap:13px;min-width:0}
.bjg-app .daily-skill{display:flex;align-items:center;gap:7px;font-size:16px;line-height:1.2}
.bjg-app .skill-dot{width:10px;height:10px;border-radius:50%;flex:none}
.bjg-app .daily-skill>div{flex:1;min-width:0}
.bjg-app .daily-skill small{display:block;font-size:13px;color:var(--muted);margin-top:4px}
.bjg-app .daily-skill>b{font-size:19px;direction:ltr}
.bjg-app .daily-caption{font-size:13px;line-height:1.4;color:var(--muted);margin:12px 0 0!important}
.bjg-app .daily-praise{font-size:16px;font-weight:700;color:var(--green);line-height:1.35;margin:8px 0 0!important}
.bjg-app .progress-rewards{margin-bottom:16px}
.bjg-app .progress-rewards>summary{cursor:pointer;min-height:44px;padding:10px;font-size:17px;color:var(--accent);font-weight:700}
.bjg-app .exit-link{border:0;background:none;color:var(--accent);font:inherit;text-decoration:underline;cursor:pointer}
.bjg-admin .bjg-app .topbar{position:static}
.bjg-admin .bjg-app main{padding:18px 12px;max-width:1100px;margin:auto}
@media(max-width:600px){
 .bjg-app .daily-layout{grid-template-columns:116px minmax(0,1fr);gap:10px}
 .bjg-app .daily-skill{font-size:15px;gap:5px}
 .bjg-app .daily-skill small{font-size:12px}
 .bjg-app .daily-skill>b{font-size:17px}
 .bjg-app .daily-overview{padding:12px}
 .bjg-app .daily-overview h2{font-size:22px}
}

.bjg-admin .bjg-app .account-tool{display:none}

/* Single-boat field uses the available viewport; cardinal turns stay inside it. */
.bjg-app .canal-scene{height:clamp(220px,42dvh,380px)}
.bjg-app .canal-vessel,.bjg-app .canal-vessel>span{width:104px;height:104px;display:flex;align-items:center;justify-content:center}
.bjg-app .canal-boat{width:104px;height:64px}
.bjg-app .arena-page[data-arena="sequence"] #bjg-board .tile{touch-action:none;user-select:none;-webkit-user-select:none}

/* Read the colour word; every answer has a label as well as a colour swatch. */
.bjg-app .word-rule{text-align:center;font-size:16px;line-height:1.35;margin:8px 0}
.bjg-app .word-prompt{display:flex;align-items:center;justify-content:center;min-height:100px;padding:16px 12px;border-radius:18px;font-size:36px;font-weight:700;line-height:1.2;text-align:center;border:2px solid #40404122;margin-bottom:12px}
.bjg-app .word-options .tile{gap:6px;padding:8px;font-size:18px;line-height:1.15;touch-action:none;user-select:none;-webkit-user-select:none}
.bjg-app .word-swatch{display:block;width:32px;height:16px;border-radius:5px;border:1px solid #0002;pointer-events:none;flex:none}
.bjg-app .word-choice strong{font-size:18px;overflow-wrap:anywhere}
.bjg-app .word-options .word-choice{min-height:64px}
.bjg-app.large-text .word-prompt{font-size:41px}
.bjg-app.large-text .word-choice strong{font-size:21px}
@media(max-width:420px){.bjg-app .word-prompt{min-height:84px;font-size:31px}.bjg-app .word-options .tile{padding:6px;font-size:16px}.bjg-app .word-choice strong{font-size:16px}}

/* Direction controls form a physical cross in every language. */
.bjg-app .boat-dpad,.bjg-app .tutorial-grid.boat-dpad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,56px);grid-template-areas:". up ." "left down right";gap:6px;max-width:270px;margin:10px auto 0;direction:ltr}
.bjg-app .boat-dpad .direction-1,.bjg-app .boat-dpad [data-tutor="1"]{grid-area:up}
.bjg-app .boat-dpad .direction-0,.bjg-app .boat-dpad [data-tutor="0"]{grid-area:left}
.bjg-app .boat-dpad .direction-2,.bjg-app .boat-dpad [data-tutor="2"]{grid-area:right}
.bjg-app .boat-dpad .direction-3,.bjg-app .boat-dpad [data-tutor="3"]{grid-area:down}
.bjg-app .boat-dpad .tile{min-height:0;height:100%;padding:4px;gap:1px}
.bjg-app .boat-dpad .tile>span{font-size:26px;line-height:1}
.bjg-app .boat-dpad small{font-size:13px;line-height:1.15}
.bjg-app .tutorial-grid.boat-dpad .tile{font-size:26px;line-height:1}
@media(max-width:420px){.bjg-app .boat-dpad,.bjg-app .tutorial-grid.boat-dpad{grid-template-rows:repeat(2,48px);max-width:252px}.bjg-app .boat-dpad small{font-size:12px}}

/* Keep start guidance attached to its button, without covering the game. */
.bjg-app .start-launch{flex:1;min-width:0}
.bjg-app .start-launch .button{width:100%}
.bjg-app .entry-actions>.button{align-self:flex-start}
.bjg-app .start-cue{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:5px;color:var(--accent);font-size:13px;font-weight:700;line-height:1.2;text-align:center}
.bjg-app .start-arrow{display:block;flex:none;font-size:24px;line-height:1;animation:bjg-start-arrow 1.5s ease-in-out infinite;pointer-events:none}
@keyframes bjg-start-arrow{0%,100%{transform:translateY(2px);opacity:.5}50%{transform:translateY(-3px);opacity:1}}

/* The shelf sample is visually separate from the answer tiles. */
.bjg-app .shelf-prompt{margin:8px 0 12px;gap:10px}
.bjg-app .shelf-sample{--sample-from:20px;gap:12px;padding:8px 14px;background:#fff0db;border:3px solid #d97d59;border-radius:17px;box-shadow:0 3px 0 #e9bd9c;color:var(--ink);max-width:100%}
.bjg-app .shelf-sample .icon{width:60px;height:60px;flex:none}
.bjg-app .shelf-sample small{font-size:18px;line-height:1.2;overflow-wrap:anywhere}
.bjg-app[dir=rtl] .shelf-sample{--sample-from:-20px}
.bjg-app .sample-arriving{animation:bjg-sample-arrive .5s cubic-bezier(.2,.7,.25,1) both}
@keyframes bjg-sample-arrive{from{opacity:.35;transform:translateX(var(--sample-from)) scale(.88)}to{opacity:1;transform:translateX(0) scale(1)}}
@media(max-width:420px){.bjg-app .start-cue{font-size:12px}.bjg-app .shelf-sample{gap:9px;padding:6px 11px}.bjg-app .shelf-sample .icon{width:54px;height:54px}.bjg-app .shelf-sample small{font-size:17px}}
@media(prefers-reduced-motion:reduce){.bjg-app .start-arrow,.bjg-app .sample-arriving{animation:none;transform:none;opacity:1}}

/* Compact result and shelf recall. */
.bjg-app .result-page{padding:16px;max-width:640px;margin:12px auto;text-align:center}
.bjg-app .result-page h1{font-size:26px;line-height:1.2;margin:8px 0 12px}
.bjg-app .result-page h2{font-size:18px;margin:10px 0 7px}
.bjg-app .result-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0}
.bjg-app .result-metrics strong{font-size:28px;line-height:1.1}.bjg-app .result-metrics span{font-size:13px}
.bjg-app .round-reward{display:flex;align-items:center;justify-content:center;gap:10px;padding:9px 12px;margin:10px 0;text-align:start}
.bjg-app .round-reward>.icon{width:30px;height:38px;flex:0 0 30px}.bjg-app .round-reward p{font-size:14px;line-height:1.3;margin:3px 0}
.bjg-app .record-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;background:#f7f5ef;border-radius:14px;padding:10px 6px}
.bjg-app .record-summary strong,.bjg-app .record-summary span{display:block}.bjg-app .record-summary strong{font-size:22px}.bjg-app .record-summary span{font-size:12px;line-height:1.3}
.bjg-app .recent-scores{font-size:13px;margin:5px 0}.bjg-app .record-message{font-size:16px;line-height:1.3;margin:8px 0}.bjg-app .personal-records .small-note{font-size:12px;margin:5px 0 10px}
.bjg-app .result-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.bjg-app .result-actions .button{width:100%;min-height:46px;padding:8px;font-size:16px;margin:0}.bjg-app .result-actions>a{grid-column:1/-1}.bjg-app .result-page .save-status{font-size:13px;margin:6px 0}
.bjg-app .memory-heading{text-align:center;margin:6px 0 8px}.bjg-app .memory-heading strong,.bjg-app .memory-heading small{display:block}.bjg-app .memory-heading strong{font-size:18px}.bjg-app .memory-heading small{font-size:13px;color:var(--muted);margin-top:4px}
.bjg-app .memory-shelves{grid-template-rows:repeat(3,minmax(62px,1fr));gap:8px 6px;max-width:480px;margin:0 auto 12px}
.bjg-app .memory-object{display:flex;align-items:center;justify-content:center;border-bottom:3px solid #b9a184;min-height:62px}.bjg-app .memory-object .icon{width:48px;height:48px}
.bjg-app .memory-ready{width:100%;max-width:400px;display:block;margin:8px auto}.bjg-app .memory-selection{text-align:center;font-size:15px;margin:6px 0}
.bjg-app .memory-choices .tile{min-height:60px;touch-action:manipulation}.bjg-app .memory-choices .icon{width:45px;height:45px}.bjg-app .tile.memory-selected{background:#e4eff9;border-color:#497eb6;box-shadow:0 3px 0 #91afc8}
.bjg-app .tutorial-memory{height:210px}

.bjg-app .tile.memory-answer{background:#e6f1dc;border:3px solid #477442}.bjg-app .tile.memory-wrong{background:#fde4df;border:3px solid #bc4b3c}

.bjg-app .previous-heading,.bjg-app .previous-question{text-align:center;font-size:18px;margin:8px 0}.bjg-app .previous-current{display:flex;align-items:center;justify-content:center;min-height:90px;background:#fff1df;border:2px solid #dfb17a;border-radius:18px;max-width:170px;margin:8px auto}.bjg-app .previous-current .icon{width:76px;height:76px}.bjg-app .previous-colour{display:flex;align-items:center;justify-content:center}.bjg-app .previous-options .icon{width:50px;height:50px}.bjg-app .return-modal{max-width:440px}.bjg-app .return-modal h2{font-size:24px;margin:0 35px 12px 0}.bjg-app .return-plan{padding-inline-start:24px;margin:12px 0}.bjg-app .return-plan li{padding:5px 0;font-weight:700}.bjg-app .return-plan small{display:block;font-weight:400;font-size:13px;color:var(--muted)}.bjg-app .result-actions .routine-next{grid-column:1/-1}

.bjg-app .language-control{display:flex;align-items:center;gap:4px;position:relative}.bjg-app .language-flag{width:20px;height:14px;position:absolute;inset-inline-start:9px;z-index:1;pointer-events:none}.bjg-app .language-control .language-select{padding-inline-start:34px;width:90px;min-width:90px;font-size:14px}.bjg-app .language-control{direction:ltr}
@media(max-width:380px){.bjg-app .language-control .language-select{width:78px;min-width:78px;padding-inline-start:29px}.bjg-app .language-flag{width:17px;inset-inline-start:7px}}

/* Full language names remain in the native menu; the header stays compact. */
.bjg-app .language-code{position:absolute;left:34px;font-size:14px;color:var(--ink);pointer-events:none;z-index:1}
.bjg-app .language-control .language-select{color:transparent;text-shadow:none}
.bjg-app .language-select option{color:#404041;background:#fff;direction:ltr}
/* Physical left/right positions stay fixed in RTL too. */
.bjg-app .pair-question,.bjg-app .compare-question{text-align:center;font-size:22px;line-height:1.25;margin:8px 0 12px}
.bjg-app .pair-stimuli{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:480px;margin:0 auto}
.bjg-app .pair-slot{display:flex;align-items:center;justify-content:center;min-height:110px;border:2px dashed #e0d8c7;border-radius:16px;background:#f7f3ea;overflow:hidden}
.bjg-app .pair-token{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px;background:#fff;border:2px solid #d5b484;border-radius:14px;width:100%;min-height:108px;font-size:48px;line-height:1;color:#775830}
.bjg-app .pair-guide{font-size:14px;text-align:center;line-height:1.3;margin:10px 0}
.bjg-app .pair-answers{max-width:480px;margin:auto}.bjg-app .pair-answer{min-height:65px;font-size:25px}
.bjg-app .pair-arriving{animation:bjg-pair-arrive .3s ease-out both}
@keyframes bjg-pair-arrive{from{opacity:.3;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.bjg-app .compare-options{max-width:560px;margin:14px auto;gap:12px}
.bjg-app .compare-choice{min-height:100px;font-size:clamp(20px,5vw,32px);white-space:nowrap;padding:10px 4px;touch-action:none}
.bjg-app .tutorial-grid.compare-options .tile{font-size:25px}
/* Remember routes, then pick the final cells, in numbered-ship order. */
.bjg-app .nav-heading{text-align:center;margin:6px 0 8px;font-size:18px;line-height:1.25}
.bjg-app .nav-heading>span{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:4px;font-size:15px}
.bjg-app .nav-heading .icon{width:34px;height:34px}
.bjg-app .nav-routes{max-width:340px;margin:0 auto 8px}.bjg-app .nav-route{display:flex;gap:12px;align-items:center;justify-content:center;margin:3px 0}
.bjg-app .nav-route-ship,.bjg-app .nav-grid-ship{position:relative;display:inline-flex;align-items:center;justify-content:center}
.bjg-app .nav-route-ship .icon{width:36px;height:36px}.bjg-app .nav-route-ship b,.bjg-app .nav-grid-ship b{position:absolute;right:-1px;top:-2px;background:#fff;border:1px solid #7c8e83;border-radius:50%;width:17px;height:17px;font-size:12px;line-height:16px;color:#404041}
.bjg-app .nav-arrows{display:flex;gap:12px;font-size:28px;line-height:1}
.bjg-app .nav-arrows>span{display:flex;align-items:center;flex-direction:column}.bjg-app .nav-arrows small{font-size:10px;color:#696964;margin-top:3px}
.bjg-app .nav-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;max-width:310px;margin:0 auto 8px}
.bjg-app .nav-cell,.bjg-app .tutorial-grid.nav-grid .tile{min-height:56px;height:clamp(56px,10dvh,75px);background:#e3f0f2;border-color:#99bac0;padding:3px;display:flex;flex-direction:row;gap:4px}
.bjg-app .nav-cell:disabled{opacity:1}.bjg-app .nav-grid-ship .icon{width:38px;height:38px}.bjg-app .nav-cell.nav-island{background:#efe4bd}.bjg-app .nav-island>.icon{width:42px;height:42px}
.bjg-app .nav-cell.nav-wrong{border-color:#be5b47}.bjg-app .nav-wrong-mark{position:absolute;left:2px;top:2px;color:#a63a2b;font-size:19px}
.bjg-app .nav-replay{display:block;margin:6px auto;font-size:14px;min-height:44px}
.bjg-app .nav-tutorial-route{text-align:center;font-size:30px;letter-spacing:10px}
/* The earlier object leaves one window; the new object enters the other. */
.bjg-app .previous-windows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:480px;margin:8px auto}
.bjg-app .previous-panel small{display:block;text-align:center;font-size:13px;line-height:1.2;min-height:32px}
.bjg-app .previous-window{display:flex;align-items:center;justify-content:center;min-height:100px;border:2px solid #c5bba9;border-radius:16px;overflow:hidden}
.bjg-app .previous-window.previous-current{max-width:none;margin:0;background:#fff1df;border-color:#d9aa70}.bjg-app .previous-window .icon{width:72px;height:72px}
.bjg-app .previous-hidden{background:#f3f1eb;color:#777568;font-size:44px}
.bjg-app .previous-instruction{text-align:center;font-size:15px;line-height:1.3;margin:8px 0}
.bjg-app .previous-leaving>.previous-colour{animation:bjg-previous-out .65s ease-in both}.bjg-app .previous-entering>.previous-colour{animation:bjg-previous-in .65s ease-out both}
@keyframes bjg-previous-out{0%,20%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(-90px)}}
@keyframes bjg-previous-in{from{opacity:.15;transform:translateX(90px)}to{opacity:1;transform:translateX(0)}}
/* Arrow controls: up above left, down, right. The rule uses the vacant corner. */
.bjg-app .signal-dpad,.bjg-app .tutorial-grid.signal-dpad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,52px);grid-template-areas:". up ." "left down right";gap:6px;max-width:330px;margin:10px auto;direction:ltr}
.bjg-app .signal-dpad .direction-1,.bjg-app .signal-dpad [data-tutor="1"]{grid-area:up}.bjg-app .signal-dpad .direction-0,.bjg-app .signal-dpad [data-tutor="0"]{grid-area:left}.bjg-app .signal-dpad .direction-2,.bjg-app .signal-dpad [data-tutor="2"]{grid-area:right}.bjg-app .signal-dpad .direction-3,.bjg-app .signal-dpad [data-tutor="3"]{grid-area:down}
.bjg-app .signal-dpad .tile{height:100%;min-height:44px;padding:3px;gap:1px}.bjg-app .signal-dpad .tile>span{font-size:26px;line-height:1}.bjg-app .signal-dpad small{font-size:12px;line-height:1.15}
.bjg-app .signal-sign{min-height:76px;gap:10px}.bjg-app .signal-sign strong{font-size:17px;line-height:1.25}
.bjg-app .signal-sequence{display:flex;align-items:center;gap:10px}.bjg-app .signal-arrow{position:relative;font-size:40px;line-height:1}.bjg-app .signal-arrow.signal-done{color:#57734f;opacity:.6}.bjg-app .signal-arrow small{position:absolute;right:-6px;top:-6px;font-size:15px;background:#fff;border:1px solid #66805b;border-radius:50%;width:18px;height:18px;line-height:16px;color:#315e38}.bjg-app .signal-then{font-size:22px}
.bjg-app .boat-controls.boat-dpad{grid-template-areas:"rule up ." "left down right";grid-template-rows:repeat(2,48px);max-width:320px;margin-top:8px}
.bjg-app .boat-controls .boat-rule{grid-area:rule;border:1px solid #b59955;border-radius:10px;margin:0;padding:3px;font-size:12px;font-weight:700;line-height:1.15;display:flex;align-items:center;justify-content:center;text-align:center;min-height:44px}
.bjg-app .boat-rule.bow{background:#fff1a4;color:#645315}.bjg-app .boat-rule.motion{background:#f9dfd8;color:#9f3b2c}
.bjg-app .canal-scene{height:clamp(96px,24dvh,220px);margin:6px 0;border-radius:14px}
.bjg-app .canal-vessel,.bjg-app .canal-vessel>span{width:64px;height:64px}.bjg-app .canal-boat{width:64px;height:39px}
.bjg-app .arena-page[data-arena="canals"] .feedback{font-size:14px;line-height:1.25;margin:6px 0}
@media(max-width:380px){.bjg-app .language-code{left:29px}.bjg-app .pair-token{font-size:40px}.bjg-app .pair-question,.bjg-app .compare-question{font-size:20px}.bjg-app .compare-choice{font-size:20px}}
@media(prefers-reduced-motion:reduce){.bjg-app .pair-arriving,.bjg-app .previous-leaving>.previous-colour,.bjg-app .previous-entering>.previous-colour{animation:none;transform:none;opacity:1}}
.bjg-app .language-control .language-select{appearance:none;-webkit-appearance:none;padding-inline-end:20px}
.bjg-app .language-control::after{content:"";position:absolute;right:8px;top:calc(50% - 4px);width:7px;height:7px;border-right:1.5px solid #404041;border-bottom:1.5px solid #404041;transform:rotate(45deg);pointer-events:none}

/* Short, non-blocking artwork fades; stable controls remain available. */
.bjg-app .button,.bjg-app .tile,.bjg-app .suggestion-game{transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .14s ease,opacity .14s ease}
.bjg-app .tile-content{transition:transform .15s ease}
.bjg-app .tile.tap-feedback .tile-content{transform:scale(.96)}
.bjg-app .comparison-focus{font-weight:900;background:#fff0c1;color:#664600;border-radius:7px;padding:0 4px;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px;box-decoration-break:clone}
.bjg-app .comparison-focus[data-comparison="smaller"]{background:#e5edf7;color:#274d75}
.bjg-app .compare-question{font-weight:600;line-height:1.4}
.bjg-app .result-page{padding:14px 16px;gap:8px;margin:10px auto}
.bjg-app .result-page h1{font-size:24px;margin:5px 0 7px}
.bjg-app .result-metrics{margin:6px 0}
.bjg-app .result-page .small-note{font-size:13px;line-height:1.4;margin:5px 0}
.bjg-app .result-actions{margin:6px 0}
.bjg-app .result-page .hint-summary{font-size:12px;margin:3px 0}
.bjg-app .result-suggestions{width:100%;border-top:1px solid var(--line);padding-top:8px;margin-top:2px}
.bjg-app .result-suggestions h2{font-size:16px;line-height:1.25;margin:2px 0 8px}
.bjg-app .suggestion-games{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.bjg-app .suggestion-game{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:8px 4px;min-height:82px;background:#fffaf1;border:1px solid #d8d0bf;border-radius:12px;color:var(--text);font:inherit;cursor:pointer}
.bjg-app .suggestion-game .icon{width:32px;height:32px}.bjg-app .suggestion-game span{font-size:13px;font-weight:600;line-height:1.25;overflow-wrap:anywhere}
.bjg-app .suggestion-game:focus-visible{outline:3px solid #315e77;outline-offset:2px}.bjg-app .suggestion-game:active{transform:scale(.98)}
.bjg-app .suggestion-game:disabled{opacity:.6;cursor:default}
.bjg-app #bjg-board[inert] *{animation-play-state:paused!important}
.bjg-app .art-fade{pointer-events:none!important}
.bjg-app.calm .button,.bjg-app.calm .tile,.bjg-app.calm .tile-content,.bjg-app.calm .suggestion-game{transition:none}
@media(prefers-reduced-motion:reduce){.bjg-app .button,.bjg-app .tile,.bjg-app .tile-content,.bjg-app .suggestion-game{transition:none}}

/* Primary actions and memory routes remain fully visible from the first frame. */
.bjg-app .button.primary,.bjg-app .button.primary:hover:not(:disabled){background:linear-gradient(115deg,#bb3027 0%,#d04424 35%,#bd2937 65%,#bb3027 100%);background-size:240% 100%;border-color:#aa3024;color:#fff;opacity:1;font-weight:800;animation:bjg-action-gradient 6s ease-in-out infinite;box-shadow:0 4px 0 #963122,0 3px 10px #bd3b2725}
@keyframes bjg-action-gradient{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
.bjg-app .button.primary:disabled{animation:none;background:#ead8d3;border-color:#c6aaa2;color:#78544a;opacity:1;box-shadow:0 3px 0 #c6aaa2}
.bjg-app .memory-ready{max-width:none;min-height:56px;font-size:20px}
.bjg-app .nav-routes{opacity:1;color:#263e49}
.bjg-app .nav-route{background:#f4f0e7;border:1px solid #c8c0ad;border-radius:12px;padding:5px 8px;opacity:1}
.bjg-app .nav-route-ship,.bjg-app .nav-route-ship .icon{opacity:1}.bjg-app .nav-route-ship .icon{width:40px;height:40px}
.bjg-app .nav-arrows{font-weight:800;color:#263e49;font-size:30px}.bjg-app .nav-arrows small{color:#4f5956;font-size:12px;font-weight:600}
.bjg-app .card-back{display:flex;justify-content:center;align-items:center;width:100%;height:100%}.bjg-app .card-back svg{width:42px;height:48px}
.bjg-app .memory-grid .tile.card-closed{background:#eaf1f6;border-color:#9fb6c7;box-shadow:0 3px 0 #9fb6c7}
.bjg-app .memory-grid .tile.matched{opacity:1}
.bjg-app .flower-replay .button{font-weight:700;border-color:#8b9c83;color:#365b37;background:#f1f6ed}
.bjg-app.calm .button.primary{animation:none}
@media(prefers-reduced-motion:reduce){.bjg-app .button.primary{animation:none}}
