@import url('https://fonts.googleapis.com/css2?family=Jua&display=swap');
/* 오름게임즈 — oreumgames.com */

:root {
  /* 바탕 — 옅은 아이보리 */
  --void:    #f8f5ec;
  --deep:    #f2ede0;
  --panel:   #fffdf7;
  --panel-2: #f4efe2;
  --line:    #e6dfcd;
  --line-2:  #d7ccb4;

  /* 글씨 */
  --ink:    #1b2a1f;
  --ink-2:  #45523f;
  --muted:  #7d8a76;

  /* 오름 초록 */
  --green:      #4e8f4a;
  --green-lit:  #2e6b39;   /* 글씨·강조용 진초록 */
  --green-soft: #e7f0dc;   /* 태그·칩 바탕 */
  --green-edge: #cadcbc;

  /* 귤 — 루루팜과 해 */
  --ember:     #e08a2e;
  --ember-ink: #a35c10;

  /* 차가운 빛 — 다음 것 */
  --cold:     #3d8a97;
  --cold-ink: #276570;

  --radius: 16px;
  --shadow: 0 1px 2px rgba(60, 55, 35, .05), 0 14px 34px rgba(60, 55, 35, .08);
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕",
          system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--void); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--void);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

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

a { color: var(--green-lit); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ember-ink); }

h1, h2, h3 { line-height: 1.3; letter-spacing: -.02em; margin: 0; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--green-lit); color: #fff; padding: 10px 16px; z-index: 50; }
.skip:focus { left: 12px; top: 12px; }

/* ── 헤더 ─────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(248, 245, 236, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 92px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { width: 78px; height: auto; }
.nav { display: flex; gap: 2px; }
.nav a {
  padding: 8px 14px; border-radius: 999px; font-size:18px; font-weight: 600;
  color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.nav a:hover { background: var(--green-soft); color: var(--green-lit); }
/* 커뮤니티에 24시간 안에 올라온 글이 있으면 board-new.js 가 이 표시를 붙입니다.
   ⚠ 색은 변수로 쓰지 않는다 — 게시판 페이지는 --ember·--ink 를 제 색으로 덮어써서
   변수를 쓰면 표시가 까맣게 나온다(2026-09-16 확인). 카드의 .isnew 와도 이름을 겹치지 않게 한다 */
.navnew, .post .new24 {
  display: inline-block; background: #e4572e; color: #fff;
  border-radius: 999px; font-weight: 800; letter-spacing: .04em; line-height: 1.6;
}
/* 메뉴 딱지는 글자 옆이 아니라 COMMUNITY 글자 바로 위에 작게 얹는다(사장님 2026-09-16) */
.nav a { position: relative; }
.navnew {
  position: absolute; right: 7px; top: -1px;
  padding: 0 3px; font-size: 6px; line-height: 1.9; letter-spacing: .04em;
  pointer-events: none;
}
.post .new24 { margin-left: 2px; padding: 1px 8px; font-size: 12px; }

/* ── 히어로 — 아침의 오름 ─────────────── */
.hero { position: relative; overflow: hidden; }
.hero-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 78% 8%, rgba(224,138,46,.10), transparent 62%),
    linear-gradient(180deg, #fbf8f1 0%, #eef3e6 52%, #e4eeda 100%);
}
.stars { display: none; }

.moon {
  position: absolute; top: 58px; left: 50%; margin-left: 330px;
  width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #ffd18a, var(--ember) 74%);
  box-shadow: 0 0 0 16px rgba(224,138,46,.10), 0 0 0 38px rgba(224,138,46,.06);
}

.ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 280px; }
.ridge-far  { fill: #cbe0bb; }
.ridge-mid  { fill: #aecd99; }
.ridge-near { fill: #8fba7b; }

.hero-inner { position: relative; padding: 116px 0 148px; max-width: 720px; }
.eyebrow {
  margin: 0 0 18px; font-size:15px; font-weight: 700;
  letter-spacing: .3em; color: var(--green-lit); text-transform: uppercase;
}
.hero h1 { font-size:clamp(45px, 8vw, 81px); font-weight: 800; color: #16281c; }
.hero h1 .dim { color: var(--green); font-size:50%; letter-spacing: .06em; }
.lede { margin: 24px 0 0; max-width: 30em; font-size:20px; color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px;
  font-size:19px; font-weight: 700; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--green-lit); color: #fff;
  box-shadow: 0 8px 22px rgba(46,107,57,.26);
}
.btn-primary:hover { background: var(--green); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,.75); color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: #fff; color: var(--green-lit); border-color: var(--green); }

/* ── 섹션 공통 ────────────────────────── */
.section { padding: 92px 0; position: relative; }
.section-alt { background: var(--deep); border-block: 1px solid var(--line); }
.section-tag { margin: 0 0 8px; font-size:15px; font-weight: 700; letter-spacing: .26em; color: var(--green); }
.section-title { font-size:clamp(29px, 3.6vw, 37px); font-weight: 800; color: var(--ink); margin-bottom: 30px; }
.section-en { letter-spacing: .16em; color: var(--green-lit); }

/* ── 게임 카드 ────────────────────────── */
.game {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px; margin-bottom: 22px; position: relative; overflow: hidden;
}
.game-warm::before {
  content: ""; position: absolute; inset: -1px -1px auto -1px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
}

.game-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.game-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow); }
.game h1, .game h3 { margin:0; font-size:28px; font-weight: 800; color: var(--ink); }
.game-sub { margin: 6px 0 10px; color: var(--muted); font-size:18px; }
/* 제목 밑에 붙는 상태 한 줄 — "지금 바로 쓸 수 있다"를 눈에 띄게 (기존 태그 칩과 같은 초록) */
.game-status {
  display: inline-block; margin: 8px 0 2px;
  background: var(--green-soft); color: var(--green-lit); border: 1px solid var(--green-edge);
  padding: 5px 13px; border-radius: 999px;
  font-size:16px; font-weight: 700; letter-spacing: .2px;
  word-break: keep-all;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li {
  background: var(--green-soft); color: var(--green-lit); border: 1px solid var(--green-edge);
  padding: 4px 12px; border-radius: 999px; font-size:16px; font-weight: 600;
}

/* 게임 시작 화면 문구 */
.game-tagline {
  margin: 24px 0 0; font-size:20px; line-height: 1.7;
  color: var(--ink-2); text-align: center;
}

.story {
  margin: 24px 0 0; padding: 22px 26px;
  background: #fdf6e9; border-left: 3px solid var(--ember);
  border-radius: 0 12px 12px 0; color: #4a3b28;
}
.story p { margin: 0 0 12px; }
.story p:last-child { margin-bottom: 0; }
.story-punch { font-weight: 700; font-size:21px; color: var(--green-lit); }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0 0; }
.shots-5 { grid-template-columns: repeat(5, 1fr); }
.shots figure { margin: 0; }
.shots img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--line);
}
.shots figcaption { margin-top: 8px; font-size:16px; color: var(--muted); text-align: center; }

/* 제목부터 단추까지 통째로 가운데 정렬하는 카드 (MBTI사주) — 영생의 가격 카드와 같은 모양 */
.game-center { text-align: center; }
.game-center .game-head { justify-content: center; }
.game-center .game-cta { justify-content: center; }

/* 사진 한 장이 카드 가운데를 채우는 경우 (MBTI사주) — 위아래로 넉넉히 띄웁니다 */
.game-art { margin: 30px auto 4px; max-width: 420px; }
.game-art img {
  width: 100%; height: auto; display: block;
  border-radius: 14px; border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}

.game-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ── 섬에서 만나는 사람들 — 평소엔 통째로 숨어 있고 "캐릭터 소개" 단추로만 여닫습니다 ── */
.castbox { scroll-margin-top: 120px; }
/* 접힘 상자의 제목 줄은 화면에서 감춥니다 (읽기 프로그램에는 남습니다) */
.castbox > summary {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.castbox[open] { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }

/* ── 섬에서 만나는 사람들 ─────────────── */
.sub-title {
  margin: 46px 0 20px; font-size:24px; font-weight: 800; color: var(--ink);
  text-align: center;
  /* 위에 붙어 있는 머리띠에 제목이 가리지 않게 */
  scroll-margin-top: 120px;
}
.cast {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.cast li {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 18px 22px; text-align: center;
}
.cast-art {
  height: 168px; margin-bottom: 12px;
  display: flex; align-items: flex-end; justify-content: center;
}
.cast-art img { width: auto; height: 100%; object-fit: contain; }
.cast b { display: block; font-size:22px; font-weight: 800; color: var(--ink); }
.cast-role {
  display: block; margin-top: 3px; font-size:12.8px; font-weight: 700;
  letter-spacing: .04em; color: var(--green);
}
.cast p { margin: 10px 0 0; font-size:14.8px; line-height: 1.65; color: var(--ink-2); }
.cast i { font-style: normal; color: var(--ember-ink); font-weight: 600; }

/* ── 다음 것 (티저) ───────────────────── */
.teaser {
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(61,138,151,.08), transparent 70%),
    var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 54px 32px; text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.teaser::before {
  content: ""; position: absolute; inset: -1px -1px auto -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cold), transparent);
}
/* 티저 카드도 홈페이지 색으로 통일합니다 — 다른 게임 카드들과 같은 밝은 바탕 */
.teaser-tag {
  display: inline-block; margin: 0 0 14px; padding: 8px 16px 8px calc(16px + .34em);
  font-size:15px; font-weight: 700; letter-spacing: .34em; color: var(--cold-ink);
  border: 1px solid rgba(61, 138, 151, .45); border-radius: 9px;
  background: rgba(61, 138, 151, .07);
}
/* 티저 사진 — 백 살의 몸으로 스무 살의 얼굴을 사는 두 사람 */
.teaser-shot { margin: 24px auto 0; max-width: 560px; }
.teaser-shot img {
  width: 100%; height: auto; display: block;
  border-radius: 14px; border: 1px solid var(--line-2);
}
.teaser-shot figcaption { margin-top: 11px; font-size:13.8px; line-height: 1.6; color: var(--ink-2); }
.teaser h3 { font-size:clamp(25px, 3vw, 33px); font-weight: 800; color: var(--ink); }
.teaser-en {
  margin: 9px 0 0; font-size:16px; font-weight: 700;
  letter-spacing: .3em; color: var(--cold-ink); text-indent: .3em;
}
.teaser .teaser-sub { margin-top: 6px; font-size:17px; color: var(--ink-2); letter-spacing: .02em; }
.teaser p { margin: 16px auto 0; max-width: 32em; color: var(--ink-2); }
.teaser .whisper { color: var(--ink-2); font-size:18px; }
.pulse {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cold); margin-left: 8px; vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(61,138,151,.5); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61,138,151,.45); opacity: 1 }
  70%  { box-shadow: 0 0 0 14px rgba(61,138,151,0); opacity: .55 }
  100% { box-shadow: 0 0 0 0 rgba(61,138,151,0); opacity: 1 }
}

/* ── 스튜디오 ─────────────────────────── */
.studio { display: grid; grid-template-columns: 1.3fr .7fr; gap: 44px; align-items: center; }
.studio p { margin: 0 0 14px; color: var(--ink-2); }
.studio strong { color: var(--ink); }
.values { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.values li {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 16px; font-size:18px; color: var(--ink-2);
}
.values span { font-weight: 800; color: var(--green-lit); }
.studio-mark img { width: 100%; max-width: 240px; margin-inline: auto; opacity: .92; }

/* ── 문의 ─────────────────────────────── */
.contact > p { max-width: 34em; color: var(--ink-2); }
.mailbox { margin: 20px 0 10px; }
.mailbox a {
  display: inline-block; background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 12px 24px; font-size:20px; font-weight: 700;
  text-decoration: none; box-shadow: var(--shadow);
}
.mailbox a:hover { border-color: var(--green); }
.small { font-size:17px; color: var(--muted); }

/* ── 푸터 ─────────────────────────────── */
.site-footer { background: var(--deep); border-top: 1px solid var(--line); color: var(--ink-2); padding: 44px 0; }
.footer-inner { display: grid; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.footer-brand img { width: 52px; }
.footer-brand em { font-style: normal; font-weight: 500; color: var(--muted); font-size:16px; margin-left: 4px; }
.footer-motto { margin: 0; color: var(--green-lit); font-size:17px; letter-spacing: .04em; font-weight: 600; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { color: var(--ink-2); font-size:17px; text-decoration: none; }
.footer-nav a:hover { color: var(--green-lit); text-decoration: underline; }
.copy { margin: 0; font-size:16px; color: var(--muted); }

/* ── 본문 페이지 (가이드·지원·개인정보) ── */
.doc { padding: 60px 0 92px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size:33px; font-weight: 800; color: var(--ink); }
.doc h2 { font-size:22px; font-weight: 700; color: var(--green-lit); margin: 36px 0 8px; }
.doc h3 { font-size:20px; font-weight: 700; color: var(--ink); margin: 26px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc b, .doc strong { color: var(--ink); }
.doc ul { padding-left: 20px; }
.doc .date { color: var(--muted); font-size:17px; margin-top: 6px; }
.doc .back { display: inline-block; margin-bottom: 26px; font-size:17px; text-decoration: none; }
.doc .card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow); margin-top: 18px;
}
.doc .card strong { color: var(--ink); }

/* ── 플레이 가이드 ────────────────────── */
.guide .wrap { max-width: 820px; }
.guide .play-here { margin: 32px 0; }
.guide h3 { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.guide ul { margin: 10px 0; }
.guide li { margin-bottom: 6px; }
.guide .warn {
  background: #fdf6e9; border-left: 3px solid var(--ember);
  border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 18px 0; color: #4a3b28;
}
.guide .warn b { color: var(--ember-ink); }

.tablewrap { overflow-x: auto; margin: 14px 0 6px; -webkit-overflow-scrolling: touch; }
.doc table {
  border-collapse: collapse; width: 100%; min-width: 320px;
  font-size:18px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.doc thead th { background: var(--green-soft); color: var(--green-lit); font-weight: 700; text-align: left; }
.doc th, .doc td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.doc tbody th { text-align: left; color: var(--ink); white-space: nowrap; width: 1%; }
.doc tbody tr:last-child th, .doc tbody tr:last-child td { border-bottom: 0; }

/* ── 플레이 자랑 게시판 ─────────────── */
.board .wrap { max-width: 720px; }

.writebox {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); margin: 18px 0 26px;
}
/* 사진 고르기 — 진짜 파일 상자는 숨기고 라벨을 단추처럼 보이게 합니다 */
.pickfile {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 999px; cursor: pointer;
  background: var(--green-soft); color: var(--green-lit);
  border: 1px solid var(--green-edge); font-weight: 700; font-size:18px;
}
.pickfile:hover { background: #dceccd; }
.pickfile input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.preview { margin-top: 14px; }
.preview img {
  width: 100%; max-height: 320px; object-fit: contain;
  border-radius: 12px; border: 1px solid var(--line); background: var(--deep);
}
.preview .rm {
  margin-top: 8px; background: none; border: 0; cursor: pointer;
  color: var(--muted); font-size:16px; text-decoration: underline; font-family: inherit;
}

.writebox textarea, .writebox input[type="text"], .writebox input[type="password"] {
  width: 100%; font-family: inherit; font-size:18px; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: 12px;
  padding: 11px 14px; margin-top: 12px; resize: vertical;
}
.writebox textarea:focus, .writebox input:focus { outline: 2px solid var(--green-edge); border-color: var(--green); }
.writebox .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.writebox .row input[type="text"] { flex: 2 1 150px; }
.writebox .row input[type="password"] { flex: 1 1 110px; }
.writebox .count { margin-top: 12px; font-size:16px; color: var(--muted); white-space: nowrap; }
.writebox .count b { color: var(--ink-2); }
.writebox .tip { margin: 12px 0 16px; font-size:16px; line-height: 1.6; color: var(--muted); }
.formmsg { margin: 10px 0 0; font-size:17px; color: var(--green-lit); min-height: 1.2em; }
.formmsg.bad { color: var(--ember-ink); }

/* ── 숫자 4자리를 가려서 받는 창 (askpin.js) ── */
.pinbox {
  display: none; position: fixed; inset: 0; z-index: 60;
  background: rgba(20, 20, 15, .45); align-items: center; justify-content: center; padding: 20px;
}
.pinbox.on { display: flex; }
.pin-card {
  width: min(360px, 100%); background: var(--panel);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 22px 22px 18px;
}
.pin-title { margin: 0 0 14px; font-size: 17px; line-height: 1.6; color: var(--ink); }
.pin-input {
  width: 100%; font-family: inherit; font-size: 22px; letter-spacing: .4em; text-align: center;
  color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 12px;
  padding: 11px 14px;
}
.pin-input:focus { outline: 2px solid var(--green-edge); border-color: var(--green); }
.pin-btns { display: flex; gap: 8px; justify-content: flex-end; margin: 16px 0 0; }
.pin-btns .btn { padding: 9px 18px; font-size: 16px; }

.postlist { display: grid; gap: 8px; }
/* ── 목록형 글 목록 — 제목 줄만 보이고 누르면 펼쳐진다 (2026-09-16) ── */
.post .row-head {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 13px 16px; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 17px; color: var(--ink); text-align: left;
}
.post .row-head:hover { background: var(--panel-2); }
.post .row-head .ttl {
  flex: 1 1 auto; min-width: 0; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.post .row-head .pic { flex: none; font-size: 14px; }
.post .row-head .by { flex: none; color: var(--ink-2); font-size: 15px; }
.post .row-head .ago { flex: none; color: var(--muted); font-size: 14px; }
.post.open .row-head { border-bottom: 1px solid var(--line); }
.post .row-body .byline {
  display: none;                                        /* 넓은 화면은 제목 줄에 이미 글쓴이가 있다 */
  margin: 0; padding: 13px 16px 0;
  color: var(--ink-2); font-size: 15px; font-weight: 700;
}
.post .row-body .text { padding-top: 14px; }
.post .rowfoot { margin: 0; padding: 0 16px 12px; text-align: right; }
.post .rowfoot .del { margin: 0; }
@media (max-width: 560px) {
  .post .row-head { gap: 7px; padding: 12px 13px; font-size: 16px; }
  .post .row-head .by { display: none; }     /* 좁은 화면에서는 제목이 먼저다 — 대신 펼치면 아래에 나온다 */
  .post .row-body .byline { display: block; }
  .post .row-body .byline + .text { padding-top: 6px; }
}
.post {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.post .shot { width: 100%; max-height: 480px; object-fit: cover; display: block; background: var(--deep); }
.post .meta {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px 0; font-size:17px; color: var(--ink-2);
}
.post .meta b { font-weight: 700; color: var(--ink); }
.post .ago { color: var(--muted); font-size:16px; }
.post .del {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  color: var(--muted); font-size:16px; font-family: inherit; text-decoration: underline;
}
.post .del:hover { color: var(--ember-ink); }
.post .text {
  margin: 8px 0 0; padding: 0 16px 16px;
  font-size:18px; line-height: 1.7; color: var(--ink-2);
  white-space: pre-wrap; word-break: break-word;
}
/* 붙여넣은 주소 — 눌리지 않는 그냥 글씨입니다 (밑줄·취소선 없이 본문과 같게) */
.deadlink { color: inherit; text-decoration: none; }
.board .loading { color: var(--muted); font-size:17px; text-align: center; padding: 26px 0; }
#moreBtn { display: block; margin: 18px auto 0; }


/* 푸터·본문의 이메일 단추 — 링크처럼 보이게 (주소는 눌러야 나옵니다) */
.mailbtn {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: var(--green-lit); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.mailbtn:hover { color: var(--ember-ink); }
.footer-nav .mailbtn { color: var(--ink-2); font-size:17px; text-decoration: none; }
.footer-nav .mailbtn:hover { color: var(--green-lit); text-decoration: underline; }


/* 개발자 한마디 — 스튜디오 바로 아래, 편지처럼 읽히게 */
.devnote p { margin: 0 0 16px; max-width: 720px; font-size:16.8px; line-height: 1.85; color: var(--ink-2); }
.devnote p:last-child { margin-bottom: 0; }


/* 좁은 화면에서만 줄을 바꾸는 자리 (넓은 화면에서는 그냥 이어집니다) */
.br-mob { display: none; }
@media (max-width: 720px) { .br-mob { display: inline; } }

/* ── 반응형 ───────────────────────────── */
@media (max-width: 860px) {
  .hero-inner { padding: 76px 0 120px; }
  .moon { top: 30px; left: auto; right: 7%; margin-left: 0; width: 54px; height: 54px; }
  .studio { grid-template-columns: 1fr; }
  .studio-mark { display: none; }
  .shots, .shots-5 { grid-template-columns: repeat(2, 1fr); }
  .cast { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cast li { padding: 14px 12px 18px; }
  .cast-art { height: 132px; }
  /* 두 칸으로 접히면 다섯 번째가 혼자 남습니다 — 가운데로 */
  .shots-5 > figure:last-child {
    grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px);
  }
  .section { padding: 66px 0; }
  .game { padding: 22px; }
  .teaser { padding: 40px 22px; }
  /* 좁은 폰에서 영문 제목이 두 줄로 쪼개지지 않게 자간을 좁힙니다 */
  .teaser-en { font-size:15px; letter-spacing: .16em; text-indent: .16em; }
}

@media (max-width: 720px) {
  /* 영문 메뉴 넷은 로고와 한 줄에 못 들어갑니다 — 아래로 접어 내립니다 */
  .header-inner {
    flex-wrap: wrap; justify-content: center;
    gap: 2px; min-height: 0; padding: 10px 0 8px;
  }
  .brand img { width: 54px; }
  .nav { width: 100%; justify-content: center; gap: 0; }
  .nav a { padding: 6px 9px; font-size:16px; }
}

@media (max-width: 520px) {
  .game-head { gap: 14px; }
  .game-icon { width: 66px; height: 66px; border-radius: 16px; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
  .btn:hover { transform: none; }
}

/* 준비 중인 앱 목록 — APPS 섹션 아래쪽 */
.soonbox { text-align: left; }
.soonbox .soon-head { font-size:18px; font-weight: 800; color: var(--muted); letter-spacing: .04em; }
.soon { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.soon li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  padding: 14px 18px; border: 1px dashed var(--line-2); border-radius: 12px;
  background: var(--panel-2); color: var(--ink-2);
}
.soon b { font-size:19px; color: var(--ink); }
.soon span { font-size:14.8px; color: var(--muted); }

/* RELEASED 안의 작은 탭 — 게임을 하나씩 골라 본다 */
.gtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.gtab {
  font: inherit; font-size:18px; font-weight: 700; color: var(--ink-2);
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 11px 20px; cursor: pointer; line-height: 1.2;
  transition: background .15s, color .15s, border-color .15s;
}
.gtab:hover { border-color: var(--green-edge); color: var(--green-lit); }
.gtab[aria-selected="true"] {
  background: var(--green-soft); color: var(--green-lit); border-color: var(--green-edge);
}
.gtab:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.gpanel[hidden] { display: none; }
@media (max-width: 560px) {
  .gtabs { gap: 6px; }
  .gtab { font-size:17px; padding: 10px 15px; }
}

/* 작품 카드 그리드 — 작품이 몇 개로 늘어도 이 한 덩이만 길어진다 */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px;
         grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { max-width: 560px;   /* 한 줄에 카드가 하나뿐일 때 지나치게 넓어지지 않게 */
        background: var(--panel); border: 1px solid var(--line);
        border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
        display: flex; flex-direction: column; }
.card-shot { display: block; background: var(--panel-2); }
.card-shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size:25px; font-weight: 800; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--green-lit); }
.card-badge { display: inline-block; align-self: flex-start; margin: 9px 0 0;
  background: var(--green-soft); color: var(--green-lit); border: 1px solid var(--green-edge);
  padding: 4px 12px; border-radius: 999px; font-size:16px; font-weight: 700; }
.card-sub { margin: 9px 0 0; color: var(--muted); font-size:17px; }
.card-line { margin: 12px 0 0; color: var(--ink-2); font-size:15.8px; line-height: 1.65; word-break: keep-all; }
.card-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 20px; }
.card-cta .btn { font-size:18px; padding: 11px 20px; }

/* 상세 페이지 위쪽 되돌아가기 */
.backlink { display: inline-block; margin: 0 0 26px; font-size:18px; font-weight: 700;
            color: var(--green-lit); text-decoration: none; }
.backlink:hover { text-decoration: underline; }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; gap: 18px; } }

/* 아직 안 나온 것 — 사진 자리에 COMING SOON */
.card-soon { display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 10; background: var(--panel-2);
  border-bottom: 1px dashed var(--line-2); }
.card-soon span { font-size:18px; font-weight: 800; letter-spacing: .3em;
  color: var(--muted); text-indent: .3em; }
.card-badge-soon { background: var(--panel-2); color: var(--muted); border-color: var(--line-2); }

/* ── 한 섹션 안의 작은 제목 — 완성작 / 미니게임 ── */
.subhead { display: flex; align-items: baseline; gap: 12px; margin: 56px 0 4px; }
.subhead h3 { font-size:22px; font-weight: 800; color: var(--ink); }
.subhead .more { margin-left: auto; font-size:17px; font-weight: 700;
  color: var(--green-lit); text-decoration: none; white-space: nowrap; }
.subhead .more:hover { color: var(--ember-ink); text-decoration: underline; }
.subhead-note { margin: 0 0 18px; color: var(--muted); font-size:14.8px; }

/* 미니게임 — 완성작 카드의 딱 절반 크기 (완성작이 2줄일 때 여기는 4줄) */
.mini-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); }
.mini-card > a {
  display: block; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.mini-card > a:hover {
  transform: translateY(-2px); border-color: var(--green); box-shadow: var(--shadow);
}
.mini-card img { display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 10; object-fit: cover; background: var(--panel-2); }
.mini-body { display: block; padding: 12px 14px 14px; }
.mini-card .mini-t { display: block; font-size:15.8px; font-weight: 800; color: var(--ink);
  line-height: 1.4; }
.mini-card .mini-s { display: block; margin-top: 4px; font-size:12.8px; color: var(--muted); }
/* 폰에서도 두 개씩 — 한 줄에 하나면 완성작만큼 커져서 '절반'이 아니게 됩니다 */
@media (max-width: 560px) {
  .mini-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mini-body { padding: 10px 11px 12px; }
  .mini-card .mini-t { font-size:17px; }
  .mini-card .mini-s { font-size:11.8px; }
}

/* 작품 상세 페이지의 예고 영상 */
.teaser-video { margin: 26px auto 0; max-width: 680px; }
.teaser-video video { display: block; width: 100%; aspect-ratio: 16/9;
  background: #0d0e10; border-radius: 12px; box-shadow: var(--shadow); }
.teaser-video figcaption { margin-top: 10px; text-align: center;
  font-size:13.8px; color: var(--muted); }


/* ══════════ 게시판 — 사진 크게 보기 ══════════ */
.post .shot.zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(18, 22, 18, .88);
}
.lightbox.on { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: 10px; box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.lb-close {
  position: absolute; top: 14px; right: 16px;
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff;
  font-size:22px; line-height: 1; cursor: pointer;
}
.lb-close:hover { background: rgba(255, 255, 255, .3); }

/* ══════════ 게시판 — 댓글 ══════════ */
.cmts { border-top: 1px solid var(--line); }
.cmt-toggle {
  display: block; width: 100%; padding: 11px 16px; text-align: left;
  background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size:17px; color: var(--ink-2);
}
.cmt-toggle:hover { background: var(--panel-2); }
.cmt-toggle i { font-style: normal; color: var(--muted); margin-left: 4px; }
.cmt-toggle.has { font-weight: 600; }
.cmt-toggle.has i { color: var(--green-lit); font-weight: 700; }
.cmt-toggle.open { font-weight: 700; }
.cmt-panel { padding: 4px 16px 16px; }
.cmt-note { margin: 6px 0 12px; font-size:17px; color: var(--muted); }

.cmt { padding: 10px 0; border-top: 1px dashed var(--line); }
.cmt:first-child { border-top: 0; }
.cmt-top { display: flex; align-items: center; gap: 8px; font-size:13.8px; }
.cmt-top b { font-weight: 700; color: var(--ink); }
.cmt-ago { color: var(--muted); font-size:12.8px; }
.cmt-del {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  color: var(--muted); font-size:12.8px; font-family: inherit; text-decoration: underline;
}
.cmt-del:hover { color: var(--ember-ink); }
.cmt-body {
  margin: 5px 0 0; font-size:14.8px; line-height: 1.65; color: var(--ink-2);
  white-space: pre-wrap; word-break: break-word;
}

.cmt-form { margin-top: 12px; }
.cmt-form textarea {
  width: 100%; box-sizing: border-box; resize: vertical;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size:14.8px; line-height: 1.6; color: var(--ink);
  background: var(--panel-2);
}
.cmt-line { display: flex; gap: 8px; margin-top: 8px; }
.cmt-line input {
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size:17px; color: var(--ink); background: var(--panel-2);
  min-width: 0;
}
.cmt-nick { flex: 1 1 auto; }
.cmt-pw { flex: 0 0 96px; }
.cmt-send { flex: 0 0 auto; padding: 9px 18px; font-size:17px; }
.cmt-msg { margin: 8px 0 0; font-size:13.8px; color: var(--green-lit); min-height: 1.1em; }
.cmt-msg.bad { color: var(--ember-ink); }

@media (max-width: 520px) {
  .cmt-line { flex-wrap: wrap; }
  .cmt-pw { flex: 0 0 92px; }
  .cmt-send { flex: 1 1 100%; }
}

/* 하단 태그 띠 */
.tags-strip { margin-bottom: 56px; }

/* ══════════════════════════════════════════════════════════════════════
   톤 레이어 (2026-08-21)

   앞의 규칙은 그대로 두고, 색·글꼴·여백만 여기서 덮어씁니다.
   이 파일 앞부분이 215군데에서 var(--이름) 을 쓰고 있어서,
   변수만 갈아끼우면 17개 페이지가 한꺼번에 바뀝니다.

   바꾼 것
     · 바탕 아이보리 -> 흰색
     · 글자에 색 안 씀 (초록·귤색 글씨 없앰). 색은 그림과 아주 작은 표시에만
     · 글꼴 주아체
     · 본문 폭 1080px -> 1760px
     · 모서리 16px -> 18px, 그림자는 옅게 하나만
   ══════════════════════════════════════════════════════════════════════ */

:root{
  --void:    #ffffff;
  --deep:    #fafaf8;
  --panel:   #ffffff;
  --panel-2: #f6f6f2;
  --line:    #e7e7e2;
  --line-2:  #d5d5cd;

  --ink:    #14140f;
  --ink-2:  #4c4c44;
  --muted:  #8d8d84;

  /* 글씨에는 안 씁니다. 바탕·테두리로만 남겨 둡니다 */
  --green:      #2f2f28;
  --green-lit:  #14140f;
  --green-soft: #f2f2ee;
  --green-edge: #e2e2db;

  --ember:     #14140f;
  --ember-ink: #14140f;
  --cold:      #14140f;
  --cold-ink:  #14140f;

  --radius: 18px;
  --shadow: 0 12px 30px rgba(30,30,20,.08);
  --font: "Jua", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic",
          system-ui, -apple-system, "Segoe UI", sans-serif;
}

body{ line-height:1.68; }
/* 주아체는 굵기가 하나뿐입니다. 굵기 대신 크기로 층을 만듭니다 */
h1,h2,h3,h4,b,strong,.btn,button{ font-weight:400; }

.wrap{ width:min(1760px, 100% - 64px); }
/* 글이 이어지는 페이지는 너무 넓으면 못 읽습니다. 읽는 폭은 따로 묶어 둡니다.
   대문의 카드 격자만 넓게 쓰고, 읽는 페이지는 980px 로 가둡니다 */
.game, .doc .wrap, .studio, .tablewrap, .talk{ max-width:980px; margin-inline:auto; }
.lede, .card-line, .game-tagline{ max-width:820px; }

/* ── 소감 한마디 — 미니게임에만 답니다 ────────────── */
.talk { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.talk-title {
  margin: 0; font-size: 14px; font-weight: 700;
  color: var(--green-lit); padding: 4px 0;
}
.talk-title::before { content: "💬 "; }
/* 화살표는 접는 표시가 아니라, 바로 밑의 바로가기를 가리키는 손짓입니다 */
.talk-title::after { content: " ▾"; color: var(--muted); font-weight: 400; }

/* 소감은 커뮤니티에서 받습니다 — 접는 칸 안의 바로가기 */
.talk-go { margin: 12px 0 0; }
.talk-go a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--ink); border: 1px solid var(--ink);
  color: #fff; font-size: 14px; font-weight: 700; text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.talk-go a:hover { background: #2c2c24; border-color: #2c2c24; color: #fff; }


a{ color:var(--ink); }
a:hover{ color:var(--ink); }

/* ── 머리표·꼬리표 ── */
.site-header{ background:var(--panel); border-bottom:1px solid var(--line); }
.nav a{ color:var(--muted); }
.nav a:hover{ color:var(--ink); }
.site-footer{ background:var(--deep); border-top:1px solid var(--line); }

/* ── 히어로 ── */
.hero-sky{ background:linear-gradient(180deg,#ffffff 0%, #fbfbf8 100%); }
.hero-inner{ padding:56px 0 40px; max-width:none; }
.hero h1{ color:var(--ink); font-size:clamp(41px,5vw,69px); }
.ridge{ height:120px; opacity:.5; }
.ridge-far{ fill:#eef0ea; } .ridge-mid{ fill:#e6e9e0; } .ridge-near{ fill:#dee2d6; }
.values li{ background:var(--panel); border:1px solid var(--line); box-shadow:none; }

/* ── 마디 ── */
.section{ padding:52px 0; }
.section-alt{ background:var(--deep); }
.section-title{ color:var(--ink); letter-spacing:.16em; }
.section-tag{ color:var(--muted); }

/* ── 카드 ── */
.card{
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:none; overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover{ transform:translateY(-3px); box-shadow:var(--shadow); border-color:var(--line-2); }
.card-shot img{ transition:transform .5s ease; }
.card:hover .card-shot img{ transform:scale(1.04); }
.card h3, .card h3 a{ color:var(--ink); }
.card-sub{ color:var(--muted); }
.card-line{ color:var(--ink-2); }
.card-badge{
  background:var(--green-soft); color:var(--ink-2);
  border:1px solid var(--line); border-radius:999px;
}
.mini-card a{ border:1px solid var(--line); border-radius:14px; background:var(--panel); }
.mini-card a:hover{ background:var(--panel-2); }
.mini-t{ color:var(--ink); }
.mini-s{ color:var(--muted); }

/* ── 단추 ── */
.btn, button{ border-radius:999px; }
.btn-primary{ background:var(--ink); color:#fff; border:1px solid var(--ink); box-shadow:none; }
.btn-primary:hover{ background:#2c2c24; color:#fff; }
.btn-ghost{ background:transparent; border:1px solid var(--line-2); color:var(--ink); box-shadow:none; }
.btn-ghost:hover{ background:var(--panel-2); color:var(--ink); }

/* ── 표·꼬리표 ── */
.spec dt{ color:var(--muted); }
.spec dd{ color:var(--ink-2); }
.state{ background:var(--green-soft); color:var(--ink-2); border:1px solid var(--line); }
.tags li{ background:var(--panel); border:1px solid var(--line); color:var(--muted); }
.footer-motto{ color:var(--muted); }
/* 푸터 줄은 링크든 단추든 글씨색을 하나로 맞춘다(사장님 2026-09-16 "글씨색을 통일하자") */
.footer-nav a, .footer-nav .mailbtn{ color:var(--muted); font-weight:inherit; }
.footer-nav a:hover, .footer-nav .mailbtn:hover{ color:var(--ink); }

@media (max-width:1180px){ .wrap{ width:min(1760px, 100% - 40px); } }
@media (max-width:760px){
  .wrap{ width:min(1760px, 100% - 24px); }
  .hero-inner{ padding:34px 0 26px; }
  .section{ padding:36px 0; }
}

/* 글자 3px 키움 */
body{ font-size:19px; }

/* ── 대문 첫 화면 ──
   로고 옆에 글 두 줄 + 안내 두 줄. 그 아래 바로 카드 여덟 칸. */
.header-inner{ display:flex; align-items:center; gap:26px; flex-wrap:wrap; }
.brand-copy{ line-height:1.25; text-align:center; }
/* 회사 이름을 머리에서 제일 크게. 검색이 브랜드를 알아보는 자리입니다 */
.brand-copy .brandname{
  margin:0; font-size:34px; font-weight:800; letter-spacing:.03em;
  color:var(--ink); line-height:1.1; white-space:nowrap;
}
.brand-copy .factory{ margin:3px 0 0; font-size:13px; letter-spacing:.12em; color:var(--muted); }
@media (max-width: 700px){
  .brand-copy .brandname{ font-size:25px; }
  .brand-copy .factory{ font-size:12px; }
}
.header-inner .values{ list-style:none; margin:0; padding:0; display:grid; gap:2px; }
.header-inner .values li{ background:none; border:0; padding:0; font-size:14px; color:var(--muted); line-height:1.45; }
.header-inner .values li span{ color:var(--ink-2); }
.header-inner .nav{ margin-left:auto; }

/* 카드가 머리표에 붙지 않게 내리고, 첫 화면을 채우도록 키를 키웁니다 */
.showcase{ padding:56px 0 56px; }
/* 대문 소개 문단 — 카드 그리드 아래에 온다 */
.showcase .lede{ margin:34px 0 0; }
.showcase .grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.mini{
  display:flex; flex-direction:column; overflow:hidden; position:relative;
  background:var(--panel); border:1px solid var(--line); border-radius:16px;
  text-decoration:none; color:inherit;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mini:hover{ transform:translateY(-3px); box-shadow:var(--shadow); border-color:var(--line-2); }
.mini .shot{ display:block; aspect-ratio:16/11; overflow:hidden; position:relative; }
.mini .shot img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.mini:hover .shot img{ transform:scale(1.05); }
.kind{
  position:absolute; left:10px; top:10px; font-size:13px; letter-spacing:.12em;
  padding:3px 10px; border-radius:999px;
  background:rgba(255,255,255,.88); color:var(--ink); border:1px solid rgba(0,0,0,.08);
  backdrop-filter:blur(6px);
}
/* 갓 공개한 게임 딱지 — make-cards.py 가 공개일 7일 안이면 붙이고 지나면 뗀다 */
.isnew{
  position:absolute; right:10px; top:10px; font-size:12px; font-weight:800; letter-spacing:.14em;
  padding:3px 10px; border-radius:999px;
  background:#e4572e; color:#fff; border:1px solid rgba(0,0,0,.06);
  box-shadow:0 2px 8px rgba(228,87,46,.35);
}
.mbody{ display:block; padding:13px 15px 15px; }
.mbody b{ display:block; font-size:19px; line-height:1.3; color:var(--ink); }
.mbody i{ display:block; font-style:normal; font-size:15px; margin-top:3px; color:var(--muted); }
/* 모바일에서는 '전체 보기' 카드가 맨 끝이라 한참 내려야 보인다.
   미니게임이 시작되는 자리에 한 줄짜리 링크를 하나 더 둔다(넓은 화면에서는 감춘다) */
.mini-jump{ display:none; }
@media (max-width:760px){
  .mini-jump{ display:flex; align-items:center; justify-content:space-between;
    padding:13px 16px; border-radius:14px; text-decoration:none;
    background:var(--deep); border:1px dashed var(--line);
    font-weight:800; font-size:15px; color:var(--ink); }
  .mini-jump:active{ transform:translateY(1px); }
}
.more-card{ align-items:center; justify-content:center; text-align:center; border-style:dashed; background:var(--deep); }
.more-card .mc{ display:block; padding:26px; }
.more-card .mc b{ display:block; font-size:21px; line-height:1.4; color:var(--ink); }
.more-card .mc i{ display:block; font-style:normal; font-size:15px; margin-top:8px; color:var(--muted); }

/* 화면 폭에 따라 네 칸 → 세 칸 → 두 칸.
   ⚠ 예전에는 1180px 아래가 곧바로 두 칸이었다. 그래서 '굳이 설치하기'로 띄운 창(1000~1150px)에서
   카드가 손바닥만큼 커져 보였다(사장님 2026-09-16). 가운데 단계를 넣는다 */
@media (max-width:1180px){ .showcase .grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:900px){ .showcase .grid{ grid-template-columns:repeat(2,1fr); } }
/* 2026-08-31 — 폰에서 카드가 한 칸씩만 나와 화면 하나에 게임 하나만 보였다.
   대문에 들어온 사람이 게임까지 못 가고 나가는 원인이라 두 칸으로 바꾼다.
   여백을 먼저 줄이고 글씨는 칸에 들어갈 만큼만 줄였다.
   ⚠ 761px 이상(PC)은 손대지 않는다 — 네 칸 그대로다 */
@media (max-width:760px){
  .showcase{ padding:26px 0 42px; }
  .showcase .grid{ grid-template-columns:repeat(2,1fr); gap:12px; }
  .showcase .lede{ margin:26px 0 0; font-size:14px; line-height:1.6; }
  .mini{ border-radius:14px; }
  .mbody{ padding:10px 11px 12px; }
  .mbody b{ font-size:16px; line-height:1.25; }
  .mbody i{ font-size:12px; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }   /* 설명은 한 줄. 길면 … */
  .kind{ left:7px; top:7px; font-size:11px; padding:2px 8px; }
  .isnew{ right:7px; top:7px; font-size:10.5px; padding:2px 8px; }
  .showcase .grid a.mini:first-child .shot::after{ right:7px; top:7px; font-size:10.5px; padding:2px 8px; }
  .more-card .mc{ padding:16px 12px; }
  .more-card .mc b{ font-size:16px; }
  .more-card .mc i{ font-size:12.5px; margin-top:6px; }
  .mini-jump{ grid-column:1 / -1; }
  .header-inner{ gap:14px; }
  .header-inner .values{ display:none; }
}

/* 목록 페이지(/games/ /apps/) 머리 */
.list-head{ margin:0 0 22px; }
.list-head h1{ font-size:34px; letter-spacing:.02em; color:var(--ink); }
/* 폰에서는 제목이 한 줄에 들어가게 화면 폭에 맞춰 줄인다 (370px 폰에서 약 26px) */
@media (max-width:560px){ .list-head h1{ font-size:clamp(20px, 7vw, 34px); letter-spacing:0; } }
.list-head p{ margin:6px 0 0; font-size:17px; color:var(--muted); }
.more-card .mc i + i{ margin-top:10px; font-size:13px; letter-spacing:.1em; color:var(--muted); }

/* 미니게임 설명 페이지 */
.game-page{ max-width:900px; margin-inline:auto; }
.game-page .backlink{ display:inline-block; font-size:15px; color:var(--muted); margin-bottom:18px; }
.game-page .backlink:hover{ color:var(--ink); }
.gp-shot{ border-radius:18px; overflow:hidden; border:1px solid var(--line); }
.gp-shot img{ width:100%; height:auto; display:block; }
.game-page h1{ font-size:34px; margin:22px 0 0; color:var(--ink); }
.gp-line{ margin:12px 0 0; font-size:18px; line-height:1.75; color:var(--ink-2); }
.gp-cta{ margin:22px 0 0; }
.game-page .spec{ margin-top:26px; }

/* 작품 제목 밑에 붙는 부제 (오름길 '고장난 물리엔진' 처럼) */
.gp-sub{ display:block; margin-top:6px; font-size:15px; font-weight:700; color:var(--muted); letter-spacing:.02em; }
.js-install[hidden] { display: none; }
.js-install { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; vertical-align: middle; }
.install-ico { height: 18px; width: auto; display: block; }
/* 게임 소개 페이지 — 본문·이런 분께·자주 묻는 질문 (2026-09-02) */
.gp-body{ margin:12px 0 0; font-size:16px; line-height:1.8; color:var(--ink-2); }
.gp-for{ margin:18px 0 0; font-size:15px; line-height:1.7; color:var(--muted); }
.faq{ margin-top:26px; }
.faq h2{ font-size:18px; margin:0 0 8px; }
.faq details{ border-top:1px solid var(--line); padding:10px 0; }
.faq details:last-child{ border-bottom:1px solid var(--line); }
.faq summary{ cursor:pointer; font-weight:700; font-size:15px; }
.faq details p{ margin:8px 0 0; font-size:15px; line-height:1.7; color:var(--ink-2); }
/* 플래시게임 모음 — 이 페이지에만 있는 글 (2026-09-07 빙 입구 페이지 판정 대응) */
.flash-note{ margin-top:30px; }
.flash-note h2{ font-size:18px; margin:22px 0 8px; }
.flash-note h2:first-child{ margin-top:0; }
.flash-note p{ margin:0; font-size:15px; line-height:1.8; color:var(--ink-2); }
.flash-lines{ list-style:none; margin:0; padding:0; }
.flash-lines li{ display:flex; align-items:center; gap:14px; border-top:1px solid var(--line); padding:9px 0; font-size:15px; line-height:1.6; color:var(--ink-2); }
.flash-lines li:last-child{ border-bottom:1px solid var(--line); }
.flash-lines a{ display:flex; align-items:center; gap:12px; flex:0 0 auto; font-weight:700; color:var(--ink); }
.flash-lines img{ width:96px; height:60px; object-fit:cover; border-radius:8px; border:1px solid var(--line); }
.flash-lines b{ min-width:120px; }
@media (max-width:640px){
  .flash-lines li{ flex-wrap:wrap; gap:8px 10px; }
  .flash-lines b{ min-width:0; }
  .flash-lines li > span{ flex:1 1 100%; font-size:14px; }
}
/* NEW 표시는 목록 맨 앞 카드 두 장에 자동으로 붙는다 (2026-09-03 "어제 올린거랑 같이 NEW띄우자") */
/* 미니게임 아카이브 격자에는 NEW 를 붙이지 않는다 — 옛 실험작 목록이다(2026-09-16) */
.showcase .grid.nonew a.mini .shot::after{ content:none !important; }
.showcase .grid a.mini:nth-child(-n+2) .shot::after{
  content:'NEW'; position:absolute; right:10px; top:10px; font-size:12px; font-weight:800; letter-spacing:.14em;
  padding:3px 10px; border-radius:999px; background:#e4572e; color:#fff; border:1px solid rgba(0,0,0,.06);
  box-shadow:0 2px 8px rgba(228,87,46,.35);
}

/* ── 다른 게임 플레이 (make-related.py 가 모든 소개 페이지에 넣는다) ── */
.related { padding: 8px 0 40px; }
.related h2 { font-size: 24px; font-weight: 800; color: var(--ink); margin: 0 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.related-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: transform .12s, box-shadow .12s, border-color .12s; }
.related-list a:hover, .related-list a:focus-visible { transform: translateY(-2px); border-color: var(--green); box-shadow: 0 6px 16px rgba(0,0,0,.10); }
.related-list img, .related-noimg { flex: none; width: 96px; height: 60px; object-fit: cover; border-radius: 8px; background: var(--deep); display: block; }
.related-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.related-txt b { font-size: 17px; line-height: 1.25; color: var(--green-lit); text-decoration: underline; text-decoration-color: rgba(46,107,57,.35); text-underline-offset: 3px; }
.related-txt span { font-size: 14px; color: var(--muted); }
.related-list em { flex: none; font-style: normal; font-size: 13px; font-weight: 800; letter-spacing: .5px; color: #fff; background: var(--green); padding: 6px 10px; border-radius: 999px; }
.related-list a:hover em { background: var(--green-lit); }
.related-more { margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.related-more a { color: var(--ink-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.related-more a:hover { color: var(--green-lit); }

/* ── 상단 메뉴 SEARCH (search.js) — GAMES 앞 메뉴를 누르면 머리표 아래로 검색칸이 열린다 (사장님 2026-09-30) ── */
.header-inner{ position:relative; }
.nav a.navsearch.on{ background:var(--green-soft); color:var(--green-lit); }
/* SEARCH 는 글자 대신 돋보기 그림(PC·폰 모두, 사장님 2026-09-30 "피시화면에서도 돋보기표시로"). 글자는 읽어 주기용으로 남긴다 */
.nav a.navsearch{ font-size:0; display:flex; align-items:center; align-self:center; }
.nav a.navsearch::before{
  content:""; width:24px; height:24px; display:block;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8d84' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") center/contain no-repeat;
}
.gsearch{
  position:absolute; left:auto; right:0; top:calc(100% + 6px); z-index:40;
  width:min(440px, 100%); background:#fff; border:1px solid #e0dccf; border-radius:16px;
  box-shadow:0 14px 36px rgba(30,30,20,.16); padding:10px; box-sizing:border-box;
}
.gsearch[hidden]{ display:none; }
.gs-row{ display:flex; align-items:center; gap:8px; border:2px solid #cfd8c4; border-radius:999px; padding:0 6px 0 14px; background:#fff; }
.gs-row:focus-within{ border-color:#4e8f4a; }
.gs-ico{ width:20px; height:20px; flex:none; fill:none; stroke:#7d8a76; stroke-width:2.4; stroke-linecap:round; }
.gs-row input{
  flex:1; min-width:0; border:0; outline:0; background:transparent;
  font:inherit; font-size:18px; color:#1b2a1f; padding:11px 0;
}
.gs-row input::-webkit-search-cancel-button{ display:none; }
.gs-x{ flex:none; width:34px; height:34px; border:0; border-radius:50%; background:transparent; color:#7d8a76; font-size:26px; line-height:1; cursor:pointer; }
.gs-x:hover{ background:#f1efe7; color:#1b2a1f; }
.gs-list{ max-height:min(60vh, 460px); overflow-y:auto; }
.gs-list:not(:empty){ margin-top:8px; }
.gs-item{ display:flex; align-items:center; gap:12px; padding:7px 8px; border-radius:10px; text-decoration:none; color:#1b2a1f; }
.gs-item:hover, .gs-item.on{ background:#eef4e6; color:#1b2a1f; }
.gs-item img{ width:64px; height:40px; flex:none; object-fit:cover; border-radius:6px; background:#f1efe7; }
.gs-item span{ min-width:0; display:flex; flex-direction:column; }
.gs-item b{ font-size:17px; line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gs-item b em{ font-style:normal; font-weight:inherit; color:#7d8a76; white-space:nowrap; }
/* 한글 이름이 붙은 제목은 잘라 버리지 않고, 한글 이름째 다음 줄로 내린다 */
.gs-item b:has(em){ white-space:normal; }
.gs-item i{ font-style:normal; font-size:13px; color:#7d8a76; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gs-none{ margin:4px 0 2px; padding:10px 8px; font-size:16px; color:#7d8a76; }
@media (max-width:720px){
  .gsearch{ left:0 !important; right:0; width:auto; top:100% !important; }
  .nav a.navsearch{ padding:6px 8px; }
  .nav a.navsearch::before{ width:21px; height:21px; transform:scaleX(1.1765); }
  /* 폰 메뉴 글자는 높이는 그대로, 장평만 85% (사장님 2026-09-30 "글씨를 장평으로 줄여봐").
     Jua 는 폭 축이 없어서 메뉴 줄을 85% 로 눌러 담는다 — 넓게 깔고(100%/.85) 가운데 기준으로 눌러 제자리 폭에 맞춘다.
     돋보기 그림만 위에서 1/.85 로 되돌려 동그랗게 둔다 */
  .header-inner .nav{
    width:calc(100% / .85); margin-inline:calc((100% - 100% / .85) / 2);
    transform:scaleX(.85); transform-origin:50% 50%;
  }
}
@media (max-width:380px){
  .nav a{ padding-left:7px; padding-right:7px; }
}
