.garden-feedback-host{width:100%;color:#252A39;font:15px/1.55 system-ui,sans-serif;box-sizing:border-box;grid-column:1/-1}
.garden-feedback,.garden-feedback *{box-sizing:border-box}
.garden-feedback button,.garden-feedback select,.garden-feedback input,.garden-feedback textarea{font:inherit;color:#252A39;letter-spacing:normal;text-transform:none}
.garden-feedback button,.garden-feedback-link{cursor:pointer;min-height:44px;box-shadow:none}
.garden-feedback button:focus-visible,.garden-feedback input:focus-visible,.garden-feedback textarea:focus-visible,.garden-feedback select:focus-visible,.garden-feedback-link:focus-visible{outline:3px solid #765297;outline-offset:3px}
.feedback-rating{max-width:1180px;margin:22px auto 10px;padding:12px 16px 0;border-top:1px solid #d9d5cd}
.feedback-rating-actions{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.feedback-rating-actions>span{font-size:13px;font-weight:550;margin-right:4px}
.garden-feedback .feedback-thumb{display:inline-flex;align-items:center;justify-content:center;background:#fffdf8;border:1px solid #7b8290;border-radius:12px;width:44px;padding:8px}
.garden-feedback .feedback-thumb[aria-pressed=true]{background:#d7e9df;border-color:#47765f;box-shadow:inset 0 0 0 1px #47765f}
.garden-feedback .feedback-thumb:hover{background:#ece5f3}
.garden-feedback button:disabled{cursor:wait;opacity:.55}
.garden-feedback .feedback-text-button,.garden-feedback-link{font:550 13px/1.4 system-ui,sans-serif;color:#454b59;text-decoration:underline;text-underline-offset:4px;background:transparent;border:0;border-radius:5px;padding:10px}
.garden-feedback .feedback-rating-note{min-height:20px;text-align:center;font-size:12px;color:#454b59;margin:4px 0 0}
.garden-feedback .feedback-dialog{color:#252a39;background:#f6f4ef;border:1px solid #b9adca;border-radius:24px;padding:0;width:min(540px,calc(100vw - 28px));max-height:calc(100dvh - 32px);margin:auto;box-shadow:0 20px 80px #171c2a30;overflow:auto;overscroll-behavior:contain;text-align:left}
.feedback-dialog::backdrop{background:#171c2a70;backdrop-filter:blur(3px)}
.feedback-dialog-inner{padding:32px;position:relative}
.garden-feedback .feedback-close{position:absolute;right:12px;top:10px;font-size:26px;width:44px;padding:0;background:transparent;border:0;border-radius:50%}
.garden-feedback .feedback-eyebrow{font:600 10px/1.5 ui-monospace,monospace;letter-spacing:1.5px;color:#454b59;margin:4px 30px 12px 0}
.garden-feedback h2{font:650 clamp(26px,5vw,32px)/1.15 system-ui,sans-serif;letter-spacing:-1px;margin:0 0 14px;padding:0}
.garden-feedback p{line-height:1.6}
.garden-feedback .feedback-intro{margin:0 0 22px;color:#454b59;font-size:14px}
.garden-feedback label{display:block;font-size:13px;font-weight:600;margin:15px 0 6px}
.garden-feedback label span{font-weight:400;color:#454b59}
.garden-feedback input,.garden-feedback select,.garden-feedback textarea{display:block;width:100%;padding:11px 12px;background:#fffdf8;border:1px solid #7b8290;border-radius:9px;min-height:46px;font-size:16px}
.garden-feedback textarea{resize:vertical;min-height:112px}
.garden-feedback .feedback-privacy{font-size:12px;color:#454b59;margin:12px 0 20px}
.garden-feedback .feedback-primary{width:100%;background:#efa482;border:1px solid #995b40;border-radius:10px;padding:12px 16px;font-weight:650;min-height:48px}
.garden-feedback .feedback-primary:hover{background:#f1b397}
.garden-feedback .feedback-error{color:#8c353c;font-size:13px}
.garden-feedback .feedback-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
@media(max-width:540px){.feedback-dialog-inner{padding:26px 22px}.feedback-rating{margin-top:16px;padding-inline:8px}.feedback-rating-actions{gap:8px}.feedback-rating-actions>span{width:100%;text-align:center}.feedback-dialog::backdrop{backdrop-filter:none}}
.feedback-thumb-icon{display:block;width:21px;height:21px;background:currentColor;mask:url('/_assets/shared/feedback-thumb.ab972345efb7b0f07584.svg') center/contain no-repeat;-webkit-mask:url('/_assets/shared/feedback-thumb.ab972345efb7b0f07584.svg') center/contain no-repeat}.feedback-thumb-down{transform:rotate(180deg)}
garden-rating{display:block;width:100%;grid-column:1/-1}garden-feedback-link{display:inline-block}

/* One quiet footer row: feedback on the left, music credits on the right. */
.game-frame > footer.feedback-game-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 20px;margin-top:12px;padding:8px 0}
.feedback-game-footer > garden-rating{flex:1 1 330px;width:auto;min-width:0}
.feedback-game-footer .feedback-rating{max-width:none;margin:0;padding:0;border:0}
.feedback-game-footer .feedback-rating-actions{justify-content:flex-start;gap:8px}
.feedback-game-footer .feedback-rating-actions>span{width:auto;text-align:left;white-space:nowrap}
.feedback-game-footer .feedback-rating-note{text-align:left;min-height:0;margin:3px 0 0}
.feedback-game-footer .feedback-rating-note:empty{display:none}
.feedback-game-footer > .music-credit{margin-left:auto}
.feedback-game-footer:not(:has(> .music-credit)) .feedback-rating-actions{justify-content:center}
.feedback-game-footer:not(:has(> .music-credit)) .feedback-rating-note{text-align:center}
@media(max-width:380px){.feedback-game-footer .feedback-rating-actions{gap:5px}.feedback-game-footer .feedback-text-button{padding-inline:5px}.feedback-game-footer .feedback-rating-actions>span{margin-right:0}}

/* Phones use two intentional rows, sharing the footer grid across the Elm
   feedback slot. Preserve DOM/focus order and leave the modal untouched. */
@media(max-width:700px) {
  .game-frame.game-frame > footer.feedback-game-footer {
    display:grid;
    grid-template-columns:minmax(0,1fr) 44px 44px;
    align-items:center;
    gap:0 8px;
    margin-top:6px;
    padding:4px 0;
    border-top:1px solid #d7d4cd;
  }
  .feedback-game-footer > garden-rating,
  .feedback-game-footer .garden-feedback-host,
  .feedback-game-footer .garden-feedback,
  .feedback-game-footer .feedback-rating,
  .feedback-game-footer .feedback-rating-actions { display:contents; }
  .feedback-game-footer .feedback-rating-actions > span {
    grid-column:1;grid-row:1;margin:0;white-space:normal;
    color:#252a39;font:600 13px/1.4 system-ui,sans-serif;
  }
  .feedback-game-footer .feedback-thumb { grid-row:1;width:44px;height:44px; }
  .feedback-game-footer .feedback-thumb:nth-of-type(1) { grid-column:2; }
  .feedback-game-footer .feedback-thumb:nth-of-type(2) { grid-column:3; }
  .feedback-game-footer .feedback-text-button {
    grid-column:1;grid-row:2;justify-self:start;
    min-height:44px;padding:8px 0;
    font:550 12px/1.4 system-ui,sans-serif;
  }
  .feedback-game-footer > .music-credit {
    grid-column:2 / 4;grid-row:2;justify-self:end;margin:0;min-width:0;
  }
  .game-frame.game-frame > footer.feedback-game-footer .credit-link {
    display:inline-flex;align-items:center;justify-content:flex-end;
    min-height:44px;padding:8px 0;color:#454b59;
    font:550 12px/1.4 system-ui,sans-serif;
    text-underline-offset:4px;
  }
  .feedback-game-footer .credit-provider { display:none; }
  .feedback-game-footer .feedback-rating-note {
    grid-column:1 / -1;grid-row:3;margin:0;padding:2px 0 4px;
    font:500 12px/1.5 system-ui,sans-serif;
  }
}

.feedback-link-compact{display:none}
.feedback-message-icon{display:none;width:21px;height:21px;background:currentColor;mask:url('/_assets/shared/feedback-message.b581e29f11e70427a7ff.svg') center/contain no-repeat;-webkit-mask:url('/_assets/shared/feedback-message.b581e29f11e70427a7ff.svg') center/contain no-repeat}

/* Desktop ratings are 70% of the phone controls; keep mobile touch targets intact. */
@media (min-width:701px) {
  .garden-feedback .feedback-thumb {
    width:30.8px;
    height:30.8px;
    min-width:30.8px;
    min-height:30.8px;
    padding:5.6px;
    border-radius:8.4px;
  }
  .garden-feedback .feedback-thumb-icon { width:14.7px;height:14.7px; }
}
