:root {
  --bg: #efede7;
  --card: #ffffff;
  --ink: #16181d;
  --soft: #7b808a;
  --room: #f3f4f7;
  --accent: #3b6cff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background:
    radial-gradient(60% 50% at 20% 0%, #ffffff, transparent 70%),
    radial-gradient(50% 45% at 100% 100%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 12px 14px;
}

.bot {
  position: relative;
  width: min(372px, 100%, 86vh);
  padding: 13px 13px 11px;
  border-radius: 22px;
  background: var(--card);
  box-shadow:
    0 0 0 1px rgba(22, 24, 29, 0.05),
    0 2px 4px rgba(22, 24, 29, 0.04),
    0 20px 40px -18px rgba(22, 24, 29, 0.22),
    0 50px 80px -44px color-mix(in srgb, var(--accent) 40%, rgba(22, 24, 29, 0.3));
}
.bot__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 0 3px 9px; }
.bot__title { min-width: 0; }
.bot__title > span { display: block; font-size: 11px; line-height: 14px; font-weight: 640; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.bot__title .roll { height: 21px; overflow: hidden; font-size: 16px; line-height: 21px; font-weight: 680; font-stretch: 106%; letter-spacing: -0.012em; }
.bot__title .roll span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bot__batt { flex: none; display: flex; align-items: center; gap: 6px; padding: 5px 9px 5px 8px; border-radius: 99px; background: var(--room); font-size: 12px; line-height: 14px; font-weight: 660; }
.bot__batt svg { width: 22px; height: 12px; overflow: visible; }
.batt__case { fill: none; stroke: var(--ink); stroke-width: 1.3; opacity: 0.55; }
.batt__tip { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; opacity: 0.55; }
.batt__fill { fill: var(--ink); transform-box: fill-box; transform-origin: 0 50%; }

.bot__map { display: block; width: 100%; height: auto; overflow: visible; }
.room { cursor: pointer; outline: none; }
.room__floor { fill: var(--room); stroke: rgba(22, 24, 29, 0.09); stroke-width: 1; transition: stroke 0.25s ease, fill 0.5s ease; }
.room.is-peek .room__floor, .room:focus-visible .room__floor { stroke: var(--accent); stroke-width: 1.6; }
.room.is-done .room__floor { fill: color-mix(in srgb, var(--accent) 7%, #ffffff); }
/* the cleaned stripes: the robot's own path, drawn wide */
.room__swath { fill: none; stroke: color-mix(in srgb, var(--accent) 24%, transparent); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.room__line { fill: none; stroke: color-mix(in srgb, var(--accent) 55%, transparent); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 5; pointer-events: none; opacity: 0.7; }
.room__name { font-size: 9.5px; font-weight: 640; fill: var(--ink); pointer-events: none; }
.room__pct { font-size: 9.5px; font-weight: 600; fill: var(--soft); pointer-events: none; text-anchor: end; transition: fill 0.4s ease; }
.room.is-now .room__pct, .room.is-done .room__pct { fill: var(--accent); }
.dock { fill: var(--ink); opacity: 0.14; }
.way { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 1 4; opacity: 0; pointer-events: none; }
.robot { pointer-events: none; }
.robot circle { fill: var(--ink); }
.robot .robot__ring { fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 1.2; }
.robot__eye { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; }

.bot__chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-top: 9px; }
.chip { position: relative; height: 30px; padding: 0 4px; border: 0; border-radius: 10px; background: var(--room); color: var(--ink); font: inherit; font-size: 11.5px; font-weight: 620; white-space: nowrap; overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color 0.3s ease, box-shadow 0.25s ease; }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip__fill { position: absolute; inset: 0; background: color-mix(in srgb, var(--accent) 18%, transparent); transform-origin: 0 50%; transform: scaleX(0); }
.chip span:last-child { position: relative; }
.chip.is-now { box-shadow: inset 0 0 0 1.5px var(--accent); }
.chip.is-peek { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent); }
.chip.is-done { color: color-mix(in srgb, var(--accent) 80%, #000000); }
.bot__foot { display: flex; justify-content: space-between; gap: 10px; padding: 8px 3px 0; font-size: 11.5px; line-height: 15px; color: var(--soft); }
.bot__foot strong { color: var(--ink); font-weight: 680; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #14151a;
  stroke: #ffffff;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(20, 21, 26, 0.3));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}

/* big in the poster and on a desk, unchanged in the phone's box */
@media (min-width: 700px) and (min-height: 500px) {
  .bot { zoom: 1.2; }
}
@media (min-width: 1100px) and (min-height: 760px) {
  .bot { zoom: 1.6; }
}
