/* Footer chrome: match Cheongyang acego.layout.css + acego.main.css.
   Wave/landscape: ONLY from acego.main.local.css — do not override. */

@keyframes bounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(15%); }
  100% { transform: translateY(0); }
}
@keyframes updown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.clearfix { width: 100%; }
.clearfix:after { content: ""; display: block; visibility: hidden; clear: both; }

body.cy-home {
  background: #fff;
  overflow-x: hidden;
}

#foot_layout {
  position: relative;
  z-index: 100;
  overflow-x: hidden; /* same role as Cheongyang #wrap — clip stone overhang */
}

#foot_layout .layout {
  position: relative;
  width: 100%;
  max-width: 1652px;
  margin: 0 auto;
  padding: 0 116px;
  box-sizing: border-box;
}

#foot_layout .btn-top {
  position: absolute;
  width: 75px;
  height: 75px;
  background-color: #1e1e1e;
  box-shadow: 10px 10px 10px rgba(0,0,0,.1);
  border-radius: 25px;
  border: 1px solid #1e1e1e;
  padding: 20px;
  top: -38px;
  right: 0;
  text-align: center;
  display: block;
  z-index: 700;
  box-sizing: border-box;
  text-decoration: none;
}
#foot_layout .btn-top span {
  display: block;
  width: 100%;
  color: #fff;
}
#foot_layout .btn-top .arrow {
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='16' viewBox='0 0 14 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.83984 15.1602V3.36328L12.4883 8.01172L13.6602 6.83984L7 0.160156L0.339844 6.83984L1.51172 8.01172L6.16016 3.36328V15.1602H7.83984Z' fill='white'/%3E%3C/svg%3E");
  position: relative;
  height: 18px;
  background-repeat: no-repeat;
  background-position: center;
  left: 50%;
  transform: translateX(-50%);
}
#foot_layout .btn-top .top {
  font-family: Pretendard, sans-serif;
  font-size: 13px;
  font-weight: 700;
  background: 0 0;
  padding-top: 0;
}

#foot_layout .footer-link {
  width: 100%;
  height: 75px;
  border-radius: 100px;
  box-shadow: 0 3px 20px rgba(0,0,0,.15);
  background-color: #fff;
  position: relative;
  top: -36px;
  box-sizing: border-box;
}
#foot_layout .footer-link .list {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}
#foot_layout .footer-link .list a,
#foot_layout .footer-link .list li {
  height: 100%;
  display: inline-block;
  box-sizing: border-box;
}
#foot_layout .footer-link .list a,
#foot_layout .footer-link .list a span {
  font-size: 16px;
  color: #222;
  font-family: Pretendard, sans-serif;
  font-weight: 400;
}
#foot_layout .footer-link .list a {
  padding: 15px 26px;
  display: flex;
  align-items: center;
  position: relative;
  text-decoration: none;
}
#foot_layout .footer-link .list li:not(:last-child) a:after {
  display: inline-block;
  content: "";
  width: 3px;
  height: 3px;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(0,-50%);
  border-radius: 50%;
  background: #ccc;
}
#foot_layout .footer-link .list a span {
  white-space: nowrap;
}
#foot_layout .footer-link .list a:focus span,
#foot_layout .footer-link .list a:hover span {
  color: #00876c;
  font-weight: 700;
}
#foot_layout .footer-link .list .ic-1 span {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#foot_layout .footer-info {
  color: #fff;
  position: relative;
  z-index: 2;
}
#foot_layout .copy,
#foot_layout address,
#foot_layout address * {
  color: #fff;
  font-style: normal;
  font-size: 15px;
  line-height: 1.6;
  font-family: Pretendard, sans-serif;
}
#foot_layout address span {
  display: inline-block;
}
#foot_layout address span.tel:before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,.45);
  margin: 0 10px;
  vertical-align: -1px;
}
#foot_layout .copy {
  margin-top: 10px;
}
#foot_layout .copy br,
#foot_layout address br {
  display: none;
}

/* ——— Cheongyang layout breakpoints (exact) ——— */
@media (max-width: 1700px) {
  #foot_layout .btn-top { right: 30px; }
}
@media (max-width: 1450px) {
  #foot_layout .layout { padding: 0 40px; }
}
@media (max-width: 1400px) {
  #foot_layout .layout { padding: 0 30px; }
  #foot_layout .footer-link {
    width: calc(100% - 200px);
    margin: 0 auto;
  }
}
@media (max-width: 1280px) {
  #foot_layout .footer-link .list a { padding: 15px 16px; }
}
@media (max-width: 1100px) {
  #foot_layout .footer-link { width: 100%; }
  #foot_layout .btn-top { top: -155px; }
}
@media (max-width: 900px) {
  #foot_layout .footer-link .list a { padding: 15px; }
}

/* Mobile ≤780: transparent link grid on sea (NOT white pill) — Cheongyang exact */
@media (max-width: 780px) {
  #foot_layout .layout {
    padding: 18px 20px 30px;
    box-sizing: border-box;
  }
  /* Solid sea under link grid so wave_768 hills don’t muddy white text */
  #foot_layout .footer-layout {
    background-color: #22c5c5;
    isolation: isolate;
  }
  #foot_layout .footer-layout .layout {
    z-index: 5;
  }
  #foot_layout .object.stone {
    z-index: 1;
    pointer-events: none;
  }
  #foot_layout .btn-top {
    top: -105px;
    right: 20px;
    width: 56px;
    height: 56px;
    padding: 12px;
    border-radius: 18px;
  }
  #foot_layout .footer-link .list .ic-1 span,
  #foot_layout .footer-link .list a,
  #foot_layout .footer-link .list a span,
  #foot_layout .footer-link .list a:focus span,
  #foot_layout .footer-link .list a:hover span {
    color: #fff;
  }
  #foot_layout .footer-link .list .ic-1 span:before,
  #foot_layout .footer-link .list li:not(:last-child) a:after {
    display: none;
  }
  #foot_layout .footer-link {
    top: auto;
    background-color: transparent;
    height: auto;
    margin-bottom: 22px;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
  }
  #foot_layout .footer-link .list {
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    padding: 0;
  }
  #foot_layout .footer-link .list li {
    width: calc(50% + 1px);
    margin: 0 0 -1px -1px;
    display: inline-block;
    height: auto;
    border: 1px solid #fff;
    box-sizing: border-box;
  }
  #foot_layout .footer-link .list li a {
    padding: 12px;
    display: block;
    text-align: center;
    min-height: 51px;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  #foot_layout .footer-link .list a span {
    font-size: 15px;
  }
  #foot_layout .copy br,
  #foot_layout address br {
    display: block;
  }
  #foot_layout address span.tel:before {
    display: none;
  }
  /* user mascot scale on mobile footer */
  .Cyang.sea .kos-char-slot.is-ready {
    width: 90px;
    height: 90px;
    top: -70px;
    left: 14%;
  }
}

@media (max-width: 767px) {
  #foot_layout .layout {
    padding-left: 20px;
    padding-right: 20px;
  }
  #foot_layout .footer-link .list a {
    padding: 15px;
  }
}

@media (max-width: 600px) {
  #foot_layout address span {
    display: block;
    width: 100%;
    padding: 0;
    margin: 10px 0 0;
  }
  #foot_layout address span:before,
  #foot_layout address span.tel:before {
    display: none;
  }
}

body.cy-home .site-footer { display: none !important; }

/* Notice list: kill thick focus ring that looks like a bug */
.board-notice .list a,
.board-notice .list a:focus,
.board-notice .list a:focus-visible,
.board-notice .tab-body .list li a {
  outline: none !important;
  box-shadow: none !important;
}
.board-notice .list a:focus-visible span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* User mascot slots — keep parent bounce/jump */
.kos-char-slot {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 4;
}
.kos-char-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.kos-char-slot.is-ready {
  display: flex;
}
.Cyang.sea .kos-char-slot.is-ready ~ .motion-box > .object.Cy,
.Cyang.science .kos-char-slot.is-ready ~ .motion-box > .object.Cy,
.Cyang.camera .kos-char-slot.is-ready ~ .motion-box > .object.Cy,
.Cyang.camera .kos-char-slot.is-ready ~ .motion-box > .object[class*="flash"],
.Cyang.cyber .kos-char-slot.is-ready ~ .motion-box {
  background-image: none !important;
  opacity: 0 !important;
}
.Cyang.sea .kos-char-slot.is-ready {
  width: 200px;
  height: 200px;
  top: -110px;
  left: 18%;
  right: auto;
  bottom: auto;
  inset: auto;
}
.Cyang.sea.has-user-char {
  z-index: 5; /* only inside main-object_box (z-index:-1); does not cover footer links */
}
#foot_layout .footer-layout .layout {
  position: relative;
  z-index: 2;
}
#foot_layout .object.stone {
  /* keep auto stacking like Cheongyang — never above .layout links */
  z-index: auto;
}
/* Sit beside the speech bubble (right tip), not covering the text */
.Cyang.camera.has-user-char {
  right: -36px;
}
.Cyang.camera .kos-char-slot.is-ready {
  inset: auto;
  top: 14%;
  right: 0;
  left: auto;
  bottom: auto;
  width: 88%;
  height: 78%;
  z-index: 3;
}
.Cyang.science.has-user-char,
.Cyang.camera.has-user-char {
  animation: kos-char-bob 3.2s ease-in-out infinite alternate;
}
@keyframes kos-char-bob {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}
.Cyang.cyber .kos-char-slot.is-ready {
  width: 100px;
  height: 114px;
  inset: auto;
  top: 0;
  left: 0;
}
.Cyang.cyber.has-user-char {
  animation-name: jump;
  animation-timing-function: cubic-bezier(0.9,0.18,0.49,0.92);
  animation-duration: 2.3s;
  animation-iteration-count: infinite;
}
.Cyang.cyber.has-user-char .motion-box {
  background-image: none !important;
}

@media (max-width: 990px) {
  .Cyang.sea .kos-char-slot.is-ready {
    width: 110px;
    height: 110px;
    top: -78px;
    left: 12%;
  }
}
