/* Summary page: all krathongs on one stretch of water, wishes pop up one at a time, totals, proof below. */
body.sum { margin: 0; background: var(--white); color: var(--ink); }
.sum main { max-width: 1100px; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 16px 40px; }
.sum .hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sum .eyebrow { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.sum h1 { margin: 6px 0 0; font-family: var(--display); font-size: clamp(34px, 8vw, 56px); font-weight: 700; line-height: 1.1; }
.sum .lead { margin: 8px 0 0; max-width: 32em; font-size: 15px; line-height: 1.7; color: var(--muted); }
.sum .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: min(640px, 100%); margin-top: 18px; }
.sum .stat { padding: 12px 8px; border-radius: 18px; background: var(--blue-pale); display: flex; flex-direction: column; gap: 2px; }
.sum .stat b { font-family: var(--display); font-size: clamp(22px, 6vw, 34px); font-weight: 700; line-height: 1.15; }
.sum .stat span { font-size: 12px; font-weight: 700; color: var(--muted); }

.sum .statnote { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 40em; }
.sum .statnote:empty { display: none; }

/* the sea reuses the float scene's art and drifting krathongs, as a normal block instead of a full-page overlay */
.lscene.sea { position: relative; inset: auto; z-index: auto; overflow: hidden; background: none; display: block; padding: 0; margin: 10px auto 0; width: min(760px, 100%, max(420px, calc((100dvh - 150px) * 1.2))); }
/* the empty top of the sky is cropped (10% of the width = 11% of the picture's height) so the water is what you see first */
.sea .ls-art { width: 100%; min-width: 0; margin: -10% 0 0; }
.sea .ls-o { overflow: visible; }

/* a wish bubble rides on its krathong */
.sea .ls-o.talk { z-index: 999 !important; }
.sea .bub {
  position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); width: max-content; max-width: min(15em, 62vw);
  padding: 8px 14px; border-radius: 16px; background: var(--white); border: 1.5px solid var(--orange); box-shadow: 0 6px 18px rgba(46, 53, 80, .15);
  font-family: var(--display); font-size: clamp(13px, 2.4vw, 17px); font-weight: 600; line-height: 1.35; word-break: break-word; text-align: center;
  animation: sumbub 5.6s ease both; pointer-events: none;
}
.sea .bub::after { content: ''; position: absolute; left: 50%; top: 100%; width: 10px; height: 10px; margin: -6px 0 0 -5px; background: var(--white); border: solid var(--orange); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
@keyframes sumbub { 0% { opacity: 0; transform: translateX(-50%) translateY(8px) scale(.9); } 8%, 88% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } 100% { opacity: 0; transform: translateX(-50%) translateY(-4px) scale(.96); } }
.sea .ls-o .bub { opacity: 1; }

.sum .scrollhint { margin: 14px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.sum .proof { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--blue-line); text-align: center; }
.sum .proof h2 { margin: 0; font-family: var(--display); font-size: clamp(24px, 5vw, 34px); font-weight: 700; }
.sum .proofgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; margin-top: 22px; text-align: left; }
.sum .proofgrid figure { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--blue-line); background: var(--white); }
.sum .proofgrid img { display: block; width: 100%; height: auto; }
.sum .proofgrid figcaption { padding: 10px 14px 14px; font-size: 14px; line-height: 1.6; }
.sum .proofgrid figcaption small { display: block; color: var(--muted); }
.sum .proofempty { grid-column: 1 / -1; padding: 28px 16px; border-radius: 18px; background: var(--blue-pale); text-align: center; color: var(--muted); font-size: 14px; }
.sum .foot { margin-top: 48px; text-align: center; font-size: 12px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .lscene.sea .ls-fleet { display: block; }
  .sea .bub { animation: none !important; }
}
