

:root { --ink:#2f493f; --cream:#fffaf0; --river:#7fd6dc; --grass:#8bc477; --orange:#f49a5b; --coral:#ee765d; }
* { box-sizing:border-box; }
body { margin:0; min-width:320px; color:var(--ink); background:radial-gradient(circle at 12% 12%,rgba(255,255,255,.95) 0 2px,transparent 3px),radial-gradient(circle at 80% 18%,rgba(255,255,255,.75) 0 2px,transparent 3px),#eef6df; background-size:26px 26px,34px 34px,auto; font-family:"Hiragino Maru Gothic ProN","Yu Gothic","Noto Sans JP",sans-serif; }
button { font:inherit; }
.game-shell { width:min(100%,1000px); margin:0 auto; min-height:100vh; padding:24px clamp(14px,4vw,40px) 36px; }
.topbar { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:14px; }
.eyebrow { margin:0 0 3px; color:#618470; font-size:.76rem; font-weight:800; letter-spacing:.14em; }
h1 { margin:0; color:#32594b; font-size:clamp(1.65rem,5vw,2.6rem); line-height:1; letter-spacing:.04em; } h1 small { color:#6b8b78; font-size:.42em; }
.sound-button { flex:0 0 auto; display:flex; align-items:center; gap:7px; border:2px solid #bed4c5; border-radius:999px; padding:9px 13px; color:#577565; background:rgba(255,255,255,.7); font-size:.78rem; font-weight:800; cursor:pointer; }
.sound-button span { display:grid; width:22px; height:22px; place-items:center; border-radius:50%; background:#dce9df; }.sound-button.is-on span { color:white; background:var(--orange); }
.top-actions{display:flex;align-items:center;gap:8px}.change-dan-button{border:0;border-radius:999px;padding:10px 13px;color:#587466;background:rgba(255,255,255,.72);font-size:.76rem;font-weight:900;cursor:pointer}
.game-card { position:relative; overflow:hidden; min-height:755px; border:3px solid rgba(71,119,98,.26); border-radius:34px; background:var(--cream); box-shadow:0 18px 50px rgba(64,102,83,.18),inset 0 1px white; }
.score-row { height:64px; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px clamp(15px,4vw,28px); background:rgba(255,255,255,.86); border-bottom:1px dashed #bfd2c1; }
.dan-chip { display:flex; flex:0 0 auto; align-items:baseline; gap:4px; color:#fff; background:#6fa96a; border-radius:13px; padding:7px 10px; font-size:1.25rem; font-weight:1000; line-height:1; box-shadow:0 3px 0 #548b55; }.dan-chip small{font-size:.5rem}.progress-dots{display:flex;gap:clamp(3px,.8vw,7px)}.progress-dot{display:grid;width:clamp(23px,4vw,31px);height:clamp(23px,4vw,31px);place-items:center;border-radius:50%;color:#799382;background:#e9efe6;font-size:.67rem;font-weight:900}.progress-dot.done{color:#fff;background:#73ae68}.progress-dot.current{outline:3px solid #f5b872;outline-offset:2px}.combo{color:#678372;font-size:.8rem;font-weight:800;white-space:nowrap}.combo span{color:var(--coral);font-size:1.35rem}
.river-scene { position:relative; height:300px; overflow:hidden; background:linear-gradient(#dff4e8 0 28%,#a8da8c 28% 35%,var(--river) 35% 86%,#78ba69 86%); }
.sun{position:absolute;top:20px;right:8%;width:54px;height:54px;border-radius:50%;background:#ffd780;box-shadow:0 0 0 12px rgba(255,215,128,.25)}.cloud{position:absolute;height:19px;border-radius:999px;background:rgba(255,255,255,.8)}.cloud::before,.cloud::after{content:"";position:absolute;bottom:4px;border-radius:50%;background:inherit}.cloud::before{left:12px;width:27px;height:27px}.cloud::after{right:10px;width:36px;height:36px}.cloud-one{top:37px;left:12%;width:88px}.cloud-two{top:68px;left:40%;width:62px;transform:scale(.7)}.far-bank{position:absolute;inset:28% 0 auto;height:30px;background:#8ac371;border-radius:50% 50% 0 0}.grass{position:absolute;bottom:20px;width:5px;height:24px;background:#5d9b5c;border-radius:5px 5px 0 0}.grass::after{content:"";position:absolute;width:5px;height:20px;background:inherit;transform:rotate(35deg);transform-origin:bottom}.grass-a{left:17%}.grass-b{right:27%;transform:scale(.8)}.near-bank{position:absolute;inset:auto 0 0;height:44px;background:#78b66a;border-radius:50% 50% 0 0}.ripple{position:absolute;height:3px;border-radius:999px;background:rgba(255,255,255,.45);animation:drift 3s ease-in-out infinite alternate}.ripple-a{top:48%;left:8%;width:80px}.ripple-b{top:65%;left:55%;width:110px;animation-delay:-.7s}.ripple-c{top:78%;left:31%;width:70px;animation-delay:-1.4s}@keyframes drift{to{transform:translateX(30px);opacity:.65}}
.beat-stone{position:absolute;z-index:2;top:56%;display:grid;width:clamp(60px,11vw,92px);height:clamp(38px,6vw,52px);place-items:center;transform:translate(-50%,-50%);border:3px solid rgba(84,122,92,.28);border-radius:50%;color:#57735d;background:#d7e1bd;box-shadow:0 7px 0 rgba(58,126,118,.25);font-size:clamp(.85rem,2.8vw,1.2rem);font-weight:900}.stone-one{left:25%;transform:translate(-50%,-50%) rotate(-4deg)}.stone-two{left:47%;top:49%;transform:translate(-50%,-50%) rotate(3deg)}.stone-three{left:68%;top:57%;transform:translate(-50%,-50%) rotate(-2deg)}
.rabbit{--x:7%;position:absolute;z-index:4;left:var(--x);top:57%;width:57px;height:74px;opacity:1;transform:translate(-50%,-100%);transition:left .42s cubic-bezier(.2,.85,.33,1.32),top .22s ease,transform .22s ease,opacity .18s ease;filter:drop-shadow(0 7px 3px rgba(40,90,83,.18))}.rabbit-step--1{--x:-5%;top:80%;opacity:0}.rabbit-step-1{--x:25%;top:54%}.rabbit-step-2{--x:47%;top:47%}.rabbit-step-3{--x:68%;top:55%}.rabbit-step-4{--x:91%;top:80%;transform:translate(-50%,-100%) rotate(4deg)}.rabbit-away{opacity:0}.rabbit-step-4.rabbit-away{--x:101%;transform:translate(-50%,-100%) rotate(8deg) scale(.88)}.rabbit-step-1,.rabbit-step-2,.rabbit-step-3{animation:hop .42s ease}@keyframes hop{40%{transform:translate(-50%,-145%) rotate(-5deg)}}.rabbit-body{position:absolute;left:10px;top:30px;width:43px;height:39px;border-radius:48% 52% 45% 50%;background:#fff8ed;border:2px solid #bb9f8b}.ear{position:absolute;z-index:2;top:0;width:15px;height:39px;border:2px solid #bb9f8b;border-radius:70% 70% 42% 42%;background:#fff8ed;transform-origin:bottom}.left-ear{left:14px;transform:rotate(-9deg)}.right-ear{left:31px;transform:rotate(8deg)}.ear::after{content:"";position:absolute;inset:8px 4px 5px;border-radius:inherit;background:#f3c2b3}.rabbit-face{position:absolute;z-index:3;top:40px;left:15px;color:#6e5d55;font-size:12px;font-weight:900;white-space:nowrap}.waiting-rabbits{position:absolute;right:1%;bottom:23px;z-index:3;width:20%;display:flex;flex-wrap:wrap-reverse;justify-content:flex-end}.waiting-rabbits span{margin-left:-7px;font-size:clamp(17px,3vw,28px);transform:translateY(calc((var(--i) % 2) * 4px))}.waiting-rabbits span:last-child{animation:join-the-group .38s cubic-bezier(.2,.9,.3,1.3)}@keyframes join-the-group{from{opacity:0;transform:translate(26px,-16px) scale(.7) rotate(8deg)}}
.chant-panel{padding:14px 18px 10px;text-align:center}.number-guide{display:flex;justify-content:center;align-items:center;gap:clamp(7px,2vw,14px);min-height:52px;margin:0 auto 9px}.number-guide span{display:grid;min-width:clamp(48px,11vw,96px);height:44px;place-items:center;border:2px solid #dce4d8;border-radius:14px;color:#aab7aa;background:#f5f6ef;font-size:clamp(1.15rem,3.5vw,1.75rem);font-weight:1000;transition:.18s ease}.number-guide span.active{color:#315b4a;border-color:#afd09d;background:#e7f3dc;transform:translateY(-2px);box-shadow:0 4px 0 #c4dcb8}.number-guide span.number-answer.active{color:#fff;border-color:#d9614f;background:var(--coral);box-shadow:0 4px 0 #c95748}.phrase{display:flex;justify-content:center;gap:clamp(8px,3vw,20px);min-height:68px}.phrase span{display:grid;min-width:clamp(52px,12vw,92px);height:clamp(54px,10vw,68px);place-items:center;border-radius:18px;color:#b9c3b8;background:#f0f1e9;font-size:clamp(1.25rem,4.5vw,2.1rem);font-weight:900;transition:.18s ease}.phrase span.heard{color:#365d4e;background:#e1efd6;transform:translateY(-3px);box-shadow:0 6px 0 #c2d8b2}.phrase span.answer-beat.heard{color:#fff;background:var(--coral);box-shadow:0 6px 0 #c95748}.phrase span.small-text{font-size:clamp(.78rem,2.7vw,1.35rem)}.message{min-height:25px;margin:10px 0 0;color:#61776a;font-size:clamp(.9rem,2.6vw,1.08rem);font-weight:800}
.turtle-choices{display:flex;justify-content:center;gap:clamp(12px,4vw,34px);padding:2px 18px 22px}.turtle{position:relative;width:clamp(86px,22vw,140px);height:96px;border:0;background:transparent;cursor:default;opacity:.56;transform:translateY(9px) scale(.96);transition:.2s ease}.turtle-choices.ready .turtle{cursor:pointer;opacity:1;transform:none;animation:turtle-ready 1.1s ease-in-out infinite alternate}.turtle-choices.ready .turtle:nth-child(2){animation-delay:-.35s}.turtle-choices.ready .turtle:nth-child(3){animation-delay:-.7s}@keyframes turtle-ready{to{transform:translateY(-5px)}}.turtle:focus-visible{outline:4px solid #f2a960;outline-offset:3px;border-radius:50%}.shell{position:absolute;z-index:2;inset:13px 3px 9px;display:grid;place-items:center;border:4px solid #466f53;border-radius:50% 50% 44% 44%;color:white;background:radial-gradient(circle at 50% 38%,#91bd69 0 22%,transparent 23%),conic-gradient(from 30deg,#6fa151,#94bc6d,#68994e,#8fb668,#6fa151);box-shadow:inset 0 0 0 5px rgba(255,255,255,.16),0 7px 0 rgba(52,114,104,.22);font-size:clamp(1.2rem,4.5vw,2.1rem);font-weight:1000;text-shadow:0 2px 0 #507743}.shell.long-number{font-size:clamp(.95rem,3.6vw,1.65rem)}.turtle-head{position:absolute;z-index:1;top:38px;right:-15px;width:36px;height:31px;padding-top:7px;border-radius:50%;color:#44684c;background:#a7cb81;font-size:9px;font-weight:900}.turtle-feet{position:absolute;z-index:1;bottom:0;left:25px;color:#7baa61;font-size:18px;white-space:pre}.turtle.wrong{animation:sink .72s ease!important}@keyframes sink{45%{transform:translateY(28px) rotate(-5deg);opacity:.48}}.turtle.right .shell{background:#f4a064;border-color:#d77746;transform:scale(1.07)}
.start-overlay,.complete-overlay{position:absolute;z-index:10;inset:64px 0 0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px;text-align:center;background:rgba(255,250,240,.89);backdrop-filter:blur(7px)}.start-copy{margin-bottom:14px}.start-copy .mini-rabbit{font-size:2.8rem}.start-copy p{margin:5px 0 0;color:#759181;font-size:.9rem;font-weight:800}.start-copy strong{color:#355b4d;font-size:clamp(1.25rem,4vw,1.75rem)}
.course-selector{display:grid;grid-template-columns:repeat(3,minmax(150px,210px));gap:10px;margin:0 auto 12px}.course-selector button{position:relative;display:grid;justify-items:center;gap:3px;min-height:92px;padding:10px;border:2px solid #ccd9ca;border-radius:18px;color:#5e7a69;background:rgba(255,255,255,.78);box-shadow:0 4px 0 #d7dfd1;cursor:pointer;transition:.16s ease}.course-selector button>span{font-size:1.55rem;font-weight:1000}.course-selector button strong{font-size:.78rem}.course-selector button small{font-size:.64rem;font-weight:800}.course-selector button b{position:absolute;top:-6px;right:-5px;display:grid;width:22px;height:22px;place-items:center;border-radius:50%;color:#fff;background:#f2a05f;box-shadow:0 2px 0 #ce7647;font-size:.78rem}.course-selector button.selected{color:white;background:#6fa96a;border-color:#548b55;box-shadow:0 5px 0 #4e8050;transform:translateY(-2px)}.sample-chant{margin:0 0 11px;color:#718a7b;font-size:.82rem;font-weight:800}.mode-picker{display:grid;grid-template-columns:repeat(2,minmax(118px,160px));gap:9px;margin:0 auto 15px}.mode-picker button{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:8px;align-items:center;min-height:54px;padding:7px 11px;border:2px solid #ccd9ca;border-radius:16px;color:#647e6e;background:rgba(255,255,255,.78);cursor:pointer;text-align:left}.mode-picker button>span{grid-row:1/3;display:grid;width:34px;height:34px;place-items:center;border-radius:10px;color:#557264;background:#e7eee4;font-size:.95rem;font-weight:1000}.mode-picker strong{font-size:.79rem;line-height:1.1}.mode-picker small{margin-top:3px;font-size:.61rem;font-weight:800}.mode-picker button.selected{color:#315b4a;border-color:#77ab6e;background:#e8f3df;box-shadow:0 3px 0 #b9d2ac}.mode-picker button.selected>span{color:#fff;background:#6fa96a}.mode-picker button:disabled{cursor:not-allowed;opacity:.48;filter:grayscale(.4)}.primary-button{border:0;border-radius:999px;padding:16px 27px;color:white;background:var(--coral);box-shadow:0 7px 0 #bd5849,0 12px 22px rgba(151,78,66,.22);font-weight:900;cursor:pointer;transition:.15s ease}.primary-button:hover{transform:translateY(-2px)}.complete-overlay p{margin:12px 0 3px;font-size:clamp(1.25rem,4vw,2rem);font-weight:900}.complete-overlay>strong{margin-bottom:23px;color:var(--coral)}.celebration-rabbits{font-size:clamp(2.8rem,9vw,5.4rem);animation:party .6s ease-in-out infinite alternate}.complete-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.secondary-button{border:2px solid #b9cdbd;border-radius:999px;padding:14px 23px;color:#547060;background:rgba(255,255,255,.78);font-weight:900;cursor:pointer}@keyframes party{to{transform:translateY(-13px) rotate(2deg)}}.parent-note{margin:14px auto 0;padding:0 6px;color:#65776e;font-size:.75rem;line-height:1.65}.parent-note p{margin:0}.parent-note span{margin-right:8px;color:#4f6b5c;font-weight:900}
@media(max-width:700px){.game-shell{padding-top:17px}.game-card{min-height:735px;border-radius:27px}.score-row{height:58px;gap:5px;padding:9px}.dan-chip{font-size:.95rem;padding:6px}.dan-chip small,.combo{display:none}.progress-dots{gap:2px}.progress-dot{width:23px;height:23px}.river-scene{height:270px}.course-selector{grid-template-columns:1fr;width:min(100%,330px);gap:7px}.course-selector button{grid-template-columns:52px 1fr;grid-template-rows:auto auto;min-height:62px;text-align:left;justify-items:start;align-items:center}.course-selector button>span{grid-row:1/3}.start-overlay{padding:14px}.start-copy{margin-bottom:8px}.start-copy .mini-rabbit{font-size:2.1rem}.number-guide{gap:5px}.number-guide span{min-width:0;flex:1}.phrase{gap:6px}.phrase span{min-width:0;flex:1}.turtle-choices{gap:3px;padding-left:7px;padding-right:7px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media(max-height:820px){.game-shell{padding:12px 14px 16px}.game-card{min-height:590px}.river-scene{height:clamp(150px,28svh,240px)}.chant-panel{padding:8px 12px}.phrase{min-height:48px}.phrase span{height:46px}.number-guide{min-height:40px;margin-bottom:6px}.number-guide span{height:36px}.turtle-choices{padding-bottom:12px}.parent-note{margin-top:10px}.start-overlay,.complete-overlay{top:58px}.start-copy .mini-rabbit{font-size:2rem}.start-copy{margin-bottom:7px}.course-selector button{min-height:53px}.primary-button{padding:12px 24px}}
@media(orientation:landscape) and (max-height:520px){.game-shell{padding:8px 14px}.topbar{margin-bottom:8px}.topbar h1{font-size:24px}.eyebrow{font-size:12px}.game-card{min-height:0;display:grid;grid-template-columns:1fr 1fr;border-radius:18px}.score-row{grid-column:1 / 3;height:44px;padding:6px 14px}.river-scene{grid-column:1;grid-row:2 / 4;height:auto;min-height:240px}.chant-panel{grid-column:2;grid-row:2;padding:8px}.turtle-choices{grid-column:2;grid-row:3;padding:0 10px 10px;gap:2px}.turtle{height:76px;width:95px}.shell{font-size:24px}.turtle-head{right:-7px;width:26px}.phrase span{height:40px;font-size:20px}.phrase{min-height:42px}.number-guide{min-height:34px}.number-guide span{height:32px;font-size:22px}.message{font-size:14px;margin-top:6px}.start-overlay{inset:44px 0 0;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto;gap:8px 22px;padding:12px 26px}.start-copy{grid-column:1;grid-row:1;margin:0}.start-copy .mini-rabbit{display:none}.start-copy p{font-size:13px}.start-copy strong{font-size:18px}.course-selector{grid-column:2;grid-row:1 / 4;margin:0;align-self:center;grid-template-columns:1fr;width:100%;gap:5px}.course-selector button{min-height:48px;grid-template-columns:52px 1fr;grid-template-rows:auto auto;text-align:left;justify-items:start;padding:6px 10px}.course-selector button>span{grid-row:1 / 3;font-size:23px}.sample-chant{grid-column:1;grid-row:2;margin:0}.mode-picker{grid-column:1;grid-row:3;margin:0;align-self:start}.start-overlay>.primary-button{grid-column:2;grid-row:4;justify-self:center;font-size:14px;padding:10px 18px}.parent-note{font-size:12px}.complete-overlay{inset:44px 0 0;padding:12px}.celebration-rabbits{font-size:32px}.complete-overlay p{margin:4px;font-size:20px}.complete-overlay strong{margin-bottom:10px}}

.audio-start-pair{display:flex;gap:8px;width:100%;justify-content:center}.audio-start-pair .primary-button{font-size:15px;padding:12px 10px;min-width:0;flex:1}.audio-start-pair .muted-start{background:#e6eee0;color:#3e6744;box-shadow:none;border:1px solid #97ad87}

/* Setup grows with its content so all courses remain reachable on small screens. */
.game-card:has(.start-overlay){display:block;min-height:0}
.game-card:has(.start-overlay)>.score-row,.game-card:has(.start-overlay)>.river-scene,.game-card:has(.start-overlay)>.chant-panel,.game-card:has(.start-overlay)>.turtle-choices{display:none}
.game-card .start-overlay{position:relative;inset:auto;display:flex;gap:10px;padding:24px 16px;overflow:visible}
.game-card .start-overlay>*{max-width:100%;margin-bottom:0}
.order-picker{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:10px 0}
.order-picker button{padding:12px;border:2px solid #b9cdbd;border-radius:16px;background:#fffaf0;color:#315b4a;cursor:pointer;font-weight:800;font-size:14px}
.order-picker .selected{background:#e1efd6;border-color:#548b55}
button:disabled{opacity:.5;cursor:default}
.review-text{padding:10px;background:#fff0d7;border-radius:12px;line-height:1.7;overflow-wrap:anywhere;font-weight:700}
.study-panel{text-align:left;width:min(100%,640px);padding:12px 16px;background:#e8f3df;border-radius:16px;line-height:1.65}
.study-panel summary{cursor:pointer;font-weight:800}.study-panel p{margin:8px 0}.study-panel b,.study-panel span{display:block}.study-panel small{display:block}
.course-selector{width:min(100%,700px);grid-template-columns:repeat(3,minmax(0,1fr))}
.course-selector button{min-width:0}.progress-dots{flex-wrap:wrap;justify-content:center}.score-row{height:auto;min-height:64px}
.phrase span{padding:2px;overflow-wrap:anywhere;min-width:0;flex:1;height:auto;min-height:48px}
.number-guide span{min-width:0;padding:4px;height:auto;min-height:40px;overflow-wrap:anywhere}.number-guide .number-answer{max-width:48%;font-size:clamp(.9rem,3.2vw,1.6rem)}
.shell.long-number{font-size:clamp(.68rem,2.3vw,1.1rem);padding:2px;overflow-wrap:anywhere}
.complete-overlay{overflow:auto;justify-content:flex-start;padding-top:30px}.complete-overlay>strong{line-height:1.8}
@media(max-width:700px){.course-selector{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.course-selector button{display:flex;flex-direction:column;text-align:center;justify-content:center;min-height:92px;padding:8px}.topbar{flex-wrap:wrap}.top-actions{max-width:100%}.game-card .start-overlay{padding:18px 12px}.order-picker{gap:6px}.order-picker button{padding:10px 8px;font-size:13px}.phrase span.small-text{font-size:.8rem}.chant-panel .phrase span.answer-beat{font-size:clamp(.8rem,2.8vw,1.1rem)}}
@media(orientation:landscape) and (max-height:520px){.game-card .start-overlay{display:flex;padding:18px}.game-card .start-overlay>*{grid-column:auto;grid-row:auto;align-self:auto}.course-selector{grid-template-columns:repeat(4,minmax(0,1fr));width:100%}.course-selector button{display:flex;flex-direction:column;text-align:center;min-height:85px}.audio-start-pair{max-width:540px}.order-picker button{min-height:44px}}

.shell.long-number:has(.approx-marker){display:flex;flex-direction:column;justify-content:center;gap:3px;line-height:1.2}.approx-marker{font-size:14px}.approx-value{font-size:clamp(.65rem,2.2vw,1rem);white-space:nowrap}

.number-guide span{min-width:clamp(40px,8vw,90px)}@media(max-width:700px){.number-guide span{min-width:0;flex:1}}

.release-links{display:flex;flex-wrap:wrap;gap:18px;margin-top:16px;font-size:13px}.release-links a{color:#32594b}
