:root {
  --paper: #f4efe2;
  --paper-deep: #e8dfca;
  --ink: #26231d;
  --muted: #6e675a;
  --line: #c9b996;
  --cho: #215b89;
  --cho-soft: #dbeaf5;
  --han: #9a382f;
  --han-soft: #f3dfda;
  --accent: #745d2e;
  --white: #fffdf8;
  --shadow: 0 16px 45px rgba(60, 46, 22, .10);
  --radius: 18px;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at top, #fffaf0 0, var(--paper) 34rem); color: var(--ink); }
a { color: inherit; text-underline-offset: .18em; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #e0a52b; outline-offset: 3px; }
img, svg { max-width: 100%; }
p { line-height: 1.75; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 999; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(116,93,46,.18); background: rgba(244,239,226,.94); backdrop-filter: blur(12px); }
.header-inner { max-width: 1180px; margin: 0 auto; min-height: 70px; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: max-content; }
.brand-mark { width: 44px; height: 44px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); box-shadow: 0 4px 12px rgba(60,46,22,.08); }
.brand-mark i { display: grid; place-items: center; font: 700 14px/1 serif; font-style: normal; }
.brand-mark i:first-child { color: var(--cho); border-right: 1px solid var(--line); }
.brand-mark i:last-child { color: var(--han); }
.brand strong { display: block; font-size: 1.06rem; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: .72rem; }
.site-header nav { display: flex; align-items: center; gap: 4px; }
.site-header nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 10px; text-decoration: none; color: #4e493f; font-weight: 650; font-size: .93rem; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { background: var(--white); color: var(--ink); }
.site-main { min-height: calc(100vh - 260px); }

.hero { max-width: 1180px; margin: 0 auto; min-height: 560px; padding: 72px 20px 62px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: center; gap: 72px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: .8rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero h1, .page-hero h1, .article-header h1, .game-topbar h1, .game-setup h1 { margin: 0; font-family: "Noto Serif KR", Batang, serif; letter-spacing: -.04em; }
.hero h1 { max-width: 720px; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.07; }
.hero-description { max-width: 650px; margin: 22px 0 0; color: #555044; font-size: 1.12rem; }
.hero-actions { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }
.primary-button, .secondary-button, .game-controls button, .result-actions button { min-height: 46px; border: 1px solid transparent; border-radius: 11px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 800; cursor: pointer; }
.primary-button { background: var(--ink); color: white; box-shadow: 0 8px 20px rgba(38,35,29,.17); }
.primary-button:hover { background: #050504; }
.secondary-button { border-color: var(--line); background: rgba(255,253,248,.65); }
.wide { width: 100%; }
.trust-list { margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; color: var(--muted); font-size: .88rem; }
.trust-list li::before { content: "✓"; margin-right: 6px; color: var(--accent); font-weight: 900; }
.hero-board { text-align: center; }
.hero-board > p { margin: 12px 0 0; color: var(--muted); font-weight: 700; }
.mini-board { position: relative; width: min(100%, 410px); aspect-ratio: 8/9; margin: 0 auto; border: 10px solid #b7965f; border-radius: 8px; background-color: #ead3a4; background-image: linear-gradient(#795d2c 1px, transparent 1px), linear-gradient(90deg, #795d2c 1px, transparent 1px); background-size: 12.5% 11.111%; box-shadow: var(--shadow); }
.mini-piece { position: absolute; width: 15%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #f8edcf; font: 800 clamp(20px, 4vw, 34px)/1 serif; box-shadow: 0 4px 10px rgba(50,35,15,.18); }
.mini-piece.cho { border: 4px double var(--cho); color: var(--cho); }
.mini-piece.han { border: 4px solid var(--han); color: var(--han); clip-path: polygon(50% 0, 94% 24%, 94% 76%, 50% 100%, 6% 76%, 6% 24%); }
.mini-piece.p1 { left: 43%; top: 8%; }.mini-piece.p2 { left: 4%; top: 4%; }.mini-piece.p3 { right: 8%; top: 24%; }.mini-piece.p4 { left: 43%; bottom: 8%; }.mini-piece.p5 { right: 4%; bottom: 4%; }.mini-piece.p6 { left: 22%; bottom: 22%; }

.content-section { max-width: 1180px; margin: 0 auto; padding: 72px 20px; }
.section-heading { max-width: 700px; margin: 0 auto 30px; text-align: center; }
.section-heading.left { margin-left: 0; text-align: left; }
.section-heading.compact { margin-bottom: 22px; }
.section-heading h2 { margin: 0; font: 700 clamp(1.75rem, 4vw, 2.7rem)/1.25 "Noto Serif KR", Batang, serif; letter-spacing: -.035em; }
.section-heading p:last-child { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature-grid article, .piece-intro-grid article, .article-grid a, .guide-callout { border: 1px solid rgba(116,93,46,.18); background: rgba(255,253,248,.72); border-radius: var(--radius); box-shadow: 0 8px 26px rgba(60,46,22,.055); }
.feature-grid article { padding: 24px; }
.feature-grid h3 { margin: 0 0 8px; font-size: 1.03rem; }
.feature-grid p { margin: 0; color: var(--muted); font-size: .93rem; }
.split-section { display: grid; grid-template-columns: 1fr .82fr; gap: 56px; align-items: center; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; min-height: 74px; padding: 0 0 22px 60px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); font-weight: 900; }
.steps strong, .steps span { display: block; }.steps span { margin-top: 4px; color: var(--muted); }
.guide-callout { padding: 34px; background: #2e302b; color: white; }
.guide-callout .eyebrow { color: #d8c697; }.guide-callout h2 { margin: 0; font: 700 2rem/1.3 serif; }.guide-callout p { color: #ddd9d0; }.guide-callout a { font-weight: 800; }
.piece-intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.piece-intro-grid article { display: flex; gap: 16px; padding: 20px; align-items: center; }
.piece-intro-grid article > span { flex: 0 0 52px; width: 52px; aspect-ratio: 1; display: grid; place-items: center; border: 3px double var(--cho); border-radius: 50%; background: #f7e8c3; color: var(--cho); font: 800 1.45rem/1 serif; }
.piece-intro-grid h3, .piece-intro-grid p { margin: 0; }.piece-intro-grid p { margin-top: 4px; color: var(--muted); font-size: .86rem; }
.center-link { text-align: center; margin: 24px 0 0; font-weight: 800; }
.latest-section { border-top: 1px solid rgba(116,93,46,.15); }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.article-grid a { display: block; padding: 24px; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.article-grid a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.article-grid span { color: var(--accent); font-size: .77rem; font-weight: 800; }.article-grid h3 { margin: 8px 0; }.article-grid p { margin: 0; color: var(--muted); font-size: .9rem; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 800; }
.faq-list summary::after { content: "+"; }.faq-list details[open] summary::after { content: "−"; }.faq-list p { margin: 0 0 20px; color: var(--muted); }

.page-hero { max-width: 980px; margin: 0 auto; padding: 70px 20px 34px; text-align: center; }
.page-hero.narrow { max-width: 780px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.15; }
.page-hero > p:last-child { color: var(--muted); font-size: 1.04rem; }
.learn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.learn-grid a { min-height: 220px; padding: 26px; display: flex; flex-direction: column; border: 1px solid rgba(116,93,46,.18); border-radius: var(--radius); background: var(--white); text-decoration: none; }
.learn-grid a > span { color: var(--line); font: 800 2rem/1 serif; }.learn-grid h2 { margin: 18px 0 4px; font-family: serif; }.learn-grid p { margin: 0; color: var(--muted); }.learn-grid strong { margin-top: auto; padding-top: 18px; color: var(--accent); }

.article-page, .prose-page, .policy-page { max-width: 820px; margin: 0 auto; padding: 60px 20px 90px; }
.article-header { text-align: center; }
.breadcrumb { margin-bottom: 34px; display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: .82rem; }
.article-header h1, .policy-page h1 { margin: 0; font: 700 clamp(2.1rem, 5vw, 3.7rem)/1.18 "Noto Serif KR", Batang, serif; letter-spacing: -.045em; }
.article-header > p:last-child { color: var(--muted); font-size: 1.03rem; }
.summary-box { margin: 38px 0; padding: 26px 28px; border: 1px solid #cbb888; border-radius: 14px; background: #fff8e9; }
.summary-box h2 { margin: 0 0 10px; font-size: 1.04rem; }.summary-box ul { margin: 0; padding-left: 20px; }.summary-box li + li { margin-top: 8px; }
.article-body section, .policy-page section { margin-top: 42px; }
.article-body h2, .prose-page h2, .policy-page h2 { margin: 0 0 14px; font: 700 1.55rem/1.35 "Noto Serif KR", Batang, serif; }
.article-body p, .prose-page p, .policy-page p { color: #4f4a40; }
.article-body ul, .prose-page ul { padding-left: 22px; line-height: 1.8; }
.article-note { margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--accent); background: rgba(255,253,248,.8); color: var(--muted); }
.related-links { margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--line); }.related-links h2 { font-size: 1.1rem; }.related-links > div { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }.related-links a { padding: 14px 16px; display: flex; justify-content: space-between; border: 1px solid rgba(116,93,46,.18); border-radius: 10px; text-decoration: none; font-weight: 750; }
.prose-page { padding-top: 34px; }.prose-page h2:not(:first-child) { margin-top: 38px; }.contact-email { display: inline-flex; min-height: 48px; align-items: center; padding: 0 16px; border-radius: 10px; background: var(--ink); color: white; font-weight: 800; }.contact-unavailable { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }.contact-unavailable p { margin-bottom: 0; }.contact-unavailable code { padding: 2px 6px; background: var(--paper-deep); border-radius: 5px; }
.policy-page > header { margin-bottom: 42px; text-align: center; }.policy-page > header > p:last-child { color: var(--muted); }
.not-found { min-height: 65vh; padding: 90px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }.not-found > span { color: var(--line); font: 900 clamp(5rem, 18vw, 11rem)/.8 serif; }.not-found h1 { margin: 28px 0 6px; font: 700 2.2rem/1.2 serif; }.not-found p { color: var(--muted); }.not-found div { display: flex; gap: 10px; margin-top: 18px; }

.game-main { padding: 32px 0 80px; }
.game-shell { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.game-setup { max-width: 850px; margin: 18px auto 0; padding: 32px; border: 1px solid rgba(116,93,46,.2); border-radius: var(--radius); background: rgba(255,253,248,.82); box-shadow: var(--shadow); }
.game-setup .section-heading { text-align: left; margin-left: 0; }.game-setup h1 { font-size: clamp(2rem, 5vw, 3.3rem); }.game-setup .section-heading > p:last-child { margin-bottom: 0; }
.setup-form fieldset { margin: 0 0 24px; padding: 0; border: 0; }.setup-form legend { margin-bottom: 10px; font-weight: 850; }.choice-grid { display: grid; gap: 10px; }.choice-grid.two { grid-template-columns: repeat(2, 1fr); }.choice-grid.three { grid-template-columns: repeat(3, 1fr); }
.choice-card { position: relative; min-height: 88px; padding: 16px 14px 14px 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; }.choice-card:has(input:checked) { border-width: 2px; border-color: var(--ink); box-shadow: inset 0 0 0 2px rgba(38,35,29,.08); }.choice-card input { position: absolute; left: 15px; top: 18px; width: 18px; height: 18px; }.choice-card strong, .choice-card span { display: block; }.choice-card span { margin-top: 4px; color: var(--muted); font-size: .82rem; }.cho-choice:has(input:checked) { border-color: var(--cho); }.han-choice:has(input:checked) { border-color: var(--han); }
.rule-variant { margin-top: 18px; padding: 15px 18px; border-left: 4px solid var(--accent); background: var(--paper); }.rule-variant p { margin: 3px 0 0; color: var(--muted); font-size: .84rem; }
.game-topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 14px; }.game-topbar h1 { font-size: clamp(1.8rem, 4vw, 3rem); }.game-badges { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }.game-badges span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--muted); font-size: .78rem; font-weight: 750; }
.notice { margin-bottom: 10px; padding: 10px 14px; border: 1px solid rgba(116,93,46,.18); border-radius: 10px; background: rgba(255,253,248,.7); color: var(--muted); font-size: .87rem; }
.turn-panel { min-height: 62px; margin-bottom: 14px; padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-radius: 12px; background: #30322e; color: white; }.turn-panel strong { font-size: 1.05rem; }.turn-panel span { color: #dddcd6; font-size: .88rem; }.turn-panel.danger { background: #7e2924; }.turn-panel.thinking { background: #4d4a42; }
.game-layout { display: grid; grid-template-columns: minmax(0, 680px) minmax(260px, 1fr); gap: 18px; align-items: start; }
.board-column { min-width: 0; }
.janggi-board { position: relative; width: min(100%, 650px); aspect-ratio: 8/9; margin: 0 auto; border: clamp(6px, 1.5vw, 12px) solid #b58e52; border-radius: 7px; background: #e6c88e; box-shadow: 0 18px 44px rgba(57,38,13,.2), inset 0 0 24px rgba(111,72,19,.12); touch-action: manipulation; user-select: none; overflow: hidden; }
.janggi-board::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(89,59,20,.08) .8px, transparent .8px); background-size: 6px 6px; mix-blend-mode: multiply; }
.board-lines { position: absolute; z-index: 1; inset: 5%; width: 90%; height: 90%; overflow: visible; }.board-lines line { stroke: #6b4d22; stroke-width: .035; vector-effect: non-scaling-stroke; }.board-lines text { fill: rgba(84,55,19,.42); font: 700 .32px serif; letter-spacing: .16px; }.palace-lines line { stroke-width: .055; }
.board-point { position: absolute; z-index: 4; width: clamp(31px, 8.5vw, 54px); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: transparent; transform: translate(-50%, -50%); display: grid; place-items: center; cursor: pointer; touch-action: manipulation; }
.board-point:disabled { cursor: default; opacity: 1; }.piece-shape { position: relative; width: 88%; aspect-ratio: 1; display: grid; place-items: center; background: #f5e7c3; color: var(--ink); font: 900 clamp(16px, 4.7vw, 30px)/1 "Noto Serif KR", Batang, serif; box-shadow: 0 3px 8px rgba(52,34,10,.23); }
.board-point.cho .piece-shape { border: clamp(2px, .6vw, 4px) double var(--cho); border-radius: 50%; color: var(--cho); }
.board-point.han .piece-shape { border: clamp(2px, .6vw, 4px) solid var(--han); color: var(--han); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.board-point.selected .piece-shape { box-shadow: 0 0 0 5px #f0b52d, 0 5px 12px rgba(52,34,10,.28); transform: translateY(-2px); }
.board-point.move-target::after, .board-point.capture-target::after { content: ""; position: absolute; z-index: -1; width: 28%; aspect-ratio: 1; border-radius: 50%; background: rgba(42,97,62,.7); box-shadow: 0 0 0 7px rgba(42,97,62,.16); }
.board-point.capture-target::after { width: 96%; background: transparent; border: 4px solid #c44935; box-shadow: 0 0 0 3px rgba(196,73,53,.17); }
.board-point.last-from::before, .board-point.last-to::before { content: ""; position: absolute; inset: 2%; border-radius: 50%; border: 2px dashed rgba(116,93,46,.72); }.board-point.last-to::before { border-style: solid; }
.board-point.check-king .piece-shape { animation: checkPulse .9s ease-in-out infinite alternate; box-shadow: 0 0 0 5px rgba(176,37,25,.72); }
@keyframes checkPulse { to { box-shadow: 0 0 0 9px rgba(176,37,25,.24); } }
.board-lock { position: absolute; z-index: 12; inset: 0; display: grid; place-items: center; background: rgba(244,239,226,.16); }.spinner { width: 44px; height: 44px; border: 5px solid rgba(38,35,29,.22); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }.spinner::after { content: "AI"; position: absolute; font-size: .65rem; font-weight: 900; }.spinner { display: grid; place-items: center; }@keyframes spin { to { transform: rotate(360deg); } }
.save-line { min-height: 28px; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: .76rem; }.save-dot { width: 7px; height: 7px; border-radius: 50%; background: #4c8756; }
.game-controls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }.game-controls button, .result-actions button { min-height: 46px; padding: 0 9px; border-color: var(--line); background: var(--white); color: var(--ink); font-size: .86rem; }.game-controls button:disabled { opacity: .45; cursor: not-allowed; }
.rule-details { margin-top: 10px; border: 1px solid rgba(116,93,46,.17); border-radius: 10px; background: rgba(255,253,248,.58); }.rule-details summary { min-height: 44px; padding: 0 13px; display: flex; align-items: center; cursor: pointer; font-size: .82rem; font-weight: 800; }.rule-details p { margin: 0; padding: 0 13px 13px; color: var(--muted); font-size: .78rem; }
.game-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.info-card { border: 1px solid rgba(116,93,46,.18); border-radius: 13px; background: rgba(255,253,248,.8); }.compact-card { padding: 14px; min-height: 92px; }.info-card h2 { margin: 0; font-size: .87rem; }.captured-list { min-height: 38px; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }.captured-piece { width: 29px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--paper-deep); font: 800 14px/1 serif; }.captured-piece.cho { color: var(--cho); border: 2px double var(--cho); }.captured-piece.han { color: var(--han); border: 2px solid var(--han); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }.muted { color: var(--muted); font-size: .8rem; }
.history-card { grid-column: 1 / -1; overflow: hidden; }.card-title-row { min-height: 48px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(116,93,46,.15); }.card-title-row span { color: var(--muted); font-size: .78rem; }.history-empty { padding: 4px 14px 12px; }.move-history { max-height: 530px; overflow: auto; margin: 0; padding: 0; list-style: none; }.move-history li { min-height: 46px; padding: 7px 12px; display: grid; grid-template-columns: 28px 1fr; gap: 7px; align-items: center; border-bottom: 1px solid rgba(116,93,46,.1); }.move-history li > span { color: var(--muted); font-size: .72rem; }.move-history p { margin: 0; line-height: 1.45; font-size: .78rem; }
.result-panel { margin-top: 20px; padding: 28px; border: 1px solid rgba(116,93,46,.2); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); text-align: center; }.result-panel h2 { margin: 0; font: 800 2rem/1.2 serif; }.result-panel > p:not(.eyebrow):not(.analysis-note) { color: var(--muted); }.result-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 24px 0; border: 1px solid rgba(116,93,46,.16); border-radius: 12px; overflow: hidden; }.result-stats div { padding: 15px 10px; }.result-stats div + div { border-left: 1px solid rgba(116,93,46,.16); }.result-stats dt { color: var(--muted); font-size: .75rem; }.result-stats dd { margin: 5px 0 0; font-weight: 850; }.result-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }.result-actions .primary-button { background: var(--ink); color: white; }.analysis-note { margin: 16px 0 0; color: var(--muted); font-size: .75rem; }

.site-footer { border-top: 1px solid rgba(116,93,46,.18); background: #e7decb; }.footer-inner { max-width: 1180px; margin: 0 auto; padding: 38px 20px 26px; }.footer-inner > div:first-child p { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }.site-footer nav { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; }.site-footer nav a { min-height: 36px; display: inline-flex; align-items: center; color: #4f4a40; font-size: .82rem; }.copyright { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid rgba(116,93,46,.2); color: var(--muted); font-size: .76rem; }

@media (max-width: 900px) {
  .header-inner { align-items: flex-start; }.site-header nav { overflow-x: auto; max-width: 55vw; }.site-header nav a { white-space: nowrap; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 44px; padding-top: 54px; }.hero-copy { text-align: center; }.hero h1, .hero-description { margin-left: auto; margin-right: auto; }.hero-actions, .trust-list { justify-content: center; }.hero-board { max-width: 430px; margin: 0 auto; width: 100%; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }.split-section { grid-template-columns: 1fr; }.piece-intro-grid { grid-template-columns: repeat(2, 1fr); }
  .game-layout { grid-template-columns: 1fr; }.game-sidebar { grid-template-columns: 1fr 1fr; }.history-card { grid-column: 1 / -1; }.move-history { max-height: 300px; }
}

@media (max-width: 620px) {
  .header-inner { min-height: 62px; padding: 8px 12px; gap: 10px; }.brand-mark { width: 40px; height: 40px; }.brand small { display: none; }.brand strong { font-size: .95rem; }.site-header nav { max-width: 64vw; gap: 0; }.site-header nav a { min-height: 42px; padding: 0 9px; font-size: .8rem; }
  .hero { padding: 44px 16px 40px; }.hero h1 { font-size: clamp(2.25rem, 13vw, 3.45rem); }.hero-description { font-size: .98rem; }.hero-actions > a { flex: 1 1 145px; }
  .content-section { padding: 52px 16px; }.feature-grid, .piece-intro-grid, .article-grid, .learn-grid { grid-template-columns: 1fr; }.split-section { gap: 34px; }.piece-intro-grid article { padding: 16px; }
  .page-hero { padding: 52px 16px 22px; }.article-page, .prose-page, .policy-page { padding: 44px 16px 70px; }.related-links > div { grid-template-columns: 1fr; }.not-found div { width: 100%; flex-direction: column; }
  .game-main { padding-top: 14px; }.game-shell { padding: 0 8px; }.game-setup { margin-top: 0; padding: 20px 14px; border-radius: 14px; }.choice-grid.two, .choice-grid.three { grid-template-columns: 1fr; }.choice-card { min-height: 74px; }
  .game-topbar { align-items: flex-start; flex-direction: column; padding: 0 4px; }.game-badges { justify-content: flex-start; }.notice { margin-left: 4px; margin-right: 4px; }.turn-panel { margin-left: 0; margin-right: 0; min-height: 70px; align-items: flex-start; flex-direction: column; gap: 2px; }.turn-panel span { font-size: .8rem; }
  .janggi-board { width: 100%; border-width: 6px; }.board-point { width: clamp(31px, 10.2vw, 43px); }.piece-shape { font-size: clamp(16px, 6.1vw, 25px); }
  .game-controls { grid-template-columns: repeat(2, 1fr); }.game-controls button { min-height: 48px; }.game-sidebar { grid-template-columns: 1fr 1fr; }.compact-card { min-height: 88px; padding: 11px; }.result-panel { padding: 22px 14px; }.result-stats { grid-template-columns: repeat(2, 1fr); }.result-stats div:nth-child(3) { border-left: 0; border-top: 1px solid rgba(116,93,46,.16); }.result-stats div:nth-child(4) { border-top: 1px solid rgba(116,93,46,.16); }
  .site-footer nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 12px; }.site-footer nav a { min-height: 44px; }
}

@media (max-width: 360px) {
  .brand-mark { display: none; }.site-header nav { max-width: 72vw; }.game-shell { padding: 0 6px; }.game-badges span { padding: 6px 8px; }.board-point { width: 31px; }.piece-shape { font-size: 17px; }.game-sidebar { grid-template-columns: 1fr; }.history-card { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
