@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f3f2f2;
  --surface: #eae9e9;
  --text: #201e1d;
  --accent: #ec3013;
  --divider: rgba(32, 30, 29, 0.4);
  --n100: #f8f4f4;
  --n200: #eae7e7;
  --n300: #d7d3d3;
  --n400: #bab6b6;
  --n500: #9b9797;
  --n600: #7d7979;
  --n700: #605d5d;
  --n800: #444141;
  --n900: #2d2b2b;
  --a100: #fff2ef;
  --a200: #ffe0d9;
  --a600: #dd2b0f;
  --a700: #ae1800;
  --blue: #1a62d6;
  --red: #ec3013;
  --green: #107c41;
  --amber: #d97706;
  --violet: #7c3aed;
  --accent-text: #ae1800;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  padding-bottom: 78px;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  cursor: pointer;
  border-radius: 0;
  border: 0;
  background: none;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

input, textarea, select {
  font-family: inherit;
  border-radius: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: var(--a200);
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

/* structure */
.kt-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.kt-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 2px solid var(--text);
  padding: 12px 16px 10px;
}

.kt-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--n700);
}

.kt-h1 {
  font-size: 34px;
  margin-top: 2px;
}

.kt-h2 {
  font-size: 22px;
}

.kt-body {
  padding: 0 16px 20px;
}

.kt-rule {
  height: 2px;
  background: var(--text);
  border: 0;
  margin: 0;
}

.kt-hair {
  height: 1px;
  background: var(--n300);
  border: 0;
  margin: 0;
}

.kt-sec {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--n700);
  padding: 14px 0 6px;
}

/* rows */
.kt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--n300);
  width: 100%;
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  text-align: left;
  color: var(--text);
}

.kt-row:last-child {
  border-bottom: 0;
}

.kt-grow {
  flex: 1;
  min-width: 0;
}

.kt-sub {
  font-size: 12.5px;
  color: var(--n700);
  line-height: 1.4;
}

.kt-red {
  color: var(--a700);
}

.kt-green {
  color: var(--green);
}

.kt-mut {
  color: var(--n600);
}

.kt-num {
  font-variant-numeric: tabular-nums;
}

/* buttons */
.kt-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--text);
  background: none;
  color: var(--text);
}

.kt-btn.pri {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.kt-btn.pri:hover {
  background: var(--a600);
  border-color: var(--a600);
}

.kt-btn:not(.pri):hover {
  background: var(--n200);
}

.kt-btn.blk {
  width: 100%;
}

.kt-btn.sm {
  padding: 8px 11px;
  font-size: 11.5px;
}

.kt-btn .kt-end {
  margin-left: auto;
  display: flex;
}

.kt-icon {
  width: 38px;
  height: 38px;
  border: 2px solid var(--text);
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex: none;
}

.kt-icon.sm {
  width: 30px;
  height: 30px;
  border-width: 1px;
}

.kt-icon:hover {
  background: var(--n200);
}

/* segmented / chips */
.kt-seg {
  display: flex;
  border: 2px solid var(--text);
}

.kt-seg button {
  flex: 1;
  padding: 11px 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: 0;
  border-right: 2px solid var(--text);
  color: var(--text);
  text-align: center;
}

.kt-seg button:last-child {
  border-right: 0;
}

.kt-seg button[data-on="1"], .kt-seg button.active {
  background: var(--accent);
  color: #fff;
}

.kt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kt-chip {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--text);
  background: none;
  color: var(--text);
}

.kt-chip[data-on="1"], .kt-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.kt-chip.q {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 13px;
  border-width: 1px;
  border-color: var(--n400);
  padding: 9px 12px;
}

.kt-chip.q:hover {
  border-color: var(--text);
  background: var(--n200);
}

/* presence marks */
.kt-vl {
  display: inline-flex;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.kt-vl i {
  font-style: normal;
  color: var(--n600);
}

.kt-vl i[data-on="1"] {
  color: var(--text);
}

/* inputs */
.kt-in {
  border: 1px solid var(--n400);
  background: #fff;
  padding: 9px 10px;
  font-size: 14px;
  color: var(--text);
  width: 100%;
}

.kt-in:focus {
  border-color: var(--text);
}

.kt-qty {
  width: 74px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.kt-qty.edited {
  border-color: var(--accent);
  background: var(--a100);
}

/* steps */
.kt-step {
  display: flex;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--n300);
  padding: 13px 0;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.5;
  align-items: flex-start;
}

.kt-step[data-done="1"], .kt-step.done {
  color: var(--n500);
}

.kt-step[data-done="1"] .kt-no, .kt-step.done .kt-no {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.kt-no {
  flex: none;
  width: 24px;
  height: 24px;
  border: 2px solid var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* tick box */
.kt-box {
  width: 22px;
  height: 22px;
  border: 2px solid var(--text);
  flex: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.kt-box[data-on="1"], .kt-box.checked {
  background: var(--text);
}

.kt-struck {
  text-decoration: line-through;
  color: var(--n500);
}

/* nav */
.kt-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  background: var(--bg);
  border-top: 2px solid var(--text);
}

.kt-nav > button {
  position: relative;
  flex: 1;
  background: none;
  border: 0;
  padding: 10px 4px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--n700);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-right: 1px solid var(--n300);
}

.kt-nav > button:last-child {
  border-right: 0;
}

.kt-nav > button[data-on="1"], .kt-nav > button.active {
  color: var(--accent-text);
}

.kt-badge {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(9px);
  background: var(--accent);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 0 4px;
  min-width: 15px;
  text-align: center;
}

/* modal sheets */
.kt-back {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(32, 30, 29, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.kt-sheet {
  background: var(--bg);
  width: 100%;
  max-width: 640px;
  max-height: 86vh;
  overflow: auto;
  border-top: 2px solid var(--text);
  padding: 14px 16px 26px;
}

.kt-sheet-h {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--text);
  margin-bottom: 12px;
}

/* panels & stats */
.kt-panel {
  background: var(--surface);
  padding: 12px 14px;
}

.kt-empty {
  padding: 28px 4px;
  color: var(--n600);
  font-size: 14px;
}

.kt-bar {
  height: 8px;
  background: var(--n300);
  margin-top: 5px;
}

.kt-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
}

/* toasts */
.kt-toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 86px;
  z-index: 60;
  max-width: 608px;
  margin: 0 auto;
  background: var(--text);
  color: #fff;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.kt-toast button {
  background: none;
  border: 0;
  color: var(--a200);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* candidate card & standardization badge */
.kt-card {
  border: 1px solid var(--n400);
  background: #fff;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.kt-badge-offer {
  display: inline-block;
  background: var(--a100);
  color: var(--a700);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 4px;
}

/* ---------------------------------------------------------------------------
   Month presence grid
   --------------------------------------------------------------------------- */
.kt-mhead {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 2px solid var(--text);
  padding-bottom: 6px;
}

.kt-mhead span {
  text-align: left;
}

.kt-month {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-left: 1px solid var(--n300);
  border-top: 1px solid var(--n300);
}

.kt-mcell {
  min-height: 58px;
  padding: 4px 4px 5px;
  background: none;
  border: 0;
  border-right: 1px solid var(--n300);
  border-bottom: 1px solid var(--n300);
  text-align: left;
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kt-mcell.empty {
  background: var(--n200);
}

.kt-mcell[data-sel="1"] {
  background: var(--accent);
  color: #fff;
}

.kt-mday {
  font-size: 12px;
  font-weight: 600;
}

.kt-mgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}

.kt-mbox {
  font-style: normal;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  height: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--n400);
  color: var(--n700);
}

.kt-mbox[data-on="1"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.kt-mcell[data-sel="1"] .kt-mbox {
  border-color: rgba(255, 255, 255, 0.55);
  color: rgba(255, 255, 255, 0.85);
}

.kt-mcell[data-sel="1"] .kt-mbox[data-on="1"] {
  background: #fff;
  border-color: #fff;
  color: var(--accent-text);
}

/* Swap affordance on a week meal line */
.kt-swap {
  flex: none;
  font-size: 13px;
  line-height: 1;
  padding: 4px 6px;
  border: 1px solid var(--n400);
  color: var(--n700);
  cursor: pointer;
}

.kt-swap:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* A shortage block carries the accent, per the design system */
.kt-panel.accent {
  border-left: 3px solid var(--accent);
}

/* Small buttons still need a thumb-sized target */
.kt-btn.sm {
  min-height: 38px;
}

.kt-chip,
.kt-icon {
  min-height: 38px;
}

/* ---------------------------------------------------------------------------
   Settings form
   --------------------------------------------------------------------------- */
.kt-field {
  display: block;
  margin-bottom: 10px;
}

.kt-field .kt-kicker {
  display: block;
  margin-bottom: 4px;
}

.kt-grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.kt-grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 520px) {
  .kt-grid4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------------------------------------------------------------------------
   Week — today carries the accent, so the eye lands on it first
   --------------------------------------------------------------------------- */
.kt-dayrow {
  border-bottom: 2px solid var(--text);
}

.kt-daymark {
  width: 46px;
  flex: none;
}

.kt-dayletter {
  display: block;
  font-weight: 800;
  color: var(--n700);
}

.kt-daynum {
  display: block;
}

.kt-dayrow[data-today="1"] {
  background: var(--n200);
  border-left: 4px solid var(--accent);
  padding-left: 10px;
  margin-left: -14px;
  margin-right: -14px;
  padding-right: 10px;
}

.kt-dayrow[data-today="1"] .kt-dayletter {
  color: var(--accent-text);
}

.kt-dayrow[data-today="1"] .kt-daynum {
  font-weight: 700;
  color: var(--text);
}

.kt-todaytag {
  display: block;
  color: var(--accent-text);
  font-weight: 700;
}

/* A meal already logged recedes, but stays readable */
.kt-mealblock[data-done="1"] {
  opacity: 0.5;
}

.kt-mealblock[data-done="1"] .kt-todaytag {
  opacity: 1;
}

/* ---------------------------------------------------------------------------
   Recipe editor
   --------------------------------------------------------------------------- */
.kt-editline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--n300);
}

.kt-editline select,
.kt-editline textarea {
  flex: 1;
  min-width: 0;
}

.kt-editline .kt-num {
  width: 84px;
  flex: none;
}

.kt-editline .kt-no {
  flex: none;
}

.kt-h1in {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  border: 0;
  border-bottom: 2px solid var(--text);
  padding-left: 0;
}

/* ---------------------------------------------------------------------------
   Shop — where to buy, shown on the row
   --------------------------------------------------------------------------- */
.kt-planbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 2px solid var(--text);
  margin-bottom: 6px;
}

.kt-storeplan {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid var(--n300);
}

.kt-storechip {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--n400);
  padding: 6px 9px;
  min-height: 38px;
}

.kt-offer {
  color: var(--text);
}

.kt-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 5px;
}

/* A dictionary entry with nothing usable behind it */
.kt-row.kt-needs {
  border-left: 3px solid var(--accent);
  padding-left: 8px;
}

/* Store chips are tappable filters */
.kt-storechip {
  background: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.kt-storechip[data-on="1"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.kt-storechip[data-on="1"] .kt-sub {
  color: #ffffff;
}

.kt-storechip[data-clear="1"] {
  border-style: dashed;
}

/* A pack size taken from the offer rather than the default */
.kt-btn.kt-fromoffer {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------------------------------------------------------------------------
   AI Recipes, Fridge, Staples & Unit Conversion Tables
   --------------------------------------------------------------------------- */
.kt-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #ec3013, #9b1dcf);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
}

.kt-ai-card {
  background: #fff;
  border: 2px solid var(--text);
  padding: 14px;
  margin: 12px 0;
  box-shadow: 3px 3px 0 rgba(32, 30, 29, 0.9);
  transition: all 0.2s ease;
}

.kt-ai-card.is-active {
  border-color: var(--accent);
  background: #fffdfc;
  box-shadow: 3px 3px 0 var(--accent);
}

.kt-ai-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  margin-right: 6px;
  animation: ktPulse 1.2s infinite ease-in-out;
  vertical-align: middle;
}

@keyframes ktPulse {
  0% { transform: scale(0.8); opacity: 0.4; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.4; }
}

.kt-ai-recipe-box {
  background: var(--n100);
  border: 1px solid var(--n400);
  padding: 12px;
  margin-top: 10px;
}

.kt-ai-prompt-chip {
  display: inline-block;
  background: var(--n200);
  border: 1px solid var(--n400);
  padding: 4px 9px;
  font-size: 12px;
  cursor: pointer;
  margin: 3px 4px 3px 0;
  transition: all 0.15s;
}

.kt-ai-prompt-chip:hover {
  background: var(--a100);
  border-color: var(--accent);
  color: var(--accent-text);
}

.kt-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin: 8px 0;
}

.kt-store-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--n400);
  cursor: pointer;
  user-select: none;
}

.kt-store-check[data-checked="1"] {
  border-color: var(--text);
  background: var(--a100);
  font-weight: 600;
}

.kt-staple-tag {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1px 6px;
}

.kt-unit-badge {
  display: inline-block;
  background: var(--n200);
  border: 1px solid var(--n400);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 5px;
  color: var(--n800);
}

.kt-unit-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 13px;
}

.kt-unit-table th,
.kt-unit-table td {
  padding: 7px 8px;
  text-align: left;
  border-bottom: 1px solid var(--n300);
}

.kt-unit-table th {
  background: var(--n200);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kt-fridge-stats {
  display: flex;
  gap: 8px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.kt-stat-box {
  flex: 1;
  min-width: 120px;
  background: #fff;
  border: 1px solid var(--n300);
  padding: 8px 10px;
}

.kt-stat-box .kt-num {
  font-size: 18px;
  font-weight: 700;
  display: block;
}

/* An amount you can tap to read in another unit */
.kt-unit-tap {
  cursor: pointer;
  border-bottom: 1px dotted var(--n400);
  display: inline-block;
}

.kt-unitsel {
  font-size: 12.5px;
  padding: 4px 6px;
  border: 1px solid var(--n300);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
}

/* ---------------------------------------------------------------------------
   The wait while a local model writes a recipe — a dog chasing a cat, in the
   16-bit idiom. A minute of staring at a disabled button feels broken; a minute
   of watching this does not.
   --------------------------------------------------------------------------- */

.kt-chase {
  position: relative;
  height: 96px;
  overflow: hidden;
  border: 2px solid var(--text);
  background: linear-gradient(#bfe3f5 0%, #bfe3f5 62%, #7ec850 62%, #7ec850 78%, #5aa83c 78%);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Parallax: hills drift, ground tears past, so the runners read as running */
.kt-chase-sky,
.kt-chase-ground {
  position: absolute;
  left: 0;
  width: 200%;
  pointer-events: none;
}

.kt-chase-sky {
  top: 10px;
  height: 26px;
  background-image:
    linear-gradient(#fff 0 0), linear-gradient(#fff 0 0), linear-gradient(#fff 0 0);
  background-repeat: no-repeat;
  background-size: 36px 8px, 22px 6px, 48px 10px;
  background-position: 8% 4px, 34% 14px, 68% 0;
  opacity: 0.85;
  animation: kt-chase-drift 5.5s linear infinite;
}

.kt-chase-ground {
  bottom: 0;
  height: 22px;
  background-image: repeating-linear-gradient(
    90deg,
    #4a9331 0 6px,
    transparent 6px 22px
  );
  background-size: 40px 4px;
  background-repeat: repeat-x;
  background-position: 0 6px;
  animation: kt-chase-drift 0.55s linear infinite;
}

@keyframes kt-chase-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.kt-chase-runner {
  position: absolute;
  bottom: 16px;
  width: 56px;
  height: 38px;
}

/* The gap opens and closes: the dog never quite gets there */
.kt-chase-cat {
  left: 52%;
  animation: kt-chase-bob 0.28s steps(2, end) infinite,
    kt-chase-lead 2.6s ease-in-out infinite;
}

.kt-chase-dog {
  left: 20%;
  width: 64px;
  animation: kt-chase-bob 0.28s steps(2, end) infinite -0.14s,
    kt-chase-gain 2.6s ease-in-out infinite;
}

@keyframes kt-chase-bob {
  from { transform: translateY(0); }
  to { transform: translateY(-4px); }
}

@keyframes kt-chase-lead {
  0%, 100% { margin-left: 0; }
  50% { margin-left: -14px; }
}

@keyframes kt-chase-gain {
  0%, 100% { margin-left: 0; }
  50% { margin-left: 10px; }
}

/* Two leg frames stacked, swapped on the beat */
.kt-chase-runner .kt-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.kt-chase-runner .kt-frame-b { opacity: 0; }

.kt-chase-runner .kt-frame-a { animation: kt-frame-a 0.28s steps(1, end) infinite; }
.kt-chase-runner .kt-frame-b { animation: kt-frame-b 0.28s steps(1, end) infinite; }

@keyframes kt-frame-a {
  0%, 49.9% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes kt-frame-b {
  0%, 49.9% { opacity: 0; }
  50%, 100% { opacity: 1; }
}

.kt-chase-caption {
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--n800);
  text-shadow: 0 1px 0 #fff;
}

@media (prefers-reduced-motion: reduce) {
  .kt-chase-sky,
  .kt-chase-ground,
  .kt-chase-cat,
  .kt-chase-dog,
  .kt-chase-runner .kt-frame-a,
  .kt-chase-runner .kt-frame-b {
    animation: none;
  }
  .kt-chase-runner .kt-frame-b { opacity: 0; }
}
