:root {
  --bg1: #1f1514;
  --bg2: #4f2f2e;
  --bg3: #8a4f4c;
  --panel: rgba(255, 247, 240, 0.9);
  --text: #2b1b17;
  --accent: #d84b74;
  --line: rgba(255, 238, 227, 0.5);
}

html {
  height: 100%;
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  font-family: Verdana, "Segoe UI", Tahoma, sans-serif;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  padding-top: max(0px, env(safe-area-inset-top));
  padding-right: max(0px, env(safe-area-inset-right));
  padding-bottom: max(0px, env(safe-area-inset-bottom));
  padding-left: max(0px, env(safe-area-inset-left));
  color: var(--text);
  background:
    radial-gradient(circle at 20% 15%, #7d5a48 0%, transparent 42%),
    radial-gradient(circle at 82% 82%, #9a5864 0%, transparent 39%),
    linear-gradient(140deg, var(--bg1), var(--bg2) 48%, var(--bg3));
  display: grid;
  place-items: center;
}

.app {
  width: min(1900px, 100vw, calc((100vh - 10px) * 16 / 9));
  width: min(1900px, 100vw, calc((100dvh - 10px) * 16 / 9));
  height: calc(100vh - 10px);
  height: calc(100dvh - 10px);
  max-height: calc(100vh - 10px);
  max-height: calc(100dvh - 10px);
  padding: 5px;
  display: flex;
  flex-direction: column;
}

canvas {
  width: 100%;
  flex: 1;
  min-height: 0;
  max-height: calc(100vh - 10px);
  max-height: calc(100dvh - 10px);
  border-radius: 16px;
  border: 2px solid rgba(255, 234, 221, 0.85);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  image-rendering: pixelated;
  touch-action: none;
  background: #f2e4d6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
