/* Lee4Family 사이트 — 색 = HQ Brand/README.md
   .home = 메인 페이지(index.html · ko/), .tl = 비공개 테스트 안내(test/) */
:root {
  --cream: #F2E9D6;
  --paper: #FBF7EE;
  --ink: #3A2E27;
  --ink-2: #2A211C;
  --ink-soft: #6B5D52;
  --orange: #CD704D;
  --green: #708D77;
  --yellow: #DFB04B;
  --line: #E3D8C2;
  --radius: 18px;
  --display: "Fredoka", "Noto Sans KR", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.6 "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--orange); }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* 한국어는 단어 중간에서 줄을 바꾸지 않는다 */
html[lang="ko"] body { word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- 공통 부품 ---------- */
h2 { font-family: var(--display); font-weight: 600; font-size: 26px; margin: 0 0 6px; }
.sub { color: var(--ink-soft); margin: 0 0 16px; max-width: 720px; }
.chip {
  display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px;
  padding: 1px 10px; color: #fff; background: var(--ink-soft); white-space: nowrap;
}
.chip.live { background: var(--green); }
.chip.soon { background: var(--yellow); color: var(--ink); }
.chip.testing { background: var(--orange); }
.chip.dev { background: var(--line); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.btn {
  display: inline-block; font-weight: 600; font-size: 15px; text-decoration: none;
  border-radius: 999px; padding: 8px 18px; transition: background .15s, color .15s, transform .15s;
}
.btn.primary { background: var(--ink); color: var(--cream); }
.btn.primary:hover { background: var(--orange); }
.btn.ghost { border: 1.5px dashed var(--ink-soft); color: var(--ink-soft); }
.links { font-size: 14px; }
.links a { color: var(--ink-soft); }
.lang {
  font-weight: 600; text-decoration: none; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px 14px; font-size: 14px;
}

/* =====================================================================
   메인 페이지
   ===================================================================== */
.home .wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.home main { padding: 0; }
.home h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; }
.home :focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* 위 메뉴 */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(242, 233, 214, .88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(58, 46, 39, .08);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav .logo img { height: 34px; width: auto; }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 6px 12px; border-radius: 999px;
}
.nav nav a:hover { background: rgba(58, 46, 39, .07); }
.nav .lang { padding: 3px 12px; font-size: 13px; flex: none; white-space: nowrap; }
/* overflow-wrap: anywhere(한국어 줄바꿈) 아래에서 작은 flex 칸이 한 글자 폭으로 줄지 않게 */
.ticker .new, .ticker time, .pillars .num, .chip, .btn, .tabs button { flex: none; white-space: nowrap; }

/* 히어로 */
.hero {
  position: relative; overflow: hidden; color: var(--cream);
  background:
    radial-gradient(600px 400px at 8% 0%, rgba(205, 112, 77, .35), transparent 70%),
    radial-gradient(520px 380px at 100% 100%, rgba(112, 141, 119, .35), transparent 70%),
    radial-gradient(300px 220px at 60% 10%, rgba(223, 176, 75, .18), transparent 70%),
    var(--ink);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background-image: radial-gradient(var(--cream) 1px, transparent 1.2px); background-size: 18px 18px;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center;
  padding-top: 72px !important; padding-bottom: 80px !important;
}
.eyebrow {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .04em;
  color: var(--yellow); border: 1px solid rgba(223, 176, 75, .45); border-radius: 999px; padding: 3px 12px;
}
.hero h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(40px, 6vw, 68px);
  line-height: 1.06; margin: 18px 0 18px; letter-spacing: -.01em;
}
.hero-text p { font-size: 18px; color: rgba(242, 233, 214, .78); margin: 0; max-width: 480px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn.light { background: var(--cream); color: var(--ink); padding: 12px 22px; font-size: 16px; }
.btn.light:hover { background: var(--yellow); }
.btn.line { border: 1.5px solid rgba(242, 233, 214, .5); color: var(--cream); padding: 10.5px 20px; font-size: 16px; }
.btn.line:hover { border-color: var(--cream); background: rgba(242, 233, 214, .08); }

.hero-stage { position: relative; }
.slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: 22px; position: relative; aspect-ratio: 1024 / 500;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(242, 233, 214, .12);
  transform: rotate(-1.2deg);
}
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; display: block; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px;
  display: flex; align-items: center; gap: 10px; color: #fff;
  background: linear-gradient(transparent, rgba(30, 22, 18, .78));
}
.slide .cap b { font-family: var(--display); font-weight: 600; font-size: 18px; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(242, 233, 214, .35); transition: width .25s, background .25s;
}
.dots button[aria-current="true"] { width: 26px; background: var(--yellow); }

/* 새 소식 띠 */
.ticker { display: block; background: var(--ink-2); color: var(--cream); text-decoration: none; font-size: 14px; }
.ticker .wrap { display: flex; align-items: center; gap: 12px; height: 46px; }
.ticker .new {
  font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .06em;
  background: var(--orange); color: #fff; border-radius: 6px; padding: 1px 8px;
}
.ticker time { color: rgba(242, 233, 214, .6); white-space: nowrap; }
.ticker .tk { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker .arrow { margin-left: auto; color: var(--yellow); transition: transform .2s; }
.ticker:hover .arrow { transform: translateX(4px); }

/* 블록 공통 */
.block { padding: 88px 0; scroll-margin-top: 64px; }
.block.tint { background: var(--paper); }
.block-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }
.block-head .sub { margin: 4px 0 0; font-size: 17px; }

/* 게임 */
.tabs { display: flex; gap: 6px; background: rgba(58, 46, 39, .06); padding: 4px; border-radius: 999px; }
.tabs button {
  font: inherit; font-weight: 600; font-size: 14px; color: var(--ink-soft);
  border: 0; background: none; padding: 7px 16px; border-radius: 999px; cursor: pointer;
}
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.games-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.home .card {
  background: var(--paper); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 1px 0 rgba(58, 46, 39, .06), 0 0 0 1px var(--line);
  transition: transform .2s ease, box-shadow .2s ease; scroll-margin-top: 84px;
}
.home .card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(58, 46, 39, .35), 0 0 0 1px var(--line); }
.home .card:target { box-shadow: 0 0 0 3px var(--orange); }
.home .card .art { position: relative; aspect-ratio: 1024 / 500; background: var(--line); overflow: hidden; }
.home .card .art > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.home .card:hover .art > img { transform: scale(1.04); }
.home .card .art .chip { position: absolute; top: 12px; left: 12px; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.home .card .placeholder {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: repeating-linear-gradient(135deg, var(--cream) 0 14px, var(--paper) 14px 28px);
  color: var(--ink-soft); font-family: var(--display); font-weight: 600;
}
.home .card .placeholder img { opacity: .5; }
.home .card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.home .card .head { display: flex; gap: 12px; align-items: center; }
.home .card .icon { width: 56px; height: 56px; border-radius: 14px; flex: none; box-shadow: 0 0 0 1px rgba(58, 46, 39, .08); }
.home .card h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.home .card .platform { font-size: 13px; color: var(--ink-soft); }
.home .card p { margin: 0; color: var(--ink-soft); flex: 1; }

/* 캐릭터 */
.chars { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.char {
  display: grid; grid-template-columns: 200px 1fr; gap: 8px 20px; align-items: center;
  background: var(--cream); border-radius: 28px; padding: 20px 24px 20px 12px; position: relative; overflow: hidden;
}
.char::before {
  content: ""; position: absolute; width: 220px; height: 220px; left: -10px; top: 50%; transform: translateY(-50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(223, 176, 75, .35), transparent 70%);
}
.char-art { position: relative; }
.char-art img { width: 200px; height: 200px; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s ease; }
.char:hover .char-art img { transform: rotate(-4deg) scale(1.04); }
.char .role { font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--orange); letter-spacing: .03em; }
.char h3 { font-family: var(--display); font-weight: 700; font-size: 30px; margin: 0 0 6px; line-height: 1.1; }
.char p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.char .appears { margin-top: 10px; font-size: 14px; }
.char .appears a { color: var(--ink); font-weight: 600; }

/* 스튜디오 */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.home .lead { font-size: 18px; color: var(--ink-soft); margin: 12px 0 28px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stats div { background: var(--paper); border-radius: 18px; padding: 18px 16px; box-shadow: 0 0 0 1px var(--line); }
.stats b { display: block; font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--ink); }
.stats span { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.stats div:nth-child(1) b { color: var(--green); }
.stats div:nth-child(2) b { color: var(--orange); }
.stats div:nth-child(3) b { color: #B88A2A; }
.pillars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pillars li { display: flex; gap: 18px; background: var(--paper); border-radius: 18px; padding: 20px 22px; box-shadow: 0 0 0 1px var(--line); }
.pillars .num { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--orange); line-height: 1.3; }
.pillars h3 { margin: 0 0 2px; font-size: 18px; }
.pillars p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* 소식 */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news li { display: grid; grid-template-columns: 140px 1fr; gap: 6px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.news time { font-family: var(--display); font-weight: 600; color: var(--ink-soft); padding-top: 2px; }
.news h3 { margin: 0; font-size: 19px; line-height: 1.35; }
.news h3 a { color: var(--ink); text-decoration: none; }
.news h3 a:hover { color: var(--orange); }
.news p { margin: 4px 0 0; color: var(--ink-soft); }

/* 테스터 띠 */
.band { padding: 0 0 88px; background: var(--paper); }
.band-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(223, 176, 75, .35), transparent 70%),
    var(--orange);
  color: #fff; border-radius: 28px; padding: 40px 44px !important; max-width: 1128px !important;
}
.band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); }
.band p { margin: 4px 0 0; color: rgba(255, 255, 255, .88); max-width: 560px; }

/* 바닥 */
.site-footer { background: var(--ink); color: rgba(242, 233, 214, .7); font-size: 14px; padding: 56px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer img { height: 34px; width: auto; margin-bottom: 12px; }
.site-footer p { margin: 0; max-width: 340px; }
.site-footer h4 { color: var(--cream); font-family: var(--display); font-weight: 600; font-size: 15px; margin: 0 0 10px; }
.site-footer a { display: block; color: rgba(242, 233, 214, .7); text-decoration: none; padding: 3px 0; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .copy { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid rgba(242, 233, 214, .12); font-size: 13px; max-width: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 48px !important; padding-bottom: 56px !important; }
  .studio-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav .wrap { gap: 12px; }
  .nav nav { overflow-x: auto; scrollbar-width: none; }
  .nav nav::-webkit-scrollbar { display: none; }
  .nav nav a { font-size: 14px; padding: 6px 9px; white-space: nowrap; }
  .nav .logo img { height: 28px; }
  .block { padding: 60px 0; }
  .games-grid { grid-template-columns: 1fr; }
  .tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs button { flex: 1; white-space: nowrap; padding: 7px 10px; }
  /* 폰: 그림 + 이름을 한 줄, 소개는 아래 전체 폭 */
  .char { grid-template-columns: 112px 1fr; gap: 0 14px; padding: 16px 20px 20px 10px; border-radius: 22px; align-items: center; }
  .char::before { width: 140px; height: 140px; left: -16px; top: 70px; }
  .char-body { display: contents; }
  .char-art { grid-row: 1 / span 2; }
  .char-art img { width: 112px; height: 112px; }
  .char .role { grid-column: 2; align-self: end; }
  .char h3 { grid-column: 2; align-self: start; font-size: 26px; margin: 0; }
  .char p { grid-column: 1 / -1; padding-left: 10px; position: relative; }
  .char p:not(.appears) { margin-top: 10px; }
  .stats b { font-size: 34px; }
  .news li { grid-template-columns: 1fr; padding: 18px 0; }
  .band { padding-bottom: 60px; }
  .band-inner { padding: 28px 24px !important; border-radius: 22px; margin: 0 16px !important; }
  .slides { transform: none; border-radius: 16px; }
}
@media (max-width: 420px) {
  .nav .logo img { height: 24px; }
  .nav nav a { padding: 6px 7px; font-size: 13px; }
}

/* =====================================================================
   비공개 테스트 안내 (test/)
   ===================================================================== */
.top {
  max-width: 1120px; margin: 0 auto; padding: 20px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.top .logo img { height: 40px; width: auto; }
.tl main { max-width: 560px; margin: 0 auto; padding: 0 16px 48px; }
.tl .top { max-width: 560px; }
.tl section { margin-top: 40px; }
.tl h1 { font-family: var(--display); font-weight: 600; font-size: 32px; line-height: 1.2; margin: 8px 0 8px; }
.tl .lead { color: var(--ink-soft); margin: 0 0 20px; }
.tl h2 { margin-top: 32px; }
.tl .steps {
  margin: 0; padding: 16px 18px 16px 38px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.tl .steps li { margin: 6px 0; }
.tl .steps li::marker { font-weight: 600; color: var(--orange); }
.tl .games { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tl .game {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px;
  scroll-margin-top: 12px;
}
.tl .game:target { border: 2px solid var(--orange); box-shadow: 0 0 0 4px rgba(205, 112, 77, .15); }
.tl .game .head { display: flex; gap: 12px; align-items: center; }
.tl .game .icon { width: 56px; height: 56px; border-radius: 14px; flex: none; background: var(--line); }
.tl .game h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.tl .game .head p { margin: 2px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.tl .chip { margin-top: 4px; }
.tl .btn.wide { display: block; text-align: center; padding: 13px 18px; font-size: 16px; }
.tl .btn.outline { border: 1.5px solid var(--ink); color: var(--ink); }
.tl .small { margin: -4px 0 0; font-size: 13px; color: var(--ink-soft); text-align: center; }
.tl .small a { color: var(--ink-soft); }
/* 게임 하나 (test/<slug>/) */
.tl .hero-game {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin: 8px 0 20px;
}
.tl .hero-game .feature { width: 100%; height: auto; aspect-ratio: 1024 / 500; object-fit: cover; background: var(--line); }
.tl .hero-game .head { display: flex; gap: 12px; align-items: center; padding: 16px 18px 0; }
.tl .hero-game .icon { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.tl .hero-game h1 { font-size: 26px; margin: 0; }
.tl .hero-game .pitch { margin: 10px 18px 18px; color: var(--ink-soft); }
.tl .cta { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.tl .focus { margin: 8px 0 0; padding-left: 22px; }
.tl .focus li { margin: 4px 0; }
.tl .faq { margin-top: 32px; font-size: 14px; color: var(--ink-soft); }
.tl .faq p { margin: 0 0 10px; }
.tl .faq b { color: var(--ink); }
.tl footer {
  border-top: 1px solid var(--line); text-align: center; padding: 24px 16px 40px;
  color: var(--ink-soft); font-size: 14px;
}
.tl footer p { margin: 4px 0; }
.tl footer a { color: var(--ink-soft); }
