@import url('/background-art.css');
/* Center the complete fortune-to-sandbox-notice group in the viewport.
   Content remains in flow and scrolls normally on shorter screens. */
body { --homepage-header-height: 96px; }
#character-loading{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:var(--gold);font:12px/1.5 system-ui}
#character-loading[hidden]{display:none}
.character-spinner{width:30px;height:30px;border:2px solid #b1843133;border-top-color:var(--gold);border-radius:50%;animation:potato-loading .9s linear infinite}
#character-loading[data-stopped] .character-spinner{animation:none;border-top-color:transparent}
.character-stage[data-fallback="true"] #poster{transform-origin:50% 100%;animation:potato-breathe 3s ease-in-out infinite}
@keyframes potato-breathe{0%,100%{transform:translateX(-50%) scaleY(1)}50%{transform:translateX(-50%) scaleY(1.008)}}
@media(prefers-reduced-motion:reduce){.character-stage[data-fallback="true"] #poster{animation:none}}
@keyframes potato-loading{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.character-spinner{animation:none}}
.homepage-header {
  height: var(--homepage-header-height);
  margin-bottom: 0;
}
.homepage-header .brand {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.1;
}
body > main {
  min-height: calc(100svh - 2 * var(--homepage-header-height));
  display: grid;
  align-items: center;
  padding-block: 24px;
}
/* Separate Fortune from the amount without shifting the character or bill. */
.counter-block .eyebrow{transform:translateY(-6px)}
@media (max-width: 600px) {
  .counter-block .total { font-size: clamp(36px, 11.5vw, 68px); }
  .homepage-header {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    grid-template-rows: 1fr;
    padding: 16px 0 0;
  }
  .homepage-header .brand { font-size: clamp(26px, 7vw, 34px); }
  body:has(.homepage-header) #theme-toggle { top: 36px; }
  body > main { padding-block: 24px; }
}
#checkout label[for="author"],#checkout label[for="receipt-email"]{display:block;text-align:left;font:600 13px/1.4 system-ui,sans-serif;margin:16px 0 6px;}
#checkout #author,#checkout #receipt-email{display:block;box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;border:1px solid #68765c80;border-radius:6px;background:transparent;color:inherit;font:16px/1.4 system-ui,sans-serif;}
#checkout .receipt-email-field{margin-bottom:20px;}
#checkout #receipt-email-help{font:12px/1.5 system-ui,sans-serif;margin:6px 0 0;opacity:.8;}
#checkout .wallets{margin-top:20px;}
#checkout .checkout-author{margin:10px 0 18px;font:13px/1.5 system-ui,sans-serif;}
#checkout .checkout-author summary{cursor:pointer;min-height:32px;}
#about{width:min(480px,calc(100% - 32px));max-height:calc(100svh - 32px);box-sizing:border-box;padding:32px;overscroll-behavior:contain}
#about h1{font-size:clamp(26px,5vw,34px);line-height:1.15;margin:12px 28px 22px 0}
#about>p:not(.eyebrow){font:16px/1.6 Georgia,'Times New Roman',serif;margin:16px 0}
#about #about-title:focus{outline:none}
#about>p.about-signoff{font-weight:bold}
#about .bill{display:flex;margin:26px auto 0;font:16px Georgia,'Times New Roman',serif}
#about>p.about-test-notice{font:11px/1.5 system-ui,sans-serif;opacity:.7;text-align:center;margin:12px 0 0}
#about .close{top:10px;right:10px;width:44px;height:44px;border-radius:50%;padding:0}
#about .close:focus-visible{outline:2px solid var(--gold);outline-offset:-6px}
@media(max-width:380px){#about{padding:24px}#about>p:not(.eyebrow){font-size:15px}}
