:root {
  --sky: #7ec8ea;
  --wall: #f3e0b8;
  --grout: #c9a36a;
  --tile-a: #e7d3a8;
  --tile-b: #d9c08f;
  --wood: #b5683a;
  --wood-dark: #8a4624;
  --red: #e23b2e;
  --dough: #f4d7a0;
  --money: #3dcc5c;
  --money-dark: #2aa046;
  --ink: #3a2418;
  --white: #fffdf6;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.shop {
  background: var(--sky);
  color: var(--ink);
  font-family: Nunito, system-ui, sans-serif;
}

.back {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 5;
  font-size: 13px;
  color: var(--white);
  text-decoration: none;
}

.hud {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 5;
}

.coins {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff8;
  border: 3px solid #fff;
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
  font-family: Fredoka, sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.coins i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe566, #e2b000);
  border: 2px solid #c49200;
}

.awning {
  width: min(440px, 100%);
  margin: 52px auto 0;
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 10px 12px 14px;
  border-bottom: 10px solid #b4221c;
  font-family: Fredoka, sans-serif;
}

.awning b {
  display: block;
  font-size: 42px;
  letter-spacing: 0.12em;
  line-height: 0.9;
}

.awning span {
  font-size: 14px;
  letter-spacing: 0.4em;
}

.room {
  width: min(440px, 100%);
  margin: 0 auto;
  position: relative;
}

.wall {
  height: 54px;
  background:
    repeating-linear-gradient(
      90deg,
      #f7ead0 0 28px,
      #edd9b0 28px 30px
    );
  border-bottom: 6px solid #c9a36a;
}

.floor {
  min-height: 420px;
  padding: 12px 10px 18px;
  background:
    repeating-conic-gradient(var(--tile-a) 0 25%, var(--tile-b) 0 50%)
      0 0 / 44px 44px;
  position: relative;
}

.line {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  min-height: 78px;
  padding: 0 6px 8px;
}

.person {
  flex: none;
}

.person svg {
  display: block;
  width: 36px;
  height: 62px;
}

.furniture {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 8px;
  align-items: end;
}

.station {
  position: relative;
  text-align: center;
}

.tag {
  margin: 0 0 6px;
  font-family: Fredoka, sans-serif;
  font-size: 13px;
  color: #6a4a30;
}

.desk,
.oven,
.shelf {
  min-height: 110px;
  border: 3px solid var(--ink);
}

.desk {
  background: var(--wood);
  border-bottom-width: 14px;
  border-bottom-color: var(--wood-dark);
  display: grid;
  place-items: end center;
  padding-bottom: 8px;
}

.register {
  position: absolute;
  top: 28px;
  left: 10px;
  width: 34px;
  height: 22px;
  background: #2c2c2c;
  border: 2px solid var(--ink);
}

.register::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 6px;
  width: 18px;
  height: 8px;
  background: #7ad0ff;
  border: 2px solid var(--ink);
}

.oven {
  background: #2a2a2e;
  border-radius: 8px 8px 4px 4px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 8px #1a1a1c;
}

.oven .bay {
  width: 70%;
  min-height: 52px;
  background: #5a2a12;
  border: 2px solid #ffb25a;
}

.shelf {
  background: #efe4cc;
  display: grid;
  place-items: center;
}

.bay {
  min-height: 48px;
  display: grid;
  place-items: center;
}

.go {
  appearance: none;
  margin-top: 8px;
  width: 58px;
  height: 58px;
  padding: 6px 0 0;
  border: 0;
  font-family: Fredoka, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: var(--money);
  clip-path: polygon(30% 0, 70% 0, 70% 52%, 100% 52%, 50% 100%, 0 52%, 30% 52%);
}

.go:disabled {
  filter: grayscale(1);
  opacity: 0.45;
  cursor: not-allowed;
}

.station.hot .go {
  animation: bounce 0.7s ease-in-out infinite;
}

.cash {
  appearance: none;
  position: absolute;
  right: 18px;
  bottom: 22px;
  width: 92px;
  min-height: 72px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: Fredoka, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 1px 0 #1a6b2a;
}

.cash:disabled {
  cursor: default;
  opacity: 0.35;
}

.bills {
  display: block;
  width: 72px;
  height: 44px;
  margin: 0 auto 4px;
  background:
    repeating-linear-gradient(
      180deg,
      var(--money) 0 10px,
      var(--money-dark) 10px 12px
    );
  border: 3px solid #1b7a32;
  border-radius: 4px;
  transform: rotate(-8deg);
}

.hint {
  width: min(440px, 100%);
  margin: 8px auto 24px;
  padding: 0 14px;
  font-size: 14px;
  color: #245;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .station.hot .go {
    animation: none;
  }
}

.work-progress { position:absolute; top:20px; left:12%; width:76%; height:8px; accent-color:#37a750; }
.go:focus-visible, .cash:focus-visible { outline:3px solid white; outline-offset:4px; }
