* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
}

.display-surface {
  display: flex;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.reference-artwork {
  display: block;
  flex: none;
  width: min(100vw, 100vh * 3.5555556);
  height: auto;
  max-height: 100vh;
  aspect-ratio: 1920 / 540;
  object-fit: contain;
}

.fullscreen-button {
  position: fixed;
  z-index: 10;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  display: inline-flex;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  background: rgba(11, 31, 91, 0.92);
  color: #fff;
  font: 600 15px/1.2 Arial, "Noto Sans TC", sans-serif;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
}

.fullscreen-button:focus-visible {
  outline: 3px solid #ffdf4f;
  outline-offset: 3px;
}

.fullscreen-icon {
  font-size: 23px;
  line-height: 1;
}

@media (min-width: 1920px) and (min-height: 540px) {
  .fullscreen-button {
    display: none;
  }
}
