/* Campaign layer. Game presentation and behavior live in their own files. */
.hero .hero-grid { grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: 40px; align-items: center; }
.hero .hero-number { font-size: clamp(38px, 5.55vw, 76px); }
.hero-copy { min-width: 0; }
.hero-world { min-width: 0; display: grid; gap: 20px; }
.tutoring-scene { margin: 0; border: 3px solid var(--navy); background: var(--sky); box-shadow: 5px 5px 0 var(--navy); }
.tutoring-scene > img { display: block; width: 100%; height: auto; }
.scene-label { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--navy); color: white; font: 8px/1.6 var(--f-display); }
.tutoring-scene figcaption { background: white; border-top: 3px solid var(--navy); text-align: center; padding: 7px 12px; font: 21px/1.2 var(--f-score); }
.donation-box { padding: 22px; background: var(--cream); color: var(--navy); border: 3px solid var(--navy); box-shadow: 6px 6px 0 var(--navy); text-align: center; }
.donation-box .eyebrow { display: flex; gap: 10px; justify-content: center; align-items: center; margin: 0 0 10px; color: var(--navy); font-size: 10px; }
.donation-box h2 { font: 31px/1.1 var(--f-score); text-wrap: balance; }
.campaign-progress { margin-top: 16px; gap: 3px; padding: 3px; }
.campaign-progress i { height: 15px; background: var(--cream); border-color: var(--navy); }
.campaign-progress:empty { height: 27px; background: repeating-linear-gradient(90deg, transparent 0 calc(4% - 3px), var(--navy) calc(4% - 3px) 4%), linear-gradient(90deg, var(--yellow) 27.4%, var(--cream) 27.4%); }
.donation-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 9px; font: 18px/1.2 var(--f-score); letter-spacing: .04em; }
.donation-meta .tag { font-size: 13px; }
.gift-amounts { min-width: 0; padding: 0; margin: 18px 0; border: 0; text-align: left; }
.gift-amounts legend { padding: 0; margin-bottom: 8px; font: 16px/1.3 var(--f-score); text-transform: uppercase; letter-spacing: .05em; }
.amount-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.amount-options button { min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 62px; padding: 8px 3px; border: 2px solid var(--navy); background: white; font: 27px/1 var(--f-score); box-shadow: 2px 2px 0 var(--navy); }
.amount-options button span { font: 10px/1.2 var(--f-body); }
.amount-options button[aria-pressed="true"] { background: var(--yellow); box-shadow: inset 0 -4px 0 #E8AF00, 2px 2px 0 var(--navy); }
.amount-options button:hover { background: var(--sky); }
.amount-options button[aria-pressed="true"]:hover { background: var(--yellow); }
.custom-gift { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; }
.custom-gift > span { display: flex; align-items: center; gap: 8px; width: 58%; background: white; border: 2px solid var(--navy); padding-left: 10px; }
.custom-gift input { width: 100%; min-width: 0; border: 0; border-radius: 0; background: transparent; padding: 9px 8px 9px 0; font-size: 12px; min-height: 42px; }
.donation-box .btn-full { min-height: 54px; }
.donation-caption { margin: 13px 0 6px; font-size: 12px; font-weight: bold; }
.donation-box .fine { font-size: 10px; line-height: 1.6; }
.coin-player { width: 84px; flex: 0 0 84px; height: auto; }
.quest-actions { flex-wrap: wrap; align-items: center; }
.closing-gift-layout { display: grid; grid-template-columns: 160px minmax(0, 500px); justify-content: center; align-items: center; gap: 28px; margin-top: 34px; }
.closing-player { display: block; width: 160px; height: auto; }
.dream .dream-copy { max-width: 980px; }
.dream-copy .closing-donation p { max-width: none; }
.dream-copy .closing-donation .eyebrow { font-size: 8px; }
.dream-copy .closing-donation .donation-caption { font-size: 12px; margin: 13px 0 6px; }
.dream-copy .closing-donation .fine { font-size: 10px; margin: 0; }
#give-dialog .gift-amounts { margin: 24px 0; }
@media (max-width: 900px) {
  .hero .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-copy { max-width: 660px; }
  .hero .hero-number { font-size: clamp(40px, 10vw, 80px); }
  .hero-world { width: 100%; max-width: 660px; justify-self: center; }
  .hero .hero-sub, .hero .hero-bridge { max-width: 50ch; }
}
@media (max-width: 540px) {
  .hero { padding-block: 36px 48px; }
  .hero .hero-number { font-size: clamp(35px, 10vw, 54px); text-shadow: 3px 3px 0 var(--yellow); }
  .hero .actions { gap: 12px; }
  .hero .actions .btn { width: 100%; }
  .scene-label { font-size: 6px; gap: 8px; padding: 8px; }
  .donation-box { padding: 18px 14px; }
  .donation-box h2 { font-size: 28px; }
  .amount-options { gap: 5px; }
  .amount-options button { font-size: 24px; }
  .amount-options button span { font-size: 8px; }
  .closing-gift-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .closing-player { width: 100px; justify-self: center; }
  .closing-donation { width: 100%; min-width: 0; }
  .campaign-progress { gap: 2px; }
}
