/* 폰트 */
@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.banggooso.com/assets/fonts/PretendardVariable.woff2') format('woff2');
  font-weight: 400;
}

@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.banggooso.com/assets/fonts/PretendardVariable.woff2') format('woff2');
  font-weight: 500;
}

@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.banggooso.com/assets/fonts/PretendardVariable.woff2') format('woff2');
  font-weight: 600;
}

@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.banggooso.com/assets/fonts/PretendardVariable.woff2') format('woff2');
  font-weight: 700;
}

@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.banggooso.com/assets/fonts/PretendardVariable.woff2') format('woff2');
  font-weight: 800;
}

/* 전역 스타일 수정 */
.app-main * {
  letter-spacing: normal;
  box-sizing: border-box;
  transform: skew(0deg);
}

body,
html {
  font-family: 'Pretendard';
  font-size: 16px;
}

@media (max-width: 500px) {
  body,
  html {
    font-size: 3.2vw;
  }
}

/* common styles */
.f-row {
  display: flex !important;
  flex-direction: row !important;
}
.f-column {
  display: flex !important;
  flex-direction: column !important;
}
.f-center {
  justify-content: center !important;
  align-items: center !important;
}
.f-wrap {
  flex-wrap: wrap !important;
}
.f-1 {
  flex: 1 !important;
}

.ta-center {
  text-align: center !important;
}
.ta-left {
  text-align: left !important;
}
.ta-right {
  text-align: right !important;
}

.btn-wrap {
  cursor: pointer;
}

.btn-wrap:active {
  opacity: 0.85;
  scale: 0.98;
}

.btn-wrap button {
  background: transparent;
  border: none;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

#modal {
  display: none;
}

img {
  max-width: 100%;
  height: auto;
  max-height: 100%;
}

.hidden {
  display: none !important;
}

.strong {
  font-weight: 700 !important;
}

/* header */
.game-wrapper .app-header,
.game-wrapper .app-header.page {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  background: #422f25;
  backdrop-filter: blur(2px);
  height: 4rem;
  padding: 0 1rem;
}
.game-wrapper .app-header.page {
  display: none;
}
.game-wrapper .app-header .app-logo {
  width: 9.25rem;
  height: 100%;
  background-image: url(https://cdn.banggooso.com/assets/images/common/logo_2024_white.png) !important;
}
.game-wrapper .app-header .app-sound,
.game-wrapper .app-header.page .app-sound {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 1.75rem;
  background: url(https://cdn.banggooso.com/assets/images/game280/sound-icon-on.svg) no-repeat center/cover;
}

.game-wrapper .app-header .app-sound.off,
.game-wrapper .app-header.page .app-sound.off {
  background: url(https://cdn.banggooso.com/assets/images/game280/sound-icon-off.svg) no-repeat center/cover;
}
.game-wrapper .app-header .app-header-btn.back {
  margin-left: -1rem;
  background: url('https://cdn.banggooso.com/assets/images/icons/back-arrow-w.png') no-repeat center center / auto
    1.375rem;
}

/* intro styles */
.game-intro {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: start;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(36, 38, 40, 0) 0%, rgba(36, 38, 40, 0.65) 6.68%, #242628 20.05%);
  background-color: #242628;
}
.game-intro .intro-bg {
  position: relative;
  background-image: url(https://cdn.banggooso.com/assets/images/game286/int-effect.png);
  background-repeat: no-repeat;
  background-position: center 25%;
  background-size: contain;
  width: 100%;
  padding: 0 0 1.87rem;
}
.game-intro .intro-bg .intro-img img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -4rem;
}
.game-intro .intro-bg .intro-title {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: auto;
  padding: 5rem 0;
  background: linear-gradient(180deg, rgba(36, 38, 40, 0) 22%, rgba(36, 38, 40, 0.65) 45%, #242628 70%);
}
.game-intro .intro-bg .intro-subtitle {
  color: #fff;
  text-align: center;
  font-family: 'Pretendard';
  font-size: 1.375rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin-top: 1.41rem;
}
.game-intro .intro-bg .intro-subtitle img {
  position: relative;
  top: -0.1rem;
}
.game-intro .input-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.game-intro .input-wrapper input {
  width: 22rem;
  height: 4.25rem;
  padding: 1.5rem 2rem;
  border-radius: 0.625rem;
  border: 2px solid rgba(66, 47, 37, 0.3);
  background: #fff;
  color: #422f25;
  text-align: center;
  font-family: 'Pretendard Variable';
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 500;
  line-height: 130%; /* 1.95rem */
  letter-spacing: -0.03rem;
}
.game-intro .input-wrapper input::placeholder {
  color: #422f25;
  opacity: 0.5;
}

.game-intro .input-wrapper .btn-wrap {
  width: 26.25rem;
  height: 6rem;
  margin: 0;
}
.game-intro .input-wrapper button {
  width: 100%;
  height: 100%;
  padding: 0 3.75rem;
  border-radius: 0.625rem;
  opacity: 0.95;
  background: #ffe300;
  color: #422f25;
  text-align: center;
  font-family: Pretendard;
  font-size: 1.75rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.875rem; /* 107.143% */
}
.game-intro .participant-container.game-count {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 3.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.game-intro .participant-container.game-count h3 {
  color: #fff;
  text-align: center;
  font-family: 'Pretendard';
  font-size: 1.375rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
.game-intro .participant-container.game-count p.count-num {
  color: #fff;
  text-align: center;
  font-family: 'Pretendard';
  font-size: 2.5rem;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
  letter-spacing: -0.025rem;
  text-transform: uppercase;
}
.share-container {
  margin: 5.38rem 0;
}
.share-container .share-sns-list {
  margin: 0;
}
.share-container .share-sns-list .list-title span {
  color: #fff;
  text-align: center;
  font-family: 'Pretendard';
  font-size: 1.375rem;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -0.01375rem;
}
.share-container .share-sns-list .list-title .countBox {
  opacity: 0.6;
  color: #fff;
  text-align: center;
  font-family: 'Pretendard';
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.25rem;
  letter-spacing: -0.01125rem;
}
.share-container .share-sns-list .list-title .countBox .countImg {
  background: url(https://cdn.banggooso.com/assets/images/game286/share-icon.svg) no-repeat center/cover;
  width: 1.25rem;
  height: 1.25rem;
}
.share-container .share-sns-list .btn-share {
  width: 3.75rem;
  height: 3.75rem;
}
.share-container .share-sns-list .btn-share.kakao {
  background: url(https://cdn.banggooso.com/assets/images/game286/share-icons/kakao-intro.png) no-repeat center/cover;
}
.share-container .share-sns-list .btn-share.instagram {
  background: url(https://cdn.banggooso.com/assets/images/game286/share-icons/instagram-intro.png) no-repeat
    center/cover;
}
.share-container .share-sns-list .btn-share.twitter {
  background: url(https://cdn.banggooso.com/assets/images/game286/share-icons/twitter-intro.png) no-repeat center/cover;
}
.share-container .share-sns-list .btn-share.facebook {
  background: url(https://cdn.banggooso.com/assets/images/game286/share-icons/facebook-intro.png) no-repeat center/cover;
}
.share-container .share-sns-list .btn-share.link-copy {
  background: url(https://cdn.banggooso.com/assets/images/game286/share-icons/link-copy-intro.png) no-repeat
    center/cover;
}

/* game template styles */
.game-template {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  width: 100%;
  height: 100dvh;
  transition: opacity 2s ease-in;
  overflow-y: auto;
}

.game-template.overlay::before {
  position: absolute;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.4);
  content: '';
  inset: 0;
}
.game-template * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.game-template .layer-1 {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(100dvh - 4rem);
  position: absolute;
  top: 0;
  left: 0;
}
.game-template .layer-2 {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(100dvh - 4rem);
  position: absolute;
  top: 0;
  left: 0;
}
.game-template .layer-2 .top {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  flex-direction: column;
  width: 100%;
  padding: 0 1.2rem;
}
.game-template .layer-2 .bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0;
  flex-direction: column;
  width: 100%;
  padding: 0 1rem 3rem;
}
.game-template .layer-2 .top.f-top,
.game-template .layer-2 .bottom.f-top {
  justify-content: flex-start;
  justify-content: start;
}
.game-template .layer-2 .top.f-center,
.game-template .layer-2 .bottom.f-center {
  justify-content: center;
}
.game-template .layer-2 .top.f-bottom,
.game-template .layer-2 .bottom.f-bottom {
  justify-content: flex-end;
  justify-content: end;
}

/** result styles */
.game-result {
  background: #533b2f;
  height: auto;
  min-height: 100%;
  padding: 4.38rem 1.625rem 0;
}
.game-result .capture-content {
  position: relative;
}
.game-result .capture-content .img-object {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.game-result .bottom-desc {
  color: rgba(255, 225, 43, 0.7);
  text-align: center;
  font-family: Pretendard;
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}
.game-result .result-layout .impact-txt {
  display: inline-block;
  padding: 0 0.6rem;
  border-radius: 0.625rem;
  font-size: 2.125rem;
}
.game-result .result-layout .impact-txt.yellow {
  background: #ffe300;
  color: #422f25;
}
.game-result .result-layout .impact-txt.white {
  background: #fff;
  color: #422f25;
}
.game-result .share-container .share-sns-list .list-title span {
  color: #ffe300;
  text-align: center;
  font-family: Pretendard;
  font-size: 1.375rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -0.01375rem;
}
.game-result .share-container .share-sns-list .list-title .countBox {
  opacity: 0.6;
  color: #ffe300;
  text-align: center;
  font-family: Pretendard;
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.25rem;
  letter-spacing: -0.0125rem;
}
.game-result .share-container .share-sns-list .list-title .countBox .countImg {
  background: url(https://cdn.banggooso.com/assets/images/game286/share-icon-result.svg) no-repeat center/cover;
}
.game-result .share-container .share-sns-list .btn-share.kakao {
  background: url(https://cdn.banggooso.com/assets/images/game286/share-icons/kakao-result.png) no-repeat center/cover;
}
.game-result .share-container .share-sns-list .btn-share.instagram {
  background: url(https://cdn.banggooso.com/assets/images/game286/share-icons/instagram-result.png) no-repeat
    center/cover;
}
.game-result .share-container .share-sns-list .btn-share.twitter {
  background: url(https://cdn.banggooso.com/assets/images/game286/share-icons/twitter-result.png) no-repeat center/cover;
}
.game-result .share-container .share-sns-list .btn-share.facebook {
  background: url(https://cdn.banggooso.com/assets/images/game286/share-icons/facebook-result.png) no-repeat
    center/cover;
}
.game-result .share-container .share-sns-list .btn-share.link-copy {
  background: url(https://cdn.banggooso.com/assets/images/game286/share-icons/link-copy-result.png) no-repeat
    center/cover;
}
.game-result .game-restart-container .game-restart-btn {
  width: 15rem;
  height: 5rem;
  padding: 0 1.5rem;
  margin: 0 auto 4.37rem;
  gap: 0.25rem;
  border-radius: 0.625rem;
  background: #ffe300;
  color: #422f25;
  text-align: center;
  font-family: Pretendard;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  border: none;
  box-shadow: none;
}

.game-result .dark-bg-section {
  background: #422f25;
  padding: 0 1.625rem;
}
.game-result .recommend-list .inner .title {
  color: #fff;
  font-family: Pretendard;
  font-size: 1.50013rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -0.033rem;
  margin-bottom: 0.48rem;
}
.game-result .recommend-list:before {
  background: linear-gradient(0deg, #ffe300 0%, #ffe300 100%),
    linear-gradient(133deg, #ffbcb0 13.53%, #ccb8ff 49.82%, #88d5f5 88%);
}
.game-result .recommend-list .btn-wrap {
}
.game-result .recommend-list .btn-wrap a {
  color: #533b2f;
}
