.study-shell{max-width:980px}.study-hero{padding:12px 0 20px}.study-hero h1{margin:0;font-size:clamp(30px,5vw,46px);line-height:1.2}.study-hero p{margin:9px 0}.study-message{padding:16px 18px;border:1px solid var(--line);border-left:4px solid var(--green);border-radius:14px;background:#f3f8f4;color:#52675c}.study-panel{padding:clamp(18px,4vw,30px);border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:0 12px 30px #6f433516}.study-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.study-panel-head h2{margin:0;line-height:1.28}.ticket-chip,.progress-chip{display:inline-flex;flex-shrink:0;align-items:center;gap:5px;padding:6px 11px;border:1px solid #f0c6cf;border-radius:999px;background:#fff0f3;color:var(--rose);font-size:14px}.chapter-picker{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.chapter-choice{min-height:36px;padding:5px 9px;font-size:13px}.chapter-choice[aria-pressed=true]{border-color:var(--green);background:#f3f8f4;color:var(--green)}.mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 20px}.mode-card{display:grid;min-height:112px;align-content:center;gap:5px;padding:16px;text-align:left;border-color:var(--line);transition:transform .15s ease,box-shadow .15s ease}.mode-card:not(:disabled):hover{transform:translateY(-2px);border-color:var(--green);box-shadow:0 8px 20px #2564521c}.mode-card span{color:#705e58;font-size:14px}.mode-card:disabled{cursor:default;background:#f7f2ee;color:#8a7a74}.question-list{display:grid;gap:14px}.question{margin:0;padding:16px;border:1px solid var(--line);border-radius:16px}.question legend{padding:0 4px;font-weight:750}.question legend span{display:inline-block;margin-right:8px;color:var(--rose);font-size:13px}.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}.choice{display:flex;align-items:center;gap:9px;min-height:45px;padding:9px 11px;border:1px solid var(--line);border-radius:10px;cursor:pointer}.choice:has(input:checked){border-color:var(--green);background:#f3f8f4}.answer-input{width:100%;min-height:46px;margin-top:10px;padding:9px 11px;border:1px solid #ddc7be;border-radius:10px;background:#fff;font:17px Arial,sans-serif}.listen-button{margin-top:10px;border-color:var(--green);color:var(--green)}.form-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:20px}.action-link{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 14px;border-radius:12px;color:#fff;text-decoration:none}.study-status{min-height:25px;margin:14px 0 0;color:var(--rose);font-size:14px}.result-panel h2{margin:6px 0;font-size:clamp(30px,5vw,44px)}.ticket-win{display:inline-block;padding:8px 12px;border-radius:10px;background:#fff0f3;color:var(--rose);font-weight:700}.lottery-board{max-width:670px;margin:auto;text-align:center}.lottery-board .study-panel-head{text-align:left}.lottery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px auto 20px}.lottery-cell{display:grid;min-height:112px;align-content:center;gap:4px;border:1px solid #ecd9cd;border-radius:14px;background:linear-gradient(145deg,#fffdf9,#fff0f3);color:#7a5f59;font-size:13px;transition:transform .12s ease,background .12s ease,box-shadow .12s ease}.lottery-cell .spark{color:#f2a044;font-size:22px}.lottery-cell .chest{font-size:31px}.lottery-cell.active{transform:scale(1.035);border-color:#efb35b;background:#fff6cc;box-shadow:0 0 0 3px #f5d79399}.lottery-cell.won{border-color:var(--green);background:#e8f6ed;box-shadow:0 0 0 4px #9ed5ad80}.draw-button{min-width:min(100%,260px)}.quiet-rule{margin:15px 0 0;color:#705e58;font-size:13px}.admin-summary{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}.chapter-state{padding:5px 8px;border-radius:8px;background:#f3eeea;color:#806d65;font-size:13px}.chapter-state.open{background:#e9f5ed;color:#256452}.chapter-state.reviewed{background:#fff0f3;color:#a43c58}.review-form{display:grid;grid-template-columns:1fr 130px;gap:12px;margin-top:14px}.review-form label{display:grid;gap:6px;font-weight:700}.review-form select,.review-form input[type=number],.review-form textarea{width:100%;min-height:44px;padding:9px 10px;border:1px solid #ddc7be;border-radius:10px;background:#fff;font:inherit}.review-form textarea{resize:vertical}.review-form .check-row{grid-column:1/-1;display:flex;align-items:center;gap:9px;font-weight:400}.review-form .check-row input{width:18px;height:18px}.review-form label:has(textarea),.review-form button{grid-column:1/-1}.admin-records{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}.admin-records h3,.study-panel>h3{margin:0 0 7px}.record-list{display:grid;gap:9px;margin:0;padding:0;list-style:none}.record-list li{padding:10px 11px;border-radius:11px;background:#f9f5f1;font-size:14px}.record-list small{color:#705e58}@media(max-width:600px){.study-panel{border-radius:18px}.study-panel-head{align-items:flex-start}.mode-grid,.choice-grid,.admin-records{grid-template-columns:1fr}.lottery-cell{min-height:92px}.review-form{grid-template-columns:1fr}.form-actions{align-items:stretch}.form-actions .primary,.form-actions .action-link{width:100%}}@media(prefers-reduced-motion:reduce){.mode-card,.lottery-cell{transition:none}}
.lottery-icon{font-size:24px}.lottery-key{border-color:#e2bd65;background:linear-gradient(145deg,#fff8df,#fff0f3);color:#9a6c16}.lottery-star{background:linear-gradient(145deg,#fff5fb,#fff0f3)}.lottery-supply{background:linear-gradient(145deg,#fff0f6,#fce6ee)}.lottery-courage{background:linear-gradient(145deg,#eef7f4,#e5f1ed)}.lottery-chest{border-color:#efb35b;background:linear-gradient(145deg,#fff8de,#fff0f3)}.recent-draws{margin-top:24px;padding-top:18px;border-top:1px solid var(--line);text-align:left}.recent-draws h3{margin:0 0 8px}.recent-draw-list ul{display:grid;gap:7px;margin:0;padding:0;list-style:none}.recent-draw-list li{display:flex;justify-content:space-between;gap:10px;padding:8px 10px;border-radius:9px;background:#faf5f1;font-size:13px}.recent-draw-list small{color:#705e58;white-space:nowrap}

/* 点选字母作答：不使用可见文本输入框，键盘始终在当前题目内展开。 */
.letter-answer{display:grid;gap:10px;margin-top:12px;padding:12px;border:1px solid #eadbd3;border-radius:14px;background:linear-gradient(145deg,#fffdf9,#fff7f7);transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.letter-answer.is-active{border-color:var(--green);background:linear-gradient(145deg,#fff8fa,#f2faf5);box-shadow:0 0 0 3px #72b69820}.letter-answer.is-invalid{border-color:#c95c72;background:#fff4f5}.letter-slots{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-height:42px}.letter-fixed,.letter-slot{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:36px;height:42px;border-radius:10px;font:700 18px/1 Arial,sans-serif;text-transform:lowercase}.letter-fixed{padding:0 6px;border:1px solid transparent;color:#5c7265;background:#e7f3eb}.letter-slot{padding:0;border:1px solid #d8c4bc;background:#fff;color:#244b3e;cursor:pointer;box-shadow:0 1px 0 #fff inset;transition:transform .14s ease,border-color .14s ease,background .14s ease,box-shadow .14s ease}.letter-slot:hover:not(:disabled){transform:translateY(-1px);border-color:#b99587}.letter-slot:focus-visible,.letter-key:focus-visible,.letter-action:focus-visible{outline:3px solid #f0a5b4;outline-offset:2px}.letter-slot.is-empty{border-style:dashed;color:#ae9288;background:#fffdfb}.letter-slot.is-filled{border-color:#d9bcb0;background:#fff}.letter-slot[aria-pressed=true]{border-color:var(--green);background:#fff0f4;box-shadow:0 0 0 3px #efbcc834;color:var(--green)}.letter-slot--append{min-width:42px;border-style:dashed;border-color:#d9b8c0;background:#fff3f6;color:var(--rose);font-size:20px}.letter-slot:disabled,.letter-key:disabled,.letter-action:disabled{cursor:not-allowed;opacity:.5}.letter-board{display:grid;gap:9px;padding:11px;border:1px solid #efcfce;border-radius:13px;background:#fff3f5;animation:letter-board-in .16s ease both}.letter-board-title{margin:0;color:#765e59;font-size:13px;font-weight:700}.letter-keys{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:7px}.letter-key{min-height:44px;padding:0;border:1px solid #d9c1b7;border-radius:10px;background:#fffdf9;color:#315b4b;font:750 17px/1 Arial,sans-serif;text-transform:lowercase;cursor:pointer;transition:transform .14s ease,border-color .14s ease,background .14s ease,box-shadow .14s ease}.letter-key:hover:not(:disabled){transform:translateY(-1px);border-color:var(--green);background:#f1faf4;box-shadow:0 4px 10px #25645216}.letter-key:active:not(:disabled){transform:translateY(0);background:#e4f3e9}.letter-keys .letter-key:last-child{font-size:14px;text-transform:none}.letter-actions{display:flex;flex-wrap:wrap;gap:7px;padding-top:2px}.letter-action{min-height:44px;padding:8px 11px;border:1px solid #d8c4bc;border-radius:10px;background:#fff;color:#705e58;font:700 14px/1.15 inherit;cursor:pointer;transition:transform .14s ease,border-color .14s ease,background .14s ease}.letter-action:hover:not(:disabled){transform:translateY(-1px);border-color:var(--green);background:#f3faf5;color:var(--green)}.letter-help,.letter-answer-summary{margin:0;color:#705e58;font-size:13px;line-height:1.45}.letter-answer-summary{padding-top:8px;border-top:1px dashed #e4d0c8}.letter-live.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes letter-board-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:520px){.letter-answer{gap:8px;padding:9px}.letter-slots{gap:3px;min-height:38px}.letter-fixed,.letter-slot{min-width:24px;height:38px;border-radius:8px;font-size:16px}.letter-fixed{padding:0 3px}.letter-slot--append{min-width:30px;font-size:18px}.letter-board{gap:8px;padding:9px}.letter-keys{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.letter-key{min-height:44px;border-radius:9px;font-size:16px}.letter-actions{gap:6px}.letter-action{flex:1 1 calc(50% - 3px);min-height:44px;padding:8px 7px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.letter-answer,.letter-slot,.letter-key,.letter-action{transition:none}.letter-board{animation:none}}

.letter-fixed,.letter-slot{min-height:42px;height:42px}.letter-fixed{text-transform:none}
@media(max-width:520px){.question{padding:12px 10px}.letter-answer{padding:8px}.letter-slots{gap:2px}.letter-fixed,.letter-slot{min-height:42px;height:42px}}

/* Chinese clues are the primary reading cue, beside the spelling slots. */
.letter-cue{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 14px;padding:12px 14px;border:1px solid #edc3cf;border-left:5px solid var(--rose);border-radius:12px;background:#fff1f5}
.letter-cue-label{color:#775f64;font-size:13px;font-weight:700;white-space:nowrap}
.letter-cue-word{color:#7c3048;font-size:clamp(27px,3.3vw,34px);font-weight:850;line-height:1.35;overflow-wrap:anywhere}
.letter-board-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px}
.letter-board-index{font-size:13px;color:#775f64}
.letter-board-meaning{color:#7c3048;font-size:24px;font-weight:800;line-height:1.35;overflow-wrap:anywhere}
@media(max-width:520px){.letter-cue{padding:9px 10px;gap:5px 9px}.letter-cue-word{font-size:27px}.letter-board-meaning{font-size:22px}}

/* An explicit route home, visible without relying on the site logo. */
.practice-hero{display:flex;align-items:center;justify-content:space-between;gap:18px}
.study-home-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid #256452;border-radius:12px;background:#edf7f1;color:#205a49;font-size:15px;font-weight:750;text-decoration:none;white-space:nowrap;flex-shrink:0}
.study-home-button:hover{background:#deeee4}.study-home-button:focus-visible{outline:3px solid #a43c58;outline-offset:3px}
@media(max-width:600px){.practice-hero{align-items:flex-start;flex-wrap:wrap;gap:10px}.study-home-button{min-height:44px}.practice-hero .study-home-button{margin-bottom:8px}}

.review-student-label{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-weight:700;margin-bottom:22px}.review-student-label select{min-height:44px;min-width:190px;padding:8px 12px;font:inherit;border:1px solid var(--line);border-radius:10px;background:#fff}
