/* 아람커뮤니케이션 공통 스타일 */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #efede6;
  --text: #1c1b19;
  --muted: #6b6860;
  --line: #e2dfd6;
  --brand: #e8572a;
  --brand-ink: #ffffff;
  --accent: #2a6fe8;
  --good: #1f9d55;
  --bad: #d64545;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --font: "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141412;
    --surface: #1e1d1a;
    --surface-2: #2a2925;
    --text: #f2f0ea;
    --muted: #a19d93;
    --line: #34322d;
    --brand: #ff6b3d;
    --accent: #5b92ff;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* 상단 바 */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; display: block; flex: none; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer;
  text-decoration: none; font-weight: 600; font-size: 15px;
  transition: transform .1s, background .15s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.05); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* 앱 페이지 공통 */
.app-main { padding: 24px 16px 40px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.app-title { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 0; text-align: center; }
.app-desc { color: var(--muted); margin: 0; text-align: center; font-size: 15px; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; width: 100%; max-width: 480px;
}
.stats { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 16px; text-align: center; min-width: 88px; }
.stat b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }
.row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hint { color: var(--muted); font-size: 13px; text-align: center; }

.logo, .btn { white-space: nowrap; }
.footer a { color: inherit; }

/* 앱 안내 글 */
.guide { max-width: 760px; margin: 40px auto 0; padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.guide h2 { font-size: 20px; letter-spacing: -.02em; margin: 0 0 10px; }
.guide h3 { font-size: 16px; margin: 24px 0 8px; }
.guide p, .guide li, .guide dd { color: var(--muted); font-size: 15px; line-height: 1.75; }
.guide p { margin: 0; }
.guide ol, .guide ul { margin: 0; padding-left: 22px; }
.guide li + li { margin-top: 4px; }
.guide dl { margin: 0; }
.guide dt { font-weight: 700; font-size: 15px; margin-top: 14px; }
.guide dt::before { content: "Q. "; color: var(--brand); }
.guide .more { margin-top: 14px; }
.guide .more h4 { font-size: 15px; margin: 18px 0 6px; color: var(--text); }
.guide .more p + p { margin-top: 8px; }
.guide .more ul { margin-top: 6px; }
.guide .tbl { overflow-x: auto; margin: 8px 0 4px; }
.guide table { width: 100%; border-collapse: collapse; font-size: 14px; }
.guide th, .guide td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.guide th { color: var(--text); background: var(--surface-2); font-weight: 700; white-space: nowrap; }
.guide td { color: var(--muted); }
.guide .g-note { font-size: 13px; margin-top: 6px; }
.guide dd { margin: 4px 0 0; }
@media (max-width: 640px) { .guide { padding: 22px 18px; } }

/* 광고 영역 (광고가 없으면 아무것도 그리지 않음) */
.ad { margin: 32px auto 0; max-width: 728px; text-align: center; }
.ad-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; letter-spacing: .05em; }
.ad ins { display: block; margin: 0 auto; }

@media (max-width: 640px) {
  .nav { display: none; }
}
@media (max-width: 420px) {
  .logo { font-size: 15px; gap: 8px; }
  .logo-mark { width: 28px; height: 28px; }
  .topbar .btn { padding: 7px 12px; font-size: 14px; }
}

/* 앱 페이지 아래 '다른 앱' 링크 */
.related { max-width: 760px; margin: 28px auto 0; }
.related h2 { font-size: 20px; letter-spacing: -.02em; margin: 0 0 12px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.related-grid a { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: transform .15s; }
.related-grid a:hover { transform: translateY(-2px); }
.related-grid .ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; }
.related-grid b { font-size: 15px; }
.related-grid small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-all { text-align: right; margin: 10px 0 0; font-size: 14px; }

/* 문서 페이지 (개인정보처리방침·이용약관·회사 정보) */
.policy { max-width: 760px; margin: 0 auto; padding: 32px 16px 0; }
.policy h1 { font-size: 28px; letter-spacing: -.03em; margin: 0 0 8px; }
.policy h2 { font-size: 18px; margin: 28px 0 8px; }
.policy p, .policy li { color: var(--muted); font-size: 15px; }
.policy a { color: var(--accent); }
.policy table { width: 100%; border-collapse: collapse; font-size: 15px; }
.policy th, .policy td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.policy th { width: 130px; color: var(--muted); font-weight: 600; }
.policy td { color: var(--muted); }
.policy .faq dt { font-weight: 700; margin-top: 12px; }
.policy .faq dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.footer .biz { display: block; width: 100%; font-size: 12px; opacity: .8; }

/* 앱 카드 (홈·모음 페이지) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.app-card {
  display: flex; flex-direction: column; gap: 12px; padding: 20px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .15s, box-shadow .15s;
}
.app-card[hidden] { display: none; }
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.app-card .icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; }
.app-card h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.app-card p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.app-card .tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; align-self: flex-start; }

/* 공유 */
.share-bar { max-width: 760px; margin: 28px auto 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.share-bar::before { content: "재미있었다면 친구에게도 알려 주세요 🙌"; font-weight: 700; font-size: 15px; }
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-result { width: 100%; font-size: 14px; color: var(--muted); order: 3; }
.share-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 12px; font-size: 14px; z-index: 50; box-shadow: var(--shadow); }

.share-panel { position: fixed; inset: 0; z-index: 60; background: rgba(10, 12, 20, .55); display: grid; place-items: center; padding: 16px; }
.sp-card { width: min(100%, 420px); background: var(--surface); color: var(--text); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.sp-head { display: flex; justify-content: space-between; align-items: center; }
.sp-head b { font-size: 18px; }
.sp-x { border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.sp-x:hover { background: var(--surface-2); }
.sp-text { width: 100%; resize: none; font: inherit; font-size: 14px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.sp-sns { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-sns .btn { flex: 1 1 30%; text-align: center; padding: 8px 6px; font-size: 14px; text-decoration: none; }
.sp-tip { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }

/* 좁은 화면: 상단 '목록' 버튼은 화살표만 (이야기·음악·전체화면 버튼과 함께 한 줄에 들어가게) */
@media (max-width: 560px) { .topbar .btn.back .t { display: none; } .topbar .btn.back { padding: 7px 12px; } }

/* 안내 로봇 아리 패널 (리버시·오목) */
.ari { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; text-align: center; position: sticky; top: 72px; }
.ari .face { width: 120px; height: 120px; margin: 0 auto; transition: transform .2s; }
.ari .face.bounce { animation: ari-bounce .5s; }
@keyframes ari-bounce { 40% { transform: translateY(-10px) rotate(-4deg); } }
.ari .who { font-weight: 900; margin-top: 4px; }
.ari .lv { font-size: 12px; color: var(--muted); }
.bubble { position: relative; margin-top: 12px; background: var(--surface-2); border-radius: 14px; padding: 10px 12px; font-size: 14px; min-height: 64px; text-align: left; line-height: 1.55; }
.bubble::before { content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); border: 8px solid transparent; border-top: 0; border-bottom-color: var(--surface-2); }
@media (max-width: 760px) {
    .ari { position: static; display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: center; text-align: left; padding: 10px; order: -1; }
    .ari .face { width: 76px; height: 76px; }
    .ari .who, .ari .lv { grid-column: 1; }
    .ari .meta { grid-column: 1; text-align: center; }
    .bubble { margin-top: 0; grid-column: 2; grid-row: 1 / span 2; min-height: 0; }
    .bubble::before { top: 50%; left: -8px; transform: translateY(-50%); border: 8px solid transparent; border-left: 0; border-right-color: var(--surface-2); }
}

/* 게임 '기본 규칙' 카드 (제목 아래) */
.rules-card { width: min(96vw, 720px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); text-align: left; }
.rules-card summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.rules-card summary::-webkit-details-marker { display: none; }
.rules-card .rc-t { flex: none; font-weight: 900; font-size: 14px; color: var(--brand); }
.rules-card .rc-goal { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; }
.rules-card .rc-more::after { content: "펼치기 ▾"; font-size: 12px; color: var(--muted); white-space: nowrap; }
.rules-card[open] .rc-more::after { content: "접기 ▴"; }
.rules-card:not([open]) .rc-goal { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rules-card .rc-body { padding: 0 16px 14px; border-top: 1px dashed var(--line); }
.rules-card .rc-list { margin: 10px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.65; }
.rules-card .rc-list li + li { margin-top: 3px; }
.rules-card .rc-table-title { margin: 12px 0 6px; font-weight: 800; font-size: 13px; color: var(--muted); }
.rules-card .rc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rules-card .rc-table th { text-align: left; white-space: nowrap; padding: 6px 10px 6px 0; vertical-align: top; font-weight: 800; }
.rules-card .rc-table td { padding: 6px 0; color: var(--text); }
.rules-card .rc-table tr + tr th, .rules-card .rc-table tr + tr td { border-top: 1px solid var(--line); }
.rules-card .rc-keys { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.rules-card .rc-more-link { margin: 6px 0 0; font-size: 13px; }
.fs-root.on .rules-card { display: none; }
@media (max-width: 560px) { .rules-card summary { flex-wrap: wrap; } .rules-card .rc-goal { flex-basis: 100%; order: 3; } .rules-card .rc-more { margin-left: auto; } }
.rules-open { display: block; width: 100%; margin: 0 0 10px; padding: 8px; border: 1px dashed var(--brand); border-radius: 10px; background: color-mix(in srgb, var(--brand) 8%, var(--surface)); color: var(--brand); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.rules-modal { position: fixed; inset: 0; z-index: 5000; background: rgba(10, 12, 24, .6); display: grid; place-items: center; padding: 14px; }
.rules-modal .rm-card { width: min(100%, 560px); max-height: 92vh; overflow: auto; background: var(--surface); color: var(--text); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); text-align: left; }
.rules-modal .rm-head { display: flex; justify-content: space-between; align-items: center; }
.rules-modal .rm-head b { font-size: 18px; color: var(--brand); }
.rules-modal .rm-x { border: 0; background: none; font-size: 18px; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.rules-modal .rm-goal { font-weight: 800; margin: 6px 0 0; }
.rules-modal .rc-body { padding: 0; border: 0; }
.rules-modal .rc-list { margin: 10px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.65; }
.rules-modal .rc-table-title { margin: 12px 0 6px; font-weight: 800; font-size: 13px; color: var(--muted); }
.rules-modal .rc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rules-modal .rc-table th { text-align: left; white-space: nowrap; padding: 6px 10px 6px 0; vertical-align: top; }
.rules-modal .rc-table td { padding: 6px 0; }
.rules-modal .rc-table tr + tr th, .rules-modal .rc-table tr + tr td { border-top: 1px solid var(--line); }
.rules-modal .rc-keys { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.rules-modal .rc-more-link { margin: 6px 0 0; font-size: 13px; }
.rules-modal .rm-ok { width: 100%; margin-top: 12px; padding: 10px; }

/* 즐겨찾기(핀) */
.app-card-wrap { position: relative; display: flex; }
.app-card-wrap > .app-card { flex: 1; }
.pin-btn { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 15px; cursor: pointer; filter: grayscale(1); opacity: .45; transition: opacity .15s, transform .15s, filter .15s; }
.pin-btn:hover { opacity: 1; filter: none; transform: scale(1.08); }
.app-card-wrap.pinned .pin-btn { filter: none; opacity: 1; background: #fff4c2; border-color: #f5c242; transform: rotate(-20deg); }
.app-card-wrap.pinned .app-card { border-color: #f5c242; box-shadow: 0 0 0 1px #f5c242 inset; }
@media (hover: none) { .pin-btn { opacity: .7; } }
.pin-title { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 5px 14px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; margin-top: -6px; }
.pin-title.on { background: #fff4c2; border-color: #f5c242; color: #7a5a00; }
.fs-root.on .pin-title { display: none; }
#pinToast[hidden] { display: none; }

/* 공략·가이드 (/guides/) */
.post-index { padding-top: 40px; }
.post-index h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -.04em; margin: 0 0 12px; }
.post-index .lead { max-width: 760px; color: var(--muted); font-size: 16px; line-height: 1.75; margin: 0 0 24px; }
.post-index .crumb, .post .crumb { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.post-index .crumb a, .post .crumb a { color: inherit; }
.post-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.post-card { display: flex; gap: 16px; padding: 20px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card .pc-ic { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: var(--surface-2); }
.post-card .pc-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.post-card b { font-size: 18px; letter-spacing: -.02em; line-height: 1.4; }
.post-card .pc-desc { color: var(--muted); font-size: 14px; line-height: 1.6; }
.post-card small { color: var(--muted); font-size: 12px; }
@media (max-width: 420px) { .post-cards { grid-template-columns: 1fr; } .post-card { padding: 16px; gap: 12px; } .post-card .pc-ic { width: 44px; height: 44px; font-size: 22px; } }
.post-list { margin: 0; padding-left: 20px; }
.post-list li + li { margin-top: 6px; }
.post-list a { color: var(--accent); }

.post { max-width: 760px; margin: 0 auto; padding-top: 32px; }
.post h1 { font-size: clamp(26px, 4.4vw, 38px); line-height: 1.3; letter-spacing: -.035em; margin: 0 0 10px; }
.post-meta { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.post-meta a { color: var(--accent); }
.post p, .post li, .post dd { font-size: 16.5px; line-height: 1.85; }
.post p { margin: 0 0 14px; }
.post .post-lead { font-size: 17px; }
.post a { color: var(--accent); }
.post h2 { font-size: 23px; line-height: 1.4; letter-spacing: -.025em; margin: 48px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.post h3 { font-size: 18px; margin: 30px 0 10px; }
.post ul, .post ol { padding-left: 22px; margin: 0 0 16px; }
.post li + li { margin-top: 6px; }
.post section { scroll-margin-top: 64px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0 0; }
.toc b { font-size: 15px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; }
.post .toc li { font-size: 15px; line-height: 1.6; }
.post .toc a { color: inherit; text-decoration: none; }
.post .toc a:hover { color: var(--brand); text-decoration: underline; }
.post .steps { list-style: none; padding: 0; counter-reset: st; }
.post .steps li { counter-increment: st; position: relative; padding: 10px 14px 10px 50px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.post .steps li::before { content: counter(st); position: absolute; left: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 14px; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.post .steps li + li { margin-top: 8px; }
.post .tip { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); }
.post .tip-face { flex: none; font-size: 28px; line-height: 1; }
.post .tip p { margin: 0; font-size: 15.5px; }
.post .tip p b:first-child { display: block; color: var(--accent); margin-bottom: 2px; }
.post .tbl { overflow-x: auto; margin: 4px 0 18px; }
.post table:not(.sdk) { width: 100%; border-collapse: collapse; font-size: 15px; }
.post table:not(.sdk) th, .post table:not(.sdk) td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; }
.post table:not(.sdk) thead th { background: var(--surface-2); }
.post table:not(.sdk) tbody th { white-space: nowrap; }
.post table:not(.sdk) td { color: var(--muted); }
.post-faq dt { font-weight: 700; margin-top: 16px; }
.post-faq dt::before { content: "Q. "; color: var(--brand); }
.post-faq dd { margin: 4px 0 0; color: var(--muted); }
.post-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 40px 0 0; }
.post .post-cta a { color: var(--brand-ink); }

/* 스도쿠 판 그림 */
.sdk-fig { margin: 22px 0 26px; }
.sdk { --cell: min(46px, calc((100vw - 40px) / 9)); border-collapse: collapse; margin: 0 auto; border: 2.5px solid var(--text); background: var(--surface); }
.sdk td { width: var(--cell); height: var(--cell); padding: 0; border: 1px solid color-mix(in srgb, var(--text) 22%, transparent); text-align: center; vertical-align: middle; position: relative; font-size: calc(var(--cell) * .55); font-weight: 500; color: var(--accent); line-height: 1; }
.sdk td.bx { border-right: 2.5px solid var(--text); }
.sdk td.by { border-bottom: 2.5px solid var(--text); }
.sdk.part { border-bottom-style: dashed; }
.sdk td.g { color: var(--text); font-weight: 800; }
.sdk td.sh { background: color-mix(in srgb, var(--accent) 15%, var(--surface)); }
.sdk td.src { box-shadow: inset 0 0 0 2px var(--brand); border-radius: 50%; }
.sdk td.x::after { content: "×"; color: var(--bad); font-weight: 700; opacity: .75; }
.sdk td.put { background: color-mix(in srgb, var(--good) 30%, var(--surface)); color: var(--good); font-weight: 900; }
.sdk td.tg { box-shadow: inset 0 0 0 2.5px var(--good); }
.sdk .nt { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; height: 100%; padding: 1px; font-size: calc(var(--cell) * .27); font-weight: 600; color: var(--muted); line-height: 1; }
.sdk .nt span { display: grid; place-items: center; }
.sdk .nt .hi { color: #fff; background: var(--good); border-radius: 3px; font-weight: 800; }
.sdk .nt .st { color: var(--bad); }
.sdk .lb { position: absolute; left: 1px; top: 1px; font-style: normal; font-size: 9px; font-weight: 900; color: var(--brand-ink); background: var(--brand); border-radius: 3px; padding: 1px 3px; z-index: 1; }
.sdk-legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; padding: 0 !important; margin: 10px 0 0 !important; }
.post .sdk-legend li { margin: 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; line-height: 1.4; }
.sdk-legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; border: 1px solid var(--line); position: relative; font-style: normal; }
.sdk-legend .k-sh { background: color-mix(in srgb, var(--accent) 15%, var(--surface)); }
.sdk-legend .k-src { border: 2px solid var(--brand); border-radius: 50%; }
.sdk-legend .k-x { border: 0; }
.sdk-legend .k-x::after { content: "×"; color: var(--bad); font-weight: 700; position: absolute; inset: -4px 0 0 2px; }
.sdk-legend .k-put { background: color-mix(in srgb, var(--good) 30%, var(--surface)); }
.sdk-legend .k-tg { border: 2.5px solid var(--good); }
.sdk-legend .k-hi { background: var(--good); }
.sdk-legend .k-strike { border: 0; }
.sdk-legend .k-strike::after { content: "3"; text-decoration: line-through; color: var(--bad); font-size: 12px; font-weight: 700; position: absolute; inset: -2px 0 0 3px; }
.sdk-fig figcaption { margin: 10px auto 0; max-width: 620px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }

/* 앱 페이지 '관련 공략' */
.app-posts { max-width: 760px; margin: 28px auto 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); }
.app-posts h2 { font-size: 18px; margin: 0 0 8px; }
.app-posts ul { list-style: none; margin: 0; padding: 0; }
.app-posts li + li { margin-top: 10px; }
.app-posts a { text-decoration: none; display: block; }
.app-posts a b { color: var(--accent); font-size: 16px; }
.app-posts a:hover b { text-decoration: underline; }
.app-posts small { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 2px; }


/* 공략 목록: 주제별 참고 정보 */
.topics-h { font-size: 22px; letter-spacing: -.02em; margin: 40px 0 8px; }
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
.topic { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.topic-app { font-weight: 800; color: var(--text); text-decoration: none; }
.topic ul { margin: 6px 0 0; padding-left: 18px; }
.topic li { font-size: 14px; line-height: 1.6; }
.topic li a { color: var(--muted); text-decoration: none; }
.topic li a:hover, .topic-app:hover { color: var(--brand); }

/* 친구 도전장 */
.ch-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 760px; margin: 0 auto 14px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--brand) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line)); text-align: left; }
.ch-banner.win { background: color-mix(in srgb, #1fa463 14%, var(--surface)); border-color: #1fa463; }
.ch-banner.lose { background: color-mix(in srgb, #e5484d 10%, var(--surface)); border-color: color-mix(in srgb, #e5484d 60%, var(--line)); }
.ch-banner .ch-ic { font-size: 30px; line-height: 1; }
.ch-banner .ch-body { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.ch-banner .ch-from { font-size: 15px; }
.ch-banner .ch-goal { font-size: 14px; color: var(--muted); }
.ch-banner .ch-act { display: flex; align-items: center; gap: 6px; }
.ch-banner .ch-act .btn { padding: 7px 12px; font-size: 14px; }
.ch-banner .ch-x { border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; padding: 4px 6px; }
.ch-rec { margin: 4px 0 10px; font-weight: 700; }
.ch-nick { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.ch-nick input { font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); }
#ch-panel .btn { width: 100%; margin-top: 6px; }

.together { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.together a { padding: 7px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 700; }
.together a:hover { border-color: var(--brand); color: var(--brand); }

.square-list { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--line); }
.square-list a { display: flex; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; }
.square-list a span { font-size: 12px; color: var(--muted); font-weight: 600; min-width: 70px; }
.square-list a:hover { color: var(--brand); }
