:root{font-family:Nunito,system-ui,sans-serif;color:#34291f;background:#eadcc5;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}.app{max-width:1500px;min-height:100vh;margin:auto;padding:12px 20px 20px;background:linear-gradient(145deg,#f6ebd8,#e5c9a6)}button,input{font:inherit}button{cursor:pointer}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px}.brand{font-weight:900;font-size:clamp(17px,2vw,23px);color:#713e31}.brand-icon{display:inline-grid;place-items:center;width:34px;height:34px;margin-right:8px;border-radius:50%;background:#9c4f3b;color:#fff}.small-button,.text-button{border:0;background:#fff7e8;color:#704833;border-radius:99px;padding:8px 13px;font-weight:800;box-shadow:0 2px 6px #6b442824}.progress{display:flex;justify-content:center;gap:4px;margin:9px auto 15px;max-width:900px}.progress-step{flex:1;min-width:0;display:flex;align-items:center;gap:4px;font-size:12px;font-weight:800;color:#745b48;white-space:nowrap}.progress-step:not(:last-child):after{content:"";flex:1;border-top:2px dashed #bd8060;min-width:4px}.progress-dot{display:grid;place-items:center;flex:none;width:26px;height:26px;border:2px solid #bf8b5c;border-radius:50%;background:#fff4df}.progress-step.active .progress-dot,.progress-step.done .progress-dot{background:#9b4d3d;color:white;border-color:#9b4d3d}.workspace{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(340px,.85fr);gap:18px;align-items:start}.table-wrap{border:11px solid #b98559;border-radius:22px;box-shadow:0 10px 22px #6e442b55,inset 0 0 0 2px #e6b98b;overflow:hidden;background:#2e3a6b}.table-surface{position:relative;width:100%;aspect-ratio:16/10;background:#2e3a6b url('assets/masa.jpg') center/cover}.table-surface canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}.table-overlay{position:absolute;inset:0;pointer-events:none}.lesson-panel{min-width:0}.character-row{display:flex;align-items:end;min-height:195px}.character-row img{height:205px;max-width:45%;object-fit:contain;object-position:bottom;filter:drop-shadow(0 5px 5px #5b392834)}.speech{position:relative;align-self:center;margin:8px 0 8px -4px;padding:13px 16px;border:2px solid #b88a5b;border-radius:20px;background:#fff8e9;font-size:15px;font-weight:800;line-height:1.3;box-shadow:0 4px 7px #5b392823}.speech:before{content:"";position:absolute;left:-10px;bottom:20px;width:15px;height:15px;transform:rotate(45deg);background:#fff8e9;border-left:2px solid #b88a5b;border-bottom:2px solid #b88a5b}.paper{padding:19px 21px;background:#fff9eb;border:3px dashed #c79267;border-radius:18px;box-shadow:0 8px 20px #67492d2d}.eyebrow{font-size:12px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;color:#9b4d3d}h1{font-size:clamp(22px,2.2vw,31px);line-height:1.13;margin:5px 0 10px;color:#47342b;font-weight:900}p{line-height:1.43}#instruction{font-size:16px;margin:0 0 14px}#controls{display:grid;gap:9px}.primary,.choice,.basket,.button-token{border:2px solid #7b4135;border-radius:13px;background:#a55040;color:#fff;padding:10px 14px;font-weight:900;box-shadow:0 4px 0 #743728}.primary:hover,.choice:hover,.basket:hover{filter:brightness(1.08)}.primary:active,.choice:active,.basket:active{transform:translateY(2px);box-shadow:0 2px 0 #743728}.primary[hidden]{display:none}.choice,.basket{background:#fff0d9;color:#4f372b;border-color:#d1a36c;box-shadow:0 3px 0 #b68250;text-align:left}.choice.selected,.basket.selected{border-color:#3aa776;background:#e1f5e9}.choices,.baskets,.button-tray{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.baskets{grid-template-columns:repeat(3,minmax(0,1fr))}.basket{text-align:center;font-size:13px;min-height:58px}.button-token{display:flex;align-items:center;justify-content:center;gap:8px;background:#f9e9c9;color:#5c3b2e;touch-action:none;user-select:none}.button-token img{width:28px;height:28px;object-fit:contain}.button-token.done{opacity:.45;pointer-events:none}.meter{padding:10px;border-radius:12px;background:#eee0c4;font-weight:900}.meter strong{color:#994538}.range{width:100%;accent-color:#c4483f}.bottom-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:16px}.text-button{padding-left:0;background:transparent;box-shadow:none;color:#8e563d}.hint{padding:10px 12px;border-radius:10px;background:#f5e5ba;margin:10px 0 0;font-size:14px}.feedback{padding:10px 12px;border-radius:11px;font-weight:800}.feedback.good{background:#dff3e8;color:#24674e}.feedback.bad{background:#fae5df;color:#944435}.feedback.info{background:#e7e7f3;color:#384773}.definition{border-left:4px solid #d6a34f;background:#fff0ce;padding:10px;font-weight:800}.story-index{color:#9a5640;font-weight:900}.small-note{font-size:13px;color:#675142}.table-note{position:absolute;bottom:4%;left:50%;transform:translateX(-50%);background:#fff8e9dd;border-radius:20px;padding:5px 12px;font-size:13px;font-weight:900;color:#5b3b2c;white-space:nowrap}#drawing:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #e9b44c;outline-offset:2px}@media(max-width:850px){.workspace{grid-template-columns:1fr}.table-surface{aspect-ratio:1/1}.lesson-panel{display:flex;flex-direction:column}.character-row{order:2;min-height:0;margin-top:12px;align-items:center}.character-row img{height:110px;width:100px;object-fit:contain}.speech{flex:1;font-size:13px}.paper{order:1;padding:14px}.progress-step{font-size:0}.progress-dot{width:25px;height:25px;font-size:12px}.table-wrap{border-width:7px}.app{padding:8px 10px 20px}.brand{font-size:16px}.baskets{gap:4px}.basket{font-size:11px;padding:6px 3px}}@media(max-width:420px){.table-surface{aspect-ratio:1/1}.paper h1{font-size:22px}.paper #instruction{font-size:14px}.progress{margin:5px auto 8px}.table-wrap{border-width:6px}.character-row img{height:94px}.speech{padding:9px 10px}.paper{border-width:2px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Süs görselleri (adım değişince kurulur) */
.table-overlay img{position:absolute;pointer-events:none}
.deco-makara{bottom:6%;right:8%;width:16%;max-width:110px;filter:drop-shadow(0 8px 5px #0005)}
.deco-pergel{right:3%;top:7%;height:28%;filter:drop-shadow(0 5px 4px #0005)}
/* Bitiş: örtü kumaşın üstüne serilir, sonra şemanın görünmesi için saydamlaşır; düğmeler yağar */
.final-ortu{left:50%;top:50%;width:70%;max-height:82%;object-fit:contain;transform:translate(-50%,-50%);animation:ortuIn 3.2s ease-out forwards;filter:drop-shadow(0 12px 14px #0007)}
@keyframes ortuIn{0%{opacity:0;transform:translate(-50%,-50%) scale(.2) rotate(-90deg)}35%{opacity:1;transform:translate(-50%,-50%) scale(1.04) rotate(4deg)}55%{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(0)}80%{opacity:1}100%{opacity:.18;transform:translate(-50%,-50%) scale(1)}}
.falling-button{top:-12%;animation:dugmeYag 2.6s cubic-bezier(.3,.1,.5,1) forwards}
@keyframes dugmeYag{0%{transform:translateY(0) rotate(0);opacity:1}85%{opacity:1}100%{transform:translateY(118vh) rotate(var(--spin));opacity:0}}

.definition{display:block;border-radius:0 10px 10px 0;line-height:1.4}
