:root {
  color-scheme: light;
  --design-width: 750;
  --design-height: 1334;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  background: #000;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  display: grid;
  place-items: center;
}

.app {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
}

.game-shell {
  position: relative;
  width: min(100vw, calc(100vh * 750 / 1334));
  aspect-ratio: 750 / 1334;
  overflow: hidden;
  background: #000;
}

.background,
.hand {
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.background {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hand-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hand {
  position: absolute;
  left: 0;
  top: 0;
  width: 78.4%;
  transform-origin: 0 100%;
  will-change: transform;
}

.action-button {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 52px);
  width: 56%;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 2;
}

.action-button img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.action-button:active {
  transform: translateX(-50%) scale(0.98);
}
