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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a0e12;
  color: #4a2030;
  font-family: "M PLUS Rounded 1c", "Zen Maru Gothic", sans-serif;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

body {
  background:
    linear-gradient(180deg, rgba(255, 214, 186, 0.15), rgba(80, 20, 40, 0.35)),
    url("../assets/bg/title.jpg") center / cover no-repeat;
}

#view {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.back {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 40;
  color: #fff6ea;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.12em;
  padding: 8px 14px;
  background: rgba(80, 24, 40, 0.55);
  border: 1px solid #f3c27a;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.back:hover {
  color: #ffe08a;
}

#boot {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #2a1018;
  color: #ffd6e4;
  letter-spacing: 0.18em;
  z-index: 50;
}

.hidden {
  display: none !important;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.overlay .panel,
.overlay .actions,
.overlay a,
.overlay button {
  pointer-events: auto;
}

#title {
  justify-content: flex-start;
  padding-top: 5vh;
  background:
    linear-gradient(180deg, rgba(40, 10, 20, 0.18) 0%, rgba(40, 10, 20, 0.05) 38%, rgba(40, 10, 20, 0.4) 100%),
    url("../assets/bg/title.jpg") center / cover no-repeat;
}

.petals {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.petal {
  position: absolute;
  top: -10%;
  width: 14px;
  height: 18px;
  background: radial-gradient(circle at 30% 30%, #fff0f5, #f5a0b8);
  border-radius: 70% 10% 70% 10%;
  opacity: 0.85;
  animation: fall linear infinite;
}

@keyframes fall {
  to {
    transform: translateY(120vh) rotate(360deg);
  }
}

.hero {
  position: relative;
  text-align: center;
  padding: 28px 36px 24px;
  max-width: 640px;
}

.hero h1 {
  font-family: "Yusei Magic", "M PLUS Rounded 1c", sans-serif;
  font-size: clamp(2rem, 5.6vw, 3.6rem);
  line-height: 1.12;
  color: #fff7ef;
  text-shadow:
    0 4px 0 #b04a6a,
    0 10px 28px rgba(80, 10, 30, 0.45);
  letter-spacing: 0.04em;
}

.hero .sub {
  margin-top: 6px;
  font-size: 1.05rem;
  color: #ffe0b0;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero .tag {
  margin: 14px auto 0;
  max-width: 26rem;
  color: #fff0e4;
  font-size: 1.02rem;
  text-shadow: 0 2px 8px rgba(40, 10, 20, 0.6);
}

.title-hi {
  margin-top: 12px;
  color: #ffe9b8;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
}

.actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

#title .actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 4.5vh;
}

.peach-btn,
.peach-btn.small,
#btn-fire {
  appearance: none;
  border: 0;
  width: 128px;
  height: 128px;
  min-width: 128px;
  min-height: 128px;
  padding: 16px 12px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  color: #6a2040;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  cursor: pointer;
  background: url("../assets/ui/button.png") center / cover no-repeat;
  filter: drop-shadow(0 8px 16px rgba(80, 20, 40, 0.35));
  text-decoration: none;
}

.peach-btn:hover,
.peach-btn.small:hover,
#btn-fire:hover {
  transform: translateY(-2px) scale(1.04);
}

.glass {
  background: rgba(255, 244, 232, 0.88);
  border: 1px solid #f0c090;
  border-radius: 22px;
  padding: 28px 32px;
  max-width: 520px;
  box-shadow: 0 20px 50px rgba(40, 10, 20, 0.28);
}

.glass h2 {
  font-family: "Yusei Magic", sans-serif;
  font-size: 1.8rem;
  color: #b04060;
  margin-bottom: 12px;
  text-align: center;
}

.glass p,
.glass li {
  color: #5a3040;
  line-height: 1.75;
}

.glass ul {
  margin: 8px 0 16px 1.1rem;
}

#playhud {
  justify-content: flex-start;
  padding: 16px 18px 16px 150px;
}

.hudbar {
  width: min(980px, 94vw);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
  color: #fff8ee;
  text-shadow: 0 2px 8px rgba(40, 10, 20, 0.55);
  font-weight: 800;
}

.hudbar span {
  letter-spacing: 0.08em;
}

#banner {
  margin-top: 18vh;
  font-family: "Yusei Magic", sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  color: #fff4d8;
  text-shadow: 0 4px 0 #b04a6a, 0 10px 24px rgba(40, 10, 20, 0.4);
}

.pad {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 25;
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
}

#stick {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 3px solid #f0c27a;
  background: radial-gradient(circle at 50% 50%, #f8c0d0 0 24px, rgba(80, 20, 40, 0.45) 25px);
}

@media (max-width: 860px), (hover: none) {
  .pad {
    display: flex;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .peach-btn,
  .peach-btn.small,
  #btn-fire {
    width: 108px;
    height: 108px;
    min-width: 108px;
    min-height: 108px;
    font-size: 0.88rem;
  }
}
