.play-simple {
  --play-paper: #f4f1e9;
  --play-ink: #2c2d28;
  --play-muted: #6b6d64;
  --play-line: #31352a20;
  --play-accent: #b5503d;
  --play-sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --play-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  -webkit-font-smoothing: antialiased;
}
.play-home {
  position: fixed;
  z-index: 45;
  top: max(24px, env(safe-area-inset-top));
  left: max(24px, env(safe-area-inset-left));
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #ffffff88;
  border-radius: 50%;
  background: #f4f1e9eb;
  color: var(--play-ink);
  box-shadow: 0 3px 18px #272a2414;
  backdrop-filter: blur(12px);
  text-decoration: none;
  touch-action: manipulation;
  transition: background .2s;
}
.play-home svg { transition: transform .2s; }
.play-home:hover { background: var(--play-paper); }
.play-home:hover svg { transform: translateX(-2px); }
.lab-hiring-hover { cursor: pointer !important; }
.lab-hiring-link {
  position: fixed;
  z-index: 13;
  left: 50%;
  bottom: max(132px, calc(env(safe-area-inset-bottom) + 132px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  padding: 12px 19px;
  border: 1px solid #ffffff99;
  border-radius: 3px;
  color: var(--play-ink);
  background: var(--play-paper);
  box-shadow: 0 6px 30px #272a241a;
  font: 400 13px/1.4 var(--play-sans);
  text-decoration: none;
  white-space: nowrap;
}
.lab-hiring-link[hidden] { display: none; }
.lab-hiring-link > span:first-child { color: var(--play-accent); padding-right: 14px; border-right: 1px solid var(--play-line); }
.lab-hiring-link:hover { background: #fffaf0; }
.lab-hiring-link:focus-visible { outline: 2px solid var(--play-accent); outline-offset: 4px; }
.play-simple:has(.play-overlay) .lab-hiring-link { visibility: hidden; }
.play-dock {
  position: fixed;
  z-index: 12;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(342px, calc(100% - 32px));
  border: 1px solid #ffffff99;
  border-radius: 20px;
  background: #f4f1e9eb;
  box-shadow: 0 4px 12px #272a240a, 0 12px 36px #272a241a;
  backdrop-filter: blur(16px);
  color: var(--play-ink);
  font: 400 13px/1.4 var(--play-sans);
}
.play-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px 44px;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
}
.play-robots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.play-robot-choice,
.play-ball,
.play-primary,
.play-help-link {
  appearance: none;
  box-sizing: border-box;
  border: 0;
  border-radius: 2px;
  color: inherit;
  background: none;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color .18s, background .18s;
}
.play-robot-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  min-height: 68px;
  padding: 5px 3px 12px;
  border-radius: 12px;
  color: var(--play-muted);
  font-size: 11px;
  line-height: 1.2;
}
.play-robot-icon { flex: none; width: 26px; height: 32px; transition: transform .18s; }
.play-robot-choice::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: calc(50% - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--play-accent);
  opacity: 0;
  transition: opacity .18s;
}
.play-robot-choice[aria-pressed="true"] { color: var(--play-ink); background: #ded8cb88; font-weight: 500; }
.play-robot-choice[aria-pressed="true"]::after { opacity: 1; }
.play-robot-choice:hover:not(:disabled) { color: var(--play-ink); background: #e7e3d780; }
.play-robot-choice:hover:not(:disabled) .play-robot-icon { transform: translateY(-2px); }
.play-ball {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 54px;
  padding: 0 0 0 8px;
  border-left: 1px solid var(--play-line);
  border-radius: 0;
  color: var(--play-muted);
  font-size: 11px;
  line-height: 1.2;
}
.play-ball svg { width: 26px; height: 32px; }
.play-ball:hover:not(:disabled) { color: var(--play-accent); }
.play-toolbar :disabled { opacity: .45; cursor: wait; }
.play-home:focus-visible,
.play-dock :focus-visible,
.play-card :focus-visible { outline: 1px solid var(--play-accent); outline-offset: 3px; }
.play-help-link {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  color: var(--play-muted);
  font: 400 20px/1 var(--play-serif);
}
.play-help-link:hover { color: var(--play-ink); background: #ded8cb66; }
.play-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.play-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 28px 24px;
  background: #e7e6de73;
  backdrop-filter: blur(9px);
  color: var(--play-ink);
  font: 400 14px/1.65 var(--play-sans);
}
.play-card {
  box-sizing: border-box;
  width: min(410px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 38px;
  border: 1px solid #ffffffaa;
  border-radius: 2px;
  background: var(--play-paper);
  box-shadow: 0 20px 90px #25291e17;
}
.play-card h1 { margin: 20px 0 12px; font: 400 39px/1.15 var(--play-serif); letter-spacing: -.055em; }
.play-card p { margin: 0; color: var(--play-muted); }
.play-card .play-eyebrow { color: var(--play-muted); font-size: 11px; letter-spacing: .07em; }
.play-help { display: grid; grid-template-columns: auto 1fr; gap: 0 24px; margin: 27px 0 30px; font-size: 13px; }
.play-help dt, .play-help dd { padding: 9px 0; border-bottom: 1px solid var(--play-line); }
.play-help dt { color: var(--play-ink); font-weight: 500; }
.play-help dd { margin: 0; color: var(--play-muted); }
.play-primary { display: block; min-height: 46px; width: 100%; margin-top: 26px; padding: 11px 18px; color: var(--play-paper); background: var(--play-ink); font-size: 13px; }
.play-primary:hover { background: #474b40; }
.play-help + .play-primary { margin-top: 0; }
.play-loading { z-index: 35; }
.play-loading .play-card { padding-block: 44px; }
/* The original touch controls keep their geometry and gesture handling. */
.play-simple #touch-btns { display: none !important; }
.play-simple #touch-ui #touch-stick { border-color: #f4f1e999; background: #f4f1e92e; }
.play-simple #touch-ui #touch-stick .nub { border-color: #f4f1e9bb; background: #f4f1e97a; }
.play-simple #touch-ui #touch-stick.live { border-color: #b5503d88; }
.play-simple #touch-ui #touch-stick.live .nub { border-color: #b5503daa; background: #b5503d40; }
.play-dock.is-touch { top: calc(env(safe-area-inset-top) + 80px); bottom: auto; }
@media (prefers-reduced-motion: reduce) {
  .play-simple *, .play-simple *::after { transition: none !important; }
}
@media (max-width: 600px) {
  .lab-hiring-link { bottom: max(28px, calc(env(safe-area-inset-bottom) + 20px)); max-width: calc(100% - 24px); gap: 10px; padding: 12px 14px; }
  .play-home { top: calc(env(safe-area-inset-top) + 14px); left: max(16px, env(safe-area-inset-left)); width: 44px; height: 44px; }
  .play-dock, .play-dock.is-touch { top: calc(env(safe-area-inset-top) + 74px); bottom: auto; left: 12px; transform: none; width: calc(100% - 24px); border-radius: 18px; }
  .play-toolbar { grid-template-columns: minmax(0, 1fr) 48px 44px; gap: 5px; padding: 8px; }
  .play-robots { gap: 2px; }
  .play-ball { padding-left: 8px; }
  .play-card { padding: 29px; }
  .play-card h1 { font-size: 34px; }
}
@media (max-width: 350px) {
  .play-toolbar { grid-template-columns: minmax(0, 1fr) 44px 44px; gap: 3px; padding: 6px; }
}
