.sentence-page { --green: #183c32; --muted: #557068; --ink: #183c32; --green-line: #c9d9d1; }
.sentence-page [hidden] { display: none !important; }
.sentence-skip { position: absolute; top: -100px; left: 16px; z-index: 30; padding: 12px; background: white; }
.sentence-skip:focus { top: 8px; }
.sentence-main { max-width: 940px; padding-block: 32px 56px; }
.sentence-main h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 6px 0 12px; }
.sentence-intro { margin: 0 0 24px; }
.sentence-card { border: 1px solid var(--green-line); border-radius: 22px; padding: clamp(18px, 4vw, 32px); box-shadow: 0 10px 32px #183c3208; }
.sentence-card h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.sentence-card h3 { font-size: .95rem; margin: 18px 0 8px; letter-spacing: -.02em; }
.sentence-card p { line-height: 1.65; }
.sentence-card label { display: block; font-weight: 700; margin-bottom: 8px; }
.sentence-card select { font: inherit; color: var(--ink); border: 1px solid var(--muted); border-radius: 12px; padding: 12px; width: min(100%, 320px); background: white; }
.sentence-rule { padding: 12px 16px; background: #f3f7f4; border-radius: 12px; font-size: .85rem; }
.sentence-page .btn { color: white; cursor: pointer; }
.sentence-page .btn-outline { color: var(--ink); }
.sentence-page button:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.sentence-stats { display: flex; gap: 12px 20px; justify-content: space-between; flex-wrap: wrap; font-size: .8rem; }
#sentence-progress { width: 100%; height: 8px; margin: 16px 0; accent-color: var(--green); }
.sentence-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 8px 0; }
.sentence-zone, .sentence-bank { display: flex; flex-wrap: wrap; align-content: flex-start; align-items: flex-start; gap: 10px; min-height: 90px; padding: 14px; border-radius: 16px; }
.sentence-zone { background: #f3f7f4; border: 2px dashed var(--green-line); }
.sentence-bank { border: 1px solid var(--green-line); }
.sentence-empty { font-size: .85rem; margin: auto 0; }
.sentence-tile { min-height: 46px; border: 1px solid #a4b8ae; border-radius: 12px; padding: 10px 14px; color: var(--ink); background: white; font-weight: 600; cursor: pointer; max-width: 100%; overflow-wrap: anywhere; animation: tile-in .15s ease-out; }
.sentence-tile:hover { background: #e6efe9; }
.sentence-chosen { display: flex; align-items: stretch; max-width: 100%; border: 1px solid #a4b8ae; border-radius: 12px; background: white; }
.sentence-chosen .sentence-tile { border: 0; border-radius: 12px; touch-action: none; user-select: none; cursor: grab; }
.sentence-chosen.dragging { position: relative; z-index: 5; box-shadow: 0 8px 24px #183c3230; opacity: .9; }
.sentence-chosen.drop-target { outline: 2px dashed var(--green); outline-offset: 3px; }
.sentence-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sentence-help { font-size: .78rem; color: var(--muted); line-height: 1.5; }
#live { min-height: 1.5em; }
.sentence-feedback { background: #f3f7f4; border: 1px solid var(--green-line); border-radius: 14px; padding: 4px 18px; margin-top: 16px; }
.sentence-feedback.success { background: #e6f5eb; border-color: #70a482; }
.sentence-feedback.success h3 { color: #195c32; }
.sentence-feedback.incorrect { border-color: #d6a59c; background: #fff7f4; }
.sentence-feedback.incorrect h3 { color: #96362a; }
#correct-answer { font-weight: 700; color: var(--ink); }
.sentence-results { text-align: center; }
.sentence-final-score { font-size: 3rem; font-weight: 800; color: var(--ink); margin: 20px 0 0; }
@keyframes tile-in { from { opacity: .6; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .sentence-page *, .sentence-page *::before, .sentence-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto; } }
@media (max-width: 560px) { .sentence-main { width: calc(100% - 24px); padding-top: 20px; } .sentence-tile { font-size: .85rem; padding: 9px 10px; } .sentence-zone, .sentence-bank { padding: 10px; gap: 8px; } .sentence-controls .btn { padding: 10px 14px; min-height: 46px; } }
.sentence-punctuation { align-self: center; font-weight: 700; }
.sentence-level-switch { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 20px; }
.sentence-level-switch label { margin: 0; font-size: .85rem; }
.sentence-level-switch select { width: auto; max-width: 100%; padding: 8px 12px; font-size: .85rem; }
.sentence-level-switch .sentence-help { flex-basis: 100%; }
