/* =============================================================
   luckymath 사이트 공용 모양 — 모든 쪽이 site.css 뒤에 읽는다 (2026-10-20)
   소개 페이지에서 정한 모양(색·글꼴·단추·머리·바닥·카드)을 다른 쪽도 함께 쓴다.
   색은 게임 화면에서 뽑았다:
     메인 머리띠 짙은 밤색 #2b211c · 단추 노랑 #ffc83d · 카드 크림 #fff7e6
     1학년 야구장 초록 #4aa543 · 하늘 파랑 #2e86c1
   제목 글꼴은 게임이 쓰는 주아(Jua) 서브셋(assets/fonts) — 서브셋이라 없는 글자가 있을 수 있다.
     긴 글·사용자가 쓴 글(공지 본문 등)에는 쓰지 않는다. 새 제목을 넣으면 tools/shoot-site.js 의 '없는 글자' 검사를 본다.
   읽는 차례: site.css → theme.css → (쪽마다) landing.css 또는 pages.css
   ============================================================= */
@font-face {
  font-family: "Jua";
  src: url("fonts/jua-subset.woff2") format("woff2");
  font-display: swap;
}
body.lp {
  --ink: #2b211c;
  --ink-2: #5d5048;
  --ink-3: #8a7d72;
  --sub: #786b61;
  --paper: #fffdf8;
  --cream: #fff7e6;
  --cream-2: #fbefd4;
  --sun: #ffc83d;
  --sun-2: #f5b100;
  --leaf: #4aa543;
  --leaf-2: #2f7d33;
  --leaf-soft: #eaf5e1;
  --sky: #2e86c1;
  --sky-soft: #eaf4fb;
  --berry: #e8608f;
  --line: #ecdfc6;
  --line2: #dccdae;
  --accent: #2e86c1;
  --accent-soft: #eaf4fb;
  --shadow: 0 18px 40px -18px rgba(43, 33, 28, .35);
  --shadow-sm: 0 6px 18px -8px rgba(43, 33, 28, .25);
  --r-lg: 28px;
  --r-md: 20px;
  --radius: 20px;
  --display: "Jua", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 var(--font);
  letter-spacing: -0.2px;
  overflow-x: hidden;
}
.lp .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lp :focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.lp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.lp .display { font-family: var(--display); font-weight: 400; letter-spacing: -0.5px; line-height: 1.22; margin: 0; }
.lp h3 { font-weight: 700; }
.lp b, .lp strong { font-weight: 700; }
.lp .lm-testbar { position: relative; z-index: 2; }

/* ---------- 단추 — 게임의 '다음' 단추처럼 노랑 + 짙은 테두리 + 아래 그림자 ---------- */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 10px 26px; border-radius: 18px;
  font: 700 1.05rem/1.2 var(--font); text-decoration: none; color: var(--ink);
  background: #fff; border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background .12s;
  cursor: pointer;
}
.lp-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); text-decoration: none; }
.lp-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.lp-btn.play { background: var(--sun); padding: 8px 28px 8px 22px; }
.lp-btn.play span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; font-size: 1.1rem; }
.lp-btn.play small { font-size: .8rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.lp-btn.ghost:hover { background: var(--cream); }
.lp-btn.sm { min-height: 44px; padding: 6px 18px; font-size: .95rem; border-radius: 14px; box-shadow: 0 3px 0 var(--ink); }
/* (10/29) 출시 전에도 Play 단추는 사전등록 쪽으로 바로 가므로 '출시 예정' 흐린 단추 모양은 뺐다 */

/* ---------- 머리 ---------- */
#lm-head { min-height: 68px; }            /* 스크립트가 그리기 전에 자리를 잡아 둔다(쪽이 들썩이지 않게) */
.lp-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 253, 248, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.lp-head.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(43, 33, 28, .5); }
.lp-head-in { display: flex; align-items: center; gap: 16px; min-height: 68px; position: relative; }
.lp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.lp-brand img { width: 36px; height: 36px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.lp-brand span { font-family: var(--display); font-size: 1.5rem; letter-spacing: -0.3px; }
.lp-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.lp-nav a { text-decoration: none; color: var(--ink); font-size: .96rem; font-weight: 600; padding: 8px 12px; border-radius: 12px; white-space: nowrap; }
.lp-nav a:hover { background: var(--cream); }
.lp-nav a[aria-current="page"] { background: var(--cream); box-shadow: inset 0 -3px 0 var(--sun); }
.lp-nav a.lp-nav-my { margin-left: 8px; border: 2px solid var(--ink); padding: 6px 14px; }
.lp-nav a.lp-nav-my:hover, .lp-nav a.lp-nav-my[aria-current="page"] { background: var(--sun); box-shadow: none; }
.lp-menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 14px; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; place-items: center; }
.lp-menu-btn .i-close { display: none; }
.lp-head.open .lp-menu-btn .i-open { display: none; }
.lp-head.open .lp-menu-btn .i-close { display: inline; }

@media (max-width: 1080px) {
  .lp-menu-btn { display: grid; }
  .lp-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px; box-shadow: 0 16px 30px -20px rgba(43, 33, 28, .45);
    display: none;
  }
  .lp-head.open .lp-nav { display: flex; }
  .lp-nav a { padding: 13px 10px; font-size: 1.02rem; border-bottom: 1px solid #f3ead8; border-radius: 0; }
  .lp-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--sun); }
  .lp-nav a.lp-nav-my { margin: 12px 0 0; text-align: center; border-radius: 14px; background: var(--sun); }
}

/* ---------- 묻고 답하기(접고 펴기) — 소개 페이지·자주 묻는 질문 ---------- */
.qa-list { display: grid; gap: 12px; }
.qa { background: #fff; border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font-weight: 700; font-size: 1.05rem; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%232b211c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .2s; }
.qa[open] summary::after { transform: rotate(180deg); background-color: var(--sun); }
.qa p { margin: 0; padding: 0 24px 22px; color: var(--ink-2); }
.qa p + p { margin-top: -10px; }
.qa a { color: var(--sky); font-weight: 700; }

/* ---------- 바닥(site.js 가 그린다) ---------- */
.lp .lm-foot { background: #221a16; color: rgba(255, 255, 255, .62); border-top: 0; font-size: .88rem; }
.lp .lm-foot .in { max-width: 1160px; padding: 44px 24px 52px; }
.lp-foot-top { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; margin: 0 0 22px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.lp-foot .lp-brand { color: #fff; }
.lp-foot .lp-brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: none; }
.lp-foot .lp-brand span { font-size: 1.3rem; }
.lp-foot-say { margin: 0; color: rgba(255, 255, 255, .55); }
.lp .lm-foot .links { gap: 8px 22px; margin: 0 0 16px; }
.lp .lm-foot .links a { color: #fff; }
.lp .lm-foot .biz span:not(:last-child)::after { color: rgba(255, 255, 255, .3); }
.lp .lm-foot a { color: #fff; }

/* ---------- 휴대폰 ---------- */
@media (max-width: 720px) {
  body.lp { font-size: 16px; }
  .lp-wrap { padding: 0 16px; }
  #lm-head { min-height: 60px; }
  .lp-head-in { min-height: 60px; }
  .lp-nav { padding: 8px 16px 18px; }
  .lp-brand span { font-size: 1.35rem; }
  .qa summary { padding: 18px 54px 18px 18px; font-size: 1rem; }
  .qa summary::after { right: 16px; }
  .qa p { padding: 0 18px 18px; font-size: .96rem; }
  .lp .lm-foot .in { padding: 32px 16px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-btn, .qa summary::after, .lp-head { transition: none; }
}

/* ---------- 왼쪽 위 로고 [TL 타미드럭키] (2026-10-22 — 모든 쪽 같게) ---------- */
.lp-brand .en { font-family: var(--font); font-size: .8rem; font-weight: 700; letter-spacing: .4px; color: var(--ink-3); margin-left: -2px; align-self: flex-end; padding-bottom: 6px; }
.lp-foot .lp-brand .en { color: rgba(255, 255, 255, .45); }
@media (max-width: 380px) { .lp-head .lp-brand .en { display: none; } }

/* ---------- 1:1 문의 양식(assets/inquiry.js) — 첫 화면 맨 아래·문의 쪽 공용 (2026-10-22) ---------- */
.inq-form .field { margin: 0 0 18px; }
.inq-form .f { display: block; font-weight: 700; margin: 0 0 6px; font-size: .95rem; }
.inq-form .sub { font-weight: 400; color: var(--ink-3); }
.inq-form input[type=text], .inq-form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line2); border-radius: 12px; padding: 11px 12px; min-height: 48px; }
.inq-form textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
.inq-form input:focus, .inq-form textarea:focus { outline: 3px solid rgba(46, 134, 193, .35); outline-offset: 0; border-color: var(--sky); }
.inq-form .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.inq-form .chips label { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line2); background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: .95rem; min-height: 42px; }
.inq-form .chips input { accent-color: var(--ink); margin: 0; }
.inq-form .chips label:has(input:checked) { background: var(--sun); border-color: var(--ink); font-weight: 700; }
.inq-form .hint { font-size: .86rem; color: var(--ink-3); margin-top: 5px; }
.inq-form .count { float: right; font-size: .85rem; color: var(--ink-3); font-weight: 400; }
.inq-form .hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.inq-who { font-size: .92rem; color: var(--ink-2); margin: 0 0 16px; }
.inq-who a { color: var(--sky); font-weight: 700; }
.inq-form .consent { font-size: .88rem; color: var(--ink-2); background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0 0 16px; }
.inq-form .consent ul { margin: 6px 0 8px; padding-left: 18px; }
.inq-form .consent label { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; color: var(--ink); cursor: pointer; }
.inq-form .consent input { margin-top: 4px; accent-color: var(--ink); width: 18px; height: 18px; flex: none; }
.inq-send { background: var(--sun); min-height: 50px; }
.inq-send[disabled] { opacity: .6; transform: none; }
.inq-form .msg { margin: 14px 0 0; }
.inq-form .msg:empty { display: none; }
.inq { border-top: 1px solid var(--line); padding: 14px 0; }
.inq:first-child { border-top: 0; padding-top: 0; }
.inq .hd { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; font-size: .88rem; color: var(--ink-3); }
.inq .q { white-space: pre-wrap; margin: 0 0 8px; }
.inq .a { background: var(--sky-soft); border-radius: 12px; padding: 10px 14px; white-space: pre-wrap; }
.inq .a b { display: block; margin-bottom: 2px; color: var(--sky); }

/* ---------- 머리 하위 메뉴(▾) — PC 는 올리거나 누르면 펼침, 휴대폰은 메뉴 안에서 접고 펴기 (2026-10-22) ---------- */
.nav-item { position: relative; }
.nav-top { display: inline-flex; align-items: center; gap: 4px; font: 600 .96rem/1.2 var(--font); color: var(--ink); background: none; border: 0; padding: 8px 10px 8px 12px; border-radius: 12px; cursor: pointer; white-space: nowrap; }
.nav-top svg { width: 14px; height: 14px; opacity: .7; }
.nav-top:hover, .nav-item.open > .nav-top { background: var(--cream); }
.nav-item.open > .nav-top svg { transform: rotate(180deg); }
.nav-top[aria-current="page"] { background: var(--cream); box-shadow: inset 0 -3px 0 var(--sun); }
.nav-sub { position: absolute; left: 0; top: calc(100% + 6px); min-width: 190px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 40px -18px rgba(43, 33, 28, .45); display: none; z-index: 50; }
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }   /* 마우스가 틈에서 떨어지지 않게 */
.lp-nav .nav-sub a { display: block; padding: 9px 12px; border-radius: 10px; font-size: .94rem; font-weight: 600; white-space: nowrap; }
.lp-nav .nav-sub a:hover { background: var(--cream); }
.nav-sub small { display: block; font-size: .78rem; font-weight: 500; color: var(--ink-3); }
.nav-item.open > .nav-sub { display: block; }
@media (hover: hover) and (min-width: 1081px) {
  .nav-item:hover > .nav-sub { display: block; }
  .nav-item:hover > .nav-top svg { transform: rotate(180deg); }
}
.nav-sub.grades { display: none; grid-template-columns: repeat(3, 1fr); gap: 4px; min-width: 260px; }
.nav-item.open > .nav-sub.grades { display: grid; }
@media (hover: hover) and (min-width: 1081px) { .nav-item:hover > .nav-sub.grades { display: grid; } }
.lp-nav .nav-sub.grades a { text-align: center; font-family: var(--display); font-weight: 400; font-size: 1.05rem; background: var(--cream); }
.lp-nav .nav-sub.grades a:hover { background: var(--sun); }
@media (max-width: 1080px) {
  .lp-head.open .lp-nav { max-height: calc(100vh - 70px); overflow-y: auto; }
  .nav-item { border-bottom: 1px solid #f3ead8; }
  .nav-top { width: 100%; justify-content: space-between; padding: 13px 10px; font-size: 1.02rem; border-radius: 0; }
  .nav-top:hover, .nav-item.open > .nav-top { background: none; }
  .nav-sub, .nav-sub.grades { position: static; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 10px 10px; min-width: 0; background: none; }
  .nav-sub::before { display: none; }
  .lp-nav .nav-sub a { border-bottom: 0; padding: 9px 10px; font-weight: 500; color: var(--ink-2); }
  .nav-sub.grades { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 2px 0 12px 10px; }
  .lp-nav .nav-sub.grades a { padding: 10px 4px; border-radius: 12px; color: var(--ink); }
}
@media (min-width: 1081px) and (max-width: 1240px) {
  .lp-nav > a, .nav-top { padding-left: 9px; padding-right: 9px; font-size: .92rem; }
}