:root {
  color-scheme: light;
  --ink: #343e36;
  --muted: #758073;
  --sage: #647f68;
  --cream: #fcfaf0;
  --line: #56644c25;
  --gold: #bda576;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #e1e5d8;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button {
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible {
  outline: 3px solid #446747;
  outline-offset: 4px;
}
button:disabled {
  cursor: wait;
  opacity: 0.48;
}
button[hidden],
[hidden] {
  display: none !important;
}
svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.playroom {
  position: relative;
  min-height: 600px;
  height: 100svh;
  overflow: hidden;
  background: #e1e5d8;
}
#stage {
  position: absolute;
  inset: 0;
}
#stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 25px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}
.topbar > * {
  pointer-events: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #6c846b;
  color: #faf8e9;
  font-family: Georgia, serif;
  font-size: 35px;
  font-weight: bold;
  line-height: 1;
  border-radius: 11px;
  padding-bottom: 9px;
  box-shadow: 0 4px 20px #66715a16;
}
.brand > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand strong {
  font-size: 13px;
  letter-spacing: 0.11em;
}
.brand strong > span {
  font-weight: 400;
}
.brand-sub {
  font-size: 7px;
  letter-spacing: 0.19em;
  color: #737f6a;
}
.room-label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: #6a7864;
  padding: 9px 13px;
  border-radius: 50px;
  background: #fffcf18a;
  backdrop-filter: blur(8px);
}
.room-label > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8fa986;
}
.icon-button {
  display: grid;
  place-items: center;
  background: #fffcf1cf;
  color: #5a6c56;
  border: 1px solid #fff9;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  box-shadow: 0 4px 16px #50664412;
}
.icon-button:hover {
  background: #fffef8;
}
.companion-card {
  position: absolute;
  top: 105px;
  left: 32px;
  width: 255px;
  padding: 20px;
  background: #fbfaf1e6;
  border: 1px solid #fff9;
  border-radius: 15px;
  box-shadow: 0 7px 30px #3f553912;
  backdrop-filter: blur(14px);
}
.companion-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.tiny-label {
  font-size: 7px;
  letter-spacing: 0.15em;
  color: #879075;
}
.live-tag {
  font-size: 6px;
  letter-spacing: 0.11em;
  color: #728465;
  background: #e5eadc;
  border-radius: 3px;
  padding: 4px 5px;
  white-space: nowrap;
}
.companion-card h1 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.12;
  margin: 14px 0 17px;
  max-width: 180px;
}
.companion-card h1 > span {
  color: #aa965f;
}
.activity-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: #637857;
}
.activity-dot {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #94aa76;
}
.needs {
  display: grid;
  gap: 10px;
  padding-top: 16px;
}
.needs label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  font-size: 9px;
  color: #76806c;
}
.needs progress {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 98px;
  height: 4px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #e4e7d9;
  color: #a4b28b;
}
.needs progress::-webkit-progress-bar {
  background: #e4e7d9;
  border-radius: 8px;
}
.needs progress::-webkit-progress-value {
  background: #a4b28b;
  border-radius: 8px;
}
.needs progress::-moz-progress-bar {
  background: #a4b28b;
  border-radius: 8px;
}
#happiness::-webkit-progress-value {
  background: #d2b779;
}
#happiness::-moz-progress-bar {
  background: #d2b779;
}
#fullness::-webkit-progress-value {
  background: #b4b990;
}
#fullness::-moz-progress-bar {
  background: #b4b990;
}
#status {
  font-size: 9px;
  line-height: 1.7;
  color: #8a907d;
  margin: 16px 0 0;
  min-height: 31px;
}
.room-tools {
  position: absolute;
  right: 32px;
  top: 105px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.tool-button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 106px;
  min-height: 40px;
  padding: 11px 13px;
  border: 1px solid #fff9;
  border-radius: 10px;
  background: #fcfaf0dd;
  color: #718066;
  font-size: 10px;
  box-shadow: 0 3px 20px #53684e0b;
  backdrop-filter: blur(12px);
}
.tool-button svg {
  width: 15px;
  height: 15px;
}
.tool-button[aria-pressed='true'] {
  background: #e2ead9ed;
  color: #4f6c48;
  border-color: #d2dfc8;
}
.tool-button:hover {
  background: #fffef6;
}
.caption-area {
  position: absolute;
  bottom: 255px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 40px));
  text-align: center;
  pointer-events: none;
}
#caption {
  display: table;
  margin: 0 auto;
  padding: 12px 21px;
  max-width: 100%;
  background: #fbfaf0ed;
  border: 1px solid #fff9;
  border-radius: 18px 18px 18px 5px;
  box-shadow: 0 5px 25px #2b412515;
  font-size: 13px;
  line-height: 1.6;
  color: #566647;
  backdrop-filter: blur(8px);
}
#caption:empty {
  display: none;
}
#tour-progress {
  font-size: 9px;
  letter-spacing: 0.05em;
  color: #607154;
  text-shadow: 0 1px 6px #fafbeb;
  padding: 8px 0 0;
  margin: 0;
}
#tour-progress:empty {
  display: none;
}
.interaction-dock {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  width: min(970px, calc(100% - 64px));
  padding: 16px 21px 17px;
  border: 1px solid #fff9;
  border-radius: 18px;
  background: #fbfaf1ed;
  box-shadow: 0 7px 35px #384f3119;
  backdrop-filter: blur(16px);
}
.call-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.call-button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #698462;
  background: #6e8866;
  color: #fffef2;
  border-radius: 9px;
  padding: 11px 16px;
  min-height: 40px;
  font-size: 11px;
}
.call-button:hover {
  background: #617b58;
}
.call-button svg {
  width: 16px;
  height: 16px;
}
.voice-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  border: 1px solid #6778522c;
  background: #fffdf5;
  color: #6e7f60;
  border-radius: 9px;
  min-height: 40px;
  font-size: 10px;
}
.voice-button svg {
  width: 15px;
  height: 15px;
}
.voice-button[aria-pressed='true'] {
  color: #fffbe9;
  background: #b69363;
  border-color: #a68a5f;
}
#voice-help {
  margin: 0 0 0 5px;
  font-size: 8px;
  line-height: 1.7;
  color: #929781;
}
.action-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0 11px;
  font-size: 7px;
  letter-spacing: 0.14em;
  color: #8b917c;
}
.action-heading .drag-hint {
  font-size: 8px;
  letter-spacing: 0;
  color: #919884;
}
.actions {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 6px;
}
.actions button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 3px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #77856b;
  font-size: 9px;
  min-height: 55px;
  white-space: nowrap;
}
.actions button:hover {
  background: #edf0e3;
  border-color: #d6dec9;
}
.actions button[aria-pressed='true'],
.actions button.active {
  background: #e4ead9;
  border-color: #cddabf;
  color: #4f6f47;
}
.action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 21px;
  color: #9aa280;
  font-size: 26px;
  line-height: 1;
  font-family: Georgia, serif;
}
.actions button[data-action='talk'] .action-icon {
  font-size: 40px;
  transform: translateY(5px);
}
.actions button[data-action='exercise'] .action-icon {
  font-size: 27px;
}
.actions button[data-action='charge'] .action-icon {
  font-size: 26px;
  color: #b59c66;
}
.sleep-icon {
  font-size: 20px;
  align-items: end;
  gap: 2px;
}
.sleep-icon > span {
  font-size: 12px;
  align-self: start;
}
.demo-footer {
  position: absolute;
  bottom: 16px;
  left: 32px;
  right: 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
  color: #8d967e;
  font-size: 7px;
  letter-spacing: 0.1em;
}
.demo-footer > span:last-child {
  letter-spacing: 0;
}
.loading {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #e5e8db;
  color: #6c7f61;
}
.loading p {
  font-size: 12px;
  letter-spacing: 0.01em;
}
.loading-ring {
  width: 25px;
  height: 25px;
  border: 2px solid #7f946330;
  border-top-color: #839775;
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.start-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #c8d2b765;
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 28px;
}
.welcome-card {
  width: 370px;
  max-width: 100%;
  background: #fcfbf0f5;
  border: 1px solid #ffffffe6;
  border-radius: 24px;
  box-shadow: 0 25px 90px #2f4d3030;
  padding: 35px;
  text-align: center;
}
.welcome-mark {
  position: relative;
  margin: 0 auto 27px;
  width: 44px;
  height: 44px;
  background: #738768;
  border-radius: 16px;
}
.welcome-mark > span {
  position: absolute;
  top: 12px;
  left: -8px;
  width: 14px;
  height: 21px;
  background: #b4bf96;
  border: 3px solid #738768;
  border-radius: 50%;
}
.welcome-mark > span:nth-child(2) {
  left: auto;
  right: -8px;
}
.welcome-mark > i {
  font-size: 33px;
  line-height: 1;
  font-weight: 400;
  font-family: Georgia, serif;
  display: block;
  padding-top: 0;
  color: #f7e7b2;
  font-style: normal;
}
.welcome-card h2 {
  font-size: 39px;
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 400;
  margin: 16px 0 19px;
}
.welcome-card h2 > span {
  color: #b2a071;
}
#welcome-copy {
  font-size: 11px;
  line-height: 1.9;
  color: #7c866f;
  margin: 0 0 25px;
}
#start-demo {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: #6c8464;
  color: #fffdef;
  border: 1px solid #687e60;
  border-radius: 10px;
  font-size: 12px;
  padding: 15px 17px;
}
#start-demo:hover {
  background: #5b7754;
}
#start-demo > span {
  font-size: 19px;
}
.welcome-note {
  font-size: 8px;
  line-height: 1.8;
  color: #9ba189;
  margin: 15px 0 0;
}
@media (max-width: 1100px) {
  .companion-card {
    width: 222px;
    left: 24px;
    padding: 17px;
  }
  .companion-card h1 {
    font-size: 22px;
  }
  .topbar {
    padding: 22px 24px;
  }
  .room-tools {
    right: 24px;
  }
  .live-tag {
    display: none;
  }
  .interaction-dock {
    width: calc(100% - 48px);
  }
  .actions button {
    font-size: 8px;
  }
  .caption-area {
    bottom: 250px;
  }
  .demo-footer {
    left: 24px;
    right: 24px;
  }
}
@media (max-width: 780px) {
  .playroom {
    min-height: 680px;
  }
  .topbar {
    padding: 18px;
  }
  .room-label {
    display: none;
  }
  .brand-sub {
    font-size: 6px;
  }
  .companion-card {
    top: 78px;
    left: 18px;
    width: 190px;
    padding: 14px;
    border-radius: 12px;
  }
  .companion-card h1 {
    font-size: 20px;
    margin: 12px 0;
  }
  .companion-heading .tiny-label {
    font-size: 6px;
  }
  .activity-row {
    font-size: 9px;
    padding-bottom: 12px;
  }
  .needs {
    gap: 8px;
    padding-top: 12px;
  }
  .needs label {
    font-size: 8px;
  }
  .needs progress {
    width: 73px;
  }
  #status {
    font-size: 8px;
    min-height: 0;
    margin-top: 12px;
  }
  .room-tools {
    right: 18px;
    top: 78px;
    gap: 7px;
  }
  .tool-button {
    min-width: 0;
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 10px;
    border-radius: 9px;
  }
  .tool-button > span {
    display: none;
  }
  .tool-button svg {
    width: 15px;
    height: 15px;
  }
  .interaction-dock {
    bottom: 35px;
    width: calc(100% - 30px);
    padding: 14px 14px 12px;
    border-radius: 15px;
  }
  .actions {
    gap: 3px;
  }
  .actions button {
    padding: 8px 1px;
    font-size: 7px;
    min-height: 51px;
  }
  .action-icon {
    font-size: 23px;
  }
  .call-row {
    padding-bottom: 12px;
    gap: 8px;
  }
  .call-button {
    font-size: 10px;
    padding: 10px 12px;
    min-height: 36px;
  }
  .voice-button {
    font-size: 9px;
    padding: 10px;
    min-height: 36px;
  }
  #voice-help {
    font-size: 7px;
    line-height: 1.6;
  }
  .action-heading {
    padding: 12px 0 8px;
    font-size: 6px;
  }
  .action-heading .drag-hint {
    font-size: 7px;
  }
  .caption-area {
    bottom: 226px;
  }
  .demo-footer {
    left: 18px;
    right: 18px;
    bottom: 12px;
    font-size: 6px;
  }
}
@media (max-width: 540px) {
  .playroom {
    height: 100svh;
    min-height: 640px;
  }
  .topbar {
    padding: 15px 16px;
  }
  .brand-mark {
    width: 29px;
    height: 29px;
    font-size: 29px;
    border-radius: 9px;
    padding-bottom: 8px;
  }
  .brand strong {
    font-size: 11px;
  }
  .brand-sub {
    font-size: 6px;
  }
  .icon-button {
    width: 32px;
    height: 32px;
  }
  .companion-card {
    left: 16px;
    top: 70px;
    width: 170px;
    background: #fbfaf1df;
    padding: 12px;
  }
  .companion-card h1 {
    font-size: 18px;
    max-width: 150px;
    margin: 10px 0;
  }
  .activity-row {
    font-size: 8px;
    padding-bottom: 10px;
  }
  .needs {
    gap: 7px;
    padding-top: 10px;
  }
  .needs label {
    font-size: 7px;
  }
  .needs progress {
    width: 65px;
    height: 3px;
  }
  #status {
    font-size: 7px;
    line-height: 1.6;
    margin-top: 9px;
  }
  .room-tools {
    right: 16px;
    top: 70px;
  }
  .interaction-dock {
    bottom: 31px;
    left: 12px;
    right: 12px;
    width: auto;
    transform: none;
    padding: 12px 10px 9px;
    border-radius: 14px;
  }
  .call-row {
    flex-wrap: wrap;
    gap: 7px;
    padding-bottom: 9px;
  }
  .call-button {
    flex: 1;
    justify-content: center;
    font-size: 9px;
    padding: 10px 8px;
  }
  .voice-button {
    font-size: 9px;
    padding: 10px 9px;
  }
  #voice-help {
    margin: 0;
    width: 100%;
    font-size: 7px;
    text-align: center;
  }
  #voice-help br {
    display: none;
  }
  .action-heading {
    padding: 10px 2px 8px;
  }
  .action-heading .drag-hint {
    font-size: 6px;
  }
  .actions {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
  }
  .actions button {
    font-size: 7px;
    min-height: 43px;
    gap: 4px;
    padding: 5px 1px;
  }
  .action-icon {
    height: 17px;
    font-size: 21px;
  }
  .actions button[data-action='talk'] .action-icon {
    font-size: 33px;
  }
  .actions button[data-action='exercise'] .action-icon {
    font-size: 22px;
  }
  .actions button[data-action='charge'] .action-icon {
    font-size: 22px;
  }
  .actions button:nth-child(n + 6) {
    transform: translateX(50%);
  }
  .sleep-icon {
    font-size: 17px;
  }
  .sleep-icon > span {
    font-size: 10px;
  }
  .caption-area {
    bottom: 283px;
    width: calc(100% - 38px);
  }
  #caption {
    font-size: 11px;
    padding: 10px 15px;
  }
  #tour-progress {
    font-size: 8px;
  }
  .demo-footer {
    left: 15px;
    right: 15px;
    font-size: 5px;
    bottom: 11px;
  }
  .demo-footer > span:last-child {
    font-size: 6px;
  }
  .welcome-card {
    padding: 30px 26px;
  }
  .welcome-card h2 {
    font-size: 37px;
  }
}
@media (max-height: 760px) and (min-width: 781px) {
  .playroom {
    min-height: 620px;
  }
  .topbar {
    padding-top: 17px;
  }
  .companion-card,
  .room-tools {
    top: 84px;
  }
  .companion-card {
    padding: 16px;
  }
  .companion-card h1 {
    font-size: 21px;
    margin: 11px 0 12px;
  }
  .companion-card #status {
    display: none;
  }
  .interaction-dock {
    bottom: 33px;
    padding-top: 12px;
    padding-bottom: 10px;
  }
  .call-row {
    padding-bottom: 11px;
  }
  .action-heading {
    padding-top: 10px;
  }
  .caption-area {
    bottom: 230px;
  }
  .demo-footer {
    bottom: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
