.vocab-ic{background:linear-gradient(145deg,#adebf4,#51b6d4);color:#103f67;font-family:Fredoka,sans-serif}
#vocab{overflow:auto;overflow-x:hidden;align-items:stretch;text-align:left;color:#133f50;background:#f6fbf1;border-radius:26px;isolation:isolate;font-family:Fredoka,'Trebuchet MS',sans-serif}
#vocab *{box-sizing:border-box}#vocab button{font:inherit;cursor:pointer;touch-action:manipulation;line-height:1.25;color:inherit}#vocab button:focus-visible,#vocab a:focus-visible{outline:4px solid #7355d4;outline-offset:3px}#vocab button:disabled{cursor:wait;opacity:.65}#vocab h1,#vocab h2,#vocab p{margin:0}#vocab h1,#vocab h2{outline:none}.kv-art{display:block;width:100%;height:100%;object-fit:contain}
.kv-page{min-height:100%;padding:14px 18px max(28px,env(safe-area-inset-bottom));background:radial-gradient(ellipse at 95% 0,#c8eff3 0,transparent 50%),#f6fbf1}
.kv-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;font-size:19px}.kv-nav button{border:0;background:transparent;min-height:48px;padding:8px 4px}.kv-wallet{border-radius:16px;background:#fff4bf;padding:10px 14px;color:#685015;font-size:22px;white-space:nowrap}
.kv-title{font-size:38px;line-height:1.12;margin:14px 0!important;letter-spacing:-1px}.kv-home-art{height:190px;position:relative;border-radius:25px;overflow:hidden;background:linear-gradient(#a8e4f4 0 55%,#c2dfa5 55%);box-shadow:inset 0 0 0 2px #fff9;margin:14px 0 20px}.kv-home-art:before{content:'';position:absolute;width:150%;height:100px;background:#94c68a;border-radius:50%;left:-20%;bottom:-54px}.kv-trail{position:absolute;left:12%;right:12%;top:100px;height:70px;border-radius:50%;border-bottom:14px dotted #fff6d2;transform:rotate(-8deg)}.kv-home-art .kv-hero-object{position:absolute;width:86px;height:86px;filter:drop-shadow(0 6px 0 #29586720)}.kv-hero-object:nth-of-type(2){left:7%;top:64px;transform:rotate(-9deg)}.kv-hero-object:nth-of-type(3){left:40%;top:27px;transform:rotate(7deg)}.kv-hero-object:nth-of-type(4){right:5%;top:74px;transform:rotate(10deg)}
.kv-summary{display:flex;justify-content:space-between;gap:12px;font-size:19px;color:#3c6267;margin:14px 0}.kv-summary strong{color:#173f50}.kv-bar{height:13px;background:#dcebdd;border-radius:20px;overflow:hidden;margin:10px 0 20px}.kv-bar span{display:block;height:100%;background:#3b9b79;border-radius:20px}
.kv-primary,.kv-secondary{width:100%;min-height:62px;border-radius:18px;border:2px solid #246887;padding:15px 12px;font-size:24px!important;font-weight:bold;background:#287ea4;color:white!important;box-shadow:0 5px 0 #174e69;margin:8px 0 13px}.kv-primary:active,.kv-secondary:active{transform:translateY(3px);box-shadow:0 2px 0 #174e69}.kv-secondary{color:#174e69!important;background:#fffdf5;border-color:#b7d2d2;box-shadow:0 4px 0 #d7e6de}.kv-small{border:0;background:none;min-height:48px;padding:10px 6px;font-size:18px;text-decoration:underline}.kv-tools{display:flex;justify-content:space-between;gap:8px}.kv-tools button{min-width:90px}.kv-rule{font-family:'Trebuchet MS',sans-serif;font-size:18px;line-height:1.5;color:#3d6267;margin:14px 0!important}.kv-rules{font:17px/1.5 'Trebuchet MS',sans-serif;margin-top:14px}.kv-rules summary{min-height:48px;padding:12px 0;cursor:pointer}.kv-rules a{color:#145e82;display:inline-block;min-height:48px;padding:12px 0}
.kv-stage{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:19px;color:#3f626a;margin-bottom:12px}.kv-progress{display:flex;justify-content:space-between;list-style:none;margin:0 0 20px;padding:0;position:relative;gap:10px}.kv-progress:before{content:'';height:7px;position:absolute;top:18px;left:20px;right:20px;background:#d9e7d7}.kv-progress li{position:relative;z-index:1;width:42px;height:42px;display:grid;place-items:center;border-radius:15px;background:#e5eddf;font-size:20px;color:#59705c;border:2px solid #d2e1d1}.kv-progress .done{background:#398365;color:white;border-color:#398365}.kv-progress .current{background:#ffd36f;color:#604a1b;border-color:#f1bc44;box-shadow:0 0 0 4px #fff3c2}
.kv-instruction{font-size:23px;line-height:1.3;margin-bottom:12px!important}.kv-clue{background:#fffdf4;border:2px solid #d9e5d9;border-radius:24px;padding:15px;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:112px;margin:12px 0;box-shadow:0 5px 0 #e0eadd}.kv-word{font-size:42px;line-height:1.1;overflow-wrap:anywhere}.kv-clue-picture{width:145px;height:145px;margin:auto}.kv-listen{min-height:56px;min-width:84px;border:2px solid #bddce5;background:#e6f5fa;border-radius:17px;font-size:19px!important;padding:10px 8px;flex-shrink:0}.kv-listen .kv-speaker{display:block;font-size:22px;margin-bottom:2px}.kv-audio-state{font:17px/1.45 'Trebuchet MS',sans-serif;color:#3b6067}.kv-audio-state:not(:empty){margin:10px 0!important}.kv-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}.kv-choice{min-height:142px;min-width:0;border:3px solid #cedfd5;border-radius:22px;background:#fffef8;box-shadow:0 5px 0 #d9e7df;padding:12px;position:relative;display:flex;align-items:center;justify-content:center;font-size:27px!important;overflow-wrap:anywhere;transition:transform .15s ease,border-color .15s ease}.kv-choice .kv-art{height:110px}.kv-choices.three{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.kv-choices.three .kv-choice{padding:8px;min-height:115px}.kv-choices.three .kv-art{height:86px}.kv-choices.word-choices{grid-template-columns:1fr;gap:12px;margin-top:16px}.kv-choices.word-choices .kv-choice{min-height:65px}.kv-choice:hover{border-color:#70b7b8}.kv-choice.is-wrong{border-color:#c47758;background:#fff1df;box-shadow:0 5px 0 #e5c1a4}.kv-choice.is-answer{border-color:#398365;background:#eaf7df}.kv-choice.is-selected{border-color:#287ea4;transform:translateY(3px);box-shadow:0 2px 0 #c0d6d7}.kv-choice-marker{position:absolute;top:5px;right:8px;font-size:22px;color:#366f52}
.kv-feedback{border-radius:18px;background:#e4f0d9;padding:15px;margin:14px 0;display:flex;align-items:center;gap:12px;font-size:22px}.kv-feedback.learning{background:#fff0d9}.kv-feedback-art{width:78px;height:78px;flex-shrink:0}.kv-feedback strong{display:block;font-size:30px}.kv-example{font:19px/1.4 'Trebuchet MS',sans-serif;margin:12px 0!important}.kv-saved{font:17px/1.4 'Trebuchet MS',sans-serif;color:#466b60;margin:12px 0!important}.kv-result-star{font-size:94px;line-height:1.3;text-align:center;color:#e8b135;text-shadow:0 5px #b3832c;margin:12px auto}.kv-result{border:2px solid #dbe4ca;border-radius:24px;background:#fffdf0;padding:20px;text-align:center;margin:18px 0}.kv-result h2{font-size:29px}.kv-result p{font:19px/1.5 'Trebuchet MS',sans-serif;margin:10px 0!important}.kv-collected{display:flex;justify-content:center;gap:5px;margin:15px 0}.kv-collected .kv-art{width:18%;height:64px;background:#f4f5df;border-radius:12px;padding:3px}.kv-history{margin:18px 0}.kv-history-row{display:flex;justify-content:space-between;gap:8px;padding:15px 0;border-bottom:1px solid #d0dfce;font:18px/1.4 'Trebuchet MS',sans-serif}.kv-journal-row{border-radius:18px;background:#fffdf3;padding:14px;margin:12px 0;display:flex;gap:12px;align-items:center}.kv-journal-row .kv-art{width:75px;height:75px}.kv-journal-row strong{font-size:26px}.kv-journal-row p{font:17px/1.4 'Trebuchet MS',sans-serif;margin-top:4px!important}.kv-notice{font:20px/1.55 'Trebuchet MS',sans-serif;margin:16px 0!important}.kv-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@keyframes kv-pop{0%{transform:scale(.84)}70%{transform:scale(1.04)}100%{transform:scale(1)}}.kv-feedback,.kv-result-star{animation:kv-pop .3s ease-out}
@media(max-width:350px){.kv-page{padding:10px 12px 24px}.kv-nav{font-size:18px;margin-bottom:7px}.kv-title{font-size:34px}.kv-home-art{height:165px}.kv-home-art .kv-hero-object{width:75px;height:75px}.kv-word{font-size:35px}.kv-instruction{font-size:21px}.kv-choice .kv-art{height:98px}.kv-choice{min-height:128px}.kv-choices.three{gap:8px}.kv-choices.three .kv-choice{padding:4px;min-height:101px}.kv-choices.three .kv-art{height:78px}.kv-clue{padding:12px;min-height:101px}.kv-listen{min-width:76px;font-size:18px!important}.kv-progress{margin-bottom:16px}.kv-summary{font-size:18px}.kv-feedback{padding:12px;font-size:20px}.kv-feedback strong{font-size:28px}}
@media(prefers-reduced-motion:reduce){#vocab,#vocab *,#vocab *:before{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.kv-maze-goals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0 6px}.kv-maze-goals:has(.kv-goal:nth-child(3)){grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.kv-maze-goals .kv-goal{min-height:100px;padding:16px 6px 6px;border-width:2px}.kv-maze-goals .kv-art{height:80px}.kv-maze-goals.word-goals .kv-goal{font-size:22px!important;min-height:72px;padding:22px 5px 8px}.kv-maze-goals.word-goals{gap:6px}.kv-goal-letter{position:absolute;top:2px;left:8px;font:700 15px/1.3 'Trebuchet MS',sans-serif;color:#3f6665}.kv-maze-instruction{font:18px/1.35 'Trebuchet MS',sans-serif;margin:12px 0 7px!important}.kv-maze-wrap{border:2px solid var(--maze-accent,#46845a);border-radius:20px;overflow:hidden;background:#e9f2d9;box-shadow:0 5px 0 #d1e0ce}#vocab #kvMaze{display:block;width:100%;height:auto;touch-action:none;user-select:none;-webkit-user-select:none}.kv-maze-tools{display:flex;justify-content:space-between;gap:10px;margin:8px 0}.kv-maze-tools button{font-size:17px!important;min-height:48px}.kv-maze-goals .kv-goal:active{transform:translateY(3px)}
@media(max-width:350px){.kv-maze-goals .kv-art{height:67px}.kv-maze-goals .kv-goal{min-height:91px}.kv-maze-goals.word-goals .kv-goal{font-size:20px!important;min-height:68px}.kv-maze-instruction{font-size:17px}.kv-maze-goals:has(.kv-goal:nth-child(3)){gap:6px}}
.wrap:has(#vocab.on){padding-left:10px;padding-right:10px;padding-top:calc(10px + env(safe-area-inset-top));padding-bottom:calc(10px + env(safe-area-inset-bottom))}
#vocab[data-phase="question"][data-match-mode="trace"] .kv-page{padding:8px 12px 16px}
#vocab[data-phase="question"][data-match-mode="trace"] .kv-nav{margin-bottom:4px;min-height:44px;font-size:18px}
#vocab[data-phase="question"][data-match-mode="trace"] .kv-wallet{font-size:19px;padding:8px 12px}
#vocab[data-phase="question"][data-match-mode="trace"] .kv-stage,#vocab[data-phase="question"][data-match-mode="trace"] .kv-progress{display:none}
#vocab[data-phase="question"][data-match-mode="trace"] .kv-instruction{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#vocab[data-phase="question"][data-match-mode="trace"] .kv-clue{min-height:62px;padding:6px 10px;margin:4px 0 8px;border-radius:17px;position:sticky;top:0;z-index:5}
#vocab[data-phase="question"][data-match-mode="trace"] .kv-word{font-size:32px}
#vocab[data-phase="question"][data-match-mode="trace"] .kv-listen{min-height:48px;min-width:76px;font-size:17px!important;padding:6px 8px}
#vocab[data-phase="question"][data-match-mode="trace"] .kv-speaker{display:none}
#vocab[data-phase="question"][data-match-mode="trace"] .kv-clue-picture{width:76px;height:76px}
#vocab[data-phase="question"][data-match-mode="trace"] .kv-maze-goals{position:sticky;top:70px;z-index:4;background:#f6fbf1;margin:8px 0 6px;padding-bottom:5px}
#vocab[data-phase="question"][data-match-mode="trace"]:has(.kv-clue-picture) .kv-maze-goals{top:96px}
#vocab[data-phase="question"][data-match-mode="trace"] .kv-maze-goals .kv-goal{min-height:82px;padding:16px 6px 4px;border-radius:16px}
#vocab[data-phase="question"][data-match-mode="trace"] .kv-maze-goals .kv-art{height:62px}
#vocab[data-phase="question"][data-match-mode="trace"] .kv-maze-goals.word-goals .kv-goal{font-size:21px!important;min-height:64px;padding:19px 5px 7px}
#vocab[data-phase="question"][data-match-mode="trace"] .kv-maze-instruction{font-size:17px;margin:7px 0 5px!important}
#vocab[data-phase="question"][data-match-mode="trace"] .kv-maze-tools{margin:5px 0}
#vocab[data-phase="question"][data-match-mode="trace"] .kv-maze-tools button{font-size:16px!important;min-height:44px}
.kv-word-help{min-height:48px;min-width:72px;border:1px solid #b8d6c8;background:#edf4dd;border-radius:14px;font-size:16px!important;padding:7px;flex-shrink:0;max-width:80px}
#vocab[data-large-picture="1"] .kv-stage,#vocab[data-large-picture="1"] .kv-progress{display:none}
#vocab[data-large-picture="1"] .kv-page{padding:8px 12px 20px}
#vocab[data-large-picture="1"] .kv-nav{margin-bottom:4px;min-height:44px}
#vocab[data-large-picture="1"] .kv-instruction{font-size:21px;margin:6px 0 8px!important}
#vocab[data-large-picture="1"] .kv-clue{padding:8px;margin:6px 0 10px;justify-content:center;position:relative}
#vocab[data-large-picture="1"] .kv-clue-picture{width:200px;height:200px;margin:0}
#vocab[data-large-picture="1"] .kv-listen{position:absolute;right:8px;bottom:8px;min-width:62px;min-height:44px;padding:6px;font-size:16px!important}
#vocab[data-large-picture="1"] .kv-speaker{display:none}
#vocab[data-large-picture="1"] .kv-choices{margin:10px 0;gap:10px}
#vocab[data-large-picture="1"] .kv-choice{min-height:56px;font-size:25px!important}
.kv-feedback{display:grid;grid-template-columns:78px minmax(0,1fr)}
.kv-feedback strong{min-width:0;overflow-wrap:anywhere}
.kv-feedback .kv-listen{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px}
.kv-feedback .kv-speaker{display:inline;margin:0;font-size:20px}
.kv-feedback .kv-feedback-art{grid-column:1;grid-row:1}
.kv-large-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:5px 0}
#vocab[data-large-picture="1"] .kv-large-heading .kv-listen{position:static;min-width:72px;flex-shrink:0}
#vocab[data-phase="result"] .kv-title{font-size:28px;letter-spacing:-.5px;margin:10px 0!important}
#vocab[data-phase="result"] .kv-result{padding:12px;margin:12px 0}
#vocab[data-phase="result"] .kv-result-star{font-size:60px;line-height:1;margin:5px auto}
#vocab[data-phase="result"] .kv-result h2{font-size:24px}
#vocab[data-phase="result"] .kv-result p{font-size:18px;line-height:1.3;margin:8px 0!important}
#vocab[data-phase="result"] .kv-collected{margin:8px 0}
#vocab[data-phase="result"] .kv-collected .kv-art{height:48px}
#vocab[data-phase="question"][data-match-mode="trace"] .kv-word{font-size:clamp(24px,8vw,32px);overflow-wrap:normal;word-break:normal;white-space:nowrap}
#vocab[data-phase="question"][data-match-mode="trace"] .kv-maze-goals.word-goals .kv-goal{overflow-wrap:normal;word-break:normal;white-space:nowrap}
#vocab:is([data-phase="feedback"],[data-phase="correction"]) .kv-page{padding:8px 12px 18px}
#vocab:is([data-phase="feedback"],[data-phase="correction"]) .kv-nav{margin-bottom:6px;min-height:44px}
#vocab:is([data-phase="feedback"],[data-phase="correction"]) .kv-stage{display:none}
#vocab:is([data-phase="feedback"],[data-phase="correction"]) .kv-progress{margin-bottom:12px}
#vocab:is([data-phase="feedback"],[data-phase="correction"]) .kv-progress li{width:36px;height:36px;border-radius:12px}
#vocab:is([data-phase="feedback"],[data-phase="correction"]) .kv-progress:before{top:15px}
#openVocabScores{width:100%;min-height:64px;margin-bottom:10px;padding:14px;border:1px solid #77b5c4;border-radius:14px;background:#173f50;color:#edfaff;font:inherit;font-size:22px;text-align:left;cursor:pointer;touch-action:manipulation}
