/* Strawberry Garden: compact, warm, and keyboard friendly. */
:root{--ink:#694454;--rose:#ce547f;--rose-dark:#a53761;--line:#f0d7e1;--muted:#997889;--paper:#fffafc;font-family:"Segoe UI","Microsoft JhengHei",sans-serif;color:var(--ink);background:#fff2f7}
body{background:radial-gradient(ellipse at 4% 0,#fbd3e4 0,transparent 38%),radial-gradient(ellipse at 97% 30%,#f4e3ff 0,transparent 36%),linear-gradient(#fff4f8,#fff9f5);min-height:100vh}
body::before{content:'';position:fixed;inset:0;pointer-events:none;z-index:-1;background-image:radial-gradient(#d887a433 1px,transparent 1px);background-size:23px 23px}
header{max-width:1040px;padding:14px 24px;gap:12px}header h1{color:#ac3f6a;font-size:24px;letter-spacing:1px}header small{color:#ae8095;font-size:11px}#home{border:1px solid #edc6d8;background:#fff9fc;color:#a34b72;font-size:12px;min-height:36px;padding:8px 13px;box-shadow:0 3px 0 #f1dbe5}
main{max-width:980px;padding:6px 18px}.card{border:1px solid #f0d9e3;border-radius:28px;background:#fffffff2;box-shadow:0 10px 36px #ad577b0b;padding:20px 26px}h2{color:#9d4268;font-size:25px}p{color:#947384;font-size:13px}small,.muted{color:#a08291}.badge{background:#fce8f0;color:#b04f77;font-size:11px;border:1px solid #f6dce8;padding:6px 11px}
button{color:#9e5476;background:#f8eaf1;border-radius:13px;position:relative;overflow:hidden}button:hover:not(:disabled){box-shadow:0 4px 0 #eccada;transform:translateY(-2px)}button:focus-visible,input:focus-visible{outline:3px solid #de96b8;outline-offset:3px}.primary,#start{background:linear-gradient(135deg,#e07ca2,#ca537f);color:white;box-shadow:0 4px 0 #ac426a;border:1px solid #cd618b}.primary:hover:not(:disabled){box-shadow:0 6px 0 #ac426a}button:disabled{transform:none!important;cursor:default;box-shadow:none!important;opacity:.5}
input,select{color:#74475d}input[type=checkbox]{accent-color:#cd688f}input[type=checkbox]{width:17px;height:17px;min-width:17px;vertical-align:middle;padding:0}label{color:#92647b}
#setup>.badge{margin-bottom:4px}#setup>h2{margin-bottom:5px}#setup>p:first-of-type{margin-bottom:14px}#setup>fieldset{background:#fff9fc;border:1px solid #f0d5e1!important;border-radius:19px!important;padding:10px 14px!important}legend{font-size:12px;font-weight:800;color:#ba6d90;padding:0 7px}fieldset>.row{gap:8px}fieldset>.row>label{display:flex;align-items:center;gap:7px;background:white;padding:8px 11px;border:1px solid #f1dce5;border-radius:12px;font-size:12px;transition:background .2s,border .2s}fieldset>.row>label:has(input:checked){background:#fbe7ef;border-color:#e3a3bf;color:#a74771}fieldset p{font-size:10px;margin-bottom:0}#setup>.row{gap:8px}#setup>.row>button{font-size:12px;padding:10px 13px;min-height:39px}#setup>.row>#start{font-size:15px;padding:11px 25px}
.word-editor{border-color:#eed3df;background:linear-gradient(140deg,#fff4f8,#fff9f6);padding:16px;border-radius:21px}.editor-icon{background:#f9dfeb;box-shadow:0 3px 0 #edcbdc}.editor-heading h3{color:#a44c74;font-size:18px}.editor-heading p{color:#b18c9e}.editor-count{border-color:#edccdd;background:#fff;color:#ba6b90}.quick-add label{color:#b16b8c}.quick-add input{border-color:#efd4e0;background:#fffdfd;color:#7d4962;box-shadow:0 2px 0 #f6e8ef}.quick-add input:focus{border-color:#d989ad}.quick-add input::placeholder{color:#c5a5b5}.editor-message{color:#a76585}.editor-foot span,.word-preview-heading small{color:#b294a3}.editor-foot button{color:#b45c83}.word-preview-heading strong{color:#ae6084}.word-preview{max-height:155px;gap:8px}.word-chip{background:#fff;border-color:#efd9e4;color:#995a79;border-radius:13px;min-height:40px;padding:7px 11px;transition:background .2s,transform .2s,border-color .2s}.word-chip small{color:#b38c9f}.word-chip:hover{border-color:#dc8fb0;background:#fff5f9}.word-chip.editing{background:#fbe1ed;border-color:#d481a6;box-shadow:0 0 0 2px #f2ccdf}.word-chip.invalid{background:#fff0ef;color:#b34451;border-color:#eeb0ad}.word-chip .has-photo{font-size:10px;padding:3px 5px;background:#f4eafa;border-radius:6px;color:#a178b5}.edit-actions{color:#ac7992}.edit-actions button{color:#bc7797}.word-search{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #efd8e3;border-radius:12px;padding:7px 11px;margin:10px 0}.word-search input{border:0;box-shadow:none;background:transparent;text-align:left;font-size:12px;padding:0;width:100%;min-width:0;letter-spacing:0;border-radius:4px}.word-search span{font-size:14px}.word-search button{background:#f9edf3;font-size:10px;padding:4px 8px;min-height:23px}.empty-words{padding:14px;font-size:12px;color:#b48ca1;background:#fff8fb;border-radius:12px;width:100%}
.mode-choice{border-color:#efdae5;background:#fff7fa;color:#ad6d8b}.mode-choice small{color:#bb96a8}.mode-choice.active{background:#fbe7f0;border-color:#dc9eb9;box-shadow:0 3px 0 #efd1df}.mode-choice b{background:#d47fa4}
.image-station{border-color:#efcfdf;background:linear-gradient(125deg,#fff0f6,#f9effa 60%,#fff5ec);box-shadow:0 7px 24px #bf73980a}.station-mascot{box-shadow:0 5px 0 #efd5e3}.station-eyebrow{color:#c28ca6}.station-top h3{color:#b05880}.station-top p{color:#b28ba1}.engine-tile{background:#fff9fc;border-color:#f4e0ea;box-shadow:0 3px 0 #eed9e455}.engine-tile strong{color:#ac6485}.engine-tile small{color:#bf99ad}.engine-tile.selected{background:#fff;border-color:#d68cac;box-shadow:0 4px 0 #edcbdd}.engine-check{background:#cf7d9f}.explore-button{background:linear-gradient(120deg,#dc83ac,#c56d9c);box-shadow:0 5px 0 #aa5682}.toggle-track{background:#ddcbd4}.auto-toggle input:checked+.toggle-track{background:#d07a9f}.auto-toggle{color:#ae7791}.station-note,.station-tip{color:#b797a8}.station-tip{border-color:#edd9e3}.image-station #imageStatus{color:#a4748d;background:#ffffffbd}.image-station #imageProgressBox{background:#fffbfd;border-color:#efdae5}.image-progress-heading{color:#ae7090}.image-station #imageProgress::-webkit-progress-bar{background:#f8e4ef}.image-station #imageProgress::-webkit-progress-value{background:linear-gradient(90deg,#edacca,#d78bb6,#d5b0e2)}.image-station #imageProgress::-moz-progress-bar{background:#dc92b7}.search-buddy{color:#c08fa8}#bulkImageActions{background:#fff8fc;border-color:#efd5e4}#bulkImageCount{color:#ad7694}#useAllImages{background:#cf7ca3}#bulkImageActions small{color:#bf9aac}.image-choice{border-color:#f1dbe7;box-shadow:0 4px 0 #f2ddea80}.image-choice strong{color:#b06e92}.image-choice img{background:#fff8fb}.image-choice a{color:#bd95ad}.image-choice button{background:#f7e2ef;color:#b16c94}.image-choice button:disabled{background:#fae5ef;color:#b77495}.image-choice button:last-child{color:#c0a0b2}
.parent-panel{border-color:#efdae5;background:#fffcfe}.parent-panel.is-open{border-color:#d990b2;box-shadow:0 5px 20px #c76c9410}.panel-trigger:hover:not(:disabled){background:#fff4f9}.panel-icon,.record-panel .panel-icon{background:#fbe4ef}.panel-label strong{color:#ac6286}.panel-label small{color:#be97ab}.panel-arrow{background:#f8e6ef;color:#c284a2}.is-open .panel-arrow{background:#edcade}.guide-step>span{background:#fae2ed;color:#bc7897}.guide-step p{color:#af899d}.guide-step code{background:#fff6fa;border-color:#ebcddc;color:#b67b98}.guide-link{background:#f9e6f0;color:#b57595}.history-stat{background:#f9e5ef;color:#b07091}.history-stat:last-child{background:#f4e9fa;color:#a981b8}.history-track{background:#efd9e6}.history-fill{background:linear-gradient(90deg,#e4a6c1,#c789b3)}.history-item{border-color:#f4e3ed}.history-topline strong{color:#b16d92}.history-topline small,.history-empty{color:#b894aa}.reset-records{border-color:#efd7e2;color:#ad8197}.reset-records small{color:#c09caf}.reset-records button{background:#fbe4ed;color:#b26988}
#play{max-width:820px;margin:0 auto;background:linear-gradient(#fffdfef5,#fff8fcf5);border:2px solid #f3d9e6;position:relative}.scoreboard{background:#fceaf3;border:1px solid #f2d6e6;padding:8px;gap:26px}.scoreboard .yes{color:#bd5a89}.scoreboard .no{color:#a084b8}#roundLabel{font-size:10px;margin:6px}.progress{background:#f6dfea;height:8px}.progress span{background:linear-gradient(90deg,#eeaed0,#d686b2)}#play .picture{filter:drop-shadow(0 5px 0 #f2dfeb)}#play .picture img{border:3px solid white;box-shadow:0 3px 15px #d7acc020}#play h2{color:#a8597d}#speak{background:#fbe4ef;border:1px solid #f2cedf;color:#bb6b92;font-size:12px;min-height:35px;padding:7px 13px}.word{color:#a55980;letter-spacing:6px}.slots{background:#fff2f8;border-color:#e9b7d2;color:#bd7198}.letters button{background:#fce1ef;border-color:#edbad4;box-shadow:0 4px 0 #d99cbb;color:#a65c81}.letters button:nth-child(3n+2){background:#f1e4fb;border-color:#dbc0ee;box-shadow:0 4px 0 #c3a5d7;color:#9b73b5}.letters button:nth-child(3n){background:#ffe7e3;border-color:#f2c9c0;box-shadow:0 4px 0 #dcaea3;color:#b98275}#answer{border-color:#e7b5cf;background:#fffafd;box-shadow:0 4px 0 #f2dce8;color:#b2638e}#answer:focus{border-color:#ce83a8;outline-color:#fae5f0}#answer::placeholder{color:#ca9eb6}.alphabet-panel{background:linear-gradient(135deg,#fff0f8,#f8efff 60%,#fff4ef);border-color:#f0d5e5;box-shadow:0 4px 0 #f0dbe8}.alphabet-heading{color:#ba7b9c}.alphabet-tag{color:#bf8daa}.alphabet-key{background:#ffe1ef;border-color:#f0bdd6;box-shadow:0 3px 0 #dfa1bf;color:#b56c92}.alphabet-key:nth-child(4n+2){background:#f0e3ff;border-color:#decaef;box-shadow:0 3px 0 #c8abd9;color:#9f7bb6}.alphabet-key:nth-child(4n+3){background:#ffe9e6;border-color:#efd0cb;box-shadow:0 3px 0 #dfb7ad;color:#b9837c}.alphabet-key:nth-child(4n){background:#fce5f7;border-color:#eec8e5;box-shadow:0 3px 0 #dcaed0;color:#ae77a0}.alphabet-key.chosen{background:#cb78a3!important;color:white!important;border-color:#bd6692!important;box-shadow:0 1px 0 #a2517a!important}.alphabet-footer{color:#be9cb1}.alphabet-footer button{color:#b48ba6}.error{background:#fff0f4;color:#bf4e73!important}#feedback{font-size:12px;color:#b67496}#finish{background:transparent;color:#c09bad;font-size:11px;padding:4px 8px;min-height:25px}
dialog{background:radial-gradient(circle at 15% 10%,#fff5dc,transparent 40%),linear-gradient(#fff9fd,#ffeef7);border:3px solid #efbad5;border-radius:30px;color:#ac5a80;box-shadow:0 25px 90px #a4537838}dialog::backdrop{background:#7b405779;backdrop-filter:blur(6px)}dialog h2{color:#bd608d;font-size:24px}.reward-word{color:#c66c9b;background:#ffffffa6;border:1px dashed #efbfd9;border-radius:15px;padding:8px 14px;font-size:31px}.reward-note{color:#b887a1;font-size:13px}.mistake-dialog{background:linear-gradient(#fff9fd,#f8edff);border-color:#dfc2ed}.mistake-dialog h2{color:#aa7db7}.reward-icon{font-size:66px}.celebrate{font-size:20px;letter-spacing:10px}#rewardConfirm{font-size:17px}#rewardConfirm:disabled{background:#dec6d4;border-color:#d6bcca;color:#fff;opacity:1}#sessionRecords p{background:#fff0f7;color:#b77497;border:1px solid #f4dae8}.history-empty span{filter:hue-rotate(250deg)}footer{color:#ba92a7;font-size:10px}
.ui-toast{position:fixed;bottom:20px;left:50%;transform:translate(-50%,14px);opacity:0;pointer-events:none;padding:11px 20px;max-width:85vw;border:1px solid #ecc3d8;border-radius:30px;background:#fff8fcf2;color:#b25a85;box-shadow:0 8px 30px #bb688727;font-size:13px;z-index:10000;transition:transform .2s,opacity .2s}.ui-toast.visible{opacity:1;transform:translate(-50%,0)}.petal-layer{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:10001}.petal{position:absolute;top:-30px;animation:petalFall 1.7s ease-in forwards;font-size:20px}@keyframes petalFall{to{transform:translate(var(--drift),100vh) rotate(230deg);opacity:0}}
@media(max-width:600px){header{padding:11px 15px}header h1{font-size:20px}main{padding:5px 10px}.card{padding:16px}.station-tools{gap:10px}#setup>.row>#start{width:100%}.word-preview{max-height:145px}.word-search input{font-size:14px}}
@media(max-height:800px) and (min-width:601px){header{padding:9px 24px}.card{padding:16px 22px}#play h2{margin:4px 0;font-size:21px}#play .picture{min-height:55px;font-size:48px}#play .picture img{height:85px}.reward-icon{font-size:53px}.reward-word{font-size:28px}dialog{padding:17px 24px}#rewardConfirm{min-height:42px}}
@media(prefers-reduced-motion:reduce){.petal-layer{display:none}.ui-toast{transition:none}}

.voice-preview{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding:10px 12px;background:#fff6fb;border:1px dashed #edc8dd;border-radius:13px;color:#b16e92;font-size:12px}.voice-preview small{display:block;font-size:10px;color:#c398b0;margin-top:3px;overflow-wrap:anywhere}.voice-preview button{padding:7px 12px;min-height:33px;background:#f7dfed;font-size:11px;white-space:nowrap}

audio{display:block;width:min(100%,320px);height:34px;margin:8px auto;border-radius:18px}.audio-source{display:block;font-size:10px;color:#b58ba2;margin:3px 0 7px}#rewardAudio{margin:8px auto}

.sticker-total{margin-left:auto;white-space:nowrap;font-size:12px;color:#b9638d;background:#fff6fb;border:1px solid #efccdf;padding:7px 11px;border-radius:20px}.sticker-book{background:linear-gradient(120deg,#fff4fa,#faf1ff);border:1px solid #efd1e4;border-radius:20px;margin:14px 0;padding:14px 16px}.sticker-book-heading{display:flex;justify-content:space-between;gap:10px;color:#b46d97;font-size:14px}.sticker-book-heading>span{background:white;border-radius:12px;padding:3px 8px;font-size:11px}.sticker-book p{font-size:11px;color:#bd97af;margin:6px 0 10px}.sticker-gallery{display:flex;flex-wrap:wrap;gap:9px;max-height:135px;overflow:auto}.earned-sticker{display:grid;place-items:center;width:50px;height:50px;font-size:32px;border:2px dashed #edc6df;border-radius:16px;background:#fff;transform:rotate(-5deg);box-shadow:0 3px 0 #efdce9}.earned-sticker:nth-child(even){transform:rotate(5deg);background:#fff9f1}.sticker-empty{font-size:12px;color:#c19db2;padding:10px}.sticker-result{padding:15px;border-radius:18px;background:#ffeff8;color:#ba6e9b;font-size:18px;margin:12px 0;border:1px dashed #e9bfd8}#listenChinese{font-size:12px;padding:7px 12px;min-height:34px;margin:5px}@media(max-width:520px){header{flex-wrap:wrap}.sticker-total{font-size:10px;padding:5px 8px}.sticker-result{font-size:15px}}

.translation-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px;padding:9px 11px;background:#fff8fc;border:1px dashed #edcfdf;border-radius:13px}.translation-tools .auto-toggle{font-size:11px;flex:1;min-width:185px}.translation-tools button{font-size:11px;min-height:30px;padding:6px 10px}.translation-note{font-size:10px;color:#b28b9f;margin:6px 0}#translationProgress{width:100%;height:8px;accent-color:#ce7ba6;border-radius:10px}

.word-selection-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:8px 0 10px}.word-selection-toolbar>span{font-size:12px;font-weight:700;color:#b56e95;margin-right:auto}.word-selection-toolbar button{font-size:11px;padding:5px 10px;min-height:28px;border-radius:9px}.word-selection-toolbar small{width:100%;font-size:10px;color:#bd97ac}.word-select-card{display:flex;align-items:stretch;border:1px solid #efdce6;border-radius:13px;background:#fffafc;opacity:.65;transition:opacity .2s,background .2s,border-color .2s;min-height:41px}.word-select-card:has(input:checked){background:#fff1f8;border-color:#dfa4c0;opacity:1}.word-select-check{display:flex;align-items:center;justify-content:center;padding:0 3px 0 9px;margin:0;cursor:pointer;min-width:31px}.word-select-check input{width:17px;height:17px;accent-color:#c76995;cursor:pointer}.word-select-card .word-chip{border:0;background:transparent;box-shadow:none;min-height:39px;padding-left:5px;animation:none}.word-select-card .word-chip:hover{background:#fce4f0}.word-select-card .word-chip.editing{background:#f7dfed;box-shadow:inset 0 0 0 2px #db9fbd}.word-preview{align-items:flex-start}

.difficulty-settings{padding:10px 0 0}.difficulty-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#b47094;margin-bottom:8px}.difficulty-heading small{font-size:10px;color:#c19caf}.difficulty-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.difficulty-choices button{display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;padding:10px 12px;border:2px solid #f3deea;background:white;color:#b27b98;border-radius:14px;min-width:0}.difficulty-choices span{font-size:13px;font-weight:700}.difficulty-choices small{font-size:10px;color:#c49daf}.difficulty-choices code{font-size:12px;letter-spacing:1px;color:#b17496}.difficulty-choices .chosen-level{border-color:#d485ad;background:#fff0f8;box-shadow:0 3px 0 #edc9df}.word.blank-word{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:7px;letter-spacing:0;margin:14px auto}.gap-input{width:43px;height:49px;max-width:43px;border:2px solid #edc7dd;border-radius:12px;padding:4px!important;text-align:center;font-size:26px;line-height:1;letter-spacing:0;background:#fffafd;color:#b35f8e;box-shadow:0 4px 0 #f1dce8;caret-color:#c26099}.gap-input.active-gap{border-color:#cc7fa9;background:#ffeef8;box-shadow:0 4px 0 #e7b6d1}.gap-input:focus{outline:3px solid #fae4f0;outline-offset:2px}.gap-input:disabled{opacity:1;color:#b784a0;background:#fff6fa}.given-letter{font-size:28px;min-width:19px;color:#ab5c80}#answer.hidden{display:none!important}@media(max-width:520px){.difficulty-heading small{display:none}.difficulty-choices button{padding:8px}.difficulty-choices span{font-size:12px}.difficulty-choices small{font-size:9px}.difficulty-choices code{font-size:10px;letter-spacing:0}.word.blank-word{gap:5px}.gap-input{width:34px;max-width:34px;height:42px;font-size:23px}.given-letter{font-size:25px;min-width:15px}}

.start-notice{background:#fff0f4;border:1px solid #edb9ce;color:#b34e79!important;padding:11px 14px;border-radius:13px;font-size:13px!important;font-weight:700}#play{scroll-margin-top:10px}#prompt:focus{outline:none}

.remove-word{align-self:center;flex:0 0 25px;width:25px;height:25px;min-height:25px;padding:0;margin:0 5px 0 0;border-radius:50%;font-size:19px;line-height:1;background:#f8e6ef;color:#be85a2;font-weight:400}.remove-word:hover:not(:disabled){background:#ebbbd3;color:#9e4e79;box-shadow:none;transform:rotate(8deg)}.removed-word-notice{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px;padding:8px 10px;background:#fff4f9;border:1px dashed #e7c0d6;border-radius:12px;font-size:11px;color:#b17d99}.removed-word-notice button{font-size:10px;padding:5px 9px;min-height:27px;border-radius:9px}@media(max-width:500px){.removed-word-notice{flex-wrap:wrap}}

.word-selection-toolbar .remove-selected-words{background:#fff0f2;border:1px solid #e5b9c8;color:#bb6080}.word-selection-toolbar .remove-selected-words:hover:not(:disabled){background:#f9dce6}.word-selection-toolbar .remove-selected-words:disabled{opacity:.4}

.editor-main-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.editor-main-actions button{font-size:12px;min-height:37px;padding:8px 14px}.editor-main-actions>span{margin-left:auto;font-size:11px;color:#bd96ad}#editorDialog{width:min(550px,94vw);max-width:94vw;text-align:left;padding:22px;border:2px solid #ecc2da;background:linear-gradient(140deg,#fffafd,#fff0f8);max-height:88dvh;overflow:auto}.dialog-editor-heading{display:flex;align-items:center;gap:10px;margin-bottom:18px}.dialog-editor-heading>span{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:white;font-size:31px}.dialog-editor-heading h2{font-size:21px;margin:0}.dialog-editor-heading p{font-size:11px;color:#be92aa;margin:5px 0 0}#closeEditor{margin-left:auto;min-width:30px;min-height:30px;padding:0;border-radius:50%;font-size:22px;background:#f9e2ef;color:#c282a5}#editorDialog .quick-add{grid-template-columns:1fr 1fr}#editorDialog .quick-add label:first-child{grid-column:1 / -1}#editorDialog .quick-add input{font-size:18px;height:47px}#editorDialog #addWord{grid-column:1 / -1;min-height:43px;font-size:15px;margin-top:7px}#editorDialog .translation-tools{padding:9px;gap:7px}#editorDialog .edit-actions{margin-top:13px}#editorDialog .translation-note{font-size:12px;line-height:1.7;min-height:36px}#editorDialog #editState{display:none}#editorDialog #cancelEdit{margin-left:auto}#saveWithoutMeaning{font-size:11px;min-height:30px;background:transparent;text-decoration:underline;color:#b78ca3;padding:3px}#editorDialog::backdrop{background:#76415880;backdrop-filter:blur(7px)}@media(max-width:520px){#editorDialog{padding:18px}.dialog-editor-heading h2{font-size:19px}.editor-main-actions>span{width:100%;margin-left:0}}
