@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600&display=swap");
:root {
  font-family: "DM Sans", sans-serif;
  color: #eeeeee;
  background: #101010;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #959595;
  outline-offset: 4px;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
#game {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 540px;
  overflow: hidden;
}
#world {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 25px 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.topbar > * {
  pointer-events: auto;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font-family: "Fraunces", Georgia, serif;
  font-size: 23px;
}
.brand small {
  display: block;
  font:
    9px "DM Sans",
    sans-serif;
  letter-spacing: 3px;
  margin-top: 4px;
}
.brand-mark {
  width: 43px;
  height: 43px;
  border: 1px solid #757575;
  border-radius: 50%;
  text-align: center;
  font-size: 34px;
  line-height: 39px;
}
.top-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.day {
  font-size: 17px;
  color: #bdbdbd;
}
.day span {
  font-size: 14px;
  margin-left: 7px;
}
.icon-button {
  background: #202020;
  border: 1px solid #73737330;
  border-radius: 50%;
  height: 44px;
  min-width: 44px;
  font-size: 14px;
  color: #eeeeee;
}
.chapter {
  position: absolute;
  left: 36px;
  top: 115px;
  pointer-events: none;
  text-shadow: 0 2px 14px #000000;
}
.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #bdbdbd;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(30px, 3.4vw, 49px);
  line-height: 1.13;
  font-weight: 500;
  margin: 12px 0;
}
.chapter p {
  font-size: 14px;
  color: #bdbdbd;
}
.job-card {
  position: absolute;
  left: 35px;
  top: 325px;
  width: 320px;
  background: #161616ed;
  border: 1px solid #ffffff99;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 30px #3c3c3c0c;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-heading > span:last-child {
  font-size: 13px;
  color: #bdbdbd;
}
.customer {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 20px 0 13px;
}
.customer > span {
  border-radius: 50%;
  background: #333333;
  color: #eeeeee;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 20px;
}
.customer h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 23px;
  font-weight: 500;
}
.customer p {
  font-size: 13px;
  color: #b8b8b8;
  margin-top: 4px;
}
#job-description {
  font-size: 14px;
  line-height: 1.7;
  color: #b8b8b8;
}
#requirements {
  display: flex;
  gap: 7px;
  margin: 16px 0;
}
.requirement {
  font-size: 13px;
  border: 1px solid #e4e4e4;
  padding: 7px;
  border-radius: 6px;
  flex: 1;
  white-space: nowrap;
}
.requirement.ready {
  color: #6a6a6a;
  background: #efefef;
}
.primary {
  background: #e8e8e8;
  color: #151515;
  border: 0;
  border-radius: 8px;
  padding: 15px 18px;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: center;
}
.primary:hover {
  background: #ffffff;
}
.card-note {
  text-align: center;
  font-size: 14px;
  color: #929292;
  margin-top: 12px;
}
.bottom-bar {
  position: absolute;
  bottom: 37px;
  left: 35px;
  right: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.location {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}
.location-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6f6f6f;
  box-shadow: 0 0 0 5px #6f6f6f15;
}
.location small {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #878787;
  margin-top: 5px;
}
.text-button {
  background: none;
  border: 0;
  color: #bdbdbd;
  font-size: 14px;
}
.controls-hint {
  position: absolute;
  bottom: 13px;
  width: 100%;
  text-align: center;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #bdbdbd;
  pointer-events: none;
}
.controls-hint span {
  margin: 0 12px;
}
#toast {
  position: absolute;
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  padding: 16px 24px;
  border: 1px solid #a5b2bc;
  border-radius: 4px 4px 12px 12px;
  background:
    radial-gradient(ellipse at 50% 0, #34495860, transparent 65%),
    repeating-linear-gradient(125deg, #ffffff02 0 1px, transparent 1px 6px),
    linear-gradient(150deg, #171e25, #090d12 65%, #17202a);
  color: #eeeae3;
  box-shadow:
    0 0 0 3px #080b10,
    0 0 0 4px #53616f,
    0 10px 28px #0009;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  width: max-content;
  max-width: min(560px, calc(100% - 32px));
  overflow-wrap: anywhere;
  text-align: center;
}
#toast::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid #8b9daa40;
  border-radius: 2px 2px 8px 8px;
}
#toast.visible {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  #toast {
    transition: none;
  }
}
#interaction {
  position: absolute;
  bottom: 125px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
}
#interaction .primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid #a9bdc8;
  border-radius: 5px 5px 13px 13px;
  background: linear-gradient(135deg, #2b404c, #111c25 75%);
  color: #f0e7d5;
  box-shadow:
    inset 0 0 0 3px #111a20,
    inset 0 0 0 4px #8098a34d,
    0 5px 18px #0009;
  font-weight: 600;
  line-height: 1.4;
}
#interaction {
  max-width: calc(100% - 32px);
  width: max-content;
}
#interact-button::after {
  content: "E";
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  height: 27px;
  border: 1px solid #a5bdc9;
  border-radius: 4px;
  background: #0f1a22;
  color: #d8ecf5;
  box-shadow: 0 2px 0 #68808d;
  font-size: 13px;
}
#interact-button:hover {
  border-color: #f0d99a;
  color: #fff2cf;
}
#interact-button:focus-visible {
  outline: 2px solid #f0d99a;
  outline-offset: 4px;
}
@media (max-width: 760px) {
  #interact-button::after {
    display: none;
  }
}
#joystick {
  position: absolute;
  width: 90px;
  height: 90px;
  margin: -45px;
  border: 1px solid #ffffff99;
  border-radius: 50%;
  background: #ffffff22;
  pointer-events: none;
}
#joystick i {
  display: block;
  width: 34px;
  height: 34px;
  margin: 27px;
  border-radius: 50%;
  background: #ffffff99;
}
