* {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
}

*,
:after,
:before {
  box-sizing: border-box;
}

:root {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
       text-size-adjust: 100%;
  cursor: default;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
  -moz-tab-size: 4;
    -o-tab-size: 4;
       tab-size: 4;
}

html,
body {
  height: 100%;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style-type: none;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  text-decoration: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

.wrap {
  position: relative;
  max-width: 1920px;
  min-height: 1080px;
  height: 100vh;
  margin: 0 auto;
}

.header {
  min-width: 1200px;
}
.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 37px 54px 37px 43px;
}
.header__logo-link {
  display: block;
  width: 176px;
  height: 56px;
  background: url("https://img.sa.nexon.com/images/event/2025/0703/gate/logo.png") no-repeat center center/cover;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__link {
  display: block;
  width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, 0.3) no-repeat center center/cover;
  transition: background-color 0.3s;
}
.nav__link--home {
  background-image: url("https://img.sa.nexon.com/images/event/2025/0703/gate/nav_home.png");
}
.nav__link--facebook {
  background-image: url("https://img.sa.nexon.com/images/event/2025/0703/gate/nav_facebook.png");
}
.nav__link--youtube {
  background-image: url("https://img.sa.nexon.com/images/event/2025/0703/gate/nav_youtube.png");
}
.nav__link--instagram {
  background-image: url("https://img.sa.nexon.com/images/event/2025/0703/gate/nav_instagram.png");
}
.nav__link:hover {
  background-color: rgba(148, 148, 148, 0.2);
}

.background {
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  min-width: 1200px;
  width: 100%;
  height: 100%;
  background: #0c0c0c url("https://img.sa.nexon.com/images/event/2025/0703/gate/bg_default.jpg") no-repeat center center/cover;
}
.background-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}

.hovered-primary .background-image:nth-child(1) {
  visibility: visible;
  opacity: 1;
}

.hovered-secondary .background-image:nth-child(2) {
  visibility: visible;
  opacity: 1;
}

.main {
  z-index: 1;
  position: relative;
  min-width: 1200px;
  padding-bottom: 58px;
  overflow: hidden;
}
.main__container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1200px;
  margin: 0 auto;
  gap: 43px;
}

#today {
  position: absolute;
  bottom: 0px;
  right: 54px;
  display: flex;
  line-height: 18px;
  cursor: pointer;
}
#today * {
  cursor: pointer;
}

#today input[type=checkbox] {
  display: inline-block;
  margin: 0;
  margin-right: 4px;
  width: 18px;
  height: 18px;
  vertical-align: top;
  background: url("https://img.sa.nexon.com/images/event/2025/0703/gate/check_box.png") no-repeat;
  -webkit-appearance: none;
  appearance: none;
  -moz-appearance: none;
}

#today input[type=checkbox]:checked {
  background: url("https://img.sa.nexon.com/images/event/2025/0703/gate/check_box_on.png") no-repeat;
}

.section {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  height: 838px;
  padding-top: 48px;
  background: no-repeat center center/cover;
  border: 1px solid;
}
.section__title {
  position: relative;
  width: 100%;
  height: 180px;
}
.section__title-image {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.section__title-image:nth-child(2) {
  visibility: hidden;
  opacity: 0;
}
.section__content {
  z-index: 1;
  position: relative;
  width: calc(100% - 30px);
  height: 460px;
  background-repeat: no-repeat;
  pointer-events: none;
}
.section__char {
  position: absolute;
  max-width: -moz-fit-content;
  max-width: fit-content;
}
.section__deco {
  position: absolute;
  display: block;
  visibility: hidden;
  opacity: 0;
}
.section__button {
  margin-top: 26px;
  transition: opacity 0.3s;
}
.section__button:hover {
  opacity: 0.8;
}
.section:hover .section__title-image:nth-child(1) {
  visibility: hidden;
  opacity: 0;
}
.section:hover .section__title-image:nth-child(2) {
  visibility: visible;
  opacity: 1;
}
.section:hover .section__deco {
  visibility: visible;
  opacity: 1;
}

.section--primary {
  background-image: url("https://img.sa.nexon.com/images/event/2025/0703/gate/primary_bg.jpg");
  background-color: #3a2a29;
  -o-border-image: linear-gradient(90deg, rgb(176, 126, 99) 0%, rgb(58, 42, 41) 57%, rgb(147, 116, 99) 100%) 1;
     border-image: linear-gradient(90deg, rgb(176, 126, 99) 0%, rgb(58, 42, 41) 57%, rgb(147, 116, 99) 100%) 1;
  overflow: hidden;
}
.section--primary .section__content {
  right: 1px;
  margin-right: auto;
  background-image: url("https://img.sa.nexon.com/images/event/2025/0703/gate/primary_content-bg.png");
  background-position: right bottom;
}
.section--primary .section__char {
  right: 45px;
  top: -3px;
  transition: right 0.3s;
}
.section--primary .section__deco--1 {
  right: -320px;
  top: 44px;
}
.section--primary .section__deco--2 {
  left: 160px;
  top: -516px;
}
.section--primary:hover {
  overflow: visible;
}
.section--primary:hover .section__char {
  right: 25px;
}
.section--primary:hover .section__deco {
  transition: left 0.2s, right 0.2s, top 0.2s, opacity 0.1s 0.1s;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.6));
}
.section--primary:hover .section__deco--1 {
  right: -20px;
  top: 344px;
  transform: translate(calc(var(--mouse-x) * 0.025px), calc(var(--mouse-y) * 0.025px));
}
.section--primary:hover .section__deco--2 {
  left: -160px;
  top: -216px;
  transform: translate(calc(var(--mouse-x) * 0.015px), calc(var(--mouse-y) * 0.015px));
}

.section--secondary {
  background-image: url("https://img.sa.nexon.com/images/event/2025/0703/gate/secondary_bg.jpg");
  background-color: #a04a6b;
  -o-border-image: linear-gradient(90deg, rgb(112, 40, 66) 0%, rgb(208, 108, 148) 100%) 1;
     border-image: linear-gradient(90deg, rgb(112, 40, 66) 0%, rgb(208, 108, 148) 100%) 1;
}
.section--secondary .section__content {
  left: 1px;
  margin-left: auto;
  background-image: url("https://img.sa.nexon.com/images/event/2025/0703/gate/secondary_content-bg.png");
  background-position: left bottom;
  border-radius: 0 0 0 42px;
  transform-style: preserve-3d;
}
.section--secondary .section__char {
  right: -40px;
  bottom: 0;
  -webkit-clip-path: polygon(0 0, calc(100% - 40px) 0, calc(100% - 40px) 100%, 0 100%);
          clip-path: polygon(0 0, calc(100% - 40px) 0, calc(100% - 40px) 100%, 0 100%);
  transition: right 0.3s, -webkit-clip-path 0.3s;
  transition: right 0.3s, clip-path 0.3s;
  transition: right 0.3s, clip-path 0.3s, -webkit-clip-path 0.3s;
  transform: perspective(600px);
  transform-style: preserve-3d;
}
.section--secondary .section__deco {
  transform-style: preserve-3d;
}
.section--secondary .section__deco--1 {
  right: 50%;
  top: 50%;
}
.section--secondary .section__deco--2 {
  right: 50%;
  top: 50%;
}
.section--secondary .section__deco--3 {
  left: 50%;
  top: 50%;
}
.section--secondary:hover .section__content {
  overflow: visible;
}
.section--secondary:hover .section__char {
  right: 0;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
          clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.section--secondary:hover .section__deco {
  transition: left 0.2s, right 0.2s, top 0.2s, opacity 0.1s 0.1s;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.6));
}
.section--secondary:hover .section__deco--1 {
  right: -102px;
  top: -22px;
  transform: translate(calc(var(--mouse-x) * 0.025px), calc(var(--mouse-y) * 0.025px));
}
.section--secondary:hover .section__deco--2 {
  right: -105px;
  top: 144px;
  transform: translate(calc(var(--mouse-x) * 0.025px), calc(var(--mouse-y) * 0.025px));
}
.section--secondary:hover .section__deco--3 {
  left: -60px;
  top: 130px;
  transform: translate(calc(var(--mouse-x) * 0.025px), calc(var(--mouse-y) * 0.025px));
}
.hovered-primary .section--secondary .section__content {
  overflow: hidden;
}