/* /css/reset.css */

/* -------------------------------
 * ZARCADE GLOBAL RESET
 * ------------------------------- */

/* 0. 폰트 */
@font-face {
  font-family: "RoundedFixedsys";
  src: url("../fonts/DungGeunMo.woff2") format("woff2"),
    url("../fonts/DungGeunMo.woff") format("woff"),
    url("../fonts/DungGeunMo.eot") format("embedded-opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Youngwol";
  src: url("../fonts/Yeongwol.otf") format("opentype"),
    url("../fonts/YeongwolTTF.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --color-primary: #ffa51f;
  --color-primary-dark: #ccad2c;
  --color-wood: #6b4f2a;
  --color-stone: #8a8a8a;
  --color-roof: #a84832;
  --color-grass: #85c36f;
  --color-accent-blue: #00c8ff;
  --color-accent-lime: #b4ff59;
  --color-accent-pink: #ff6bd6;

  /* 텍스트 */
  --color-text: #ffffff;
  --color-text-muted: #bcbcbc;
  --color-text-old: #252525;

  /* 배경 */
  --color-bg: #000000;
  --color-bg-dark: #0c0c0c;

  /* 테두리 / 그림자 */
  --color-border: #2a2a2a;
  --color-shadow: rgba(0, 0, 0, 0.5);
}

/* 기본 리셋 */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* 화면 기본 설정 */
html,
body {
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: "RoundedFixedsys", "Noto Sans KR", sans-serif;
}

/* 모바일 터치 제어 (게임 UI에 맞게 최적화) */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

/* 반응형 폰트 비율 (vw 기반) */
html {
  font-size: max(10px, calc(100vw / 100));
}

body {
  font-size: 1.2rem;
}

/* 기본요소 정리 */
a,
img,
svg,
canvas,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea {
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  outline: none;
}

/* 레이아웃 기본값 */
#content-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.web-banner {
  padding-bottom: 70px;
}

/* 안전 영역 보정 (iPhone notch 대응) */
@supports (padding: env(safe-area-inset-top)) {
  body {
    padding: env(safe-area-inset-top) env(safe-area-inset-right)
      env(safe-area-inset-bottom) env(safe-area-inset-left);
  }
}

/* heading 사이즈 */
h1 {
  font-size: 3rem;
  text-shadow: 3px 3px 3px var(--color-shadow);
}
h2 {
  font-size: 2.25rem;
  text-shadow: 3px 3px 3px var(--color-shadow);
}
h3 {
  font-size: 2rem;
  text-shadow: 3px 3px 3px var(--color-shadow);
}
h4 {
  font-size: 1.75rem;
  text-shadow: 3px 3px 3px var(--color-shadow);
}
h5 {
  font-size: 1.5rem;
  text-shadow: 3px 3px 3px var(--color-shadow);
}
h6 {
  font-size: 1.2rem;
  text-shadow: 3px 3px 3px var(--color-shadow);
}

div {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

div::-webkit-scrollbar {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  pointer-events: none;
  opacity: 0;

  transition: opacity 0.28s ease-out, backdrop-filter 0.28s ease-out;
}

.modal.open {
  opacity: 1;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  pointer-events: auto;
}

.modal-box {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 380px;
  height: 475px;
  background: url("../imgs/boards/scroll-v.png") no-repeat center/contain;
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  transition: opacity 0.28s ease-out,
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.open .modal-box {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 8%;
  right: 13%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  z-index: 10000;
  filter: drop-shadow(2px 5px 5px rgba(0, 0, 0, 0.45));
}

.modal-close img {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.modal-body {
  width: 65%;
  height: 70%;
  overflow-y: auto;
  color: var(--color-text-old);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal-body::-webkit-scrollbar {
  display: none;
}

.modal-body > * {
  text-shadow: none;
}

.modal-body h3 {
  padding-bottom: 10px;
}

.modal-body h5 {
  padding: 10px 0;
}

.modal-body li,
.modal-body p {
  padding-bottom: 6px;
  line-height: 1.55rem;
  text-indent: 10px;
}

#ad-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
}
