/* Wevzi Dryland v4: season program, competitions, parents' guide */
.plan-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.plan-head .eyebrow, .page-head .eyebrow { display: inline-block; margin-bottom: 10px; }
.plan-head .btn svg, .plan-home .btn svg { width: 18px; height: 18px; }
.plan-wrap { display: flex; flex-direction: column; gap: 18px; padding-top: 24px; padding-bottom: 64px; }
.plan-home { padding-top: 8px; padding-bottom: 28px; }
.plan-home .wrap { display: flex; flex-direction: column; gap: 14px; }
.footer-link { color: var(--accent); font-weight: 700; margin-left: 8px; }

/* today */
.today-card { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 24px 26px; border-left: 4px solid var(--c); background: linear-gradient(120deg, color-mix(in srgb, var(--c) 12%, var(--surface)), var(--surface) 60%); }
.today-card.is-done { border-left-color: var(--work); }
.today-main { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 0; }
.today-card h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.coach-says { margin-top: 4px; padding: 12px 14px; border-radius: 14px; background: rgba(6, 17, 28, .55); border: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; max-width: 640px; }
.coach-says b { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.today-side { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.today-min { display: flex; align-items: baseline; gap: 5px; }
.today-min b { font-family: var(--font-head); font-size: 54px; font-weight: 800; line-height: 1; }
.today-min span { color: var(--muted); font-weight: 600; }
.today-side.rest svg { width: 64px; height: 64px; color: var(--dim); }

/* phase + next meet */
.plan-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.phase-card, .meet-card, .meet-ask { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.phase-card > *, .meet-card > * { max-width: 100%; }
.phase-card h3, .meet-card h3, .meet-ask h3 { font-size: 26px; font-weight: 800; }
.phase-card .field-label, .meet-card .field-label, .meet-ask .field-label { margin: 0; display: flex; align-items: center; gap: 7px; }
.meet-card .field-label svg, .meet-ask .field-label svg { width: 16px; height: 16px; color: var(--rest); }
.phase-card .muted, .meet-card .muted, .meet-ask .muted { font-size: 14px; }
.phase-steps { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; margin-top: 4px; }
.phase-steps span { flex: 1 1 0; min-width: 70px; font-size: 11.5px; font-weight: 700; color: var(--dim); display: flex; flex-direction: column; gap: 5px; }
.phase-steps i { height: 5px; border-radius: 999px; background: var(--surface-3); }
.phase-steps .past i { background: var(--work); }
.phase-steps .on { color: var(--text); }
.phase-steps .on i { background: var(--accent); }
.meet-count { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--rest); line-height: 1.1; }
.meet-ask { border-color: color-mix(in srgb, var(--rest) 45%, transparent); background: linear-gradient(140deg, color-mix(in srgb, var(--rest) 10%, var(--surface)), var(--surface)); }
.meet-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.meet-btns .btn { height: 46px; padding: 0 18px; }

/* week */
.week-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.week-head > div { text-align: center; }
.week-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.week-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.wd { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-height: 148px; transition: transform .2s, border-color .2s; border-top: 3px solid var(--c, var(--surface-3)); }
a.wd:hover { transform: translateY(-3px); border-color: var(--line-2); border-top-color: var(--c); }
.wd.rest { opacity: .6; border-top-color: var(--surface-3); }
.wd.today { outline: 2px solid var(--accent); outline-offset: 2px; opacity: 1; }
.wd.is-done { border-top-color: var(--work); background: color-mix(in srgb, var(--work) 8%, var(--surface)); }
.wd.missed .wd-state { color: var(--dim); }
.wd-day { display: flex; align-items: baseline; justify-content: space-between; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.wd-day b { font-family: var(--font-head); font-size: 22px; color: var(--text); letter-spacing: 0; }
.wd-body { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.wd-body b { font-size: 14.5px; line-height: 1.25; }
.wd-body small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.wd-state { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--surface-3)) 22%, transparent); color: var(--c, var(--muted)); }
.wd-state svg { width: 15px; height: 15px; }
.wd.is-done .wd-state { background: var(--work); color: #04121d; }
.wd.race { border-top-color: var(--rest); }
.wd.race .wd-state { background: var(--rest); color: #04121d; }

/* competitions list */
.meets { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 90px; }
.meets .btn { height: 44px; }
.meets .btn svg { width: 16px; height: 16px; }
.meet-list { display: flex; flex-direction: column; gap: 8px; }
.meet-row { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.meet-row.yes { border-color: color-mix(in srgb, var(--work) 50%, transparent); }
.meet-row.no { opacity: .6; }
.meet-date { display: flex; flex-direction: column; align-items: center; font-size: 11.5px; font-weight: 700; text-transform: uppercase; color: var(--muted); line-height: 1.1; }
.meet-date b { font-family: var(--font-head); font-size: 24px; color: var(--text); }
.meet-info { display: flex; flex-direction: column; min-width: 0; }
.meet-info small { color: var(--muted); font-size: 12.5px; }
.seg.seg-3 { display: inline-grid; grid-template-columns: repeat(3, auto); }
.seg.seg-3 button { padding: 0 12px; height: 34px; font-size: 12.5px; }
.meet-row.yes .seg button[aria-pressed="true"] { background: var(--work); color: #04121d; }
.ch-form .meet-row { grid-template-columns: 1fr auto; }

/* session page + setup */
.block-note { margin: -4px 0 10px; color: var(--muted); font-size: 14px; font-style: italic; }
.wz-row.wz-row-2 { grid-template-columns: 1fr 1fr; }

/* parents' guide */
.pg { display: flex; flex-direction: column; gap: 34px; padding-top: 26px; padding-bottom: 72px; max-width: 920px; }
.pg-sec { display: flex; flex-direction: column; gap: 14px; }
.pg-sec h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.pg-sec p { color: var(--muted); font-size: 16px; line-height: 1.6; }
.pg-sec p b, .pg-list b { color: var(--text); }
.pg-now { display: flex; flex-direction: column; gap: 12px; border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.pg-now .stat b { font-size: 22px; }
.pg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.pg-list li { display: flex; gap: 11px; align-items: flex-start; }
.pg-list svg { width: 20px; height: 20px; flex: none; padding: 4px; border-radius: 50%; background: color-mix(in srgb, var(--work) 18%, transparent); color: var(--work); margin-top: 2px; }
.pg-seasons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pg-seasons .card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pg-seasons ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 14.5px; }
.pg-seasons ol b { color: var(--text); }
.pg-ages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pg-age { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pg-age h3 { font-size: 22px; }
.pg-age p { font-size: 14.5px; }
.pg-age.mine { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.pg-faq { display: flex; flex-direction: column; gap: 8px; }
.pg-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.pg-faq summary { cursor: pointer; font-weight: 700; font-size: 16px; }
.pg-faq details p { margin-top: 8px; font-size: 15px; }

@media (max-width: 980px) {
  .plan-grid, .pg-seasons, .pg-ages { grid-template-columns: 1fr; }
  .week-days { grid-template-columns: 1fr; }
  .wd { flex-direction: row; align-items: center; min-height: 0; border-top: 1px solid var(--line); border-left: 4px solid var(--c, var(--surface-3)); padding: 12px 14px; }
  .wd.rest { border-left-color: var(--surface-3); }
  .wd.is-done { border-left-color: var(--work); }
  .wd.race { border-left-color: var(--rest); }
  .wd-day { flex-direction: column; align-items: center; width: 44px; flex: none; gap: 0; }
}
@media (max-width: 760px) {
  .today-card { grid-template-columns: 1fr; padding: 20px 18px; gap: 16px; }
  .today-side { flex-direction: row; justify-content: space-between; width: 100%; }
  .today-side .btn { flex: 1; }
  .today-min b { font-size: 40px; }
  .meet-row { grid-template-columns: 44px 1fr; }
  .meet-row .seg, .meet-row > .del { grid-column: 1 / -1; justify-self: start; }
  .wz-row.wz-row-2 { grid-template-columns: 1fr; }
  .meet-btns .btn { flex: 1 1 auto; }
}

.meet-owner { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13.5px; }

/* v6: start button, rewards, celebration, tour */
.go-btn { min-width: 190px; font-size: 19px; }
.today-side .linkish { font-size: 13.5px; }
.rewards { display: flex; flex-direction: column; gap: 16px; }
.rw-top { display: grid; grid-template-columns: auto auto 1fr; gap: 22px; align-items: center; }
.rw-stat { display: flex; align-items: center; gap: 12px; }
.rw-stat b { display: block; font-family: var(--font-head); font-size: 34px; font-weight: 800; line-height: 1; }
.rw-stat span { color: var(--muted); font-size: 13px; }
.rw-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--rest) 18%, transparent); color: var(--rest); flex: none; }
.rw-ico.fire { background: color-mix(in srgb, #fb923c 20%, transparent); color: #fb923c; }
.rw-ico svg { width: 24px; height: 24px; }
.rw-next { display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--muted); min-width: 0; }
.rw-next b { color: var(--text); }
.rw-badges { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.rw-badge { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding: 10px 4px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); opacity: .45; }
.rw-badge i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.rw-badge i svg { width: 18px; height: 18px; }
.rw-badge b { font-family: var(--font-head); font-size: 17px; }
.rw-badge small { font-size: 11px; color: var(--muted); line-height: 1.2; }
.rw-badge.got { opacity: 1; border-color: color-mix(in srgb, var(--rest) 55%, transparent); background: color-mix(in srgb, var(--rest) 9%, var(--bg-2)); }
.rw-badge.got i { background: var(--rest); color: #04121d; }
.done { position: relative; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -14px; width: 9px; height: 15px; border-radius: 2px; opacity: 0; animation: confetti-fall 2.6s ease-in forwards; }
@keyframes confetti-fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(105vh) rotate(720deg); opacity: .9; } }
.done-newbadge { display: inline-flex; align-items: center; gap: 12px; margin: 4px auto; padding: 12px 20px; border-radius: 16px; background: color-mix(in srgb, var(--rest) 16%, transparent); border: 1px solid color-mix(in srgb, var(--rest) 55%, transparent); font-family: var(--font-head); font-size: 22px; font-weight: 800; text-align: left; }
.done-newbadge svg { width: 34px; height: 34px; color: var(--rest); flex: none; }
.done-newbadge small { display: block; font-family: var(--font); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rest); }
.tour { position: fixed; inset: 0; z-index: 400; }
.tour-hole { position: fixed; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(2, 8, 14, .78); outline: 3px solid var(--accent); outline-offset: 0; transition: all .25s ease; pointer-events: none; }
.tour-card { position: fixed; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); transition: top .25s ease, left .25s ease; }
.tour-card h3 { font-size: 22px; font-weight: 800; }
.tour-card p { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.tour-card p b { color: var(--text); }
.tour-n { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; color: var(--accent); }
.tour-acts { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.tour-acts span { display: flex; gap: 8px; }
.tour-acts .btn { height: 44px; padding: 0 18px; }
.tour-acts .linkish { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .rw-top { grid-template-columns: 1fr 1fr; }
  .rw-next { grid-column: 1 / -1; }
  .rw-badges { grid-template-columns: repeat(4, 1fr); }
  .go-btn { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }

/* v6: on phones the menu is a tab bar at the bottom, where thumbs are */
@media (max-width: 760px) {
  .topbar-inner { flex-wrap: nowrap; }
  .topbar-inner .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; width: auto; order: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; overflow: visible;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(6, 17, 28, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line-2); }
  .nav a { padding: 10px 2px; font-size: 11px; font-weight: 700; text-align: center; border-radius: 12px; overflow: hidden; text-overflow: ellipsis; }
  .nav a.active { background: var(--surface-2); color: var(--accent); }
  .nav a.timing { justify-content: center; font-size: 10.5px; }
  body { padding-bottom: 62px; }
  .toast { bottom: 78px; }
  .b-mini { bottom: 62px; }
}
@media (max-width: 760px) { .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); } .topbar-inner { height: 56px; padding-top: 0; padding-bottom: 0; } }

/* v7: greeting, missions, levels and motion */
.plan-head { position: relative; overflow: hidden; }
.plan-head h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), #7dd856); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-head p b { color: var(--text); }
.bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.plan-head > div:not(.bubbles), .plan-head > a { position: relative; z-index: 1; }
.bubbles i { position: absolute; bottom: -30px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(103, 232, 249, .35); background: rgba(103, 232, 249, .06); animation: bubble 9s linear infinite; }
.bubbles i:nth-child(1) { left: 6%; animation-duration: 8s; }
.bubbles i:nth-child(2) { left: 18%; width: 9px; height: 9px; animation-duration: 11s; animation-delay: 2s; }
.bubbles i:nth-child(3) { left: 31%; width: 20px; height: 20px; animation-duration: 13s; animation-delay: 1s; }
.bubbles i:nth-child(4) { left: 46%; animation-duration: 9s; animation-delay: 4s; }
.bubbles i:nth-child(5) { left: 58%; width: 8px; height: 8px; animation-duration: 7s; animation-delay: 3s; }
.bubbles i:nth-child(6) { left: 69%; width: 18px; height: 18px; animation-duration: 12s; }
.bubbles i:nth-child(7) { left: 80%; animation-duration: 10s; animation-delay: 5s; }
.bubbles i:nth-child(8) { left: 90%; width: 10px; height: 10px; animation-duration: 8s; animation-delay: 1.5s; }
.bubbles i:nth-child(9) { left: 96%; width: 16px; height: 16px; animation-duration: 14s; animation-delay: 6s; }
@keyframes bubble { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: 1; } 50% { transform: translate(12px, -140px); } 100% { transform: translate(-8px, -300px); opacity: 0; } }
.rise { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.today-card:not(.is-done) .go-btn { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { box-shadow: 0 10px 30px -10px rgba(56, 189, 248, .7), 0 0 0 0 rgba(56, 189, 248, .55); } 50% { box-shadow: 0 10px 30px -10px rgba(56, 189, 248, .7), 0 0 0 12px rgba(56, 189, 248, 0); } }
.go-btn:hover { transform: translateY(-2px) scale(1.03); }

.missions { display: flex; flex-direction: column; gap: 14px; background: linear-gradient(150deg, color-mix(in srgb, #7dd856 9%, var(--surface)), var(--surface) 55%); }
.ms-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.ms-head h3 { font-size: 22px; font-weight: 800; margin-top: 2px; }
.ms-stars, .week-stars { display: flex; align-items: center; gap: 4px; }
.ms-stars i, .week-stars i { width: 34px; height: 34px; color: var(--surface-3); transition: color .3s, transform .3s; }
.ms-stars i svg, .week-stars i svg { width: 100%; height: 100%; }
.ms-stars i.on, .week-stars i.on { color: var(--rest); filter: drop-shadow(0 0 8px rgba(251, 191, 36, .5)); animation: pop-star .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.ms-stars.all i { animation: pop-star .5s cubic-bezier(.2, 1.6, .4, 1) both, twinkle 1.6s ease-in-out .5s infinite; }
@keyframes pop-star { from { transform: scale(.3) rotate(-30deg); } to { transform: none; } }
@keyframes twinkle { 50% { transform: scale(1.15) rotate(6deg); } }
.week-stars { justify-content: center; margin-top: 6px; }
.week-stars i { width: 22px; height: 22px; }
.week-stars span { margin-left: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ms-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ms-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); font-weight: 600; font-size: 15.5px; }
.ms-list li.done { border-color: color-mix(in srgb, #7dd856 45%, transparent); }
.ms-list li.done .ms-title { color: var(--muted); }
.ms-box { width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--line-2); display: grid; place-items: center; color: #04121d; flex: none; }
.ms-list li.done .ms-box { background: #7dd856; border-color: #7dd856; animation: pop-star .4s cubic-bezier(.2, 1.6, .4, 1) both; }
.ms-box svg { width: 16px; height: 16px; }
.ms-list .chip { height: 36px; padding: 0 14px; font-weight: 800; color: var(--text); border-color: var(--line-2); display: inline-flex; align-items: center; gap: 6px; }
.ms-list .chip svg { width: 13px; height: 13px; }
.ms-yn { display: flex; gap: 6px; }

.rw-level { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rw-lv { width: 78px; height: 78px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(145deg, #1318db, #38bdf8); box-shadow: 0 12px 28px -12px rgba(56, 189, 248, .8); }
.rw-lv small { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.rw-lv b { font-family: var(--font-head); font-size: 36px; font-weight: 800; line-height: 1; }
.rw-lvbody { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.rw-lvbody > b { font-family: var(--font-head); font-size: 24px; font-weight: 800; }
.rw-lvbody span { color: var(--muted); font-size: 13.5px; }
.rw-ico.fire.lit svg { animation: flicker 1.3s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.14) rotate(3deg); } }
.rw-badge.got { animation: none; transition: transform .2s; }
.rw-badge.got:hover { transform: translateY(-4px) rotate(-2deg); }
.wd { animation: none; }
a.wd.today:not(.is-done) .wd-state { animation: nudge 2.4s ease-in-out infinite; }
@media (max-width: 760px) { .ms-stars i { width: 28px; height: 28px; } .ms-list li { font-size: 14.5px; padding: 10px 12px; gap: 10px; } .rw-lv { width: 66px; height: 66px; } }
@media (prefers-reduced-motion: reduce) { .bubbles, .rise { animation: none; } .bubbles { display: none; } .go-btn, .ms-stars i, .rw-ico svg, .wd-state { animation: none !important; } }

/* v7: keep the today card inside a phone screen */
.today-card { grid-template-columns: minmax(0, 1fr) auto; }
.coach-says { max-width: min(640px, 100%); overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .today-card { grid-template-columns: minmax(0, 1fr); }
  .today-side { flex-wrap: wrap; justify-content: flex-start; gap: 10px 14px; }
  .today-side .go-btn { flex: 1 1 150px; }
  .today-side .linkish { flex: 1 1 100%; }
}
