:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #f3f1e5;
  background: #95a696;
  font-synthesis: none;
  --paper: #f0efe1;
  --ink: #263e32;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
button,
a,
select,
input {
  -webkit-tap-highlight-color: transparent;
}
button,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  color: inherit;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 2px solid #eadcb5;
  outline-offset: 5px;
}
button {
  touch-action: manipulation;
}
#world {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
header {
  position: fixed;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 29px 38px;
  pointer-events: none;
  background: linear-gradient(#22372c38, transparent);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
  font-size: 24px;
  letter-spacing: 0.15em;
  font-weight: 500;
}
.brand img {
  width: 39px;
  height: 43px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.22em;
  margin-top: 4px;
  opacity: 0.7;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 26px;
}
.weather {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 7px #273c35;
}
.weather i {
  width: 5px;
  height: 5px;
  background: #e9d5a7;
  border-radius: 50%;
}
.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid #f4f3e443;
  border-radius: 50%;
  background: #213c2e38;
  backdrop-filter: blur(8px);
  pointer-events: auto;
  display: none;
  font-size: 19px;
}
#intro {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, #102f25a1, transparent 68%),
    linear-gradient(0deg, #142f2977, transparent 55%);
  pointer-events: none;
}
#intro button {
  pointer-events: auto;
}
.intro-copy {
  position: absolute;
  left: 6.5%;
  bottom: 19%;
  max-width: 700px;
}
.eyebrow {
  display: block;
  letter-spacing: 0.2em;
  font-size: 9px;
  font-weight: 600;
}
.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #d2e8a8;
  margin-right: 7px;
  border-radius: 50%;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5.6vw, 88px);
  font-weight: 400;
  line-height: 1.01;
  letter-spacing: -0.045em;
  margin: 22px 0;
}
p {
  font-size: 13px;
  line-height: 1.85;
  color: #edeeddce;
}
.intro-copy p {
  margin: 0 0 28px;
}
.primary {
  background: var(--paper);
  color: var(--ink);
  height: 52px;
  min-width: 225px;
  padding: 0 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 20px #112f1f20;
}
.primary:hover {
  background: #fffdef;
}
.primary span {
  font-size: 22px;
  font-weight: 400;
}
.intro-controls {
  font-size: 9px;
  letter-spacing: 0.025em;
  margin-top: 17px;
  color: #d0d9c7;
}
.intro-controls span {
  padding: 0 9px;
}
.destinations {
  position: absolute;
  right: 5%;
  bottom: 19%;
  width: 216px;
}
.destinations > .eyebrow {
  font-size: 8px;
  margin-bottom: 16px;
  opacity: 0.72;
}
.destinations button {
  width: 100%;
  background: none;
  border-top: 1px solid #e5eddd60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 18px 0;
  font-family: Georgia, serif;
  font-size: 23px;
}
.destinations button small {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 8px;
  letter-spacing: 0.13em;
  margin-bottom: 8px;
  opacity: 0.72;
}
.destinations button > span:last-child {
  font-family: Arial;
  font-size: 20px;
}
.intro-note {
  border-top: 1px solid #e5eddd60;
  padding-top: 17px;
  font-size: 10px;
  line-height: 1.65;
  opacity: 0.7;
}
.edition {
  position: absolute;
  bottom: 35px;
  left: 6.5%;
  right: 5%;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 0.18em;
  opacity: 0.65;
}
.edition span {
  font-size: 7px;
}
.loading {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #354d3e;
}
.loading h2,
.panel h2 {
  font-family: Georgia, serif;
  font-size: 37px;
  font-weight: 400;
  letter-spacing: -0.035em;
}
.loading-line {
  height: 1px;
  width: 160px;
  background: linear-gradient(90deg, transparent, #e9efd1, transparent);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.2;
    transform: scaleX(0.6);
  }
}
[hidden] {
  display: none !important;
}
#play-hud {
  display: none;
  pointer-events: none;
}
.playing #play-hud {
  display: block;
}
.playing .icon-button {
  display: block;
}
.place {
  position: fixed;
  left: 38px;
  bottom: 33px;
  text-shadow: 0 1px 8px #19312899;
}
.place span {
  font-size: 9px;
  display: block;
  opacity: 0.78;
  letter-spacing: 0.07em;
  margin-bottom: 5px;
}
.place strong {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 25px;
}
.reticle {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  margin: -2px;
  border-radius: 50%;
  background: #f8ffe3bc;
  box-shadow: 0 0 0 1px #253b2955;
}
#target {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(50% + 22px);
  text-align: center;
  font-size: 10px;
  text-shadow: 0 2px 7px #172e23;
}
.tool {
  position: fixed;
  right: 38px;
  bottom: 27px;
  pointer-events: auto;
}
.tool button {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #21382da6;
  border: 1px solid #e2e6d22a;
  border-radius: 5px;
  padding: 11px 14px;
  backdrop-filter: blur(12px);
  min-width: 210px;
  text-align: left;
}
.object-icon {
  font-size: 27px;
  opacity: 0.8;
}
.tool small {
  font-size: 7px;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 4px;
  opacity: 0.65;
}
.tool strong {
  font-size: 12px;
  font-weight: 400;
}
kbd {
  font: 9px Arial;
  border: 1px solid #dedfc43d;
  border-radius: 3px;
  padding: 4px 6px;
  margin-left: auto;
  opacity: 0.7;
}
.tool p {
  font-size: 8px;
  margin: 9px 0 0;
  text-align: center;
}
.tool p span {
  margin: 0 5px;
  opacity: 0.6;
}
#status {
  position: fixed;
  bottom: 112px;
  left: 50%;
  transform: translateX(-50%);
  background: #233e30c4;
  backdrop-filter: blur(8px);
  border: 1px solid #e0e2bd22;
  border-radius: 20px;
  padding: 10px 19px;
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
#status.show {
  opacity: 1;
}
.panel {
  position: fixed;
  z-index: 10;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #233c30f0;
  backdrop-filter: blur(22px);
  border: 1px solid #edf0d525;
  border-radius: 9px;
  width: 390px;
  padding: 30px;
  box-shadow: 0 25px 150px #14231766;
}
.panel h2 {
  margin: 13px 0 25px;
}
.panel .primary {
  width: 100%;
  min-width: 0;
}
.menu-destinations {
  display: flex;
  gap: 5px;
  margin: 13px 0 22px;
}
.menu-destinations button {
  flex: 1;
  background: #e5e8c811;
  border: 1px solid #edf0d523;
  border-radius: 3px;
  height: 38px;
  font-size: 10px;
}
.setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid #dfe6d21c;
  font-size: 11px;
}
.setting select {
  background: #172f25;
  color: #eef0db;
  border: 1px solid #dfe6d23a;
  border-radius: 3px;
  padding: 8px;
  font-size: 11px;
}
.setting input {
  accent-color: #c6d4a7;
  width: 17px;
  height: 17px;
}
.menu-actions {
  display: flex;
  gap: 9px;
  margin-top: 13px;
}
.menu-actions button {
  background: #dfe6d217;
  border-radius: 3px;
  padding: 12px;
  font-size: 10px;
  flex: 1;
}
.help {
  font-size: 9px;
  line-height: 1.9;
  opacity: 0.58;
  margin: 22px 0 0;
}
#diagnostics {
  position: fixed;
  left: 20px;
  top: 112px;
  background: #132b20ce;
  padding: 15px;
  font:
    10px/1.8 ui-monospace,
    monospace;
  border-radius: 5px;
  pointer-events: none;
  z-index: 20;
}
#touch-controls {
  display: none;
}
.clean .hud,
.clean #status,
.clean #touch-controls,
.clean #target {
  display: none !important;
}
.clean #play-hud {
  display: none !important;
}
@media (max-width: 700px) {
  header {
    padding: 21px 23px;
  }
  .brand {
    font-size: 20px;
  }
  .brand img {
    width: 31px;
  }
  .brand small {
    font-size: 6px;
  }
  .weather {
    font-size: 9px;
    gap: 8px;
  }
  .top-right {
    gap: 12px;
  }
  .intro-copy {
    left: 7%;
    bottom: 31%;
  }
  h1 {
    font-size: 52px;
    margin: 20px 0;
  }
  .intro-copy p {
    font-size: 12px;
    line-height: 1.8;
  }
  .intro-copy > .eyebrow {
    font-size: 8px;
  }
  .destinations {
    left: 7%;
    right: 7%;
    bottom: 9%;
    width: auto;
    display: flex;
    gap: 23px;
  }
  .destinations > .eyebrow,
  .intro-note {
    display: none;
  }
  .destinations button {
    font-size: 20px;
    padding: 15px 0;
    gap: 24px;
  }
  .destinations button small {
    font-size: 7px;
  }
  .edition {
    bottom: 26px;
    left: 7%;
    right: 7%;
    font-size: 7px;
  }
  .edition span {
    font-size: 6px;
  }
  .place {
    left: 22px;
    bottom: 205px;
  }
  .place strong {
    font-size: 22px;
  }
  .tool {
    right: 21px;
    bottom: 205px;
  }
  .tool button {
    min-width: 140px;
    padding: 9px 12px;
  }
  .tool kbd,
  .tool p {
    display: none;
  }
  .object-icon {
    font-size: 23px;
  }
  .panel {
    width: calc(100% - 36px);
    max-width: 390px;
    padding: 25px;
  }
  .panel h2 {
    font-size: 32px;
  }
  .setting {
    padding: 11px 0;
  }
  .help {
    font-size: 8px;
  }
  .intro-controls {
    font-size: 9px;
  }
  #status {
    bottom: 280px;
    max-width: 85%;
    white-space: nowrap;
    font-size: 10px;
  }
}
@media (pointer: coarse) {
  .playing #touch-controls {
    display: block;
    position: fixed;
    inset: 0;
    pointer-events: none;
  }
  #stick {
    position: absolute;
    bottom: max(35px, env(safe-area-inset-bottom));
    left: 28px;
    width: 125px;
    height: 125px;
    border: 1px solid #f0f3d744;
    background: #354a3729;
    border-radius: 50%;
    pointer-events: auto;
    touch-action: none;
    display: grid;
    place-items: center;
  }
  #stick-knob {
    width: 50px;
    height: 50px;
    border: 1px solid #f0f3d777;
    background: #f3f4dd30;
    border-radius: 50%;
    pointer-events: none;
  }
  .touch-buttons {
    position: absolute;
    right: 24px;
    bottom: 42px;
    width: 160px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    pointer-events: auto;
  }
  .touch-buttons button {
    height: 55px;
    min-width: 58px;
    border-radius: 28px;
    background: #233b2e88;
    backdrop-filter: blur(6px);
    border: 1px solid #f0f3d74a;
    font-size: 12px;
    touch-action: none;
  }
  #touch-action {
    width: 128px;
  }
  .intro-controls {
    font-size: 0;
  }
  .intro-controls::after {
    content: "Touch to move. Drag to look.";
    font-size: 10px;
  }
  .tool kbd {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

#restore-interface {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #233e3080;
  border: 1px solid #ececdd33;
  border-radius: 18px;
  padding: 11px 16px;
  font-size: 10px;
}
.clean #restore-interface {
  display: block;
  opacity: 0.45;
}
.clean #restore-interface:hover {
  opacity: 1;
}
