:root {
  color-scheme: light;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  color: #164e63;
  background: #f8fffe;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --cyan: #22d3ee;
  --teal: #0e7490;
  --slate: #94a3b8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 42px 20px 100px;
  background: linear-gradient(160deg, #06b6d4 0%, #22d3ee 42%, #67e8f9 78%, #a5f3fc 100%);
  color: white;
  text-align: center;
}
.hero-content { position: relative; z-index: 1; display: flex; max-width: 860px; margin: auto; align-items: center; flex-direction: column; }
.bubble { position: absolute; border-radius: 50%; }
.bubble-one { top: 32px; left: 6%; width: 64px; height: 64px; background: rgb(255 255 255 / 10%); filter: blur(4px); }
.bubble-two { top: 64px; left: 15%; width: 32px; height: 32px; background: rgb(255 255 255 / 15%); }
.bubble-three { top: 20px; right: 8%; width: 80px; height: 80px; background: rgb(255 255 255 / 10%); filter: blur(4px); }
.bubble-four { top: 80px; right: 20%; width: 40px; height: 40px; background: rgb(255 255 255 / 15%); }
.bubble-five { bottom: 80px; left: 30%; width: 24px; height: 24px; background: rgb(255 255 255 / 20%); }
.project-badge { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 25px; padding: 9px 16px; border: 1px solid rgb(255 255 255 / 58%); border-radius: 999px; background: rgb(255 255 255 / 22%); font-size: 13px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.live-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: white; }
.live-dot::after { position: absolute; inset: -4px; border: 2px solid white; border-radius: 50%; content: ""; animation: pulse 1.7s infinite; }
@keyframes pulse { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
.hero-mark { display: grid; width: min(250px, 75vw); aspect-ratio: 1; place-items: center; margin-bottom: 23px; padding: 15px; border: 5px solid white; border-radius: 50%; background: white; box-shadow: 0 0 0 8px rgb(255 255 255 / 35%), 0 12px 32px rgb(8 145 178 / 25%); }
.hero-mark img { display: block; width: 100%; height: 100%; object-fit: contain; transform: scale(1.2); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 0; font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; font-size: clamp(42px, 8vw, 76px); font-weight: 1000; letter-spacing: -.035em; line-height: .98; text-shadow: 0 3px 0 rgb(8 145 178 / 25%); }
.mobile-break { display: none; }
.hero-copy { max-width: 560px; margin: 20px 0 0; color: rgb(255 255 255 / 94%); font-size: clamp(16px, 2.4vw, 19px); font-weight: 600; line-height: 1.55; }
.hero-copy strong { text-decoration: underline; text-decoration-color: rgb(255 255 255 / 65%); text-underline-offset: 3px; }
.sound-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 9px 15px; border: 1px solid rgb(255 255 255 / 60%); border-radius: 999px; background: rgb(255 255 255 / 20%); color: white; font-size: 13px; font-weight: 800; cursor: pointer; transition: background .2s ease; }
.sound-toggle:hover, .sound-toggle[aria-pressed="true"] { background: rgb(255 255 255 / 38%); }
.sound-toggle svg { width: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.hero-wave { position: absolute; right: 0; bottom: 0; left: 0; display: block; width: 100%; height: 50px; }

.buckets-section, .mission-section { padding: 65px 20px 85px; background: #fffbf0; }
.section-wrap, .score-wrap { width: min(100%, 1100px); margin: 0 auto; }
.section-heading, .score-heading { margin-bottom: 36px; text-align: center; }
.section-heading h2, .score-heading h2 { margin-bottom: 12px; color: #0891b2; font-size: clamp(27px, 4vw, 40px); font-weight: 1000; letter-spacing: .015em; }
.heading-rule { display: block; width: 70px; height: 4px; margin: 0 auto 16px; border-radius: 99px; background: #22d3ee; }
.lead { margin-bottom: 3px; color: #334155; font-size: 20px; font-weight: 800; }
.section-hint { max-width: 430px; margin: 5px auto 0; color: #94a3b8; font-size: 14px; line-height: 1.55; }
.bucket-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px; }
.bucket-card { display: flex; min-width: 0; min-height: 390px; align-items: center; flex-direction: column; padding: 22px 17px 18px; overflow: hidden; border: 1px solid #e8eef4; border-radius: 28px; background: white; box-shadow: 0 7px 13px rgb(15 23 42 / 10%); cursor: pointer; transition: transform .24s ease, box-shadow .24s ease; }
.bucket-card:hover { transform: translateY(-7px); box-shadow: 0 18px 28px rgb(15 23 42 / 14%); }
.bucket-card:focus-visible, .sound-toggle:focus-visible, .creator-invite:focus-visible, .footer-brand:focus-visible { outline: 4px solid #0891b2; outline-offset: 4px; }
.card-accent { width: 100%; height: 8px; margin-bottom: 24px; border-radius: 99px; background: var(--bucket); }
.bucket-art { display: grid; width: 130px; height: 130px; place-items: center; margin-bottom: 16px; border: 7px solid var(--ring); border-radius: 50%; background: #f8fafc; transition: transform .25s ease; }
.bucket-card:hover .bucket-art { transform: scale(1.07); }
.bucket-art svg { width: 82px; height: 82px; }
.bucket-name { color: var(--dark); font-size: 23px; font-weight: 1000; letter-spacing: .015em; }
.bucket-weight { margin-top: 5px; color: var(--slate); font-size: 15px; font-weight: 700; }
.piece-pill { margin-top: 14px; padding: 9px 18px; border-radius: 99px; background: var(--pale); color: var(--dark); font-size: 17px; font-weight: 1000; }
.bucket-detail { max-width: 200px; margin-top: 11px; color: #64748b; font-size: 12px; line-height: 1.45; }
.tap-hint { margin-top: auto; padding-top: 10px; color: var(--dark); font-size: 13px; font-weight: 800; opacity: 0; transition: opacity .2s; }
.bucket-card:hover .tap-hint, .bucket-card:focus-visible .tap-hint { opacity: 1; }
.bucket-quarter { --bucket: #34d399; --ring: #6ee7b7; --dark: #047857; --pale: #d1fae5; }
.bucket-half { --bucket: #38bdf8; --ring: #7dd3fc; --dark: #0369a1; --pale: #e0f2fe; }
.bucket-three-quarter { --bucket: #fbbf24; --ring: #fcd34d; --dark: #b45309; --pale: #fef3c7; }
.bucket-full { --bucket: #f87171; --ring: #fca5a5; --dark: #b91c1c; --pale: #fee2e2; }

.scoreboard { position: relative; overflow: hidden; padding: 74px 20px 82px; background: linear-gradient(130deg, #0e7490, #155e75 60%, #0e7490); color: white; }
.scoreboard::before, .scoreboard::after { position: absolute; width: 330px; height: 330px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 50%; background: rgb(255 255 255 / 4%); content: ""; }
.scoreboard::before { top: -155px; right: -65px; }
.scoreboard::after { bottom: -230px; left: -105px; width: 430px; height: 430px; }
.score-wrap { position: relative; z-index: 1; }
.score-heading { margin-bottom: 32px; }
.score-heading h2 { color: white; font-size: clamp(31px, 5vw, 44px); }
.heading-rule-light { background: #22d3ee; }
.score-heading p { margin-bottom: 0; color: #a5f3fc; font-size: clamp(16px, 2.5vw, 21px); line-height: 1.5; }
.score-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; gap: 40px; }
.creator-column { display: flex; justify-content: flex-start; }
.creator-photo-card { width: min(100%, 280px); padding: 16px 16px 28px; border-radius: 16px; background: white; box-shadow: 0 18px 44px rgb(8 47 73 / 24%); color: #0891b2; transform: rotate(-2deg); transition: transform .5s ease; }
.creator-photo-card:hover { transform: rotate(0deg) scale(1.02); }
.creator-photo-frame { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 1; background: #f1f5f9; }
.creator-photo { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.creator-photo-card:hover .creator-photo { transform: scale(1.05); }
.creator-photo-label { position: absolute; bottom: 8px; left: 8px; padding: 3px 8px; border-radius: 6px; background: rgb(8 145 178 / 90%); color: white; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.creator-photo-caption { margin-top: 16px; text-align: center; }
.creator-quote { margin: 0 0 5px; color: #0891b2; font-size: 18px; font-weight: 900; line-height: 1.2; }
.creator-invite { color: #64748b; font-size: 10px; font-weight: 900; letter-spacing: .07em; text-decoration: none; }
.creator-invite:hover { color: #0891b2; text-decoration: underline; text-underline-offset: 3px; }
.score-details { display: flex; min-width: 0; flex-direction: column; gap: 20px; }
.stats-card, .activity-card { border: 1px solid rgb(255 255 255 / 18%); background: rgb(255 255 255 / 10%); backdrop-filter: blur(8px); }
.stats-card { width: 100%; padding: clamp(23px, 4vw, 36px); border-radius: 24px; box-shadow: 0 18px 44px rgb(8 47 73 / 20%); color: white; text-align: left; }
.status-label { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 13px; padding: 6px 11px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 99px; background: rgb(255 255 255 / 10%); color: #a5f3fc; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.status-label i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.stats-caption { display: block; color: white; font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.stats-heading > p { max-width: 460px; margin: 8px 0 0; color: #a5f3fc; font-size: 13px; line-height: 1.5; }
.total-number { margin: 10px 0 -3px; color: #22d3ee; font-size: clamp(58px, 10vw, 90px); font-weight: 1000; letter-spacing: -.05em; line-height: 1; }
.total-label { margin-bottom: 22px; color: #a5f3fc; font-size: 18px; font-weight: 1000; letter-spacing: .18em; }
.stat-pair { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 24px; padding: 16px 12px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 16px; background: rgb(255 255 255 / 10%); }
.stat-pair > div { display: flex; align-items: center; flex-direction: column; }
.stat-pair strong { color: white; font-size: 32px; font-weight: 1000; }
.stat-pair span { margin-top: 2px; color: #a5f3fc; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.stat-pair small { color: #cffafe; font-size: 11px; }
.goal-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: #a5f3fc; font-size: 12px; font-weight: 800; }
.goal-row strong { color: white; white-space: nowrap; }
.progress-track { display: block; width: 100%; height: 10px; overflow: hidden; border: 1px solid rgb(255 255 255 / 12%); border-radius: 99px; background: rgb(255 255 255 / 10%); appearance: none; }
.progress-track::-webkit-progress-bar { border-radius: inherit; background: rgb(255 255 255 / 10%); }
.progress-track::-webkit-progress-value { border-radius: inherit; background: linear-gradient(90deg, #22d3ee, #34d399); transition: width .35s ease; }
.progress-track::-moz-progress-bar { border-radius: inherit; background: linear-gradient(90deg, #22d3ee, #34d399); transition: width .35s ease; }
.local-note { margin: 11px 0 0; color: #a5f3fc; font-size: 11px; line-height: 1.45; }
.activity-card { padding: 20px; border-radius: 20px; }
.activity { text-align: left; }
.activity h3 { margin-bottom: 12px; color: white; font-size: 15px; }
.activity ol { margin: 0; padding: 0; list-style: none; }
.activity li { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid rgb(255 255 255 / 10%); }
.activity li:last-child { border-bottom: 0; }
.activity-avatar { display: grid; width: 37px; height: 37px; flex: 0 0 37px; place-items: center; border-radius: 50%; background: rgb(34 211 238 / 30%); color: #cffafe; font-weight: 900; }
.avatar-blue { background: rgb(56 189 248 / 22%); color: #bae6fd; }
.avatar-gold { background: rgb(251 191 36 / 22%); color: #fde68a; }
.avatar-coral { background: rgb(248 113 113 / 22%); color: #fecaca; }
.activity-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.activity-copy strong { overflow: hidden; color: white; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.activity-copy em { color: #a5f3fc; font-size: 11px; font-style: normal; }
.activity-copy small, .activity-points small { color: rgb(207 250 254 / 70%); font-size: 11px; }
.activity-points { display: flex; flex-direction: column; gap: 3px; margin-left: auto; color: #6ee7b7; font-size: 12px; font-weight: 900; text-align: right; white-space: nowrap; }
.activity-empty { padding: 13px 0; color: #a5f3fc; font-size: 13px; text-align: center; }

.mission-section { padding-top: 80px; }
.mission-intro { max-width: 670px; margin: 0 auto; color: #64748b; font-size: 16px; line-height: 1.65; }
.mission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.mission-card { padding: 27px 23px; border: 1px solid #e8eef4; border-radius: 23px; background: white; box-shadow: 0 7px 13px rgb(15 23 42 / 7%); text-align: center; }
.mission-icon { display: block; margin-bottom: 13px; font-size: 43px; }
.mission-card h3 { margin-bottom: 9px; color: #0e7490; font-size: 18px; }
.mission-card p { margin-bottom: 0; color: #64748b; font-size: 14px; line-height: 1.6; }
.site-footer { padding: 40px 20px 25px; background: #ecfeff; color: #0e7490; text-align: center; }
.footer-brand { display: inline-block; margin-bottom: 10px; font-size: 22px; font-weight: 1000; letter-spacing: .03em; text-decoration: none; }
.site-footer p { max-width: 590px; margin: 0 auto 8px; color: #64748b; font-size: 13px; line-height: 1.6; }
.site-footer .copyright { margin-top: 22px; color: #94a3b8; font-size: 11px; }
.admin-link { display: inline-block; margin-top: 14px; color: #64748b; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }

.log-dialog { width: min(100% - 32px, 420px); padding: 30px; border: 0; border-radius: 25px; background: white; box-shadow: 0 25px 90px rgb(8 47 73 / 35%); color: #164e63; text-align: center; }
.log-dialog::backdrop { background: rgb(8 47 73 / 58%); backdrop-filter: blur(3px); }
.dialog-turtle { margin: 0 0 10px; font-size: 38px; }
.log-dialog h2 { margin-bottom: 8px; color: #0e7490; font-size: 24px; }
.dialog-message { margin-bottom: 22px; color: #64748b; font-size: 14px; line-height: 1.5; }
.log-dialog label { display: block; margin-bottom: 7px; color: #334155; font-size: 13px; font-weight: 800; text-align: left; }
.log-dialog label span { color: #94a3b8; font-weight: 400; }
.privacy-hint { margin: 8px 0 0; color: #64748b; font-size: 11px; line-height: 1.45; text-align: left; }
.dialog-error { min-height: 0; margin: 8px 0 0; color: #b91c1c; font-size: 12px; line-height: 1.4; text-align: left; }
.dialog-error:not(:empty) { min-height: 18px; }
.log-dialog input { width: 100%; padding: 12px 13px; border: 1px solid #cbd5e1; border-radius: 11px; color: #164e63; }
.log-dialog input:focus { border-color: #0891b2; outline: 3px solid #a5f3fc; }
.dialog-actions { display: flex; justify-content: center; margin-top: 18px; }
.dialog-actions button { padding: 10px 14px; border: 0; border-radius: 10px; font-size: 13px; font-weight: 800; cursor: pointer; }
.save-button { background: #0891b2; color: white; }
.save-button:hover { background: #0e7490; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

@media (max-width: 900px) {
  .bucket-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px; }
  .bucket-card { min-height: 380px; }
  .score-layout { grid-template-columns: 1fr; gap: 28px; }
  .creator-column { justify-content: center; }
}
@media (max-width: 620px) {
  .hero { padding: 34px 17px 88px; }
  .project-badge { max-width: 100%; gap: 7px; padding: 8px 12px; font-size: 10px; }
  .hero-mark { width: min(220px, 75vw); }
  .mobile-break { display: block; }
  .buckets-section, .mission-section { padding: 52px 16px 63px; }
  .section-heading { margin-bottom: 28px; }
  .bucket-grid { gap: 13px; }
  .bucket-card { min-height: 325px; padding: 16px 10px; border-radius: 22px; }
  .card-accent { height: 6px; margin-bottom: 17px; }
  .bucket-art { width: 100px; height: 100px; margin-bottom: 13px; border-width: 5px; }
  .bucket-art svg { width: 68px; height: 68px; }
  .bucket-name { font-size: clamp(17px, 4vw, 20px); }
  .bucket-weight { font-size: 12px; }
  .piece-pill { margin-top: 11px; padding: 7px 11px; font-size: 14px; }
  .bucket-detail { display: none; }
  .tap-hint { font-size: 11px; opacity: 1; }
  .scoreboard { padding: 58px 15px 62px; }
  .score-details { gap: 14px; }
  .stats-card { padding: 24px 18px; border-radius: 22px; }
  .activity-card { padding: 18px; }
  .stat-pair { gap: 4px; padding: 14px 8px; }
  .total-number { font-size: 68px; }
  .stat-pair strong { font-size: 25px; }
  .stat-pair span { font-size: 8px; letter-spacing: .06em; }
  .goal-row { font-size: 10px; }
  .mission-grid { grid-template-columns: 1fr; gap: 13px; }
  .mission-card { padding: 22px; }
  .mission-icon { margin-bottom: 6px; font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
