:root {
  color-scheme: dark;
  --bg-top: #241538;
  --bg-bottom: #0c1220;
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.9);
  --text-muted: rgba(255, 255, 255, 0.65);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(120% 100% at 20% 0%, var(--bg-top) 0%, var(--bg-bottom) 65%);
  font-family: "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

.app {
  position: fixed;
  inset: 0;
}

#scene {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 3;
}

.play-button {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.2s ease;
}

.play-button:hover {
  transform: scale(1.04);
  background: rgba(255, 255, 255, 0.14);
}

.play-button:active {
  transform: scale(0.98);
}

.icon {
  grid-area: 1 / 1;
}

.icon-play {
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid currentColor;
  margin-left: 5px;
}

.icon-pause {
  width: 20px;
  height: 24px;
  border-left: 6px solid currentColor;
  border-right: 6px solid currentColor;
  opacity: 0;
}

.play-button[data-playing="true"] .icon-play {
  opacity: 0;
}

.play-button[data-playing="true"] .icon-pause {
  opacity: 1;
}

.status {
  position: absolute;
  top: calc(50% + 70px);
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 0.01em;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.credit {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 4;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.credit a {
  color: #ffffff;
  text-decoration: none;
}

.credit a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .play-button {
    width: 78px;
    height: 78px;
  }

  .status {
    top: calc(50% + 58px);
    font-size: 13px;
    padding: 0 16px;
  }

  .credit {
    font-size: 12px;
  }
}
