@charset "utf-8";
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --duration: 900ms;     /* ① 튕기기 메인 */
  --micro: 380ms;        /* ① 미세 바운스 */
  --fallDur: 1600ms;     /* ② 낙하 */
  --settleDur: 500ms;    /* ② 반동 */
  --popDur: 700ms;       /* ③ 팝업 */

  --clapDelay: 100ms;   /* 손 시작 타이밍(씬 흐름에 맞춰 조정) */
  --clapDur: 1.6s;   /* 손 모션 길이 */
  --clapMove: 3.5;   /* 서로 접근 거리(%) — .stage 기준과 동일한 느낌으로 */
  --black:#000; 
}

/* 기본 */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #fff;
  font-family: Pretendard, 'Noto Sans KR', '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, '애플 SD 산돌고딕 Neo', 'Apple SD Gothic Neo', AppleGothic, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

p{margin-block-start: 0em;
margin-block-end: 0em;}

body {
  display: block; /* 중앙 정렬 제거 */
}
/* ------------------------*/
.wrap {
  position: relative;
  width: 900px;
  overflow: visible;
  margin: 0 auto;   /* 좌우 가운데 정렬 (필요하면 유지) */
}

.top {display:flex;  align-items:center; width: 100%; margin-top: 10px;height:auto;
}

.lo {flex:0 0 20%;
}
.lo img{width: 100%;
}
.title {flex:1; font-size: 28px; font-weight: 800; text-align: right; letter-spacing: -0.02em;
}
/* ------------------------*/
.content {
    display: flex;
  justify-content: space-between; /* 좌우로 나란히 배치 */
  align-items: flex-start;         /* 위쪽 정렬 */
  flex-wrap: wrap;
  width: 100%;
}

/* 기본: PC 레이아웃 (2열) */
.left {
  width: 50%; letter-spacing: -0.05em;
}
.left p.t01{font-size: 18px; font-weight: 800;
}
.left p.t02{font-size: 48px; font-weight: 900;
}
.left p.t03{display: inline-block; font-size: 18px; font-weight: 900; margin-top: 5px; padding: 5px 10px; color: #fff; background-color: #000;
 margin-bottom: 20px}

.left p.t04 {
  font-size: 24px;
  font-weight: 700;
  border-bottom: 3px solid #000;
  display: inline-block; /* 밑줄 길이를 글자 길이에 맞추려면 필요 */
  padding-bottom: 3px;   /* 글자와 밑줄 사이 여백 */
}
.left p.t05{font-size: 16px; font-weight: 700; margin-top: 20px;
}
.left p.t06{font-size: 12px; font-weight: 500; margin-top: 5px;
}

.right {
  width: 49%; 
}

.btm{
  text-align: center; border-top: 1px solid; padding:20px 0;
  font-weight: 700; line-height: 2;
}
.btm img{
  width: 100px;
}

/* ------------------------*/
/* 기본 폰트 */

.schedule { width: 100%; margin: 0 auto; }
.agenda{
  width:100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* 위/헤더 굵은 라인 */
.agenda{ border-top:3px solid var(--black); }
.agenda thead th{
  border-bottom:3px solid var(--black);
  font-weight:800;
  font-size:14px;
  padding:10px 5px;
  text-align:center;
}

/* 열 너비 (이미지 느낌에 맞게 조정) */
.agenda colgroup + * {} /* just to keep autocomplete quiet */
.agenda thead th:nth-child(1),
.agenda tbody td.session{ width:8%; }
.agenda thead th:nth-child(2),
.agenda tbody td.theme{ width:15%; }
.agenda thead th:nth-child(4),
.agenda tbody td.speaker{ width:19%; }

/* 본문 행 구분선 */
.agenda tbody tr{ border-bottom:2px solid var(--black); }
.agenda tbody td{
  padding:10px 5px;
  vertical-align:middle;
  font-size:12px;
  font-weight:700;
}

/* 정렬 */
.agenda td.session,
.agenda td.theme{ text-align:center; }
.agenda td.topic{ text-align:center; line-height:1.35; font-weight:900; font-size:15px; }
.agenda td.topic .sub{ font-weight:900; font-size: 12px}
.agenda td.speaker{ text-align:center; }
.agenda td.speaker strong{ display:block; font-weight:900; font-size:15px; line-height:1 }
.agenda td.speaker span{ display:block; font-weight:700; font-size:12px; margin-top: 5px}

/* 반응형 */
@media (max-width: 900px){
  .agenda thead th:nth-child(1),
  .agenda tbody td.session{ width:8%; }
  .agenda thead th:nth-child(2),
  .agenda tbody td.theme{ width:17%; }
  .agenda thead th:nth-child(4),
  .agenda tbody td.speaker{ width:19%; }
  .agenda thead th{ font-size:12px; padding:14px 10px; }
  .agenda tbody td{ padding:22px 12px; font-size:14px; }
  .agenda td.topic{ font-size:14px; }
  .agenda td.speaker strong{ font-size:13px; }
}

@media (max-width: 680px){
  /* 테이블은 그대로 두고 가로 스크롤을 허용 (레이아웃 안정) */
  .schedule{ overflow-x:auto; }
  .agenda{ width: 100% }
}

/* ------------------------*/
.stage {
  position: relative;
  width: 900px;
  aspect-ratio: 1 / 1.08;
  overflow: visible;
  margin: 0 auto 50px;    /* 좌우 가운데 정렬 (필요하면 유지) */
}
/* 씬 전체 페이드 제어 */
.stage { transition: opacity 1s ease; opacity: 1; }
.stage.fade { opacity: 0; }  /* 페이드아웃 상태 */

/* ------------------------
   ① a/r/y/g 그룹: 튕기며 등장
------------------------ */
.piece {
  position: absolute;
  left: calc(var(--x,50)*1%);
  top: calc(var(--y,50)*1%);
  width: calc(var(--w,14)*1%);
  transform-origin: center;
  opacity: 0;
  animation:
    popIn var(--duration) cubic-bezier(.26,1.44,.48,1.04) forwards,
    microBounce var(--micro) cubic-bezier(.2,.9,.2,1.0) forwards;
  animation-delay:
    var(--d,0ms),
    calc(var(--d,0ms) + var(--duration));
}

@keyframes popIn {
  0%   { opacity:0; transform:translate(-50%,-50%) scale(0.1) translateY(40%) rotate(-8deg); }
  40%  { opacity:1; transform:translate(-50%,-50%) scale(1.26) translateY(-10%) rotate(4deg); }
  62%  { transform:translate(-50%,-50%) scale(0.92) translateY(3%); }
  82%  { transform:translate(-50%,-50%) scale(1.08) translateY(-1.6%); }
  100% { opacity:1; transform:translate(-50%,-50%) scale(1) translateY(0) rotate(0deg); }
}
@keyframes microBounce {
  0%   { transform:translate(-50%,-50%) scale(1) translateY(0); }
  35%  { transform:translate(-50%,-50%) scale(0.985) translateY(0.6%); }
  70%  { transform:translate(-50%,-50%) scale(1.012) translateY(-0.4%); }
  100% { transform:translate(-50%,-50%) scale(1) translateY(0); }
}

/* t1~t10 : 위에서 떨어져 부드럽게 착지 (사라지지 않음) */
/* t1~t10 : 부드럽게 낙하 후 천천히 멈춤 (튕김 없음) */
.t-drop {
  position: absolute;
  left: calc(var(--x, 50) * 1%);
  top: calc(var(--y, 20) * 1%);
  width: calc(var(--w, 10) * 1%);
  opacity: 0;
  transform-origin: center;
  transform: translate(-50%, -260%) scale(0.95);
  will-change: transform, opacity;

  /* 전반적으로 천천히 감속하면서 멈추는 커브 */
  animation: softLanding var(--fallDur)
           cubic-bezier(0.2, 0.8, 0.1, 1) forwards;
  animation-delay: calc(1500ms + var(--d, 0ms));
}

/* 낙하 → 감속 착지 (부드럽게) */
@keyframes softLanding {
  0% {
    opacity: 0;
    transform: translate(-50%, -260%) scale(0.95);
  }
  20% {
    opacity: 1;
  }
  85% {
    /* 착지 직전 살짝 압축 (공기저항감) */
    transform: translate(-50%, 0%) scale(1.01);
  }
  100% {
    /* 완전히 멈춤 — 튕김 없음 */
    opacity: 1;
    transform: translate(-50%, 0%) scale(1);
  }
}

/* 모션 최소화 환경 */
@media (prefers-reduced-motion: reduce) {
  .t-drop {
    animation: none;
    opacity: 1;
    transform: translate(-50%, 0%) scale(1);
  }
}
/* ------------------------
   ③ l1~l5: 제자리에서 튀어나오기
------------------------ */
.l-pop {
  position: absolute;
  left: calc(var(--x,50)*1%);
  top: calc(var(--y,50)*1%);
  width: calc(var(--w,12)*1%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  transform-origin: center;
  animation: localPop var(--popDur, 1600ms)
             cubic-bezier(.25,1.2,.3,1.0) forwards;
  animation-delay: calc(2500ms + var(--d, 0ms));
}

@keyframes localPop {
  0%   { opacity:0; transform:translate(-50%,-50%) scale(0.2) translateY(20%); }
  40%  { opacity:1; transform:translate(-50%,-50%) scale(1.25) translateY(-10%); }  /* 팡 튀어나옴 */
  65%  { transform:translate(-50%,-50%) scale(0.90) translateY(4%); }               /* 1차 바운스 */
  80%  { transform:translate(-50%,-50%) scale(1.08) translateY(-3%); }              /* 2차 바운스 */
  90%  { transform:translate(-50%,-50%) scale(0.97) translateY(1%); }               /* 미세 진동 */
  100% { opacity:1; transform:translate(-50%,-50%) scale(1) translateY(0); }        /* 안정 착지 */
}

/* ------------------------
   모션 최소화
------------------------ */
@media (prefers-reduced-motion: reduce) {
  .piece, .t-drop, .l-pop {
    animation: none;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ------------------------
   ④ hands : 개별 크기/위치 지정 가능 + 제자리 성장→충돌
------------------------ */
.hands{
  position:absolute;
  inset:0;                 /* .stage와 같은 좌표계 */
  pointer-events:none;
  overflow:visible;
}

/* 손 공통: .stage 기준 % 좌표/크기, 제자리에서 0.8→1.0로 등장 */
.hand{
  z-index: 2;
  position:absolute;
  left: calc(var(--x,50) * 1%);
  top:  calc(var(--y,50) * 1%);
  width: calc(var(--w,16) * 1%);  /* 반응형: % 단위 */
  height: auto;
  transform-origin:center center;
  transform: translate(-50%, -50%) scale(0.8) rotate(var(--r,0deg));
  opacity: 0;
  will-change: transform, opacity;
}

/* 왼손/오른손: 제자리 성장(0~60%) → 서로 접근(60~100%), 튕김 없음 */
.hand.left{
  animation: handGrowLeft var(--clapDur) cubic-bezier(.2,.8,.2,1)
             var(--clapDelay) forwards;
}
.hand.right{
  animation: handGrowRight var(--clapDur) cubic-bezier(.2,.8,.2,1)
             var(--clapDelay) forwards;
}

@keyframes handGrowLeft{
  0%   { opacity:0; transform:translate(-50%,-50%) scale(0.8) rotate(var(--r)); }
  60%  { opacity:1; transform:translate(-50%,-50%) scale(1)   rotate(var(--r)); }
  100% { opacity:1; transform:translate(calc(-50% + var(--clapMove)*1%), -50%) scale(1) rotate(var(--r)); }
}
@keyframes handGrowRight{
  0%   { opacity:0; transform:translate(-50%,-50%) scale(0.8) rotate(var(--r)); }
  60%  { opacity:1; transform:translate(-50%,-50%) scale(1)   rotate(var(--r)); }
  100% { opacity:1; transform:translate(calc(-50% - var(--clapMove)*1%), -50%) scale(1) rotate(var(--r)); }
}

/* 충돌 순간: 중앙 섬광 + 멀리 퍼지는 링 (기존 스타일과 동일한 좌표계) */
.spark,
.ring{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%) scale(0);
  opacity:0;
  pointer-events:none;
}

/* 섬광(가까운 밝은 빛) */
.spark{
  z-index: 0;
  width: 50%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,255,220,0.95) 0%,
    rgba(255,245,180,0.70) 22%,
    transparent 65%);
  animation: sparkFlash 1s ease-out calc(var(--clapDelay) + var(--clapDur)*0.6) forwards;
}

/* 멀리 퍼지는 링(원거리 확산) */
.ring{
  width: 4%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(255,255,210,0.9),
    0 0 40px 6px rgba(255,255,200,0.6);
  animation: ringRipple 1.2s cubic-bezier(.2,.8,.2,1)
             calc(var(--clapDelay) + var(--clapDur)*0.65) forwards;
}

/* 빛 애니메이션: 퍼짐 범위를 크게(씬과 스케일 일관성 유지) */
@keyframes sparkFlash{
  0%   { opacity:0; transform:translate(-50%,-50%) scale(0.1); }
  20%  { opacity:1; transform:translate(-50%,-50%) scale(1.4); }
  55%  { opacity:0.85; transform:translate(-50%,-50%) scale(2.8); }
  100% { opacity:0; transform:translate(-50%,-50%) scale(3.2); }
}
@keyframes ringRipple{
  0%   { opacity:0.9; transform:translate(-50%,-50%) scale(0.2); }
  60%  { opacity:0.5; transform:translate(-50%,-50%) scale(3.4); }
  100% { opacity:0;   transform:translate(-50%,-50%) scale(4.8); }
}

/* 접근성: 모션 최소화 */
@media (prefers-reduced-motion: reduce){
  .hand{ animation:none; opacity:1; transform:translate(-50%,-50%) scale(1) rotate(var(--r)); }
  .spark,.ring{ animation:none; opacity:0; }
}

/* ------------------------
   신청하기 버튼
------------------------ */
.apply-area {
  text-align: center;
  margin: 30px 0 30px;
}
.btn-apply {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  background: #000;
  border: none;
  border-radius: 50px;
  padding: 18px 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-apply:hover {
  background: #ff2d2d;
  transform: scale(1.05);
}

/* ------------------------
   레이어 팝업 (apply.php)
------------------------ */
/* hidden 속성 안전 장치 */
#applyLayer[hidden] { display: none !important; }


/* 기본(숨김) 상태: 렌더되더라도 그림/클릭 안 됨 */
#applyLayer{
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s ease, visibility 0s linear .35s;
  z-index: 999;
}

/* 열렸을 때 */
#applyLayer.active{
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .35s ease;
}

.apply-wrap {
  position: relative;
  width: 600px;
  max-width: 90%;
  height: 60%;              /* ✅ PC 기본값 */
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: popInLayer 0.45s cubic-bezier(.26,1.2,.4,1) forwards;
}
@keyframes popInLayer {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.apply-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.btn-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 36px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease;
}
.btn-close:hover {
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .top {padding: 0 10px;
}
.lo {flex:0 0 25%;
}
.lo img{padding-top: 5px;}
.title {font-size: 17px; font-weight: 900; letter-spacing: -0.03em;
}

.stage {width: 100%;
}
.wrap {
   width: 100%
}
.content {
    padding: 0 10px; box-sizing: border-box;
    flex-direction: column; /* 세로로 쌓이게 */
  }
  .left,
  .right {
    width: 100%;
  }

  /* 기본: PC 레이아웃 (2열) */
  .left p.t01{font-size: 14px;}
  .left p.t02{font-size: 40px;}
  .left p.t03{font-size: 16px; margin-bottom: 20px}
  .left p.t04 {
    font-size: 18px;
    margin-bottom: 5px;
  }
  .left p.t05{font-size: 14px;margin-top: 10px;
  }
  .right{margin-top:20px}
  .btn-apply {
  font-size: 20px;
}

 .apply-wrap {
    height: 70%;}

    /* 손 크기 줄이기 */
  .hand{
  z-index: 2;
  position:absolute;
  left: calc(var(--x,50) * 1%);
  top:  calc(var(--y,50) * 1%);
  width: calc(var(--w,16) * 1%);  /* 반응형: % 단위 */
  height: auto;
  transform-origin:center center;
  transform: translate(-50%, -50%) scale(0.8) rotate(var(--r,0deg));
  opacity: 0;
  will-change: transform, opacity;
}
}
