:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  background: #0d1117;
  color: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255, 196, 61, 0.16), transparent 32rem),
    linear-gradient(180deg, #151923 0%, #080a0f 100%);
  overflow: hidden;
}

button {
  font: inherit;
}

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

#gameCanvas {
  width: 100vw;
  height: 100dvh;
  display: block;
  background: #10131a;
  touch-action: none;
}

.share-panel {
  position: fixed;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 18px;
  background: rgba(4, 6, 10, 0.86);
  z-index: 10;
}

.share-panel[hidden] {
  display: none;
}

.share-panel img {
  width: min(86vw, 390px);
  aspect-ratio: 941 / 1672;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #111;
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: min(86vw, 390px);
}

.share-actions button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: #ffc300;
  color: #171717;
  font-weight: 800;
}

.share-actions button:last-child {
  background: #f1f5f9;
}
