* { box-sizing: border-box; }
:root {
  color-scheme: light;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #39200f;
  background: #85caa2;
}
html, body { margin: 0; height: 100%; }
body { min-height: 100%; }
.game {
  position: relative;
  display: grid;
  grid-template: auto minmax(0, 1fr) / 1fr auto;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(#80c7e6 0 46%, #91cf80 46% 100%);
}
.hud, .depth { z-index: 1; align-self: start; }
.hud {
  grid-area: 1 / 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 8px 0 12px;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.gold { background: #fff4c9; color: #6d4514; }
.health { background: #dcf3fb; color: #165475; }
.level { background: #e3f4d5; color: #295c39; }
.depth {
  grid-area: 1 / 2;
  margin: 10px 12px 0 0;
  background: #ff8a3d;
  color: #39200f;
}
.panel {
  grid-area: 2 / 1 / 3 / 3;
  align-self: end;
  margin: 0 12px 10px;
  padding: 10px 12px 8px;
  border-radius: 8px;
  background: #fff7e2;
}
.panel h1 { margin: 0; font-size: 18px; line-height: 1.2; }
.eyebrow, .message, .foot { margin: 0; }
.eyebrow { float: right; margin: 2px 0 0 12px; color: #4e6352; font-size: 12px; }
.message { margin-top: 4px; font-size: 14px; line-height: 1.4; }
.choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.choice {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
  touch-action: manipulation;
  color: #39200f;
  background: #ff8a3d;
}
.choice[data-kind="fight"] { background: #f3b28a; }
.choice[data-kind="back"] { background: #cce8f5; color: #164658; }
.choice[data-kind="recover"] { background: #b8dfaa; color: #214c2e; }
.choice:active { filter: brightness(.92); }
.choice:focus-visible { outline: 2px solid #213b57; outline-offset: 2px; }
.foot { margin-top: 6px; color: #4e6352; font-size: 12px; }
.keys { display: none; }
@media (min-width: 800px) {
  .keys { display: inline; margin-left: 10px; }
  .panel h1 { font-size: 22px; }
}
