:root {
  color-scheme: light;
  --ink: #20303f;
  --paper: #f7fbff;
  --sky: #7fd3ff;
  --grass: #4fb06d;
  --soil: #8e5f3f;
  --gold: #f7c948;
  --coral: #ef6f5e;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: radial-gradient(circle at 50% 12%, #ffffff 0, var(--paper) 34%, #dff4ff 100%);
  color: var(--ink);
  font-family:
    ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.stage {
  position: relative;
  width: min(100%, 432px);
  aspect-ratio: 432 / 640;
  border: 6px solid #20303f;
  border-radius: 8px;
  overflow: hidden;
  background: var(--sky);
  box-shadow: 0 16px 48px rgba(32, 48, 63, 0.24);
  touch-action: manipulation;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hud {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.hud div {
  min-width: 74px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid rgba(32, 48, 63, 0.78);
  border-radius: 6px;
}

.label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.68;
}

.hud strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.start {
  position: absolute;
  inset: auto 28px 42px;
  min-height: 86px;
  border: 3px solid #20303f;
  border-radius: 8px;
  background: #fff7c9;
  color: #20303f;
  box-shadow: 0 8px 0 #d99a3a;
  cursor: pointer;
  font: inherit;
}

.start span {
  display: block;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 900;
}

.start small {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 800;
}

.start:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 #d99a3a;
}

.start.hidden {
  display: none;
}

@media (max-height: 680px) {
  .shell {
    align-items: start;
  }

  .stage {
    width: min(100%, calc((100vh - 36px) * 0.675));
  }
}
