:root {
  --po-bg-start: #11361c;
  --po-bg-end: #1b5f2f;
  --po-accent: #f23846;
  --po-input-bg: rgba(167, 214, 177, 0.4);
  --po-text: #ffffff;
}

* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "Gotham Rounded", "Gotham Rounded Bold", "Arial Rounded MT Bold", Arial, sans-serif;
  color: var(--po-text);
  background: linear-gradient(180deg, var(--po-bg-start), var(--po-bg-end));
  overflow: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 28px;
  text-align: center;
}

.view.is-active {
  display: flex;
}

.silhouette-layer {
  position: absolute;
  inset: 0;
  background: url('assets/easter_silhouette_bg.png') center/cover repeat;
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
}

.top-logo {
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  z-index: 10;
}

/* Spin View */
#spin-view {
  justify-content: center;
}

.header-banner {
  width: 88%;
  max-width: 250px;
  margin-top: 75px;
  margin-bottom: 7px;
  animation: pulse 1.5s ease-in-out infinite;
}

.sub-banner-text {
  color: #ffd700;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 12px 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.wheel-container {
  position: relative;
  width: 98vw;
  max-width: 312px;
  aspect-ratio: 1/1;
  margin: 14px 0;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
  border-radius: 50%;
  background-color: white;
}

#wheel {
  width: 100%;
  height: 100%;
  transition: transform 6s cubic-bezier(0.15, 0, 0.15, 1);
}

.wheel-idle {
  animation: wheel-wobble 4s ease-in-out infinite;
}

@keyframes wheel-wobble {
  0%, 100% { transform: rotate(15deg); }
  50% { transform: rotate(-15deg); }
}

#pin {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  z-index: 10;
}

.spin-btn {
  width: 180px;
  cursor: pointer;
  margin-top: 7px;
  transition: transform 0.2s ease;
  z-index: 10;
}

.spin-btn:active {
  transform: scale(0.95);
}

.spin-btn.is-spinning {
  filter: brightness(0.6);
  pointer-events: none;
}

/* Result View */
#result-view {
  justify-content: center;
}

.result-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.result-message {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.4;
}

.confetti {
  position: absolute;
  top: -20px;
  width: 12px;
  height: 24px;
  opacity: 0;
  animation: confetti-fall 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.prize-image {
  width: 98%;
  max-width: 350px;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Form View */
#form-view {
  padding: 56px 28px;
  background: radial-gradient(circle at center, rgba(27, 95, 47, 0.8) 0%, rgba(17, 54, 28, 0.95) 100%);
  backdrop-filter: blur(10px);
  justify-content: center;
}

.form-container {
  width: 100%;
  max-width: 550px;
  background: rgba(255, 255, 255, 0.05);
  padding: 40px 15px 20px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 25px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.po-input, .po-select {
  display: block;
  width: 100%;
  height: 45px;
  border-radius: 22.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 15px;
  padding: 0 20px;
  color: white;
  background: var(--po-input-bg);
  font-size: 16px;
  font-weight: 600;
  outline: none;
  transition: all 0.3s ease;
}

.po-input:focus, .po-select:focus {
  border-color: #ffd700;
  background: rgba(167, 214, 177, 0.6);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.po-input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.po-select option {
  color: #1b5f2f;
}

.phone-group {
  display: flex;
  align-items: center;
  background: var(--po-input-bg);
  border-radius: 22.5px;
  margin-bottom: 10px;
  padding-left: 15px;
}

.phone-group span {
  font-weight: 700;
}

.phone-group .po-input {
  margin-bottom: 0;
  background: transparent;
}

.question {
  font-size: 14px;
  font-weight: 700;
  margin: 10px 0;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 21px;
  margin-bottom: 21px;
}

.btn-yn {
  width: 90px;
  height: 40px;
  border-radius: 20px;
  border: none;
  background: var(--po-input-bg);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.btn-yn.is-active {
  background: white;
  color: #1b5f2f;
}

.submit-btn {
  width: 180px;
  cursor: pointer;
  margin-top: 10px;
  transition: transform 0.2s ease, filter 0.3s ease;
}

.submit-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.error-msg {
  color: #ffcccc;
  font-size: 13px;
  margin-top: 5px;
  min-height: 10px;
}

/* Final View */
#final-view {
  background: url('assets/BK 2B.jpg') center/cover no-repeat;
  justify-content: center;
}

.easter-image {
  width: 112%;
  max-width: 350px;
  margin-top: 140px;
}

.learn-more-btn {
  width: 252px;
  cursor: pointer;
  margin-top: 42px;
  animation: pulse-slow 3s infinite;
}

/* Modal */
#status-modal {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

#status-modal.is-active {
  display: flex;
}

.modal-content {
  background: white;
  color: #1b5f2f;
  padding: 42px;
  border-radius: 28px;
  width: 112%;
  max-width: 420px;
  text-align: center;
}

.modal-btn {
  margin-top: 28px;
  padding: 11.2px 35px;
  background: var(--po-accent);
  color: white;
  border: none;
  border-radius: 28px;
  font-weight: 700;
}

/* Animations */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes pulse-slow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Easter Decorations */
.easter-decor {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  background-size: contain;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
}

.hanging-side {
  position: absolute;
  top: -50px;
  width: 150px;
  height: 243px;
  background: url('assets/hanging_chandelier.png') center/contain no-repeat;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

.hanging-side.left {
  left: -25px;
}

.hanging-side.right {
  right: -25px;
  transform: scaleX(-1);
}

@keyframes chandelier-yoyo {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(15px) rotate(1deg); }
  66% { transform: translateY(-5px) rotate(-1deg); }
}

.petal {
  position: absolute;
  width: 35px;
  height: 35px;
  background: url('assets/single_petal.png') center/contain no-repeat;
  pointer-events: none;
  z-index: 3;
  animation: yoyo 5s ease-in-out infinite;
}

.p1 { top: 15%; left: 10%; animation-delay: 0s; }
.p2 { top: 25%; right: 15%; animation-delay: 1s; }
.p3 { bottom: 35%; left: 15%; animation-delay: 2s; }
.p4 { bottom: 25%; right: 10%; animation-delay: 3.5s; }

.ornament-f1 {
  display: none;
  background-image: url('assets/single_gold_egg.png');
  animation: float 4s ease-in-out infinite;
}

.ornament-f2 {
  display: none;
  background-image: url('assets/single_gold_egg.png');
  background-position: center;
  animation: float 5s ease-in-out infinite reverse;
}
@keyframes sway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(1.5deg); }
}

@keyframes yoyo {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(30px) rotate(15deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes fall {
  to { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Responsiveness */
@media (min-width: 768px) {
  .header-banner {
    max-width: 286px;
  }
  .sub-banner-text {
    font-size: 1.32rem;
  }
  .wheel-container {
    max-width: 420px;
  }
  .hanging-side {
    top: -100px;
    width: 300px;
    height: 487px;
  }
  .hanging-side.left {
    left: 14px;
  }
  .hanging-side.right {
    right: 14px;
    transform: scaleX(-1);
  }
  .spin-btn {
    width: 252px;
  }
  .form-container {
    max-width: 650px;
    padding: 60px;
  }
  .form-title {
    font-size: 2.8rem;
  }
  .po-input, .po-select {
    height: 84px;
    font-size: 25.2px;
  }
  .phone-group {
    border-radius: 28px;
    margin-bottom: 14px;
    padding-left: 21px;
  }
  .question {
    font-size: 16.8px;
    margin: 14px 0;
  }
  .btn-yn {
    width: 112px;
    height: 50.4px;
    border-radius: 25.2px;
  }
  .submit-btn {
    width: 252px;
    margin-top: 28px;
  }
  .error-msg {
    font-size: 15.4px;
    margin-top: 14px;
    min-height: 21px;
  }
  .result-title {
    font-size: 3.08rem;
    margin-bottom: 14px;
  }
  .result-message {
    font-size: 1.68rem;
    margin-bottom: 28px;
  }
  .ornament-f1 {
    display: block;
    top: auto;
    bottom: -15px;
    left: 25px;
    width: 190px;
    height: 190px;
  }
  .ornament-f2 {
    display: block;
    top: auto;
    bottom: 10px;
    right: 25px;
    width: 230px;
    height: 230px;
  }

}

@media (max-height: 700px) {
  .wheel-container {
    max-height: 75vh;
    width: auto;
  }
  .form-container {
    padding: 20px;
  }
  .form-title {
    margin-bottom: 14px;
  }
}
