:root {
  --ink: #30392e;
  --paper: #f6f1df;
  --orange: #d57556;
  --lime: #d7e887;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
main {
  max-width: 1190px;
  margin: auto;
  padding: 0 42px;
}
.masthead {
  height: 89px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #b8b9a8;
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 1.3px;
}
.wordmark {
  font-family: Georgia, serif;
  font-weight: 900;
  font-size: 34px;
  letter-spacing: -3px;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span {
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0;
  vertical-align: top;
  margin-left: 6px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 39px 0 33px;
}
.eyebrow {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 1.3px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
}
.tiny-star {
  color: var(--orange);
  font-size: 24px;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  font-size: clamp(37px, 5.1vw, 65px);
  line-height: 1.08;
  letter-spacing: -3px;
  margin: 0 0 14px;
}
h1 em {
  color: var(--orange);
}
.title-star {
  display: inline-block;
  color: var(--orange);
  font-size: 43px;
  vertical-align: top;
  margin-left: 10px;
  transform: rotate(13deg);
}
.subtitle {
  font-size: 14px;
  margin: 0;
  color: #606452;
}
.counter {
  width: 203px;
  flex-shrink: 0;
  transform: rotate(3deg);
  border: 2px solid var(--ink);
  box-shadow: 4px 5px 0 var(--ink);
  background: var(--lime);
  padding: 15px 12px 12px;
  text-align: center;
}
.counter > span:first-child {
  font-size: 12px;
  font-weight: bold;
}
.counter strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 66px;
  line-height: 1.1;
  font-weight: normal;
  font-variant-numeric: tabular-nums;
}
.counter .capacity {
  font-family: monospace;
  font-size: 8px;
  letter-spacing: 1px;
}
.game {
  border: 2px solid var(--ink);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 5px 5px 0 #30392e;
}
.game-toolbar {
  background: #eee9d5;
  border-bottom: 2px solid var(--ink);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  font: 9px monospace;
  letter-spacing: 1.3px;
}
.game-toolbar span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.game-toolbar i {
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
}
.room {
  position: relative;
  aspect-ratio: 1000/580;
  overflow: hidden;
  background: #e7e9c8;
  isolation: isolate;
}
.bedroom {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
}
.closet-shell {
  position: absolute;
  left: 68%;
  top: 18%;
  width: 20%;
  height: 57%;
  background: #343b31;
  border: 5px solid #343b31;
  border-radius: 3px;
  perspective: 800px;
  z-index: 3;
  box-shadow: 8px 6px 0 #34402e22;
}
.closet-inside {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #252c25, #414732);
  overflow: hidden;
}
.rail {
  position: absolute;
  top: 15%;
  left: 7%;
  right: 7%;
  height: 5px;
  background: #b3a67e;
}
.hanger {
  position: absolute;
  color: #bba989;
  font: 60px Georgia;
  left: 20%;
  top: 14%;
}
.inside-eyes {
  position: absolute;
  right: 18%;
  top: 54%;
  color: #e6dc90;
  letter-spacing: 8px;
  font-size: 19px;
}
.closet-door {
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #b1bd89;
  border: 4px solid #d0d7aa;
  border-right-color: #7d8d63;
  border-bottom-color: #7d8d63;
  color: var(--ink);
  padding: 0;
  transform-origin: left center;
  cursor: pointer;
  transition: transform 0.65s ease-in-out;
  transform-style: preserve-3d;
  z-index: 3;
}
.closet-door:hover {
  background: #bfcb96;
}
.closet-door:focus-visible {
  outline: 5px dashed #d57556;
  outline-offset: 7px;
}
.closet-door:disabled {
  cursor: wait;
}
.door-panel {
  position: absolute;
  left: 12%;
  width: 73%;
  border: 3px solid #75825e;
  box-shadow: inset 3px 3px 0 #c8d29f;
}
.top-panel {
  top: 9%;
  height: 39%;
}
.bottom-panel {
  bottom: 7%;
  height: 35%;
}
.door-knob {
  position: absolute;
  right: 7%;
  top: 53%;
  width: 13px;
  height: 13px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #e5bd56;
  box-shadow: 2px 2px 0 #72805a;
}
.closet-pediment {
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  height: 13px;
  background: #d2d8af;
  border: 3px solid var(--ink);
  z-index: 5;
}
.closet-shell.open .closet-door {
  transform: rotateY(-105deg);
}
.walken {
  position: absolute;
  left: 39%;
  bottom: 19%;
  width: 21%;
  height: 64%;
  z-index: 4;
  pointer-events: none;
  transform-origin: 50% 100%;
  filter: drop-shadow(6px 4px 0 #30392e25);
}
.walken img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: bottom;
  user-select: none;
}
.click-note {
  position: absolute;
  right: 4%;
  top: 9%;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(12px, 1.7vw, 22px);
  transform: rotate(8deg);
  pointer-events: none;
}
.click-note span {
  display: block;
  font-size: 44px;
  margin-left: 45px;
  line-height: 0.8;
}
.speech {
  position: absolute;
  top: 13%;
  left: 45%;
  font: italic clamp(10px, 1.5vw, 19px) Georgia;
  background: #fff8de;
  border: 2px solid var(--ink);
  padding: 10px 15px;
  border-radius: 50%;
  transform: rotate(-7deg);
  transition: opacity 0.2s;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 27px;
  font: 9px monospace;
  letter-spacing: 0.7px;
  color: #717360;
}
footer > span:last-child {
  letter-spacing: 0;
  font-size: 11px;
}
.busy .click-note,
.busy .speech {
  opacity: 0;
}
.counter.pop {
  animation: pop 0.35s ease-out;
}
@keyframes pop {
  50% {
    transform: rotate(-3deg) scale(1.08);
  }
}
@media (max-width: 700px) {
  main {
    padding: 0 18px;
  }
  .masthead {
    height: 67px;
    font-size: 8px;
  }
  .edition {
    display: none;
  }
  .intro {
    padding: 27px 0;
    gap: 12px;
  }
  h1 {
    letter-spacing: -1.7px;
    font-size: 38px;
  }
  .title-star {
    display: none;
  }
  .subtitle {
    font-size: 12px;
    max-width: 220px;
    line-height: 1.5;
  }
  .counter {
    width: 120px;
    padding: 10px 6px;
  }
  .counter > span:first-child {
    font-size: 9px;
  }
  .counter strong {
    font-size: 45px;
  }
  .counter .capacity {
    font-size: 6px;
    letter-spacing: 0;
  }
  .closet-shell {
    border-width: 3px;
  }
  .closet-door {
    border-width: 2px;
  }
  .door-panel {
    border-width: 2px;
  }
  .door-knob {
    width: 9px;
    height: 9px;
  }
  .closet-pediment {
    height: 9px;
    top: -8px;
    left: -7px;
    right: -7px;
    border-width: 2px;
  }
  .click-note span {
    font-size: 27px;
    margin-left: 20px;
  }
  .speech {
    padding: 5px 8px;
    border-width: 1px;
  }
  footer {
    font-size: 7px;
    line-height: 1.6;
  }
  footer > span:last-child {
    font-size: 9px;
    max-width: 110px;
  }
  .hanger {
    font-size: 30px;
  }
  .inside-eyes {
    font-size: 10px;
    letter-spacing: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .closet-door {
    transition-duration: 0.1s;
  }
  .counter.pop {
    animation: none;
  }
}
