:root {
  --bg-1: #f2dfc4;
  --bg-2: #f8b55f;
  --bg-3: #d85f3a;
  --ink: #1e2430;
  --frame: rgba(255, 252, 245, 0.76);
  --shadow: rgba(62, 24, 11, 0.22);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: "Trebuchet MS", "Gill Sans", "Gill Sans MT", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(255, 245, 219, 0.92), rgba(255, 245, 219, 0) 34%),
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 18%),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 54%, var(--bg-3) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 42vmax;
  height: 42vmax;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(16px);
  opacity: 0.38;
}

body::before {
  top: -12vmax;
  right: -8vmax;
  background: rgba(255, 250, 235, 0.58);
}

body::after {
  left: -14vmax;
  bottom: -18vmax;
  background: rgba(95, 36, 13, 0.18);
}

.app-shell {
  width: 100vw;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 8px;
}

#game {
  display: block;
  width: min(96vw, 460px);
  height: min(96vh, 850px);
  border-radius: 28px;
  border: 1px solid rgba(255, 250, 245, 0.7);
  background: transparent;
  box-shadow:
    0 24px 48px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  touch-action: none;
  outline: none;
}

#game:focus-visible {
  box-shadow:
    0 24px 48px var(--shadow),
    0 0 0 4px rgba(51, 89, 151, 0.32);
}
