/* THESIS: Make a shared download goal an invitation to pass Ayah Player on.
   OWN-WORLD: Existing Player greens, white canvas, Sora and flat controls.
   STORY: See the goal and verified progress, then download or share.
   FIRST VIEWPORT: A two-column band immediately after the product hero;
   invitation at left, count and wide progress at right, actions beneath.
   FORM: A local extension of the established Player page, not a new identity. */
.download-goal {
  width: min(calc(100% - 64px), 1184px);
  margin: 80px auto;
  padding: 44px 48px 24px;
  border-radius: 16px;
  background: var(--player-field);
  color: var(--ink);
  scroll-margin-top: 112px;
}
.download-goal [hidden] { display: none; }
.download-goal-main { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.download-goal-kicker { margin: 0 0 14px; color: var(--ink); font-size: 14px; font-weight: 600; }
.download-goal h2 { margin: 0; max-width: 17ch; font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1.2; letter-spacing: -0.03em; text-wrap: balance; }
.download-goal-copy { max-width: 48ch; margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.download-goal-count { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.download-goal-count strong { font-size: clamp(42px, 5.5vw, 68px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.download-goal-count span { color: var(--muted); font-size: 14px; }
.download-goal-track { height: 16px; border-radius: 8px; background: var(--paper); overflow: hidden; }
.download-goal-fill { height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; border-radius: inherit; background: var(--ink); transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1); }
.download-goal-scale { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.download-goal-status { margin: 16px 0 0; min-height: 3.5em; font-size: 13px; color: var(--muted); }
.download-goal-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.download-goal .store-actions { margin: 0; }
.download-goal .store-actions a { min-height: 44px; display: inline-flex; align-items: center; }
.download-goal-share { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 16px; background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 8px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.download-goal-share:hover { background: var(--paper); }
.download-goal-share:disabled { cursor: wait; opacity: 0.65; }
.download-goal a:focus-visible, .download-goal button:focus-visible, .download-goal summary:focus-visible, .download-goal input:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.download-goal-share-status { margin: 8px 0 0; font-size: 13px; }
.download-goal-link { width: 100%; max-width: 420px; margin-top: 8px; padding: 12px; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 8px; }
.download-goal-details { margin-top: 28px; padding-top: 8px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted); }
.download-goal-details summary { width: fit-content; padding: 10px 0; cursor: pointer; min-height: 44px; }
.download-goal-details p { max-width: 90ch; margin: 4px 0 12px; }
.download-goal-details a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .download-goal { width: min(calc(100% - 32px), 1184px); padding: 28px 24px 16px; margin: 48px auto; }
  .download-goal-main { grid-template-columns: 1fr; gap: 28px; }
  .download-goal h2 { max-width: 22ch; }
  .download-goal-count strong { font-size: 48px; }
  .download-goal-status { min-height: 0; }
  .download-goal-actions { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .download-goal-fill { transition: none !important; }
  html { scroll-behavior: auto; }
}
@media (forced-colors: active) {
  .download-goal-track { border: 1px solid CanvasText; }
  .download-goal-fill { background: Highlight; forced-color-adjust: none; }
}
