/* The Drop button, after Windward Towers: big, yellow, at the bottom of the sky. */
.drop-button{position:absolute;left:50%;bottom:6px;transform:translateX(-50%);z-index:3;display:flex;align-items:center;gap:8px;min-height:58px;min-width:170px;justify-content:center;padding:0 28px;border:3px solid #fff4c8;border-radius:20px;background:linear-gradient(#ffe16a,#f6c43a);box-shadow:0 5px 0 #c08f1f,0 10px 18px #5a3a0a33;color:#5a3a0a;font-size:24px;animation:drop-in .22s ease-out}
.drop-button svg{width:26px;height:26px;stroke-width:3.4}
.drop-button:active{transform:translate(-50%,4px);box-shadow:0 1px 0 #c08f1f}
@keyframes drop-in{from{transform:translate(-50%,12px) scale(.9);opacity:0}}
.holding .hint{opacity:0}
@media(max-width:700px){.drop-button{bottom:6px;min-height:50px;min-width:140px;font-size:20px}}
@media(max-height:540px) and (min-width:701px){.drop-button{bottom:4px;min-height:42px;min-width:120px;font-size:18px}}
/* Ideas and picture guides for Topsy Town, after the WonderLinks guide board. */
.ideas-button{display:flex;align-items:center;gap:8px;min-height:58px;padding:0 18px 0 12px;border:3px solid #fff4d8;border-radius:21px;background:linear-gradient(145deg,#fff7df,#f3d9a9);box-shadow:0 5px 0 #b69a68,0 9px 18px #58391f28;color:#6a4520;font-size:19px;flex:none;transition:transform .15s,box-shadow .15s}
.ideas-button .ideas-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:linear-gradient(#ffd9a6,#f3b578);box-shadow:inset 0 1px #fff8,0 2px 0 #c88b52;color:#8a5326}
.ideas-button .ideas-icon svg{width:27px;height:27px;stroke-width:2}
.ideas-button:hover{transform:translateY(-2px);filter:brightness(1.04)}
.ideas-button:active{transform:translateY(3px);box-shadow:0 2px 0 #b69a68}

#ideasDialog{width:min(1040px,95vw);padding:28px 30px 32px;border:4px solid #fff2cf;border-radius:32px;background:linear-gradient(145deg,#fff9e8,#f2e1bd);box-shadow:0 7px 0 #ba945d,0 25px 90px #30221166}
#ideasDialog .dialog-heading h2{font-size:31px;color:#78552e}
#ideasDialog .dialog-note{margin:10px 0 18px}
.free-build{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;padding:16px 22px;border:3px solid #fff8e5;border-radius:22px;background:linear-gradient(110deg,#fff7e3,#f6e3b8);box-shadow:0 5px 0 #c9ae83;text-align:left;color:#62421f;transition:transform .15s,box-shadow .15s}
.free-build strong{font-size:21px;font-weight:500}
.free-build span{font-size:14px;color:#8c6a40}
.free-build:hover,.idea-card:hover{transform:translateY(-3px)}
.free-build.current{border-color:#84aa65;background:linear-gradient(110deg,#f3f8e6,#e2eecb)}
.ideas-heading{margin:24px 2px 12px;font-size:15px;font-weight:500;letter-spacing:2px;text-transform:uppercase;color:#987759}
.idea-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:14px}
.idea-card{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:2px;padding:8px 8px 11px;border:3px solid #fff8e5;border-radius:20px;background:#fffaf0;box-shadow:0 4px 0 #d6bd94;text-align:left;color:#5c3d23;transition:transform .14s,box-shadow .14s}
.idea-card img{width:100%;aspect-ratio:240/176;object-fit:cover;border-radius:13px;background:#f6ecdb}
.idea-card strong{font-size:17px;font-weight:500;margin:6px 3px 0;line-height:1.15}
.idea-card span{font-size:12.5px;color:#937552;margin:0 3px}
.idea-card.done{border-color:#b9d1a6;background:#f6faee}
.idea-card.current{border-color:#f0c766;box-shadow:0 4px 0 #d3a845}

.guide{position:absolute;left:18px;top:12px;z-index:3;display:flex;flex-direction:column;align-items:flex-start;gap:8px;width:330px;pointer-events:none}
.guide>*{pointer-events:auto}
.guide .board{width:100%;padding:9px 9px 7px;border:3px solid #fff2d2;border-radius:22px;background:linear-gradient(#f6d9a5,#e8bf82);box-shadow:inset 0 2px 2px #fff7,0 5px 0 #b48651,0 10px 18px #5a361a2a}
.guide .cards{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.step-card{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:3px;padding:5px 5px 7px;border:3px solid transparent;border-radius:15px;background:#fff8ea;box-shadow:0 3px 0 #c99f6b;color:#5c3d23;min-width:0}
.step-card img{width:100%;aspect-ratio:220/150;border-radius:10px;background:#f6ecdb;object-fit:cover}
.step-card .label{font-size:13.5px;line-height:1.15;text-align:center;padding:0 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.step-card .badge{position:absolute;top:-6px;left:-6px;display:grid;place-items:center;min-width:27px;height:27px;padding:0 6px;border:2px solid #fff6dd;border-radius:14px;background:#c86f4e;color:#fff;font-size:14px;box-shadow:0 2px 0 #8d4a31}
.step-card.active{border-color:#ffd66e;box-shadow:0 0 0 3px #fff3b580,0 3px 0 #c99f6b;animation:step-glow 1.6s ease-in-out infinite alternate}
.step-card.done{opacity:.86}
.step-card.done .badge{background:#6f9b55;box-shadow:0 2px 0 #456c32}
@keyframes step-glow{to{box-shadow:0 0 0 5px #fff3b5,0 3px 0 #c99f6b}}
.board-nav{display:flex;align-items:center;justify-content:space-between;margin-top:6px;color:#6b4724;font-size:16px}
.board-nav button{display:grid;place-items:center;width:36px;height:36px;border:2px solid #fff3d9;border-radius:50%;background:linear-gradient(#fff4dc,#efd4a3);box-shadow:0 2px 0 #b48651}
.board-nav button svg{width:20px;height:20px;stroke-width:3}
.guide-title{margin:-1px 4px 7px;font-size:17px;line-height:1.15;color:#6c4520;text-shadow:0 1px #fff4d6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.guide-actions{display:flex;flex-wrap:wrap;gap:7px}
.chip{min-height:44px;padding:0 13px;border:3px solid #fff6dd;border-radius:999px;background:linear-gradient(#fffaf0,#f3e3c3);box-shadow:0 3px 0 #c3a173,0 6px 12px #52331a18;color:#5f3f1e;font-size:15px;white-space:nowrap}
.chip-go{background:linear-gradient(#ffe7a3,#f6cf6a);box-shadow:0 3px 0 #c39b3f,0 6px 12px #52331a18}
.chip:active{transform:translateY(2px);box-shadow:0 1px 0 #c3a173}
.guide-back{position:absolute;left:18px;top:12px;z-index:3}

.piece-button.wanted{background:#fff6d466;border-color:#ffe28a;box-shadow:0 0 0 3px #ffe9a3aa,0 0 18px #fff1b2;animation:wanted 1.1s ease-in-out infinite alternate}
.piece-button.wanted::after{content:'';position:absolute;top:-14px;left:50%;width:0;height:0;margin-left:-9px;border:9px solid transparent;border-top:12px solid #e8873f;filter:drop-shadow(0 2px 0 #fff7);animation:wanted-arrow .55s ease-in-out infinite alternate}
@keyframes wanted{to{transform:translateY(-5px)}}
@keyframes wanted-arrow{to{transform:translateY(5px)}}

@media(max-width:700px){
  .topbar .ideas-button{grid-row:2;grid-column:3;flex-direction:column;justify-content:center;gap:1px;width:66px;height:65px;min-height:0;padding:3px 0 4px;border-radius:20px;font-size:12.5px;line-height:1}
  .topbar #worldButton{grid-column:1/3}
  .ideas-button .ideas-icon{width:34px;height:34px;border-radius:11px}
  .ideas-button .ideas-icon svg{width:24px;height:24px}
  .guided .top-notes{display:none}
  .guide{left:8px;top:8px;width:150px;gap:5px}
  .guide .board{padding:5px 5px 3px;border-radius:16px;border-width:2px}
  .guide .cards{grid-template-columns:1fr}
  .step-card .label{font-size:11.5px}
  .step-card .badge{min-width:22px;height:22px;font-size:12px}
  .board-nav{font-size:12px;margin-top:3px}
  .board-nav button{width:28px;height:28px}
  .board-nav button svg{width:16px;height:16px}
  .guide-title{font-size:13px;margin:0 2px 4px}
  .guide-actions{gap:5px}
  .chip{min-height:34px;padding:0 10px;font-size:12.5px;border-width:2px}
  .guide-back{left:8px;top:8px}
  #ideasDialog{padding:18px 16px 22px;border-radius:24px}
  #ideasDialog .dialog-heading h2{font-size:23px}
  .idea-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .idea-card strong{font-size:15px}
  .free-build{padding:12px 16px}
  .free-build strong{font-size:18px}
}
@media(max-height:540px) and (min-width:701px){
  .ideas-button{min-height:44px;font-size:15px;padding:0 12px 0 8px;border-radius:16px}
  .ideas-button .ideas-icon{width:30px;height:30px}
  .guide{flex-direction:row;align-items:flex-start;width:auto;top:6px;left:12px;gap:7px}
  .guide .board{width:150px;padding:5px 5px 3px;border-radius:15px;border-width:2px}
  .guide .cards{grid-template-columns:1fr}
  .guide-title{font-size:13px;margin:0 2px 4px}
  .step-card{padding:3px 3px 4px;border-radius:11px}
  .step-card .label{font-size:11px}
  .step-card .badge{min-width:21px;height:21px;font-size:11px}
  .board-nav{font-size:12px;margin-top:3px}
  .board-nav button{width:26px;height:26px}
  .board-nav button svg{width:15px;height:15px}
  .guide-actions{flex-direction:column;align-items:stretch;gap:6px}
  .chip{min-height:34px;font-size:13px;padding:0 11px;border-width:2px}
  .guide-back{top:6px;left:12px}
  .guided .top-notes{display:none}
}
@media(max-width:700px),(max-height:540px){.guide{transition:opacity .2s}.holding .guide,.holding .guide-back{opacity:.12;pointer-events:none}}
@media(prefers-reduced-motion:reduce){.piece-button.wanted,.piece-button.wanted::after,.step-card.active{animation:none}}
