:root{font-family:"Trebuchet MS","Segoe UI",system-ui,sans-serif;color:#344844;background:#f8f3e9;font-synthesis:none;--ink:#344844;--teal:#276e62;--muted:#79817a;--cream:#fffcf5;--green:#d9eedb;--coral:#d47460;--line:#e7e2d6}
*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 4% 18%,#efe5ce6b,transparent 42%),#f8f3e9}button,select{font:inherit}button,select,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #dfaa3b;outline-offset:4px}button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}[hidden]{display:none!important}.svg-definitions{width:0;height:0;position:absolute;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.app-shell{max-width:1330px;margin:auto;padding:28px 42px 20px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:0 0 29px;border-bottom:1px solid #ddd9cd}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:var(--ink);font-size:25px;font-weight:800;letter-spacing:-1px}.brand-subtitle{display:block;font-size:13px;letter-spacing:.1px;color:#879084;font-weight:400;margin-top:3px}.brand-mark{width:42px;height:46px;position:relative;transform:rotate(-7deg);display:flex;flex-direction:column;justify-content:space-between}.brand-mark i{height:12px;width:30px;border:2px solid #755a38;border-radius:4px;background:#ecc056;display:block}.brand-mark i:nth-child(2){margin-left:7px;background:#e79980}.brand-mark i:nth-child(3){margin-left:13px;background:#9fc0a5}.topbar-controls{display:flex;gap:16px;align-items:center}select{appearance:none;background:#fffcf5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23596b60' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;border:1px solid #dcded0;border-radius:11px;padding:12px 40px 12px 16px;color:#4f6257;font-size:15px;max-width:230px}.restart-button{border:0;background:none;display:flex;align-items:center;gap:8px;color:#788374;padding:10px 3px;font-size:14px}.restart-button:hover{color:var(--teal)}main{display:grid;grid-template-columns:minmax(0,1.22fr) minmax(340px,1fr);gap:55px;align-items:start;padding-top:33px}.section-eyebrow{display:flex;align-items:center;gap:8px;letter-spacing:1.8px;color:#8b967e;font-size:11px;font-weight:800}.tiny-line{width:23px;height:3px;background:#ccaa5d;border-radius:8px}h1{font-size:clamp(29px,3.1vw,42px);letter-spacing:-1.9px;line-height:1.18;margin:13px 0 12px;font-weight:800}h1 span{color:#586f57}.target-heading{color:var(--teal);position:relative;z-index:0}.target-heading:after{content:"";position:absolute;z-index:-1;left:-4px;right:-6px;bottom:2px;height:9px;border-radius:3px;background:#e6c77866;transform:rotate(-2deg)}.intro{font-size:15px;line-height:1.65;color:#879084;margin:0 0 23px}.challenge-strip{display:flex;align-items:center;gap:20px;margin-bottom:21px;padding:13px 0}.endpoint{display:flex;gap:5px;flex-direction:column}.endpoint-label{font-size:10px;letter-spacing:1.4px;font-weight:800;color:#969b88}.endpoint strong{font-size:23px;font-weight:800;letter-spacing:1px;color:#73816b}.goal strong{color:#296f62}.trail-decoration{display:flex;align-items:center;gap:7px;color:#cdbb8d;padding:13px 0 0}.trail-decoration span{width:4px;height:4px;border-radius:50%;background:#d4c6a4}.trail-decoration svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}.move-counter{margin-left:auto;border-left:1px solid #dedecf;min-width:76px;display:flex;flex-direction:column;align-items:center;gap:0}.move-counter>span:first-child{font-size:25px;line-height:1.1;font-weight:800;color:#6e7e65}.move-counter>span:last-child{font-size:12px;color:#a1a590;margin-top:3px}.board-panel{background:#fffcf7;border:1px solid #e8e3d7;border-radius:22px;padding:21px 24px 22px;box-shadow:0 7px 20px #72582d04}.board-caption{display:flex;justify-content:space-between;align-items:center;color:#8a9380;font-size:10px;font-weight:800;letter-spacing:1.5px}.board-caption span:last-child{font-size:12px;font-weight:400;letter-spacing:0;color:#a6a991}.letter-board{display:flex;justify-content:center;gap:12px;margin:22px 0 14px}.letter-tile{width:70px;height:77px;border:2px solid #dfddcb;border-bottom-width:5px;background:#f5f2e8;border-radius:12px;color:#5d6e5a;font-size:40px;font-weight:800;line-height:1;transition:background .15s,border-color .15s,transform .15s;position:relative;box-shadow:0 2px 0 #d7cfbd13}.letter-tile:hover:not(:disabled){transform:translateY(-2px);border-color:#98b5a2}.letter-tile.selected{background:#f2f7eb;border-color:#588879;outline:3px solid #b2c9ab50;outline-offset:3px;color:#386c5a}.letter-tile.edited{background:#fff0ca;border-color:#dcb568;color:#775b30}.letter-tile.correct{background:#d9edda;border-color:#91b99a;color:#3c7754}.letter-tile.incorrect{background:#f9e5df;border-color:#d59a8d;color:#a3594c}.board-instruction{font-size:12px;text-align:center;color:#a1a18e;min-height:18px;margin:0 0 24px}.keyboard{display:flex;flex-direction:column;gap:7px;align-items:center}.keyboard-row{display:flex;justify-content:center;gap:6px;width:100%}.keyboard-key{flex:0 1 37px;min-width:0;height:42px;border:1px solid #dddccc;border-bottom-width:3px;background:#f2f0e5;border-radius:7px;font-size:15px;font-weight:700;color:#77816a;transition:background .12s,transform .12s}.keyboard-key:hover:not(:disabled){background:#e4eddc;border-color:#a9b59b;color:#436c50;transform:translateY(-1px)}.keyboard-key:active:not(:disabled){transform:translateY(2px);border-bottom-width:1px}.keyboard-key:disabled{opacity:.48}.action-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:23px}.hint-button{display:flex;align-items:center;gap:6px;border:0;background:none;padding:8px 0;font-size:12px;color:#a19a75}.hint-button svg{width:17px;height:17px}.hint-button:hover{color:#776834}.submit-button{display:flex;align-items:center;justify-content:center;gap:14px;background:#34776b;color:#fffdf4;padding:13px 20px;border:1px solid #256253;border-bottom:4px solid #235b50;border-radius:10px;font-size:14px;font-weight:700;box-shadow:0 3px 6px #326e5e0c;min-width:167px}.submit-button:hover{background:#2a6d60}.submit-button:active{transform:translateY(2px);border-bottom-width:2px}.submit-button:disabled{opacity:.5}.feedback{margin-top:17px;display:flex;gap:11px;align-items:center;border:1px solid #e1e5d4;background:#eff3e6;border-radius:12px;padding:13px 15px;min-height:70px}.feedback-icon{display:grid;place-items:center;flex:none;width:29px;height:29px;border-radius:50%;color:#879975;background:#e3ead6;font-size:18px}.feedback strong{display:block;font-size:13px;color:#6f8261;line-height:1.5}.feedback p{font-size:12px;color:#8d987e;line-height:1.5;margin:2px 0 0}.feedback.success,.feedback.win{background:#e7f2e5;border-color:#bad8b6}.feedback.success strong,.feedback.win strong{color:#397a49}.feedback.success .feedback-icon,.feedback.win .feedback-icon{background:#d2e8cd;color:#42814e}.feedback.error{background:#fff0e9;border-color:#edd0c2}.feedback.error strong{color:#ad6651}.feedback.error p{color:#b4816e}.feedback.error .feedback-icon{color:#bc7b63;background:#f4ddd1}.feedback.hint{background:#fff5d9;border-color:#eddcab}.feedback.hint strong{color:#a0863d}.feedback.hint p{color:#aa935a}.journey{margin-top:23px}.journey-heading{display:flex;justify-content:space-between;gap:10px;align-items:center}.journey h2{font-size:12px;font-weight:700;margin:0;color:#7a8771}.journey-heading>span{font-size:11px;color:#a3aa96}.journey ol{display:flex;align-items:center;flex-wrap:wrap;gap:7px;list-style:none;padding:12px 0 0;margin:0;max-height:135px;overflow:auto}.journey li{display:flex;align-items:center;gap:7px;font-size:12px}.journey li:not(:last-child):after{content:"·";color:#bbc1aa;font-size:16px}.trail-word{background:#e9eddf;border:1px solid #d9dfcd;border-radius:6px;padding:5px 10px;color:#76866a;font-weight:700}.journey li:last-child .trail-word{background:#dce9d5;border-color:#b8caaa;color:#547344}.discovery-card{background:#fffdf7;border:1px solid #e7e0d2;border-radius:24px;overflow:hidden;box-shadow:0 12px 34px #72582d08;transform:rotate(.35deg);margin-top:3px}.card-topline{display:flex;align-items:center;justify-content:space-between;padding:20px 22px 16px}.word-tag{font-size:10px;letter-spacing:1.1px;color:#a29369;display:flex;align-items:center;gap:6px;font-weight:700}.word-tag svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.9}.card-corner{font-size:23px;color:#d8bf78}.illustration-frame{aspect-ratio:3/2;margin:0 15px;background:#fbf0dd;border-radius:10px;overflow:hidden}.illustration-frame img{display:block;width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}.word-details{padding:23px 27px 25px}.word-title-row{display:flex;justify-content:space-between;align-items:center;gap:16px}.word-title-row h2{font-size:40px;line-height:1.1;letter-spacing:-1.6px;margin:0 0 7px;color:#475d4d;font-weight:800}.phonetic{font-family:"Segoe UI","Arial Unicode MS",sans-serif;color:#99a18b;margin:0;font-size:15px;line-height:1.6;overflow-wrap:anywhere}.speaker-button{width:49px;height:49px;border-radius:50%;background:#eef1e3;border:1px solid #dde3cb;border-bottom:3px solid #cdd8bd;display:grid;place-items:center;color:#7c956e;flex:none}.speaker-button:hover{background:#e2ead4;color:#4a7953}.speaker-button svg{width:24px;height:24px}.speaker-button.playing{background:#dfebd3;box-shadow:0 0 0 5px #e4edd850}.definition{font-size:17px;color:#798570;line-height:1.75;min-height:60px;margin:22px 0 21px;letter-spacing:-.15px}.pronunciation-note{display:flex;align-items:center;gap:7px;color:#acac92;font-size:10px;line-height:1.6}.sound-dot{width:5px;height:5px;border-radius:50%;background:#cfb66e;flex:none}.card-footer{background:#f2f1e7;border-top:1px solid #eae8dc;padding:15px 25px;display:flex;align-items:center;gap:10px;font-size:11px;color:#a0a68c}.leaf{font-size:21px;color:#a4b18a;line-height:1}.page-footer{display:flex;justify-content:space-between;gap:12px;padding-top:26px;color:#b0b3a0;font-size:10px}.play-area{min-width:0}.is-loading{opacity:.6}.load-failed .illustration-frame{display:grid;place-items:center}.word-details,.card-topline,.card-footer{transform:rotate(-.35deg)}
@media(min-width:1400px){.app-shell{padding-top:35px}main{gap:65px;padding-top:38px}.board-panel{padding:23px 28px}.keyboard-key{flex-basis:41px}.letter-board{margin-top:25px}.discovery-card{margin-top:7px}}
@media(max-width:1050px){.app-shell{padding:24px}.topbar{padding-bottom:23px}main{gap:28px;grid-template-columns:minmax(0,1.18fr) minmax(295px,1fr)}h1{font-size:33px}.board-panel{padding:18px 16px}.keyboard-row{gap:4px}.keyboard-key{height:38px;font-size:14px}.letter-tile{width:61px;height:69px;font-size:35px;gap:8px}.letter-board{gap:8px}.word-details{padding:21px}.brand-subtitle{font-size:11px}.intro{font-size:14px}.hint-button{font-size:11px}.submit-button{min-width:148px;padding:12px 15px}.page-footer{font-size:10px}}
@media(max-width:760px){.app-shell{max-width:590px;padding:20px 18px}.topbar{flex-wrap:wrap;gap:18px;padding-bottom:19px}.brand{font-size:23px}.brand-subtitle{font-size:11px}.topbar-controls{gap:13px;margin-left:auto}select{max-width:190px;font-size:13px;padding:10px 33px 10px 12px}.restart-button{font-size:12px}.restart-button svg{width:18px;height:18px}main{display:flex;flex-direction:column;gap:28px;padding-top:26px}.play-area{width:100%}h1{font-size:34px}.intro br{display:none}.intro{margin-bottom:13px}.challenge-strip{margin-bottom:15px;padding:12px 0}.board-panel{padding:20px}.letter-tile{width:65px;height:72px;font-size:38px}.keyboard-row{gap:5px}.keyboard-key{flex-basis:40px;height:42px}.board-instruction{margin-bottom:21px}.discovery-card{width:100%;margin-top:0;transform:none}.word-details,.card-topline,.card-footer{transform:none}.word-title-row h2{font-size:37px}.word-details{padding:23px}.definition{min-height:0;margin:18px 0 20px}.page-footer{padding-top:22px;flex-direction:column;align-items:center;gap:6px}.journey{margin-top:18px}.journey-heading>span{font-size:10px}.word-tag{font-size:10px}.card-topline{padding:19px 21px 14px}.card-footer{padding:14px 22px}.brand-mark{transform:scale(.9) rotate(-7deg);margin-right:-3px}}
@media(max-width:430px){.topbar-controls{width:100%;justify-content:space-between}.topbar-controls select{max-width:none;flex:1}.restart-button{margin-left:6px}.board-panel{padding:17px 12px}.letter-tile{width:56px;height:64px;font-size:33px}.keyboard-row{gap:4px}.keyboard-key{height:39px;flex-basis:32px;font-size:13px}.challenge-strip{gap:16px}.intro{font-size:13px}h1{font-size:31px;letter-spacing:-1.4px}.move-counter{min-width:63px}.action-row{gap:6px}.submit-button{font-size:13px;min-width:150px}.hint-button{font-size:11px}.letter-board{gap:8px}.feedback{padding:12px;gap:9px}.feedback strong{font-size:12px}.feedback p{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Keep task instructions and controls readable on both desktop and phone. */
.board-instruction.is-error,.board-instruction.is-blocked{color:#ae5546;font-weight:700}
.board-instruction.is-correct{color:#397a49;font-weight:700}
.letter-tile.incorrect{outline-color:#e9b2a2}
.submit-button.incorrect{background:#c66d5b;border-color:#a44f40;color:#fffaf4}
.section-eyebrow,.endpoint-label,.board-caption,.word-tag{font-size:12px}
.board-caption span:last-child,.move-counter>span:last-child{font-size:13px}
.board-instruction{font-size:14px;color:#78846c;line-height:1.5;min-height:21px}
.keyboard-key{font-size:17px;color:#5c6e50}
.hint-button{font-size:14px;color:#887348}
.submit-button{font-size:16px}
.feedback strong{font-size:15px}.feedback p{font-size:14px;color:#6d7d5e}
.feedback.error p{color:#925c49}.feedback.hint p{color:#856c2e}
.feedback.blocked{background:#fff0e9;border-color:#edd0c2}.feedback.blocked strong{color:#ad6651}.feedback.blocked p{color:#925c49}.feedback.blocked .feedback-icon{color:#bc7b63;background:#f4ddd1}
.journey h2{font-size:14px}.journey-heading>span{font-size:12px}
.journey li{font-size:14px}.phonetic{font-size:18px;color:#728067}
.pronunciation-note,.card-footer,.page-footer{font-size:12px;color:#8a937a}
.definition{font-size:18px;color:#62735b}.intro{font-size:16px;color:#73816d}
@media(max-width:430px){.keyboard-key{font-size:15px}.submit-button{font-size:14px}.hint-button{font-size:13px}.intro{font-size:15px}.feedback strong{font-size:14px}.feedback p{font-size:13px}.journey-heading>span{font-size:11px}.board-instruction{font-size:13px}}

/* Compact round summary and trail above the guess panel. */
.app-shell{padding-top:16px}main{padding-top:0}
.challenge-strip{flex-wrap:nowrap;gap:12px;margin:0 0 16px;padding:8px 0 16px;border-bottom:1px solid var(--line)}
.endpoint{min-width:0;gap:3px}.endpoint-label{font-size:10px;letter-spacing:1px}.endpoint strong{font-size:23px;letter-spacing:0;overflow-wrap:anywhere}
.challenge-arrow{color:#b4a47a;font-size:22px;flex:none}
.move-counter{min-width:48px;margin-left:auto;padding-left:10px;flex:none}.move-counter>span:first-child{font-size:23px}.move-counter>span:last-child{font-size:11px}
.challenge-strip .restart-button{flex:none;gap:5px;font-size:13px;padding:10px 0 10px 4px;min-height:44px}.challenge-strip .restart-button svg{width:18px;height:18px}
.journey{margin:0 0 16px}.journey ol{padding-top:8px;max-height:90px}.journey h2{font-size:13px}
.board-instruction{margin:0 0 16px;min-height:21px}.letter-board{margin:0 0 22px}
@media(max-width:430px){.app-shell{padding:12px}.challenge-strip{gap:8px}.endpoint strong{font-size:21px}.move-counter{min-width:43px;padding-left:8px}.challenge-strip .restart-button{font-size:12px}.board-panel{padding:18px 14px}.board-instruction{margin-bottom:16px}.letter-board{margin-top:0}}

/* Keep the mobile game and vocabulary card together within the visible screen. */
@media(max-width:760px){
 .app-shell{padding:8px 12px;padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom))}
 main{height:calc(100svh - max(8px,env(safe-area-inset-top)) - max(8px,env(safe-area-inset-bottom)));display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:10px;padding:0}
 .challenge-strip{padding:0 0 8px;margin:0 0 8px;gap:8px}.endpoint{gap:1px}.endpoint strong{font-size:21px}
 .board-panel{padding:10px 12px;border-radius:16px}.board-instruction{margin:0 0 8px;font-size:13px;line-height:1.4;min-height:19px}
 .letter-board{gap:8px;margin:0 0 12px}.letter-tile{flex:0 1 58px;min-width:0;width:58px;height:54px;font-size:32px;border-radius:9px}
 .keyboard{gap:5px}.keyboard-row{gap:4px}.keyboard-key{height:38px;font-size:15px}
 .action-row{margin-top:10px;gap:8px}.submit-button{min-width:140px;min-height:44px;padding:8px 14px;font-size:14px}.hint-button{min-height:44px;font-size:13px}
 .discovery-card{height:auto;max-height:100%;min-height:0;display:flex;flex-direction:column;align-self:start;border-radius:16px;margin:0;transform:none}
 .card-topline,.card-footer,.page-footer{display:none}
 .illustration-frame{flex:0 1 auto;min-height:0;aspect-ratio:3/2;margin:14px 10px 0;border-radius:8px}.illustration-frame img{object-fit:contain}
 .word-details{flex:none;padding:8px 14px 10px}.word-title-row{gap:10px}.word-title-row h2{font-size:27px;margin:0 0 2px;letter-spacing:-.7px}.phonetic{font-size:15px;line-height:1.3}
 .speaker-button{width:44px;height:44px}.speaker-button svg{width:22px;height:22px}
 .definition{font-size:15px;line-height:1.4;margin:7px 0 0;min-height:0}.pronunciation-note{display:none}
}
@media(max-width:760px) and (max-height:560px) and (orientation:landscape){
 main{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:12px}
 .keyboard-key{height:30px}.letter-tile{height:44px;font-size:27px}.letter-board{margin-bottom:8px}.board-instruction{margin-bottom:5px}.board-panel{padding:8px 10px}.action-row{margin-top:6px}
}
