:root {
  --blue: #0079c1;
  --navy: #2b3990;
  --deep: #0568ae;
  --yellow: #ffc425;
  --gold-ink: #ae6d00;
  --foam: #f5fbff;
  --tint: #e1f0fa;
  --line: #b8daf2;
  --muted: #536093;
  color-scheme: light;
  font-family: Poppins, Arial, Helvetica, sans-serif;
  color: var(--navy);
  background: var(--foam);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; min-height: 100svh; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: wait; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 100; left: 16px; top: -80px; padding: 12px 20px; color: var(--navy); background: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.preview-banner { padding: 9px 16px; background: #fff0ba; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.site-header { position: relative; background: linear-gradient(112deg,var(--blue),var(--deep) 46%,var(--navy)); }
.header-content { position: relative; max-width: 1540px; min-height: 148px; margin: auto; padding: 18px 48px 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; width: 235px; flex: 0 0 auto; }
.brand img { display: block; width: 100%; height: auto; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 46px; padding: 10px 17px; border-radius: 12px; border: 1px solid rgba(255,255,255,.78); background: rgba(255,255,255,.02); color: white; font-size: 14px; font-weight: 500; transition: background .18s ease; }
.header-button:hover { background: rgba(255,255,255,.15); }
.header-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.header-wave { position: absolute; width: 100%; height: 35px; bottom: -1px; left: 0; display: block; fill: var(--foam); }

.page-content { width: calc(100% - 80px); max-width: 1380px; margin: 0 auto; padding: 23px 0 22px; }
.hero { text-align: center; }
h1 { font-size: clamp(25px,2.85vw,42px); font-weight: 700; line-height: 1.25; letter-spacing: -.035em; }
h1 span { display: inline-block; }
.total-block { display: flex; flex-direction: column; align-items: center; margin-top: 4px; }
.total-number { display: inline-block; color: var(--blue); font-weight: 800; font-size: clamp(108px,11.7vw,174px); line-height: 1.1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.total-label { margin-top: -3px; font-size: clamp(22px,2.2vw,31px); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
.rating { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: clamp(18px,2.1vw,29px); line-height: 1.4; }
.rating strong { font-weight: 700; font-variant-numeric: tabular-nums; }
.rating-star { width: 34px; height: 34px; fill: var(--yellow); flex: 0 0 auto; }
.rating-label { font-weight: 400; }
.approximate { color: var(--muted); font-size: .62em; }
.info-button { display: inline-flex; align-items: center; justify-content: center; margin-left: 1px; border: 1px solid #8795bd; border-radius: 50%; color: var(--muted); background: transparent; width: 18px; height: 18px; font-size: 11px; font-family: Arial, sans-serif; font-weight: 700; }
.rating-explanation { max-width: 640px; margin: 10px auto 0; font-size: 12px; line-height: 1.6; color: var(--muted); }

.milestone { max-width: 1100px; width: 88%; padding: 17px 34px 16px; margin: 25px auto 0; border-radius: 22px; background: linear-gradient(105deg,#e1f3fc,#dceffa); }
.milestone h2 { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: .25em; font-size: clamp(20px,2.4vw,34px); line-height: 1.3; letter-spacing: -.025em; font-weight: 700; }
#remaining-count { color: var(--gold-ink); font-size: 1.48em; font-weight: 800; }
.progress-track { position: relative; height: 21px; border: 2px solid white; background: #c5e4f5; border-radius: 30px; margin: 12px 0 6px; overflow: hidden; }
.progress-fill { position: relative; height: 100%; width: 0%; min-width: 0; border-radius: inherit; background: linear-gradient(90deg,#087ac6,#006cba); transition: width .65s cubic-bezier(.2,.7,.3,1); }
.progress-marker { position: absolute; width: 21px; height: 21px; top: 50%; right: 0; border: 2px solid white; border-radius: 50%; background: var(--yellow); transform: translate(50%,-50%); box-shadow: 0 0 0 7px rgba(255,255,255,.45); opacity: 0; }
.has-data .progress-marker { opacity: 1; }
.milestone.achieved .progress-marker { transform: translate(0,-50%); right: -1px; }
.progress-labels { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: clamp(13px,1.45vw,19px); font-weight: 600; line-height: 1.6; }

.locations-section { margin-top: 20px; }
.locations-section h2 { text-align: center; font-size: clamp(20px,2.1vw,28px); letter-spacing: -.025em; line-height: 1.3; font-weight: 700; }
.locations-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 18px; margin-top: 17px; }
.location-card { padding: 15px 10px 14px; border: 1.5px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.88); text-align: center; transition: background .3s ease,border-color .3s ease; }
.location-card h3 { color: var(--blue); font-size: clamp(16px,1.7vw,23px); font-weight: 700; line-height: 1.35; letter-spacing: -.02em; }
.location-card p { color: var(--navy); font-size: clamp(27px,3.25vw,46px); font-weight: 800; line-height: 1.2; letter-spacing: -.035em; margin-top: 1px; font-variant-numeric: tabular-nums; }
.location-card.updated { background: #fff6d6; border-color: var(--yellow); }
.total-number.updated { animation: count-change .45s ease; }
@keyframes count-change { 50% { transform: scale(1.025); } }
.page-footer { padding: 19px 0 0; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.6; }
.connection-message { margin-top: 4px; color: #865400; }
.footer-actions { display: flex; justify-content: center; gap: 16px; }
.text-button { padding: 4px 2px; border: 0; background: transparent; color: var(--navy); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.no-script { text-align: center; margin: 20px; }

.share-dialog { width: min(440px,calc(100vw - 32px)); border: 0; border-radius: 24px; padding: 34px 30px 25px; color: var(--navy); background: var(--foam); box-shadow: 0 16px 90px #13275a50; text-align: center; }
.share-dialog::backdrop { background: #10245466; backdrop-filter: blur(4px); }
.share-dialog h2 { font-size: 24px; letter-spacing: -.025em; }
.share-dialog > p { font-size: 13px; margin-top: 10px; line-height: 1.6; }
.dialog-close,.celebration-close { position: absolute; top: 11px; right: 13px; width: 32px; height: 32px; border: 0; background: transparent; color: inherit; font-size: 25px; line-height: 1; border-radius: 50%; }
.share-qr { display: block; width: 224px; height: 224px; max-width: 100%; margin: 18px auto 9px; background: white; border-radius: 9px; }
.share-url { display: block; color: var(--blue); font-size: 14px; overflow-wrap: anywhere; text-underline-offset: 4px; }
.primary-button { margin-top: 22px; width: 100%; border: 0; border-radius: 12px; padding: 12px 20px; background: var(--blue); color: white; font-size: 14px; font-weight: 600; }
.primary-button:hover { background: var(--deep); }
.share-dialog .copy-status { min-height: 18px; font-size: 12px; }
.toast { position: fixed; z-index: 120; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 13px 20px; width: max-content; max-width: calc(100vw - 32px); border-radius: 12px; background: var(--navy); color: white; font-size: 13px; box-shadow: 0 6px 28px #14285d33; text-align: center; }
.celebration-message { position: fixed; z-index: 95; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(620px,calc(100vw - 36px)); padding: 40px 28px; border: 3px solid var(--yellow); border-radius: 24px; background: linear-gradient(135deg,var(--blue),var(--navy)); color: white; text-align: center; box-shadow: 0 16px 70px #13275a55; }
.celebration-eyebrow { color: var(--yellow); font-size: 23px; font-weight: 700; }
.celebration-title { margin: 8px 0 10px; font-size: clamp(24px,4vw,43px); font-weight: 800; line-height: 1.2; letter-spacing: -.025em; }
.celebration-message > p:last-child { font-size: 15px; }
#confetti-canvas { position: fixed; z-index: 100; inset: 0; width: 100%; height: 100%; pointer-events: none; }

@media (min-width: 1500px) and (min-height: 900px) {
  .page-content { padding-top: 35px; }
  .total-number { font-size: 190px; }
  .milestone { margin-top: 30px; padding: 21px 42px 20px; }
  .locations-section { margin-top: 30px; }
  .location-card { padding: 23px 10px; }
}

@media (min-width: 681px) and (max-height: 800px) {
  .header-content { min-height: 110px; padding-top: 8px; padding-bottom: 24px; }
  .brand { width: 190px; }
  .page-content { padding-top: 15px; }
  h1 { font-size: clamp(25px,2.3vw,30px); }
  .total-number { font-size: clamp(100px,9.4vw,132px); line-height: 1.05; }
  .total-label { font-size: 22px; }
  .rating { font-size: 21px; margin-top: 7px; }
  .rating-star { width: 27px; height: 27px; }
  .milestone { margin-top: 16px; padding-top: 10px; padding-bottom: 8px; }
  .milestone h2 { font-size: 25px; }
  .progress-track { height: 18px; margin-top: 8px; margin-bottom: 5px; }
  .progress-labels { font-size: 16px; line-height: 1.5; }
  .locations-section { margin-top: 14px; }
  .locations-section h2 { font-size: 24px; }
  .locations-grid { margin-top: 12px; }
  .location-card { padding-top: 8px; padding-bottom: 8px; }
  .location-card h3 { font-size: 19px; }
  .location-card p { font-size: 36px; }
  .page-footer { padding-top: 12px; }
}

@media (max-width: 900px) and (min-width: 681px) {
  .header-content { padding-right: 28px; padding-left: 28px; }
  .page-content { width: calc(100% - 48px); }
  .milestone { width: 100%; }
  .locations-grid { gap: 10px; }
  .location-card { padding-inline: 5px; }
}

@media (max-width: 680px) {
  .header-content { min-height: 113px; justify-content: center; padding: 10px 60px 23px; }
  .brand { width: 185px; max-width: 100%; }
  .header-actions { position: absolute; top: 29px; right: 13px; }
  .header-button { width: 39px; height: 39px; min-height: 39px; padding: 8px; border-color: transparent; }
  .button-label,.fullscreen-button { display: none; }
  .header-wave { height: 22px; }
  .page-content { width: calc(100% - 30px); max-width: 480px; padding-top: 16px; padding-bottom: 18px; }
  h1 { max-width: 355px; margin: auto; font-size: clamp(23px,6.1vw,31px); line-height: 1.1; letter-spacing: -.025em; }
  h1 span { display: block; }
  .total-block { margin-top: 8px; }
  .total-number { font-size: clamp(85px,24.4vw,120px); line-height: 1.05; }
  .total-label { margin-top: -1px; font-size: 22px; line-height: 1.2; }
  .rating { gap: 5px; font-size: clamp(16px,4.9vw,22px); margin-top: 10px; }
  .rating-star { width: 26px; height: 26px; }
  .info-button { width: 16px; height: 16px; font-size: 10px; }
  .rating-explanation { padding-inline: 7px; font-size: 11px; }
  .milestone { width: 100%; margin-top: 19px; padding: 11px 13px 10px; border-radius: 16px; }
  .milestone h2 { font-size: clamp(16px,4.6vw,21px); line-height: 1.35; column-gap: .2em; }
  #remaining-count { font-size: 1.35em; }
  .progress-track { height: 18px; margin-top: 9px; margin-bottom: 5px; }
  .progress-marker { width: 18px; height: 18px; box-shadow: 0 0 0 5px #ffffff70; }
  .progress-labels { justify-content: center; font-size: 13px; line-height: 1.4; }
  #progress-goal { display: none; }
  .locations-section { margin-top: 18px; }
  .locations-section h2 { font-size: 19px; line-height: 1.3; }
  .locations-grid { grid-template-columns: 1fr; gap: 7px; margin-top: 12px; }
  .location-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-width: 1px; border-radius: 10px; padding: 6px 13px; text-align: left; }
  .location-card h3 { font-size: 17px; line-height: 1.2; }
  .location-card p { margin: 0; font-size: 23px; line-height: 1.2; }
  .page-footer { padding-top: 18px; font-size: 10px; }
  .text-button { font-size: 11px; }
}

@media (max-width: 360px) {
  .header-content { padding-inline: 52px; }
  .brand { width: 170px; }
  .rating { font-size: 16px; gap: 4px; }
  .rating-star { width: 23px; height: 23px; }
  .rating-label { letter-spacing: -.03em; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  #confetti-canvas { display: none; }
}
