:root {
  color-scheme: light;
  --ink: #342c2c;
  --panel: rgba(255, 252, 246, 0.78);
  --accent: #e94c61;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 12%, #fff7cf 0 11%, transparent 12%),
    linear-gradient(145deg, #82d7ca 0%, #f8d7a2 52%, #f08b8f 100%);
  color: var(--ink);
  font-family:
    "Hiragino Maru Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    system-ui,
    sans-serif;
}

.shell {
  position: relative;
  width: min(100vw, 1100px);
  aspect-ratio: 16 / 9;
  max-height: 100vh;
  padding: clamp(8px, 2vw, 18px);
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
  border: 4px solid rgba(80, 51, 48, 0.25);
  border-radius: 8px;
  background: #8ed9ef;
  box-shadow: 0 18px 60px rgba(87, 55, 58, 0.22);
  touch-action: manipulation;
}

.hint {
  position: absolute;
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 30px);
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--panel);
  font-size: clamp(12px, 1.7vw, 15px);
  font-weight: 700;
  letter-spacing: 0;
  pointer-events: none;
}

@media (max-width: 680px) {
  .shell {
    width: 100vw;
    height: 100svh;
    aspect-ratio: auto;
    padding: 0;
  }

  canvas {
    border: 0;
    border-radius: 0;
  }
}
