/* 가 안 다듬은 것(a2, 2026-11-17). base.css 위에 얹는다. a.html은 그대로 둔다.
   바뀐 것: 외침이 입에서 나옴, 05~07 본문을 진짜 글자로, 상금이 차례로 놓임, 남은 시간, 넓은 화면 바탕, 글꼴 줄임 */
@font-face { font-family: "PretendardA2"; src: url("assets/a2_pretendard.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
body.a2 { font-family: "PretendardA2", -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }

/* 넓은 화면: 양옆 빈 남색 대신 흐린 하늘 */
@media (min-width: 560px) {
  body.a2::before { content: ""; position: fixed; inset: -40px; z-index: -1; background: #0b3a66 url("assets/sky.webp") center / cover no-repeat; filter: blur(28px) brightness(0.6); }
  body.a2 .page { box-shadow: 0 0 80px rgba(0, 20, 50, 0.55); }
}
.a2 .card { overflow: hidden; }

/* 대문: 외침이 입에서 터져 나와 제자리로 */
.a2 .shout.swap { animation: none; }
.a2 .shout.fly { animation: fly 0.62s cubic-bezier(0.2, 0.9, 0.3, 1) both; transform-origin: 0 50%; }
@keyframes fly {
  0% { transform: translate(58cqw, -33cqw) scale(0.12); opacity: 0; }
  12% { opacity: 1; }
  55% { transform: translate(3cqw, -7cqw) scale(1.42) rotate(-4deg); }
  78% { transform: translate(0, 0.6cqw) scale(0.96); }
  100% { transform: none; }
}
.rays { position: absolute; left: calc(692 / 1080 * 100%); top: calc(836 / 1350 * 100%); width: 46cqw; aspect-ratio: 1; margin: -23cqw 0 0 -23cqw; border-radius: 50%; pointer-events: none; opacity: 0;
  background: repeating-conic-gradient(from 8deg, #f7ff26 0 5deg, transparent 5deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 0 38%, #000 39% 62%, transparent 63%); mask: radial-gradient(circle, transparent 0 38%, #000 39% 62%, transparent 63%); }
.rays.go { animation: rays 0.45s ease-out; }
@keyframes rays { 0% { transform: scale(0.35) rotate(0deg); opacity: 0.95; } 100% { transform: scale(1.25) rotate(14deg); opacity: 0; } }

/* 대문 인물(11/17 고탱 "다리가 상자에 안 들어간 것 같다"): 카드 y 392~1350 칸에 원본 그대로.
   상자 안쪽과 입구 경계는 항상 유지한다. moving 종료 때 반투명 바지 뒤 배경이 바뀌지 않도록 한다. */
.a2 .subject.hero { aspect-ratio: 1080 / 958; isolation: isolate; }
.a2 .hero > * { position: absolute; }
/* 인물이 튀어나오는 동안 상자 이미지가 몸을 덮지 않게 한다.
   기존 pclip으로 다리의 입구 경계를 유지하고, 레이어는 hero 안에 가둔다. */
.a2 .hero .inbox { z-index: 0; }
.a2 .hero .box-front { z-index: 1; }
.a2 .hero .pclip { z-index: 2; }
.a2 .hero .inbox { inset: 0; opacity: 1; transform-origin: 63% 95%; background: linear-gradient(165deg, #5a4028, #1f140b); clip-path: polygon(48.7% 70.3%, 82.4% 78%, 84% 108%, 41.5% 92%); }
.a2 .hero.thump .inbox { animation: thump 0.45s ease; }
.a2 .hero .pclip { inset: 0; clip-path: polygon(0 -60%, 100% -60%, 100% 200%, 87.1% 200%, 83.8% 105.9%, 41.7% 89.7%, 45.5% 200%, 0 200%); }
.a2 .hero .person { left: 0; top: 0; width: 100%; max-width: none; transform-origin: 63.1% 87.6%; }
/* 상자에 잘못 남은 검은 조각만 제외한다. 앞판의 밝은 테두리는 유지한다. */
.a2 .hero .box-front { left: 0; top: 0; width: 100%; max-width: none; transform-origin: 63% 95%; -webkit-mask: url("assets/a2_box_mask.svg") 0 0 / 100% 100% no-repeat; mask: url("assets/a2_box_mask.svg") 0 0 / 100% 100% no-repeat; }
.a2 .hero .person.sunk { transform: translateY(14%) scale(0.25); }
.a2 .hero .person.pop { animation: hpop 0.62s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
@keyframes hpop { 0% { transform: translateY(14%) scale(0.25); } 50% { transform: translateY(-3%) scale(1.06); } 72% { transform: translateY(0.8%) scale(0.98); } 100% { transform: none; } }

/* 03: 소리 선이 그림 속 스피커 바로 앞에서 오른쪽으로 퍼진다. 스피커 위치는 card03 그림에서 잼(몸통 514~542, 위아래 333~376 / 900x1125) */
.wave { position: absolute; left: 59.6%; top: 31.5%; width: 0; height: 0; pointer-events: none; }
.wave i { position: absolute; left: 0; top: 0; width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2); border: 0.5cqw solid transparent; border-right-color: #1f4fbf; border-radius: 50%; opacity: 0; }
.wave i:nth-child(1) { --d: 7.6cqw; } .wave i:nth-child(2) { --d: 10.6cqw; } .wave i:nth-child(3) { --d: 13.6cqw; }
.wave.go i { animation: wave 0.6s ease-out both; }
.wave.go i:nth-child(2) { animation-delay: 0.1s; } .wave.go i:nth-child(3) { animation-delay: 0.2s; }
@keyframes wave { 0% { opacity: 0; transform: scale(0.8); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.08); } }

/* 02 아래 대표작: 손가락으로는 옆으로 밀고, 마우스에서는 화살표 */
.strip-wrap { position: relative; }
.strip-wrap .nav { position: absolute; top: 36%; width: 40px; height: 40px; margin-top: -20px; padding: 0 0 3px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #0a2540; font: 700 26px/1 sans-serif; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); transition: opacity 0.2s; }
.strip-wrap .nav[hidden] { display: none; }
.strip-wrap .prev { left: 12px; } .strip-wrap .next { right: 12px; }
.strip-wrap .nav:disabled { opacity: 0; pointer-events: none; }

/* 05~07 공통: 본문 글자 */
.live .at { margin: 0; }
.live p, .live dl, .live h3 { margin: 0; }

/* 05 대회 개요 */
.hand { position: absolute; left: calc(640 / 1080 * 100%); top: calc(150 / 1350 * 100%); width: calc(440 / 1080 * 100%);   /* 11/17 최종 카드의 손(저작권 걱정으로 교체됨)을 카드에서 떼어 같은 자리에 */ padding: 0; border: 0; background: none; cursor: pointer; touch-action: manipulation; transform-origin: 62% 45%; }
.hand img { width: 100%; }
.live .ttl { pointer-events: none; }
.hand.poke { animation: poke 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
@keyframes poke { 0% { transform: scale(0.72); } 45% { transform: scale(1.14); } 100% { transform: none; } }
.facts > div { position: absolute; left: calc(116 / 1080 * 100%); right: 4cqw; top: calc(var(--y) / 1350 * 100%); display: grid; grid-template-columns: 23.8cqw 1fr; font-size: 4.25cqw; font-weight: 700; line-height: 1.66; letter-spacing: -0.03em; text-shadow: 0 0.2cqw 1cqw rgba(0, 40, 90, 0.35); }
.facts dt { color: var(--yellow); font-weight: 800; }
.facts dd { margin: 0; }
.facts small { font-size: 0.72em; }

/* 06 자주 묻는 질문: 높이를 글에 맞춘다 */
.card.flow { background: #114779; }
.card.flow > img.bg { position: absolute; left: 0; top: 0; -webkit-mask: linear-gradient(#000 0 42%, transparent 70%); mask: linear-gradient(#000 0 42%, transparent 70%); }
.card.flow::before { content: ""; display: block; padding-top: 37%; }
.qa { position: relative; display: grid; gap: 26px; padding: 0 22px 44px calc(72 / 1080 * 100%); }
.qa h3 { color: var(--yellow); font-size: 16px; font-weight: 800; line-height: 1.45; letter-spacing: -0.02em; }
.qa p { margin-top: 6px; font-size: 15px; font-weight: 600; line-height: 1.62; letter-spacing: -0.015em; }

/* 07 수상 혜택 */
.tro { padding: 0; border: 0; background: none; cursor: pointer; touch-action: manipulation; transform-origin: 50% 92%; }
.tro img { width: 100%; }
/* 색종이 대신 트로피 위 반짝 한 번(11/17 고탱 "과한가, 미니멀하게") */
.glint { position: absolute; left: 60%; top: 0; width: 24%; aspect-ratio: 1; background: #fff; clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); transform: scale(0); pointer-events: none; z-index: 1; }
.p1 .glint { left: 54%; top: 4%; width: 18%; }
.glint.go { animation: glint 0.7s ease-out; }
@keyframes glint { 0% { transform: scale(0) rotate(-20deg); } 40% { transform: scale(1) rotate(12deg); } 100% { transform: scale(0) rotate(45deg); } }
.lab { color: var(--yellow); font-size: 4.05cqw; font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; }
.lab.l { font-size: 5.5cqw; }
.amt { font-weight: 900; line-height: 1.15; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.amt.s { font-size: 5.9cqw; } .amt.m { font-size: 7.2cqw; } .amt.l { font-size: 8.8cqw; }
.amt .n { font-weight: 900; }
.tax { position: absolute; left: 0; right: 0; bottom: 2.6cqw; font-size: max(11px, 2.9cqw); font-weight: 600; text-align: center; opacity: 0.82; }
/* 움직임이 켜져 있을 때만 숨겨 두었다가 놓는다 */
.anim #c07 .prz .tro, .anim #c07 .prz p { opacity: 0; }
.anim #c07 .prz.in .tro { animation: drop 0.55s cubic-bezier(0.3, 0.7, 0.3, 1) both; }
.anim #c07 .prz.in p { animation: rise 0.4s ease-out 0.22s both; }
.anim #c07 .p1.in .tro { animation: drop1 0.7s cubic-bezier(0.3, 0.7, 0.3, 1) both; }
@keyframes drop { 0% { transform: translateY(-34cqw) rotate(-8deg); opacity: 0; } 20% { opacity: 1; } 62% { transform: translateY(0) scale(1.06, 0.9); } 80% { transform: translateY(-2.4cqw) scale(0.98, 1.03); } 100% { transform: none; opacity: 1; } }
@keyframes drop1 { 0% { transform: translateY(-60cqw) rotate(10deg); opacity: 0; } 15% { opacity: 1; } 58% { transform: translateY(0) scale(1.1, 0.84); } 76% { transform: translateY(-4cqw) scale(0.97, 1.05); } 90% { transform: translateY(0) scale(1.02, 0.97); } 100% { transform: none; opacity: 1; } }
@keyframes rise { 0% { transform: translateY(2.4cqw); opacity: 0; } 100% { transform: none; opacity: 1; } }
.tro.wob { animation: wob 0.5s ease !important; opacity: 1 !important; }
@keyframes wob { 25% { transform: rotate(-9deg) scale(1.06); } 60% { transform: rotate(6deg); } 100% { transform: none; } }
#c07.thud > img.bg { animation: thud 0.3s ease; }
@keyframes thud { 30% { transform: translateY(0.9cqw); } 60% { transform: translateY(-0.4cqw); } }

/* 아래 막대: 처음부터 보이고, 남은 시간을 같이 보여 준다 */
.a2 .bar .due { line-height: 1.25; }
.a2 .bar .left { display: block; margin-top: 2px; font-style: normal; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: 0.78; }
.a2 .bar .left:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  .shout, .rays, .hand, .tro, .prz p, .wave i, .glint { animation: none !important; }
}

/* PC 넓은 화면(11/17 고탱 "왼쪽 고정, 오른쪽만 스크롤이 어색"): 나누지 않고 한 줄을 화면 높이에 맞춰 키운다.
   카드 한 장이 막대 위 화면에 꽉 차고, 스크롤하면 한 장씩 넘어간다. 폰에서는 폭이 그대로라 달라지는 것이 없다 */
@media (min-width: 560px) {
  body.a2 { --col: max(480px, calc((100vh - 66px) * 0.8)); }
  body.a2 .page { max-width: var(--col); }
  body.a2 .bar { width: min(var(--col), 100%); }
  body.a2::before { filter: blur(22px) brightness(0.72); }
  .a2 .qa { gap: clamp(26px, 6cqw, 46px); padding-bottom: clamp(44px, 9cqw, 72px); padding-right: 6cqw; }
  .a2 .qa h3 { font-size: clamp(16px, 3.7cqw, 27px); }
  .a2 .qa p { font-size: clamp(15px, 3.45cqw, 25px); }
  .a2 .strip { container-type: inline-size; padding: 3cqw 3.5cqw 4.6cqw; gap: 2.4cqw; }
  .a2 .strip span { font-size: clamp(14px, 3.1cqw, 22px); }
  .a2 .strip small { font-size: clamp(12px, 2.6cqw, 18px); }
}
/* 견줘 보기용: a2.html?pc=split 이면 앞의 두 칸 배치(대문 왼쪽 고정) */
@media (min-width: 1100px) and (min-height: 620px) {
  .pc-split body.a2 .page { display: grid; grid-template-columns: 80vh 480px; width: fit-content; max-width: none; overflow: visible; background: none; box-shadow: none; padding-bottom: 0; }
  .pc-split body.a2 .page > * { grid-column: 2; background-color: var(--navy); }
  .pc-split body.a2 .page > #c01 { grid-column: 1; grid-row: 1 / span 12; position: sticky; top: 0; align-self: start; height: 100vh; box-shadow: 0 0 80px rgba(0, 20, 50, 0.55); z-index: 1; }
  .pc-split body.a2 .page > .strip { background: #030304; }
  .pc-split body.a2 .page > #c08 { margin-bottom: 76px; }
  .pc-split body.a2 .bar { left: calc(50% + 40vh); width: 480px; }
}
