@charset "utf-8";
/* ============================================================
   main.css — 배경 장식 + 메인 페이지 섹션
   ============================================================ */

/* ===== 배경 2단 구조 ===== */
#page {
  position: relative;
}

#bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1920px;
  z-index: 0;
  pointer-events: none;
}

#bg>i {
  position: absolute;
  display: block;
  background: no-repeat center/100% 100%;
}

#bg .glow {
  left: 176px;
  top: -75px;
  width: 1569px;
  height: 2980px;
  opacity: .9;
  background-image: url(/img/main/bg-glow.png);
}

#bg .ln {
  opacity: .30;
  border-style: solid;
  border-color: transparent;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

#bg .ln1,
#bg .ln2 {
  width: 1049px;
  height: 731px;
  border-width: 0 76px 76px 0;
  border-radius: 0 0 317px 0;
  background: linear-gradient(225deg,
      rgba(242, 178, 109, .05) 0%,
      rgba(242, 178, 109, .37) 40%,
      rgba(240, 165, 124, .50) 55%,
      rgba(237, 139, 153, .44) 72%,
      rgba(237, 139, 153, .19) 88%,
      rgba(237, 139, 153, 0) 100%) border-box;
}

#bg .ln3,
#bg .ln4 {
  width: 1037px;
  height: 789px;
  border-width: 0 75px 75px 0;
  border-radius: 0 0 314px 0;
  background: linear-gradient(225deg,
      rgba(114, 178, 232, .02) 0%,
      rgba(114, 178, 232, .35) 40%,
      rgba(106, 185, 228, .50) 55%,
      rgba(100, 192, 224, .40) 72%,
      rgba(100, 192, 224, .13) 88%,
      rgba(100, 192, 224, 0) 100%) border-box;
}

#bg .ln1 {
  left: 745px;
  top: -180px;
}

#bg .ln2 {
  left: 150px;
  top: 590px;
  width: 700px;
  transform: rotate(90deg);
}

#bg .ln3 {
  left: 755px;
  top: 1775px;
}

#bg .ln4 {
  left: 130px;
  top: 2360px;
  transform: rotate(180deg);
}

/* ===== 섹션 소속 장식 ===== */
.deco {
  position: absolute;
  display: block;
  z-index: 0;
  pointer-events: none;
  background: no-repeat center/100% 100%;
}

.visual .d-fanlines {
  left: 0;
  top: 127px;
  width: 190px;
  height: 175px;
  background-image: url(/img/main/deco-fanlines.svg);
}

.visual .d-bldg-r1 {
  right: 0;
  top: 560px;
  width: 163px;
  height: 157px;
  background-image: url(/img/main/deco-building-r1.png);
}

.intro .d-arrow {
  left: calc(50% - 989px);
  top: 522px;
  width: 185px;
  height: 313px;
  background-image: url(/img/main/deco-arrow.png);
}

.intro .d-bldg-r2 {
  left: calc(50% + 642px);
  top: 533px;
  width: 141px;
  height: 107px;
  background-image: url(/img/main/deco-building-r2.png);
}

.guide {
  overflow: visible;
}

.guide .d-bldg-l2 {
  left: calc(50% - 750px);
  top: 480px;
  width: 178px;
  height: 94px;
  opacity: .7;
  background-image: url(/img/main/deco-building-l2.png);
}

.guide .d-spark2 {
  left: calc(50% - 630px);
  top: 160px;
  width: 81px;
  height: 81px;
  background-image: url(/img/main/deco-spark.png);
}

.guide .d-bldg-r3 {
  left: calc(50% + 430px);
  bottom: -55px;
  width: 140px;
  height: 145px;
  background-image: url(/img/main/deco-building-r3.png);
}

.notice .d-cloud {
  left: calc(50% + 592px);
  bottom: 0;
  width: 199px;
  height: 111px;
  background-image: url(/img/main/deco-cloud.png);
}

@media (max-width:1023px) {

  #bg .glow,
  .deco {
    display: none;
  }
}

@media (max-width:767px) {
  #bg {
    display: none;
  }
}

/* ===== SEC01 히어로 ===== */
.visual .wrap {
  display: flex;
  justify-content: center;
}

.visual img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

/* ===== SEC02 카운트다운 ===== */
.countdown {
  text-align: center;
}

.countdown.sec-pad {
  padding: 20px 0;
}

.cd-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 20px);
}

.cd-label {
  font-size: clamp(20px, 4vw, 32px);
}

.cd-clock {
  display: flex;
  align-items: flex-start;
  gap: clamp(6px, 1.2vw, 14px);
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(56px, 10vw, 104px);
}

.cd-num {
  font-size: clamp(40px, 9vw, 70px);
  line-height: 1.1;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}

.cd-cap {
  color: var(--t-dim);
  font-size: clamp(14px, 2vw, 20px);
  line-height: 1.2;
  margin-top: 6px;
}

.cd-sep {
  font-size: clamp(40px, 9vw, 70px);
  line-height: 1.1;
}

/* ===== SEC03 대회 소개 ===== */
.intro .box {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(242, 178, 109, .13), transparent 60%),
    radial-gradient(90% 70% at 50% 100%, rgba(242, 178, 109, .14), transparent 65%),
    var(--panel);
  border-radius: 15px;
  box-shadow: var(--shadow);
  padding: 55px 100px;
}

.intro .box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url('/img/main/intro-box-bg.png') -365px 25% / auto 156% no-repeat;
}

.intro-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: clamp(24px, 3vw, 60px);
  align-items: center;
}

.intro-title {
  flex: 0 0 auto;
}

.intro-title .en {
  font-size: clamp(20px, 3vw, 32px);
}

.intro-title .ko {
  font-size: clamp(34px, 5vw, 48px);
  margin-top: 5px;
}

.intro-txt {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.intro-txt h3 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 400;
}

.intro-para {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.intro-para p {
  color: var(--t-dim);
  font-size: 18px;
}

.intro-txt strong {
  color: var(--t-strong);
  font-weight: 600;
}

/* ===== SEC04 대회 안내 ===== */
.guide-title {
  text-align: center;
  font-size: clamp(34px, 5vw, 48px);
  margin-bottom: 56px;
}

.guide-grid {
  display: flex;
  gap: clamp(40px, 7vw, 86px);
  align-items: stretch;
  justify-content: center;
}

.guide-poster {
  flex: 0 0 360px;
  max-width: 360px;
  align-self: flex-start;
  border-radius: 5px;
  box-shadow: 2px 3px 10px 5px rgba(0, 0, 0, .2);
}

.guide-table {
  flex: 1 1 500px;
  max-width: 500px;
  height: 509px;
  padding-left: 46px;
  border-collapse: collapse;
}

.guide-table th,
.guide-table td {
  font-size: 18px;
  text-align: left;
  padding: 19px 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.guide-table tr:last-child th,
.guide-table tr:last-child td {
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.guide-table th {
  color: var(--pink);
  font-weight: 700;
  width: 98px;
  white-space: nowrap;
  padding-left: 10px;
}

.guide-table td {
  padding-left: 24px;
}


/* ===== SEC05 NOTICE + 버튼 ===== */
.notice.sec-pad {
  padding: 100px 0;
}

.notice-box {
  background: var(--panel);
  border-radius: 15px;
  box-shadow: var(--shadow);
  padding: clamp(56px, 7vw, 80px) clamp(32px, 5vw, 65px);
  display: flex;
  flex-wrap: nowrap;
  gap: 32px 48px;
  align-items: center;
  justify-content: space-between;
}

/* min-width:0 → 텍스트가 버튼을 밀어내지 않음 */
.notice-left {
  flex: 1 1 auto;
  min-width: 0;
}

.notice-title {
  font-size: 24px;
  margin-bottom: 24px;
}

.notice-list {
  list-style: none;
  max-width: 539px;
}

.notice-list li {
  position: relative;
  padding-left: 16px;
  color: var(--t-strong);
  font-size: 18px;
}

.notice-list li+li {
  margin-top: 8px;
}

.notice-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  background: var(--blue);
}

.notice-list li a {
  display: block;
}

.notice-list li p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-btns {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

/* .hr-btn : Bootstrap .btn 충돌 회피 */
.hr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 280px;
  max-width: 100%;
  height: 70px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 28px;
  cursor: pointer;
}

.hr-btn-yellow {
  background: var(--yellow);
}

.hr-btn-blue {
  background: var(--blue);
}

/* ===== 반응형: 메인 섹션 — 1199 / 991 / 767 / 575 ===== */
@media (max-width:991px) {
  .intro-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .guide-grid {
    flex-direction: column;
    align-items: center;
  }

  .guide-poster {
    flex-basis: auto;
    align-self: center;
  }

  .guide-table {
    flex-basis: auto;
    width: 100%;
    height: auto;
    padding-left: 0;
  }

  .notice-box {
    flex-wrap: wrap;
  }

  .notice-btns {
    flex: 1 1 100%;
  }
}

@media (max-width:767px) {
  .sec-pad {
    padding: 48px 0;
  }

  .cd-line {
    flex-direction: column;
  }

  .intro-title {
    width: 100%;
    text-align: center;
  }

  .intro-title .en {
    font-size: 18px;
  }

  .intro-title,
  .intro-txt {
    flex: none;
  }

  .intro-row {
    gap: 36px;
  }

  .intro-txt {
    align-items: center;
    text-align: center;
    gap: 18px;
  }

  .intro-txt h3 {
    font-size: 22px;
  }

  .intro-para {
    gap: 12px;
  }

  .intro-para p {
    line-height: 1.75;
    font-size: 15px;
  }

  .guide-poster {
    max-width: 280px;
  }

  .guide-table th {
    width: 60px;
  }

  .guide-table td {
    padding-left: 20px;
  }

  .notice-btns {
    width: 100%;
  }

  .hr-btn {
    flex: 1 1 45%;
  }
}

@media (max-width:575px) {
  .sec-pad {
    padding: 36px 0;
  }

  .intro .box {
    padding: 30px 20px;
  }

  .intro-para p,
  .notice-list li,
  .guide-table th,
  .guide-table td {
    font-size: 15px;
  }

  .notice-title {
    font-size: 20px;
  }

  .guide-table th,
  .guide-table td {
    padding: 14px 10px;
  }

  .guide-table td {
    padding-left: 14px;
  }

  .notice-btns {
    flex-wrap: wrap;
  }

  .hr-btn {
    flex: 1 1 100%;
    height: 58px;
    font-size: 22px;
  }
}
