/* Feedback stays beside Robotist; it never adds another row above the farm. */
.robot-thought{position:absolute;z-index:12;width:244px;max-width:calc(100% - 16px);padding:13px 30px 11px 14px;background:#fffdf0;border:2px solid #dbb56d;border-radius:23px;box-shadow:0 5px 0 #bda36c4d,0 8px 22px #39513625;color:#76522f;pointer-events:auto}
.robot-thought[hidden]{display:none}.robot-thought strong{display:block;font-size:14px;line-height:1.25}.robot-thought p{font-size:11px;line-height:1.4;margin:5px 0 7px}.robot-thought>small{display:block;margin-top:7px;font-size:9px;color:#8b775c}.robot-thought button{position:absolute;right:3px;top:3px;width:30px;height:30px;border:0;border-radius:50%;background:#f5ebd1;color:#815a38;font-size:22px;line-height:1;cursor:pointer}.robot-thought button:hover{background:#efddb3}.robot-thought button:focus-visible{outline:3px solid #2ba4c5;outline-offset:2px}.thought-dots{position:absolute;left:var(--tail-x,30px);bottom:-19px;color:#fffdf0;text-shadow:0 2px 0 #bd9f69;font-size:19px;letter-spacing:2px;pointer-events:none;white-space:nowrap}.thought-steps{display:flex;align-items:center;gap:4px}.thought-steps .hint-step{width:27px;height:28px;min-width:27px;border-radius:6px}.thought-steps .icon{width:16px;height:16px}.thought-steps .hint-step small{display:none}.thought-steps .hint-arrow{font-size:11px}
.has-thought .block.failed{animation:wrong-command 1.4s ease-in-out infinite}.guide-tile{opacity:.2;animation:guide-cell 1.8s ease-in-out infinite;animation-delay:var(--guide-delay)}
@keyframes wrong-command{0%,100%{box-shadow:0 0 0 2px #dd805d;background:#fff0e5}50%{box-shadow:0 0 0 4px #edaa65;background:#ffd9c3}}
@keyframes guide-cell{0%,100%{opacity:.2}35%,65%{opacity:.95}}
/* Instructions are the same command pictograms the child uses in the editor. */
.hint-dialog{width:min(560px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;padding:24px;border-radius:23px}.hint-dialog h2{font-size:27px;margin:12px 0 6px}.hint-dialog #hint-level{font-size:13px;margin:0 0 18px}.hint-dialog .hint-content{display:flex;align-items:center;gap:14px;margin:0 0 22px}.hint-dialog .hint-content>img{width:78px;height:100px;object-fit:contain;flex:none}.hint-visual{flex:1;min-width:0}.hint-sequence{display:flex;flex-wrap:wrap;align-items:center;gap:7px;max-width:100%}.hint-arrow{color:#9e9c7b;font-weight:800;font-size:17px}.hint-step{display:inline-flex;position:relative;flex:none;align-items:center;justify-content:center;width:42px;height:43px;border:1px solid #a9c88d;border-radius:10px;background:#d9eecb;color:#27634b;box-shadow:0 3px 0 #a5c88e}.hint-step .icon{width:23px;height:23px}.hint-step small{position:absolute;left:4px;top:1px;font-size:8px;line-height:1;color:inherit;opacity:.7}.hint-step.water{background:#d8f2fb;color:#1689ad;border-color:#93cde0;box-shadow:0 3px 0 #95cddd}.hint-step.collect{background:#fff0b4;color:#99721b;border-color:#e6cd77;box-shadow:0 3px 0 #dfc36c}.hint-step.left,.hint-step.right{background:#e9ddfa;color:#7956a6;border-color:#c4afe2;box-shadow:0 3px 0 #bfa4db}.hint-step.play{background:#48a37a;color:white;border-color:#2d855f;box-shadow:0 3px 0 #236e50}.hint-loop{max-width:100%;border-radius:11px;background:#f6b847;box-shadow:0 3px 0 #d89b34;color:#835218}.hint-loop-head{display:flex;align-items:center;gap:10px;padding:8px 12px}.hint-loop-head .icon{width:23px;height:23px}.hint-loop-head b{font-size:17px;background:#fff8e7;border:1px solid #d5a64c;border-radius:20px;padding:2px 14px;line-height:1.3}.hint-loop-body{background:#fffcf2;margin-left:12px;border-radius:9px 0 0 9px;padding:12px;min-width:0}.hint-loop-foot{height:20px;padding-left:12px;line-height:18px;font-weight:800}.hint-launch{display:flex;gap:10px;align-items:center;justify-content:center;margin-top:14px;font-size:21px;color:#82966b}.hint-dialog .run-button{width:100%;min-height:44px;font-size:14px}
@media(max-width:599px), (max-width:950px) and (max-height:500px){.robot-thought{width:168px;padding:10px 24px 8px 10px;border-radius:17px}.robot-thought strong{font-size:11px}.robot-thought p{font-size:9px;margin:4px 0 5px}.robot-thought>small{font-size:8px;margin-top:6px}.robot-thought button{width:26px;height:26px;font-size:19px}.thought-steps{gap:3px}.thought-steps .hint-step{width:24px;min-width:24px;height:24px}.thought-steps .icon{width:14px;height:14px}.thought-steps .hint-arrow{font-size:9px}.thought-steps .hint-step:nth-of-type(n+7),.thought-steps .hint-arrow:nth-of-type(n+6){display:none}.hint-dialog{padding:19px}.hint-dialog h2{font-size:23px}.hint-dialog .hint-content{gap:8px}.hint-dialog .hint-content>img{width:44px;height:68px}.hint-loop-body{padding:9px;margin-left:10px}.hint-sequence{gap:5px}.hint-step{width:33px;height:35px;border-radius:8px}.hint-step .icon{width:20px;height:20px}.hint-loop-head{padding:6px 9px}.hint-loop-head b{font-size:14px}.hint-arrow{font-size:13px}.hint-dialog .eyebrow{font-size:8px}.hint-loop-body .hint-loop-body{padding:7px}}
@media(prefers-reduced-motion:reduce){.has-thought .block.failed,.guide-tile{animation:none}.guide-tile{opacity:.8}}
.robot-thought[data-side="below"] .thought-dots{top:-21px;bottom:auto}.robot-thought[data-side="right"] .thought-dots{left:-24px;bottom:14px;font-size:14px}.robot-thought[data-side="left"] .thought-dots{left:auto;right:-24px;bottom:14px;font-size:14px}
.thought-steps{gap:3px}.thought-steps .hint-step{width:25px;min-width:25px;height:27px}.thought-steps .hint-arrow{font-size:9px}
@media(max-width:599px), (max-width:950px) and (max-height:500px){.robot-thought{width:clamp(124px,36vw,168px)}.thought-steps{margin-right:-20px}.robot-thought p{max-width:110px}}
@media(max-width:599px) and (max-height:650px){.robot-thought{padding:8px 24px 7px 9px}.robot-thought strong{font-size:10px}.robot-thought p{font-size:8.5px;line-height:1.3}.robot-thought>small{white-space:nowrap;font-size:7px;margin-top:5px}}
