.offseason {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 16, 36, 0.58);
  backdrop-filter: blur(7px);
}

.offseason[hidden] {
  display: none;
}

.offseason__card {
  position: relative;
  box-sizing: border-box;
  width: min(420px, 100%);
  margin: 0;
  padding: 30px 24px 22px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(158, 212, 255, 0.28), transparent 62%),
    #fff8ec;
  box-shadow: 0 24px 60px rgba(8, 14, 32, 0.38);
  text-align: center;
  color: #1b2a55;
  font-family: "Pretendard Variable", Pretendard, ui-sans-serif, system-ui, sans-serif;
}

.offseason__celebrate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.offseason__pop,
.offseason__bat {
  flex: none;
  width: 38px;
  height: 38px;
  overflow: visible;
}

.offseason__swing,
.offseason__ball,
.offseason__spark,
.offseason__cone,
.offseason__confetti {
  transform-box: fill-box;
}

.offseason__swing {
  transform-origin: 0% 100%;
  animation: offseason-swing 2.4s ease-in-out infinite;
}

.offseason__ball {
  transform-origin: 50% 50%;
  animation: offseason-bounce 2.4s ease-in-out infinite;
}

.offseason__spark {
  transform-origin: 50% 50%;
  animation: offseason-twinkle 1.6s ease-in-out infinite;
}

.offseason__cone {
  transform-origin: 0% 100%;
  animation: offseason-wiggle 2.4s ease-in-out infinite;
}

.offseason__confetti {
  transform-origin: 0% 100%;
  animation: offseason-burst 2.4s ease-in-out infinite;
}

@keyframes offseason-swing {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-9deg); }
}

@keyframes offseason-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}

@keyframes offseason-twinkle {
  0%, 100% { transform: scale(0.7); opacity: 0.55; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes offseason-wiggle {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(6deg); }
}

@keyframes offseason-burst {
  0%, 100% { transform: scale(0.92); opacity: 0.8; }
  50% { transform: scale(1.06) translate(1px, -1px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .offseason__swing,
  .offseason__ball,
  .offseason__spark,
  .offseason__cone,
  .offseason__confetti {
    animation: none;
  }
}

.offseason__card .offseason__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 139, 122, 0.16);
  color: #e25b4a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.offseason__card h2 {
  margin: 16px 0 0;
  font-family: "Jua", "Pretendard Variable", sans-serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #1b2a55;
}

.offseason__card p {
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(27, 42, 85, 0.78);
}

.offseason__card .offseason__thanks {
  margin-top: 10px;
  font-family: "Jua", "Pretendard Variable", sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #1b2a55;
}

.offseason__bar {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 50px;
  margin-top: 18px;
}

.offseason__hide {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: rgba(27, 42, 85, 0.62);
  cursor: pointer;
}

.offseason__hide input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #1b2a55;
  cursor: pointer;
}

.offseason__ok {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 50px;
  margin: 0;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: #1b2a55;
  color: #fff8ec;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.offseason__ok:focus-visible {
  outline: 3px solid #9ed4ff;
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .offseason__bar {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-height: 0;
  }

  .offseason__ok {
    position: static;
    align-self: center;
    transform: none;
  }
}
