/* Office expansion. Core layout and the articulated character remain in styles.css. */
.hotfix-teaser,
.office-props {
  grid-column: 1/-1;
}
.hotfix-teaser {
  background: linear-gradient(135deg, #25331c, #1b2117);
  border-color: #647d41;
}
.hotfix-teaser h3,
.office-props h3 {
  margin: 10px 0;
  font-size: 19px;
}
.hotfix-teaser p,
.office-props p {
  font-size: 12px;
  color: #b6c3a9;
}
.hotfix-teaser small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
.delivery-ready {
  border-color: var(--lime);
  color: var(--lime);
  animation: delivery-invite 3s ease-in-out infinite;
}
.office-prop-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.office-props .office-prop-feedback {
  margin: 0 0 12px;
  min-height: 6.5em;
  padding: 10px 12px;
  border-left: 2px solid var(--lime);
  background: #222b1b;
  line-height: 1.6;
  color: #e3edda;
  overflow-wrap: anywhere;
}
.office-prop-buttons button {
  min-height: 44px;
  border: 1px solid #465638;
  border-radius: 7px;
  background: #26311e;
  padding: 9px;
  font-size: 11px;
  transition:
    transform 0.15s,
    background 0.15s;
}
.office-prop-buttons button:active {
  transform: scale(0.95);
  background: #40582c;
}
.office-layers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.office-window {
  position: absolute;
  left: 13%;
  top: 2%;
  width: 66px;
  height: 60px;
  border: 3px solid #4f6240;
  border-radius: 8px;
  background: linear-gradient(#617a77, #a6aa6c);
  opacity: 0.45;
  overflow: hidden;
  transition: background 2s;
}
.office-window:before,
.office-window:after {
  content: "";
  position: absolute;
  background: #4f6240;
  z-index: 2;
}
.office-window:before {
  width: 3px;
  top: 0;
  bottom: 0;
  left: 50%;
}
.office-window:after {
  height: 3px;
  left: 0;
  right: 0;
  top: 50%;
}
.office-window span {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #f5dc8e;
  border-radius: 50%;
  top: 8px;
  right: 8px;
}
.office-window i {
  position: absolute;
  width: 30px;
  height: 9px;
  left: -10px;
  top: 30px;
  border-radius: 20px;
  background: #d3decc;
  animation: office-cloud 15s linear infinite;
}
.scene[data-shift="1"] .office-window {
  background: linear-gradient(#797e63, #d4b47f);
}
.scene[data-shift="2"] .office-window {
  background: linear-gradient(#786280, #b49b71);
}
.scene[data-shift="3"] .office-window {
  background: linear-gradient(#303d62, #596568);
}
.scene[data-shift="3"] .office-window span {
  background: #ebeece;
  box-shadow: 3px 0 0 #303d62 inset;
}
.office-printer {
  position: absolute;
  bottom: 10%;
  right: 3%;
  width: 45px;
  height: 26px;
  background: #485c3d;
  border: 2px solid #8b9e72;
  border-radius: 5px;
}
.printer-led {
  position: absolute;
  right: 5px;
  top: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
}
.office-printer-paper {
  position: absolute;
  left: 7px;
  bottom: 18px;
  padding: 4px;
  width: 28px;
  height: 30px;
  font: 5px/1.3 monospace;
  color: #26311f;
  background: #e3e9d2;
  opacity: 0;
  transform: translateY(12px);
}
.is-printing .office-printer-paper {
  animation: printer-paper 2.2s ease-in-out;
}
.is-printing .office-printer {
  animation: printer-shake 0.18s ease-in-out 8;
}
.office-plant {
  position: absolute;
  right: 1%;
  top: 30%;
  font-size: 23px;
  transform-origin: bottom;
  opacity: 0.6;
  animation: office-leaf 6s ease-in-out infinite;
}
.is-watering .office-plant {
  animation: office-water 2.2s ease-in-out;
  opacity: 1;
}
.office-duck {
  position: absolute;
  left: 9%;
  bottom: 4%;
  font-size: 18px;
  opacity: 0.65;
}
.is-ducking .office-duck {
  animation: office-duck 2.2s ease-in-out;
}
.office-diploma {
  display: none;
  position: absolute;
  right: 2%;
  top: 9%;
  background: #d8d9b6;
  border: 3px solid #8b764b;
  padding: 4px 7px;
  font: 6px/1.4 monospace;
  color: #40502e;
  transform: rotate(5deg);
}
.has-ai-diploma .office-diploma {
  display: block;
}
.office-tools {
  display: none;
  position: absolute;
  right: 7%;
  bottom: 27%;
  font-size: 22px;
  transform: rotate(-20deg);
}
.has-real-tools .office-tools {
  display: block;
}
.desk-cat {
  display: none;
  position: absolute;
  width: 75px;
  height: 40px;
  left: 0;
  bottom: 0;
  overflow: visible;
}
.has-office-cat .desk-cat {
  display: block;
  animation: cat-breathe 4s ease-in-out infinite;
}
.cat-tail {
  transform-origin: 90px 45px;
  animation: cat-tail 3.5s ease-in-out infinite;
}
.cat-eyes {
  transform-origin: 37px 28px;
  animation: cat-blink 7s infinite;
}
.is-meowing .cat-head {
  transform-origin: 37px 45px;
  animation: cat-meow 0.5s ease-in-out 4;
}
.scene.is-inspecting .rig-head {
  animation: rig-inspect 1.8s ease-in-out;
}
.scene.event-delivery .rig-arm-left {
  animation: rig-delivery 0.9s ease-in-out;
}
.scene.event-secret .rig-head {
  animation: rig-inspect 0.9s ease-in-out;
}
.fx-secret {
  color: #f4d48b;
}
.fx-delivery {
  color: var(--lime);
}
#hotfix-dialog {
  width: min(620px, calc(100% - 28px));
}
#hotfix-dialog h2 {
  font-size: 25px;
  line-height: 1.2;
  margin: 8px 0 12px;
}
#hotfix-brief {
  color: #bac8aa;
  font-size: 12px;
}
.delivery-client {
  color: var(--lime);
  font-size: 11px;
  margin: 14px 0 0;
}
.delivery-map {
  position: relative;
  padding: 15px 0 35px;
  border-bottom: 1px solid #465638;
}
.delivery-route {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
}
.delivery-node {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.delivery-node span {
  display: grid;
  place-items: center;
  margin: auto;
  width: 34px;
  height: 34px;
  background: #20291a;
  border: 1px solid #536740;
  border-radius: 50%;
}
.delivery-node b {
  display: block;
  margin-top: 7px;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.delivery-node.delivered span {
  background: #536f34;
  color: var(--lime);
}
.delivery-node.current span {
  border-color: var(--lime);
  box-shadow: 0 0 0 4px #c5f66b12;
  animation: delivery-invite 2s ease-in-out infinite;
}
.delivery-edge {
  color: #799a55;
}
.delivery-traveller {
  position: absolute;
  left: calc(8% + var(--route-step, 0) * 33%);
  bottom: 4px;
  transition: left 0.45s ease-in-out;
  font-size: 18px;
}
.delivery-meter {
  font-size: 11px;
  color: #c6d4b5;
}
#hotfix-prompt {
  font-size: 17px;
}
#hotfix-choices {
  display: grid;
  gap: 9px;
}
.delivery-choice {
  width: 100%;
  min-height: 48px;
  border: 1px solid #536740;
  border-radius: 9px;
  padding: 12px 14px;
  background: #26311e;
  text-align: left;
  font-size: 13px;
  line-height: 1.45;
  transition:
    transform 0.15s,
    background 0.15s;
}
.delivery-choice:hover {
  background: #364a26;
  border-color: #a4cc6a;
}
.delivery-choice:active {
  transform: scale(0.98);
}
.delivery-comment {
  border-left: 2px solid var(--lime);
  padding-left: 12px;
  color: #deebcf;
  font-size: 12px;
}
.delivery-comment:empty {
  display: none;
}
.delivery-last {
  padding: 12px;
  border-radius: 7px;
  border: 1px solid #4c6337;
  color: var(--lime);
  font-size: 12px;
}
.delivery-hint {
  color: var(--muted);
  font-size: 10px;
}
dialog[open] {
  animation: office-panel-in 0.2s ease-out;
}
@keyframes office-cloud {
  to {
    transform: translateX(90px);
  }
}
@keyframes office-leaf {
  50% {
    transform: rotate(7deg);
  }
}
@keyframes office-water {
  40% {
    transform: scale(1.2) rotate(-9deg);
  }
  70% {
    transform: scale(1.1) rotate(5deg);
  }
}
@keyframes printer-paper {
  15%,
  70% {
    opacity: 1;
    transform: translateY(-14px);
  }
  95% {
    opacity: 0;
    transform: translateY(-28px) rotate(15deg);
  }
}
@keyframes printer-shake {
  50% {
    transform: translateX(1px);
  }
}
@keyframes office-duck {
  20%,
  60% {
    transform: translateY(-9px) rotate(-12deg);
  }
  40%,
  80% {
    transform: rotate(10deg);
  }
}
@keyframes cat-tail {
  50% {
    transform: rotate(-16deg);
  }
}
@keyframes cat-breathe {
  50% {
    transform: translateY(-1px);
  }
}
@keyframes cat-blink {
  0%,
  43%,
  47%,
  100% {
    transform: scaleY(1);
  }
  45% {
    transform: scaleY(0.1);
  }
}
@keyframes cat-meow {
  50% {
    transform: rotate(-8deg) translateY(-3px);
  }
}
@keyframes rig-inspect {
  25%,
  65% {
    transform: rotate(-7deg);
  }
  45%,
  85% {
    transform: rotate(5deg);
  }
}
@keyframes rig-delivery {
  40% {
    transform: rotate(16deg) translateY(-5px);
  }
}
@keyframes delivery-invite {
  50% {
    box-shadow: 0 0 0 3px #c5f66b16;
  }
}
@keyframes office-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 760px) {
  .hotfix-teaser,
  .office-props {
    padding: 17px;
  }
  .office-window {
    width: 40px;
    height: 35px;
    top: 4%;
    left: 10%;
  }
  .office-window span {
    width: 8px;
    height: 8px;
  }
  .office-printer {
    width: 30px;
    height: 19px;
    right: 0;
    bottom: 3%;
  }
  .office-printer-paper {
    width: 19px;
    left: 3px;
    font-size: 4px;
    bottom: 12px;
  }
  .office-plant {
    font-size: 17px;
  }
  .office-duck {
    font-size: 14px;
    left: 1%;
  }
  .desk-cat {
    width: 53px;
    height: 29px;
    left: 10%;
    bottom: 0;
  }
  .office-diploma {
    font-size: 4px;
    padding: 2px;
  }
  #hotfix-dialog {
    padding: 18px;
  }
  #hotfix-dialog h2 {
    font-size: 21px;
  }
  .delivery-choice {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.tap-hint {
  font-size: 10px;
  color: var(--muted);
  margin: 9px 0 0;
  text-align: center;
}
.holding-prompts #tap-button {
  background: #dafa9a;
  box-shadow: 0 0 0 3px #c5f66b33;
}
.holding-prompts #tap-hint {
  color: var(--lime);
}
