:root{color-scheme:light;--cream:#faf7ee;--ink:#204f49;--muted:#6b8178;--gold:#d4aa6d;--line:rgba(59,91,72,.14);--shadow:0 16px 60px #103d3930;--sans:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--serif:Georgia,"Times New Roman",serif}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#327c78;font-family:var(--sans);color:var(--ink);overscroll-behavior:none}body{user-select:none;-webkit-user-select:none}button,a,select{touch-action:manipulation}button,select,input,textarea{font:inherit}button{cursor:pointer;border:0;color:inherit}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #d9a458;outline-offset:4px}button{transition:background .18s,transform .18s,box-shadow .18s}button:active{transform:scale(.97)}button svg,a svg{width:20px;height:20px;display:block}a{color:inherit;text-decoration:none}button span[data-icon]{display:inline-flex;align-items:center;justify-content:center}button[hidden],[hidden]{display:none!important}#pond{position:fixed;inset:0;width:100%;height:100%;touch-action:none;outline:0}.edge-shade{position:fixed;inset:0;pointer-events:none;background:linear-gradient(180deg,#0a393e58 0,transparent 25%,transparent 72%,#123d3a25 100%)}.topbar{position:fixed;top:0;left:0;right:0;padding:26px 36px;display:flex;align-items:center;justify-content:space-between;z-index:4;pointer-events:none;color:var(--cream)}.topbar>*{pointer-events:auto}.brand{display:flex;align-items:center;gap:10px}.brand .brand-mark{width:45px;height:45px}.brand strong{font-family:var(--serif);font-weight:500;font-size:28px;line-height:1.1;letter-spacing:-.7px}.brand small{display:block;font-size:9px;letter-spacing:2.4px;margin-top:5px;text-transform:uppercase;opacity:.8}.top-actions{display:flex;align-items:center;gap:10px}.pill{border-radius:99px;display:inline-flex;align-items:center;gap:10px;min-height:43px;padding:0 16px;font-size:13px}.light-pill{background:#f9f8edec;color:#385c51;box-shadow:0 3px 20px #123b3914}.light-pill i{font-size:11px;opacity:.6;font-style:normal;margin-left:5px}.tiny-icon svg{width:13px;height:13px}.icon-button{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border-radius:50%;flex-shrink:0}.glass-button{border:1px solid #f5f5e040;background:#0d504b3b;color:var(--cream);backdrop-filter:blur(8px)}.glass-button:hover{background:#ffffff22}.pond-caption{position:fixed;top:107px;left:43px;display:flex;align-items:center;gap:9px;font-size:9px;letter-spacing:1.5px;color:#f5f6e9d9;pointer-events:none}.pond-caption #pondTime{font-size:10px;letter-spacing:.3px;opacity:.65}.caption-line{width:20px;height:1px;background:#e6ecdf60}.live-dot{width:4px;height:4px;border-radius:50%;background:#e5d9ac;box-shadow:0 0 8px #eff7b280}.mode-switch{position:fixed;top:29px;left:50%;transform:translateX(-50%);display:flex;gap:3px;padding:4px;background:#174e4754;backdrop-filter:blur(12px);border:1px solid #f8f9e52b;border-radius:99px;z-index:5}.mode-switch button{padding:10px 17px;border-radius:30px;background:transparent;color:#eaf0e4bb;font-size:12px;display:flex;align-items:center;gap:7px}.mode-switch button svg{width:15px;height:15px}.mode-switch button.active{background:#f5f3e7;color:#365d4f;box-shadow:0 2px 8px #174c372b}.growth-pill{position:fixed;right:38px;top:100px;display:flex;align-items:center;gap:11px;color:#f3f4df;z-index:3;padding:10px 12px;border-radius:12px;background:#173f3e2b;backdrop-filter:blur(4px)}.growth-pill>span{display:flex}.growth-pill>span svg{width:24px;height:24px}.growth-pill>div{width:170px}.growth-pill>div>span{font-size:10px;letter-spacing:.2px}.growth-track{height:3px;background:#ffffff22;margin-top:7px;border-radius:4px;overflow:hidden}.growth-track span{display:block;width:0;height:100%;background:#e5c989;transition:width .7s}.growth-pill b{font-size:10px;font-weight:400;white-space:nowrap;opacity:.8}
.welcome-card{position:fixed;left:6.5%;bottom:18%;width:390px;padding:0;z-index:2;color:#fcf8ec;text-shadow:0 2px 24px #11433e65}.eyebrow{font-size:9px;letter-spacing:1.9px;font-weight:600}.welcome-card .eyebrow{display:flex;gap:9px;align-items:center;color:#f8edd2}.small-star{font-size:24px;font-weight:300;line-height:1}.welcome-card h2{font-family:var(--serif);font-size:69px;line-height:1.03;font-weight:400;letter-spacing:-2.5px;margin:23px 0 22px}.welcome-card h2 em{font-weight:400;color:#f0d5a6}.welcome-card p{font-size:13px;line-height:1.8;color:#edf4e3d9;margin-bottom:26px}.welcome-choice{display:flex;align-items:center;justify-content:space-between;width:290px;padding:14px 16px;border:1px solid #f4f0d238;border-radius:12px;background:#123b3336;backdrop-filter:blur(8px);margin-bottom:12px}.welcome-choice label{font-size:11px;color:#edf2ddd1}.welcome-choice select{max-width:178px;border:0;color:#fff8e7;background:transparent;font-size:13px;outline:none}.welcome-choice option{color:#244f44;background:#f9f7ef}.primary-button{background:#f2e7c9;border:1px solid #faf4d6;color:#254f45;border-radius:11px;font-size:13px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 20px;font-weight:600;min-height:49px;box-shadow:0 5px 20px #123c3520}.primary-button:hover{background:#fff5dc;box-shadow:0 6px 22px #113b3540}.welcome-card .primary-button{width:290px}.welcome-foot{font-size:10px;display:flex;gap:8px;align-items:center;margin-top:16px;opacity:.75}.welcome-foot svg{width:14px;height:14px}
.word-card{position:fixed;bottom:111px;left:36px;width:300px;padding:20px 22px 12px;border-radius:18px;background:#faf7eef0;backdrop-filter:blur(16px);box-shadow:var(--shadow);z-index:3;border:1px solid #fff8e4cc}.word-header{display:flex;align-items:center;justify-content:space-between}.word-header .eyebrow{font-size:8px;letter-spacing:1.5px;color:#71867a}.word-badge{font-size:10px;min-width:24px;height:24px;display:grid;place-items:center;border:1px solid #afc1af66;border-radius:50%;color:#778973}.word-main{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:7px 0 12px;min-height:87px}.word-copy{min-width:0}.word-copy h2{font-size:39px;line-height:1.2;letter-spacing:-1px;margin:0 0 4px;font-weight:500;overflow-wrap:anywhere;max-height:100px;overflow:hidden;padding-bottom:3px}.word-copy h2.long-word{font-size:25px;letter-spacing:-.5px}.word-copy>span{font-size:11px;color:#869181;font-style:italic}.word-copy>p{font-size:16px;color:#536e5e;margin:6px 0 0;line-height:1.3;overflow-wrap:anywhere}.word-listen{height:45px;width:45px;border:1px solid #a9bba44d;border-radius:50%;background:#edf0e5;display:flex;align-items:center;justify-content:center;color:#65846c;flex-shrink:0}.word-listen:hover{background:#e3e9d6}.word-footer{border-top:1px solid #94aa8d30;padding-top:11px;display:flex;justify-content:space-between;gap:5px}.word-footer button{background:transparent;color:#849280;display:flex;align-items:center;gap:5px;font-size:10px;padding:5px 0}.word-footer button svg{width:14px;height:14px}.word-footer button.selected{color:#3e725e}.sentence-block{border-top:1px solid var(--line);padding-top:10px;margin-bottom:10px;max-height:108px;overflow:auto;user-select:text;-webkit-user-select:text}.sentence-block p{margin:0 0 6px;font-size:12px;line-height:1.5}.sentence-block p+p{font-size:11px;color:var(--muted)}.practice-card{position:fixed;top:102px;left:50%;transform:translateX(-50%);min-width:280px;max-width:min(430px,calc(100vw - 30px));padding:16px 22px 12px;border-radius:16px;background:#faf7eef0;backdrop-filter:blur(14px);box-shadow:var(--shadow);text-align:center;z-index:3}.practice-card .eyebrow{font-size:8px;color:#8b9275}.practice-card>div:nth-child(2){display:flex;align-items:center;justify-content:center;gap:6px}.practice-card #practiceMeaning{font-family:var(--serif);font-size:27px;overflow-wrap:anywhere}.practice-card .icon-button{width:34px;height:34px}.practice-card .icon-button svg{width:16px}.practice-card p{font-size:10px;color:#81917b;margin:2px 0 0}.instruction{position:fixed;bottom:122px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:7px;font-size:11px;white-space:nowrap;color:#eff5e7bf;pointer-events:none;text-shadow:0 2px 5px #174b3c}.instruction svg{width:16px;height:16px}
.bottom-controls{position:fixed;bottom:max(30px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:12px;align-items:center;z-index:4}.dock{display:flex;align-items:center;gap:4px;padding:8px 12px;border:1px solid #faf9eab3;border-radius:16px;background:#faf8eff2;backdrop-filter:blur(20px);box-shadow:0 8px 32px #0b3e3333}.dock button{display:flex;gap:8px;align-items:center;padding:12px 14px;border-radius:10px;background:transparent;font-size:11px;color:#6b8070;white-space:nowrap}.dock button:hover{background:#e4eadc}.dock button:first-child{color:#2c624e}.dock button svg{width:19px;height:19px}.dock b{min-width:19px;height:19px;display:grid;place-items:center;font-size:9px;font-weight:500;background:#e4eadc;border-radius:50%;color:#5c7a62}.dock-divider{height:25px;width:1px;background:#a0b29840;margin:0 4px}.guide-button{display:flex;gap:8px;align-items:center;border:1px solid #e9f1d552;border-radius:13px;background:#21554bc9;backdrop-filter:blur(14px);padding:18px 17px;color:#f3eed7;font-size:11px;box-shadow:0 5px 25px #123c3733;white-space:nowrap}.guide-button svg{width:18px;height:18px}.sponsor{position:fixed;right:36px;bottom:44px;display:flex;gap:8px;align-items:center;color:#edf0ddcf;font-size:11px;font-weight:600;z-index:2}.sponsor span{font-size:9px;font-weight:400;opacity:.6}.sponsor svg{width:11px;height:11px}.toast{position:fixed;z-index:30;bottom:110px;left:50%;transform:translateX(-50%);padding:13px 19px;max-width:min(430px,calc(100vw - 30px));background:#f7f4e6f5;backdrop-filter:blur(14px);color:#365e4d;border:1px solid #fff7df;border-radius:12px;box-shadow:var(--shadow);font-size:12px;line-height:1.5;text-align:center;pointer-events:none;animation:toast-in .3s ease}.paused-overlay{position:fixed;inset:0;z-index:10;background:#17443970;backdrop-filter:blur(12px);display:grid;place-items:center;text-align:center;color:var(--cream)}.paused-overlay>div>span svg{width:46px;height:46px}.paused-overlay h2{font-family:var(--serif);font-size:44px;font-weight:400;margin:20px 0 10px}.paused-overlay p{font-size:12px;opacity:.8;margin-bottom:27px}.paused-overlay .primary-button{margin:auto;min-width:220px}
dialog{position:fixed;border:1px solid #f8f7eb;border-radius:23px;max-height:calc(100dvh - 70px);width:min(540px,calc(100vw - 30px));max-width:540px;background:#faf8ef;color:var(--ink);padding:27px;box-shadow:0 28px 100px #0a363966;overflow:auto;overscroll-behavior:contain;user-select:none;-webkit-user-select:none}dialog::backdrop{background:#123c3b66;backdrop-filter:blur(7px)}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px;gap:15px}.panel-heading .eyebrow{color:#89917a;font-size:8px;margin-bottom:9px}.panel-heading h2{font-family:var(--serif);font-size:31px;line-height:1.1;font-weight:400;letter-spacing:-.8px;margin:0}.panel-close{width:34px;height:34px;background:#e8ecdf;color:#6e8270}.panel-close svg{width:17px;height:17px}.panel-description{font-size:12px;line-height:1.7;color:#768575;margin:0 0 20px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}.field{display:flex;flex-direction:column;gap:8px;font-size:11px;color:#6b806e}.field select,.field input,textarea{border:1px solid #a3b39870;border-radius:10px;background:#fffdf7;padding:12px;color:#335d4b;min-width:0;font-size:13px}textarea{resize:vertical;min-height:170px;width:100%;line-height:1.5;user-select:text;-webkit-user-select:text}.field input{user-select:text;-webkit-user-select:text}.button-row{display:flex;gap:9px;margin-top:17px;flex-wrap:wrap}.button-row>*{flex:1;justify-content:center}.secondary-button{border:1px solid #9db39466;background:#eaf0df;border-radius:10px;padding:13px 17px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;min-height:44px}.secondary-button svg{width:16px;height:16px}.panel-primary{background:#315f4b;color:#faf7df;border-color:#315f4b}.panel-primary:hover{background:#264f3c}.section-label{font-size:9px;letter-spacing:1.5px;color:#8a957e;margin:24px 0 11px;text-transform:uppercase}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 0;border-bottom:1px solid var(--line);font-size:12px}.setting-row small{display:block;font-size:10px;color:#8a9583;margin-top:5px;line-height:1.5}.switch{appearance:none;-webkit-appearance:none;width:40px;height:23px;border-radius:30px;position:relative;background:#cdd5c4;cursor:pointer;flex-shrink:0;transition:background .2s}.switch:after{content:"";display:block;height:17px;width:17px;position:absolute;left:3px;top:3px;border-radius:50%;background:#fcfbf3;box-shadow:0 1px 3px #34512624;transition:transform .2s}.switch:checked{background:#517e5e}.switch:checked:after{transform:translateX(17px)}.select-small{max-width:130px;border:1px solid #a3b39870;border-radius:8px;background:#fdfbf1;padding:8px;font-size:11px;color:#375e48}.panel-note{font-size:10px;line-height:1.7;color:#8a947d;margin:15px 0 0}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:18px}.stat-grid>div{background:#edf0e3;border-radius:12px;padding:14px;text-align:center}.stat-grid strong{display:block;font-family:var(--serif);font-size:27px;font-weight:400;margin-bottom:4px}.stat-grid span{font-size:9px;color:#839178}.word-list{max-height:330px;overflow:auto;overscroll-behavior:contain;margin-top:17px}.word-row{padding:13px 2px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.word-row .word-item{min-width:0}.word-row strong{font-weight:500;font-size:18px;overflow-wrap:anywhere}.word-row .word-native{font-size:11px;color:#8f997f;margin-left:8px}.word-row p{margin:5px 0 0;font-size:12px;color:#788870;overflow-wrap:anywhere}.word-row .icon-button{width:37px;height:37px;background:#eef0e3}.word-row .icon-button svg{width:17px}.word-row small{display:block;font-size:9px;color:#8f9a82;margin-top:6px}.empty-state{padding:24px 15px;text-align:center;color:#819177;border:1px dashed #b0bea1;border-radius:13px;font-size:12px;line-height:1.8}.empty-state svg{width:36px;height:36px;margin-bottom:10px}.collection-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.koi-choice{border:1px solid #c0cdb672;background:#eff1e7;border-radius:15px;text-align:left;padding:15px;min-height:150px;position:relative;overflow:hidden}.koi-choice.active{border:1.5px solid #6d956b;background:#e7eedc}.koi-choice .koi-preview{height:68px;width:100%;display:flex;align-items:center;justify-content:center}.koi-choice .koi-preview svg{height:76px;width:145px}.koi-choice strong{display:block;font-family:var(--serif);font-size:19px;font-weight:400;margin-top:8px}.koi-choice small{font-size:10px;color:#85927a;display:block;line-height:1.5;margin-top:5px}.koi-lock{position:absolute;right:12px;top:10px;font-size:9px;color:#8e9b7d;display:flex;gap:5px;align-items:center}.koi-lock svg{width:12px;height:12px}.theme-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.theme-choice{padding:0;overflow:hidden;border:1.5px solid transparent;background:#eff0e3;border-radius:12px;text-align:left}.theme-choice.active{border-color:#608269}.theme-swatch{height:88px;position:relative;overflow:hidden}.theme-swatch:before,.theme-swatch:after{content:"";position:absolute;left:15px;top:19px;width:36px;height:33px;border-radius:50%;background:#526f3699;box-shadow:0 2px 6px #17382844}.theme-swatch:after{width:23px;height:21px;left:43px;top:42px;background:#86a15c99}.theme-swatch.jade{background:radial-gradient(ellipse at 75% 30%,#9ec3aa,#4e9e96 65%,#367e74)}.theme-swatch.dusk{background:radial-gradient(ellipse at 75% 30%,#e5c28b,#a77e78 65%,#765b70)}.theme-swatch.moon{background:radial-gradient(ellipse at 75% 30%,#6991a7,#31596a 65%,#1f384f)}.theme-choice strong{display:block;font-size:11px;font-weight:500;padding:12px 10px}.import-tabs{display:flex;gap:5px;padding:4px;background:#e9eddf;border-radius:10px;margin-bottom:16px}.import-tabs button{flex:1;background:transparent;padding:10px;border-radius:7px;font-size:11px;color:#7b8c70}.import-tabs button.active{background:#faf8ed;color:#3f654c;box-shadow:0 2px 5px #3653310d}.error-text{font-size:11px;line-height:1.6;color:#a45147;margin-top:10px}.success-text{font-size:11px;line-height:1.6;color:#517c4c;margin-top:10px}.file-label{cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;border:1px dashed #a8b99a;border-radius:10px;padding:15px;font-size:11px;margin-top:12px;color:#718568}.file-label svg{width:16px;height:16px}input[type=file]{display:none}.fatal-error{position:fixed;z-index:100;inset:0;background:#faf7ee;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:30px;text-align:center}.fatal-error h2{font-family:var(--serif);font-weight:400;font-size:30px}.fatal-error p{font-size:13px;max-width:400px;line-height:1.8;margin-bottom:25px}.help-steps{padding-left:22px;font-size:12px;line-height:1.8;color:#6b806b}.help-steps li{margin:12px 0}.help-steps strong{color:#355e47}.keyboard-tip{font-size:10px;color:#96a08b;margin-top:20px}.link-button{background:none;text-decoration:underline;text-underline-offset:3px;padding:7px 0;font-size:11px;color:#72846a}.export-text{font:11px/1.5 ui-monospace,monospace;min-height:190px}.row-between{display:flex;align-items:center;justify-content:space-between;gap:12px}.row-between .section-label{margin:19px 0 9px}.flash{animation:card-flash .6s ease}@keyframes card-flash{50%{box-shadow:0 0 0 6px #efe2ac4d,var(--shadow)}}@keyframes toast-in{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}
@media(min-width:1500px){.welcome-card{left:9%;bottom:19%}.welcome-card h2{font-size:80px}.word-card{left:46px;bottom:116px}.topbar{padding:30px 46px}.pond-caption{left:53px;top:113px}}
@media(max-width:1100px){.sponsor{display:none}.mode-switch{top:101px}.growth-pill{top:98px;right:28px}.growth-pill>div{width:105px}.growth-pill>div>span{font-size:9px;display:block;max-width:105px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.word-card{width:275px;left:24px}.instruction{bottom:113px;left:auto;right:30px;transform:none;font-size:10px}.pond-caption{left:31px;top:103px}.topbar{padding:24px}.welcome-card{left:7%;bottom:20%}.practice-card{top:158px;left:50%}.practice-card~.instruction{max-width:280px}.mode-switch button{padding:8px 14px}.growth-pill{padding:7px 9px}.growth-pill>span svg{width:20px;height:20px}}
@media(max-width:700px){.topbar{padding:calc(16px + env(safe-area-inset-top)) 18px 12px}.brand{gap:6px}.brand .brand-mark{width:34px;height:34px}.brand strong{font-size:23px;letter-spacing:-.8px}.brand small{font-size:7px;letter-spacing:2px;margin-top:4px}.top-actions{gap:7px}.pill{min-height:35px;padding:0 11px;gap:6px;font-size:11px}.pill>span:first-child svg{width:14px;height:14px}.pill .tiny-icon{display:none}.light-pill i{font-size:9px;margin-left:1px}.glass-button{height:34px;width:34px}.glass-button svg{height:16px;width:16px}.pond-caption{top:calc(78px + env(safe-area-inset-top));left:24px;font-size:8px;letter-spacing:1.3px;gap:7px}.pond-caption #pondTime,.caption-line{display:none}.welcome-card{left:28px;bottom:160px;width:calc(100% - 56px);text-shadow:0 2px 20px #143f3b75}.welcome-card h2{font-size:56px;letter-spacing:-2px;margin:20px 0 18px}.welcome-card p{font-size:12px;margin-bottom:20px}.welcome-card .eyebrow{font-size:8px}.welcome-choice,.welcome-card .primary-button{width:min(290px,100%)}.welcome-choice{padding:12px 14px;margin-bottom:10px}.welcome-card .primary-button{padding:14px 18px;min-height:47px}.welcome-foot{font-size:9px;margin-top:14px}.mode-switch{top:calc(103px + env(safe-area-inset-top));left:22px;transform:none;padding:3px}.mode-switch button{font-size:10px;padding:8px 11px;gap:5px}.mode-switch button svg{width:13px;height:13px}.growth-pill{top:calc(104px + env(safe-area-inset-top));right:19px;gap:7px;background:#123f3c38}.growth-pill>div{width:75px}.growth-pill>div>span{display:none}.growth-pill>span svg{width:19px;height:19px}.growth-pill b{font-size:9px}.growth-track{margin-top:0;height:3px}.word-card{left:16px;bottom:calc(83px + env(safe-area-inset-bottom));width:calc(100% - 32px);padding:13px 17px 9px;border-radius:16px}.word-header .eyebrow{font-size:7px;letter-spacing:1.6px}.word-badge{height:20px;min-width:20px;font-size:8px}.word-main{min-height:50px;margin:5px 0 10px;gap:10px}.word-copy{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 11px;padding-right:5px}.word-copy h2{font-size:30px;max-height:67px;margin:0}.word-copy h2.long-word{font-size:21px}.word-copy>span{font-size:10px}.word-copy>p{font-size:13px;margin:0;flex-basis:100%}.word-listen{height:39px;width:39px}.word-listen svg{width:17px;height:17px}.word-footer{padding-top:6px}.word-footer button{font-size:9px;min-height:26px}.word-footer button svg{width:13px;height:13px}.sentence-block{max-height:76px;margin-bottom:6px;padding-top:6px}.sentence-block p{font-size:11px;line-height:1.4}.sentence-block p+p{font-size:10px}.bottom-controls{bottom:calc(13px + env(safe-area-inset-bottom));gap:7px;width:calc(100% - 32px);justify-content:center}.dock{width:100%;justify-content:space-around;padding:6px;border-radius:14px;gap:0;height:57px}.dock button{flex-direction:column;gap:5px;padding:5px 10px;font-size:8px;position:relative;flex:1}.dock button svg{width:18px;height:18px}.dock b{position:absolute;top:0;right:8px;min-width:15px;height:15px;font-size:7px}.dock-divider{margin:0 3px;height:26px}.guide-button{position:fixed;right:0;bottom:calc(231px + env(safe-area-inset-bottom));height:35px;padding:0 11px;gap:5px;border-radius:30px;font-size:10px}.guide-button svg{width:14px;height:14px}.instruction{bottom:calc(257px + env(safe-area-inset-bottom));left:20px;right:auto;transform:none;font-size:9px;max-width:230px;white-space:normal}.instruction svg{width:13px;height:13px}.practice-card{top:calc(155px + env(safe-area-inset-top));padding:12px 17px 10px;min-width:240px;max-width:calc(100vw - 36px);border-radius:13px}.practice-card .eyebrow{font-size:7px}.practice-card #practiceMeaning{font-size:24px}.practice-card p{font-size:9px}.toast{bottom:calc(259px + env(safe-area-inset-bottom));font-size:11px;padding:11px 15px;max-width:calc(100vw - 35px)}dialog{padding:23px 20px;width:calc(100vw - 24px);max-height:calc(100dvh - 36px);border-radius:20px}.panel-heading h2{font-size:29px}.panel-description{font-size:11px}.form-row{gap:9px}.field select{font-size:12px;padding:11px 8px}.theme-swatch{height:70px}.theme-choice strong{font-size:10px;padding:11px 9px}.collection-grid{gap:9px}.koi-choice{padding:13px;min-height:148px}.koi-choice .koi-preview svg{width:130px}.koi-choice strong{font-size:18px}.koi-choice small{font-size:9px}.stat-grid>div{padding:12px 8px}.stat-grid span{font-size:8px}.stat-grid strong{font-size:25px}.keyboard-tip{display:none}}
@media(max-width:380px){.brand strong{font-size:21px}.topbar{padding-left:13px;padding-right:13px}.brand .brand-mark{width:29px}.top-actions{gap:5px}.pill{padding:0 8px}.pill>span:first-child{display:none}.welcome-card{left:24px;bottom:135px}.welcome-card h2{font-size:49px}.welcome-card p{font-size:11px}.growth-pill>div{width:49px}.mode-switch button{padding:8px 9px}.dock button{padding:5px 6px}.word-card{padding:11px 14px 8px}.guide-button{bottom:220px}.instruction{bottom:243px;max-width:200px}}
@media(max-height:560px) and (min-width:600px){.topbar{padding:15px 23px}.brand strong{font-size:25px}.brand .brand-mark{width:35px;height:35px}.pond-caption{top:72px;left:28px}.mode-switch{top:17px;left:50%;transform:translateX(-50%)}.growth-pill{top:69px;right:23px}.welcome-card{left:5%;bottom:78px;width:290px}.welcome-card h2{font-size:42px;letter-spacing:-1.5px;margin:13px 0}.welcome-card p{font-size:10px;margin:0 0 12px;line-height:1.6}.welcome-choice{padding:8px 12px;min-height:34px;width:240px;margin-bottom:8px}.welcome-card .primary-button{padding:10px 14px;min-height:38px;width:240px;font-size:11px}.welcome-foot{font-size:8px;margin-top:9px}.welcome-card .eyebrow{font-size:7px}.small-star{font-size:17px}.word-card{left:20px;bottom:80px;width:230px;padding:11px 15px 8px}.word-main{min-height:43px;margin:4px 0 8px}.word-copy h2{font-size:25px;max-height:57px}.word-copy>p{font-size:12px;margin-top:3px}.word-copy>span{font-size:9px}.word-listen{width:34px;height:34px}.word-listen svg{width:15px}.word-header .eyebrow{font-size:6px}.word-badge{height:18px;min-width:18px;font-size:7px}.word-footer{padding-top:6px}.word-footer button{font-size:8px}.word-footer button svg{width:12px;height:12px}.bottom-controls{bottom:15px}.dock{padding:5px 8px;height:49px;border-radius:13px}.dock button{font-size:10px;padding:9px 11px}.dock button svg{width:16px;height:16px}.guide-button{padding:14px 13px;height:47px;font-size:10px}.instruction{bottom:86px;right:25px;font-size:9px}.practice-card{top:70px;left:50%;min-width:230px;padding:9px 16px 8px}.practice-card .eyebrow{font-size:7px}.practice-card #practiceMeaning{font-size:22px}.practice-card p{font-size:9px}.practice-card .icon-button{width:27px;height:27px}.toast{bottom:80px}.sentence-block{max-height:65px}.sentence-block p{font-size:10px}dialog{max-height:calc(100dvh - 24px);padding:20px}.panel-heading{margin-bottom:16px}.panel-heading h2{font-size:27px}.panel-description{font-size:11px}.sponsor{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Bound imported phrases while keeping the pond reachable. */
.word-copy{flex:1}.word-copy h2.long-word{overflow:auto;padding-right:6px}.word-copy>p{max-height:62px;overflow:auto;user-select:text;-webkit-user-select:text}.practice-card #practiceMeaning{display:block;max-height:88px;overflow:auto;min-width:0;max-width:330px;padding:4px 3px;user-select:text;-webkit-user-select:text}.word-card{max-height:min(340px,48dvh);overflow:auto;overscroll-behavior:contain}.practice-card>div:nth-child(2){min-width:0}.practice-card .icon-button{flex-shrink:0}
@media(max-width:700px){.word-card{max-height:250px}.practice-card #practiceMeaning{font-size:23px;max-height:72px;max-width:calc(100vw - 115px)}.word-copy>p{max-height:48px}}
@media(max-height:560px) and (min-width:600px){.word-card{max-height:190px}.practice-card #practiceMeaning{max-height:48px;font-size:20px}.word-copy>p{max-height:38px}}

/* An independent, thumb-friendly music control keeps pronunciation separate. */
.music-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:0 13px;border-radius:30px;background:#124e4733;backdrop-filter:blur(8px);border:1px solid #f6f4de40;color:#f5f1e0b3;font-size:11px;white-space:nowrap}.music-button svg{width:17px;height:17px;flex-shrink:0}.music-button.is-on{background:#f6f2d91c;color:#faf1d2;border-color:#ecebc65c}.music-button:hover{background:#ffffff2b}.music-volume-row{display:flex;align-items:center;gap:14px;padding:17px 0;border-bottom:1px solid var(--line);font-size:11px}.music-volume-row label{flex:0 0 auto;color:#69816b}.music-volume-row input{flex:1;min-width:45px;height:28px;accent-color:#66856a;cursor:pointer;touch-action:pan-x}.music-volume-row output{min-width:32px;color:#7c8e71;text-align:right;font-size:10px}
@media(max-width:700px){.music-button{position:fixed;right:19px;top:calc(72px + env(safe-area-inset-top));min-height:26px;height:26px;font-size:9px;gap:5px;padding:0 10px;backdrop-filter:blur(4px)}.music-button svg{width:13px;height:13px}.music-volume-row{gap:10px;font-size:10px}}
@media(max-height:560px) and (min-width:600px){.music-button{position:static;min-height:34px;height:34px;padding:0 10px;font-size:10px}.music-button svg{width:15px;height:15px}.top-actions{gap:7px}.top-actions .light-pill{padding:0 11px;min-height:35px}.top-actions .glass-button{height:35px;width:35px}.topbar .brand strong{font-size:23px}}
@media(max-height:560px) and (min-width:600px) and (max-width:900px){.music-button span{display:none}.music-button{width:35px;padding:0}.mode-switch button{padding:8px 12px}.mode-switch{left:48%}}
@media(max-height:560px) and (min-width:600px) and (max-width:700px){
  .bottom-controls{width:auto;gap:9px}.dock{width:auto;justify-content:flex-start}.dock button{flex-direction:row;flex:none;gap:6px;padding:9px 11px;font-size:10px}.dock b{position:static;min-width:17px;height:17px;font-size:8px}.guide-button{position:static;flex-shrink:0;min-width:96px;height:49px;padding:0 13px}.instruction{bottom:85px;left:auto;right:24px;max-width:210px}
}
@media(max-height:560px) and (min-width:600px) and (max-width:660px){
  .mode-switch{top:67px;left:23px;transform:none}.pond-caption{display:none}.practice-card{top:68px;width:210px;min-width:210px;max-width:210px;padding:8px 10px}.practice-card #practiceMeaning{font-size:20px;max-width:150px}.practice-card .eyebrow{font-size:6px;letter-spacing:1px}
}
