:root {
  --teal: #19a7c6;
  --teal-dark: #0f8fae;
  --navy: #0c4b5c;
  --bg: #e4e2dd;
  --chip: #d5d2cb;
  --card: #ffffff;
  --ink: #23292e;
  --muted: #8a9096;
  --line: #e6e4df;
  --green: #12c06a;
  --green-dark: #0a9a52;
  --red: #e0322e;
  --gold: #f5c518;
  --shadow: 0 2px 6px rgba(20, 40, 50, 0.12);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Titillium Web', 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #47b3c4 0%, #127086 55%, #0b4f60 100%) fixed;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}

.phone {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

@media (min-width: 520px) {
  body { padding: 28px 0; }
  .phone {
    min-height: calc(100vh - 56px);
    border-radius: 36px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 0 0 10px #111;
  }
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  padding-top: max(14px, env(safe-area-inset-top));
  background: var(--teal);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  flex: none;
}

.team-picker {
  position: relative;
  margin: 0 auto;
  color: #fff;
  min-width: 0;
}
.team-picker select {
  appearance: none;
  -webkit-appearance: none;
  font: 600 15px 'Titillium Web', sans-serif;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  border-radius: 8px;
  padding: 9px 38px 9px 16px;
  max-width: 230px;
  text-overflow: ellipsis;
}
.team-picker select option { color: var(--ink); }
.team-picker svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }

/* ---------- Shared bits ---------- */

.hex {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 34px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  flex: none;
}
.hex.sm { width: 20px; height: 23px; font-size: 11px; }
.hex.light { background: #fff; color: var(--ink); filter: drop-shadow(0 0 0.5px #999); }

.avatar {
  display: block;
  border-radius: 50%;
  overflow: hidden;
  background: #eef1f3;
  flex: none;
}
.avatar svg { display: block; width: 100%; height: 100%; }

.team-badge {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.02em;
  flex: none;
  border: 2px solid #fff;
}

.fan-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  flex: none;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.score { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; line-height: 1; }
.score sup { font-size: 0.55em; vertical-align: 0.6em; margin-left: 1px; }

.good { color: var(--green-dark); }
.bad { color: var(--red); }

.pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill.onfield, .pill.healthy { background: var(--green); color: #fff; }
.pill.sideline, .pill.pre, .pill.bye { background: #ececec; color: var(--muted); }
.pill.final { background: var(--ink); color: #fff; }
.pill.questionable { background: #f6b21a; color: #fff; }

.section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 22px 16px 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #5b6168;
}
.info-btn {
  border: 1.5px solid currentColor;
  background: none;
  color: #6e747a;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
}

.card {
  background: var(--card);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

/* ---------- My Team hero ---------- */

.hero {
  background: linear-gradient(180deg, #0f6b80 0%, #0b4554 100%);
  color: #fff;
  padding: 22px 16px 70px;
}
.hero-id { display: flex; align-items: center; gap: 14px; }
.hero-av { position: relative; }
.hero-av .hex { position: absolute; top: -8px; left: -10px; z-index: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.hero h1 { margin: 0; font-size: 26px; line-height: 1.1; font-weight: 700; }
.hero-meta { margin-top: 4px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.hero-meta span + span::before { content: '|'; margin: 0 8px; opacity: 0.6; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.tile {
  position: relative;
  border: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  padding: 12px 6px 10px;
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.tile-icon { display: flex; align-items: center; gap: 6px; }
.tile .count {
  display: grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 700;
}

/* ---------- Matchup card on My Team ---------- */

.content { padding: 0 12px 40px; }
.hero + .content { margin-top: -56px; }

.matchup-card { position: relative; padding: 0 14px 18px; margin-bottom: 30px; }
.week-picker {
  position: relative;
  display: block;
  width: max-content;
  margin: 0 auto;
}
.week-picker select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: none;
  font: 600 16px 'Titillium Web', sans-serif;
  letter-spacing: 0.08em;
  color: #5b6168;
  padding: 12px 26px 10px 10px;
}
.week-picker svg { position: absolute; right: 4px; top: 50%; transform: translateY(-40%); pointer-events: none; color: #5b6168; }

.mc-row { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.mc-score { text-align: center; }
.mc-score .score { font-size: 30px; }
.mc-score .proj { margin-top: 4px; font-size: 14px; font-weight: 600; font-style: italic; }
.mc-vs { color: var(--muted); font-size: 13px; }
.mc-names { display: grid; grid-template-columns: 1fr 1fr; margin-top: 10px; font-size: 13px; color: var(--muted); }
.mc-names b { display: block; color: var(--ink); font-size: 14px; }
.mc-names div:last-child { text-align: right; }

.optimize {
  position: absolute;
  right: -6px;
  bottom: -22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 4px;
  padding: 6px 16px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 3px 0 var(--green-dark), var(--shadow);
}
.optimize .score { font-size: 26px; }
.optimize span:last-child { font-weight: 700; letter-spacing: 0.12em; font-size: 15px; }
.optimize:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--green-dark); }

/* ---------- Player rows ---------- */

.prow { margin-bottom: 8px; overflow: hidden; }
.prow-main { display: flex; align-items: center; gap: 10px; padding: 10px 12px 8px; }
.slot { width: 34px; font-size: 13px; font-weight: 700; color: #5b6168; flex: none; }
.swap {
  display: grid; place-items: center;
  width: 36px; height: 36px; border: 0; border-radius: 4px;
  background: var(--teal); color: #fff; flex: none;
}
.swap:disabled { background: #e6e6e6; color: #b5b5b5; cursor: default; }
.prow-av { position: relative; flex: none; }
.prow-av .hex { position: absolute; top: -4px; left: -8px; z-index: 1; }
.prow-av .team-badge, .prow-av .team-logo { position: absolute; right: -14px; bottom: 0; }
.prow-name { flex: 1; min-width: 0; padding-left: 14px; }
.prow-name b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-name small { color: var(--muted); font-size: 13px; }
.prow-pts { text-align: right; flex: none; }
.prow-pts .score { font-size: 22px; }
.prow-pts small { display: block; font-size: 12px; color: var(--muted); }
.prow-foot {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 5px 12px; border-top: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: #5b6168;
}
.prow-foot .live { color: var(--teal-dark); }
.prow.empty .prow-name b { color: var(--muted); }

/* ---------- League ---------- */

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 12px 4px; }
.seg a {
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  background: var(--chip);
  color: #6a6f75;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 14px;
}
.seg a.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 14px 12px 6px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.sb-card { scroll-snap-align: center; display: grid; grid-template-columns: 1fr 1px 1fr; padding: 16px 0 14px; }
.sb-divider { background: var(--line); position: relative; }
.sb-divider span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; color: var(--muted); font-size: 12px; padding: 4px 0; }
.sb-side { padding: 0 12px; min-width: 0; }
.sb-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.sb-av { position: relative; }
.sb-av .hex { position: absolute; top: -6px; left: -8px; z-index: 1; }
.sb-score { text-align: right; }
.sb-score .score { font-size: 22px; }
.sb-score .proj { font-size: 13px; font-style: italic; font-weight: 600; margin-top: 4px; }
.sb-name { margin-top: 10px; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-owner { font-size: 13px; color: var(--muted); }
.sb-owner b { color: var(--ink); }
.bar { height: 5px; background: #e8e8e8; border-radius: 3px; margin-top: 10px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--teal); border-radius: 3px; }
.bar-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 3px; }

.dots { display: flex; justify-content: center; gap: 8px; padding: 6px 0 2px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #c3c0b9; }
.dots button.active { background: var(--teal); }

.duel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px; }
.mini { display: block; padding: 10px 10px 8px; margin-bottom: 0; }
.mini-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.mini-av { position: relative; }
.mini-av .avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ring, #ddd); }
.mini-av .team-badge, .mini-av .team-logo { position: absolute; right: -16px; top: 2px; }
.mini-pts { text-align: right; }
.mini-pts .score { font-size: 22px; display: block; margin-bottom: 4px; }
.mini-name { margin-top: 8px; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-name small { font-weight: 600; color: var(--muted); font-size: 12px; }
.mini-foot { display: flex; justify-content: space-between; gap: 4px; margin-top: 6px; padding-top: 5px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 600; color: #5b6168; white-space: nowrap; }
.mini.empty { display: grid; place-items: center; color: var(--muted); min-height: 120px; }
.duel-slot { grid-column: 1 / -1; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); margin: 8px 0 -2px; }

.standings { margin: 14px 12px; overflow: hidden; }
.standings table { width: 100%; border-collapse: collapse; font-size: 14px; }
.standings th { text-align: right; font-size: 11px; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; padding: 10px 6px 6px; white-space: nowrap; }
.standings th:nth-child(2) { text-align: left; }
.standings td { padding: 9px 6px; border-top: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.standings td:nth-child(2) { text-align: left; width: 100%; max-width: 0; }
.standings td:first-child { width: 32px; padding-left: 10px; }
.st-team > span { min-width: 0; }
.st-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.st-team b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-team small { color: var(--muted); }
.standings tr.mine td { background: #eaf7fa; }
.playoff-line td { border-top: 2px dashed var(--teal) !important; }

/* ---------- Player card ---------- */

.ph {
  position: relative;
  background: #f2f1ee;
  padding: 20px 16px 0;
  overflow: hidden;
  min-height: 220px;
}
.ph-mark {
  position: absolute;
  right: -20px;
  top: -10px;
  font-size: 170px;
  font-weight: 900;
  line-height: 1;
  color: rgba(0, 0, 0, 0.045);
  letter-spacing: -0.06em;
  pointer-events: none;
}
.ph-text { position: relative; z-index: 1; width: 58%; padding-bottom: 18px; }
.ph h1 { margin: 0; font-size: 30px; line-height: 1.05; font-weight: 700; }
.ph-team { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; line-height: 1.3; }
.ph-owner { margin: 10px 0 8px; font-size: 13px; font-weight: 600; }
.ph-owner a { text-decoration: underline; text-underline-offset: 2px; }
.ph-photo { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; }
.ph-photo svg { width: 100%; height: 100%; display: block; }

.pstats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 12px 4px;
  text-align: center;
}
.pstats div small { display: block; font-size: 11px; letter-spacing: 0.04em; color: #5b6168; }
.pstats div b { font-size: 17px; }
.pstats .rank-hex { margin: -26px auto -8px; width: 64px; height: 72px; display: grid; place-items: center; text-align: center; background: #fff; filter: drop-shadow(0 0 1px #aaa); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.pstats .rank-hex b { font-size: 26px; line-height: 1; }

.ptabs { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; box-shadow: 0 2px 3px rgba(0,0,0,.06); }
.ptabs a { text-align: center; padding: 10px 0 9px; font-size: 15px; color: #5b6168; border-bottom: 3px solid transparent; }
.ptabs a.active { color: var(--ink); font-weight: 600; border-color: var(--teal); }

.pm-card { margin: 14px 12px 0; padding: 14px 14px 12px; }
.pm-card h3 { margin: 0 0 12px; font-size: 17px; letter-spacing: 0.05em; }
.pm-row { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pm-row > div:nth-child(2) { flex: 1; }
.pm-row b { display: block; font-size: 15px; }
.pm-row small { color: var(--muted); font-size: 12px; }
.pm-proj { text-align: right; }
.pm-proj .score { font-size: 22px; }
.pm-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding-top: 10px; }
.pm-grid small { display: block; font-size: 11px; color: #5b6168; letter-spacing: 0.03em; }
.pm-grid b { font-size: 17px; }

.news { margin: 0 12px; padding: 12px 14px; }
.news + .news { margin-top: 10px; }
.news time { display: block; color: var(--teal-dark); font-weight: 600; font-size: 14px; }
.news p { margin: 6px 0; font-size: 14px; line-height: 1.45; }
.news details summary { color: var(--teal-dark); font-weight: 700; cursor: pointer; list-style: none; }
.news details summary::-webkit-details-marker { display: none; }

.log { margin: 14px 12px; overflow-x: auto; }
.log table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.log th { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0.05em; padding: 10px 8px 6px; text-align: right; white-space: nowrap; }
.log td { padding: 9px 8px; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
.log th:nth-child(-n+2), .log td:nth-child(-n+2) { text-align: left; }
.log td.pts { font-weight: 700; }
.log tr.bye td { color: var(--muted); font-style: italic; }

.film { display: grid; gap: 10px; margin: 14px 12px; }
.clip { display: flex; gap: 12px; align-items: center; padding: 10px; text-align: left; border: 0; width: 100%; }
.clip-thumb {
  position: relative; width: 110px; aspect-ratio: 16 / 9; border-radius: 4px; flex: none;
  display: grid; place-items: center;
}
.clip-thumb::after { content: ''; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.clip-thumb span { position: absolute; right: 4px; bottom: 3px; font-size: 10px; color: #fff; background: rgba(0,0,0,.6); padding: 0 4px; border-radius: 2px; }
.clip b { display: block; font-size: 14px; }
.clip small { color: var(--muted); font-size: 12px; }

.empty-note { text-align: center; color: var(--muted); padding: 30px 16px; font-size: 14px; }

/* ---------- Bottom sheet & toast ---------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8, 25, 32, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet[hidden] { display: none; }
.sheet-panel {
  width: 100%;
  max-width: 430px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: 14px 14px 0 0;
  padding: 8px 12px 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  animation: up 0.2s ease-out;
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px 12px; }
.sheet-head h2 { margin: 0; font-size: 18px; letter-spacing: 0.04em; }
.sheet-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.close-btn { border: 0; background: var(--chip); border-radius: 50%; width: 32px; height: 32px; font-size: 18px; line-height: 1; }
.option { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; padding: 10px 12px; margin-bottom: 8px; text-align: left; }
.option > div:nth-child(2) { flex: 1; min-width: 0; }
.option b { display: block; font-size: 15px; }
.option small { color: var(--muted); font-size: 12px; }
.option .score { font-size: 18px; }
.btn {
  border: 0; border-radius: 4px; padding: 8px 14px; font-weight: 700; letter-spacing: 0.06em; font-size: 13px;
  background: var(--teal); color: #fff;
}
.btn.ghost { background: var(--chip); color: var(--ink); }
.btn.claimed { background: var(--green); }
.trade { padding: 14px; margin-bottom: 10px; }
.trade-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 14px; }
.trade-cols small { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.trade-cols .option { padding: 6px 0; margin: 4px 0 0; box-shadow: none; }
.trade-actions { display: flex; gap: 8px; justify-content: flex-end; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s;
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 370px) {
  .hero h1 { font-size: 22px; }
  .mc-score .score { font-size: 24px; }
  .ph h1 { font-size: 25px; }
  .tile { font-size: 11px; }
}

/* ---------- Sleeper images and live data ---------- */

.avatar { position: relative; display: grid; place-items: center; color: #8a9096; font-weight: 700; }
.avatar::before { content: attr(data-initials); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.team-logo {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  flex: none;
}
.team-logo img { width: 86%; height: 86%; object-fit: contain; }

.fan-avatar { position: relative; overflow: hidden; }
.fan-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.ph-photo img { position: absolute; right: 0; bottom: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.pill.out { background: var(--red); color: #fff; }

.link-btn {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.pm-note { margin: 6px 14px 0; font-size: 12px; color: var(--muted); }

.sheet-sub { margin: 14px 4px 8px; font-size: 13px; letter-spacing: 0.08em; color: #5b6168; }
.move { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-bottom: 8px; font-size: 14px; }
.move small { display: block; color: var(--muted); font-size: 12px; }
.move-players { display: grid; justify-items: end; gap: 2px; font-weight: 600; text-align: right; }
.pick { margin: 6px 0 0; font-size: 13px; font-weight: 600; }
a.option { color: inherit; }

.loading { display: grid; justify-items: center; gap: 14px; padding: 90px 24px; text-align: center; color: #5b6168; }
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 4px solid var(--chip); border-top-color: var(--teal);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
