:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #fcf7ea;
  background: #202f2c;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; }
#world { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

.welcome {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100dvh;
  padding: clamp(1rem, 5vw, 5.5rem);
  background: linear-gradient(90deg, #18231fe8, #18231f76 40%, transparent 73%);
  pointer-events: none;
}

.panel { width: min(100%, 28rem); pointer-events: auto; }
h1 {
  margin: 0 0 .9rem -.045em;
  font: 500 clamp(3.5rem, 8.5vw, 7.8rem)/.95 Georgia, serif;
  letter-spacing: -.065em;
}
.intro { max-width: 25rem; margin: 0; color: #f3edda; font-size: 1.125rem; line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.8rem; }
button {
  min-height: 3rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  padding: .65rem 1rem;
  background: #f3d39a;
  color: #202b25;
  font: 650 1rem/1.3 system-ui, sans-serif;
  cursor: pointer;
}
button:hover:not(:disabled) { background: #ffe4b3; }
button:disabled { opacity: .6; cursor: default; }
.secondary { border-color: #e0d6b980; background: #1c2824db; color: #fcf7ea; }
.secondary:hover:not(:disabled) { background: #394b41; }
:focus-visible { outline: 3px solid #fff4d5; outline-offset: 4px; }
.status { margin: .9rem 0; min-height: 1.35rem; color: #f3edda; font-size: .94rem; line-height: 1.4; }
.status:empty { display: none; }
details { margin-top: 1.1rem; border-top: 1px solid #d5cdb860; padding-top: .9rem; }
summary { width: fit-content; font-weight: 650; cursor: pointer; }
dl { margin: .7rem 0 0; line-height: 1.45; }
dt { margin-top: .65rem; font-weight: 650; }
dd { margin: .16rem 0 0; color: #f3edda; }
.hud {
  position: fixed;
  inset: auto .85rem .85rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  pointer-events: none;
}
.hud button { flex: none; pointer-events: auto; }
.hud p { margin: 0; padding: .65rem .8rem; border-radius: .5rem; background: #1c2824eb; font-size: .92rem; line-height: 1.35; }
.noscript { position: fixed; bottom: 1rem; left: 1rem; }

@media (max-width: 650px) {
  .welcome {
    align-items: end;
    padding: 1.15rem;
    background: linear-gradient(0deg, #18231ffc, #18231feb 33%, #18231f50 64%, transparent 83%);
  }
  .panel { padding-bottom: max(.35rem, env(safe-area-inset-bottom)); }
  h1 { font-size: clamp(3.3rem, 14vw, 5.2rem); }
}
