/* Natural responsive layout: elements reflow instead of scaling a landscape canvas. */
html,body{width:100%;height:100%;overflow:hidden}
.game-garden{width:100%;height:100%;min-height:520px;background:#67bd35 url("assets/v2-garden-bg.png?v=1") center/cover no-repeat}
.garden-stage{position:absolute;inset:0;width:auto;height:auto;transform:none!important;overflow:hidden}
.garden-stage .garden-world{left:50%;right:auto;top:0;bottom:0;width:max(100%,1600px);transform:translateX(calc(-50% + var(--pan-x,0px)));background-size:cover;background-position:center bottom;cursor:grab;touch-action:pan-y;transition:transform .08s linear}
.garden-world.is-panning{cursor:grabbing;transition:none}
.garden-stage .project-plant{width:clamp(230px,27vw,350px);height:clamp(340px,58vh,500px);bottom:clamp(8px,2vh,24px)}
.garden-stage .ket-project{left:clamp(3%,18vw,20%)}
.garden-stage .school-project{width:clamp(200px,23vw,300px);right:clamp(3%,15vw,17%)}
.project-plant{translate:var(--plant-x,0px) var(--plant-y,0px);touch-action:none}.project-plant.dragging{z-index:35;cursor:grabbing;transition:none!important;filter:drop-shadow(0 28px 15px #173b1d88)}.project-plant.dragging:hover{transform:none}

@media(max-width:900px){
  .game-topbar{left:10px;right:10px;top:10px;height:64px}
  .game-logo{font-size:21px}
  .game-nav>button,.version-link{padding:8px 10px;font-size:11px}
  .garden-stage .garden-world{width:max(100%,1400px)}
  .garden-world.is-panning{cursor:grabbing;transition:none}
  .garden-stage .project-plant{width:min(43vw,310px);height:min(55vh,430px);bottom:4vh}
  .garden-stage .ket-project{left:22%}
  .garden-stage .school-project{width:min(38vw,270px);right:20%}
  .mailbox-hotspot{left:18%;top:42%}
}

@media(max-width:600px){
  .game-garden{min-height:580px}
  .game-topbar{height:58px;padding:0 9px;border-width:3px;border-radius:17px}
  .game-logo{font-size:17px;gap:6px}
  .logo-leaf{width:29px;height:29px}
  .game-nav{gap:5px}
  .game-nav #logButton{display:none}
  .day-switch{padding:7px!important}
  .garden-stage .garden-world{width:max(100%,1200px)}
  .garden-stage .project-plant{width:48vw;height:48vh;bottom:6vh}
  .garden-stage .ket-project{left:25%}
  .garden-stage .school-project{width:42vw;right:22%}
  .pot-label{font-size:13px;padding:6px 9px;border-width:3px}
  .mailbox-hotspot{left:19%;top:34%;transform:scale(.8)}
  .course-dialog{width:calc(100% - 16px)}
}

@media(max-height:620px) and (min-width:601px){
  .game-topbar{height:58px}
  .garden-stage .project-plant{height:72vh;bottom:-4vh}
  .garden-stage .school-project{height:68vh}
  .pot-label{font-size:14px}
}

@media (max-width: 600px), (max-width: 1000px) and (pointer: coarse) {
  .game-garden { min-height: 0; }
  .garden-stage .garden-world {
    inset: 0;
    width: 100%;
    transform: none;
    cursor: default;
    transition: none;
  }
  .garden-stage .project-plant,
  .garden-stage .school-project {
    width: 44%;
    max-width: 300px;
    height: 54%;
    bottom: 10%;
    translate: none;
    touch-action: manipulation;
  }
  .garden-stage .ket-project { left: 4%; }
  .garden-stage .school-project { right: 4%; }
  .garden-stage .project-plant:hover { transform: none; }
  .mailbox-hotspot { left: 4%; top: 20%; width: 80px; height: 60px; }
  .course-dialog { max-height: calc(100% - 16px); overflow-y: auto; }
}
