/* Fourth game, using the existing workbook colors and rounded type. */
.word-game-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.croc-game-card{border-color:#c1d9b5}.croc-game-card .word-game-choice{background:#e2efcf;color:#3e6539}
.croc-game-picture{background:radial-gradient(ellipse at 50% 90%,#e1edcb,transparent 70%),#eff5e6;display:flex;justify-content:center;align-items:center}
.croc-choice-art{position:relative;display:block;width:255px;max-width:85%;aspect-ratio:1;margin-top:18px;container-type:inline-size;isolation:isolate}
.croc-choice-badge{position:absolute;right:17px;top:17px;padding:4px 12px;background:#fff9dc;border:1px solid #e7d99b;border-radius:16px;transform:rotate(4deg);font-size:.8rem;color:#776739}
.croc-game{max-width:880px}.croc-game .bridge-heading h1 span{color:#447447}
.croc-chapters{list-style:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0 0 18px;padding:0}
.croc-chapters li{display:flex;align-items:center;gap:8px;min-width:0;padding:11px 10px;background:#f1f0e7;border:1px solid #e3e5d7;border-radius:14px;color:#727e70;line-height:1.3}
.croc-chapters li>span:nth-child(2){font-weight:700;font-size:1rem}.croc-chapters small{display:block;font-size:.7rem;font-weight:400;margin-top:3px}
.croc-step-number{width:29px;height:29px;flex:none;border-radius:50%;display:grid;place-items:center;background:#fffdf6;color:#737e68;font-weight:700}
.croc-chapters .is-current{background:#fff1c2;border-color:#dac47b;color:#745b27}.croc-chapters .is-current .croc-step-number{background:#e7c467;color:#554722}
.croc-chapters .is-done{background:#e7f1dc;border-color:#bcd3aa;color:#456739}.croc-chapters .is-done .croc-step-number{background:#5a814d;color:white}
.croc-playground{overflow:hidden;border:1px solid #d8e1cb;border-radius:25px;background:#fffefa;box-shadow:var(--shadow)}
.croc-topic-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:21px 30px 16px;background:#f5f8ed;border-bottom:1px dashed #d7e0c8}
.croc-topic-label{font-size:.7rem;font-weight:700;color:#738366;letter-spacing:1.7px}
.croc-topic-row h2{display:flex;align-items:baseline;gap:12px;color:#3f6b43;margin-top:3px;font-size:1.9rem;line-height:1.25}.croc-topic-row h2>span:last-child{font-size:1rem;font-weight:400;color:#6e7c60}
.croc-score{display:flex;align-items:center;gap:5px;line-height:1.1;color:#436b45}.croc-score>b{font-size:2.5rem}.croc-score>span{font-size:1.1rem;color:#778067}.croc-score small{display:block;font-size:.7rem;margin-top:5px;white-space:nowrap}
.croc-scene{position:relative;padding:0 12px;background:radial-gradient(ellipse at 50% 77%,#eaf2d7,transparent 64%),#fffcf3;transition:background-color .2s}
.croc-scene-note{position:absolute;z-index:1;left:20px;top:20px;max-width:46%;text-align:left;font-size:.85rem;line-height:1.6;color:#7a836b;pointer-events:none}
.croc-guide-row{position:relative;display:flex;justify-content:flex-end;overflow:hidden;margin:0 -12px -28px;pointer-events:none}
.croc-stage{position:relative;isolation:isolate;width:min(100%,620px);aspect-ratio:1;margin:0 auto}
.croc-stage:before{content:'';position:absolute;left:4%;right:4%;bottom:1.5%;height:15%;border-radius:50%;background:radial-gradient(ellipse,#dbe6bd99,transparent 70%)}
.croc-topic-guide{position:relative;flex:none;width:min(88%,430px);aspect-ratio:3/2;margin:-12px -10px 0 0;container-type:inline-size;pointer-events:none}
.croc-topic-guide>img{display:block;width:100%;height:100%;user-select:none}
.croc-sign-copy{position:absolute;left:8%;top:66%;width:66%;height:24%;display:flex;align-items:center;justify-content:center;color:#684624;line-height:1.05;text-align:center}
.croc-sign-copy>strong{font-size:min(11cqw,46px);font-weight:700;white-space:nowrap}
.croc-character{position:absolute;left:0;bottom:0;isolation:isolate;width:100%;aspect-ratio:1;container-type:inline-size;z-index:2}
/* Both layers share the painted gum edge; the foreground hides each tooth's buried root. */
.croc-character,.croc-choice-art{--croc-gum-rim:17% 77%,22% 80%,24% 81.9%,26% 83.7%,28% 84.9%,30% 85.75%,34% 86.95%,38% 87.73%,42% 88.13%,46% 88.21%,50% 88.05%,54% 87.57%,58% 86.85%,62% 85.9%,66% 84.38%,70% 81.83%,72% 79.92%,74% 77.12%,77% 74%}
.croc-open-art,.croc-gum-art,.croc-closed-art{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none;user-select:none}
.croc-open-art{z-index:0}.croc-gum-art{z-index:3;clip-path:polygon(var(--croc-gum-rim),100% 100%,0 100%)}
.croc-closed-art{z-index:4;opacity:0;transition:opacity .13s ease-in}
.croc-teeth{position:absolute;inset:0;display:block;z-index:2;pointer-events:none}
/* An opaque boundary above the gum prevents sinking artwork from escaping below the jaw. */
.croc-teeth-art{position:absolute;inset:0;display:block;clip-path:polygon(0 0,0 77%,var(--croc-gum-rim),100% 74%,100% 0);pointer-events:none}
/* Keep the full tap targets upright and outside the artwork's clipping layer. */
.croc-tooth-slot{position:absolute;left:var(--tooth-x);top:var(--tooth-y);width:15.4%;height:18%;transform:translate(-50%,-94%);pointer-events:none}
.croc-character .croc-tooth-slot{min-width:44px;min-height:44px}
.croc-tooth{position:relative;display:block;width:100%;height:calc(100% + 8px);min-height:0;padding:0;border:0;border-radius:45% 45% 15% 15%;background:transparent;box-shadow:none;touch-action:manipulation;pointer-events:auto}
.croc-tooth-art{position:relative;display:block;width:100%;height:100%;color:#704538;line-height:1;visibility:visible;transition:transform .24s cubic-bezier(.32,.75,.37,1);pointer-events:none}
.croc-tooth-face{position:absolute;inset:0;display:block;transform:rotate(var(--tooth-tilt));transform-origin:50% 94%;pointer-events:none}
.croc-tooth-face>img{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none;user-select:none}
.croc-tooth-number{position:absolute;left:0;right:0;top:44%;text-align:center;font-size:5.6cqw;font-weight:700;pointer-events:none}
.croc-tooth:active:not(:disabled){transform:none}.croc-tooth:focus-visible{outline:3px solid #a3523b;outline-offset:1px}
.croc-tooth-art.is-pressed{transform:translateY(125%);visibility:hidden;transition:transform .24s cubic-bezier(.32,.75,.37,1),visibility 0s .24s}.croc-tooth:disabled{cursor:default}
.is-snapped .croc-closed-art{opacity:1}.is-snapped .croc-open-art,.is-snapped .croc-gum-art{visibility:hidden;transition:visibility 0s .13s}.is-snapped .croc-teeth{display:none}.croc-character.is-snapped{animation:croc-jaw-snap .28s ease-out}
/* A separate, right-aligned row gives the speech bubble room without covering the face. */
.croc-reaction-row{display:none;justify-content:flex-end;width:min(100%,620px);margin:0 auto;padding:18px 18px 16px;pointer-events:none}
.croc-scene.is-failed .croc-reaction-row{display:flex}
.croc-chomp{position:relative;isolation:isolate;display:block;border:3px solid #8b8491;border-radius:26px 28px 30px 22px;padding:12px 26px;background:#fff;color:#625a69;font-size:2.5rem;font-weight:700;line-height:1.1;animation:croc-chomp-pop .24s ease-out both}
.croc-chomp:before{content:'';position:absolute;z-index:-1;left:28px;top:-13px;width:22px;height:22px;background:#fff;border-top:3px solid #8b8491;border-left:3px solid #8b8491;transform:rotate(45deg)}
.croc-scene.is-failed{background-color:#fff2e6}.croc-scene.is-cleared{background-color:#eff6e2}
.croc-word-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:13px 28px 10px}.croc-word-heading h3{font-size:.95rem}.croc-word-heading>span{font-size:.75rem;color:#848a77}
.croc-words{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 28px 20px}
.croc-word{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:90px;padding:10px 7px;background:#fffdf4;border:1.5px solid #e4dec9;border-radius:13px;text-align:center;box-shadow:0 3px 0 #e9e3d0;line-height:1.25;color:#485b4b}
.croc-word-number{flex:none;display:grid;place-items:center;width:29px;height:29px;background:#edf1df;color:#697650;border-radius:9px;font-size:.9rem;font-weight:700}
.croc-word>span[lang]{font-size:1rem;font-weight:700;overflow-wrap:anywhere}.croc-word-check{position:absolute;right:7px;top:9px;font-weight:700;font-size:1.1rem}
.croc-word:not(:disabled):hover{border-color:#a6bd81;background:#f5f8e9;transform:translateY(-1px)}.croc-word:disabled{opacity:1}
.croc-word.is-pressed{background:#e9f2df;border-color:#b7cda4;box-shadow:0 2px 0 #c6d8b3;color:#4d6f3b}.croc-word.is-pressed .croc-word-number{background:#648553;color:white}
.croc-word.is-wrong{background:#ffeadc;border-color:#d99e7e;box-shadow:0 2px 0 #e6b89b;color:#954f36}.croc-word.is-wrong .croc-word-number{background:#bc7651;color:white}
.croc-feedback{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:115px;background:#f6f5eb;border-top:1px solid #e5e4d4;padding:19px 28px}
.croc-feedback h3{font-size:1.05rem;color:#506747;line-height:1.5}.croc-feedback p{font-size:.875rem;color:#79816d;line-height:1.7;margin-top:3px}.croc-feedback .btn{flex:none;min-height:48px;font-size:.9rem}
.croc-feedback.is-wrong{background:#fff0e5;border-color:#ecd0b7}.croc-feedback.is-wrong h3{color:#99593d}.croc-feedback.is-success{background:#edf5df}
.croc-all-clear{font-size:1rem;color:#52743e;font-weight:700;white-space:nowrap}.croc-help{text-align:center;font-size:.8rem;color:#7d856f;line-height:1.6;margin:16px 16px 0}
.croc-finale{position:relative;isolation:isolate;overflow:hidden;border:2px solid #dac77e;border-radius:26px;padding:28px 20px 22px;text-align:center;background:radial-gradient(ellipse at 50% 36%,#fff8c6,transparent 65%),#fffdf0;box-shadow:var(--shadow)}
.croc-finale-label{font-size:.75rem;letter-spacing:2.4px;color:#92804a;font-weight:700}.croc-finale h2{font-size:clamp(4rem,12vw,6.5rem);line-height:1.05;letter-spacing:-4px;color:#528152;text-shadow:0 5px 0 #dce6b9;margin:10px 0 7px}.croc-finale-message{font-size:1.25rem;font-weight:700;color:#667344}
.croc-dance-stage{position:relative;display:flex;align-items:flex-end;justify-content:center;width:min(100%,570px);margin:2px auto 4px;isolation:isolate}.croc-dance-stage:after{content:'';position:absolute;z-index:-1;left:5%;right:5%;bottom:2%;height:14%;background:#e8edc9;border-radius:50%}
.croc-dancer{width:51%;transform-origin:50% 92%;animation:croc-dance 1s ease-in-out infinite}
.croc-dance-sprite{position:relative;display:block;width:100%;aspect-ratio:1;overflow:hidden}.croc-dance-sprite>img{display:block;width:100%;height:100%;pointer-events:none;user-select:none}
.croc-hama-dancer{width:50%;margin-left:-1%;transform-origin:50% 90%;animation:croc-hama-dance .8s ease-in-out infinite}.croc-hama-dancer img{display:block;width:100%;pointer-events:none;user-select:none}
.croc-music{position:absolute;font-size:2rem;color:#b19752;z-index:2;animation:croc-notes 1.6s ease-in-out infinite}.croc-music-one{left:7%;top:9%;transform:rotate(-12deg)}.croc-music-two{right:6%;top:12%;animation-delay:-.8s}
.croc-complete-copy{font-size:.95rem;color:#83905f;line-height:1.8}.croc-complete-copy strong{font-weight:700;color:#596d42}.croc-finale .bridge-result-actions{position:relative;z-index:6;margin-top:18px}
.croc-dance-toggle{font-size:.75rem;min-height:38px;padding:6px 13px;margin-top:15px}.croc-dance-toggle svg{width:15px;height:15px}.croc-finale.is-paused *{animation-play-state:paused!important}
@keyframes croc-jaw-snap{0%{transform:translateY(0)}38%{transform:translateY(5px) rotate(.7deg)}70%{transform:translateY(-2px) rotate(-.5deg)}100%{transform:translateY(0)}}
@keyframes croc-chomp-pop{from{opacity:0;transform:translateY(6px) scale(.88)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes croc-dance{0%,100%{transform:translateY(0) rotate(-2deg)}25%{transform:translateY(-7px)}50%{transform:translateY(0) rotate(2deg)}75%{transform:translateY(-7px)}}
@keyframes croc-hama-dance{0%,100%{transform:translateY(-7px) rotate(5deg)}25%{transform:translateY(0) rotate(0)}50%{transform:translateY(-14px) rotate(-5deg)}75%{transform:translateY(0) rotate(0)}}
@keyframes croc-notes{0%,100%{opacity:.5;translate:0 4px}50%{opacity:1;translate:0 -8px}}
@media(max-width:650px){
 .word-game-cards{grid-template-columns:1fr}
 .croc-game .bridge-heading{display:block;margin-bottom:16px}.croc-game .bridge-heading h1{font-size:1.6rem}.croc-game .bridge-test-label{display:inline-block;margin:9px 0 0}
 .croc-chapters{gap:4px;margin-bottom:13px}.croc-chapters li{flex-direction:column;gap:5px;padding:8px 2px;text-align:center;border-radius:11px}.croc-chapters li>span:nth-child(2){font-size:.82rem}.croc-chapters small{display:none}.croc-step-number{width:24px;height:24px;font-size:.8rem}
 .croc-playground{border-radius:19px}.croc-topic-row{padding:15px 17px;gap:10px}.croc-topic-row h2{font-size:1.5rem;gap:9px}.croc-topic-row h2>span:last-child{font-size:.85rem}.croc-topic-label{font-size:.6rem;letter-spacing:1px}.croc-score>b{font-size:2rem}.croc-score>span{font-size:.9rem}.croc-score small{font-size:.6rem}
 .croc-scene{padding:0}.croc-scene-note{font-size:.75rem;top:14px;left:16px;max-width:50%}.croc-guide-row{margin:0 0 -12px}.croc-reaction-row{padding:16px 18px 14px}.croc-chomp{font-size:2rem;padding:10px 22px}
 .croc-word-heading{padding:12px 14px 10px;display:block}.croc-word-heading h3{font-size:.875rem}.croc-word-heading>span{display:block;font-size:.7rem;margin-top:2px}
 .croc-words{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 14px 16px}.croc-word{flex-direction:row;min-height:64px;padding:12px 10px;gap:9px;border-radius:11px;text-align:left}.croc-word-number{width:29px;height:29px;font-size:.9rem;border-radius:7px}.croc-word>span[lang]{font-size:1.05rem}.croc-word-check{position:static;margin-left:auto;font-size:1rem}
 .croc-feedback{align-items:stretch;flex-direction:column;gap:12px;padding:16px;min-height:0}.croc-feedback h3{font-size:.95rem}.croc-feedback p{font-size:.8rem}.croc-feedback .btn{font-size:.9rem}.croc-help{font-size:.75rem;margin:12px 4px 0}
 .croc-finale{padding:24px 12px 18px;border-radius:20px}.croc-finale-message{font-size:1.05rem}.croc-complete-copy{font-size:.8rem}.croc-finale .bridge-result-actions{gap:9px}.croc-finale .bridge-result-actions .btn{font-size:.85rem;padding:10px 12px}
}
@media(prefers-reduced-motion:reduce){.croc-game *,.croc-choice-art{animation:none!important;transition:none!important}.croc-finale .bridge-celebration,.croc-dance-toggle{display:none}}
