#mobile-menu[hidden] {
  display: none;
}
#mobile-menu {
  display: none;
}
.mobile-sheet {
  background: #191919;
  color: #eeeeee;
}
.mobile-sheet .close {
  color: #eeeeee;
  min-width: 44px;
  min-height: 44px;
}
.mobile-sheet .job-card {
  position: static;
  width: 100%;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: none;
}
.mobile-sheet h2 {
  color: #eeeeee;
}
.mobile-sheet .customer h2 {
  font-size: 23px;
  margin: 0;
}
.mobile-sheet .customer p {
  color: #b8b8b8;
}
@media (min-width: 761px) and (max-height: 760px) {
  .chapter {
    top: 95px;
  }
  .chapter h1 {
    font-size: 35px;
  }
  .job-card {
    top: 245px;
    padding: 16px;
  }
  .customer {
    margin: 8px 0;
  }
  .bottom-bar {
    bottom: 33px;
  }
  .card-note {
    display: none;
  }
  #job-description {
    font-size: 12px;
  }
  #requirements {
    margin: 10px 0;
  }
}
@media (max-width: 760px) {
  #game {
    min-height: 360px;
  }
  .topbar {
    padding: max(12px, env(safe-area-inset-top)) 14px 12px;
    background: linear-gradient(#101010d9, #10101000);
  }
  .brand {
    font-size: 17px;
    gap: 8px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 26px;
    line-height: 29px;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .top-actions {
    gap: 4px;
  }
  .day,
  .chapter,
  .bottom-bar,
  .controls-hint {
    display: none;
  }
  #mobile-menu {
    position: absolute;
    display: flex;
    justify-content: center;
    gap: 6px;
    left: 50%;
    transform: translateX(-50%);
    bottom: max(12px, env(safe-area-inset-bottom));
    padding: 5px 10px;
    background: #161616ed;
    border: 1px solid #888888;
    border-radius: 22px;
    box-shadow: 0 6px 24px #00000055;
  }
  #mobile-menu button {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    width: 65px;
    height: 53px;
    border: 0;
    border-radius: 14px;
    background: none;
    color: #eeeeee;
    font-size: 11px;
  }
  #mobile-menu button:active {
    background: #444444;
  }
  #mobile-menu button span {
    display: grid;
    place-items: center;
    height: 24px;
  }
  #mobile-menu svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  #quick-gather {
    background: #eeeeee !important;
    color: #141414 !important;
  }
  #interaction {
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 80px);
  }
  #interaction .primary {
    font-size: 12px;
    padding: 10px 14px;
  }
  #toast {
    top: 74px;
    max-width: calc(100% - 28px);
    width: max-content;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.5;
  }
  dialog {
    padding: 24px;
    max-height: calc(100dvh - 28px);
    overflow-y: auto;
  }
  dialog h2 {
    font-size: 26px;
  }
  .mobile-sheet {
    margin: auto auto max(12px, env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    padding: 54px 22px 24px;
  }
  .mobile-sheet .card-note {
    display: none;
  }
  .mobile-sheet .customer {
    margin: 18px 0;
  }
  .mobile-sheet .requirement {
    font-size: 12px;
  }
  .slot {
    width: 52px;
    height: 52px;
    font-size: 28px;
    top: 33px;
  }
  .slot:nth-child(2) {
    left: calc(50% - 26px);
  }
  #repair-board {
    height: 190px;
  }
  .repair-object {
    width: 92%;
  }
}
/* Landscape phones must use their actual viewport height for camera sizing. */
@media (orientation: landscape) and (max-height: 540px) {
  main#game {
    min-height: 0;
  }
}
