:root{font-family:system-ui,-apple-system,"Microsoft YaHei",sans-serif;color:#191b1d;background:#fff;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible{outline:3px solid #a8c1b6;outline-offset:3px}[hidden]{display:none!important}.speed-shell{max-width:700px;margin:auto;padding:max(18px,env(safe-area-inset-top)) 24px max(26px,env(safe-area-inset-bottom))}.speed-header{display:flex;align-items:center;gap:8px;margin-bottom:29px}.back{display:grid;place-items:center;width:38px;height:44px;margin-left:-10px;color:#292e30}.back svg{width:25px;height:25px}.speed-header h1{font-size:22px;letter-spacing:1px;margin:0;flex:1}.order-switch{display:flex;gap:2px;padding:3px;border-radius:9px;background:#f1f2f3}.order-switch button{border:0;background:transparent;color:#999da1;border-radius:7px;padding:8px 11px;font-size:12px}.order-switch button[aria-pressed=true]{background:#fff;color:#252a2c;box-shadow:0 1px 4px #0000000d}.progress-caption{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:12px}#chooseLibrary{display:flex;align-items:center;gap:8px;min-width:0;border:0;padding:4px 0;background:transparent;text-align:left;color:#4e5558;font-size:13px}#libraryName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#progressText{flex-shrink:0;font-size:11px;color:#9da3a6;font-variant-numeric:tabular-nums}.progress-track{height:4px;border-radius:6px;background:#f0f1f2;overflow:hidden}.progress-track>span{display:block;height:100%;width:0;background:#375e4c;border-radius:6px}.speed-progress{margin-bottom:19px}#speedStatus{font-size:13px;color:#90979b;line-height:1.7;padding:30px 0;text-align:center}.word-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:18px;min-height:68px;border:0;border-bottom:1px solid #f1f2f3;width:100%;padding:12px 0;background:#fff;text-align:left}.word-label{font-size:21px;font-weight:750;color:#17191b;line-height:1.5;overflow-wrap:anywhere}.word-label>span{text-decoration:underline;text-decoration-color:#df6d6a;text-decoration-thickness:2px;text-underline-offset:7px}.translation{display:flex;align-items:center;position:relative;min-height:39px;align-self:stretch;font-size:13px;line-height:1.6;color:#979da2;overflow-wrap:anywhere}.translation-copy{padding:5px 9px}.word-row:not(.revealed) .translation-copy{visibility:hidden}.mask{position:absolute;inset:0;background:#eceeef;border-radius:5px;display:grid;place-items:center}.mask svg{width:19px;height:19px;color:#bfc5c8}.revealed .mask{display:none}.next-group{display:flex;align-items:center;justify-content:center;gap:17px;width:100%;min-height:49px;margin-top:26px;border:1px solid #d9dede;border-radius:8px;background:#fff;color:#343b3d;font-size:14px}.next-group:hover{background:#f7f9f8}dialog{width:540px;max-width:calc(100vw - 28px);max-height:80dvh;padding:22px;border:1px solid #e7eaea;border-radius:16px;color:#252b2d;background:#fff}dialog::backdrop{background:#17262160}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}.dialog-heading h2{font-size:18px;margin:0}.dialog-heading button{width:36px;height:36px;border:0;background:#f3f4f4;border-radius:50%;color:#7d8588;font-size:24px}#libraryTabs{display:flex;gap:7px;overflow:auto;padding:2px 2px 12px}#libraryTabs button{flex-shrink:0;border:1px solid #e3e7e5;border-radius:8px;background:#fff;padding:9px 12px;color:#858e89;font-size:12px}#libraryTabs button[aria-pressed=true]{background:#375e4c;color:#fff;border-color:#375e4c}#libraryOptions{display:grid;gap:8px;padding-top:6px}#libraryOptions>button{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #eaeeeb;border-radius:9px;padding:14px 12px;background:#fff;text-align:left;color:#444e48;font-size:13px}#libraryOptions>button[aria-pressed=true]{border-color:#91ad9b;background:#f5f8f5}#libraryOptions small{flex-shrink:0;color:#9aa49d;font-size:11px}#libraryOptions p{font-size:13px;color:#9aa49d}@media(max-width:420px){.speed-shell{padding-left:20px;padding-right:20px}.word-row{gap:13px;min-height:65px}.word-label{font-size:19px}.translation{font-size:12px}.speed-header{margin-bottom:24px}}
.word-label,.translation{border:0;background:transparent;text-align:left;font-family:inherit;padding:0;cursor:pointer}.visited .word-label>span{text-decoration-color:#5d9b78}.example-item{padding:15px 0;border-top:1px solid #edf0ee}.example-english{display:block;width:100%;padding:0;border:0;background:transparent;text-align:left;color:#273a30;font-size:17px;line-height:1.7;overflow-wrap:anywhere}.example-item p{color:#929b95;font-size:13px;line-height:1.8;margin:9px 0 0}.voice-status{font-size:12px;color:#929b95;line-height:1.7}.voice-status:empty{display:none}
.example-word-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}.example-word-heading h2{overflow-wrap:anywhere}#exampleWordDetails{display:flex;align-items:center;gap:7px;min-width:0}#exampleWordDetails>span{font-size:12px;color:#a2aaa5;line-height:1.6;overflow-wrap:anywhere}.speaker-button,.dialog-heading .speaker-button{display:inline-grid;place-items:center;flex-shrink:0;width:32px;height:32px;padding:6px;border:0;border-radius:7px;background:transparent;color:#9aa89f;vertical-align:middle}.speaker-button:hover,.dialog-heading .speaker-button:hover{background:#f1f5f2;color:#375e4c}.speaker-button svg{width:19px;height:19px}.example-line{display:flex;align-items:flex-start;gap:7px}.example-line .example-english{flex:1;min-width:0;width:auto}.example-target{text-decoration-line:underline;text-decoration-style:dashed;text-decoration-color:#7c9985;text-decoration-thickness:1px;text-underline-offset:5px}#closeExamples{flex-shrink:0;align-self:flex-start}
.example-word-button{border:0;padding:0;background:transparent;color:inherit;font:inherit;text-align:left;overflow-wrap:anywhere}
/* Keep word audio text separate from the compact heading icon buttons. */.example-word-heading{flex:1;gap:8px 10px;align-items:center}.example-word-heading h2{flex:0 0 auto;max-width:100%;font-size:22px;line-height:1.4}.dialog-heading .example-word-button{display:inline;width:auto;height:auto;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:#252b2d;font:inherit;font-weight:700;line-height:inherit;text-align:left;white-space:normal;overflow-wrap:anywhere}#exampleWordDetails{flex:1 1 150px}#exampleTitle{margin:0}

#chooseLibrary .change-library-label{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:4px 8px;border:1px solid #d6e3da;border-radius:6px;background:#edf4ef;color:#375e4c;font-size:11px;line-height:1.3;white-space:nowrap}#chooseLibrary:hover .change-library-label{background:#e1ede5;border-color:#adc6b6}

/* Fit the game to the visible screen, including mobile browser bars and notches. */
html{height:100%;overflow:hidden}
body{height:100%;overflow:hidden}
.speed-shell{height:100vh;height:100dvh;height:var(--speed-height,100dvh);min-height:0;display:flex;flex-direction:column;padding-top:max(10px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom));padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right));overflow:hidden}
.speed-header{flex-shrink:0;margin-bottom:clamp(8px,2vh,20px)}
.speed-progress{flex-shrink:0;margin-bottom:clamp(6px,1.5vh,14px)}
.progress-caption{margin-bottom:8px}
.word-rows{flex:1;min-height:0;display:flex;flex-direction:column}
.word-row{flex:1 0 auto;min-height:60px;padding:6px 0;gap:12px}
.word-label{font-size:clamp(17px,4.8vw,21px);line-height:1.35}
.translation{min-height:38px;line-height:1.4}
.next-group{flex-shrink:0;min-height:44px;margin-top:12px}
#speedStatus{flex-shrink:0;margin:0;padding:12px 0}
.voice-status{flex-shrink:0;margin:4px 0 0;font-size:11px}
dialog{overflow-y:auto;overscroll-behavior:contain;max-height:calc(var(--speed-height,100dvh) - 24px)}
@media(max-height:500px){.speed-shell{padding-top:max(4px,env(safe-area-inset-top));padding-bottom:max(6px,env(safe-area-inset-bottom))}.speed-header{margin-bottom:4px}.back{height:36px}.speed-header h1{font-size:19px}.speed-progress{margin-bottom:4px}.progress-caption{margin-bottom:4px}.next-group{min-height:40px;margin-top:6px}.word-row{min-height:48px;padding:4px 0}.order-switch button{padding:6px 10px}}
