:root {
  --bg: #fdf6ec;
  --ink: #4a3f35;
  --sub: #8a7d70;
  --card: #fffaf3;
  --line: #e8dccb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.75;
  padding: 24px 16px 48px;
}
.doc { max-width: 720px; margin: 0 auto; }
.back { display: inline-block; margin-bottom: 16px; color: var(--sub); text-decoration: none; font-weight: bold; }
.back:hover { color: var(--ink); }
h1 { font-size: 28px; margin: 0 0 12px; }
h2 { font-size: 20px; margin: 32px 0 8px; }
.lead { font-size: 17px; }
.updated { color: var(--sub); font-size: 14px; }
a { color: #2f6f87; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; font-size: 15px; }
th, td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: #f3e8d8; }
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.cards li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.cards p { margin: 6px 0 0; font-size: 15px; }
.tag { margin-left: 8px; font-size: 11px; font-weight: bold; padding: 1px 8px; border-radius: 99px; }
.tag.herb { background: #e2f6e8; color: #3f7a4f; }
.tag.meat { background: #fde0d3; color: #a24f33; }
.tag.space { background: #e6e0fa; color: #5b4a9e; }
.tag.time { background: #f1e6fb; color: #7a4fa0; }

/* 게임 이야기 (about.html) */
.story { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.story li { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px 18px; box-shadow: 0 4px 0 #efe4d4; }
.story li:nth-child(even) { flex-direction: row-reverse; text-align: right; }
.story .pic { flex: none; width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 32px; }
.story p { margin: 0; font-size: 16px; }
.story small { color: var(--sub); }
.story li.last { background: #fff4d6; border-color: #f4d58d; }
.story-end { margin: 20px 0 0; text-align: center; font-size: 18px; font-weight: bold; }
.story-go { text-align: center; margin: 16px 0 8px; }
.go { display: inline-block; padding: 10px 22px; border-radius: 99px; background: #e07a5f; color: #fff; font-weight: bold; text-decoration: none; box-shadow: 0 4px 0 #c9654b; }
.go:hover { transform: translateY(-1px); }
@media (max-width: 480px) {
  .story li, .story li:nth-child(even) { flex-direction: column; text-align: center; gap: 8px; }
}

/* 업데이트 소식 (updates.html) */
.news { list-style: none; padding: 0; margin: 24px 0 0; position: relative; }
.news::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; border-left: 3px dashed var(--line); }
.news > li { position: relative; padding-left: 60px; margin-bottom: 20px; }
.news .badge { position: absolute; left: 0; top: 0; width: 45px; height: 45px; border-radius: 50%; background: var(--card); border: 3px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.news .card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; box-shadow: 0 4px 0 #efe4d4; }
.news time { font-size: 13px; font-weight: bold; color: var(--sub); }
.news .new { margin-left: 6px; font-size: 11px; font-weight: bold; padding: 1px 8px; border-radius: 99px; background: #e07a5f; color: #fff; }
.news h2 { margin: 2px 0 6px; font-size: 18px; }
.news ul { margin: 0; padding-left: 20px; font-size: 15px; }
.news .sign { margin: 8px 0 0; font-size: 13px; color: var(--sub); }
.links { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--sub); font-size: 14px; text-align: center; }
