:root {
  --shell-top: #f7d19d;
  --shell-bottom: #f3efe5;
  --frame-shadow: 0 30px 80px rgba(88, 46, 16, 0.22);
}

* {
  box-sizing: border-box;
}

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

body {
  display: grid;
  place-items: center;
  padding: 16px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.78), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 194, 148, 0.68), transparent 32%),
    linear-gradient(180deg, var(--shell-top), var(--shell-bottom));
}

.app-shell {
  width: 100%;
  display: grid;
  place-items: center;
}

.canvas-frame {
  position: relative;
  width: min(100vw - 24px, 460px);
  aspect-ratio: 720 / 1280;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--frame-shadow);
  background: #fff7ee;
}

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.overlay-input {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 180px;
  height: 40px;
  border: 2px solid rgba(184, 101, 54, 0.28);
  border-radius: 999px;
  padding: 0 16px;
  outline: none;
  color: #3b2618;
  background: rgba(255, 252, 247, 0.98);
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 18px;
  text-align: center;
}

.overlay-input:focus {
  border-color: rgba(212, 85, 45, 0.72);
  box-shadow: 0 0 0 4px rgba(212, 85, 45, 0.14);
}
