/* Tootle Lot: a sunny toy-town car park. System rounded fonts only. */
:root{
  --tl-grass:#7cc46a; --tl-grass-2:#69b25a; --tl-ink:#2a2440; --tl-cream:#fff7e8; --tl-paper:#fffdf7;
  --tl-tomato:#ef5b4c; --tl-tomato-d:#c4402f; --tl-sun:#ffc93c; --tl-line:rgba(42,36,64,.14);
  --tl-font:ui-rounded,"SF Pro Rounded","Nunito","Varela Round","Arial Rounded MT Bold",system-ui,-apple-system,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:var(--tl-grass);color:var(--tl-ink);font-family:var(--tl-font);overscroll-behavior:none;-webkit-tap-highlight-color:transparent}
body{overflow:hidden;touch-action:manipulation}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#app{position:fixed;inset:0;display:flex;flex-direction:column;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
#top{display:flex;align-items:center;gap:8px;padding:8px 10px 4px;min-height:56px}
#realmSlot{flex:0 0 auto;min-width:0}
.sp{flex:1}
#lotname{display:flex;align-items:baseline;justify-content:center;gap:10px;flex-wrap:wrap;padding:2px 10px 0;line-height:1.15;text-align:center}
#lotname b{font-size:22px;font-weight:900;letter-spacing:.01em}
#lotname small{font-size:14px;font-weight:700;opacity:.85;white-space:nowrap}
button{font:inherit;color:inherit}
.ic{flex:0 0 auto;width:46px;height:46px;border-radius:14px;border:2px solid var(--tl-ink);background:var(--tl-cream);display:grid;place-items:center;cursor:pointer;box-shadow:0 3px 0 var(--tl-ink);padding:0}
.ic:active{transform:translateY(2px);box-shadow:0 1px 0 var(--tl-ink)}
.ic svg{width:24px;height:24px;fill:none;stroke:var(--tl-ink);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.ic .spk{fill:var(--tl-ink)}
#mute .off{display:none}
#mute.muted .on{display:none}
#mute.muted .off{display:inline}
#hint{margin:0 12px 2px;text-align:center;font-size:15px;font-weight:700;min-height:20px;line-height:1.3;text-shadow:0 1px 0 rgba(255,255,255,.35)}
#stage{flex:1;min-height:0;position:relative}
#board{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:pointer;outline:none}
#board:focus-visible{box-shadow:inset 0 0 0 3px var(--tl-sun)}
#bottom{display:flex;gap:8px;justify-content:center;padding:6px 10px 10px}
#app.about-room #bottom{padding-bottom:64px}
.tool{flex:1 1 0;max-width:120px;min-height:52px;border-radius:16px;border:2px solid var(--tl-ink);background:var(--tl-cream);box-shadow:0 3px 0 var(--tl-ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:13px;font-weight:800;cursor:pointer;padding:4px}
.tool:active{transform:translateY(2px);box-shadow:0 1px 0 var(--tl-ink)}
.tool:disabled{opacity:.45;cursor:default}
.tool svg{width:22px;height:22px;fill:none;stroke:var(--tl-ink);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.tool.pulse{animation:pulse 1s ease-in-out 3}
#dailyBtn.done{background:#dff3d4}
@keyframes pulse{50%{background:var(--tl-sun)}}
@media (prefers-reduced-motion:reduce){.tool.pulse{animation:none;background:var(--tl-sun)}}
@media (min-width:700px) and (min-height:600px){#lotname b{font-size:26px}#hint{font-size:17px}.tool{max-width:140px;font-size:14px}}

/* the lots grid, the garage and the result, inside the kit's modal */
.tl-row{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 12px}
.tl-row .er-btn{flex:1 1 140px}
.tl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:6px;max-height:min(44vh,360px);overflow:auto;padding:4px 2px;margin-top:6px}
.tl-grid button{min-height:52px;border-radius:12px;border:2px solid var(--er-line);background:var(--er-surface-2);color:var(--er-ink);font-weight:800;font-size:15px;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
.tl-grid button small{font-size:10px;letter-spacing:-1px;margin-top:3px;color:var(--er-gold-ink,#b07a00)}
.tl-grid button.cur{border-color:var(--er-accent);box-shadow:inset 0 0 0 2px var(--er-accent)}
.tl-grid button:disabled{opacity:.4;cursor:default}
.tl-stars{font-size:38px;letter-spacing:4px;text-align:center;margin:0 0 6px;color:#e2a400}
.tl-stars i{font-style:normal;color:rgba(42,36,64,.2)}
.tl-res{display:flex;justify-content:center;gap:18px;margin:6px 0 4px;font-weight:700}
.tl-res span{display:flex;flex-direction:column;align-items:center;font-size:13px;color:var(--er-ink-muted)}
.tl-res b{font-size:22px;color:var(--er-ink)}
.tl-shop{display:flex;flex-direction:column;gap:8px}
.tl-item{display:flex;align-items:center;gap:10px;padding:8px;border-radius:14px;background:var(--er-surface-2);border:1.5px solid var(--er-line)}
.tl-item .sw{width:44px;height:44px;border-radius:10px;flex:0 0 auto;border:2px solid var(--er-line)}
.tl-item div{flex:1;min-width:0}
.tl-item b{display:block}
.tl-item small{color:var(--er-ink-muted)}
.tl-item .er-btn{flex:0 0 auto;min-width:84px;min-height:44px}
.tl-how{margin:0;padding-left:18px;line-height:1.45}
.tl-how li{margin:3px 0}
.tl-note{font-size:13px;color:var(--er-ink-muted);margin:8px 0 0}
