/* 도트 판 (2026-10-30): 게임이 픽셀(도트) 그림이 되어, 홈페이지도 게임처럼.
 *
 * 모든 페이지가 맨 마지막에 이 파일을 읽어, 앞의 모양(styles.css, page.css, 페이지 안 <style>)을 덮습니다.
 * - 글꼴 (2026-11-04, "폰트는 게임 폰트랑 통일"): 모든 글자를 게임과 같은 나눔스퀘어라운드 굵게(NanumSquareRoundB,
 *   SIL OFL, fonts/ 에 있음 - 게임의 Assets/Fonts/NanumSquareRound 를 woff2 로). 제목·본문·단추·입력 칸 모두.
 *   (2026-10-30 ~ 11-03 은 제목에 갈무리11, 본문은 고운돋움이었습니다 - fonts/Galmuri11-Bold.woff2 는 남겨 둠)
 * - 틀: 둥근 모서리와 흐린 그림자 대신, 한 칸(--px)짜리 테두리와 모서리가 한 칸 깎인 도트 상자.
 *   그림 파일 없이 box-shadow 만으로 그립니다.
 * - 그림: images/px/ 의 게임 그림을 정수 배로 키우고 image-rendering: pixelated 로 또렷하게.
 * 색은 2026-10-24 브랜드 색 그대로입니다 (주 #F7B267 · 보조 #ECDFDF · 강조 #DADC89 · 바탕 #F8F7F7). */

@font-face {
  font-family: "NanumSquareRound";
  src: url("fonts/NanumSquareRoundB.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --px: 4px;
  --px-line: #3A2E2C;        /* 도트 테두리: 짙은 밤색 (글자색과 같음) */
  --px-night: #2B2124;       /* 게임 상자의 어두운 바탕 */
  --px-cream: #F3E3C8;       /* 게임 상자의 밝은 글자 */
  --px-gold: #FFD985;        /* 게임 상자의 금빛 글자 */
  --px-sky: #7EBAE6;         /* 하늘 (sky_far.png 맨 위 색) */
  --f-game: "NanumSquareRound", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;   /* 게임과 같은 글꼴 */
  --f-pixel: var(--f-game);
  --f-display: var(--f-game);
  --f-body: var(--f-game);
  --f-mono: var(--f-game);
  --s: 2;                    /* 게임 그림을 몇 배로 (정수): 보통 2, 휴대폰 1 */
}
@media (max-width: 600px) { :root { --px: 3px; } }
@media (max-width: 700px) { :root { --s: 1; } }

/* 글꼴 ---------------------------------------------------------------- */
/* 모든 글자가 게임 글꼴 (페이지 안 <style> 이 이름으로 적은 글꼴도 덮음) */
body, body * { font-family: var(--f-game) !important; }

h1, h2, h3,
.menu, .px-font, button, .button, .buy, .badge, .tag, .chip, .way-tag, .when, .next-when,
.month-top .m, .eps, .count b, .launch, .prereg-title, .plats li, .demo-chip, .curriculum,
.ft b, .way li b, .fees b, .fees .ask, .num, summary, .contact b, .band-title h1, .card h2, .card h3 {
  font-family: var(--f-pixel) !important;
  font-weight: 700;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

/* 도트 그림은 또렷하게 */
.px, img.px, .px img { image-rendering: pixelated; image-rendering: crisp-edges; }

/* 도트 상자: 한 칸 테두리, 깎인 모서리, 아래로 한 칸 그림자 ------------------- */
.px-box {
  border-radius: 0 !important;
  box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--px-line),
    0 var(--px) 0 0 var(--px-line),
    calc(var(--px) * -1) 0 0 0 var(--px-line),
    var(--px) 0 0 0 var(--px-line),
    0 calc(var(--px) * 3) 0 0 rgba(58, 46, 44, 0.22) !important;
}

/* 단추: 주색 판, 아래 한 칸이 짙은 턱. 누르면 한 칸 내려앉는다 ------------------ */
.px-btn, button, .button, .buy, .menu a.pill {
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--px-line),
    0 var(--px) 0 0 var(--px-line),
    calc(var(--px) * -1) 0 0 0 var(--px-line),
    var(--px) 0 0 0 var(--px-line),
    inset 0 calc(var(--px) * -1) 0 0 var(--brand-deep, #D48E45),
    inset var(--px) var(--px) 0 0 rgba(255, 255, 255, 0.45),
    0 calc(var(--px) * 2) 0 0 rgba(58, 46, 44, 0.35) !important;
  transition: transform 0.05s steps(1);
}
button:active, .button:active, .buy:active, .menu a.pill:active, .px-btn:active {
  transform: translateY(var(--px)) !important;
}
button:hover, .button:hover, .buy:hover, .menu a.pill:hover { filter: brightness(1.06); }
button.plain, .button.ghost {
  background: #FFFFFF !important;
  box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--px-line),
    0 var(--px) 0 0 var(--px-line),
    calc(var(--px) * -1) 0 0 0 var(--px-line),
    var(--px) 0 0 0 var(--px-line),
    inset 0 calc(var(--px) * -1) 0 0 #E6DAD9,
    0 calc(var(--px) * 2) 0 0 rgba(58, 46, 44, 0.25) !important;
}
button.quiet { box-shadow: none !important; }
button.danger { box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--px-line), 0 var(--px) 0 0 var(--px-line),
    calc(var(--px) * -1) 0 0 0 var(--px-line), var(--px) 0 0 0 var(--px-line),
    inset 0 calc(var(--px) * -1) 0 0 #8E2E1C !important; }

/* 입력 칸: 각진 두 칸 테두리 */
input[type="email"], input[type="text"], input[type="tel"], input[type="number"], select, textarea {
  border-radius: 0 !important;
  border: calc(var(--px) * 0.75) solid var(--px-line) !important;
  box-shadow: inset var(--px) var(--px) 0 0 rgba(58, 46, 44, 0.08);
}

/* 안쪽 페이지 (page.css: 단체 문의, 내 계정) ----------------------------------- */
.card {
  border-radius: 0 !important;
  margin-left: var(--px); margin-right: var(--px);
  box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--px-line),
    0 var(--px) 0 0 var(--px-line),
    calc(var(--px) * -1) 0 0 0 var(--px-line),
    var(--px) 0 0 0 var(--px-line),
    0 calc(var(--px) * 3) 0 0 rgba(58, 46, 44, 0.18) !important;
}
.card + .card { margin-top: calc(1.5rem + var(--px) * 3) !important; }
.card h2 { font-size: 24px !important; }

/* 위 띠: 방 그림 대신 게임의 하늘과 앞마당 */
.band { background: var(--px-sky) !important; color: var(--px-line) !important; }
.band .band-bg, .band .band-shade { display: none !important; }
.band::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(24px * var(--s)); height: calc(288px * var(--s));
  background-image: url("images/px/sky_near.png"), url("images/px/sky_mid.png"), url("images/px/sky_far.png");
  background-repeat: repeat-x;
  background-position: 0 100%, 0 calc(100% - 10px * var(--s)), 0 calc(100% - 40px * var(--s));
  background-size: calc(512px * var(--s)) auto, calc(512px * var(--s)) auto, calc(640px * var(--s)) auto;
  image-rendering: pixelated;
}
.band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(24px * var(--s));
  background: url("images/px/grass.png") repeat-x 0 0 / calc(32px * var(--s)) auto,
              url("images/px/soil.png") repeat 0 0 / calc(32px * var(--s)) auto;
  image-rendering: pixelated;
}
.band .wave { visibility: hidden; }
.band .topbar, .band .band-title { z-index: 1; }
/* 2026-11-10: 로고는 상자 없이 그대로 놓습니다. */
.band .brand { border-radius: 0 !important; background: none !important; box-shadow: none !important; }
.band .menu a:not(.pill) { color: var(--px-line); text-shadow: 0 2px 0 rgba(255, 255, 255, 0.6); }
.band-title h1 { color: #FFFFFF; text-shadow: var(--px) var(--px) 0 var(--px-line), calc(var(--px) * -0.5) 0 0 var(--px-line), 0 calc(var(--px) * -0.5) 0 var(--px-line) !important; }
.band-title .lead { color: var(--px-line) !important; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  background: rgba(255, 255, 255, 0.72); padding: 6px 14px; }
.band-title { padding-bottom: calc(24px * var(--s) + 70px); }
.badge { transform: none !important; border-radius: 0 !important; }

/* 지원·약관·처리방침·계정 삭제·404 (styles.css) ---------------------------------- */
.qa, .contact { border-radius: 0 !important; border: 0 !important; margin: var(--px);
  box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--px-line), 0 var(--px) 0 0 var(--px-line),
    calc(var(--px) * -1) 0 0 0 var(--px-line), var(--px) 0 0 0 var(--px-line),
    0 calc(var(--px) * 3) 0 0 rgba(58, 46, 44, 0.18) !important; }
.qa details { border-top: var(--px) solid #EFE6E4 !important; }
.qa details:first-child { border-top: 0 !important; }
.qa summary::after { font-family: var(--f-pixel); }
.desk h1 { font-size: clamp(30px, 6vw, 48px) !important; }

/* 아래: 사업자 정보 띠 위에 풀밭 한 줄 (홈은 그 위의 소셜 띠에 따로 깝니다) */
footer.biz { position: relative; }
body:not(.home) footer.biz::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(var(--px) * -9); height: calc(var(--px) * 9);
  background: url("images/px/grass.png") repeat-x 0 0 / calc(32px * var(--s)) auto,
              url("images/px/soil_dark.png") repeat 0 0 / calc(32px * var(--s)) auto;
  image-rendering: pixelated;
}

@media (prefers-reduced-motion: reduce) {
  button:active, .button:active, .buy:active { transform: none !important; }
}

/* 단체 문의 카드 위의 교회 (코끼리 자리, 2026-10-30): 그림 그대로 1배 */
.pal.px { width: 112px !important; top: -144px !important; }

/* 로그인 쪽 기능 가리기 (2026-11-04, "지금은 로그인 쪽 기능 가려줘") ----------------------
 * data-login 이 붙은 것(내 계정 메뉴와 링크, 웹에서 사기 단추, 내 계정·선생님 화면·공과 자료의 본문)은 가리고,
 * .login-soon / .login-soon-inline (준비 중 안내)을 보입니다. 내 계정·선생님 화면·공과 자료는 주소 뒤에 ?open 을
 * 붙이면 그 페이지에서만 본문이 보입니다 (html.login-open). 되살릴 때: 아래 세 줄(html:not(.login-open) …)을 지웁니다. */
.login-soon, .login-soon-inline { display: none; }
html:not(.login-open) [data-login] { display: none !important; }
html:not(.login-open) .login-soon { display: block; }
html:not(.login-open) .login-soon-inline { display: inline; }
.buy-soon { margin: 0; padding: 12px 8px; text-align: center; font-weight: 700; color: var(--px-line); background: rgba(58, 46, 44, 0.08);
  box-shadow: 0 0 0 2px rgba(58, 46, 44, 0.25); }

/* ══ 2026-11-16 (게임이 만화풍이 되어, "도트 디자인 느낌나는 요소 모두 현재 게임 형태로 변경") ══════════════════
 * 위의 도트 상자·단추·입력 칸·카드를 둥근 모서리와 부드러운 그림자로 덮습니다. 그림도 또렷하게(pixelated) 하지 않습니다. */
.px, img.px, .px img { image-rendering: auto !important; }
.px-box, .card, .qa, .contact {
  border-radius: 22px !important; border: 0 !important;
  box-shadow: 0 0 0 1.5px rgba(58, 46, 44, .10), 0 10px 28px rgba(58, 46, 44, .10) !important; }
.card { margin-left: 0; margin-right: 0; }
.card + .card { margin-top: 1.5rem !important; }
.px-btn, button, .button, .buy, .menu a.pill {
  border-radius: 999px !important;
  box-shadow: inset 0 -3px 0 rgba(58, 46, 44, .18), 0 6px 16px rgba(58, 46, 44, .16) !important;
  transition: transform .08s ease, filter .15s ease !important; }
button:active, .button:active, .buy:active, .menu a.pill:active, .px-btn:active {
  transform: translateY(2px) !important; box-shadow: inset 0 -1px 0 rgba(58, 46, 44, .18), 0 2px 6px rgba(58, 46, 44, .16) !important; }
button.plain, .button.ghost { box-shadow: 0 0 0 1.5px rgba(58, 46, 44, .18), 0 4px 10px rgba(58, 46, 44, .08) !important; }
button.quiet { box-shadow: none !important; }
button.danger { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2), 0 6px 16px rgba(142, 46, 28, .2) !important; }
input[type="email"], input[type="text"], input[type="tel"], input[type="number"], select, textarea {
  border-radius: 14px !important; border: 1.5px solid rgba(58, 46, 44, .22) !important; box-shadow: none !important; }
.badge { border-radius: 999px !important; }
.band .band-bg { display: block !important; }
.band::before, .band::after { display: none !important; }
.band { background: linear-gradient(180deg, #F6C48C 0%, #F7B267 55%, #F3A65A 100%) !important; }
.band-title h1 { text-shadow: 0 3px 0 rgba(58, 46, 44, .55), 0 0 12px rgba(58, 46, 44, .25) !important; }
.band-title .lead { border-radius: 999px; }
body:not(.home) footer.biz::before { display: none !important; }
.buy-soon { border-radius: 14px; }
