:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff4f7;
  color: #302033;
}

* {
  box-sizing: border-box;
}

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

body {
  display: grid;
  min-height: 100svh;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7) 25%, transparent 25%) 0 0 / 32px 32px,
    linear-gradient(225deg, rgba(255, 255, 255, 0.52) 25%, transparent 25%) 0 0 / 32px 32px,
    linear-gradient(180deg, #fff4f7 0%, #fffdf3 48%, #e7f8f5 100%);
  padding: clamp(0.45rem, 1.8vw, 1rem);
}

.game-shell {
  position: relative;
  display: grid;
  width: min(100%, 982px);
  place-items: center;
  border: 1px solid rgba(239, 111, 142, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 250, 0.84)),
    repeating-linear-gradient(90deg, rgba(250, 214, 224, 0.4) 0 16px, rgba(255, 255, 255, 0.2) 16px 32px);
  padding: clamp(0.42rem, 1.5vw, 0.7rem);
  box-shadow:
    0 1.2rem 2.7rem rgba(95, 61, 75, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.game-shell::before {
  content: "";
  position: absolute;
  inset: 0.45rem;
  border: 1px dashed rgba(239, 111, 142, 0.28);
  border-radius: 13px;
  pointer-events: none;
}

canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, calc((100svh - 1.6rem) * 16 / 9));
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(80, 61, 64, 0.14);
  border-radius: 12px;
  background: #fffaf2;
  box-shadow: 0 0.7rem 1.5rem rgba(80, 61, 64, 0.1);
  touch-action: none;
}

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

@media (max-width: 760px) {
  body {
    align-content: start;
    padding: 0;
  }

  .game-shell {
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    padding: 0;
  }

  .game-shell::before {
    display: none;
  }

  canvas {
    width: 100vw;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
}
