html, body {
  margin: 0;
  background: #0b0818;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: none;
}

body {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  width: 360px;
  height: 640px;
  background: #14102b;
  touch-action: none;
  display: block;
}

:where(canvas, button, a, [tabindex]):focus-visible {
  outline: 3px solid #7fe3c8;
  outline-offset: 2px;
}

dialog#o {
  border: none;
  padding: 16px;
  margin: auto;
  background: transparent;
  max-width: min(400px, 94vw);
  max-height: 94dvh;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #f3efe0;
  font: 900 15px 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  text-align: center;
}

dialog#o[open] {
  display: flex;
}

dialog#o::backdrop {
  background: rgba(8, 6, 18, 0.9);
  backdrop-filter: blur(6px);
}

dialog#o img {
  max-height: 74dvh;
  max-width: 100%;
  border: 3px solid #f3efe0;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
}

dialog#o .o-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

dialog#o button {
  background: #ff7ab8;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font: 900 14px 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  cursor: pointer;
}

dialog#o button:active {
  transform: scale(0.96);
}
