.flower-controls { position: absolute; right: 32px; bottom: 146px; width: 260px; pointer-events: auto; }
.flower-controls > p { margin: 0 0 8px; color: #fff4dd; font-size: .8rem; line-height: 1.4; text-align: right; text-shadow: 0 1px 5px #162b23; }
.flower-buttons { display: flex; justify-content: flex-end; gap: 7px; }
.flower-buttons button { min-height: 48px; padding: 10px 12px; border: 1px solid #aaa58c; border-radius: 7px; background: #223a32ed; color: #fff4dd; font: 600 .83rem/1.2 var(--font-body, sans-serif); cursor: pointer; touch-action: none; }
.flower-buttons button:disabled { opacity: .55; cursor: default; }
.flower-buttons button:focus-visible { outline: 3px solid #ffd27b; outline-offset: 3px; }
.flower-buttons kbd { margin-left: 6px; font-size: .7rem; opacity: .8; }
.flower-buttons .give-flower { position: relative; display: flex; align-items: center; gap: 7px; overflow: hidden; border-color: #e4b45e; background: #f3c66f; color: #26392c; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.give-flower.charging { background: #ffdc8b; }
.flower-symbol { font: 1.5rem/1 Georgia, serif; }
.flower-charge { --charge: 0; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #26392c22; }
.flower-charge::after { content: ''; display: block; height: 100%; width: calc(var(--charge) * 100%); background: #315943; }
#climb-hud { left: auto; right: 32px; bottom: 230px; transform: none; font-size: .85rem; text-align: right; }
.gifts-modal { max-width: 620px; }
.gifts-intro { max-width: 48ch; font-size: .96rem; line-height: 1.6; }
.gift-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 24px; }
.gift-card { position: relative; display: flex; flex-direction: column; padding: 18px; border: 1px solid #cbcdc0; border-radius: 8px; background: #faf6e9; }
.gift-card.selected { border-color: #557b61; box-shadow: inset 0 0 0 1px #557b61; }
.gift-card-icon { font: 2.6rem/1 Georgia, serif; color: #8a6034; min-height: 42px; }
.gift-card h3 { margin: 12px 0 6px; font: 1.3rem Georgia, serif; }
.gift-card p { font-size: .88rem; line-height: 1.55; margin: 0 0 18px; }
.gift-card button { margin-top: auto; min-height: 44px; }
@media (max-width: 700px), (pointer: coarse), (max-width: 900px) and (max-height: 560px) {
  #hud.has-flowers { grid-template-rows: auto minmax(0,1fr) auto auto auto 148px; }
  #hud.has-flowers .touch-controls { height: 148px; }
  #hud .flower-controls { position: static; grid-area: 6 / 1 / 7 / -1; align-self: start; justify-self: end; width: calc(100% - 112px); max-width: 250px; z-index: 1; }
  .flower-controls > p { font-size: .8125rem; line-height: 1.35; margin-bottom: 6px; }
  .flower-buttons { gap: 5px; }
  .flower-buttons button { min-height: 48px; padding: 10px 9px; font-size: .875rem; }
  .flower-buttons .give-flower { flex: 0 1 auto; justify-content: center; gap: 5px; }
  .flower-buttons kbd { display: none; }
  .flower-symbol { font-size: 1.25rem; }
  #hud.has-flowers #touch-look-hint { display: none; }
  #hud.has-flowers .greeting-controls { grid-area: 6 / 1 / 7 / -1; justify-self: start; align-self: start; max-width: 100px; }
  #hud #climb-hud { position: static; grid-area: 3 / 1 / 4 / -1; }
}
@media (max-width: 380px) { .flower-symbol { display: none; } .gift-list { grid-template-columns: minmax(0,1fr); } }
@media (orientation: landscape) and (max-height: 560px) and (max-width: 900px), (orientation: landscape) and (max-height: 560px) and (pointer: coarse) {
  #hud.has-flowers { grid-template-rows: auto minmax(0,1fr) auto 144px; }
  #hud.has-flowers .touch-controls { height: 144px; }
  #hud .flower-controls { grid-area: 4 / 2 / 5 / -1; width: 250px; }
  #hud #climb-hud { grid-area: 3 / 2 / 4 / 3; }
  #hud.has-flowers .greeting-controls { grid-area: 4 / 2 / 5 / 3; justify-self: center; align-self: end; max-width: 100%; }
}
.gift-card-icon svg { display: block; width: 42px; height: 42px; }
@media (orientation: landscape) and (max-height: 360px) and (max-width: 900px), (orientation: landscape) and (max-height: 360px) and (pointer: coarse) {
  #hud .flower-controls { grid-column: 2 / 3; max-width: 100%; }
}
@media (max-width: 700px) {
  .gift-list { grid-template-columns: minmax(0,1fr); gap: 12px; margin-top: 20px; }
  .gift-card { display: grid; grid-template-columns: 42px minmax(0,1fr); column-gap: 14px; padding: 16px; }
  .gift-card-icon { grid-area: 1 / 1 / 4 / 2; }
  .gift-card h3 { grid-column: 2; margin: 0 0 7px; }
  .gift-card p { grid-column: 2; margin-bottom: 12px; }
  .gift-card button { grid-column: 2; justify-self: start; padding: 10px 14px; }
}
