:root{font-family:ui-rounded,"Avenir Next",Avenir,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#26243b;background:#f9f3e8;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(circle at 7% 13%,#fff0c7 0 7%,transparent 19%),radial-gradient(circle at 94% 76%,#e9e2ff 0 8%,transparent 25%),#f9f3e8}button{font:inherit;cursor:pointer}button:focus-visible,[tabindex]:focus-visible{outline:3px solid #ec9e5e;outline-offset:3px}.app-shell{max-width:1120px;margin:0 auto;padding:22px 26px 45px}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.brand{display:flex;gap:10px;align-items:center;font-weight:900;font-size:1.28rem;letter-spacing:-.03em}.brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#6755c4;color:#ffe17b;font-size:1.55rem;transform:rotate(-9deg)}.text-button,.hint-button,.quiet-button{border:0;background:none;color:#55449e;font-weight:800}.text-button{padding:10px 12px;border-radius:11px}.text-button:hover,.hint-button:hover,.quiet-button:hover{background:#f0eafc}.game-card{background:#fffdf9;border:1px solid #ece5db;border-radius:30px;box-shadow:0 18px 50px #51467816;padding:32px 36px 27px;position:relative;overflow:hidden}.game-card:before{content:"";position:absolute;right:-42px;top:-70px;width:180px;height:180px;border-radius:50%;background:#f4edff;pointer-events:none}.game-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;position:relative}.eyebrow{margin:0 0 7px;text-transform:uppercase;color:#785fbd;letter-spacing:.11em;font-size:.77rem;font-weight:900}h1{font-size:clamp(2rem,4vw,3.1rem);line-height:1.08;letter-spacing:-.055em;margin:0 0 10px;color:#292247}.intro{max-width:650px;line-height:1.55;color:#635e71;font-size:1rem;margin:0}.progress-badge{display:flex;align-items:center;gap:8px;white-space:nowrap;background:#fff3d4;color:#715219;border:1px solid #f3d88f;border-radius:999px;padding:11px 15px;font-weight:800;font-size:.87rem}.progress-spark{font-size:1.35rem;color:#d89426}.progress-track{height:8px;background:#f0ecf5;border-radius:99px;margin:29px 0 31px;overflow:hidden}.progress-track span{display:block;height:100%;width:0;background:linear-gradient(90deg,#8874dc,#4abca1);border-radius:99px;transition:width .35s}.exercise-head{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:18px}.round-label{font-size:.74rem;letter-spacing:.1em;text-transform:uppercase;font-weight:900;color:#8c7caa}h2{margin:5px 0 0;letter-spacing:-.035em;font-size:1.55rem}.hint-button{padding:9px 11px;border-radius:11px;white-space:nowrap}.sentence-panel{background:#faf8ff;border:1px solid #e9e1fb;border-radius:22px;padding:20px 23px 18px}.level-label{display:flex;align-items:center;gap:7px;color:#725dba;font-size:.73rem;font-weight:900;letter-spacing:.09em}.level-label small{font-size:.72rem;letter-spacing:0;font-weight:600;color:#8d839d}.level-dot{width:8px;height:8px;border-radius:50%;background:#8b73d9}.bottom-label{color:#3b9b88;margin-top:18px}.bottom-label .level-dot{background:#58baa5}.sentence{display:flex;flex-wrap:wrap;gap:12px 13px;align-items:stretch;margin-top:12px}.phrase{display:flex;flex-direction:column;align-items:stretch;min-width:max-content}.word-row{display:flex;gap:6px;align-items:end}.word-unit{display:flex;flex-direction:column;align-items:center;min-width:46px}.word-slot,.part-slot{border:1.5px dashed #cfc3e8;color:#7a69ab;background:#fff;border-radius:9px;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.1;transition:background .15s,border-color .15s,transform .15s}.word-slot{height:31px;min-width:38px;padding:0 5px;font-size:.76rem;font-weight:900}.word-slot.empty:before{content:"+";font-size:1.05rem;color:#b7a8d9}.word-text{font-size:clamp(1.1rem,2.5vw,1.45rem);font-weight:850;letter-spacing:-.025em;margin:8px 0 4px;white-space:nowrap}.phrase:last-child .word-unit:last-child .word-text:after{content:"."}.part-slot{height:31px;border-color:#a9dbd0;color:#327f71;font-size:.7rem;font-weight:850;padding:2px 8px;margin-top:4px;white-space:nowrap}.part-slot.empty:before{content:"+ Satzglied";color:#83b8ae}.part-slot:before{font-weight:800}.phrase-line{height:6px;border-bottom:3px solid #79cdbb;border-left:3px solid #79cdbb;border-right:3px solid #79cdbb;border-radius:0 0 10px 10px;margin:0 4px 3px}.slot{cursor:pointer}.slot:hover,.slot.drag-over{background:#f2edff;border-color:#8069cf;transform:translateY(-2px)}.slot.correct{background:#e5f8ed;border-color:#49b878;color:#237249}.slot.incorrect{background:#fff0ed;border-color:#e88071;color:#a94d42}.work-area{margin-top:24px}.bank-header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.bank-tabs{display:flex;background:#f3f0f8;border-radius:12px;padding:4px;gap:3px}.bank-tab{border:0;background:transparent;border-radius:9px;padding:9px 14px;color:#756d87;font-size:.87rem;font-weight:800}.bank-tab.active{background:#fff;color:#5443a3;box-shadow:0 2px 6px #3924651e}.bank-instruction{color:#898195;font-size:.8rem}.chip-bank{display:flex;flex-wrap:wrap;gap:9px;min-height:57px;align-content:start}.chip{border:1px solid #d6c9f0;background:#f5f0ff;color:#5745a8;border-radius:11px;padding:9px 13px;min-height:39px;box-shadow:0 3px 0 #d8cdef;font-weight:850;font-size:.86rem;touch-action:none;user-select:none;cursor:grab}.chip.part{background:#ebfaf6;border-color:#b9e5d9;color:#2b806f;box-shadow:0 3px 0 #bce4d9}.chip.selected{background:#5f4fb4;color:#fff;border-color:#5f4fb4;box-shadow:0 3px 0 #453686}.chip.part.selected{background:#2c9a85;border-color:#2c9a85;box-shadow:0 3px 0 #1c745f}.drag-ghost{position:fixed;z-index:1000;pointer-events:none;transform:translate(-50%,-65%);opacity:.94;box-shadow:0 12px 25px #36304c35!important}.helper-line{margin:23px 0 12px;color:#716982;font-size:.92rem;min-height:24px}.feedback{margin:14px 0 16px;border-radius:15px;padding:14px 17px;background:#f0f7ff;color:#324e6b;border:1px solid #c8e2f7;line-height:1.48}.feedback.success{background:#eaf9ef;color:#276e45;border-color:#bee9c9}.feedback.try-again{background:#fff7e8;color:#785a29;border-color:#f5dba5}.feedback strong{display:block;margin-bottom:3px}.feedback ul{margin:6px 0 0 18px;padding:0}.actions{display:flex;align-items:center;gap:10px;margin-top:6px}.primary-button{border:0;border-radius:12px;background:#6654bf;color:white;padding:12px 19px;font-weight:900;box-shadow:0 4px 0 #473593;min-height:44px}.primary-button:hover{background:#5644b2}.primary-button:active{transform:translateY(2px);box-shadow:0 2px 0 #473593}.primary-button span{padding-left:8px}.quiet-button{border-radius:10px;padding:11px 12px;color:#7b6b9d;font-size:.88rem}.exercise-nav{margin-left:auto;display:flex;gap:6px}.nav-button{height:42px;width:42px;border:1px solid #ded6e9;border-radius:11px;background:#fff;color:#63529f;font-size:1.23rem}.nav-button:hover:not(:disabled){background:#f2edff}.nav-button:disabled{opacity:.35;cursor:not-allowed}.footer-note{text-align:center;color:#746d7c;font-size:.89rem;margin:22px 0 0}.guide-dialog{border:0;border-radius:25px;max-width:850px;width:calc(100% - 32px);max-height:calc(100vh - 32px);overflow:auto;padding:29px 31px 27px;color:#29263c;box-shadow:0 25px 80px #25203555}.guide-dialog::backdrop{background:#2620399e;backdrop-filter:blur(3px)}.dialog-top{display:flex;justify-content:space-between;gap:20px;align-items:start}.dialog-top h2{font-size:2rem;margin:0}.close-button{border:0;background:#f2eef7;color:#6e6087;width:35px;height:35px;border-radius:10px;font-size:1.5rem;line-height:1}.guide-lead{line-height:1.5;color:#635d6d}.guide-example{display:flex;flex-wrap:wrap;gap:10px;background:#f8f5ff;border:1px solid #e8e0f6;border-radius:16px;padding:17px;margin:17px 0}.guide-example>span,.example-group>span{display:flex;flex-direction:column;align-items:center;font-size:1.04rem;font-weight:850}.guide-example small{color:#7259bd;font-weight:900;margin-bottom:4px}.guide-example em{border-top:2px solid #56bca7;margin-top:5px;padding-top:4px;font-size:.71rem;font-style:normal;color:#398d7c;white-space:nowrap}.example-group{display:flex!important;flex-direction:row!important;gap:7px;flex-wrap:wrap;border-bottom:2px solid #56bca7;position:relative;padding-bottom:17px}.example-group em{position:absolute;bottom:-22px;left:0;width:100%;text-align:center;border:0}.guide-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:34px}.guide-columns section{background:#fcfaf5;border:1px solid #efe9df;border-radius:15px;padding:15px 17px}.guide-columns h3{margin:0 0 11px;font-size:1.13rem}.guide-columns h3 small{font-size:.7rem;color:#817792}.guide-columns dl{margin:0}.guide-columns dl div{padding:8px 0;border-top:1px solid #eee8df}.guide-columns dt{font-weight:850;font-size:.89rem}.guide-columns dd{margin:2px 0 0;color:#6e6876;font-size:.82rem;line-height:1.4}.guide-note{background:#fff4d9;border:1px solid #f1dfa6;border-radius:12px;padding:12px 14px;line-height:1.48;font-size:.87rem}.guide-dialog>.primary-button{display:block;margin:18px 0 0 auto}@media(max-width:720px){.app-shell{padding:14px 12px 30px}.topbar{margin-bottom:13px}.brand{font-size:1.05rem}.brand-mark{width:31px;height:31px}.text-button{font-size:.84rem}.game-card{padding:23px 17px 22px;border-radius:21px}.game-heading{display:block}.progress-badge{display:inline-flex;margin-top:14px;padding:7px 10px}.intro{font-size:.91rem}.progress-track{margin:18px 0 23px}.exercise-head{align-items:center}.exercise-head h2{font-size:1.32rem}.hint-button{font-size:.78rem;padding:6px}.sentence-panel{padding:16px 12px}.sentence{gap:13px 9px}.word-row{gap:4px}.word-text{font-size:1.08rem}.part-slot{font-size:.62rem;padding:2px 5px}.level-label small{display:none}.bank-instruction{display:none}.chip{font-size:.8rem;padding:8px 10px}.helper-line{font-size:.85rem}.actions{flex-wrap:wrap}.exercise-nav{margin-left:auto}.footer-note{padding:0 12px;line-height:1.5}.guide-dialog{padding:22px 16px}.guide-columns{grid-template-columns:1fr;gap:13px}.dialog-top h2{font-size:1.55rem}}
@media(min-width:721px){.app-shell{padding-top:12px}.topbar{margin-bottom:12px}.game-card{padding-top:22px;padding-bottom:20px}.game-heading h1{font-size:2.55rem;margin-bottom:5px}.intro{max-width:760px}.progress-track{margin:15px 0 20px}.exercise-head{margin-bottom:12px}.sentence-panel{padding:13px 18px}.sentence{margin-top:8px;gap:9px 12px}.word-text{margin:5px 0 2px}.bottom-label{margin-top:11px}.work-area{margin-top:15px}.bank-header{margin-bottom:8px}.helper-line{margin:13px 0 8px}}
[hidden]{display:none!important}
.topbar-actions{display:flex;align-items:center;gap:5px}
.overview-card{background:#fffdf9;border:1px solid #ece5db;border-radius:30px;box-shadow:0 18px 50px #51467816;padding:39px 40px 31px;position:relative;overflow:hidden}
.overview-card:before{content:"";position:absolute;right:-70px;top:-95px;width:260px;height:260px;border-radius:50%;background:#f4edff;pointer-events:none}
.overview-card>*{position:relative}
.overview-card h1{max-width:760px}
.overview-intro{max-width:720px;color:#655e73;line-height:1.55;margin:0 0 17px}
.overview-total{display:inline-flex;align-items:center;background:#fff4d6;border:1px solid #f3dea7;color:#77591f;border-radius:99px;padding:9px 14px;font-size:.86rem;font-weight:900}
.level-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:28px}
.level-card{min-height:244px;padding:22px;border-radius:21px;border:2px solid;text-align:left;display:flex;flex-direction:column;align-items:flex-start;transition:transform .18s,box-shadow .18s}
.level-card:hover{transform:translateY(-4px);box-shadow:0 12px 25px #2b254025}
.level-card.easy{background:#f4efff;border-color:#dbccff;color:#544096}
.level-card.medium{background:#e8f8f4;border-color:#b8e4d8;color:#267a69}
.level-card.hard{background:#fff0df;border-color:#f4d1ac;color:#a15b29}
.level-icon{display:grid;place-items:center;width:44px;height:44px;background:#ffffffab;border-radius:13px;font-size:1.5rem;margin-bottom:15px}
.level-card-title{font-size:1.55rem;font-weight:900;letter-spacing:-.035em;line-height:1.1}
.level-card-copy{font-size:.9rem;line-height:1.45;margin-top:8px;min-height:42px}
.level-card-meta{font-size:.78rem;font-weight:800;display:flex;gap:13px;margin:14px 0}
.level-card-meta span+span:before{content:"•";padding-right:13px}
.level-card-action{font-size:.91rem;font-weight:900;margin-top:auto;background:#fff;border-radius:11px;padding:9px 12px}
.level-card-action span{margin-left:8px}
.color-key{display:flex;gap:10px;flex-wrap:wrap;margin:25px 0 0}
.color-key span{font-size:.86rem;font-weight:850;border-radius:99px;padding:9px 13px;border:1px solid}
.word-key{background:#ede5ff;border-color:#beaaf1!important;color:#5835a5}
.part-key{background:#ddf7ef;border-color:#75cbb8!important;color:#166f5d}
.overview-help{font-size:.88rem;color:#706a79;line-height:1.5;margin:18px 0 0}
.top-label{color:#5b3aaa}.top-label .level-dot{background:#8058d5}
.bottom-label{color:#117a66}.bottom-label .level-dot{background:#21a988}
.word-slot{background:#f1eaff;border:2px dashed #b29aef;color:#533497;font-size:.68rem;min-width:40px;padding:0 5px}
.word-slot.empty:before{color:#8664ce}
.part-slot{background:#e5f8f2;border:2px dashed #80cdbb;color:#196f5d}
.part-slot.empty:before{color:#398d7b}
.phrase-line{border-color:#54bfa7}
.chip{background:#e9dfff;border-color:#b99ceb;color:#4d309b;box-shadow:0 3px 0 #c0abe9}
.chip.part{background:#d9f5ec;border-color:#7dceb9;color:#176e5b;box-shadow:0 3px 0 #8bd1bf}
#tab-word.active{color:#5636a7;background:#f3ecff}
#tab-part.active{color:#176e5b;background:#e0f7ef}
.word-slot.correct{background:#e5dcff;border-color:#795cda;color:#422785}
.part-slot.correct{background:#d4f4e8;border-color:#37ac8e;color:#135e4e}
.word-slot.incorrect,.part-slot.incorrect{background:#fff0ed;border-color:#e88071;color:#a94d42}
.guide-example small{font-size:.63rem}
@media(max-width:820px){.level-grid{grid-template-columns:1fr;gap:12px}.level-card{min-height:0;padding:17px;display:grid;grid-template-columns:46px 1fr auto;column-gap:12px;align-items:center}.level-icon{grid-row:1/4;margin:0}.level-card-title{grid-column:2}.level-card-copy{grid-column:2;font-size:.83rem;min-height:0}.level-card-meta{grid-column:2;margin:5px 0 0}.level-card-action{grid-column:3;grid-row:1/4;white-space:nowrap;margin:0}}
@media(max-width:720px){.overview-card{padding:25px 17px;border-radius:21px}.overview-card h1{font-size:2.2rem}.overview-intro{font-size:.9rem}.level-grid{margin-top:19px}.level-card{grid-template-columns:38px 1fr;padding:13px}.level-icon{width:37px;height:37px}.level-card-title{font-size:1.3rem}.level-card-copy{grid-column:2}.level-card-meta{grid-column:2}.level-card-action{grid-column:2;grid-row:4;margin-top:11px;font-size:.78rem;padding:7px 10px}.color-key{margin-top:19px}.topbar-actions{gap:0}.topbar-actions .text-button{font-size:.76rem;padding:7px}.sentence{overflow-x:auto}.word-unit{min-width:0}.word-slot{font-size:.59rem;min-width:36px;padding:0 3px;height:32px}.word-row{gap:3px}.part-slot{font-size:.6rem}}
.word-slot{font-size:.74rem}
.part-slot{font-size:.72rem}
@media(max-width:720px){.word-slot{font-size:.65rem}.part-slot{font-size:.63rem}}
.bracket-instructions{margin:11px 0 4px;padding:10px 12px;border-radius:11px;background:#fff4d9;color:#72551f;border:1px solid #ead9a9;font-size:.83rem;line-height:1.42}
.bracket-word{border:0;background:transparent;padding:0 3px;border-radius:7px;touch-action:manipulation}
.bracket-word:hover{background:#daf6ec;color:#126a58}
.bracket-word.selection-start{background:#d0efe5;outline:2px solid #20a684;outline-offset:2px}
.ungrouped .bracket-word{border-bottom:2px dotted #9acbbc}
.hard-group .bracket-word{color:#1e6959}
.group-controls{display:flex;align-items:stretch;gap:5px;margin-top:4px}
.group-controls .part-slot{margin-top:0;flex:1}
.remove-group{width:29px;height:31px;border:1px solid #e5d0ce;border-radius:8px;background:#fff5f2;color:#a4635b;font-size:1.1rem;line-height:1;padding:0}
.remove-group:hover{background:#ffe3dc;color:#8f443a}
@media(max-width:720px){.bracket-instructions{font-size:.76rem;padding:8px 9px}.group-controls{gap:3px}.remove-group{width:25px}}
