:root {
  color-scheme: dark;
  --bg: #102e28;
  --text: #f4faf5;
  --muted: #acc6b9;
  --green: #a6eab7;
  --gold: #e5c785;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }
.page-art { position: absolute; inset: 0 0 auto; display: block; pointer-events: none; }
.page-art img { display: block; width: 100%; height: auto; mask-image: linear-gradient(#000 75%, transparent); }
main { max-width: 1200px; padding: calc(33vw + 16px) 48px 32px; margin: auto; position: relative; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; }
.season { font-size: .8rem; letter-spacing: .14em; color: var(--gold); margin: 0 0 10px; }
h1 { font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.15; font-weight: 650; margin: 0; letter-spacing: -.025em; }
.quiet { background: #102e2866; border: 1px solid #ffffff26; color: #d3e2d9; padding: 10px 18px; border-radius: 24px; font-size: .875rem; }
.scale-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .875rem; margin: 24px 0; }
.scale-caption span:first-child { display: flex; align-items: center; gap: 9px; }
.scale-caption i { height: 15px; width: 3px; border-radius: 2px; background: var(--gold); }
.list-head, .tt-row { display: grid; grid-template-columns: 220px minmax(100px, 1fr) 92px; gap: 28px; align-items: center; }
.list-head { padding: 0 22px 15px; color: var(--muted); font-size: .75rem; letter-spacing: .06em; }
.list-head span:last-child { text-align: right; }
.rows { border-top: 1px solid #ffffff26; }
.tt-row { padding: 25px 22px 32px; border-bottom: 1px solid #ffffff18; min-height: 88px; background: linear-gradient(90deg, #ffffff03, transparent); }
.tt-row:hover { background: #ffffff06; }
.tt-name { font-size: 1rem; font-weight: 500; line-height: 1.3; }
.tt-name small { display: block; color: var(--gold); font-size: .8rem; margin-top: 6px; max-width: 240px; font-weight: 400; }
.track { height: 12px; background: #ffffff14; border-radius: 20px; position: relative; isolation: isolate; }
.over-zone { position: absolute; left: var(--goal); right: 0; height: 100%; border-radius: 0 20px 20px 0; background: #e5c78517; }
.fill { height: 100%; width: 0; border-radius: 20px; background: linear-gradient(90deg, #6cae90, #b3e8b8); transition: width 1.15s cubic-bezier(.2,.8,.2,1); position: relative; }
.fill.over-fill { background: linear-gradient(90deg, #6cae90 0, #b3e8b8 var(--goal-in-fill), #e5c785 var(--goal-in-fill), #f2d994 100%); }
.knob { height: 44px; width: 32px; position: absolute; right: -10px; top: -24px; z-index: 4; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2044%22%3E%3Cdefs%3E%3Cpattern%20id%3D%22c%22%20width%3D%2210%22%20height%3D%2210%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate(-35)%22%3E%3Crect%20width%3D%2210%22%20height%3D%2210%22%20fill%3D%22%23fff9ef%22%2F%3E%3Crect%20width%3D%225%22%20height%3D%2210%22%20fill%3D%22%23e53642%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M6%2014V12a8%208%200%200%201%2016%200V37%22%20fill%3D%22none%22%20stroke%3D%22%23fff9ef%22%20stroke-width%3D%229%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M6%2014V12a8%208%200%200%201%2016%200V37%22%20fill%3D%22none%22%20stroke%3D%22url(%23c)%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; filter: drop-shadow(0 2px 2px #071b16aa); pointer-events: none; }
.complete .knob { filter: drop-shadow(0 0 4px #e5c78570) drop-shadow(0 2px 2px #071b16aa); }
.tick { position: absolute; width: 2px; height: 20px; top: -4px; background: #e8f4e3b8; z-index: 3; transform: translateX(-1px); border-radius: 1px; }
.tick::after { content: attr(data-label); position: absolute; top: 26px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .75rem; opacity: 0; background: #15382f; padding: 3px 5px; border-radius: 4px; }
.tick:hover::after { opacity: 1; }
.goal-tick { height: 26px; top: -7px; width: 3px; background: var(--gold); }
.goal-tick::after { opacity: 1; top: 29px; padding: 0; color: var(--gold); background: transparent; }
.percentage { text-align: right; white-space: nowrap; font-size: 1.55rem; font-weight: 650; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.percentage span { font-size: .875rem; font-weight: 400; color: #b6cbbb; margin-left: 3px; }
.complete .percentage { color: var(--gold); }
.empty .percentage { color: #819e91; }
.empty .fill { visibility: hidden; }
.notice { font-size: .875rem; color: var(--gold); line-height: 1.5; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); padding: 25px 0 0; font-size: .8rem; }
.demo { border: 1px solid #e5c78555; color: var(--gold); padding: 11px 16px; border-radius: 8px; font-size: .875rem; background: #102e2840; }
.login { max-width: 380px; margin: 0 auto 30px; background: #102e28bb; padding: 30px; border: 1px solid #ffffff26; border-radius: 16px; }
.login h2 { font-size: 1.2rem; margin: 0 0 24px; }
.login label { display: block; font-size: .875rem; margin: 16px 0 8px; color: #c5d6ca; }
.login input { width: 100%; background: #0e2721; border: 1px solid #557565; border-radius: 8px; color: white; padding: 12px 14px; min-height: 48px; }
.primary { width: 100%; border: 0; border-radius: 8px; padding: 14px; background: #b9e8bc; color: #173b29; font-weight: 650; }
.primary:disabled { opacity: .6; cursor: wait; }
.remember { font-size: .8rem; line-height: 1.5; color: var(--muted); margin: 16px 0 0; }
.error { color: #ffd2c4; font-size: .875rem; min-height: 1em; }
.loading { color: var(--muted); text-align: center; padding: 30px; }
@media (max-width: 760px) {
  main { padding: calc(33vw + 24px) 20px 26px; }
  .top { gap: 12px; margin-bottom: 24px; }
  .season { font-size: .75rem; margin-bottom: 8px; }
  h1 { font-size: 1.5rem; }
  .quiet { padding: 9px 13px; }
  .list-head { display: none; }
  .tt-row { grid-template-columns: minmax(0, 1fr) 80px; gap: 24px 16px; padding: 21px 4px 39px; }
  .tt-name { grid-column: 1; grid-row: 1; }
  .percentage { grid-column: 2; grid-row: 1; font-size: 1.4rem; }
  .track { grid-row: 2; grid-column: 1 / -1; margin: 0 9px 0 1px; }
  .tt-name small { max-width: none; }
  .scale-caption { font-size: .8rem; gap: 10px; margin: 20px 0; }
  footer { flex-wrap: wrap; font-size: .75rem; gap: 12px; }
  .login { padding: 24px; }
  .demo { font-size: .8rem; padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
