@font-face {
  font-family: Unbounded;
  src: url("fonts/Unbounded.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
:root {
  --display: Unbounded, system-ui, sans-serif;
  --lime: #c7fa62;
  --line: #323831;
  --muted: #a7b0a5;
  background: #101210;
  color: #f3f5ef;
  -webkit-tap-highlight-color: transparent;
}
body { max-width:790px; padding: 0 clamp(16px,4vw,27px); }
body:has(#training:not([hidden])) .masthead {display:none}
.masthead {
  display:flex; align-items:center; justify-content:space-between;
  min-height:65px; padding:8px 0; border-bottom:1px solid #30342f;
}
.brand {
  display:flex; align-items:center; font:850 italic 22px/1 var(--display);
  letter-spacing:-1.6px; transform:skewX(-7deg); gap:0;
}
.brand i {width:23px;height:20px;margin-right:8px;background:var(--lime);clip-path:polygon(0 100%,32% 0,58% 0,26% 100%,38% 100%,70% 0,100% 0,68% 100%)}
.brand span {color:var(--lime)}
#athlete {border:1px solid #46513a;border-radius:50%;background:#293323;color:#d7f0b5;font:650 16px/1 var(--display);width:44px;height:44px;padding:0}
:is(#home,.tab-neighbor) {display:block;max-width:740px;margin:20px auto calc(110px + env(safe-area-inset-bottom));}
:is(#home,.tab-neighbor) h1,:is(#home,.tab-neighbor) h2,.result-metrics b,#training h1 {font-family:var(--display)}
:is(#home,.tab-neighbor) h1 {font-weight:620;font-size:clamp(26px,6.8vw,40px);line-height:1.13;letter-spacing:-.06em;margin:4px 0 16px}
:is(#home,.tab-neighbor) h2 {font-size:clamp(17px,4.4vw,21px);line-height:1.2;letter-spacing:-.045em;font-weight:570}
.daily-heading>small {display:block;color:var(--muted);font-size:12px;font-weight:580}
.daily-heading>small::first-letter {text-transform:uppercase}
.daily-heading h1 {overflow-wrap:anywhere}
.rz-icon {
  display:inline-block; flex:none; width:21px;height:21px;background:currentColor;
  mask:var(--symbol) center/contain no-repeat; -webkit-mask:var(--symbol) center/contain no-repeat;
}
.workout-hero {
  isolation:isolate; display:grid; align-content:end; position:relative; overflow:hidden;
  min-height:clamp(250px,64vw,330px); padding:18px;border:1px solid #40473c;border-radius:19px;
  background:#242725 url("workout.webp") center 43%/cover no-repeat;
}
.workout-hero[data-kind="squat"] {background-image:url("workout-squat.webp")}
.workout-hero::before {content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#10150fec 0%,#11161190 32%,transparent 73%),linear-gradient(90deg,#0e130d80,transparent 58%)}
:is(#home,.tab-neighbor) .workout-caption h2 {margin:14px 0 2px;color:white;font-size:clamp(28px,7vw,46px);line-height:1.1;letter-spacing:-.055em;font-weight:680}
.workout-caption p {font-size:13px;font-weight:500;color:#dce1d7;margin:4px 0 15px}
#train {display:flex;align-items:center;gap:10px;width:100%;max-width:430px;min-height:48px;padding:11px 15px;border-radius:12px;color:#17220c;background:var(--lime);font-weight:760}
#train .rz-icon:first-child {width:16px;height:16px}
#train .rz-icon:last-child {width:17px;margin-left:auto}
.section-title,.level-line {display:flex;align-items:center;justify-content:space-between;gap:12px}
.section-title {margin:16px 0 3px;min-height:44px}
.section-title h2 {margin:0}
.text-link {min-height:44px;min-width:44px;padding:0 2px;display:inline-flex;align-items:center;justify-content:center;gap:3px;border:0;background:transparent;color:var(--lime);font-size:13px}
.text-link .rz-icon {width:17px}
.progress-card,.panel,.row {padding:16px;background:#1c211d;border-radius:16px;border:1px solid var(--line)}
.summary {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.summary>div {min-width:0}
.summary>div+div {padding-left:12px;border-left:1px solid var(--line)}
.summary small,.level-line small {color:#b4bdb2;font-size:12px}
.summary b {display:block;font:550 clamp(21px,6.1vw,34px)/1.15 var(--display);font-variant-numeric:tabular-nums;letter-spacing:-.07em}
.level-line {border-top:1px solid var(--line);margin-top:14px;padding-top:10px;font-size:12px}
.level-line b {display:flex;align-items:center;gap:6px;color:#dbedc7}
.level-line .rz-icon {color:var(--lime);width:16px;height:16px}
.xp {display:block;width:100%;height:4px;appearance:none;border:0;border-radius:4px;overflow:hidden;margin:6px 0 0}
.xp::-webkit-progress-bar {background:#3a4237}
.xp::-webkit-progress-value {background:var(--lime)}
.calendar-caption {font-size:12px;color:var(--muted);margin:-4px 0 5px}
.calendar-item {display:flex;align-items:center;gap:12px;text-align:left;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:13px 0;background:none;color:inherit}
.calendar-item>div {flex:1}
.calendar-item small {display:block;font-size:12px;font-weight:400;margin-top:3px;color:var(--muted)}
.calendar-item>.rz-icon {color:var(--muted);width:15px}
.calendar-icon {width:40px;height:40px;display:grid;place-items:center;background:#262e23;color:#c9d8bd;border-radius:12px;flex-shrink:0}
#tabs {position:fixed;inset:auto 0 0;max-width:790px;margin:auto;display:flex;align-items:stretch;z-index:5;padding:6px 4px max(6px,env(safe-area-inset-bottom));background:#171b17f7;border-top:1px solid #363c34;backdrop-filter:blur(16px)}
#tabs button {position:relative;min-width:0;min-height:52px;flex:1;display:grid;justify-items:center;align-content:center;gap:4px;background:none;color:#a7afa5;font-size:clamp(10px,2.7vw,13px);padding:4px 0;font-weight:600}
#tabs button[aria-current=page]{color:var(--lime)}
#tabs button[aria-current=page]::before {content:"";position:absolute;top:-6px;background:var(--lime);height:2px;width:22px;border-radius:3px}
:is(#home,.tab-neighbor) form {margin:12px 0}
:is(#home,.tab-neighbor) input,:is(#home,.tab-neighbor) select {max-width:100%;border:1px solid var(--line);padding:10px;color:inherit;font:inherit}
.filters button,.quiet {background:#252b25;color:#cad2c7;font-weight:600}
.filters button[aria-pressed=true] {background:var(--lime);color:#15230d}
:is(#home,.tab-neighbor) .row {display:flex;justify-content:space-between;gap:10px;overflow-wrap:anywhere}
button:focus-visible,select:focus-visible,input:focus-visible {outline:2px solid var(--lime);outline-offset:3px}
button:active {filter:brightness(.88)}
@media (min-width:640px) {.workout-hero{padding:24px}.workout-caption p{font-size:15px}#home{margin-top:26px}}
@media (prefers-reduced-motion:no-preference){:is(#home,.tab-neighbor)>section,.daily-heading,.workout-hero{animation:appear .18s ease-out}@keyframes appear{from{opacity:.6;transform:translateY(3px)}to{opacity:1;transform:none}}}

.choice-strip,.week-nav,.week-days{display:flex;gap:6px;margin:12px 0}.choice-strip button,.week-days button,.week-nav button,.duel-entry{background:#242d24;color:#eef3eb;font-size:14px}.choice-strip button[aria-pressed=true],.week-days button[aria-pressed=true]{background:var(--lime);color:#15210c}.duel-entry{width:100%;margin-top:8px;display:flex;align-items:center;justify-content:center;gap:8px}.week-days button{flex:1;min-width:0;padding:6px 0}.week-days small{display:block;color:inherit!important}.week-nav{align-items:center;justify-content:space-between}#player:empty,#match:empty,#share-status:empty{display:none}

html{overflow-x:clip}
#home{touch-action:pan-y pinch-zoom}
:is(#home,.tab-neighbor) .filters{touch-action:pan-x pan-y pinch-zoom}
.challenge-picker{margin-top:16px;padding:14px;background:#1c211d;border:1px solid var(--line);border-radius:16px;display:grid;gap:8px}
:is(#home,.tab-neighbor) .challenge-picker h2{margin:0 0 3px}
:is(#home,.tab-neighbor) .challenge-picker :is(p,label){font-size:14px;color:var(--muted);margin:0}
.challenge-picker select{min-width:0;border-radius:8px;background:#252d24}
.challenge-picker button{min-height:44px}
#training :is(#goal-live,#rep-rating,#goal-result,#rating-result){margin:0;padding:9px 12px;background:#232e21;color:#e1efcf;border-radius:10px;font-size:14px}

.tab-neighbor{position:fixed;z-index:3;pointer-events:none;max-height:100dvh;overflow:hidden;background:#101210;contain:layout paint}
