/* 포켓윷놀이 안내 사이트 — 원본 PocketYut 저장소 site/pocketyut/guide/ (bash tool/deploy_site.sh) */
:root {
  --bg: #F6EEDF; --card: #FFF9EE; --fg: #3A2A1E; --muted: #8A7563; --line: #E6D7BF;
  --accent: #C8462B; --accent-soft: #F3DCCB; --gold: #E2A93B;
  --ok: #4D7A3A; --bad: #A6402A;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html[lang="en"] body { word-break: normal; overflow-wrap: break-word; hyphens: auto; }
body {
  margin: 0; background: var(--bg); color: var(--fg); line-height: 1.7; font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* 머리 */
.top { position: sticky; top: 0; z-index: 5; background: rgba(246,238,223,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 56px; }
.top .home { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--fg); font-weight: 800; flex: none; }
.top .home img { width: 30px; height: 30px; border-radius: 8px; }
.top nav { min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.top nav::-webkit-scrollbar { display: none; }
.top nav a { flex: none; padding: 6px 10px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.top nav a[aria-current] { background: var(--accent); color: #fff; }
.top .lang { flex: none; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--fg); font-size: 13px; font-weight: 700; background: var(--card); }

/* 본문 */
main { padding: 28px 16px 48px; overflow-x: clip; }
body > main.wrap { padding-left: 16px; padding-right: 16px; }
h1 { font-size: 30px; line-height: 1.3; margin: 0 0 10px; letter-spacing: -.02em; }
h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -.01em; }
h3 { font-size: 18px; margin: 0 0 6px; }
.lead { color: var(--muted); font-size: 17px; margin: 0 0 8px; }
.note { color: var(--muted); font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; }
.tag.good { background: #E1ECD6; color: var(--ok); }
.tag.bad { background: #F4D9D0; color: var(--bad); }
.tag.mix { background: #F4E7C8; color: #8A6417; }

/* 첫 페이지 */
.hero { display: grid; gap: 20px; align-items: center; grid-template-columns: 1fr; }
.hero .icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 8px 24px rgba(58,42,30,.18); }
@media (min-width: 720px) { .hero { grid-template-columns: 1fr 260px; } }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 14px; font-weight: 800; text-decoration: none; background: var(--fg); color: #fff; }
.btn.alt { background: var(--card); color: var(--fg); border: 1px solid var(--line); }
.shots { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 12px; scroll-snap-type: x mandatory; }
.shots img { width: 180px; flex: none; border-radius: 16px; scroll-snap-align: start; box-shadow: 0 4px 14px rgba(58,42,30,.14); }
.menu a { display: block; text-decoration: none; color: var(--fg); }
.menu a:hover { border-color: var(--accent); }
.menu .more { color: var(--accent); font-weight: 700; font-size: 14px; }
.today { border: 2px solid var(--accent); }
.today b.name { font-size: 20px; }

/* 장치 */
h2 .thumb { display: inline-block; width: 40px; height: 40px; border-radius: 10px; vertical-align: middle; margin-right: 8px; object-fit: cover; }
.board { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 18px; }
@media (min-width: 720px) { .board { grid-template-columns: 220px 1fr; } }
.board > img { border-radius: 16px; }
.gadget { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: start; }
.card > .gadget + .gadget { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.gadget img, .boss img { width: 88px; height: 88px; object-fit: contain; object-position: center; }
.grid > .card.gadget { align-items: center; }
.gadget img.pad { padding: 14px; }
.gadget p { margin: 4px 0 0; }

/* 표 */
.table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 16px; overflow: hidden; font-size: 15px; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: #EFE2CC; font-size: 13px; color: var(--muted); }
.table tr.now td { background: #FBE3D6; }
.table tr.now td:first-child { box-shadow: inset 4px 0 var(--accent); }
.table .num { width: 1%; white-space: nowrap; text-align: center; font-weight: 800; }
.table .nw { white-space: nowrap; }
@media (max-width: 560px) { .table { font-size: 14px; } .table th, .table td { padding: 8px 6px; } }
.scroll { overflow-x: auto; }

/* 도장깨기 */
.boss { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; }
.boss + .boss { margin-top: 10px; }
.boss img { width: 56px; height: 56px; }
.boss q { color: var(--muted); font-size: 14px; quotes: "「" "」"; }

ol.steps, ul.dots { padding-left: 20px; margin: 8px 0; }
ol.steps li, ul.dots li { margin: 4px 0; }

/* 바닥 */
footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; }
