@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;700&display=swap");

.castevent {
  --cast-red: #db202a;
  --cast-rule: #aaa;
  --cast-serif: "Noto Serif KR", Batang, serif;
  --cast-sans: Pretendard, "Spoqa Han Sans Neo", "Noto Sans KR", sans-serif;
  width: 100%;
  padding-bottom: clamp(40px, 4.2vw, 80px);
  background: #fff;
  color: #000;
  font: 400 16px/1.4 var(--cast-serif);
  letter-spacing: normal;
  text-align: center;
}
.castevent *, .castevent *::before, .castevent *::after { box-sizing: border-box; }
.castevent :is(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; }
.castevent img { display: block; max-width: 100%; height: auto; }
.castevent :is(strong, .cast-choices b) { color: var(--cast-red); }

.cast-hero {
  width: 100%;
  overflow: hidden;
}
.cast-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1920px;
  overflow: hidden;
  aspect-ratio: 1920 / 702;
  margin-inline: auto;
  container-type: inline-size;
}
.cast-logo { width: 14.36%; margin-top: 7.3cqw; }
.cast-title { position: relative; z-index: 1; width: 23.75%; margin-top: 2.92cqw; }
.cast-stamp { position: absolute; top: 66%; left: 96%; width: 27.7%; }
.cast-dates { position: relative; z-index: 1; margin-top: 2.92cqw; }
.cast-dates p:first-child { font-size: 1.77cqw; font-weight: 700; }
.cast-dates p + p { margin-top: .55cqw; font-size: 1.15cqw; }
.cast-players img { position: absolute; }
.cast-woman { width: 28.47%; left: 8.33%; bottom: 0; }
.cast-man { width: 21.25%; right: 10.68%; bottom: -.71cqw; }
.castevent .cast-banner {
  padding: 7px 16px;
  background: #000;
  color: #fff;
  font: 400 clamp(14px, 1.67vw, 32px)/1.16 var(--cast-sans);
  text-wrap: balance;
}

.cast-content { width: min(100%, 860px); margin: clamp(32px, 4.17vw, 80px) auto 0; padding-inline: 16px; }
.cast-exam {
  max-width: 772px;
  margin-inline: auto;
  padding: clamp(36px, 6vw, 90px) clamp(14px, 3.6vw, 35px) clamp(40px, 6vw, 100px);
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #f9f9f9;
  box-shadow: 8px 12px 18px #0003;
  container-type: inline-size;
}
.castevent .cast-masthead {
  margin-bottom: clamp(12px, 3cqw, 21px);
  font-size: clamp(13px, 3.07cqw, 22px);
  font-weight: 700;
}
.cast-period {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: clamp(10px, 3cqw, 21px);
  border-block: 1px solid var(--cast-rule);
}
.cast-period span {
  border: 1px solid var(--cast-rule);
  padding: .38em 1.3em;
  font-size: clamp(13px, 3.43cqw, 24px);
  font-weight: 700;
}
.cast-period h2 { font-size: clamp(17px, 5.15cqw, 36px); font-weight: 700; }
.cast-question { padding-block: clamp(25px, 7.3cqw, 51px) clamp(26px, 6.7cqw, 47px); }
.cast-question + .cast-question {
  border-top: 1px solid var(--cast-rule);
  padding-top: clamp(32px, 10cqw, 70px);
}
.castevent .cast-question h3 {
  display: inline-block;
  padding: .28em .8em;
  border: 1px solid;
  border-radius: 100px;
  font-size: clamp(15px, 3.85cqw, 27px);
  font-weight: 700;
}
.castevent :is(.cast-question h3 + p, .cast-prompt) {
  margin-top: clamp(10px, 2.85cqw, 20px);
  font-size: clamp(14px, 3.85cqw, 27px);
  text-wrap: balance;
}
.castevent .cast-choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .3em .6em;
  margin: clamp(24px, 8cqw, 56px) 0 clamp(26px, 9cqw, 64px);
  list-style: none;
  font-size: clamp(14px, 4.7cqw, 33px);
}
.cast-choices li { white-space: nowrap; }
.cast-graphic { width: 58.5%; margin-inline: auto; }
.castevent .cast-result {
  margin-top: clamp(28px, 10.85cqw, 76px);
  font: 700 clamp(19px, 5.85cqw, 41px)/1.2 var(--cast-sans);
  letter-spacing: -.04em;
  text-wrap: balance;
}
.castevent .cast-detail {
  margin-top: clamp(8px, 1.7cqw, 12px);
  font-size: clamp(13px, 3.08cqw, 22px);
  font-weight: 700;
  text-wrap: balance;
}
.cast-participation { margin-top: clamp(38px, 17.6cqw, 123px); }
.castevent .cast-instructions {
  margin-top: clamp(24px, 8.5cqw, 60px);
  font: 900 clamp(29px, 12cqw, 84px)/1.1 var(--cast-sans);
  letter-spacing: -.05em;
}
.castevent .cast-prompt { margin-top: .4em; }
.castevent .cast-steps {
  margin-top: clamp(24px, 8.5cqw, 60px);
  list-style: none;
  font-size: clamp(15px, 4.55cqw, 32px);
  font-weight: 700;
  text-align: left;
}
.cast-steps li {
  display: flex;
  align-items: center;
  gap: clamp(10px, 6.4cqw, 45px);
  padding: clamp(16px, 6.4cqw, 45px) clamp(0px, 7.1cqw, 50px);
  border-bottom: 1px solid var(--cast-rule);
}
.cast-steps li > span {
  flex: 0 0 auto;
  min-width: 2.8em;
  padding: .1em .35em;
  border-radius: 100px;
  background: #000;
  color: #fff;
  text-align: center;
}
.cast-steps em { position: relative; display: inline-block; font-style: normal; }
.cast-steps a,
.cast-step-discount { position: relative; display: inline-block; }
.cast-steps a { color: inherit; text-decoration: none; }
.cast-steps em::after,
.cast-steps a::after,
.cast-step-discount::after {
  position: absolute;
  content: "";
  pointer-events: none;
  background: center / contain no-repeat;
}
.cast-steps em::after {
  inset: -.55em -.72em;
  background-image: url("https://tm.ajlabs.co.kr/common/event/2026-castevent/circle.png");
}
.cast-steps a::after {
  left: -3%;
  right: -3%;
  bottom: -.25em;
  height: .65em;
  background-image: url("https://tm.ajlabs.co.kr/common/event/2026-castevent/zig.png");
}
.cast-step-discount::after {
  top: -.35em;
  left: 100%;
  width: .94em;
  height: 1.15em;
  background-image: url("https://tm.ajlabs.co.kr/common/event/2026-castevent/star.png");
}
.cast-steps a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.cast-bonus {
  margin-top: clamp(18px, 5.7cqw, 40px);
  padding: clamp(16px, 4.3cqw, 30px) 10px;
  border: 1px solid var(--cast-rule);
  background: #fff;
}
.cast-bonus p:first-child { color: var(--cast-red); font-size: clamp(14px, 3.3cqw, 23px); }
.castevent .cast-bonus h3 {
  margin: .45em 0;
  font: 700 clamp(15px, 4cqw, 28px)/1.25 var(--cast-sans);
  text-wrap: balance;
}
.cast-bonus p:last-child { font-size: clamp(12px, 2.7cqw, 19px); }

.castevent .cast-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: clamp(20px, 5.7cqw, 40px);
  padding: .6em 1.5em;
  border-radius: 8px;
  background: var(--cast-red);
  color: #fff;
  font: 700 clamp(16px, 3.43cqw, 24px)/1.25 var(--cast-sans);
  text-decoration: none;
}
.cast-cta:hover { filter: brightness(.9); }
.cast-cta:focus-visible { outline: 2px solid var(--cast-red); outline-offset: 4px; }

@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .cast-players img { transform-origin: center bottom; }
  .cast-woman {
    animation: cast-woman-drift 23s ease-in-out infinite, cast-player-depth 14s ease-in-out infinite;
  }
  .cast-man {
    animation: cast-man-drift 29s ease-in-out infinite, cast-player-depth 14s ease-in-out -7s infinite;
  }
}

@keyframes cast-woman-drift {
  0%, 100% { translate: 0; }
  21% { translate: -3%; }
  48% { translate: 2%; }
  76% { translate: -1%; }
}

@keyframes cast-man-drift {
  0%, 100% { translate: 0; }
  36% { translate: 4%; }
  59% { translate: -2%; }
  83% { translate: 2%; }
}

@keyframes cast-player-depth {
  0%, 100% { scale: .96; }
  50% { scale: 1.05; }
}

@media (max-width: 767px) {
  .cast-scene { aspect-ratio: auto; }
  .cast-logo { width: min(43%, 200px); margin-top: clamp(28px, 9cqw, 64px); }
  .cast-title { width: min(65%, 360px); margin-top: 5.5cqw; }
  .cast-stamp { left: 91%; width: 21%; }
  .cast-dates { margin-top: 6cqw; padding-inline: 12px; }
  .cast-dates p:first-child { font-size: clamp(19px, 5.6cqw, 32px); }
  .cast-dates p + p { font-size: clamp(13px, 3.6cqw, 21px); }
  .cast-players { position: relative; width: min(84%, 410px); height: clamp(185px, 59cqw, 350px); margin-top: 16px; }
  .cast-players img { inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
  .cast-woman { animation: cast-woman-fade 3.8s ease both; }
  .cast-man { animation: cast-man-fade 3.8s ease both; }

  @media (prefers-reduced-motion: reduce) {
    .cast-woman { animation: none; }
    .cast-man { display: none; }
  }
}

@keyframes cast-woman-fade {
  0% { opacity: 0; }
  22%, 70% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes cast-man-fade {
  0%, 70% { opacity: 0; }
  100% { opacity: 1; }
}

.cast-stores {
  margin-top: clamp(28px, 5.7cqw, 40px);
  text-align: left;
}
.cast-stores .cast-period span {
  padding: .5em .8em;
  font: 700 clamp(12px, 2.6cqw, 16px)/1.3 var(--cast-sans);
}
.castevent .cast-store-list {
  --cast-card-width: 46%;
  position: relative;
  display: flex;
  gap: 16px;
  margin-top: clamp(16px, 3cqw, 24px);
  padding-bottom: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
}
.cast-store {
  flex: 0 0 var(--cast-card-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #cfcfcf;
  background: #fff;
  scroll-snap-align: start;
}
.castevent .cast-store h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 10px;
  font: 700 clamp(14px, 2.6cqw, 18px)/1.15 var(--cast-sans);
}
.cast-store h3 span {
  font-size: clamp(20px, 4.6cqw, 32px);
  font-weight: 900;
  letter-spacing: -1px;
}
.cast-store:first-child h3,
.cast-store:focus-within h3 {
  background: #000;
  color: #fff;
}
.castevent .cast-store img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.cast-store__info {
  display: grid;
  gap: 4px;
  padding: 14px 12px;
  font: 400 14px/1.5 var(--cast-sans);
  word-break: keep-all;
}
.cast-store__type { font-weight: 700; }
.cast-store__info a { color: inherit; text-decoration: underline; }
.cast-store__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding: 0 12px 12px;
}
.cast-store__actions a {
  display: inline-flex;
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font: 400 12px/1.4 var(--cast-sans);
  text-decoration: none;
  white-space: nowrap;
}
.cast-store__actions a::after { content: "→" / ""; }
.cast-stores :is(a, .cast-store-list):focus-visible {
  outline: 2px solid var(--cast-red);
  outline-offset: 2px;
}
@media (max-width: 767px) {
  .castevent .cast-store-list { --cast-card-width: 82%; }
}


.cast-store-controls:not([hidden]) {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.cast-store-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--cast-rule);
  border-radius: 4px;
  background: #fff;
  color: #000;
  font: 400 24px/1 var(--cast-sans);
  cursor: pointer;
}
.cast-store-controls button:focus-visible {
  outline: 2px solid var(--cast-red);
  outline-offset: 2px;
}

.cast-title h1 { position: relative; }
.cast-title__main { clip-path: inset(0 0 34% 0); }
.cast-title__subtitle {
  position: absolute;
  inset: 0;
  width: 100%;
  clip-path: inset(66% 0 0 0);
  transform-origin: center 84%;
}
@media (prefers-reduced-motion: no-preference) {
  .cast-title__main { animation: cast-title-reveal .95s steps(5, end) both; }
  .cast-title__subtitle { animation: cast-graphic-bounce .78s ease-out 1.08s both; }
  .cast-stamp { animation: cast-stamp-press .36s ease-out 1.95s both; }
}
@keyframes cast-title-reveal {
  from { clip-path: inset(0 100% 34% 0); }
  to { clip-path: inset(0 0 34% 0); }
}
@keyframes cast-stamp-press {
  0% { opacity: 0; transform: scale(1.45); }
  45% { opacity: 1; transform: scale(.94); }
  70% { transform: scale(1.025); }
  100% { opacity: 1; transform: none; }
}

.castevent .cast-store-list { scrollbar-width: none; }
.cast-store-list::-webkit-scrollbar { display: none; }
.castevent .cast-store-list.is-dragging { scroll-snap-type: none; user-select: none; }
@media (pointer: fine) {
  .cast-store-list { cursor: grab; }
  .cast-store-list.is-dragging, .cast-store-list.is-dragging * { cursor: grabbing; }
}

.cast-store-map { text-align: center; }


.cast-answer { position: relative; display: inline-block; }
.castevent .cast-choices .cast-answer { color: inherit; }
.cast-answer__ink { position: absolute; inset: 0; color: var(--cast-red); }
.cast-answer__outline { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .has-exam-motion .cast-answer__outline { opacity: 1; }
  .has-exam-motion .cast-answer__ink { clip-path: inset(0 100% 0 0); }
  .has-exam-motion .cast-choices.is-exam-visible .cast-answer__ink {
    animation: cast-answer-paint .48s ease-out .12s both;
  }
  .has-exam-motion .cast-choices.is-exam-visible .cast-answer__outline {
    animation: cast-answer-hide .48s step-end .12s both;
  }
  .has-exam-motion .cast-choices li + li .cast-answer { --cast-paint-delay: .12s; }
  .has-exam-motion .cast-choices li:nth-child(3) .cast-answer { --cast-paint-delay: .29s; }
  .has-exam-motion .cast-choices.is-exam-visible .cast-answer > span {
    animation-delay: var(--cast-paint-delay, .12s);
  }

  .has-exam-motion .cast-graphic { opacity: 0; }
  .has-exam-motion .cast-graphic.is-exam-visible { animation: cast-graphic-bounce .78s ease-out both; }

}

@keyframes cast-answer-paint { to { clip-path: inset(0); } }
@keyframes cast-answer-hide { to { opacity: 0; } }

@keyframes cast-graphic-bounce {
  0% { opacity: 0; transform: translateY(20px) scale(.9); }
  48% { opacity: 1; transform: translateY(-9px) scale(1.035); }
  71% { transform: translateY(3px) scale(.99); }
  87% { transform: translateY(-2px) scale(1.01); }
  100% { opacity: 1; transform: none; }
}

.cast-outro {
  margin-top: clamp(36px, 8cqw, 64px);
  padding-top: clamp(24px, 5cqw, 36px);
  border-top: 1px solid var(--cast-rule);
  color: #000;
  text-align: center;
}
.castevent .cast-outro p {
  font: 700 clamp(16px, 4cqw, 26px)/1.4 "Noto Sans KR", sans-serif;
  text-wrap: balance;
}
.castevent .cast-outro img {
  width: clamp(116px, 30cqw, 180px);
  margin: 16px auto 0;
}
