:root {
  --ink: #ffffff;
  --bg: #000000;
  --panel: rgba(20, 20, 20, 0.9);
  --accent: #ff7a59;
  --mascot-size: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.wrap {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.controls {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.control {
  display: flex;
  gap: 8px;
  align-items: center;
}

.control span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.control input,
.control select {
  width: 88px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font: inherit;
  background: #000;
  color: #fff;
}

button {
  font: inherit;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(255, 122, 89, 0.35);
}

button:active {
  transform: translateY(1px);
}

.stage {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  border-radius: 0;
  background: #0b0b0b;
  overflow: hidden;
  border: none;
}

#mascotLayer {
  position: absolute;
  inset: 0;
}

.mascot {
  position: absolute;
  width: var(--mascot-size);
  user-select: none;
  pointer-events: none;
  transform-origin: 50% 80%;
  --glow: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5)) var(--glow);
}

.mascot.flash {
  --glow: drop-shadow(0 0 8px rgba(90, 160, 255, 0.9))
    drop-shadow(0 0 16px rgba(90, 160, 255, 0.7));
}

@media (max-width: 720px) {
  .control input {
    width: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
